knowledge_maintain
Audit the knowledge store for thin expansion candidates, cold pages, misfiled notes, and person-page conflicts, then pair with knowledge_write to act on findings.
Instructions
Read-only health report for the knowledge store. Four branches: (1) expansion candidates — thin body + high hit_count (needs deepening); (2) cold pages — not accessed recently (unused or undiscovered); (3) misfile audit — provisional sourcing or conversation-only citations (world/ class: should be in the memory store instead — including pages that drifted in as personal/inner-monologue content rather than shared-ready synthesis, which matters more now that knowledge is read by other identities and by Jonathan, not just you; ours/ class with internal sourcing are NOT misfiles — they are correct); (4) person-page check — an active page whose slug or title names a person card (its slug or exact name, whole words) may belong on the card instead; a report, not enforcement. Only the full loom server runs (4); the knowledge-only server says it was not run. Cold/expansion ranking reads the shared hit_count/last_accessed aggregate (any reader's access keeps a page warm), not a per-identity breakdown — per-reader stats exist (knowledge_access) for attribution, but splitting cold-ranking by identity would make the list miss pages a different reader keeps alive. Pair with knowledge_write to act on findings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cold_days | No | Days without access before a page is cold (default 30) | |
| thin_body_threshold | No | body char ceiling to consider a page thin (default 500) | |
| expansion_hit_threshold | No | hit_count floor for expansion candidates (default 3; 0 considers every page) |