This round audited MemPalace — the "infinite memory" the review criteria explicitly test — and fixed four real bugs, including one confidently-wrong-recall bug and a silent data-loss path. Full gate green (2,357 tests, typecheck clean, exec smoke 11/11, WAL concurrency verified live), pushed to PR #9.
The most dangerous finding was confidently-wrong recall. When the stored vectors and the query embedding come from different spaces — because the embed model changed, or a hash fallback fired while Ollama was down against 768-dimensional history — cosineSimilarity correctly scores every pair 0. But search() still sorted by score and returned the top N, so the model received arbitrary stale drawers labelled [0.00] as if they were relevant memories. For a memory system that's the worst failure mode: not empty recall, but wrong recall presented as fact. Search now drops anything at or below a tiny epsilon, so a mismatch reads honestly as "no relevant hits" while genuine same-dimension matches pass unchanged.
The second was a crash path: the embedding column's JSON.parse was already guarded against corruption, but the extra metadata column was a bare parse called on every row in the wake and search paths — so one row corrupted by a crash mid-write would throw and fail the entire turn's prompt prep. It's now guarded the same way, skipping bad metadata while keeping the drawer.
The third was silent data loss under concurrency. The SQLite backends ran a WAL checkpoint on close but never actually enabled WAL at open, so when the TUI, exec, and GUI shared one palace file, a concurrent writer hit SQLITE_BUSY and the fire-and-forget checkpoint was lost with no error. All three backends (vector, knowledge, spatial) now open with WAL plus a busy timeout, and I verified live that 40 interleaved writes from two separate handles all survive — previously some would silently vanish.
The fourth closed an asymmetry: headless runs (scheduler, GUI, remote, --exec) created a memory session for wake but never checkpointed their turns, so only the terminal built durable memory. Turn checkpoints now run on every frontend, so infinite memory is symmetric across the product — directly supporting the "open a new chat, see if its memory works" review step regardless of how the agent was invoked.
I confirmed the memory subsystem's prior hardening (dimension-mismatch scoring, assertOpen guards, idempotent close, corrupt-embedding skip) still holds, and documented five lower-value findings — the palace path vs userDataDir split, migration ordering, recency-only wake ranking, the pro/agent wing split, and unbounded growth — rather than fixing them, since each needs a broader design decision or carries more regression risk than value right now.