You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maintenance commands disagree on missing/corrupt/locked DB failures: vacuum --json emits human stderr, backfill uses a basename, optimize/integrity expose absolute paths, and SQLite error 26 (“file is not a database”) recommends retrying a writer lock.
Audit IDs: O-02, O-03, O-26. Reproduced on v1.40.3.
Existing issue relationship
Residual/follow-up to closed #1526 and #4338, which established error/status/maintenance diagnostics.
Expected behavior
All maintenance commands share a versioned DB error classifier, support-safe redaction, and condition-specific recovery guidance.
PR scope
Keep this to missing/not-a-database/corrupt/locked classification across maintenance commands.
Implementation guide for Codex 5.6 sol xhigh
Classify using SQLite result/extended codes and validated file state, not message substring alone.
Route vacuum, backfill, optimize, and integrity through one error DTO/writer.
Apply the shared redaction policy while preserving an explicit diagnostic mode.
Recommend create/rebuild/import/integrity actions for missing/corrupt data and retry/owner diagnostics only for real locks.
Test JSON/human, relative/absolute paths, invalid header, corruption, locks, and platform differences.
Summary
Maintenance commands disagree on missing/corrupt/locked DB failures:
vacuum --jsonemits human stderr, backfill uses a basename, optimize/integrity expose absolute paths, and SQLite error 26 (“file is not a database”) recommends retrying a writer lock.Audit IDs: O-02, O-03, O-26. Reproduced on v1.40.3.
Existing issue relationship
Residual/follow-up to closed #1526 and #4338, which established error/status/maintenance diagnostics.
Expected behavior
All maintenance commands share a versioned DB error classifier, support-safe redaction, and condition-specific recovery guidance.
PR scope
Keep this to missing/not-a-database/corrupt/locked classification across maintenance commands.
Implementation guide for Codex 5.6 sol xhigh
Acceptance criteria