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([issue-1343]): log SSE-runner unification to changelog

[._.]/ Adam Eivy7eb2f72f106f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 3c6908ae5b..88e2bf03b7 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -77,6 +77,8 @@
- **Unify the three pipeline editorial batch runners onto one shared SSE lifecycle.** The manuscript-completeness, editorial-analysis, and editorial-checks runners each carried a near-identical copy of the in-memory run-tracking machinery (active-run map, late-client terminal-frame replay, cancel, and the fire-and-forget coordinator); they now share a single `createSseRunner` factory, so a future fix to the streaming/replay/cancel behavior applies to all three at once. No user-visible behavior change. (`server/lib/sseUtils.js`, the three `server/services/pipeline/*Runner.js` modules, #1338)
+- **[issue-1343] Move the auto-run, volume-beats, and story-builder SSE runners onto the same shared lifecycle.** The three older streaming runners (text-stage auto-run, per-volume beat sheets, and Story Builder step generate/refine) each kept their own copy of the in-memory run-tracking machinery on an *earlier* eviction pattern, so #1338's `createSseRunner` unification left them out. They now share that factory too — extended with optional signature-based coalescing so Story Builder can still tell a refine of one character apart from an in-flight generate. A finished run now reports "not active" the instant it completes (instead of staying active through the brief late-client replay window), which lets Series Autopilot advance to the next step immediately rather than idling out a few-second grace window. No other user-visible behavior change. (`server/lib/sseUtils.js`, `server/services/pipeline/autoRunner.js`, `server/services/pipeline/volumeBeatsRunner.js`, `server/services/storyBuilderRunner.js`, #1343)
+
- **Harden the test-runner database write-guard against less-obvious write forms.** The backstop that stops a misconfigured test run from mutating the real database was anchored on a single leading verb, so data-modifying CTEs (`WITH … DELETE …`), `COPY … FROM` imports, `MERGE`, and a write hidden after a leading read in a multi-statement batch slipped past it. It now matches those verbs anywhere (after stripping comments) while still allowing `COPY … TO` exports and `SELECT … FOR UPDATE` row locks. No store used those forms, so this was latent; the guard is billed as the last line of defense, so it now lives up to it. No user-visible behavior change. (`server/lib/db.js`, #1333)
## Fixed