A team ships a remediation agent on a Friday. It runs under a shared service account with cluster-admin, because that was the fastest way to get the demo working, and its system prompt says “never delete anything in production.” On Monday a second team asks for the same setup. By the end of the quarter there are eleven agents, eleven prompts and eleven service accounts, and nobody can say what any of them is allowed to do.
AI agent governance is the set of controls, enforced outside the agent, that decide what it may do, with what access, and what gets recorded. This guide covers where those controls sit, how to decide and scope what agents can do, how to audit them, and how to roll the same rules out across teams.
Key Takeaways
- A system prompt is a request, not a control. Guardrails must be enforced at a gateway the agent’s traffic passes through, where a prompt injection can’t talk its way past them.
- Sort every agent action into allowed, held for approval, or blocked, based on how hard it is to undo in that environment.
- Give each agent its own identity and the narrowest role that does its job. Shared service accounts make “which agent did this?” unanswerable.
- Start every new rule in record-only mode on live traffic, and enforce it once its matches look right.
- The platform team owns the baseline. Application teams can add stricter rules for their agents but can’t loosen it.
Where AI Agent Governance Sits in a Platform Engineering Stack
Governance for agents belongs in the platform layer, next to admission control, RBAC and secrets management, between the agents and the systems they touch. The platform team owns the enforcement point and the baseline rules. Application teams own their agents’ behavior and approvals, and can add stricter rules, but they don’t run their own enforcement.
Most teams start with rules in the system prompt and checks in each agent’s code. Any log line the agent reads can override its prompt, and per-agent checks drift apart. Our earlier post on guardrails for AI agents covers those failure modes.
Guardrails for agents belong with the other platform engineering tools the team already runs, such as admission controllers and policy engines. They solve the same problem: one central rule every workload has to pass, whoever wrote it.
| Control | Where it lives | Who owns it |
|---|---|---|
| Identity and permissions | The platform’s access model, one identity per agent | Platform team |
| Credentials | A central secret store, injected at runtime | Platform and security |
| Guardrail rules | A gateway on every model and tool call | Platform team (baseline), app teams (stricter rules) |
| Approvals | A queue outside the agent | The service owner |
| Spend limits | A budget per agent | The agent’s owner |
| Audit record | Append-only log plus per-run records | Platform team; read by security |
How to Decide What an Agent Is Allowed to Do
Classify each action by blast radius and reversibility in a given environment, not by the tool. Reads and diagnostics are allowed. Writes that can be rolled back, such as a restart or a scale change, are held for a person’s approval at first. Irreversible actions in production, such as deleting a namespace or dropping a table, are blocked outright.
| Action class | Example | Production | Staging |
|---|---|---|---|
| Read and diagnose | kubectl get, log search, metrics query | Allow | Allow |
| Reversible write | Restart a deployment, scale replicas, roll back a release | Hold for approval | Allow |
| Irreversible or broad | Delete a namespace, drop or truncate a table, change IAM | Block | Hold for approval |
| Sensitive data | Secrets or card numbers in a prompt | Redact | Redact |
Agent policy enforcement then turns that table into rules matched on the tool and its arguments, so a delete aimed at a prod-* namespace is caught while the same call in staging passes.
Action classes move up a trust ladder as evidence builds: read-only, then pull requests only, then approval per action, then autonomous for low-risk work. If on-call engineers have approved a class of restarts unchanged for weeks, it’s ready for the next rung.
How to Scope Agent Permissions and Access
Give every agent its own identity, start from deny, and grant only the capabilities its task needs over the resources it works on. Scope grants by label or name pattern rather than account-wide, set an expiry on temporary access, and keep credentials out of the agent’s prompt so that a leaked transcript leaks nothing usable.
AI agent permissions need tighter defaults than a person’s, even inside the same RBAC model. An agent runs unattended and reads text outside parties can influence. It should never hold rights to administer identities, secrets or its own rules, and a payments remediation agent should match team = payments, not every workload in the account.
Store credentials centrally, bind them to the agent that needs them, and deliver them at runtime so the value never enters the model’s context. Spend is a permission too: a per-agent budget that notifies or stops new runs at the cap keeps a looping agent from becoming its own incident. Scoping what an agent can reach is the counterpart of scoping what it reads, covered in our guide to context engineering for AI agents.
How to Audit What an Agent Did
Keep two records. A run record captures what the agent saw and did: the input that started it, every tool call with its arguments and result, each model call, and any approval. An append-only audit log captures who changed agents, permissions and rules. Guardrail decisions, including record-only matches, should be searchable from both.
After an incident, a reviewer asks which agent acted, under which rule or grant, who approved it, and what happened next. If any answer has to be rebuilt from Slack threads, the record has a gap. Traces show where the agent’s reasoning turned; our post on AI agent observability covers what to capture.
Review enforcement activity per rule and per agent on a schedule. A rule that never fires may be dead; one that fires constantly for one team is an exception request waiting to happen. Export the audit log to your SIEM so agent activity sits beside everything else security reviews.
How to Roll Governance Out Across Multiple Teams
Start with one team and one class of agent, ship the baseline rules in record-only mode, and enforce them once a week or two of matches look right. Then make the baseline the default for every new agent across the account, and let each team add stricter rules on top. Every exception gets an owner and an expiry date.
A rollout order that works:
- Inventory agents and owners. Every agent needs a named owner and an escalation route before it nears production.
- Write the baseline account-wide, in record-only mode. Typical first rules redact secrets in model requests, flag tool results that give the agent instructions, and match destructive verbs against production.
- Test before enforcing. Where your tooling allows, run pattern rules against recent tool calls. Otherwise the record-only period is the test.
- Enforce in order of risk. Blocks for irreversible actions first, then holds for reversible writes.
- Onboard teams by label. Tag agents by team and environment so rules follow them.
- Time-box exceptions. Give each an owner and an expiry. One still needed at expiry should become policy.
Policy ownership is the step teams skip. Limit who can change baseline rules to a small platform group, and review rule changes like any production change.
How the Komodor Agentic Operations Platform Puts This in Place
The Komodor Agentic Operations Platform evaluates guardrails outside the agent, at five gates on every model and tool call: agent start, tool call, tool response, model request and model response. One rule applies the same way to agents built on the platform, imported from Claude Agent SDK, LangChain or Google ADK, or taken from Komodor’s catalog of 50+ ready-made agents.
Each rule blocks, holds for approval, redacts or records only. When rules overlap, the most severe outcome wins, so a team’s record-only rule can’t soften a baseline block. Pattern-matched tool-call rules can be checked against the last seven days of calls before enabling, and only Owner and Admin roles can change rules (docs).
A typical Kubernetes remediation agent has its production writes held for approval and delete, drop and truncate blocked outright. A held call is refused and registered; once a person approves it in the console, that exact call can go through. An agent can never approve its own.
Each agent is its own identity under the same default-deny model as people, with a built-in Agent role that can’t administer identities, secrets or authorization. Grants are scoped by label or pattern and can expire. Credentials are stored centrally, scoped to the agent and never placed in its model context, and governed changes land in an exportable, append-only audit log.
To see guardrails, permissions and approvals running against your own agents, book a demo.
AI Agent Governance FAQs
The platform team usually owns the enforcement point and the baseline rules, security sets requirements and reviews the record, and each agent’s owning team owns its behavior, approvals and any stricter rules. In the Komodor Agentic Operations Platform, only Owner and Admin roles can create or change guardrail rules.
Rarely, if they’re placed well. Pattern and value checks are cheap, and only rules that ask a model to judge a policy add a model call. The real delay is approvals, so hold only actions that are hard to undo and let reads and diagnostics run freely.
The model can be the same, but the defaults shouldn’t be. An agent gets its own identity, a narrower role than any person, and no rights to administer identities, secrets or its own rules. It reads untrusted text and runs unattended, so scope its grants by label and let temporary access expire.
Any write to production that’s hard to reverse, any action outside the agent’s scoped resources, and any tool result that tries to give it new instructions. The stop should be enforced as a hold at the gateway, not written as a line in the prompt, so the agent can’t reason its way past it.
No. The current Trust Services Criteria don’t name AI agents or guardrails. If agents are part of the system in scope, auditors test them under existing access, change management and monitoring criteria, and guardrails plus an audit trail are the evidence. The AICPA’s proposed 2027 criteria add AI considerations.
