r/madeinpython • u/Emergency-Tutor-7 • 56m ago
[Python] plan-auditor: a requirement only counts as met when a command and its output say so
Repo: https://github.com/Furox-Art/plan-auditor - 2.6.5, MIT, no required runtime dependencies.
It exists for one failure: an agent says "done" in confident prose, and nothing in the transcript proves it. Here you write a plan whose requirements are declarable, and each step has to end with a recorded verification - a file check or a command with its real output. The evidence record is HMAC-chained, so a later edit shows up as an edit, and a requirement that cannot be reduced to a deterministic check is handed to a human instead of guessed.
It installs three console scripts: plan-auditor, plan-auditor-migrate-seal and plan-auditor-formal. The gate is also usable directly:
pip install plan-auditor
python hooks/gate_hook.py .hooks/gate_hook.py is the single authoritative gate; scripts/stop_gate.py is the Claude Code side and delegates to it. The repo's own CI runs the README quick start and compares the transcript to real output, hashes included, so the example cannot drift.
One honest limit: it is not an OS sandbox - agent and verifier run as the same OS user - the evidence is tamper-evident rather than tamper-proof since HMAC is only as strong as the key staying secret, and domain meaning that resists a deterministic check stays a human decision.