
Manage AI agents like code with GitOps
Review prompts, permissions and data policies in one pull request, then enforce them at runtime with Redpanda

An agent can tell you what it did, but only infrastructure can prove it
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.
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.
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.
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.
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.
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.

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 of six questions to ask before choosing an AI agent governance platform.)
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.
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}}

Review prompts, permissions and data policies in one pull request, then enforce them at runtime with Redpanda

An agent's reply is a claim, and only the record can prove it

Why AI agent accountability starts with observability, and how to mitigate risk with AI governance
Subscribe to our VIP (very important panda) mailing list to pounce on the latest blogs, surprise announcements, and community events!
Opt out anytime.