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([story-builder-sse-progress]): remove from PLAN.md and log to changelog
[._.]/ Adam Eivy7e71b4a02127
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 87e7b515c2..1200494cda 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -6,6 +6,7 @@- **[conflict-journal-media-collections] Media collection name/description/cover edits are now protected when two machines change the same collection.** If a peer's edit to a collection's name, description, or cover image would overwrite a change you made independently, your version is archived to Sharing → Conflicts so you can review and restore it — the same safety net universes and series already had. Images filed into the collection were never at risk (both sides' images are always kept); only the collection's text/cover fields could silently lose an edit, and now they don't.- **[story-builder-issue-llm-seeding] Story Builder can now generate issues straight from the arc.** The issues step gains a "Generate issues from arc" button that breaks every season of your plot arc into episodes and creates one issue per episode — seeded with each episode's logline and synopsis — without leaving the builder for the Pipeline. Locked or empty seasons are skipped and reported rather than blocking the rest, and you can still plan issues in the Pipeline as before.+- **[story-builder-sse-progress] Story Builder generate/refine buttons now show live progress instead of a blank spinner.** Expanding an idea, aesthetic, plot arc, or reader map — and refining any step — now streams its current phase ("Planning the plot arc…", "Saving seasons…") onto the button as it runs, and no longer ties up the page while a long generation finishes. A slow arc overview tells you where it's at rather than leaving you watching a spinner.- **[brain-bucket-chip-reorder] Reorder bookmarks within a bucket by dragging.** On the Brain Links bucket board you can now drag a chip to a new spot inside its own bucket — a marker shows where it will land as you drag — instead of only being able to move chips between buckets or reorder the buckets themselves.- **[local-llm-large-narrative-models] Local LLM install picker now suggests a large narrative / long-context tier.** Added Mistral Large 2 123B, Command R+ 104B, Llama 3.3 70B, Qwen3 30B-A3B, and Google Gemma 4 (31B dense + 26B-A4B MoE, both 256K context, vision) to the curated catalog — workstation-class (64–128GB unified memory) models suited to whole-manuscript editorial review where prose quality and a long context window matter most. Verified Ollama pull ids and sizes; the Gemma 4 builds also ship MLX variants (`gemma4:31b-mlx` / `gemma4:26b-mlx`) for faster inference on Apple Silicon. Qwen3 235B is intentionally omitted (142GB won't fit 128GB).- **[context-aware-editorial-budgeting] Manuscript editorial passes now scale to the target model's context window — whole-manuscript when it fits, chunked when it doesn't.** A new `contextBudget` helper plus a `contextWindow` provider field (inferred large for frontier CLI/cloud providers, from `numCtx` for local Ollama) drive all three passes: the completeness pass ("Finish the draft"), manuscript-fix ("Generate fix"), and per-issue editorial analysis. Big-context models (Claude 4.8 ~1M, GPT 5.5) now receive the entire manuscript in one call instead of being capped at the old hardcoded 200K/48K-char limits; models too small to hold the book chunk by issue — completeness feeds each chunk a digest of prior-chunk findings for cross-chapter continuity and merges with first-wins dedupe, manuscript-fix concatenates per-chunk edits — instead of silently truncating. The completeness/fix API responses now report `chunked` + `chunkCount`, and the Manuscript Editor shows a "Reviewed in N chunks" badge (with an explanatory tooltip) when a review had to chunk. Design record: `docs/plans/2026-05-31-context-aware-manuscript-editorial.md`.diff --git a/PLAN.md b/PLAN.mdindex d1462d4235..0b0e158b74 100644--- a/PLAN.md+++ b/PLAN.md@@ -24,7 +24,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.- [ ] [importer-retry-arcsummary-empty] **Retry's `arcSummary` uses `||` truthiness, dropping an intentionally-cleared summary.** `runRetryIssues` in `Importer.jsx` builds `arcDraft?.summary || arcDraft?.logline || ''`, so clearing the summary in Review falls back to the logline rather than sending none — violates the absent-vs-intentionally-empty rule. Non-fatal. Fix: treat `summary === ''` as an intentional clear (`summary == null ? logline : summary`).- [ ] [comic-allcaps-continuation-vs-cue] **`normalizeBareComicScript` in `server/lib/comicScriptParser.js` (~line 193) can misread a short all-caps continuation line (e.g. a bare `STOP` mid-balloon) as a new speaker cue.** The continuation branch's `!BARE_SPEAKER_LINE.test(t)` guard exists so a genuine second speaker opens a new balloon — but an all-caps shouted continuation with no punctuation matches the same shape. A proper fix needs one-line lookahead (a real cue is followed by its own dialogue line; a trailing shout is followed by a marker/EOF) — which means converting the `for…of` line loop to indexed iteration. Deferred as IMPROVEMENT: flipping the heuristic instead would regress the more-common multi-speaker case.- [ ] [voice-taskcomplete-announce-once-guard] **`onTaskUpdated` in `server/services/voice/proactiveTriggers.js` (~line 193) re-announces if an already-completed voice-dispatched task is updated again.** The spoken "your coding task is done" line keys on `tasks:changed action:'updated'` + terminal status + `voiceDispatch`, with no record of already-announced task ids — so a future caller that runs `updateTask` on an already-completed voice-dispatched task would re-fire the announcement. Fix: track announced task ids in a `Set` in the closure (clear on unwire), OR gate on the previous→terminal status *transition*. Low severity — deferred per YAGNI since the re-update path doesn't exist today.-- [ ] [story-builder-sse-progress] **SSE streaming for long generations.** `generateStep`/`refineStep` are synchronous request/response — fine for arc/reader-map but a long arc-overview blocks the button with only a spinner. Add a `GET /api/story-builder/:id/steps/:stepId/progress` EventSource endpoint (reuse `client/src/hooks/useSseProgress.js`) and stream stage progress like the pipeline auto-run does.- [ ] [story-builder-arc-refine-feedback] **AI refine-with-feedback for the plot-arc step.** `refineStep` supports `universeAesthetic`, `readerMap`, and `characters`, but `plotArc` only offers full regenerate (`generateArcOverview`) — there's no "refine the arc against this note" path. Add an arc-refine prompt + `refineArc` in `arcPlanner.js` and wire it into `refineStep`'s `plotArc` branch + the `StepPanel` plotArc RefineBox.- [ ] [story-builder-embed-arccanvas] **Embed `ArcCanvas` / `StoryShapes` inline instead of read-only field blocks.** The plotArc + readerMap steps currently render read-only `FieldBlock`s + a deep-link to the Pipeline for editing. Reuse `client/src/components/pipeline/ArcCanvas.jsx` and the Vonnegut `StoryShapes` sparkline inline (and a beat timeline for the reader map) so editing happens in-builder. Deferred because `ArcCanvas` has a wide prop surface; the deep-link covers editing for v1.- [ ] [story-builder-create-rollback] **`createStorySession` seed mode leaves an orphan universe if `createSeries` throws.** `server/services/storyBuilder.js` creates the universe shell, then the series shell, with no rollback — a `createSeries` failure leaves a stray universe (which also fired peer auto-subscribe) with no session pointing at it. Wrap the two creates so a series failure deletes the just-created universe, or create the series first.