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
address release review: honest workout-tool desc + clarify peer-fanout test guard, capture 6 deferred follow-ups
Adam Eivyf449df6579bc
diff --git a/PLAN.md b/PLAN.mdindex 89a25c2cde..f1484ca8fd 100644--- a/PLAN.md+++ b/PLAN.md@@ -110,6 +110,11 @@ Surfaced during code review of the federated-media-collection-sync feature and c- [ ] [ollama-linux-systemd-enable-not-start] **Linux "Run at Startup" only starts Ollama for the current boot.** The systemd controller in `getServiceController` (`server/services/ollamaManager.js:80-82`) uses `systemctl start`/`stop` and `getServiceStatus` (line 109-120) treats `is-active` as `runAtStartup`, so the UI claims the service will run at login even though it won't survive a reboot (macOS `brew services start` IS persistent, so the contract is platform-inconsistent). Fix: Linux start → `systemctl enable --now ollama`, stop → `systemctl disable --now ollama`, and split status into `is-enabled` (→ `runAtStartup`) vs `is-active` (→ `running`) as two queries. Surfaced during v2.8.0 release review (codex, P2). Deferred: Linux-only path, untestable on the macOS dev machine, zero existing test coverage, privileged systemctl semantics — land it where it can be exercised on a real systemd host.- [ ] [migration-037-history-streaming] **History JSON→JSONL migration loads the whole file into memory.** `scripts/migrations/037-history-json-to-jsonl.js` reads all of `history.json` (and any existing `.jsonl`) and stringifies the union — fine for typical history sizes, but a very large action-history file could spike heap at upgrade time. Convert to a streaming/append-only line-by-line rewrite if large histories become a problem. Surfaced during v2.8.0 release review (gemini, IMPROVEMENT). Deferred: one-shot migration, speculative for realistic sizes.- [ ] [localllm-env-atomic-write] **`.env` backend marker write is non-atomic.** `writeBackend` in `server/services/localLlm.js` (~line 94) uses `writeFileSync` to rewrite `.env`; a crash mid-write could corrupt it. `atomicWrite` (temp+rename, passes strings through unchanged) would make it crash-safe — but `writeBackend` is currently sync and the write is tiny/rare. Surfaced during v2.8.0 release review (gemini, IMPROVEMENT). Deferred: requires a sync→async ripple for a microsecond-wide crash window.+- [ ] [meatspace-workouts-read-path] **`getWorkouts()` is a write-only feature today.** Voice (`meatspace_log_workout`) and the palette can *write* workouts via `addWorkout` (`server/services/meatspaceHealth.js:194`), and `getWorkouts()` (line 189) is exported, but it has zero consumers — no route, no UI, no test reads workouts back. Wire a `GET /api/meatspace/workouts` route + a MeatSpace tab section so logged workouts are visible. Surfaced during v2.9.0 release review (claude, NIT). Deferred: feature-completion follow-up; the write side works and is tested.+- [ ] [datasync-route-forpeer-test] **Route-level `forPeer` + `videoHistory` coverage gap.** `server/routes/dataSync.js` threads the `forPeer` query param (incl. the `typeof === 'string'` array-drop guard) and the new `videoHistory` category to `getSnapshot`/`getChecksum`, but coverage exists only at the service layer (`dataSync.pipelineUniverse.test.js`). Add a route test asserting `?forPeer=x` reaches the snapshot/checksum calls and that a repeated `?forPeer=a&forPeer=b` (array) drops to `undefined`. Surfaced during v2.9.0 release review (claude, NIT). Deferred: test-coverage gap only, no correctness defect.+- [ ] [voice-calendar-dst-allday-edge] **Calendar voice tools have DST + all-day edge cases.** `calendar_today`/`calendar_next` (`server/services/voice/tools.js` ~1494-1525) anchor local-midnight using `getUtcOffsetMs(new Date(), tz)` (offset at *now*), so on a DST-transition day an event within ~1h of the day boundary can be dropped/double-counted; and `calendar_next` skips an all-day event occurring *today* because its start is at past local-midnight. Compute the offset at the local-midnight instant, and treat today-or-later all-day events as still "upcoming." Surfaced during v2.9.0 release review (claude, NIT). Deferred: negligible single-user edge, twice-a-year window.+- [ ] [voice-vision-pinned-text-model] **`ui_describe_visually` reuses the voice text model for vision.** `describeScreenshot` (`server/services/voice/pipeline.js:602`) + `ui_describe_visually` (`tools.js:1356`) send the screenshot to `cfg.llm.model` when the user has pinned a non-`'auto'` voice model. If that pinned model is text-only, the chart description is empty/garbage (degrades gracefully to a clean error, no crash; the `'auto'` default is fine). Route vision through a dedicated vision-provider config, or validate vision-capability and message accordingly. Surfaced during v2.9.0 release review (claude, NIT). Deferred: only bites a non-default pinned-model config.+- [ ] [ltx2-utils-constants-qualified] **LTX2 negative-prompt patch imports a generic top-level module.** `scripts/generate_ltx2.py:92` tries `("utils", "constants")` to override `DEFAULT_NEGATIVE_PROMPT`; `utils` is a very generic top-level package name in a shared venv and could be shadowed (the `hasattr(...)` guard makes a wrong-module *write* improbable, so this is defense-in-depth only). If the real module is namespaced under the ltx package, prefer the fully-qualified import path. Surfaced during v2.9.0 release review (claude, NIT). Deferred: guarded; cosmetic robustness.## Future Ideasdiff --git a/server/services/voice/tools.js b/server/services/voice/tools.jsindex 3500b37116..e29eed5ea2 100644--- a/server/services/voice/tools.js+++ b/server/services/voice/tools.js@@ -1558,7 +1558,7 @@ const TOOLS = [{name: 'meatspace_log_workout',description:- 'Log a workout / exercise session to MortalLoom / Meatspace tracking. Use when the user says "log a workout", "I went for a 30 minute run", "did an hour of yoga", "lifted weights for 45 minutes". The `type` is free-form (run, yoga, lifting, cycling, swim, etc.). Duration and intensity are optional.',+ 'Log a workout / exercise session to Meatspace tracking. Use when the user says "log a workout", "I went for a 30 minute run", "did an hour of yoga", "lifted weights for 45 minutes". The `type` is free-form (run, yoga, lifting, cycling, swim, etc.). Duration and intensity are optional.',parameters: {type: 'object',properties: {diff --git a/server/vitest.setup.js b/server/vitest.setup.jsindex d97f84b2bc..d88a13e629 100644--- a/server/vitest.setup.js+++ b/server/vitest.setup.js@@ -7,6 +7,14 @@* to any registered peers (e.g. the user's `null` sync machine). Without a* global guard, every `npm test` run creates spurious records on live peers.*+ * Forcing `getPeers → []` is sufficient to stop the fan-out on its own:+ * `autoSubscribeRecordToAllPeers` early-returns the moment the target list is+ * empty, before any `subscribePeer`/HTTP work — so the `peerSync.js` module+ * may still get dynamically imported, but it issues no network calls. A suite+ * only needs the additional `peerSync.js` mock (per the CLAUDE.md convention)+ * when it wants to *assert against* the peer-sync import path, not to suppress+ * fan-out, which this guard already handles.+ ** WHAT: This file is loaded by Vitest as a `setupFiles` entry (see* `vitest.config.js`). It registers a global `vi.mock` for* `services/instances.js` that forces `getPeers` to return `[]` while