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([migration-043-line-ending-precedent]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivya7407b3a116f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index dc1d521f28..5b1a5d68d3 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -33,6 +33,7 @@
- **[mediacollections-deterministic-loadone-fastpath]** Universe/series media-collection lookups now resolve their linked bucket in one direct read instead of scanning every collection, trimming the work done on each cross-machine sync push (no user-facing change).
- **[data-versioning-centralize-cosagents-settings] Saving settings is now crash-safe and serialized.** `settings.json` is written through the shared atomic temp-file/rename writer and overlapping saves run one at a time, so a mid-write crash can no longer truncate the file and two near-simultaneous settings changes can no longer clobber each other (no user-facing change).
- **[setup-data-import-drift-tables-from-migrations]** The setup script's "a prompt migration is pending" warning now derives its hash tables directly from the migration files instead of a hand-maintained copy, so the warning can't silently fall out of sync when a new prompt migration ships (no user-facing change).
+- **[migration-043-line-ending-precedent]** Documented in the story-builder prompt seed migration that a future migration amending those prompts must switch to the hash-driven update pattern (no user-facing change).
- **[cos-on-demand-mark-app-review-started-dedupe]** When several on-demand improvement requests for the same app are processed in one CoS dispatch cycle, the app's activity record is now marked review-started once instead of once per request (no user-facing change).
- **[shared-tolerant-fetch-json-helper]** Hardened the HTTP clients that talk to local model backends, the managed browser, and the background agent runner: a non-JSON/HTML error response now surfaces the real error instead of crashing with "Unexpected token <", via one shared tolerant JSON-body reader (no user-facing change).
- **[tolerant-fetch-json-additional-clients]** Extended that same tolerant JSON-body reader to the remaining fetch clients (calendar/message sync, the memory and insights LLM calls, the local-LLM playground, Civitai, Telegram, and the code-review runner), so a non-JSON/HTML error body surfaces the real error instead of crashing — and the code-review runner now reports the server's actual error text instead of a misleading "no content" (no user-facing change).
diff --git a/PLAN.md b/PLAN.md
index cd3c073c47..ee82930ccb 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -39,7 +39,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
- [ ] [story-builder-refine-returns-provider] **`refineStep('readerMap')` drops `providerId`/`model` from the conductor's return.** Every other refine branch surfaces them so the route/UI can show which model ran; the readerMap branch destructures `runId` only. Two-line fix (local-review SC-6, 2026-05-27).
- [ ] [story-builder-refine-fallback-changes] **`refineReaderMap` returns `changes`/`rationale` describing a refine attempt that was discarded in favor of the existing map.** When the LLM payload is empty, the function falls back to `arc.readerMap` but still surfaces the change list the LLM described. Fix: when falling back, clear `changes` and `rationale`. (local-review SC-7, 2026-05-27).
- [ ] [story-builder-hash-shape-vs-derivation-tests] **storyBuilder.test.js asserts `upstreamHash` is a 64-char hex string but never that it equals `hashUpstream(stepId, inputs)`.** A buggy implementation that always stamped `hashUpstream('idea', null)` would also pass. Import `hashUpstream` and assert exact equality so future input-set drift surfaces as a test failure. (local-review SC-8, 2026-05-27).
-- [ ] [migration-043-line-ending-precedent] **Migration 043 (story-builder prompts) is first-shipment-only — no OLD_SHIPPED_MD5 hashing.** Correct today (the prompts haven't shipped to anyone). But the precedent matters: when a future migration AMENDS these prompts, follow migration 003's pattern — normalize line endings before hashing, and ship both `OLD_SHIPPED_MD5` and `NEW_SHIPPED_MD5`. Add a one-line reminder comment to the migration. (local-review SS-3, 2026-05-27).
- [ ] [style-probe-image-uses-draft-not-saved] **`<StyleProbeImage>` in Universe Builder renders against the in-memory draft but persists the resulting filename to the SERVER's saved record.** A probe image semantically built from in-progress styleNotes/influences gets pinned to a saved universe whose actual style fields are still on the prior values; once the user discards the draft, the styleImageRefs persists on a record that never had those style notes. Either gate `canRender` on `!draftDirty`, or warn when the draft has uncommitted style changes. (local-review C-5, 2026-05-27).
- [ ] [llm-playground-preserve-partial-output] **A timed-out / aborted playground run discards everything the model already streamed.** `streamChatCompletion` (`server/services/localLlmPlayground.js`) accumulates `output` locally; on an `AbortError` it throws, the `runLocalLlmTest` catch returns `text: ''`, and `ResultPanel` (`client/src/pages/LocalLlmPlayground.jsx`) shows only the error (the `result.error ? <error> : <pre>{result.text}</pre>` branch hides text whenever error is set). Surface the partial stream: thread the accumulated text out of the throw (or accumulate it in `runLocalLlmTest`'s `onChunk`) and render it alongside the timeout error. Deferred — needs a UI change to show partial-text-plus-error, not just a server tweak. (local-review SS, 2026-05-31).
- [ ] [llm-playground-cancel-in-flight] **No way to cancel an in-flight playground run (up to a 10-minute timeout).** The Run button only locks via `busy`; there's no client `AbortController` / Cancel affordance. Add a Cancel button wired to a client-side `AbortController` passed into `testLocalLlmModel`/`compareLocalLlmModels` (the request options already spread through `apiCore`); aborting the client fetch also closes the server reader early. Deferred as a UX feature, not a bug. (local-review CT, 2026-05-31).