Audit trail for AI agent decisions: the record you will be asked to show
When an agent takes part in a decision, someone will later ask what it proposed, on what evidence, which control it passed and who authorized it. The record that answers that has to be written at the time, be impossible to alter unnoticed, and store the minimum necessary.
The question that arrives months later
A client, an auditor or an investor rarely argues about the outcome in the abstract. They ask whether there were grounds to decide that way with what was known then. With an agent involved, two more questions appear: which part the machine did and what human control existed.
Ordinary execution logs (which tool was called, with which parameters) tell you what happened. They do not tell you why it was reasonable.
What each entry must contain
| Field | What it answers |
|---|---|
| Proposed action and alternatives | What was going to be done and what it was compared against. |
| Agent and run | Which system proposed it and in which run. |
| Policy applied | Which thresholds it was evaluated with. |
| Verdict and reasons | What the control said, as stable codes. |
| Evidence: source and fingerprint | What it rested on, without storing the content. |
| Resolution | What was finally done and who decided. |
| Outcome | How it turned out, recorded later. |
Tamper-evident is not the same as stored
A record in a database can be edited. For it to work as proof, altering an entry has to leave a trace. The technique is chaining: each entry includes the hash of the previous one, so changing or deleting one breaks every entry after it.
{
"id": "aud_3f9c1a7e52b04d16",
"created_at": "2026-11-18T14:02:11Z",
"kind": "verification",
"verdict": "review",
"record": {
"action": "Recortar 15% el gasto de marketing",
"agent": {"name": "finance-agent", "run_id": "run_8841"},
"policy": {"min_confidence": 0.6, "min_margin": 0.1, "min_evidence_quality": 0.3},
"reasons": ["confidence_below_minimum"],
"evidence": [{"source": "pnl-2026.xlsx", "sha256": "9b1d…"}]
},
"prev_hash": "44e0…",
"entry_hash": "c7a2…"
} In Verdika, GET /v1/audit recomputes the chain and reports whether it is intact and, if not, at which entry it broke. Corrections do not edit: they are appended as new entries.
Human control has to be written down
If verification said review and a person decided to execute anyway, that is legitimate, but it has to be on record. The resolution stores whether it was executed, who decided and a note. When something is executed without an approve, the entry is flagged as an override. That flag is what separates real oversight from decorative oversight.
Store the minimum
An audit trail that copies all input data becomes a privacy problem. For evidence, the source and a SHA-256 fingerprint are enough: they let you show later that a specific document was the one used, without storing it. The EU AI Act points the same way by requiring record-keeping and human oversight for high-risk systems1; whether your case falls in that scope is a question for your legal counsel.
Start the record before you need it.
Every API verification is chained from the first one.
Read the API documentationFrequently asked questions
How is this different from the agent’s logs?
Logs record what was executed. The decision audit trail stores what was proposed, against which alternatives, on what evidence, what the control said and who authorized it.
How do you show it was not altered?
Each entry includes the hash of the previous one. Verifying the chain detects any change or deletion and points to where it happened.
Is the evidence the agent sends stored?
Not the content: only the source and a SHA-256 fingerprint.
References
- Regulation (EU) 2024/1689 (Artificial Intelligence Act), Articles 12 and 14, official text: eur-lex.europa.eu/eli/reg/2024/1689/oj.
You may also find useful: AI agent guardrails API · How to document a defensible decision