An AI agent saying “done” is a status update. An AI agent audit trail should let someone check whether anything actually happened.
Those sound like the same thing until a refund request times out. The customer sees no confirmation. The agent tries again. Somewhere, a payment system may now have two perfectly valid requests. Groundhog Day is a less charming product feature when the money is real.
The useful record connects the task, exact action, permission decision, human approval and external result. It also admits what is still unknown. This article is about designing that record before an incident. It does not decide who is legally liable afterwards.
What belongs in an AI agent audit trail?
Start with a question a person might ask, not a collection of fields an observability tool happens to export. Who requested the change? Which agent acted? What authority did it have? What did a reviewer approve? What reached the external system? Can we establish the effect?
A conversation transcript records messages. A technical trace connects operations and timing. An audit view selects the evidence needed to review a decision or action. These can share identifiers and underlying records, but none automatically answers every question the others answer. A transcript saying “I checked permission” is not the permission decision.
Keep stable references between records so a reviewer can follow the sequence without copying sensitive payloads into every dashboard. The agent identity discussion covers the identity boundary. Here, the job is to connect that identity to a particular action.
| Question | Record | Preferred source |
|---|---|---|
| Who and which version? | Initiating principal, agent ID, workflow/configuration version | Application and runtime |
| What was proposed? | Action ID, tool, target and protected parameter reference | Proposal before execution |
| What allowed it? | Policy ID/version, decision and any approval reference | Independent enforcement component |
| What actually ran? | Attempt ID, exact parameter reference, external request ID | Tool executor |
| What changed? | Receipt, confirmed state or explicit unknown outcome | Affected external system |
| Can records be joined? | Event ID, timestamp, run ID and parent references | Each producing component |
Keep the approved action and executed action connected
Imagine a support agent proposes an AED 80 refund to a particular customer for a particular order. This is an illustrative workflow, not a customer case. The approval needs to refer to that action. “Approved refunds” is too vague to distinguish AED 80 from AED 800, or one recipient from another.
The execution component should independently check the relevant authority before it calls the payment service. The model should not be able to grant itself permission by writing a convincing explanation. OWASP’s AI Agent Security Cheat Sheet recommends binding approval to the actor, tool, target and parameters, with validity and replay checks. Changing the target or parameters requires a new approval.
Record the decision where that check actually happens. If a required approval was missing, the denied event matters too. A log containing only successful actions can describe activity while hiding whether the boundary ever stopped anything.
This is also why an approval reference should resolve to the original decision. If somebody edits the policy tomorrow, yesterday’s event still needs yesterday’s policy version. Pointing every historical record at the latest document quietly changes the story.

A worked refund sequence with an honest unknown
In the example, the agent creates act-080 for AED 80. A reviewer approves its exact parameters. The execution gate checks that decision, records that the approval has been consumed for this action, and starts one external request. The payment response is lost.
At that point the transport outcome is a timeout. The business outcome is unknown. Calling it “failed” would add a conclusion the evidence does not support. Calling it “completed” would do the same thing with a happier colour.
The executor records the unresolved state and uses the external request reference to reconcile the outcome. In this fictional record set, a later read-back returns a matching refund receipt for the same amount and recipient. Only then does the record show a confirmed refund. A different response might establish rejection, partial completion or continuing uncertainty.
The downloaded example also includes a separate attempt to change the amount to AED 800. That action is denied because the existing approval does not cover the changed parameters. It produces no external payment request. The example demonstrates the distinction; it does not implement a production approval system.
{
"event_type": "execution.observed",
"action_id": "act-080",
"attempt_id": "attempt-1",
"transport_status": "timeout",
"business_outcome": "unknown",
"next_step": "reconcile external receipt"
}
Download the illustrative refund event records (JSONL in ZIP) contains the complete seven-event illustrative sequence. All identities, amounts and references are fictional. Field names are a proposed teaching format, not a claim of compatibility with a specific logging product.
A retry needs more than optimism
Idempotency means designing an operation so repeating the same intended request does not multiply its effect. It is useful here, but the details belong to the external service. The request identity, parameter matching, retention window and retry behaviour all matter.
For example, Stripe documents its idempotent request behaviour, including differences between API versions and checks on reused parameters. That is a service-specific contract. It is not evidence that every payment API, tool or agent framework behaves the same way.
Record the idempotency reference alongside the attempt and receipt references. Keep the secret or sensitive material out of that reference. If the service cannot safely recognise a repeat, the recovery procedure needs another way to establish the previous effect before a new request is allowed. A fresh random request ID does not turn a duplicate business operation into a new intention.
Record enough, without turning logs into a data leak
There is a tempting answer to every audit question: log everything. It is also an excellent way to create a second database of information nobody meant to retain.
Separate protected source records from the review view. Store only the fields necessary for the review at that layer, and use access-controlled references where the underlying detail is needed. Define who can read those records, how long they are retained and how corrections are appended without erasing the original.
OWASP’s Logging Cheat Sheet discusses interaction identifiers, sensitive data exclusions, tamper detection and restricted log access. Those are useful design concerns. A hash by itself does not prove that an event was truthful when it was created, and a complete-looking record can still be incomplete if a producing system never emitted the event.
Document those limits. If clocks differ, acknowledge the ordering uncertainty. If an external receipt is unavailable, keep the outcome open. If a source is a model-generated narrative, identify it as such rather than using it to establish the cause of an action.
Keep schema checks separate from evidence checks
A valid JSON file can still tell you very little. A schema check can establish that an event has a timestamp and an action reference. It cannot establish that the timestamp is accurate, that the referenced approval exists or that the payment receipt belongs to the requested customer.
Use a second check for those relationships. Resolve the approval, compare the approved and executed parameters, and reconcile the receipt against the target system. Record a broken reference as a broken reference. Do not fill the gap with an inferred value just to make the dashboard load. The sample download deliberately stops short of being a validator because a useful validation rule depends on the systems producing the evidence.
Test whether another person can reconstruct it
Use a safe test environment and interrupt an action after dispatch. Give a reviewer the records, not the developer’s explanation. Ask them to identify the approved amount, executed target, known outcome and remaining uncertainty. Then ask which record supports each answer.
Download the Excel workbook (.xlsx) pairs the seven-event JSONL with an event walkthrough, ten evidence-join checks and ten proposed failure tests. It distinguishes what the sample states from what source records would need to establish. Production checks start as NOT RUN. A missing receipt needs a visible gap, not six points deducted from a reassuring percentage.
Individual CSV sheets
The Excel file contains all three sheets, instructions and references. CSV files use UTF-8 and comma separators. If your spreadsheet app shows one column, import using comma as the delimiter.
If the evidence has already become an incident, use the incident evidence checklist to preserve what exists. After investigation, connect the failure to postmortem regression tests. The audit trail is the connective tissue, not the entire governance programme.
I would rather see a record that says “unknown, here is the next check” than a perfect narrative nobody can verify. The person investigating needs somewhere to start. “The agent seemed confident” is not much of a starting point.

