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([manuscript-review-sync]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivy697ef61aed2c
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index a238c3fd6f..27de4b917d 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -3,6 +3,7 @@
## Added
- **[story-builder-embed-arccanvas] The Story Builder now lets you edit the plot arc and season roadmap right in the builder, and shows the reader-map beats as a visual timeline.** Once a plot arc exists, the plot-arc step embeds the full Arc Canvas — edit the logline, summary, protagonist arc, themes, story shape, and the whole season/volume breakdown in place instead of a read-only summary with a link out to the Pipeline (the link is still there as a shortcut to the full page). The reader-map step gains a beat timeline: a quick visual of where the emotional beats land across the arc and how intense each one is, color-coded by type, above the existing list.
+- **[manuscript-review-sync] Manuscript "Finish the draft" review comments now sync across your machines.** The editorial comment set on a series — each note's text, severity, and whether you've accepted or dismissed it — now travels with the series when you share it to a bucket or sync it between federated machines, merging comment-by-comment so two machines can work the same review without clobbering each other. Editing the review on one machine now also nudges the sync on its own (previously only changes to the series record itself did), so a comment you dismiss on your laptop shows up dismissed on your desktop. (Accepted fixes already synced, since they write into the manuscript itself.)
- **[story-builder-arc-refine-feedback] You can now refine a Story Builder plot arc with a note instead of regenerating it from scratch.** Once an arc exists, the plot-arc step shows an AI-feedback box (like the aesthetic, reader-map, and character steps): type what you want changed and it rewrites the logline, summary, protagonist arc, and themes accordingly — keeping your chosen story shape, reader map, and season breakdown intact — and reports what it changed.
- **[pipeline-audio-phase-4c-2-4c-3-4d-2-local-oss] The pipeline audio stage can now generate background music locally, and voice-over lines are mixed into the final episode.** Background Music gains a "Generate (MusicGen)" option that renders a text-prompted track on-device via MusicGen on Apple Silicon — pick a model tier (Small / Medium / Large) and a clip length, and the result lands in your music library attached to the issue, no upload or API key needed (one-time setup: `INSTALL_MUSICGEN=1 bash scripts/setup-image-video.sh`; until then the panel shows an install hint). Each voice-over line also gets a "Start (s)" field that places it on the episode timeline, and when the final cut is stitched those rendered lines are now mixed in at their offsets — with any background music automatically ducked beneath the dialogue so speech stays clear. (Commercial music engines like Suno are intentionally not wired up yet.)
- **[vo-mux-preserve-clip-audio-under-ducked-vo] Episode clips that carry their own audio now keep that soundtrack under voice-over.** When a stitched episode's video has its own sound (e.g. from audio-capable AI video models) and you've placed voice-over lines, that clip audio is now preserved and automatically ducked beneath the dialogue — alongside any background music — instead of being silently replaced by the voice-over mix. Silent clips are unaffected.
diff --git a/PLAN.md b/PLAN.md
index 9c97359fb5..8d4e4651f7 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -22,7 +22,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
- [ ] [qwen-image-edit-init-image-required] **Qwen-Image-Edit dispatches without its required init image.** `qwen-image-edit` (registry `mediaModels.js:202`) loads `QwenImageEditPipeline` which requires an `image` arg; the entry is exposed in the normal image-gen model picker which permits text-only submission. Today the user picks the model, submits a text prompt, and the runner crashes deep inside the diffusers pipeline. Options: (a) add an `editOnly: true` flag + validate at `routes/imageGen.js` POST; (b) filter the model from the picker when no source image is uploaded; (c) reroute through a future `/api/image-gen/edit` endpoint.
- [ ] [hidream-requires-hf-token-fail-fast] **Probe HF token upfront for HiDream gated-encoder downloads.** `data.reference/media-models.json`'s HiDream entries carry `requiresHfToken: true`, but `scripts/z_image_turbo.py` `load_external_text_encoder()` does NOT call `probe_hf_auth()` the way `flux2_macos.py:265` does. A user without a valid HF token currently sees a multi-GB download attempt that fails with a 401 deep inside transformers. Mirror the FLUX.2 probe before invoking `transformers.from_pretrained()` on the gated encoder repo.
- [ ] [flux2-runner-sidecar-tests] **Test coverage for `generateImage`'s sidecar `meta` payload.** `server/services/imageGen/local.test.js` exercises `buildArgs` but never asserts on the sidecar `meta` object built inside `generateImage` — including the `referenceImageFilenames` + `referenceImageStrengths` fields. A focused test would need to either factor the meta-builder out of `generateImage` so it's callable without spawning Python, or stub the spawn + assert on the persisted sidecar JSON.
-- [ ] [manuscript-review-sync] **Wire the manuscript-review comment set into cross-install sync.** `data/pipeline-series/{id}/manuscript-review.json` is written as a sibling of the series record but is NOT carried by `exportSeries`/`importSeries` or the peer-sync path. `manuscriptReview.mergeReviewFromSync(seriesId, remoteReview)` (LWW-per-comment) already exists; what's missing is (a) including the review document in the series export bundle, (b) a wire-schema-version gate in `server/lib/schemaVersions.js`, and (c) calling `mergeReviewFromSync` on the receiving side. Accepted *fixes* already sync (they write to issue stage outputs); only the comment list/status/dismissals don't propagate yet.
- [ ] [extract-use-universe-load-hook] **Extract a `useUniverse(universeId)` load hook.** `client/src/components/pipeline/stages/StoryboardsStage.jsx` (~line 57) and `NounsStage.jsx` (~line 149) now run a byte-identical `useMounted` + `let cancelled` + `getUniverse(series.universeId).then(...).catch(...)` effect to load the linked universe record. Extract a `client/src/hooks/useUniverse.js` returning `[universe, loading, error]` (handling the mount/cancel guards internally), register it in the hooks `index.js` barrel + README, and migrate both call sites. Deferred from the wardrobe-picking PR: migrating `NounsStage` is outside that diff's scope and the new module trips the barrel maintenance rule. Surfaced by /simplify (reuse, 2026-06-01).
- [ ] [create-issue-preload-series-for-batch] **`createIssue`'s renumber pass re-reads the series on every call — preload it for batch episode seeding.** `createIssue` (`server/services/pipeline/issues.js`) calls `getSeries()` inside its `renumberInline` pass on every invocation. `commitEpisodesToIssues` (`server/services/pipeline/arcPlanner.js`) creates one issue per episode in a loop, so a 12-episode season does 12 redundant `getSeries()` reads of an unchanging record (and `generateIssuesFromArc` already fetched it once). Add a `createIssueWithPreloadedSeries(series, input)` variant (or a `{ preloadedSeries }` option) that threads the already-fetched series into `renumberInline`, and route the batch loop through it. Pre-existing in `createIssue` (the Pipeline season-episodes route pays the same cost); LLM-bound batch so the realized win is small — surfaced by /simplify (efficiency) during the story-builder-issue-llm-seeding PR (2026-06-01). Deferred because it touches the `issues.js` renumber internals beyond this diff's scope.