Skip to main content

Module storage_maintenance

Module storage_maintenance 

Source
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§

MaintenanceResult
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.