mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
687874fe37
Additive schema v10: qe_pattern_nulls (pattern_id FK, context_fingerprint, failure_mode, trajectory_ref, evidence_class CHECK per ADR-105, consolidated_count, UNIQUE(pattern_id, context_fingerprint)) + 2 indexes. Wired into unified-memory v10 migration block; rollback refuses when nulls exist (nulls are data — the un-committed v2.1 lesson). Verified against a sqlite3-online-backup COPY of the real memory.db (61MB, original never written): all 51 pre-existing table counts byte-identical before/after (qe_patterns=298, qe_trajectories=377, kv_store=5008), PRAGMA integrity_check ok, table+4 indexes created, UNIQUE fires on duplicate, ON CONFLICT consolidation bumps count to 2. tsc --noEmit clean. Unit tests (10) follow the repo's better-sqlite3 convention and run in CI — local native binding is the known macOS binary (invalid ELF header). Verification also caught a false-positive in its own first run: an empty SQL pipe reported 'applied' with trivially-unchanged counts; the new-objects query exposed it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>