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-2918]): log issue #2918 to changelog

[._.]/ Adam Eivy71d55ebac782
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index cae047767b..6c7ba0f428 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -69,6 +69,7 @@
- **[issue-2838] Route inline `fetch('/api/...')` calls through the client service layer** — the Prompt Manager's 13+ raw prompt/provider calls move into a new `services/apiPrompts.js` (stages, variables, job-skills), and the stray inline `/api/` fetches in `ImageGen`, `LocalSetupPanel`, `StagePromptModelPicker`, and `GsdTab` route through existing/new `apiX.js` wrappers. `useTheme`'s settings read/write now go through `apiSystem.getSettings`/`updateSettings` (silent, so the local-storage fallback stays the only error surface), which clears the last inline `/api/` fetch outside `services/`. Behavior-preserving; VideoGen's site was already routed through a service wrapper by the VideoGen split (#2834).
- **[issue-2835] Split the ~2875-line `ArcCanvas.jsx` into per-component files** — each of the 32 subcomponents/helpers (ArcHeader, EditorialRoadmapPanel, SeasonRow, IssueRow, VolumeCoversPanel, …) now lives in its own file under `client/src/components/pipeline/arcCanvas/`, with the shared severity-color map in `arcCanvas/shared.js`. `ArcCanvas.jsx` (default export) is now a thin 122-line composer and still re-exports `ArcRoadmapChart` so its public import path is unchanged. Pure mechanical, behavior-preserving refactor — no rendered-output change.
- **[issue-2836] Extract helpers from `generateManagedAppImprovementTaskForType()`** — the ~533-line function in `server/services/cosTaskGenerator.js` is decomposed into named metadata-building and gate-checking helpers (`buildImprovementTaskMetadata`, `resolveTaskInputHook`, `resolveClaimWorkRouting`, `applyPerpetualWorkGate`, `resolveBranchReconcileBlock`, `resolveIssueReconcileBlock`, `resolveReferenceWatchBlock`, `resolvePrWatcherBlock`), each returning a `{ skip }` / prompt-block result so the main function reads as a thin orchestrator. Prompt resolution (reviewers/author-filter/swarm directives plus the token-replacement chain) moves into `buildImprovementTaskDescription`, and the provider/model/effort pin layering into `applyProviderModelPins`. Behavior-preserving — no change to task generation, park/convergence semantics, or dispatch ordering.
+- **[issue-2918] Extract shared sprite test fixtures** — the candidate-PNG + placeCandidate + lock-anchors chain duplicated across `reference.test.js`, `walk.test.js`, and `atlas.test.js` now lives in one `spriteTestFixtures.js` module, parameterized on each suite's own tmpdir. No behavioral change to any test.
- **Commit the `server/` and `client/` lockfiles** — both were gitignored purely "to reduce merge noise" (`bbeab937d`), which left Dependabot able to see only the ~45 dependencies declared in their `package.json` files and blind to ~560 transitive packages; the repo's entire alert history is one alert against the root lockfile, whose tree has a single direct dep (pm2). CI's `npm install --prefix server|client` steps become `npm ci`, so the two trees holding all application code now resolve deterministically instead of re-resolving on every run and on every user's install. `setup-node`'s npm cache keys off all three lockfiles. `browser/package-lock.json` stays ignored (its `node_modules` is committed instead). Unrelated to the npm-workspaces revert in `b743222be`, which was about exFAT's lack of symlink support.
- **Apply the mergeable Dependabot bumps in one commit** — server `vitest`/`@vitest/coverage-v8` 4.1.9→4.1.10 and `node-pty` 1.2.0-beta.10→beta.14; client `react`/`react-dom` 19.2.7→19.2.8, `vite` 8.0.16→8.1.5, and `@tailwindcss/postcss` 4.3.1→4.3.3. Applied together with regenerated lockfiles because the individual PRs predate lockfile tracking and each ERESOLVE'd in isolation: the two vitest packages must move in lockstep, `@tailwindcss/postcss` was stranded a patch behind the already-merged `tailwindcss` 4.3.3, and Dependabot's `react-dom` PR would have left `react` mismatched at 19.2.7. Holding back `undici` 8 (breaks the DNS-rebinding connect-time IP pinning in `safeUrlFetch.js`, #1859) and `eslint`/`@eslint/js` 10 (`[email protected]` peers at `^9.7`).
- **[issue-2845] Standardize the `loraTraining` sample 404 error envelope** — new `sendErrorResponse`/`buildErrorEnvelope` helpers in `server/lib/errorHandler.js` build the shared `{ error, code, timestamp }` body in one place; `asyncHandler`, `errorMiddleware`, the `res.sendFile` 404 callback in `server/routes/loraTraining.js`, and the `authGate` 401/403 short-circuits now all route through it, so responses raised outside a handler's catch no longer omit `code`/`timestamp`. Mid-response failures (SSE/streaming routes) now delegate to Express's finalhandler so the socket is destroyed instead of the request hanging.