/scan — Memory Integrity Scan
Run the intelligence scanner to detect contradictions, drift, dead decisions, and missing cross-references across the entire memory workspace.
When to Use
- •After a session with significant decisions or changes
- •During weekly maintenance
- •When something "feels wrong" about the memory state
- •Before making architectural decisions (verify no contradictions)
How to Run
bash
python3 maintenance/intel_scan.py "${MIND_MEM_WORKSPACE:-.}"
What It Checks
- •Contradictions — Decisions that conflict with each other (via ConstraintSignatures)
- •Drift — Decisions referenced in daily logs but never formalized
- •Dead decisions — Active decisions with no recent references
- •Orphan tasks — Tasks referencing non-existent decisions
- •Impact graph — Downstream effects of each decision
- •Coverage — How many files are monitored vs total
Output
- •Updates
intelligence/CONTRADICTIONS.md,intelligence/DRIFT.md,intelligence/IMPACT.md - •Updates
memory/intel-state.jsonwith latest metrics and counters - •Saves state snapshot in
intelligence/state/snapshots/ - •Generates
intelligence/BRIEFINGS.mdweekly briefing
Modes
- •
detect_only— Report issues, never propose changes (default) - •
propose— Report issues AND generate fix proposals inintelligence/proposed/
Check current mode: cat memory/intel-state.json | python3 -c "import json,sys;print(json.load(sys.stdin)['governance_mode'])"