Epic: DB Corruption Prevention — WAL-mode safety incident response
Source: docs/review/framework-refactor/read-audit-db-migration-plan.md §12
Incident: 2026-06-21 — WAL-mode SQLite corrupted by E2E-3 raw file ops (cp/mv/rm). 97.6% data recovered.
Sub-issues
Acceptance criteria
- All 5 P0 prevention items implemented and verified
- No test script operates directly on production .opencode/state/framework-state.db*
- CI guard blocks cp/mv/rm of framework-state.db* outside allowlisted helper
Epic: DB Corruption Prevention — WAL-mode safety incident response
Source:
docs/review/framework-refactor/read-audit-db-migration-plan.md§12Incident: 2026-06-21 — WAL-mode SQLite corrupted by E2E-3 raw file ops (
cp/mv/rm). 97.6% data recovered.Sub-issues
Acceptance criteria