code wiki / janitor
topic: janitor
17 modules sharing the janitor name family (derived from the tree's prefix discipline).
The 'janitor' topic family in the Nishi sovereign ecosystem manages the maintenance and cleanup of system resources, ensuring freshness and efficiency. The nx_janitor module evaluates the caretaker's freshness, while nx_janitor_caps detects magic-number caps, addressing missing rules. nx_janitor_sprawl handles junk cleanup, complementing the broader janitorial tasks across the ecosystem.
auto-narrated by the local model from this topic's module headers; links verified against the wiki index.
narrated overview -- maintained by the narration lane, module links verified against this wiki.
| module | description | lines | funcs |
|---|---|---|---|
| nx_janitor.nx | the CARETAKER/JANITOR's FRESHNESS evaluator (operator 2026-06-12: | 85 | 7 |
| nx_janitor_caps.nx | the JANITOR's MAGIC-NUMBER-CAP detector (the missing X-JAN rule). Finds the | 125 | 11 |
| nx_janitor_caps_gate.nx | proves the silent-truncation CAP detector (nx_cap_detect_lib) has TEETH and NO | 48 | 3 |
| nx_janitor_dupname.nx | the "dup" part of the janitor's X-JAN-002 sprawl half (nx_janitor_sprawl already | 96 | 10 |
| nx_janitor_dupname_classify_gate.nx | 69 | 3 | |
| nx_janitor_dupname_gate.nx | 52 | 3 | |
| nx_janitor_retire.nx | the RETIRE step = the actual debt count-drop (operator: "keep the debt gone"). | 55 | 4 |
| nx_janitor_retire_gate.nx | 66 | 3 | |
| nx_janitor_scratch.nx | the "scratch-accumulation" part of the janitor's X-JAN-002 sprawl half (the third | 52 | 6 |
| nx_janitor_scratch_gate.nx | 49 | 2 | |
| nx_janitor_scrub.nx | the JANITOR's third-party CLEANUP capability = the unbuilt "sprawl half (X-JAN-002)" | 87 | 6 |
| nx_janitor_scrub_gate.nx | 52 | 2 | |
| nx_janitor_sprawl.nx | the JANITOR's SPRAWL/JUNK-CLEANUP half (X-JAN-002, the getdents-walk | 303 | 17 |
| nx_janitor_sprawl_gate.nx | proves the JANITOR sprawl/junk-cleanup organ (nx_janitor_sprawl): | 142 | 12 |
| nx_janitor_sweep.nx | the JANITOR's AT-SCALE sweep: migrate a whole debt-heavy directory's non-sov FORMAT | 71 | 4 |
| nx_janitor_sweep_gate.nx | 50 | 2 | |
| nx_janitor_sweep_run.nx | thin RUNNER for the existing jan_sweep: migrate OUR non-sovereign data dirs | 47 | 4 |