Active observations silently unretrievable after maintenance suite runs (hybrid returns 0 while the FTS row matches)
Environment
- memorix 1.9.9, background control plane with scheduled maintenance (retention-archive, consolidation, vector-backfill, claim-requalification, knowledge-lint), embeddings via a local OpenAI-compatible endpoint, ~40k observations
What happens
During/after a maintenance window (both maintenance runs show completed in maintenance_jobs), an observation that is:
- still
active(not resolved/archived), and - still present in
observations_fts(a directMATCHon its exact title returns its rowid)
…returns 0 hits for the same query via CLI and MCP hybrid search. The identical query matched before the window. An embedding cache file (~91 MB) was rewritten mid-window and the FTS match count for the queried token changed (1473 → 1426), i.e. rows were being re-indexed while search kept serving.
There is no signal at all — no "index not ready", no degraded-mode marker, just an empty result list that reads as "no such memory". For agent-side memory checks this is poison: the caller concludes the memory doesn't exist and re-derives everything from scratch.
Expected
Either searches fail loudly / block while indices are mid-rebuild, or the response carries an index-freshness / degraded marker so callers can distinguish "no results" from "index temporarily unavailable".
Related FR (same surface)
A cross-project search flag (--global or project: all) — search is cwd-project-scoped only, and "which project knew about X" workflows currently have no supported path (I'm working around it with direct SQLite FTS queries).
The empty semantic-result recovery path is fixed in PR #331.
When a derived semantic index returns no usable document, search now falls back to the durable SQLite lexical path instead of presenting a silent empty result. The branch includes a regression that simulates a stale semantic hit and verifies lexical recovery.