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([universebuilder-collection-hook-flaky-batch-enrich]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivy17299f7de034
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 55c7fc1227..c259a2c170 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -12,6 +12,7 @@
## Fixed
+- **[universebuilder-collection-hook-flaky-batch-enrich] Universe Builder batch-enrich test no longer flakes under full-suite load** — internal test stability fix; production behavior unchanged.
- **[feeds-ssrf-ipv6-bracket-hostname-gap] RSS feed subscriptions now reliably reject IPv6 loopback, link-local, and unique-local addresses** — previously the loopback `http://[::1]/feed` case was blocked only incidentally by DNS errors; subscribing to feeds at literal private IPv6 addresses is now refused outright, including IPv4-mapped variants like `[::ffff:192.168.1.1]`.
- **[legacy-series-canon-orphan-universe-leak-on-throw] Retrying a failed peer-share import no longer leaves empty "(auto-migrated)" universes behind** — when a transient disk error interrupted importing a peer's series, each retry used to mint a fresh empty universe; the importer now reuses the same one across retries so the import either lands cleanly or is harmless to retry.
diff --git a/PLAN.md b/PLAN.md
index b4bbae744d..4b836156b0 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -39,8 +39,6 @@ The 2026-04-25 CODEX 5.5 review's concrete bugs (Brain Feeds nav, Time Capsule n
### Deferred from better/2026-05-19
-- [ ] [universebuilder-collection-hook-flaky-batch-enrich] **[MED][TESTS]** `server/services/universeBuilderCollectionHook.test.js > "enriches every sidecar in a batch — all N images get tagged"` still fails intermittently when the full server suite runs in parallel, even after the 2026-05-19 fix that migrated `enrichSidecar` to `atomicWrite` (`[imagegen-local-defer-module-load-side-effects]` PR). Passes 100% in isolation (`vitest run services/universeBuilderCollectionHook.test.js` — 8/8). Suggests a cross-file race that survives the temp+rename atomicity — likely shared `PATHS.data` Proxy / mocked `mediaCollections` state colliding with a sibling test that drains the same hook queue concurrently. Reproduce by running the full server `vitest run` 10× and grepping for FAIL; instrument the batch enrich path to log timing and identify the contending writer. Surfaced 2026-05-20 during the legacy-series-canon import PR.
-
- [ ] [ansistrip-osc-alternative-unreachable] **[MED][TUI]** `server/lib/ansiStrip.js:14` — the OSC alternative in `ANSI_PATTERN` (`\][^\x07]*(?:\x07|\x1B\\)`) is dead code. Alternation order matches the single-byte alternative `[@-Z\\-_]` against `\x1B]` (0x5D is in 0x5C-0x5F) before the OSC alt is tried. Effect: only `\x1B]` is stripped from OSC sequences; the body+terminator leak into the cleaned stream (e.g. `\x1B]0;title\x07after` → `0;title\x07after`). Callers (`tuiPromptRunner.js:237`, `agentTuiSpawning.js:292`) consume the result without further filtering. Fix by either reordering alternatives (OSC before single-byte) or excluding `]` from the single-byte class (`[@-Z\\^_]` or similar). The new `ansiStrip.test.js` pins the current buggy behavior so a fix has an unambiguous before/after baseline. Surfaced 2026-05-20 during the test-coverage PR for med-tests-no-tests-for-server-lib-ansistrip-js; deferred to keep that PR scoped to tests.
- [ ] **Migrate two remaining local formatters surfaced during the module-discovery PR.** Two additional local format definitions were found that aren't in the original tracker: (1) `client/src/components/calendar/EventDetail.jsx:10` defines `formatDateTime(dateStr, isAllDay)` with an all-day branch the shared `formatDateTime` lacks — extend the shared helper to take `{ allDay: true }` or keep this local and rename to `formatEventDateTime`. (2) `client/src/components/cos/tabs/TaskItem.jsx:78` defines `formatDurationMin(mins)` with a `~` approximation prefix (`~3h 30m`) — extend shared `formatDurationMin` with an `{ approximate: true }` option. Low priority; visual semantics need to be preserved exactly.