Expand description
Daemon-safe storage maintenance.
Unlike the interactive lean-ctx cache prune (which prints per-file output),
these routines are silent (tracing only) so they can run inside the MCP
daemon without corrupting the stdio protocol. They enforce the disk budget
that the field had been silently exceeding (see EPIC 6 / #2364): unbounded
archive FTS growth and accumulated quarantined BM25 indexes.
Structs§
- Maintenance
Result - Result of a quiet maintenance pass.
Functions§
- run_
quiet - Run a silent maintenance pass: prune quarantined BM25 indexes and enforce the archive FTS size cap. Safe to call from the MCP daemon.