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

Merge remote-tracking branch 'origin/main' into better/pipeline-continuity-approval

[._.]/ Adam Eivy7fb2444f2dc1
diff --cc .changelog/NEXT.md
index dfcd547460,e4a415aa1a..e8fb936d88
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -2,9 -2,7 +2,10 @@@
## Added
+- **Season-lock-aware arc resolve.** `commitSeasonsWithRemap` now restores locked seasons field-for-field over LLM-proposed rewrites (via a new `mergeSeasonsWithLocks` helper) and re-inserts any locked season the LLM drops from the new shape. Auto-resolve + `/arc/generate` honor per-season `locked: true` flags without needing to unlock the whole arc — mirrors the per-field arc-lock pattern.
+- **`worldEntitiesSummary` template variable in text-stage prompts.** New `renderEntitiesSummary` helper in `server/lib/universePromptRenderers.js` produces a compact one-line-per-kind synopsis of a linked universe's named canon (top-N entries per kind, 80-char descriptor cap). Plumbed into `loadWorldContext` (arc/verify/resolve contexts) and `textStages.buildStageContext` (per-issue prose/teleplay/comic-script). Migration 027 updates the three text-stage prompts to reference `{{worldEntitiesSummary}}` in a new "Universe at a glance" block.
+- **Character bible `speechPattern` field.** Splits the historic `speechAccent` (regional/cultural accent) from the new dedicated `speechPattern` (cadence, sentence structure, lexical tics, recurring phrases — distinct from `voiceId`, which is the TTS engine pointer). Field is piped through the sanitizer + `MERGE_CONFIG`, the universe character-expand contract + prompt, the rendered reference-sheet header, the `CharacterDetailEditor.jsx` UI, and the prose/teleplay/comic-script character render mustache so dialogue carries the character's prose voice. Migration 027 handles existing installs.
+ - **Delete affordance for character reference sheets.** New trash button on `CharacterReferenceSheetPanel` (inline `[Cancel] [Delete sheet]` confirm row) backed by `DELETE /api/universe-builder/:id/characters/:entryId/reference-sheet`. Server unlinks the PNG from `data/image-refs/` and eagerly purges every matching `referenceSheetImageRef` pointer across all universes via a new `purgeReferenceSheetFromAllUniverses(filename)` helper. Locked characters' sheets stay delete-protected (`UNIVERSE_CANON_LOCKED` 409, mirrors the renderer's lock guard).
- **Per-stage editorial locks on Pipeline issues.** Each `issue.stages.{id}` now carries a `locked` flag; locked stages refuse regeneration (text generate, image / video enqueue, refine, extract-scenes / extract-pages, audio extract / render, episode-video fresh start, cover-concepts commit). UI exposes a lock toggle on every Pipeline Issue tab and renders a per-stage Lock indicator on the TabPills strip, so users can freeze a finalized comic script while still iterating storyboards.
- **Per-field arc locks on series.** `series.locked.arcFields` is an opt-in sub-map (`{ logline, summary, themes, protagonistArc, shape }`); locked fields are preserved verbatim through `commitSeasonsWithRemap` so arc regenerate + auto-resolve only rewrite the unlocked fields. Inline lock icons on the Arc Canvas read view toggle each field.
- **Pagination on `GET /api/pipeline/series/:id/issues`.** Accepts optional `?offset=N&limit=N`; when present, returns `{ items, total, offset, limit }`. Without the params, the endpoint still returns the legacy raw array. Eliminates the silent 1000-issue cap for long-running series.