1 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
1722133faa feat(vault-cli): apply_corrections.py — interactive accept/reject for Gemini-proposed fixes
Phase 5's interactive review tool. Reads a 01_audit.json from a
--propose-fixes run, walks rows with non-empty suggested_corrections,
shows a unified-diff per modified field, and prompts accept/reject/
edit/skip/quit. Validates every accepted body against Pydantic before
writing.

Per CORPUS_HARDENING_PLAN.md correction policy:
  - math errors: rewrite napkin_math AND realistic_solution as a unit
  - level inflation: relabel DOWN, never rewrite up to match
  - format markers: add markers without changing prose semantics

Resumable: dispositions persist to 02_dispositions.json after each
decision; re-running skips already-decided qids. --auto-accept-format
auto-accepts format-marker-only fixes (lower-risk).

Smoke-tested against the in-flight Phase 4 audit: 0 candidates (no
--propose-fixes data yet) and exits clean.

CORPUS_HARDENING_PLAN.md Phase 5.
2026-05-03 11:03:53 -04:00