Networks have had a control plane for decades: the part of the system that decides where traffic may go, separate from the data plane that carries it. The split works because decisions and execution have different requirements. Execution has to be fast and simple. Decisions have to be consistent, auditable and changeable without redeploying everything.
AI agents need the same split. The agent runtime and its tools are the data plane: they carry out actions. A control plane decides which of those actions may run, under what conditions, and keeps a record of every decision. In Anatomy of an enterprise agent architecture we placed that control plane on the only path between the runtime and its tools. This post opens it up and looks at the most important thing inside: the policy check.
What the check has to do
Before any design, the requirements. A policy check for agent actions has to meet six, and each one rules out some tempting shortcut.
- Deterministic. The same request under the same policy gives the same answer. That rules out asking a model to judge whether an action is safe.
- Outside the model. The check must not be something a prompt can influence. That rules out instructions in the system prompt.
- Expressive enough for real rules. Amounts, currencies, counterparties, data classes, time of day, the agent's own history. That rules out simple allow lists.
- More than yes or no. Real operations need "yes, with a person's sign-off" and "simulate it first". That rules out a plain permission system.
- Fast. It sits in the path of every sensitive action. That rules out anything that adds seconds.
- Recorded. Every decision, with its reasons and the exact policy version, kept in a form an outsider can check. That rules out decisions that live only in application logs.
None of these is exotic. Together they describe something enterprises already run for people, in payments approval systems and access governance tools. The difference is that agents act faster, more often and with less judgement, so the check has to be automatic for the common cases and precise about the rest.

The decision pipeline
A request for a decision carries the agent's key, the tool it wants to call and the arguments. The control plane runs it through a fixed sequence of steps. Order matters: cheap, absolute checks run first, and every step fails closed.
- Identity. The key maps to exactly one tenant. An unknown key is refused before anything else happens.
- Agent. The agent must be registered and active. A paused or stopped agent is blocked.
- Kill switch. A tenant-wide switch blocks every agent at once. It is checked before policy so that it cannot be overridden by a permissive rule.
- Limits. Per-agent rate limits and spending caps. These need shared state (how much has this agent moved today?), which is one reason the check runs in a service rather than inside each agent process.
- Policy. The tenant's active, versioned policy set is evaluated against the request.
- Record. The decision is appended to an append-only, hash-chained event log in the same transaction that stores it.
- Approval. If the outcome is "ask a human", an approval is opened and the right people are notified.
The answer goes back with its outcome and its reasons: which policy matched, or which limit was hit, or that the kill switch is on. Reasons matter. An agent that knows why it was blocked can tell the user, choose a smaller action or escalate. An auditor who sees the reason does not need to reconstruct it.
Why Cedar
The policy step needs a language. We use Cedar, an open-source policy language and evaluation engine built for authorisation. Several properties make it a good fit for agent actions.
It is designed for exactly this shape of question: may this principal take this action on this resource, in this context? It is deterministic and fast. Policies are readable by people who are not engineers, which matters when a risk or compliance team has to sign them off. It has a validator that checks policies against a schema before they are used. And its semantics are strict in a useful way: there is no implicit allow, and a forbid always overrides a permit.
That last rule is how hard limits work. A single forbid with no action in its scope applies to every outcome, so no other policy can open a gap around it.
Four outcomes from three questions
Cedar answers allow or deny. Agents need four outcomes: allow, ask a human, dry run and block. The design we chose keeps Cedar's semantics intact by modelling the outcomes as three Cedar actions, asked in order:
The engine asks whether act is permitted. If so, the outcome is allow. If not, it asks about act_with_approval, then dry_run. If none is permitted, the outcome is block. Each question is a normal Cedar evaluation, so every rule about precedence still holds, and the action name in a policy says plainly what it grants.
Here is a policy for refunds issued by a support agent. Amounts are whole numbers in minor units, because Cedar has no floating-point type and money should not be a float anyway.
// Refunds by a support agent.
// up to 100.00 allow
// 100.01 to 500.00 ask a human
// over 500.00 block
@id("refund-small")
permit (principal, action == Action::"act", resource == Tool::"refund")
when { context.amount_minor <= 10000 };
@id("refund-needs-approval")
permit (principal, action == Action::"act_with_approval", resource == Tool::"refund")
when { context.amount_minor <= 50000 };
@id("refund-hard-cap")
forbid (principal, action, resource == Tool::"refund")
when { context.amount_minor > 50000 };Three rules, readable by a finance lead. A refund of 80.00 is allowed. A refund of 240.00 fails the first question, passes the second, and goes to a person. A refund of 900.00 is forbidden for every action, so it is blocked whatever else the policy set contains. A tool that no policy mentions is blocked by default.
The same pattern covers the actions agents most often get wrong: payments to new payees, bulk data exports, mass email, deleting records, granting access, provisioning costly cloud resources and running code outside a sandbox. In each case the policy names the tool, reads the arguments that matter and sets the thresholds.
Policy as a governed artefact
Policies change, and how they change is itself a control. Policies should be versioned and never edited in place. Activating a new version should be its own recorded step, so the evidence log shows which version decided each action. Before activation, a simulator should replay recent real requests against the new version and show which outcomes would change. A policy change that would have blocked half of yesterday's refunds is something to know before it goes live, not after.
This is where governance frameworks meet the code. The NIST AI Risk Management Framework's Govern function asks for accountable processes for exactly this kind of change, and ISO/IEC 42001 expects documented controls with evidence that they operate. A versioned, simulated, recorded policy is that evidence. Our guide to AI agent governance covers the wider picture, and Governance across jurisdictions shows how one policy record serves several regimes.

Limits, approvals and the kill switch
Policy decides what kind of action is acceptable. Three other mechanisms handle what policy alone cannot.
Limits handle aggregates. A policy can say no single refund over 500.00 runs without a person. Only shared state can say this agent may not refund more than 5,000.00 today, or call this tool more than 30 times a minute. Limits run before policy, and the agent's running total is passed to policy as context, so rules can combine both.
Approvals handle judgement. When the outcome is "ask a human", the action waits. The approval goes to people an administrator named for that tenant, through the channel they already use, and records who answered under the identity the organisation's identity provider vouches for. An agent can never approve its own request, and an approval that is not answered expires as a refusal. Good approval design is mostly about sending fewer, better requests. Human in the loop, done right covers it in depth, and our human in the loop guide explains the terms.
The kill switch handles emergencies. One action stops every agent in a tenant, or one agent, immediately. It is checked before policy, so no permissive rule can override it, and switching it on or off is itself recorded.
Where the check runs: SDK and gateway
The same pipeline can be reached two ways.
The SDK wraps a sensitive function in the agent's own code. The agent asks before acting and carries out the answer: run on allow, wait on ask a human, call a dry-run handler on dry run, and throw on block. The SDK carries out decisions; it does not make them. That keeps one place that decides, and one place to audit.
// Illustrative usage of the TypeScript SDK.
const refund = riskbound.guard("refund", { agent: "support-bot" });
try {
const result = await refund(
{ order_id: "ord_2291", amount_minor: 24000, currency: "EUR" },
() => payments.refund("ord_2291", 24000),
);
// result.outcome is "allow" or "ask_human" (after approval)
} catch (err) {
if (err instanceof RiskboundBlockedError) {
// err.reasons: a policy id, "spend_cap", "kill_switch", ...
}
}The MCP gateway sits in front of an agent's MCP tool servers. The agent's configuration points at the gateway; the gateway starts or connects to the real server, checks each tool call through the same pipeline and forwards only what was allowed, with exactly the arguments that were checked. Because the tool's credentials live in the gateway, the agent has no other route. Our guide to the MCP gateway explains the pattern, and MCP tools and the new attack surface explains why it matters.
The latency budget
A check in the path of every sensitive action has to be quick. Our design target is under 10 milliseconds added per call on the gateway path. That is a target we design and test against, not a guarantee of production performance, and it will be measured, not assumed, before anyone is asked to rely on it.
The shape of the budget is more interesting than the total. Policy evaluation itself is cheap: Cedar is built to evaluate in well under a millisecond, so even three evaluations per decision barely register. The cost is in the network hop and in shared state: the limits lookup and the transactional write to the evidence log. That tells you where to optimise, and why moving policy evaluation into the agent process would save little while losing shared limits and a single point of audit.
What the control plane does not do
Being clear about scope is part of good design. A control plane for actions does not filter what a model reads or writes; prompt and content guardrails do that, and they are complementary. It does not judge whether a response is accurate. It does not replace access management for people. Our comparison pages set out where each kind of tool fits.
What it does is narrower and harder to do without: it makes sure each sensitive action an agent takes was allowed by a rule someone wrote, at a version someone activated, with a person involved where the rule demanded one, and it keeps a record that shows it.
Where this goes next
The control plane is the first layer of Riskbound Control. The decisions it records feed Watch, which turns them into an inventory, a risk score and failure groups, and Insure, which turns them into an indicative price and an insurer pack, with cover through partner insurers still ahead. Fail closed covers what the control plane does when it cannot answer, and Evidence you can verify covers how its record is made tamper-evident.
Riskbound is open source under Apache 2.0, policy templates included. Our thesis explains why we think this layer becomes standard infrastructure, our manifesto states the principles, and the about page explains how to work with us.



