Proving What Your Agent Did: Verifiable Execution for Compliance and Audit
Logs are claims. Signed history is evidence. Here's what it looks like to prove what an AI agent did.
Haziqa Sajid
Technical Writer
The Question Nobody in Your Stack Can Answer
Somewhere in your organization, an agent is doing real work. It reads an invoice, checks the vendor, and releases a payment. It triages a support ticket and issues a credit. It pulls records, applies a policy, and takes an action a person used to take.
At some point, someone is going to ask about one of those actions – an auditor, a security reviewer, a regulator, maybe a customer with a lawyer. The question usually comes in two parts: what exactly did the agent do, and how do you know that record is accurate?
Most teams can answer the first part reasonably well. You have traces, you have logs, you have a dashboard that shows the agent's steps and how long each one took. That is a real capability, and you should keep it. It is the second part that tends to stop the conversation, because the honest answer for most agent stacks today is that the record is accurate because we say it is. The logs were written by the system you are being asked about, into a store that any number of people can write to, and nothing about them proves they haven't been edited, trimmed, or quietly regenerated after the fact.
Logs are claims. What an auditor wants is evidence.
In this post I'll walk a single invoice-approval agent through Diagrid:
- 1
Sign the history
- 2
Hand it to an outside verifier
- 3
Tamper with it (DB, then exported file)
- 4
Watch Diagrid catch it both times
Why Observability Isn't Proof
This is not an argument against observability. Tracing, evaluation, and monitoring are how you understand agent behavior and improve it. Diagrid works alongside those tools, does not replace them.
But observability answers a different question than an auditor asks. It tells you what the system reported. It cannot tell you whether that report is complete, whether it was altered, or whether the work it describes actually originated where it claims to – because the system doing the reporting is the same system being asked about, and the record sits in ordinary storage where anyone with write access can change it.
For a chatbot that answers product questions, that gap is tolerable. For an agent that moves money, approves a claim, releases a manufacturing batch, or touches a patient record, "we think this is what happened" is not a sentence you want to say to a regulator.
Observability
What the system reported
- Written by the system it describes
- Editable by anyone with write access
- Trusted because you trust the operator
Verifiable execution
What provably happened
- Signed by the workload identity that ran it
- Any edit breaks a signature
- Checked by someone outside your stack

What you need is a record that is complete by construction, that reveals any change made to it, and that someone outside your organization can verify without having to trust you. That is what verifiable execution is for.
What Verifiable Execution Actually Gives You
Verifiable execution is Diagrid's answer to that gap. Instead of asking the agent to describe what it did, Diagrid records each step as the agent takes it and signs that record with the identity of the workload that produced it. It builds on the workflow history signing capability that shipped in open source Dapr v1.18. If you want to understand the underlying design, our launch post covers it in depth. For this post, it comes down to three properties.
Nothing is off the record
Diagrid runs your agent as a durable workflow underneath whatever agent framework you use, and every step the agent takes becomes an event in that workflow's history, automatically. The developer doesn't add logging, and the agent doesn't get to decide what to report. The record is a byproduct of execution, the runtime, not a description of it.
The record can't be quietly changed
As events accumulate, Diagrid signs them in blocks, each block chained to the one before it and signed with the identity of the workload that ran them. Modify an entry, delete one, or reorder them, and the chain no longer verifies. The term is tamper-evident: it doesn't stop someone from touching the record, but it guarantees you will know if they did.
You can hand it to someone else
Because the signatures are tied to a workload identity and a certificate authority rather than to your application, the record can be exported and verified outside the system that produced it. An auditor, a downstream team, or a separate compliance service can check it independently, without access to your running agents and without taking your word for anything.
Diagrid works with the agent framework you already use:
- LangGraph
- Microsoft Agent Framework
- Google ADK
- AWS Strands
- OpenAI Agents SDK
- CrewAI
What It Looks Like In Practice
Let's make it concrete. The agent I'm using is an invoice-payment approver, written in Go with go-ai and LangChainGo. It fetches an invoice, checks the vendor against an approved list, checks the amount against a spending policy, asks a model to write the decision for the finance team, and then either releases the payment or holds it for review. It is a small agent, but it is the shape of a great many agents going into production right now, and the audit question it raises is one every finance team recognizes: did the vendor check actually run before the money went out, and can you prove it?
One design choice matters here. The model writes the decision, but it does not gate the money – the route to release or hold is decided by the check results directly. That distinction is exactly the kind of thing an auditor asks about, and it is visible in the record.

Adding Diagrid is a small wrapper around the agent you already have. The graph is ordinary Go code, the runner turns each node into a checkpointed, signed workflow step; there is no rewrite involved. History signing is a Diagrid project-level setting, turned on when the project is created. There is nothing to add to the agent itself.
11. The Run
I sent one invoice through: $18,750 from Acme Consulting LLC, a vendor that is not on the approved list. The vendor check flags it, the policy check fails on the amount, and the agent holds the payment rather than releasing it.

Here is that run in the Diagrid console. Each node is a step the agent took, and each node carries a shield icon that says this step's history has been signed and verified. Notice what isn't here: any logging code. Every one of these steps was captured because Diagrid ran the agent, not because the agent chose to report it.
22. The Record


- events
- 18
- signature blocks
- 6
- workload identity
- 1
- SPIFFE …/invoice-approver
This is the same run as a signed record. Eighteen events, covered by six signature blocks, every one of them signed by the agent's own workload identity (a SPIFFE identity ending in /invoice-approver). That identity isn't a label someone typed. It is the cryptographic identity Diagrid issued to this specific app in this specific project, and the full certificate chain behind it is one click away.

Down at the event level the story is already legible: check_vendor completed, check_policy completed, decide completed, hold_payment completed – not release_payment. If the question is whether the vendor check ran before any money moved, the answer is sitting right there, with a seal on it.
33. The Export
A record only matters if you still have it when someone asks, and if the person asking can check it without logging into your console. Diagrid exports a completed execution as a self-contained, signed archive. That's a single CLI command:
$ diagrid workflow archive export INV-2026-0312-approval -p invoice-audit-demo -a invoice-approver --out receipt.jsonwrote archive to receipt.jsonThat file is the receipt you would hand an auditor. It contains all eighteen events, the six signature blocks, the signing certificates, and a copy of the trust anchor for safekeeping. Verifying it takes one command and a copy of Diagrid's certificate authority (CA), and it runs offline, with no access to Diagrid required:
$ diagrid workflow archive verify receipt.json --trust-anchor sentry-ca.pemArchive verified instance: INV-2026-0312-approval app ID: invoice-approver events: 18 signatures: 6Diagrid also archives history to long-term storage on a schedule you set, with an integrity check before anything counts as stored. It won't purge history that hasn't been safely archived. That is a small design decision that answers a large compliance question.
44. Tampering Inside the System
Now the part that matters. There are two places a record can be altered – where it is stored, and after it has been handed over – and Diagrid catches both.
Start inside. Diagrid can keep workflow history in a database you bring yourself. For this run, that is a Postgres instance I connected to the project. That means I can play the part of someone with direct database access – a bad actor, or a well-meaning admin "fixing" a record. I opened the store and changed one field in one row: the check_vendor result, from FLAGGED to CLEARED, so the record would read as if Acme Consulting were an approved vendor. Nothing else was touched.
Diagrid re-verifies a workflow's history every time it is loaded – the record itself, when you open it, not every row of the executions list on every page refresh. So the console doesn't show the edit as the new truth – it shows that the record no longer matches what was signed:

The banner names the exact block that broke: block 2, which covers events 6 through 8, the range that contains the vendor-check result. The verification panel makes it visual – five green blocks and one red.

Signature chain – INV-2026-0312-approval
- sig 0[0, 3)verified
- sig 1[3, 6)verified
- sig 2[6, 9)verified
- sig 3[9, 12)verified
- sig 4[12, 15)verified
- sig 5[15, 18)verified
6 of 6 signatures verified
It also localizes the steps. The execution graph puts a red shield icon on check_vendor and check_policy, both of which touch the broken block, while every other step stays green and verified.

And drilling into the tampered step tells the whole story in one panel: history integrity Tampered, the completion record Tampered, and the doctored output sitting right there – "vendor_check": "CLEARED" – flagged rather than trusted.

Nobody had to notice that something looked off. The system noticed, named the block, and pointed at the step. And it isn't only the console: when the agent runtime next tried to load this instance, it refused to run on it at all.
error: durable: schedule workflow: failed to start workflow: workflow history signature verification failed for 'INV-2026-0312-approval': signature 2: events digest mismatch for range [6, 9)55. Tampering After It Leaves
Now the other case, and the one that matters most for an audit. The receipt has been exported and is on its way to an auditor, and someone edits it along the way – the vendor check, changed from FLAGGED to CLEARED, so the record reads as if Acme Consulting were approved. A small edit, in a 24 KB file.
$ diagrid workflow archive verify receipt.json --trust-anchor sentry-ca.pemArchive verified events: 18 signatures: 6$ diagrid workflow archive verify receipt-tampered.json --trust-anchor sentry-ca.pemArchive verification failed: signature chain verification failed: signature 2: events digest mismatch for range [6, 9)Verification fails, and it fails at exactly the right place. Signature block 2 covers events 6 through 8, and the vendor-check result is event 7. The edit didn't just get caught, it got located – and the person verifying didn't need to know what the record was supposed to say. They only needed the receipt and the certificate authority.
That is what tamper-evident means in practice. It is the difference between a log an auditor has to take on faith and a record an auditor can check.
What This Changes For Your Compliance and Security Conversations
The demo above is small. What it enables is not.
Compliance
You have tamper-proof evidence for agent decisions – not a description of what the agent was supposed to do, but a signed record of what it did, step by step, that an auditor can verify without trusting your application or your team. When the question is "show me the agent passed the vendor check before it released the payment," the answer is a file and a command, not a meeting.
Security
Because every block is bound to a workload identity, work that didn't come from an authorized agent can't produce a record that looks like it did. A payment system can refuse to release funds unless the request carries verifiable proof that it passed through the approved approval workflow, which closes the door on anyone – human or agent – calling the payment API directly and skipping the checks.
Regulation (EU AI Act)
The EU AI Act's record-keeping requirements for high-risk systems call for automatic logging that supports traceability of the system's behavior, and similar expectations are taking shape in financial services and healthcare guidance. A tamper-evident, independently verifiable execution record is exactly the kind of evidence those frameworks are asking for. We've written about the specific mapping in How Diagrid Helps You Meet EU AI Act Requirements.
Identity answers "who are you?". Verifiable execution answers "how did you get here?"
What It Takes To Adopt
Less than you'd expect, and a few things worth planning for.
You keep the agent framework you already have. Diagrid adds durable and verifiable execution as a runtime with a small code change and no rewrite. It runs in Diagrid's cloud, in your own cloud, on-premises, or fully air-gapped, so the signed records stay wherever your data-residency rules say they should.
There are three things your platform team will want to know up front:
Before you roll out
Signing is set at project creation and is one-way
History signing is set when a project is created and applies from then on. It is a one-way decision, so plan the rollout rather than flipping it on everywhere at once.
Export the trust bundle with every archive
The trust anchor is what makes an archive verifiable outside Diagrid, and roots rotate over time, so export the trust bundle alongside each archive and store them together. A newer bundle may not validate an older archive, and when that happens it reports as unverifiable, not as tampered.
Keep the root key safe
If the root key is lost, records signed under it can no longer be independently verified.
None of this is difficult – all of it is the kind of thing you would rather hear now than from an auditor.
The Two Questions, Answered
What exactly did the agent do?
Every step, captured as it happened, in a record the agent didn't get to write – eighteen events, six signatures, one identity.
How do you know the record is accurate?
Because it is signed and chained, any change breaks verification at the exact block where it happened, and anyone you hand it to can check it themselves with a single command.
That is the shift Diagrid makes: from telling people what your agents did to proving it. As more of the work in an organization moves to agents, that shift stops being a nice-to-have and starts being the difference between an audit you can answer and one you can't.
If you are responsible for agents in production, or about to be, book a demo below and we'll walk through what verifiable execution looks like for your workflows. If your engineers would rather try it first, the free tier, Diagrid quickstarts, and the code from this post get an agent signed and running in an afternoon.


