![]()
Enterprise agentic AI isn’t failing because the models aren’t good enough. It’s failing because nobody built the infrastructure to make imperfect agents safe to deploy. CIOs do not trust them with their data.
AI agent governance at scale is the unsolved problem. Here, Redpanda lays out a framework for solving it.
Why enterprise agents keep failing
Agents differ from humans and traditional software in three ways that compound one another. They’re unpredictable in ways no human employee is. They hallucinate, misinterpret ambiguous instructions, and are susceptible to prompt injection. They’re more capable than any individual operator, able to interact with production systems at a speed and scale no human can match. And they are directable to a fault: When given a bad plan, an agent doesn’t push back. It executes at machine speed across every system it can reach before anyone notices that something is wrong.
That combination is genuinely new, and it’s what makes enterprise AI security infrastructure such an unsolved problem. Human employees are unpredictable but limited in what they can actually do, and they push back when something feels wrong. Traditional software is capable but does exactly what you coded it to.
Agents are unpredictable, like humans, and capable, like software, but without the human judgment to question a bad plan or the determinism to at least fail consistently. We don’t need perfect agents. We need to manage imperfect ones the same way we’ve always managed imperfect humans.
The foundation: out-of-band governance
Before the specifics, one principle underpins everything else in this framework.
Enforce governance through channels agents cannot access, modify, or circumvent.
Or more succinctly: out-of-band metadata.
Any policy enforced through the agent is only as strong as the agent’s ability to retain and obey it perfectly. Put rules in the system prompt, and prompt injection can override them entirely. Train the agent to respect boundaries, and hallucination can cause it to confidently invent permissions it doesn’t have. Even routine context management can silently drop the rules it was told to follow.
Real governance runs out-of-band: outside the agent’s data path, invisible to it, enforced by infrastructure the agent cannot touch. The agent doesn’t get a vote.
The four pillars of AI agent governance at scale
Each of the four pillars below addresses a specific way the existing infrastructure fails when agents are in the loop.
Identity
Most agent deployments today use shared API keys or service account tokens, which is the equivalent of an entire department sharing one badge. You can’t tell one agent’s actions from another’s, and tracing anything back to the human who kicked off the task is basically impossible.
The fix is to make the identity instance-bound: each agent instance gets its own cryptographic identity tied to this specific task and to this specific person or delegation chain. Spin up a copy without going through provisioning, and it doesn’t get in. It’s like issuing a new employee a badge on their first day, except agents get a new one for every shift.
For delegation, where an agent acts on behalf of a human, that chain needs to be carried by infrastructure the agent can’t touch. Not in the prompt or in a header the agent can modify. Every system the agent touches should know not just who the agent is, but who sent it. Some standards efforts are emerging here, including OAuth 2.0 Token Exchange (RFC 8693), but most deployed systems today have no concept of this.
Authorization
The problem with most agent authorization today is that agents get a role’s worth of permissions for a single task’s worth of work. In other words, their permissions are often way broader than any individual task requires.
What you actually want is the agent to get read access to the specific three tables it needs for a specific job, and for those permissions to evaporate once the job is done. Everything else should simply not exist from the agent’s perspective.
To put it briefly, agent authorization needs to be narrowly scoped to the task at hand, short-lived, with hard boundaries, and limited to the same permissions as the human it’s acting on behalf of. A marketing intern can’t access the production database, and so neither should their agent. It’s like having a visitor badge, where having an employee escort you doesn’t get you into the server room if visitors aren’t permitted there.
Observability and explainability
When something goes wrong with traditional software, you can debug and find the “if” statement that made the bad decision. There’s no equivalent for an LLM. If you want to understand why an agent did what it did, you have two options: ask it (unreliable, for obvious reasons) or analyze everything that went in and everything that came out and draw your own conclusions.
That means the transcript has to be complete. Not metadata, not just “the agent called this API at this timestamp,” but every input, every output, every tool call with every argument and every response, captured by infrastructure the agent can’t touch.
- Observability is: “Can I see what happened?”
- Explainability is: “Can I reconstruct what happened and justify it to a regulator, an auditor, or the customer it affected?”
Getting to explainability means the transcript needs to be structured and versioned: which model, which prompt, which tool versions were running when the decision was made. The EU AI Act already requires this for high-risk AI systems, and that’s only going to spread.
The bottom line: Record everything. And the transcript should be captured by infrastructure the agent can’t influence (throwback to the out-of-band principle). Don’t trust an agent to be its own record-keeper.
Accountability and control
When something goes wrong, you need to follow the chain from what the agent did all the way back to the specific human who authorized the task. Not “this API key belongs to the engineering team,” but the actual person who set the thing in motion.
Then there's the killswitch dilemma. If an agent goes off the rails, do you revoke the API key that ten other agents are also using? Here's where instance-bound identity pays off: you can revoke this specific agent instance without taking down the other ninety-nine, then use the full transcripts to understand and remediate whatever it already did before you caught it.
However, it’s less about stopping agents that have gone wrong and more about keeping them from going wrong in the first place. Most enterprise agent deployments today lean on human-in-the-loop as the primary safety mechanism. That’s fine as a starting point, but it doesn’t scale.
Identity, scoped authorization, full transcripts, and clear accountability chains in place. Get these four things right, and you’ll have something most enterprises don't have today: the infrastructure to manage agents the way you manage employees. Yes, that means establishing constraints, but it also means development, performance reviews, and escalating trust as agents prove themselves. The same infrastructure that enables governance also enables management.
AI agent governance cheat sheet
The conversation around agent governance is growing, although much of it focuses on improving the models, tightening alignment, and reducing hallucinations. That work is certainly important, but we need the institutional infrastructure that lets imperfect agents do real work safely.
So here's the cheat sheet:
The agents aren't the problem. The missing infrastructure between agents and your data is the problem. Agents are unpredictable, capable at machine scale, and directable to a fault. They’re fundamentally a new kind of coworker. We don't need perfect agents. We need to manage imperfect ones, just like we manage imperfect humans.
The foundation is out-of-band governance. Any policy enforced through the agent (e.g., in its prompt, in its training, in its good intentions) is only as strong as the agent's ability to perfectly retain and obey it. Real governance runs in channels the agent can't access, modify, or even see.
That governance has to cover four things:
- Identity. Instance-bound, delegation-aware. Every agent instance gets its own cryptographic identity, and every on-behalf-of chain is propagated faithfully through infrastructure the agent doesn't control.
- Authorization. Scoped per-task, short-lived, deny-capable, and intersection-aware for delegation. Not a human role's worth of permissions for a single task's worth of work.
- Observability and explainability. Full-fidelity, versioned, infrastructure-captured transcripts of every input, output, and tool call. Not metadata or self-reports. The whole thing recorded out-of-band.
- Accountability and control. Clear chains from every agent action to a responsible human, and kill switches that are fast enough and precise enough to actually contain the damage.
Every major paradigm shift in how we work has demanded new governance infrastructure. It feels impossibly complex at the start, and then we build the systems, establish the norms, iterate. We never waited for perfect employees. We built systems that made imperfect employees successful, and we can do the same for agents.
This story was produced by Redpanda and reviewed and distributed by Stacker.


(0) comments
Welcome to the discussion.
Log In
Keep it Clean. Please avoid obscene, vulgar, lewd, racist or sexually-oriented language.
PLEASE TURN OFF YOUR CAPS LOCK.
Don't Threaten. Threats of harming another person will not be tolerated.
Be Truthful. Don't knowingly lie about anyone or anything.
Be Nice. No racism, sexism or any sort of -ism that is degrading to another person.
Be Proactive. Use the 'Report' link on each comment to let us know of abusive posts.
Share with Us. We'd love to hear eyewitness accounts, the history behind an article.