DEV Community

Why "the agent said so" isn't verification: signed receipts for agent calculations

Ben Coombes on November 23, 2026

AI agents state numbers with total confidence: a sum, a percentage, a unit conversion, a date pulled from a document. When something goes wrong, th...
Collapse
 
alexshev profile image
Alex Shev •

Signed receipts become genuinely useful when they bind the input version, policy version, tool identity, and result—not merely a final answer. That makes later disputes testable: an operator can reproduce what the agent was allowed to see and do at that moment.

Collapse
 
bencoombes23 profile image
Ben Coombes •

Thanks, agreed. Today a receipt binds the claim, the options, the normalisation version and (for source checks) a SHA-256 of the source text, plus the result, all signed with Ed25519. It does not yet bind a policy version or a tool identity beyond the rule version, so that is a gap. Early, free, AI-assisted project; if you have a concrete dispute you would want to replay, I would like to hear which fields it needed.

Collapse
 
analista_83 profile image
Sammi De Blas •

A signed receipt is only useful if the verification happens on the path that returns the answer to the user. If a downstream component recomputes the number and drops the signature, the receipt is decorative. Are the receipts checked at the boundary that reaches the human or only inside the tool?

Collapse
 
bencoombes23 profile image
Ben Coombes •

Thank you for the comment, it is a fair point. Today that is left to the caller: the receipt can be verified offline with the bundled client, but nothing forces a downstream component to keep or check it. A wrapper or CI step that refuses to surface a claim without a valid receipt is the honest fix, and I have not built it yet. Early, free, AI-assisted project. Where would you put that check?

Collapse
 
analista_83 profile image
Sammi De Blas •

Make the failure loud: the renderer prints nothing and the build fails, so a missing receipt is visible, not silent.

Collapse
 
raju_dandigam profile image
Raju Dandigam •

@bencoombes23 The distinction between “this check ran” and “the underlying data was true” is the right limit for a signed receipt. I would also make the input canonicalization and public-key ID explicit, so an old receipt stays verifiable after a key rotation and two clients hash the same calculation the same way. How are you planning to preserve verification of historical receipts when the signing key changes?

Collapse
 
bencoombes23 profile image
Ben Coombes •

Thank you, these are good questions. Receipts currently carry the public key itself, and the client can pin several issuer keys and mark them active, retired or revoked, but there is no key ID in the receipt and no documented canonical serialisation of the inputs, so two clients hashing the same calculation identically is not guaranteed by the spec. Both are going on the design list, together with a published history of past keys so old receipts stay verifiable. Early, free, AI-assisted project, so this is very useful.

Collapse
 
analista_83 profile image
Sammi De Blas •

Put the check in the renderer. If the tool cannot print a claim without a valid receipt, the rule holds by itself.

Collapse
 
bencoombes23 profile image
Ben Coombes •

Thanks, that's a clear answer to my question: make the renderer refuse to print a claim without a receipt that verifies against a pinned issuer key, so the rule doesn't depend on anyone remembering to check. I haven't built that yet. It's the next design item on the list, together with the key ID and canonical-serialisation points raised above.

Collapse
 
analista_83 profile image
Sammi De Blas •

A receipt that fails quietly is the same as no receipt. Log the failed checks too, so the gap shows up in the record.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

a second model judging is still a guess. a signed receipt with the rule version and timestamp is the thing you can actually check.

Collapse
 
bencoombes23 profile image
Ben Coombes •

Thank you! That is the idea: deterministic rules and a record of which rule version ran. The limit is that it proves the check ran, not that the source data was true. Early, free, AI-assisted project.

Collapse
 
robertpaschal profile image
Odinaka Robert Nnamani •

That limit is honest. A receipt proves the check ran, the data itself still needs its own check.

Collapse
 
paul_irolla_6b5ae261d0224 profile image
Paul Irolla •

On THOL every run is graded by a script against a hidden answer, so the grader never trusts the model's own sum. Does the signed receipt also cover the tool inputs, or the final number alone?

Collapse
 
bencoombes23 profile image
Ben Coombes •

Thanks, good question. Not the final number alone: per the README the signed payload holds the claim, the options, the normalisation version/flags and a SHA-256 of the normalised source text (never the source text itself). What it does not cover yet: a timestamp, a key ID, a documented canonical serialisation, tool identity or policy version, and the README doesn't state that the result/status is inside the signed payload, so I won't claim it is. Those are on the gap list. A valid signature proves integrity and issuer identity only, not that a claim is true. Early, free, AI-assisted project, no SLA. If you try it and find a case where the receipt should bind more, I'd like to hear it.