Purpose
Check and fix consistency of the topics.md index against actual .memory/ files.
Checks
- Dead links → topics.md references non-existent files → auto-delete (
fixed) - Missing registration → bucket files not indexed in topics.md →
ai_actions - Duplicate topics → same topic header appears multiple times →
manual_actions - Invalid anchors →
#anchornot found in target file →ai_actions(if close match) ormanual_actions
Required Flow
memory-hub catalog-repairOutput
JSON envelope with:
data.fixed: auto-fixed itemsdata.ai_actions: items AI should self-healdata.manual_actions: items requiring human confirmation
Post-Processing
After receiving results:
ai_actionsnon-empty → AI executes self-healing (register missing files viamemory.index, fix anchors), then runscatalog-repairagain to confirm clearedmanual_actionsnon-empty → report to user before task ends