AI agents state numbers with total confidence: a sum, a percentage, a unit conversion, a date pulled from a document. When something goes wrong, the question is never "was the model smart?" but "can anyone show this was checked?" Today the answer is usually a log line nobody can replay.
Deterministic checks vs a second model
An LLM judging an LLM is fine for tone or summaries, but for arithmetic and quotations it adds a second thing that can be confidently wrong. For claims that have one right answer, recompute them with plain code. For "the contract says 30 days", check that the quoted text, number or date really occurs in the text you supplied.
What a receipt should contain
The claim, the inputs, the rule version, the result, a timestamp, and a signature. With an Ed25519 signature, a third party needs only the public key to confirm that this exact check was run and the result was not edited afterwards. The receipt is evidence of a check, not a guarantee that the underlying data is true.
What I built
AgentVerify is a small open-source (MIT) service and MCP server that does exactly this: https://github.com/Bencoombes23/agentverify-checks. There is a free demo (see DEMO.md in the repo for the shared key; it runs on a free host that sleeps, so allow a minute for the first call).
Honest limits
It's early. No SLA, no payments taken (an optional x402 paywall exists but is testnet-only and off by default), the replay store is in-process, and it only checks text you give it, never fetching URLs. It is run with an AI assistant and I say so up front.
Question for you
If you ship agents that produce numbers, has anyone ever asked you to prove a check happened? What would you need a receipt to prove? Tell me it's useless if it is.
Top comments (27)
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.
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.
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?
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?
A receipt that fails quietly is the same as no receipt. Log the failed checks too, so the gap shows up in the record.
Agreed: a failed or missing receipt should leave a record, otherwise the gap is invisible. Today the service only keeps a privacy-safe usage log and does not record failed verifications on the caller's side, so a wrapper that logs every refusal belongs with the same "refuse without a valid receipt" item. Thanks, this makes the design list clearer.
Feeding the hook its real stdin shape is the point. Add a malformed JSON case too, that is where parsers differ.
Good call: malformed JSON is exactly where a wrapper could fail open by accident, so it belongs in the wrapper's tests with the expected result "refuse and log". Not built yet; I'll add it to the design list. Early, free, AI-assisted project, no SLA.
Log the refusal at the caller, beside the claim. A log kept only on the server leaves the gap invisible to the reader.
Yes: the record belongs at the caller, next to the claim the reader sees. The service's own usage log is privacy-safe and server-side, so it can't show that. Noted; thanks for taking this through so many comments.
Fail closed and log the refusal in the same step. A wrapper that only logs after a passing build proves nothing.
Agreed: the refusal and its log line should be one step, so a refusal can never go unrecorded and a pass can't be the only thing that leaves a trace. That is the shape on the design list. Not built yet.
One step is the key detail. Splitting the refusal and its log line leaves a window where nothing is recorded.
Malformed input needs a fixed expected result, refuse and log, so the test proves the boundary holds.
Agreed. If the caller keeps the record, the reader can compare it with the claim at render time.
@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?
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.
Put the check in the renderer. If the tool cannot print a claim without a valid receipt, the rule holds by itself.
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.