# Proposal: Add compaction, verification, and retirement ## Why Without upkeep the always-loaded index grows on every change, entries keep pointing at files that were renamed or deleted, and duplicates spread one lesson over several entries. The store must stay small, current, and auditable without a model rewriting its content. ## What Changes - `flywheel.py verify [--apply]`: stale detection from backticked repo-relative paths, and `last_verified` refresh. - `flywheel.py dupes`: near-duplicate active entries by token Jaccard similarity. - The `compact-memory` skill and the `flywheel-curator` agent: fixed representative rules, merge by `add-source` plus `set-status superseded`, contradictions and skill retirement with the user. Out of scope: embeddings-based similarity (a later version), automatic scheduling. ## Capabilities ### New Capabilities - `compaction`: the compact, verify, and retire pass over memory and skills. ### Modified Capabilities ## Related knowledge - `verify-ignores-bare-file-names` (pitfall found while building `verify`). ## Impact Two CLI commands, one skill, one agent.