Overview
Boot Compliance
Verify instruction files, load sequences, and hook configuration
Structural Analysis
Detect orphaned references, contradictions, and stale records
Formal Sessions
Privacy-aware diagnostic sessions with consent and access levels
Why Diagnostics Matter
Memory systems degrade over time. References break, beliefs accumulate contradictions, relationships go stale, and goals lose relevance. The doctor pattern provides a principled approach to memory health:- Early detection: Find problems before they affect SI behavior
- Privacy-safe: Structural checks use IDs and scores only, never memory content
- Audit trail: Diagnostic sessions and reports are persisted for review
- Trust-gated: Operator-initiated sessions require sufficient trust
Diagnostic Session Dataclass
Session Types
Access Levels
Diagnostic Report Dataclass
Finding Structure
Each finding in the report contains:error, warning, info.
CLI Commands
Basic Doctor Check
The defaultdoctor command checks instruction file compliance: