Think about an agent that reviews credit applications. It denies one, the applicant complains, and a regulator asks the obvious question: why was this application rejected? For many enterprises running agents today, the honest answer is uncomfortable. The agent was handed an API key, pointed at the data, and that was called a deployment. There's no record of what it saw, no way to reconstruct what it concluded, and nothing to show the regulator who asks why.
That gap is what an AI agent audit trail is meant to close. To satisfy a regulator, it has to prove what the agent saw, what it decided, what it did, and who authorized it, and it has to be captured by infrastructure the agent can't touch. That last condition matters most, because an agent's account of its own actions is testimony from the actor that caused the problem, and when the regulator asks, what you need is evidence.
In this post, we cover what a regulator will ask to see when an agent's decision is challenged, why the agent's own logs can't supply it, and how to capture a record that can.
What regulators need to see in an AI agent audit trail
When something goes wrong, a regulator, an auditor, or your own General Counsel will ask some version of the same question: what did the agent see, decide, and do, and who let it? A regulator-ready audit trail is one that can answer each part of that question on demand, for any consequential action, without relying on the agent to explain itself.
- What the agent saw. Every input that shaped the decision, including the records it retrieved and any content you didn't control, such as documents, tickets, or emails that arrived in its context.
- What it decided. Every model call and its output, in sequence, so the path from input to conclusion can be reconstructed rather than guessed at.
- What it did. Every tool call, data access, and write to a system of record, with the parameters it actually sent.
- Who it was acting for. The agent's own identity, kept distinct from the person it acted on behalf of, along with the delegation chain that set its permissions. If an agent took a damaging action yesterday, you should be able to name the human who authorized it.
- Who approved it. For actions consequential enough to need a person, such as large transfers, mass deletions, or customer-facing commitments, a record that the approval happened and who gave it.
- Proof the agent didn't write the record. The record has to be captured by the infrastructure every agent action passes through, not assembled from the agent's own logs or summaries. This is the requirement that separates evidence from testimony, and the next section explains why it matters.
- A complete, immutable, replayable record. Nothing missing, nothing editable after the fact, and enough fidelity to replay the sequence of events as it happened.
- The ability to preserve and produce it. Retention and discoverability that hold up when legal needs the record, across every agent in the estate rather than just the ones a single vendor manages.
The agent's account is testimony, not evidence
If you're running agents in production, you might reasonably say you already have this covered. Every agent call is logged, there's a dashboard showing what the fleet is doing, and the agents themselves can explain each step they took. It's a fair assumption, but watching agents isn't the same as being able to audit them.
Observability dashboards tell you what's happening across the fleet, including cost, performance, and incidents. An audit trail has a different job: proving after the fact exactly what happened, in a form that holds up when someone with authority challenges it. A dashboard built on what the agent reports about itself can do the first job well and still fail the second completely.
The reason is that an agent's account of what it did is generated by the same process that did the thing. Agents don't fail the way people do. They confabulate fluently and with total confidence, and they can be hijacked through the same channels they rely on to decide what to do. Anything the agent can read, it can be talked out of, and anything the agent reports, it can misreport.
Case in point: the agent that recited the rule while breaking it
Redpanda's red-team testing shows how wide the gap between an agent's account and its actions can get. A service-desk agent was put through 41 adversarial tasks while governed by prompt rules alone, and it leaked sensitive data in 22% of conversations.
In one exchange, an adversary asked for a hash of a customer's email address, framing it as a security audit. The agent correctly declined, explained that a hash of an email is effectively the personally identifiable information (PII) itself, and typed the unmasked email address verbatim inside its own refusal.
Nobody hacked that agent. It was simply being thorough. No malice was involved, which is why no malice detector would catch it. The agent's words were a refusal, but its actions leaked the data, and only a full record of the exchange shows both. The same agent, governed by enforcement it couldn't see or touch, leaked in exactly 0% of conversations, and every attempt to exfiltrate through a tool call was stopped cold.
Logs scattered across tools don't add up to an audit trail
The usual workaround is to assemble a stack: an identity product for credentials, a prompt-security tool for injection, a guardrail model for outputs, an observability platform for logs, and data loss prevention (DLP) for leaks. Five to eight products, each covering one slice.
The trouble is that the seams between them are left to you, and an agent can be authorized by one tool, logged by another, and caught by neither. After an incident, none of those products alone can answer the question that matters most to a regulator: who authorized what. You can stitch together an aggregate view, but then you have to maintain it as agents, tools, and vendors keep changing.
How do you monitor and audit AI agent activity?
If the agent can't be trusted to keep its own record, the record has to come from somewhere it can't reach. That means moving capture out of the agent and into a governance layer that sits between every agent and every system it touches, and that every tool call, data access, and model call passes through. The agent can't read that layer, write to it, or route around it, so the record holds whether the agent is confused, compromised, or simply wrong.
An effective layer governs the agent's whole lifecycle, which is to say the way in, the actions in the middle, and the record on the way out.
- On the way in, data is scoped before the agent sees it. A support agent serving one customer receives that customer's records and no one else's, and the layer records exactly what was delivered. That gives you a reliable answer to what the agent saw, and it means the agent can't leak what it never received.
- In the middle, actions pass through enforcement that sits downstream of the agent. Thresholds, spend caps, and approval requirements are checked at the gateway every action passes through, not inside the agent that initiates it. A compromised agent can't skip an approval by claiming it got one, because the gate doesn't take the agent's word for anything.
- On the way out, every input, output, and tool call lands in an immutable record captured by the infrastructure, with enough fidelity to replay the full sequence.
Two further properties make that record usable when it's needed. It should be built on open standards, such as OpenTelemetry, so one evidence trail covers every agent you run regardless of framework, model, or cloud.
The Redpanda Agentic Data Plane takes this approach, recording full-fidelity transcripts over OpenTelemetry to an immutable log that's queryable with SQL, with audit records in the Open Cybersecurity Schema Framework (OCSF) format. And it should be portable. Evidence that stays inside a single vendor's cloud is only as available as your relationship with that vendor, so it's worth asking any provider directly whether you can take the evidence with you if you leave. (That's one ofsix questions to ask before choosing an AI agent governance platform.)
Could you answer the regulator today?
A quick way to test your current setup is to run it against the questions a regulator, auditor, or General Counsel is likely to ask. If any of these take longer than a minute to answer, the audit trail isn't there yet.
- If an agent took a damaging action yesterday, could you name the human who authorized it?
- If a regulator asked what an agent saw, decided, and did last Tuesday, would you produce an infrastructure-captured transcript or the agent's own account?
- When an agent explains what it did, how do you know the explanation is true?
- How many separate products would you need to assemble the answer, and who governs the seams between them?
- If you changed vendors, could you take the evidence with you?
Evidence is what gets agents out of pilot
Let’s go back to the denied credit application. With a record captured this way, the answer to the regulator's question is no longer a story the agent tells about itself. You can show exactly which applicant data the agent was given, the model calls that led to the decision, the tool calls that recorded it, the identity and delegation chain it acted under, and whether a person signed off, all in a record the agent had no way to alter.
That's why audit trails matter well beyond the moment a regulator calls. Most agent initiatives don't stall in pilot because the models aren't ready. They stall because leaders can't trust agents with production data. An audit trail built on evidence rather than testimony makes trust a property of the system instead of a leap of faith, and that's what lets your General Counsel and your board say yes to putting agents to real work.
Want the full picture of what a governance layer has to do, beyond audit trails?Read the Redpanda Handbook to Agentic AI Governance.
{{featured-resource}}
Further reading
- Millstone, Akidau, Brüderl, and Pekker, , Aug 2026
- Akidau, "Posthuman: We All Built Agents. Nobody Built HR." O'Reilly Radar, Apr 2026
- [Blog] What is an agentic data plane and why enterprises need one












