TL;DR
AI agents now move money, merge code, and touch production. Logs say what happened — attestation proves it. A decision framework for verifying agent actions.
An agent that only answers questions can be wrong in a chat window. An agent that acts — merges a pull request, moves money, rotates a credential, deletes a record — can be wrong in production, at machine speed, while nobody is watching. The difference between those two agents is not the model. It is whether anyone can verify what the agent did, which code did it, and on whose authority.
The short version: logs are claims, not proof. If you need to trust an agent's actions — for compliance, for a customer, or for your own incident review — you need attestation: cryptographic evidence, produced at the time of the action, that a specific workload, running specific code, did a specific thing. There are three questions to answer, and three different technologies answer them: identity (who acted), attested execution (what code ran), and provenance (what happened). Most teams need the first two; regulated teams need all three.
Why logs stopped being enough
Three things changed at once. First, agents moved from chat to tools. A coding agent with shell access and a payments agent with an API key are not chatbots with extra features — they are non-human operators with standing access to production systems. Our guide to developing autonomous AI agents covers what these agents are; this article covers how to prove what they do.
Second, the blast radius of a single bad action grew. A hallucinated function call that deletes the wrong database or approves the wrong refund is not a bad answer — it is an incident. And because agents act in milliseconds, the window between a bad decision and a bad outcome is too short for a human to sit in the loop on every action.
Third, the evidence itself became untrustworthy. A log line saying "agent X approved refund Y" is written by the same system it describes. If the agent, its host, or its operator is compromised, the log can be rewritten. That is the gap attestation closes: the proof is produced by hardware or by a signing service the agent cannot forge, and it is checked by a verifier that does not trust the agent's word.
The three questions
Every verification scheme for agent actions answers some combination of three questions:
Each question has a mature answer. The mistake is answering one and assuming you answered all three.
The options
Option 1: Audit logs plus human review (the baseline)
Every agent action is written to an append-only log with the agent's identity, the tool called, the arguments, and the result. A human reviews high-risk actions before they execute, or samples them after. This is what most teams have today, and it is underrated as a starting point: it costs almost nothing, it catches honest mistakes, and it gives you an incident timeline.
Its limit is structural. Logs are written by the system they describe, so they prove nothing to someone who does not already trust that system. A compromised agent can write a plausible log of an action it never took, or omit the action it did take. Human review does not fix this either — it scales badly (reviewers become the bottleneck, as our software factory piece describes) and it reviews the request, not the execution: the reviewer approves "refund this order" and never sees that the agent refunded a different one.
Pick this when agents act only in low-risk, reversible ways, when your team is small, and when the log's audience is your own engineers rather than an auditor or a customer.
Option 2: Identity-first — SPIFFE and SPIRE
Give every agent workload a cryptographic identity that is issued at runtime, not a static secret. SPIFFE defines the standard: a workload gets a SPIFFE ID — a URI like spiffe://prod.example.com/ns/payments/sa/refund-agent — carried in a short-lived X.509 certificate or JWT called an SVID. SPIRE, the reference implementation, attests both the node and the workload (Kubernetes service account, container image hash, host attributes) before issuing the credential. SPIFFE and SPIRE are graduated projects of the Cloud Native Computing Foundation.
This changes the security model in two ways. First, there are no long-lived API keys for an agent to leak or an attacker to steal — SVIDs expire in hours, and a stolen one dies on its own. Second, authorization can be written against who the workload is, not which network it came from: a database or a payments API can accept calls only from spiffe://prod.example.com/.../refund-agent and reject everything else, including calls from the same cluster with the wrong identity.
What identity does not do: it proves who called, not what code they ran. A workload with a valid SVID can still be running a tampered binary, and a compromised agent with a valid identity is still a compromised agent. Identity is necessary; it is not sufficient.
Pick this when you have many agent workloads across clusters or clouds, when static secrets are already your biggest incident risk, and when you need fine-grained, auditable authorization for tool calls. It is the cheapest of the three technical answers and the one to do first.
Option 3: Attested execution — confidential computing
Run the agent inside a hardware-isolated environment that produces a signed attestation report: cryptographic proof of exactly what code is running, on genuine hardware, before any secret is released to it. The pattern is the same across vendors: encrypt the sensitive material at rest, and make the decryption key available only to an environment that attests correctly. If the host is tampered with, the evidence changes, attestation fails, and the key is never released.
The concrete options, as of late 2026:
What attested execution does not do: it proves the code is what you measured, not that the code is correct. An attested agent running a prompt-injection-vulnerable harness is still vulnerable — the hardware guarantees the binary, not the judgment. And attestation covers the execution environment, not the model's reasoning: it cannot prove the agent's decision was sound, only that the decision came from the code you approved.
Pick this when the agent handles secrets, money, or regulated data on infrastructure you do not fully control — shared cloud, a vendor's host, a multi-tenant platform — and when a customer or auditor will ask "how do you know this code ran?" It is the only option that removes the operator from the trust equation.
Option 4: Full provenance — SLSA, Sigstore, and a signed action log
Prove what happened, end to end, with signed attestations a third party can verify. SLSA (Supply-chain Levels for Software Artifacts) defines what provenance must contain: the artifact's digest, the source it was built from, the builder that built it, and the inputs — encoded as an in-toto attestation statement. Sigstore supplies the signing: short-lived certificates issued against an OIDC identity (no long-lived keys to manage), with every signature recorded in the Rekor transparency log so any party can audit the signing history. gh attestation verify and slsa-verifier are the standard verification tools.
Applied to agents, the pattern is: the agent's code is built with SLSA provenance; the agent runs with a SPIFFE identity inside an attested environment; and every consequential action is recorded as a signed in-toto-style attestation — action, arguments, result, identity, and the attestation evidence of the environment that produced it — appended to a log the agent cannot rewrite. A relying party can then verify the whole chain without trusting the agent: the signature, the identity, the code measurement, and the action record.
The cost is real. You are building a verification pipeline, not adding a library: reproducible builds so measurements are stable, a policy engine that checks provenance before acting, and a log store with its own integrity guarantees. SLSA level 1 provenance is a record anyone could forge; the guarantees only bite at higher levels, where a hosted builder signs the provenance. Do not adopt the vocabulary without the machinery.
Pick this when an external party must be able to verify your agents' actions — a regulator, an enterprise customer doing due diligence, a financial auditor — or when the action log itself is the product (signed transactions, certified decisions). For internal-only agents, options 2 and 3 usually give you the same practical safety at a fraction of the effort.
The comparison
| Option | Proves who | Proves what code | Proves what happened | Effort | Maturity |
|---|---|---|---|---|---|
| Audit logs + human review | Weakly — identity is a claim in the log | No | No — the log is self-written | Low | High — the default |
| SPIFFE / SPIRE identity | Yes — attested, short-lived SVIDs | No | No | Medium — a control plane to run | High — CNCF graduated |
| Attested execution (enclaves / confidential VMs) | Yes, when combined with identity | Yes — signed hardware measurements | No, unless you also log the evidence | Medium–High — enclave images, attestation flow | High — in production at Coinbase, Anchorage, Azure |
| Full provenance (SLSA + Sigstore + signed log) | Yes | Yes | Yes — signed, third-party-verifiable | High — a verification pipeline | Medium — standards stable, agent-specific tooling young |
Trade-offs
The trade-off nobody puts in the demo is what attestation does not cover. It proves the code that ran, not the decision it made. An agent can be fully attested, correctly identified, and faithfully logged — and still approve the wrong refund because the prompt was ambiguous or the tool returned misleading data. Attestation answers the trust question; it does not answer the correctness question. That is why the sandboxing decision still matters: an attested agent in a sandbox with scoped tools is safe in a way an attested agent with standing production credentials is not.
The second trade-off is verification latency vs. action speed. Checking an attestation document, verifying a signature chain, and confirming a PCR measurement all take time — milliseconds to seconds, depending on the verifier. For an agent making hundreds of tool calls a minute, verifying every call inline can become the bottleneck. The usual answer is to verify at the boundary — when the agent starts, when it requests a secret, when it takes an irreversible action — and to log the evidence for everything else, so the check is cheap at runtime and complete in audit.
The third trade-off is key and measurement management. Attestation only works if someone owns the expected measurements: the PCR values for the enclave image, the SVID trust bundle, the provenance policy. Every code change produces a new measurement, so the release process has to publish new expected values alongside the code — and a stale expected value breaks attestation exactly as surely as a tampered binary does. Treat measurements as release artifacts, versioned and reviewed like any other.
And the trade-off teams forget: attestation is a claim about the environment, not about the data. It can prove the agent ran the approved code on genuine hardware. It cannot prove the input data was honest, the prompt was not injected, or the tool's response was accurate. Pair attestation with input validation and output checks, or you have proven the wrong thing beautifully.
Recommendation
For most teams giving agents real tools in the next quarter: start with Option 2 — SPIFFE/SPIRE identity — and audit logging. Replace static API keys with short-lived SVIDs, write authorization against workload identities, and log every consequential action with the identity that took it. That closes the most common failure (a leaked credential acting as any agent) at the lowest cost.
Add attested execution when the agent handles secrets, money, or regulated data on infrastructure you do not control, or when a customer will ask how you know the code ran. Start with Nitro Enclaves if you are on AWS and the workload fits the enclave shape (no disk, no network, vsock only); use confidential VMs (TDX or SEV-SNP) when the agent needs a full OS, a GPU, or ordinary networking.
Build full provenance only when an external verifier needs to check your agents' actions — a regulator, an auditor, an enterprise customer. Treat it as a product in itself, with an owner, a policy engine, and a release process for measurements. And build the review pipeline first: attestation without a verifier that actually checks is theater.
When not to build this
Do not build an attestation stack for agents that only answer questions. If the agent cannot act — no tools, no credentials, no writes — there is nothing to attest, and the effort is better spent on the model's answers.
Do not build it when the log's only audience is your own team and the actions are reversible. Audit logs plus human review are honest about what they are; attestation adds cryptographic certainty nobody is asking for.
Do not adopt confidential computing because it sounds rigorous and then skip the measurement management. An enclave whose PCR values nobody updates after a deploy will fail closed on every release — and the team will disable attestation to ship, which is worse than never having had it.
And do not confuse attestation with safety. A verified agent can still do the wrong thing confidently. Attestation tells you who did it and what code did it. Whether the action was right is still a design question — scoped tools, human approval on irreversible actions, and a sandbox around everything the agent touches.
What to do next
This week, pick one agent with production tools and answer the three questions for it in writing: who is it (identity), what code runs it (measurement), and what record does it leave (log). If any answer is "we don't know," that is the gap to close first — and it is almost always identity, which is the cheapest to fix. If all three answers exist, verify one of them end to end: take a real action record, check its signature and identity yourself, and confirm the check would fail if the code changed. A verification you have never run is a claim, not a control.
Why This Matters
Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.
Trade-offs to Consider
Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.
When NOT to Use This
Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.
Decision Framework
Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.