Skip to main content

How ARSGATE should keep storage permanently clean

Think of the Storage Janitor as a cleaner that works continuously while everyone else works.

The emergency guard protects ARSGATE when free space becomes low. The approved design adds a different behavior: old operational material should disappear when it becomes unnecessary, even if the disk still has plenty of free space.

A completed or superseded job may leave temporary working material behind. Once ARSGATE has durable proof that the material is no longer needed, the Janitor removes it. A live task is left alone. Historical evidence that still matters is retained or archived. Material ARSGATE cannot identify is reported for investigation and is not deleted.

The goal is not “clean the room when there is nowhere left to walk”. The goal is keep the room clean all day.

The Janitor also watches operational databases. Old history that no longer belongs in the hot database can be archived according to policy; WAL and fragmentation are maintained safely; the database should not grow forever simply because the platform keeps operating.

ARSGATE will also keep a desired free-space green zone. If storage drifts away from that target, housekeeping becomes more active. The existing low-space guard remains as an emergency airbag, but normal operation should rarely need it.

Current status: IMPLEMENTED. The Continuous Storage Janitor is deployed as an enabled user service on services-node-01. The canonical implementation reached restart acceptance and a live read-only canary with GREEN_TARGET_REACHED. Cleanup remains lifecycle-proof-driven; UNCLASSIFIED material is reported and never auto-deleted.