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([insights-callprovider-nonjson-test]): capture shared-fetch-response-test-mock follow-up
[._.]/ Adam Eivy365987359ebd
diff --git a/PLAN.md b/PLAN.mdindex cd3c073c47..3655944819 100644--- a/PLAN.md+++ b/PLAN.md@@ -6,6 +6,7 @@ For project goals, see [GOALS.md](./GOALS.md). For completed work, see [.changelClaimable, well-specified, no decision needed — `/claim`-able. Unordered.+- [ ] [shared-fetch-response-test-mock] **Extract a shared fetch-`Response` mock helper for the server test suites.** The `const okResponse = (body) => ({ ok: true, status: 200, text: async () => body })` (and `json:`-style variants) is now hand-rolled inline across several server tests — `insightsService.test.js`, `calendarApiSync.test.js`, `messageApiSync.test.js`, `codeReview.test.js`, `civitai.test.js`, `civitaiSuggestions.test.js`, `loras.test.js`, `localLlmPlayground.test.js` — and `cosRunnerClient.test.js` already defines a `mockResponse(ok, data)`. Promote one `mockJsonResponse({ ok, status, body })` / `mockTextResponse(...)` helper (a test-utils module the suites import) and migrate the inline copies so a future `readResponseJson`-style change to the body-read mechanism is a one-file edit, not N. Surfaced repeatedly by /simplify reuse review across the tolerant-fetch-json PRs (2026-06-01).- [ ] [conflict-journal-media-collections] **Conflict journal does not cover media-collection scalar overwrites.** `mergeMediaCollectionsFromSync` (`server/services/mediaCollections.js`) LWW-overwrites scalars (name/description/coverKey/universeId/seriesId) when `remoteWins`; items are union-merged (never lost). v1 hooks only universe + series merges because the whole-record content hash used by `conflictJournal.detectConflict` would false-positive on collections whenever items differ. Doing it right needs scalar-subset hashing that stays consistent with the sender-side base hash. Low value (scalar loss is minor), deferred.- [ ] [conflict-journal-issues] **Issue-level conflict journaling.** The share-bucket importer hook (`server/services/sharing/importer.js` `applyAutoMerge`→`mergeOne`) is gated to `universe`/`series`; child issues ride LWW silently. Extend the journal to issues (needs the issue merge path to thread a `source` + call `maybeJournalBeforeOverwrite`).- [ ] [conflict-journal-deep-diff] **`diffSummary` is top-level shallow only.** `conflictJournal.diffSummary` compares top-level fields via canonicalStringify, so the UI shows "categories differ" rather than which variation/canon entry changed. Add per-field deep diffing for richer InlineDiff rendering in the Conflicts tab.