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([med-pipeline-server-services-pipeline-arcplanner]): remove from PLAN.md and log to changelog
[._.]/ Adam Eivy110a3e255bea
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex a3d162b5fc..b21c2b889d 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -46,6 +46,8 @@## Fixed+- **[med-pipeline-server-services-pipeline-arcplanner] `sanitizeSeasonList` now warns when LLM-emitted seasons collide on id.** `server/lib/storyArc.js#sanitizeSeasonList` dedupes by id with last-write-wins (Map.set overwrite) on every series persist. Two LLM-emitted seasons sharing an id were silently dropped before persist while child issues kept their `seasonId` pointers — leaving the issues attached to the surviving season under the colliding id, which is rarely what an arc-resolve LLM rewrite intended. The helper now tracks colliding ids during the loop and emits a single `console.warn` listing the offending ids (counting both total overwrites and distinct colliding ids) so the responsible run is grep-able in logs. Behavior is preserved (LWW still wins, no throw); the warning is the new signal. Four tests added to `storyArc.test.js` cover the warn, the unique no-warn baseline, the multi-id collision listing, and the same-id-3+-times listing (deduped via Set).+- **HF token banner no longer surfaces in Codex / External mode.** The `needsHfTokenGate` predicate in `client/src/pages/ImageGen.jsx` checked `currentModel?.requiresHfToken && !isFlux2Model` but forgot to also require `isLocalMode`. A user who'd selected a gated mflux model (e.g. FLUX.1-dev) and later switched the backend chip to Codex saw the "Flux 1 Dev is a gated model — paste your HF token" banner over the Codex form, even though Codex uses gpt-image-2 and never touches HuggingFace. The gate now requires `isLocalMode` first, matching the FLUX.2 install/status block right below it.- **v2.1.0 review residue — small-fixes bundle (11 items).** Universe Builder render registration moves before the enqueue loop so the worker can't race past run registration and lose per-image emit coalescing; `seasonCoverSchema` gained `.passthrough()` so a full-series round-trip echoing server-built render fields no longer 400s; `volumePdf.js` sort now uses `arcPosition || number || id` with `?? Infinity` so null-arcPosition issues sink to the end instead of interleaving via the `number` fallback; series PATCH `console.warn`s when legacy `characters` / `settings` / `objects` are stripped so stale-tab POSTs are observable; `promptRunner.js` cwd guard now treats empty-string overrides as absent (matches `tuiPromptRunner`); `loops.js` no longer misclassifies an `onComplete({success:true})` throw as `iteration:error`; dead `|| series.characters` fallback removed from `textStages.js`; `migrateSeriesCanon.js` defers the orphan-series universe-link write until after the canon patch lands so a crash window doesn't leave the series stripped + universe empty; importer warns when arc-extract returns empty `summary` + `logline` before falling back to a synthetic value; `ansiStrip.js` adds a `\x1B(?![@-_\[\]])` second-pass strip so chunks like `\x1B\x1B[31m` no longer leak an orphan escape byte.diff --git a/PLAN.md b/PLAN.mdindex 76982255de..c717324c76 100644--- a/PLAN.md+++ b/PLAN.md@@ -35,7 +35,6 @@ _Nothing currently parked — pick the next item from the Backlog._### v2.1.0 pre-release review residue (deferred from main→release multi-agent review, 2026-05-16)- [ ] [med-migration-scripts-migrations-014-attribute] **[MED][MIGRATION]** `scripts/migrations/014-attribute-existing-annotations.js:43` — if migrations run before first server boot, `instances?.self?.instanceId || 'unknown'` writes the literal `'unknown'` as a phantom peer forever. Defer the migration to first server boot via `ensureSelf()`, or reconcile `unknown`→real id on read.-- [ ] [med-pipeline-server-services-pipeline-arcplanner] **[MED][PIPELINE]** `server/services/pipeline/arcPlanner.js:863-866` — `sanitizeSeasonList` dedupes by id (LWW); two LLM-emitted seasons with the same id silently drop one before persist while child issues stay attached to the still-present id. Add a duplicate-id detector that fails loud or warns.- [ ] [med-pipeline-server-services-pipeline-arcplanner-2] **[MED][PIPELINE]** `server/services/pipeline/arcPlanner.js:929-942` — `buildSeasonRemap` Pass 3 (positional fallback) silently invents wrong mappings when the LLM structurally reshapes the arc. Log a warning when Pass 3 fires; consider only firing when unmatched count ≤ 1.- [ ] [med-pipeline-server-routes-pipeline-js-1416-1452] **[MED][PIPELINE]** `server/routes/pipeline.js:1416, 1452, 470-472, 498-500` — cover render routes always overwrite `script` with the resolved value (treats absent vs empty-string identically). Only update `script` from render when the request body actually carried the field, OR drop script writes from render routes entirely (blur-save owns the field).- [ ] [med-sharing-server-services-sharing-version-js] **[MED][SHARING]** `server/services/sharing/version.js` — `SHARING_SCHEMA_VERSION` not bumped despite series-schema canon-field removal. Cross-peer share-bucket import from a pre-B.4 install silently loses series-side canon. Either bump the version (force refusal) or mirror migration logic in the importer for legacy canon fields.