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
Merge remote-tracking branch 'origin/main' into claim/nav-route-manifest-coverage-guard
[._.]/ Adam Eivyccdafe81d337
diff --cc .changelog/NEXT.mdindex f5b4cc26b9,ba1d2c240d..19f77429b2--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -79,7 -80,7 +80,8 @@@- **[prune-orphan-subscriptions-for-deleted-records] Deleting a synced record no longer leaves a dead sharing subscription behind.** Once a deleted universe, series, or collection is finally cleaned up, its leftover per-peer sharing subscriptions are swept away with it — so the sync logs stop reporting phantom "pending pushes" for records that no longer exist. Internal housekeeping with no change to what you share.- **[shared-optional-provider-picker]** The Importer and Universe Builder now render the same shared provider/model picker as the rest of the app instead of each hand-rolling their own inline copy. Same controls and behavior; the two selectors pick up the app's standard dropdown styling, so they look consistent with every other provider picker.- **[health-test-updatesettingswith-mock]** Restored the system-health route test suite after a settings-helper migration left its mock incomplete (test-only fix, no user-facing change).+- **[nav-route-manifest-coverage-guard]** Added a test that fails the build if a newly added page route isn't registered in the navigation manifest, so a page can no longer ship unreachable from the command palette and voice navigation (no user-facing change).+ - **[memory-mgmt-new-endpoint-tests]** Added test coverage for the five memory-management endpoints (model load/unload, whisper start/stop, TTS status/unload) so future regressions surface as test failures (test-only, no user-facing change).## Fixeddiff --cc PLAN.mdindex 20c8b99678,7328c40ad2..4a13b098bd--- a/PLAN.md+++ b/PLAN.md@@@ -6,8 -6,7 +6,8 @@@ For project goals, see [GOALS.md](./GOAClaimable, well-specified, no decision needed — `/claim`-able. Unordered.+- [ ] [nav-tabbed-page-coverage-guard] **Extend nav coverage to tabbed (`:tab` param) pages.** The `nav-route-manifest-coverage-guard` test in `server/lib/navManifest.test.js` deliberately skips every `:param` route, so a missing `NAV_COMMANDS` entry for a *tab* of a tabbed page can still slip through. The existing `TABBED_PAGES` contract in the same file covers only 4 sections (`/brain`, `/cos`, `/digital-twin`, `/meatspace`) because those export a clean `TABS` constant. The remaining tabbed pages have NO uniform tab list to assert against: `Calendar.jsx` uses a *local* (non-exported) `const TABS = [{id,…}]`, `Settings.jsx` has no list at all (a bare `switch (tab)` over `case 'general'`/`'backup'`/…), and `/goals/:tab`, `/insights/:tab`, `/messages/:tab`, `/wiki/:tab`, `/sharing/:section` are each their own shape. Add a per-page tab-source adapter (export a `TABS` constant from each page, or a small switch-arm/local-array extractor) and feed those into the `TABBED_PAGES`-style contract so every tab id round-trips to a `NAV_COMMANDS` path. Deferred from `nav-route-manifest-coverage-guard` review (codex, 2026-06-02): a separate guard with its own per-page parsing + false-positive surface, outside that item's "non-param route" scope.- - [ ] [story-builder-import-partial-commit] **Import flow doesn't handle a partial commit.** `ImportPanel.importAndBuild` calls `commitImport` once; if it fails after the universe/arc/canon persist but the issue-create rolls back, it just toasts a generic error. Re-clicking re-sends the full payload — a retry could duplicate issues. The standalone `Importer.jsx` guards this with the `arcAlreadyPersisted` retry (sends `arc:null, seasons:[]`). Either reuse that path or surface a "open in the Importer to recover" link.+ - [ ] [story-builder-import-commit-ok-session-fail] **A successful import commit followed by a failed `createStorySession` can still duplicate issues on re-click.** `ImportPanel.importAndBuild` (`client/src/pages/StoryBuilder.jsx` ~line 225) now handles the *issue-loop* partial-commit (issues rolled back → `arcAlreadyPersisted` retry sends issues-only). But there's a later edge: if `commitImport` *succeeds* (issues created, `arcAlreadyPersisted` reset to false at ~line 264) and then `createStorySession` *fails*, the panel stays mounted with `preview` set; re-clicking re-runs the FULL `commitImport`, re-creating the already-created issues and overwriting the arc. This is StoryBuilder-specific (Importer.jsx has no session-creation step) and not a regression (pre-PR code duplicated on any re-click). Fix: after a successful commit, track `committedSeriesId`/`committedUniverseId` (or a `committed` flag) and on a subsequent click skip `commitImport` entirely, resuming at `createStorySession` — so a session-creation failure retries only the session, never re-commits. Deferred from the partial-commit PR (#677): distinct failure path needing its own committed-state machine; flagged LOW non-blocking by the claude review.- [ ] [arccanvas-sync-shared-hook] **Cleanup: extract the ArcCanvas host-wiring into a shared hook.** `client/src/pages/PipelineSeries.jsx` and `client/src/pages/StoryBuilder.jsx` (the `StoryBuilderDetail` wiring added by `story-builder-embed-arccanvas`) both hand-roll the same `lastSavedRef` + `updateSeriesFromServer` + `handleIssuesUpdate` + `flushPending` contract ArcCanvas expects. The two `flushPending` field-sets diverge (PipelineSeries flushes 10 bible fields + cover/style overrides; StoryBuilder only 6 and treats it as a near-no-op), and PipelineSeries also carries `patchSeries`/`handleSave`. Extract `useArcCanvasSync({ series, setSeries, setIssues, flushFields })` → `{ updateSeriesFromServer, handleIssuesUpdate, flushPending }` in `client/src/hooks/` and migrate both callers. Deferred from the embed PR because it's a 2-file refactor (touches PipelineSeries) with its own review surface.- [ ] [story-builder-extract-image-render-hook] **Cleanup: the image-render lifecycle is duplicated 5×.** `StepCharacters` (StoryBuilder.jsx) + `StyleProbeImage.jsx` each re-implement `getSettings → readPipelineImageSettings → imageCfg` + a single-render jobId lifecycle, and `StepCharacters` near-verbatim copies `UniverseCanonSection`'s styled-render-and-persist routine. Extract a `useImageRenderSettings()` + `useSingleImageRender({ buildPrompt, onComplete })` hook and a shared canon styled-render helper. Also: `ProviderModelPicker` (StoryBuilder.jsx) duplicates the Importer's `LlmPicker` + `SeriesLlmPicker`/`FeatureProviderPicker`/`StagePromptModelPicker` — promote one shared provider/model picker.- [ ] [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).