Agent auditability is the ability to reconstruct an agent's actions and examine the evidence behind them. A transcript captures what was said. An audit trail also needs to explain which identity acted, what it was allowed to do, which tool ran, which source informed the answer and what changed.
Why conversation logs and Git history are not an audit trail
Each record answers a different question. A transcript tells you what an agent said. A log tells you that something happened. Git tells you what changed, who committed it and when.
None of them tells you which agent started the change, which prompt produced it, which tools took part or whether the action was autonomous, scheduled or supervised. Git sees diffs. It does not see decisions.
Much of the activity in an agent system also happens between commits: loops, hooks, validators, retries, reviews and scheduled runs. Without a record of that activity the system develops blind spots. Blind spots become dangerous when agents operate without supervision.
Record decisions at the service boundary
Give a run and its tool calls stable identifiers. Record the caller, the applicable authorization decision, tool version, timestamps, outcome and references to relevant artifacts. Keep model and prompt versions available alongside the execution record. A tool's own service should record the operation it actually executed, rather than trusting a model's description of it.
Avoid treating every payload as something to retain forever. Define which fields can be logged, which require redaction, who can inspect records and how long they remain available. An audit system that leaks customer data creates a new incident surface.
Illustrative audit event:
run_id / tool_call_id / actor_reference
operation / tool_version / authorization_decision
started_at / finished_at / outcome / artifact_references
These fields are a starting point, not a compliance standard. The record must fit the operations and questions the organization needs to investigate.
What an audit record of an agent action must contain
The fields above describe one tool call. An audit also needs the context around it. The accountability question is what the agent committed to, what it produced and what supports the claim that the work is complete. A complete record answers these points:
- What started the action: a user request, a ticket, a schedule or another agent.
- Whether it ran autonomously, on a schedule or under supervision.
- What the agent committed to do.
- What it produced: an artifact, a code change or a test result.
- What supports completion, such as a review tied to the version that was evaluated.
- Which objections remain open. A confident completion message must not erase them.
- Which interventions a person made, such as a pause, a new priority or a change of authority.
Write the record append-only. Every operation is recorded, nothing is edited and nothing is deleted. The current state is computed by replaying the history. I am incorporating an accountability ledger of this kind into my own agent environments, and the open-source Mentu Protocol is one implementation of the idea.
Distinguish observation from justification
A trace may show that a tool ran. It does not automatically show that the user had permission, that the returned data supported the conclusion or that deployment was justified. Attach the evidence relevant to each decision. For a release, that may include the evaluated configuration, test results, approval and deployed identity.
My preprint From Traceability to Justifiability examines this distinction in public delivery records. Its findings have a defined sample and observation date. The paper and repository allow readers to inspect the method instead of accepting a general claim that all agent pipelines behave the same way.
The question the preprint asks is narrow. When a pipeline promotes an AI system, can its records say that the thing tested is the thing deployed? Measured across 47 delivery platforms and 30 public repositories, the answer was not yet. Nothing emitted a checkable identity of the deployed behavior by default. The paper places such records short of justifiability, the level at which evidence can refuse a transition and not only describe it.
How to know which version of an agent acted
After an incident, a reviewer has to establish which behavior ran. The behavior of an agent depends on the model version, the instructions, the tool definitions and the retrieval and runtime configuration together. Change one of them and the behavior can change.
- Record an identity for that whole set on every run, next to the run identifier.
- Prefer an identity computed from content over a version name. The preprint reports that version integers behind mutable pointers are arriving as the default on agent platforms. A pointer that can move does not prove what ran.
- Record the same identity when the configuration is evaluated. A reviewer can then tell whether the behavior that acted is the behavior that was tested.
- Check that the evidence can be verified where it is declared. A binding that nobody can check is a statement, not evidence.
Check whether the trail answers an incident question
Take a failed or disputed action and try to reconstruct it without asking the original agent. Can another reviewer identify the actual tool arguments, relevant permission decision and outcome? Can they distinguish an attempted operation from a committed change? Can they identify missing evidence instead of receiving a fabricated explanation?
Test interrupted runs, denied operations, retries and partial failures. Check that sensitive data remains protected when someone reads the audit trail.
How to audit an AI agent step by step
- Pick one action that failed or was disputed.
- Find its run and tool call identifiers without asking the agent that acted.
- Read the record written by the service that executed the operation, not the description the model gave.
- Confirm the caller and the authorization decision.
- Separate what was attempted from what was committed.
- Match the outcome to evidence: an artifact, a test result or a review of the same version.
- Identify the deployed configuration and compare it with the one that was evaluated.
- Write down what was observed, what was inferred and what is unknown.
If a step cannot be completed, that gap is the finding. Fix the recording before the next incident, not after it.
What goes wrong with agent audit trails
- The model describes its own action and the system stores that description as the record.
- A completion message erases an open objection. The work looks finished until someone examines it.
- A second agent approves the work by repeating the same assumption. Agreement is not verification. Ask whether the review introduced a test that the work could have failed.
- Activity is read as progress. An agent can produce constant output with no accepted result. Count accepted results, reopened work and repeated failures, not actions.
- A person intervenes in a terminal and the instruction never reaches the shared record.
- The policy lives only in the prompt. Permissions, ownership and review requirements cannot depend on an agent remembering to respect them.
- The trail keeps payloads that should have been redacted, and the audit becomes a leak.
A worked example: reviewing a tool call through a gateway
My MetaMCP case puts many tools behind a smaller gateway that runs on Cloud Run. Suppose a reviewer questions one tool call made by a cloud agent.
The first question is who called. The gateway combines the Cloud Run caller identity with bearer auth at the application level, so the caller is established at the boundary and not by the model. The second question is what ran. The gateway writes a ledger, and the case includes an export of that ledger as evidence. The third question is whether the service behaved as deployed. Smoke tests cover health, auth, initialize and the tools list. Logs and prompt fixtures complete the picture.
The reviewer needs neither the original conversation nor the agent that acted. That is the test an audit trail has to pass.
Evidence to request when choosing an engineer
Ask for an example incident reconstruction and the records that support it. Look for clear boundaries between what the system observed, what the engineer inferred and what remains unknown. The MetaMCP and evaluation-harness cases below show implementation work; the research source explains the accountability questions behind it.
Where to go next
- An AI governance framework for engineering teams: NIST AI RMF and ISO/IEC 42001 as controls you can test
- Case study: MetaMCP as a Cloud Run MCP gateway
- Research: the preprint, its repository and the other papers.
- MCP servers and integrations
- LLM and AI agent evaluation