# Self-Correcting Memory - Correction Store ## What This Is This directory contains **corrections** - patterns that identify mistakes and enforce quality. ## How It Works 1. **Critic Engine** validates ALL output before delivery 2. **If violation found** → Output blocked, user notified 3. **If new pattern detected** → Auto-stored as correction 4. **Future occurrences** → Immediately blocked ## Correction Format ```json { "id": "correction__", "pattern": "regex pattern to match", "excludePattern": "regex that exempts match", "severity": "error|warning|auto-correct", "message": "What to tell user", "suggestion": "How to fix", "blocking": true, "autoDetected": true, "hitCount": 0, "createdAt": "2026-07-04T..." } ``` ## Active Patterns | ID | Pattern | Severity | Action | |----|---------|----------|--------| | quantitative_without_proof | `\d+\s*(%\|percent\|times)` | auto-correct | Block + require evidence | | vague_quantification | `\b(many\|few\|several\|some)\b` | auto-correct | Block + require specificity | | unverified_done | `\b(done\|complete\|finished)\b` | error | Block + require verification | ## Files - `_index.json` - All corrections (master list) - `correction_*.json` - Individual correction files - `README.md` - This file ## Learning The system learns from its own mistakes: - Every uncorrected pattern → Becomes a correction - No manual intervention required - Immediate enforcement