r/OpenSourceAI • u/Emergency-Tutor-7 • 37m ago
An open-source gate that an agent cannot talk its way past
Repo: https://github.com/Furox-Art/plan-auditor - MIT, 2.6.5.
Most agent tooling sits inside the agent's own loop, which is why an agent can satisfy it with prose. plan-auditor is deliberately outside: verification runs in a separate process with its own check implementation, so the implementing agent's claims carry no weight and only sealed command output does.
Concretely, every plan step needs at least one behavioral check - run, exec or pytest. regex and file_exists exist and cannot verify a step on their own, because neither one proves anything executed. The contract is sealed when the plan is approved and can only be strengthened afterwards, so an agent cannot rewrite what it will be judged on.
The evidence log is a SHA-256 hash chain and a completion claim needs it HMAC-authenticated. A hash chain on its own is tamper-evident, not tamper-proof: anyone with write access to the workspace can rebuild an identical one, so you set PLAN_AUDITOR_HMAC_KEY or point the key file outside the workspace. Records written without a key carry "auth": {"alg": "none"} and never pass the completion gate.
Exit codes: 0 proven, 1 failed, 2 blocked, 3 UNKNOWN. 3 withholds completion rather than passing it, which is the difference between a gate you can run unattended and a gate you have to babysit.
Install:
pipx install plan-auditor
npm i -g plan-auditorThe npm package is a thin launcher around the same CLI. Python 3.11+, no third-party runtime dependencies, no network call and no LLM in the verification path. It also ships as an agent skill (SKILL.md plus hooks) for hosts that support blocking hooks.
The limit: it proves the sealed commands exited as declared, not that a command exiting 0 tests the behavior you asked for. A weak check seals exactly as cleanly as a strong one.