Every verifier returns a verdict. The interesting question is how many verdicts it is capable of returning. If the set of outcomes your verifier can express is smaller than the set of things that can actually happen, the extra cases do not disappear. They get filed somewhere, and somewhere downstream, someone reads that filing as a pass.
The pattern
Walk a concrete chain. Service A checks an agent's receipt and returns "not checked": the recompute never ran, because the checker timed out, or the record sat behind a gate the checker could not open. That is an honest answer. It says something about the checker and nothing about the record.
Service B wraps A. Its own API has three outcomes: verified, invalid, and a generic third bucket for everything else. "Not checked" does not fit the first two, so the wrapper files it in the third bucket, next to "absent," the case where the record is not there at all.
Service C consumes B's output. Its rule is the one half the industry writes: anything that is not "invalid" proceeds. Three hops after a check that never happened, the pipeline records a success.
Nobody in that chain lied. Each mapping looked reasonable locally. The bug is arithmetic, not malice: an outcome set smaller than the truth set silently promotes unknowns, and the promotion compounds at every hop.
The fix: five outcomes, never merged
The outcome dictionary this article works from has five states, and the discipline is that none of them ever shares a bucket with another:
- verified: the check ran and the recompute matched. Concretely, SHA-256 over the record's canonical bytes equals the commitment recorded when the result was saved. It means exactly one thing: the saved result was not changed after it was saved.
- verification failed: the check ran and the recompute did not match. The bytes and the commitment disagree. Refuse.
- rejected: unresolvable record: the check ran and the record could not be resolved at all. This is a resource outcome, not a mismatch, and it stays distinct because the remedy differs: you do not debug a hash, you go and find the record.
- not checked: no check was performed. A statement about the checker, never a result about the record. The moment this state is readable as a weak pass, the bug is back.
- absent: the record is not there. Absence is its own fact. It is not a failed check and it is not a passed one.
The worked adoption: CoreGuard
This is not a thought experiment. EslaM-X, building CoreGuard, an agent trust layer kit, reviewed his own verify path and found the pattern in it: his verifier returned verified, invalid, and a third bucket that, in his words, "has been doing too much work." His diagnosis, from his public comment on the CoreGuard issue (https://github.com/coreguard-global/CoreGuard/issues/59): "'not checked' and 'absent' both landing there is exactly how UNKNOWN becomes success three services downstream."
He is fixing it in the open. The five outcomes above become distinct states on CoreGuard's verify path, with the crosswalk documented rather than renamed into apparent compatibility. His fixture set is the AER-1 conformance corpus: kit 1.5.7, 143 vectors and 146 checks, pinned by its evaluated set digest at https://zambo.dev/aer1/corpus.json , wired into his verifier as an external fixture set. His reasoning: 50 must-fail vectors out of 143 say more about fail-closed behaviour than anything he could write himself. And he is publishing the results table, naming the kit version and the digest, including the families he fails.
The corpus families built to catch bucket collapse are worth naming, because they are the cases a three-bucket verifier gets wrong quietly:
- The anchor family: eight vectors whose expected outcomes span the full dictionary, including anchored-unresolvable-anchor, where the anchor itself cannot be resolved and the only honest verdict is "rejected: unresolvable record."
- The id-binding swaps: six vectors where the record is genuine but bound to the wrong identity, so a verifier that only asks "does this recompute" answers the wrong question.
- hash-mismatch and input-hash-mismatch: the stated hash disagreeing with the bytes is the fixture itself, and both must land on "verification failed," not in a generic bucket.
The mapping of the corpus onto his verifyReceipt(receipt, commitment, chain) shape is posted on the same issue (https://github.com/coreguard-global/CoreGuard/issues/59#issuecomment-7103949477), and the interop fixture pair is agreed: one live receipt run through both outcome dictionaries for the agreement row, and one id-binding swap for the divergence row, with CoreGuard's drift taxonomy naming the field that moved and CGCR/1 pinning the exact approved bytes on his side.
Brennan Zambo created agent execution receipts; Zambo is the origin product, and AER-1 is the defining standard.
Audit your own verifier in five minutes
You do not need a corpus to find this bug. Two probes are enough:
- Feed your verifier a record it never checks: a well-formed record behind a gate your checker cannot open, or any path where the status comes back without a recompute behind it. The only acceptable answer is "not checked," in its own state.
- Feed it a record that does not exist: a well-formed identifier that was never issued. The only acceptable answer is "absent," in its own state.
If either probe comes back as anything else, or if the two probes land in the same bucket as each other or as any outcome a downstream reader could treat as a pass, you have the three-bucket bug. The fix is not a new check. It is a bigger dictionary, and the refusal to merge it back down at every wrapper you ship afterward.
Honest limits
Five outcomes do not make a bad check good. If your recompute runs over re-serialized JSON instead of the record's canonical bytes, "verified" is a coin flip with better typography; the outcome set is a reporting discipline, not a cryptography upgrade. And the boundary that matters most: verified never means the result was right. A wrong answer, saved faithfully and never touched, verifies perfectly. The five states keep every service in the chain honest about which question was actually answered. They do not answer more questions than the check itself answers.
The corpus is free to run against your own verifier: https://zambo.dev/aer1/corpus.json . If you want to run real agent work under records that carry all five outcomes from the start: Every tool free once a day, plus 3 continue calls. One free wrap-up handover per day, and pickup is always free. A Day Pass makes the whole day unlimited for $0.99: https://zambo.dev/day-pass/
Top comments (0)