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([memory-mgmt-new-endpoint-tests]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivy2fca5f685f51
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index a238c3fd6f..b0c8c819a3 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -79,6 +79,7 @@
- **[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).
+- **[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).
## Fixed
diff --git a/PLAN.md b/PLAN.md
index 9c97359fb5..47f72bd0b4 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -18,7 +18,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
- [ ] [consolidate-client-url-normalize] **Consolidate client-side URL normalization.** Three components prepend `https://` to a bare URL with near-identical logic: `normalizeUrl` in `client/src/components/brain/tabs/LinksTab.jsx`, the inline block in `client/src/components/QuickBrainCapture.jsx` (~line 34, with `URL_PATTERN`/`DOMAIN_PATTERN` regexes), and `client/src/components/brain/tabs/FeedsTab.jsx` (~line 50, no `git@` handling). Extract one `normalizeUrl`/`isUrl` pair to a shared `client/src/utils/` helper and migrate all three. Must preserve each one's subtly different behavior (FeedsTab ignores `git@`; QuickBrainCapture splits detection from normalization).
- [ ] [hidream-qwen-loras-runner-consumers] **Wire HIDREAM/QWEN through `client/src/pages/Loras.jsx`.** `imageGenResolutions.js` was extended on 2026-05-28 (`compatibilityKey` now returns HIDREAM/QWEN as their own keys). Still pending: `client/src/pages/Loras.jsx` `RUNNER_LABELS` / `RUNNER_BG_COLORS` / Top-LoRA section list omit HIDREAM/QWEN so the LoRA picker shows them as unlabeled / no badge color.
- [ ] [wan22-hunyuan-setup-pin-shas] **Pin Wan22 / HunyuanVideo MLX clones to known-good commit SHAs.** `scripts/setup-image-video.sh` defaults `WAN22_PIN="${WAN22_PIN:-main}"` and `HUNYUAN_PIN="${HUNYUAN_PIN:-main}"`. Floating `main` on two community-maintained ports means every new install gets whatever HEAD is on those repos that day. Replace the default with a tested SHA for each; let users override via the env var.
-- [ ] [memory-mgmt-new-endpoint-tests] **Add tests for the 5 new memory-management routes.** `/api/local-llm/loaded`, `/api/local-llm/unload`, `/api/voice/whisper`, `/api/voice/tts/status`, `/api/voice/tts/unload` have no test coverage. Add focused happy-path + validation-rejection tests so future regressions in the schema-parity fixes (or the `unloadModel` residency check) surface as test failures.
- [ ] [qwen-image-edit-init-image-required] **Qwen-Image-Edit dispatches without its required init image.** `qwen-image-edit` (registry `mediaModels.js:202`) loads `QwenImageEditPipeline` which requires an `image` arg; the entry is exposed in the normal image-gen model picker which permits text-only submission. Today the user picks the model, submits a text prompt, and the runner crashes deep inside the diffusers pipeline. Options: (a) add an `editOnly: true` flag + validate at `routes/imageGen.js` POST; (b) filter the model from the picker when no source image is uploaded; (c) reroute through a future `/api/image-gen/edit` endpoint.
- [ ] [hidream-requires-hf-token-fail-fast] **Probe HF token upfront for HiDream gated-encoder downloads.** `data.reference/media-models.json`'s HiDream entries carry `requiresHfToken: true`, but `scripts/z_image_turbo.py` `load_external_text_encoder()` does NOT call `probe_hf_auth()` the way `flux2_macos.py:265` does. A user without a valid HF token currently sees a multi-GB download attempt that fails with a 401 deep inside transformers. Mirror the FLUX.2 probe before invoking `transformers.from_pretrained()` on the gated encoder repo.
- [ ] [flux2-runner-sidecar-tests] **Test coverage for `generateImage`'s sidecar `meta` payload.** `server/services/imageGen/local.test.js` exercises `buildArgs` but never asserts on the sidecar `meta` object built inside `generateImage` — including the `referenceImageFilenames` + `referenceImageStrengths` fields. A focused test would need to either factor the meta-builder out of `generateImage` so it's callable without spawning Python, or stub the spawn + assert on the persisted sidecar JSON.