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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs([comic-script-generation-panel-hardening]): remove from PLAN.md and log to changelog
[._.]/ Adam Eivy3f132755e14a
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex cba37a9ee4..aaeb321531 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -22,6 +22,7 @@## Changed+- **[comic-script-generation-panel-hardening] Comic scripts now reliably break each page into discrete panels.** The script generator is now explicitly told never to put action, dialogue, or scene content in a page's description — that's reserved for short layout notes — and that every page must split into 4–6 numbered panels. This prevents the occasional malformed page that dumped a whole scene into the page header with no panel breakdown (which the comic renderer couldn't draw). Existing installs auto-upgrade unless they've customized the comic-script prompt.- **[conflict-source-attribution] Sync conflicts now record which machine they came from.** When two of your machines edit the same universe, series, or issue and one push loses, the archived entry in Sharing → Conflicts now names the peer it collided with instead of showing an empty source — so you can tell which machine's edit you're reviewing. Previously every conflict was logged as an anonymous "sync".- **[conflict-restore-additive] "Restore mine" in Sharing → Conflicts is now a faithful restore of your whole version.** Restoring a universe's archived version now replaces its categories exactly as your version had them — a category that slipped in from the other machine's edit (after the timestamp-overwrite) is removed, instead of lingering. Merging back a single field still overlays it without disturbing the rest of the record.- **[series-merge-season-rehoming] Merging two series now keeps each issue in its season.** When you merge a duplicate series into another, issues that belonged to a season are placed into the surviving series' matching season (paired by season number) instead of all landing un-grouped for you to re-file by hand. Issues that had no season stay un-grouped, as before.diff --git a/PLAN.md b/PLAN.mdindex 4e8daca3e5..fbd162bdbc 100644--- a/PLAN.md+++ b/PLAN.md@@ -25,7 +25,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.-- [ ] [comic-script-generation-panel-hardening] **Harden `pipeline-comic-script.md` to prevent content-in-page-description malformation at generation time.** The `comic-structure` editorial-review category (migration 057) catches pages where all content landed in the page-level description instead of panel definitions — that's a detection layer; the root fix is in the generation prompt. Add explicit rules to `data.reference/prompts/stages/pipeline-comic-script.md`: (a) "NEVER put action, dialogue, or scene content in the page-level description — that is ONLY for layout intent (1–3 lines max)"; (b) "Every page MUST have 4–6 discrete `Panel N` blocks with `Description:`, `Caption:`, `Dialogue:`, and `SFX:` fields." Add a migration alongside the prompt change.- [ ] [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.- [ ] [season-continuity-extract-honors-series-llm] **Season-episodes continuity extract doesn't honor the series LLM (or a model override).** The continuity `extractCanonFromProse` call in `generateSeasonEpisodes` (`server/routes/pipeline.js`, the `if (body.commit)` block) passes only `providerOverride: body.providerOverride` — no `series.llm` fallback and no `modelOverride` — so it falls back to the global active provider instead of the series-pinned LLM. Not a correctness bug, just an inconsistency. Add the same `providerMatchesSeries`-guarded provider/model resolution used by the extract-canon and extract-scenes routes.- [ ] [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).