Skip to content

Detecting missing evidence in agent-written changes ​

The most useful thing a verification tool can do with agent-written changes is notice when a claim has no evidence behind it. Many tools treat the absence of a result as success. AgentProof treats it as UNVERIFIED and fails the gate.

The failure modes that "pass" elsewhere ​

What happenedNaive resultAgentProof
The requirement's test was never writtengreen suiteUNVERIFIED
The test exists but was skippedgreen suiteSKIPPED
The suite crashed after some testspartial / greenERROR
Output was truncatedparsed as passERROR
A stale committed report is present"passes"removed before run → ERROR if not regenerated
A test identity was duplicated ambiguouslylast-winsERROR

Each row is a way a change can look verified without being verified.

How AgentProof fails closed ​

  • Named test not found → UNVERIFIED. The identity you required is not in the evidence.
  • Incomplete go test -json → ERROR. Every started test must have a terminal event, and every package must finish.
  • Missing JUnit report → ERROR. The stale report is removed first, so the command must produce a fresh one.
  • Zero results → UNVERIFIED/ERROR. An empty suite proves nothing.

Putting it to work ​

Write one requirement per behavior you care about, each pointing at the narrowest test that proves it. Then the receipt becomes a checklist: every PASS has named evidence, and every non-pass tells you exactly what is missing.

text
[PASS]       unicode-export
[UNVERIFIED] error-handling   named test "pkg::TestErrors" not found in the evidence
[SKIPPED]    migration        the named test was reported as skipped

See evidence states for the precise aggregation rules.

Developer preview. Receipts are unsigned and prove only the declared checks. Apache-2.0 licensed.