Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: replan — migrate plan to GitHub issues #703-#760; empty PLAN.md to tracker pointer

[._.]/ Adam Eivyaec024816c7f
diff --git a/PLAN.md b/PLAN.md
index 5613d596c5..20883332d6 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -1,86 +1,16 @@
# PortOS — Development Plan
-For project goals, see [GOALS.md](./GOALS.md). For completed work, see [.changelog/](./.changelog/) and `git log`.
+The active, claimable roadmap now lives in the **GitHub issue tracker** — see the
+open issues labeled [`plan`](https://github.com/atomantic/PortOS/issues?q=is%3Aissue+is%3Aopen+label%3Aplan).
+Managed by `/do:replan --issues`. For project goals, see [GOALS.md](./GOALS.md);
+for completed work, see [.changelog/](./.changelog/) and `git log`.
-## Next Up
+This file no longer tracks individual tasks (so it stops generating merge
+conflicts as work proceeds). The only thing kept here is the **Future / Ideas**
+list below — speculative possibilities, not commitments, deliberately left out of
+the tracker until one is promoted to a real, claimable issue.
-Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
-
-
-## Blocked / Deferred (skip for `/claim`)
-
-Items here need a user decision, design pass, code precondition, hardware validation, or future priority signal before they become claimable. Keep this section at the bottom so `/claim` works from the backlog downward.
-
-- [ ] [music-gen-3rd-party-engine-stubs] **3rd-party music engine stubs (Suno / AudioLDM2).** Phase 4c.2 shipped local MusicGen (MLX) only — the `audioStage` `music.source: 'gen'` path and `server/services/pipeline/musicGen.js`'s `generateMusic` contract are deliberately generator-agnostic, so a commercial backend (Suno, with real duration control) or a second local backend (AudioLDM2, long-form) plugs in as a sibling generator behind the same route. Deferred per the product call ("no 3rd party yet"). Needs: a provider abstraction + key management for Suno, or an AudioLDM2 sidecar mirroring `scripts/generate_musicgen.py`.
- > ❓ **Question:** Which engine first when this is picked up — a long-form local backend (AudioLDM2) or a commercial API (Suno, real duration control + key management)?
-- [ ] [whole-episode-audio-generation-strategy-stop] **Whole-episode audio generation strategy.** Stop relying on per-clip audio; drive audio gen from episode-level prose/script arc. New `audioMode: 'per-clip' | 'silent' | 'generated' | 'uploaded-track'`. Treat as a new sub-brainstorm when picked up — investigation first.
- > ❓ **Question:** Two decisions gate this: (1) which generator family — local-bounded (MusicGen-MLX, ~30s), local long-form (AudioLDM2), or commercial (Suno, real duration control)? and (2) at what granularity does episode-level audio drive — one track per episode, per-scene beds, or per-arc cues? Pick a generator + granularity and I'll scope the `audioMode` design from there.
-- [ ] [world-builder-phase-2-external-sd-api-per-bucket] **World Builder Phase 2 — external SD-API + per-bucket model overrides.** Wire Together / Replicate / Fal into the world-builder batch path so high-end renders are practical; let each bucket pick its own model.
- > ❓ **Question:** Is high-end external-SD-API rendering a priority now, or stay local-only for World Builder? With the 128GB machine online, local 9B–17B models may cover the quality need without adding a third-party render dependency + key management. Greenlight external providers, or defer?
-- [ ] [native-fflf-deeper-test-on-real-keyframe-pairs] **Native FFLF deeper test on real keyframe pairs.** Validate with last frame of clip A + first frame of clip B from the same scene; expose more pipeline knobs (cfg-scale, stg-scale, stage1-steps) if interpolation looks weak.
- > ❓ **Question:** This needs you to supply (or point me at) a real keyframe pair from the same scene to validate against — it can't be self-tested without representative content. Do you have a clip-A-last / clip-B-first pair I should test with, or should I synthesize a stand-in pair?
-- [ ] [episode-video-provider-picker-runwayml-third-party] **Episode-video provider picker (RunwayML / third-party).** _Trigger-gated on a code precondition, not a user decision:_ once the provider abstraction lands, expose the picker on `EpisodeVideoStage`.
-- [ ] [comic-book-pdf-export-once-stages-comicpages] **Comic-book PDF export.** _Trigger-gated on a code precondition, not a user decision:_ once `stages.comicPages` carries enough panel data + rendered images, export print-ready PDF.
-- [ ] [writers-room-phases-4-5-phase-4-synced-prose] **Writers Room Phases 4–5.** Phase 4 synced prose/script/media review; Phase 5 realtime CD feedback. Builds on the unified bible/scene model. See [writers-room.md](./docs/features/writers-room.md).
-- [ ] [cybercity-v2-phase-2-deeper-drill-down-per-agent] **CyberCity v2 Phase 2+** — deeper drill-down: per-agent spatial trail, system flow lines between buildings, recent-action timeline overlay. See [cybercity-v2.md](./docs/features/cybercity-v2.md).
-- [ ] [m50-p9-cos-automation-rules-automated-email] **M50 P9 — CoS Automation & Rules.** Automated email classification, rule-based pre-filtering, email-to-task pipeline.
-- [ ] [m50-p10-auto-send-with-ai-review-gate-per-account] **M50 P10 — Auto-Send with AI Review Gate.** Per-account/per-recipient trust level + dual-LLM review (drafter + reviewer). Auto-send only when both approve or trust ≥ 0.9. See [messages-security.md](./docs/features/messages-security.md).
-- [ ] [m34-p5-p7-digital-twin-multi-modal-capture-voice] **M34 P5-P7 — Digital Twin.** Multi-modal capture (voice/video/image identity sources), advanced testing, personas. Ties to GOALS.md "Multi-Modal Identity Capture".
-- [ ] [cross-domain-insights-engine-m42-p5] **M42 P5 — Cross-Domain Insights Engine.** Connect genome ↔ health ↔ taste ↔ identity ↔ creative output into narrative insights surfaced in Brain. GOALS.md flags this as the next milestone for "Digital Identity Modeling" but no design has been written.
- > ❓ **Question (design pass — answer all four to unblock):** (a) Which signal pairs are worth correlating first (e.g. genome↔longevity, taste↔creative-output, health↔goals)? (b) Where do insights land — a new `/insights` surface, or fold into the Brain daily/weekly digest? (c) How does the user dismiss / accept an insight? (d) Does the LLM receive a structured "facts table" or raw stage data?
-- [ ] [codex5-unified-review-queue] **[P1][PRODUCT]** Cross-domain Review Queue (the "inbox zero" for PortOS). One page (`/review` or `/inbox`) that collects: Brain inbox items needing classification, Ask answers ready for promotion, CoS completed tasks pending approval, Message drafts awaiting send, Health anomalies pending acknowledgement, and failed syncs / imports / backups. Each row has accept / dismiss / drill-down. Build the surface aggregator first, then opt each producer into it.
-- [ ] [codex5-health-provenance-chips] **[P1][HEALTH][TRUST]** Extend Ask's source-chip pattern to MeatSpace / genome / death clock / longevity views. Each insight tags itself as `data-backed | inferred | experimental | speculative` with a "what would change this?" explainer and a clinician-export view for blood + lifestyle data. Pairs with `[codex5-decision-provenance-everywhere]`.
-- [ ] [codex5-autonomy-guardrails] **[P1][AUTONOMY]** Per-domain autonomy levels + dry-run + budgets + while-away briefing. Today CoS has a single global autonomy posture. Split into per-domain knobs (Brain auto-classify, Memory auto-extract, CoS auto-run, Messages auto-send) each with `off | dry-run | execute`. Add spending / time / token budgets per domain. Add a "what did agents do while I was away?" digest pulling from the existing CoS / agent run logs into a daily briefing card.
-- [ ] [codex5-mobile-task-flows] **[P2][MOBILE]** Five phone-native flows: (1) system health + one-tap restart of an app, (2) one-tap voice/text Brain capture, (3) "what should I do now?" Ask, (4) approve / reject a CoS result from a notification, (5) log a health/lifestyle event in ≤10 seconds. Each should be reachable in ≤2 taps from a Tailscale-launched mobile session.
-- [ ] [codex5-sidebar-collapse-ia] **[P1][IA]** Collapse sidebar to 8–10 top-level domains + Pinned + Recent. Today the sidebar carries deep nested tabs at the same level as top-level domains; review recommends `Home, Ask, Apps, CoS, Brain, Calendar, Goals, Health, Dev Tools, Settings` only at the top level with deep tabs pushed into each page's local tab bar and Cmd+K. Add Pinned + Recent sections driven by the user's actual working set. Touch every consumer of `Layout.jsx`'s nav tree; expect alphabetical ordering convention to survive.
-- [ ] [codex5-visual-modes] **[P2][DESIGN]** Product-specific visual modes: `Ops` (dense terminal-like, minimal animation), `Focus` (quiet, spacious, only next actions), `Health` (warmer, less cyber, more explanation), `Review` (document-like, optimized for reading + decisions). Needs a day-mode selector to switch between them. Extend the existing Tailwind token system rather than introducing a parallel theming layer.
-- [ ] [codex5-decision-provenance-everywhere] **[P2][DESIGN]** Decision/provenance pattern across CoS, Insights, Health, Goals, Dashboard widgets. Each AI-generated or rule-driven surface answers: "Why am I seeing this?", "What data backs this?", "What changed?", "What can I do next?" Reuse the Ask source-chip component. Pairs with `[codex5-health-provenance-chips]`.
-- [ ] [codex5-empty-states-teach] **[P3][ONBOARDING]** Workflow-teaching empty states. Each "no data" state replaces "Nothing here" with a setup hint that names the next action: "Connect calendar to unlock schedule-aware goals", "Add birth date + genome file to unlock longevity estimates", "Capture 10 notes to improve Ask Yourself", "Configure one API provider to enable autonomous CoS". Inventory empty states first, then prioritize by which pages new users hit earliest.
-- [ ] [useasyncaction-post-unmount-setstate-guard-add] **`useAsyncAction` post-unmount setState guard.** Add `mountedRef` to gate `setRunning(false)`. YAGNI today; do at 4th consumer.
-- [ ] [extract-usecanonpatch-universe-setuniverse] **Extract `useCanonPatch(universe, setUniverse, universeId, mountedRef)`.** `UniverseCanon.jsx` + `NounsStage.jsx` 95% identical optimistic-patch handlers. Extract when a 3rd caller appears.
-- [ ] [shallow-equal-guard-in-usemediaannotations-socket] **Shallow-equal guard in `useMediaAnnotations` socket handler.** Speculative micro-opt; theoretical until observed.
-- [ ] [low-client-extract-shared-usepopoverposition-hook] **[LOW][CLIENT]** Extract shared `usePopoverPosition` hook — **premise eroded; revisit when a 3rd caller lands.** Today the pattern lives in exactly two components (`client/src/components/ThemeSwitcher.jsx` and `client/src/components/media/CollectionPickerShell.jsx`) — both implement portal-with-fixed-positioning + `useLayoutEffect` measurement + rAF-coalesced scroll/resize listeners. With only 2 callers the abstraction isn't worth the indirection; extract when a third surface needs the same shape.
-- [ ] [pill-component-goaldetailpanel-migration] **Migrate `GoalDetailPanel.jsx`'s badges to the shared `<Pill>`.** `GoalDetailPanel.jsx`'s badges were intentionally left out of `[shared-pill-chip-component]`: their colors are computed from data (`GOAL_TYPE_CONFIG[].bg/color` ~line 384, `CATEGORY_CONFIG`/`urgencyColor()` ~571-581, tag chips ~528/707, `CHECK_IN_STATUS_CONFIG` ~993), so they don't map to a fixed `tone`. They'd migrate via `<Pill tone="bare" bordered={false} className={`${cfg.bg} ${cfg.color}`}>`, which only consolidates the structural `rounded px-2 py-0.5 text-xs` shape — not the colors. Marginal benefit + many edits in a 1252-LOC god-component, so deferred. Do it opportunistically when next touching the file (pairs with the `GoalDetailPanel.jsx` god-component split under "Deferred Architecture").
-- [ ] [parallelize-applypromptreplacemigration-files] **Parallelize `applyPromptReplaceMigration` per-file scan.** Today every prompt-replace migration covers exactly one file, so the serial `for (await readFile…)` loop in `scripts/migrations/_lib.js` costs nothing. When the first multi-file migration lands, fold the loop into `Promise.all(Object.keys(accepted).map(async filename => …))` and accumulate the `{ updated, alreadyCurrent, skipped }` counters post-flight. Theoretical until needed.
-- [ ] [shots-aware-scene-output-contract-partial-split] **Shots-aware scene-output-contract partial.** Split into `_partials/scene-fields-core.md` + `_partials/scene-fields-shots.md` when a third shots-using stage appears.
-- [ ] [ref-watch-phosphene-bump-ltx2-pin-v0148] **Bump `LTX2_PIN` from `f8f20c83` to v0.14.8 + adopt phosphene's frame_rate / class-rename / a2v / lora-fusion patches together.** From `reference-watch` review of phosphene (2026-05-22). Concrete upstream wins between PortOS's pin and current dgrauet HEAD: VAE auto-tiling that caps peak Metal memory on HD / long runs (#25), `_pending_loras` honored across every pipeline's `load()` override (#22, #23 — fixes silent character-LoRA-drops on Extend/HQ), `--lora` on `--low-ram` flow (#30), accurate transformer load-time markers for progress UI. Cost: in v0.14.x, `TextToVideoPipeline` / `ImageToVideoPipeline` / `ExtendPipeline` / `TwoStagePipeline` / `AudioToVideoPipeline` are all renamed (public surface becomes `TI2VidOneStagePipeline`, `RetakePipeline`, `TI2VidTwoStagesPipeline`, `A2VidPipelineTwoStage`, etc.). `generate_ltx2.py` would fail at import. Source commits: `2166d138` / `770ed0bd` (defensive imports v2), `94ae3430` (method-presence dispatch instead of class assumption), `aa235aa0` (`fps=` → `frame_rate=` shim), `681f429a` (a2v missing `frame_rate=` runtime patch), plus `[ref-watch-phosphene-lazy-eval-env-bootstrap]`. Scope: large (100–200 lines of careful Python touching every pipeline path, plus smoke test of every mode — text/image/fflf/extend/a2v — at the new pin).
- > ❓ **Question:** Do you want to take on this large/risky pin bump now? My recommendation if yes: **ship it as one PR (not per-mode)** — the class renames touch every pipeline's import simultaneously, so a half-migrated state won't even import; one PR with a full five-mode smoke test is safer than partial landings. And do it **after** the post-decode `os._exit(0)` work (`[ref-watch-phosphene-mlx-post-decode-os-exit]`) so the hang-mitigation is in place first. Confirm "yes, one PR, after os._exit" or tell me to defer.
-- [ ] [ref-watch-phosphene-sigkill-watchdog-videogen-local] **Panel-side SIGKILL watchdog (Node layer) in `videoGen/local.js`.** From `reference-watch` review of phosphene (commit `94bd6965`, 2026-05-22). Even with helper-side `os._exit(0)` adopted, defense-in-depth at the Node layer is cheap insurance: watch stdout for the upstream "[Decoding video + audio + muxing] done in X.Xs" line (or the final `{"video_path": ...}` JSON), then arm a 30–45s grace timer that SIGKILLs the child if it doesn't exit. PortOS already has SIGTERM→SIGKILL escalation in `cancel()` (`server/services/videoGen/local.js:71-79`); reuse that path. **Trigger:** only do this if real users hit the hang after the pin bump and `os._exit(0)` proves insufficient. Scope: small/medium.
-- [ ] [data-versioning-cache-invalidation-on-split] **Cache invalidation hooks in `brainStorage.js` / `messageSync.js` / `meatspacePostDrillCache.js` — needed only when their backing collections split.** These caches don't touch universe data so they were safe to skip for PR #458. When a future PR splits Brain or Messages collections into per-record `collectionStore` layouts, audit each cache for "cache key ↔ split-record-id" consistency: per-id writes are visible to other readers without going through the cache, so any cache that fronts the now-split file needs an invalidation event hook (or a switch to read-through against `store.loadOne`).
-- [ ] [data-versioning-typeindex-config-convention] **Establish a convention for the `config` slot on `data/{type}/index.json`.** `createCollectionStore` left `index.json`'s `config` open and unused — the first real consumer (probably the pipeline-issues split's history/runs analog) should pick the shape and document it in `server/lib/README.md` + the `collectionStore.js` header. Candidate shape: `{ config: { runs?: [], featureFlags?: {}, lockPolicies?: {} } }` — but defer the decision to the first real need.
-- [ ] [ref-watch-phosphene-long-clip-temporal-boost-12fps] **"Long Clip Temporal Boost" (render at 12fps, interpolate to 24fps).** From `reference-watch` review of phosphene (commit `53585fc`, 2026-05-22). Phosphene added a 12fps render path that uses ffmpeg's `minterpolate` / RIFE downstream to fill back to 24fps, doubling the effective clip length per memory budget. PortOS doesn't have an interpolation post-step in `server/services/videoGen/local.js`. The math helpers (`_duration_to_8k_frames`, LTX `8k+1` frame-count snapping) are useful regardless.
- > ❓ **Question:** Is a 12fps-render-then-interpolate mode worth a feature surface? It doubles max clip length per memory budget, but there's no user pain motivating it today and minterpolate can introduce artifacts. Want it (I'll scope a `--target-fps` + interpolation post-step), or skip?
-- [ ] [ref-watch-phosphene-t2v-standard-env-gated-two-stage] **Env-gated two-stage T2V perf experiment.** From `reference-watch` review of phosphene (commit `5004b40b`, 2026-05-28). PortOS's `run_text` already routes through `TwoStagePipeline` *when `cfg_scale` is set* (~line 221) — but the default no-CFG path uses single-stage. Phosphene's experiment routes T2V Standard through `pipe.generate_two_stage()` (half-res Stage 1 + 2× latent upsample + 3-step Stage 2 refine) even without CFG, gated on an env flag. Predicted ~30-35 % wall-time reduction on T2V Standard. Fix: in `run_text`, when `cfg_scale is None`, branch on a new `PORTOS_T2V_TWO_STAGE` env to call `pipe.generate_two_stage(...)` with stage1_steps=8, stage2_steps=3, cfg_scale=1.0. Scope: small.
- > ❓ **Question:** Land this behind an `A/B env knob` first, or — once you've eyeballed the quality on a couple of test prompts — just flip two-stage on as the universal T2V Standard default? Recommendation: ship the env knob first, validate quality on your prompts, then flip the default in a follow-up. Confirm "env knob first" or "flip default directly."
-- [ ] [importer-orphan-shell-gc] **An abandoned analyze leaves an empty universe/series shell on disk.** `analyzeImport` persists universe+series after canon+arc succeed, so if the user abandons after an issue-split failure on a brand-new universe/series, empty shells linger in `data/`. By-design, but a periodic GC of zero-issue, zero-canon shells older than N days (or marking analyze-created shells `ephemeral` until commit promotes them) would keep `data/` clean.
-- [ ] [story-builder-import-aesthetic-readermap-gaps] **Import pre-fills arc/characters/issues but NOT universe aesthetic or reader map.** `analyzeImport` creates the universe with only a name (no logline/premise/styleNotes/influences) and the importer never extracts a reader map — yet `createStorySession` import-branch marks every step `ready`. So in an imported session the universeAesthetic + readerMap steps show empty content under a misleading "Ready" badge. Mitigations in place: the session `seedIdea` is seeded from the extracted arc summary, and generateStep's expand falls back through `seedIdea`→universe name. Follow-up: either mark only the importer-filled steps `ready` (others `pending`), or extract a starter/aesthetic + reader-map pass during import.
-- [ ] [universe-styleImageRefs-wire-and-journal] **`styleImageRefs` is wire-synced but not version-gated, and feeds the conflict-journal content hash.** `sanitizeRecordForWire('universe')` ships `styleImageRefs` to peers; an older peer drops it on receive and, after its own edit bumps `updatedAt`, LWW-strips it back off a newer peer. Separately, `contentHashForRecord` now includes `styleImageRefs`, so a probe render can contribute to a 3-way-divergence conflict-journal entry whose diff won't mention it (`RESTORABLE_FIELDS.universe` omits it). Options if it becomes annoying: bump the `universes` schema version (gate it), make `styleImageRefs` local-only (strip from wire), or exclude it from the content hash. Deferred — low-stakes, regenerable.
-- [ ] [story-builder-session-sync] **Optional cross-machine resumable sessions.** Sessions are intentionally local-only in v1 (excluded from peer sync). If cross-machine resume is wanted later, key the staleness model on a content hash carried in the session (the integrity helper already produces one) rather than live-record diffing, so a peer's universe edit doesn't false-positive-stale the local session.
-- [ ] [story-builder-step-content-staleness] **Upstream-hash detects when a step's INPUTS drift, not when its OUTPUTS are edited out-of-band.** A user can lock the universeAesthetic step, then mutate `universe.logline` directly in Universe Builder, and the aesthetic step lock won't flag stale (the lock is only soft — it gates the StoryBuilder UI, not the underlying universe record). Either: (i) extend `buildUpstreamInputs` to fingerprint each step's *own outputs* as well, treating any post-lock mutation as stale, or (ii) enforce harder locks at the underlying-record layer. Deferred — current behavior matches the "upstream-only" hashing design intent.
-- [ ] [flux2-bf16-kv-multi-reference-support] **Lift the multi-reference gate on `flux2-klein-9b-bf16`.** `scripts/flux2_macos.py` (~line 280) refuses `--reference-images` on `quantization='none'` because the bf16 entry's `repo` is the base 9B (not kv) — `Flux2KleinKVPipeline` would load fine but run K/V-cached reference attention against a transformer not tuned for reference-editing. Either swap the bf16 entry's `repo` to `black-forest-labs/FLUX.2-klein-9B-kv` and ship a migration, or thread an explicit `kvRepo` field through the runner. Quality validation requires a 64+ GB machine.
-- [ ] [comic-structure-finding-shape-unification] **Unify the finding-shape contract across `comic-structure` and narrative categories.** The `comic-structure` finding (migration 057) repurposes the `suggestion` field as a full replacement document (complete panel-by-panel rewrite), while all other categories use it as a delta/advice string. Consider: adding a `replacementStrategy: 'full-page' | 'delta'` field; or restructuring to `{ finding, fix: { find, replace } }` where the `fix` block is category-specific. Update `pipeline-manuscript-completeness.md`, `manuscriptReview.js`, and `pipeline-manuscript-fix.md` accordingly. The current approach works end-to-end, but the contract inconsistency should be resolved before the finding type proliferates.
-- [ ] [reference-watch-default-prompt-version-bump-check] **Re-audit `DEFAULT_TASK_INTERVALS['reference-watch'].taskMetadata` whenever `PROMPT_VERSIONS['reference-watch']` changes.** The schedule default was flipped from `readOnly: true` → `false` on 2026-05-28 because the v2 prompt instructs the agent to append `[ref-watch-…]` items to PLAN.md and commit them. A future v3 prompt that returns to a propose-only flow would need to flip the default back. Pin: `server/services/taskSchedule.js#DEFAULT_TASK_INTERVALS` reference-watch entry must stay in sync with the prompt's behavior; tests in `taskSchedule.test.js` and `referenceRepos.test.js` pin the current contract.
-
-- `server/services/cos.js` (3115 LOC) — split into cosTaskStore / cosTaskGenerator / cosJobScheduler / cosHealthMonitor.
-- `server/services/agentLifecycle.js` (1446 LOC) — extract prepareAgentWorkspace / resolveProvider / processCompletion.
-- `server/services/identity.js` (1917 LOC) — separate genomic markers + longevity + goals + todos.
-- `server/services/taskSchedule.js` (2369 LOC) — extract prompt management to `taskPromptService.js`.
-- `server/services/taskLearning.js` (1939 LOC) — separate metrics aggregation from heuristic routing.
-- `server/services/autonomousJobs.js` (1567 LOC) — extract job registry / scheduler / execution paths.
-- `server/services/voice/tools.js` (1284 LOC) — group by domain (UI / calendar / brain / media) into siblings.
-- `server/services/git.js` (1271 LOC) — extract command builders + parsers.
-- `server/cos-runner/index.js` (1076 LOC) — extract spawn / lifecycle / IPC layers.
-- `server/services/memory.js` (1049 LOC) — separate retrieval, classification, persistence.
-- `server/services/xcodeScripts.js` (1131 LOC) — collapse repeated AppleScript builders.
-- `server/routes/apps.js` (1180 LOC) — extract `npm install` orchestration to `appBuilder.js`.
-- `client/src/pages/VideoGen.jsx` (1361 LOC) — extract mode-specific control panels (i2v / a2v / extend / FFLF).
-- `client/src/pages/ImageGen.jsx` (1182 LOC) — extract preset picker + multi-reference uploader.
-- `client/src/components/goals/GoalDetailPanel.jsx` (1252 LOC) — god component.
-- `client/src/components/meatspace/tabs/CalendarTab.jsx` (1269 LOC) — extract grid renderer + goal-link panels.
-- `client/src/components/cos/tabs/ScheduleTab.jsx` (1088 LOC) — extract schedule editor + run history table.
-- `client/src/components/writers-room/StoryboardPanel.jsx` (1199 LOC) — extract scene tile + render dock subcomponents.
-- `autofixer/ui.js` (972 LOC) — inline HTML template needs extraction.
-- API contract — standardize error response shapes (`asyncHandler` + `ServerError` everywhere).
+## Future / Ideas
- **Identity Context Injection** — per-task-type digital twin preamble toggle.
- **Content Calendar** — unified calendar across platforms.