What is runtime authorization?
Runtime authorization is the permission check that runs when an action is attempted. It runs on every call, against live context, instead of once at login. Each action gets a fresh decision based on who is calling, which tool with which arguments, what the session has already done, and what it has already spent. Each rule allows, asks or denies. Every decision is logged.
Also written run-time authorization or run time authorization. Same idea under other names: per-call authorization, continuous authorization, runtime policy enforcement.
Authentication happens once and tells you who is calling. Login-time authorization happens once and tells you what that caller’s role may do in general. Runtime authorization happens every time and tells you whether this action may happen now.
For a person clicking through an app the three blur together. For an AI agent making forty tool calls a minute, only the third describes what actually ran.
Runtime authorization, defined
A runtime authorization decision has four parts. A system only qualifies if it has all four:
- It runs per action. Not at login, not per session. It runs on every call that could change something.
- It sees live context. The verified identity, the exact tool and arguments, the calls that came before, and cumulative use (requests, spend, delegation depth). A role name alone is not context.
- It is enforced where the caller can’t skip it. The decision sits on the path between the caller and the thing being called. A check the caller is trusted to run on itself is a suggestion.
- It leaves a record. Each decision (allow, deny, or hold for a person) is written with the rule that produced it.
Drop any one and you have something else: a login-time grant (no per-action check), an allowlist (no context), a system-prompt rule (no enforcement), or a firewall with no logs (no record).
Runtime authorization vs. authentication
These get mixed up because both are “auth.” They answer different questions at different times.
| Authentication | Runtime authorization | |
|---|---|---|
| Question | Who is calling? | May this action happen, right now? |
| When | Once, at the start | On every action |
| Input | Credentials, tokens | Verified identity plus the call, its arguments, prior actions, cumulative use |
| Output | An identity | A decision and a reason |
Runtime authorization depends on authentication. The identity it checks has to be verified, not claimed. It does not replace it.
Runtime authorization vs. login-time authorization (RBAC)
Traditional authorization was built around a human session: authenticate once, receive a role, and the role’s grants hold until logout. That works when a person is exercising the permissions, because people are slow and deliberate. They click one thing at a time and review each action as they take it.
| Login-time (classic RBAC) | Runtime authorization | |
|---|---|---|
| When policy runs | Once, at session start | On every action |
| Question answered | “What can this role do?” | “May this action happen, right now?” |
| Context available | Role, group, tenant | Identity plus the specific call, its arguments, prior actions, cumulative spend, delegation depth |
| Posture | Grants the role’s full surface | Allow, ask or deny per rule. Deny-by-default is one posture you can choose. |
| Sees action chains | No. Each grant is evaluated in isolation. | Yes. Read-then-exfiltrate looks different from read. |
| Audit granularity | Session-level | Per action, with the matched rule |
RBAC doesn’t disappear. It still defines the baseline: who is allowed what, in principle. Runtime authorization checks each actual action against that baseline, plus the context RBAC can’t see.
Runtime authorization vs. ABAC
ABAC (attribute-based access control) is a policy model: decisions from attributes of the subject, the resource, and the environment. Runtime authorization is about when and where the decision runs: every call, at a point the caller can’t skip. The two fit together. A runtime authorization layer usually evaluates ABAC-style policy, and adds an attribute ABAC on its own rarely has, which is the session’s own history.
How runtime authorization works: the decision loop
Every call carries its context to the policy point. The policy point returns a decision and a reason, and writes the audit row. This example is from the framework path, where the end user’s identity comes from your identity provider:
# input: assembled by the enforcement point, not the agent
identity: auth0|8f3a2b1c # verified JWT, not a claim the agent makes
tool: email.send.external
agent_tier: background # no human watching this session
chain: depth 2, root auth0|8f3a2b1c
spend: $48.73 of $50.00 daily budget
# output
decision: DENY
reason: role:rep denied tool:email:send:external
audit: written (identity, tool, rule, timestamp)
There are three outcomes: allow, deny, or ask, which holds the call until a person answers. The caller finds out the way any client finds out, with a denied request and a reason, instead of being trusted to check policy itself.
Here is the loop live. Each row is one policy-checked tool call, with the decision, the verified identity behind it, and the latency of the check.
Runtime authorization examples
Concrete rules, each of which only works if the check runs per call:
- Tool by tier. A rule can allow
Bash.rmin an interactive session, hold it for a person when a subagent asks, and deny it for a background job. Same tool, three answers, decided by who is watching. - Chains. With the exfiltration preset on, reading CRM records and then calling
email.send.externalin the same session is denied. The second call is judged with the first in view. This is a policy you enable, not something that runs by default. - Spend as permission. “May consume $50 of model calls today” is a policy statement. With budget halting turned on, call 412 is denied because calls 1 to 411 already spent $49.90.
- Delegation. An agent acting for a manager gets a narrowed scope, not the manager’s scope. RFC 8693 (OAuth token exchange) exists because delegated access is supposed to shrink.
- Argument-level checks.
git pushis fine.git push --forceis held for approval on any branch (--force-with-leaseis not). The tool name alone can’t tell them apart. The arguments can.
Why AI agents force the issue
Runtime authorization existed before AI agents. Zero-trust architectures have argued for continuous verification for years. Agents made it necessary.
An agent given a task chains tool calls on its own. It decides while running which files to read, which commands to execute, which APIs to hit. It works at machine speed, and each call is an action your login-time grant never specifically approved. By the time a human could review the third call, the agent has finished the task.
That gap has a clear shape:
- You authorized intent, not actions. “The agent may act as Alice” says nothing about this
DELETEstatement at this moment. - Risk lives in chains, not calls. Reading CRM data is fine. Reading CRM data then calling
email:send:externalis an exfiltration pattern. Only a per-call layer that has seen the earlier calls can tell the difference. - Delegation shouldn’t mean inheritance. An autonomous process acting for the CFO should not hold CFO-level permissions. Most agent frameworks skip narrowing entirely. OWASP’s Top 10 for Agentic AI names the result, excessive agency, as a headline risk.
- Spend is an authorization question too. A single looping agent can spend a month’s budget overnight if nothing meters it per call.
Where runtime authorization is enforced
Where the check runs matters as much as what it checks. There are three places, and they are not equally hard to skip.
- Inside the prompt. System-prompt instructions and “safety skills” ask the agent to check itself. A prompt-injected agent can be talked out of them.
- A hook on the agent’s machine. This is how ACP covers coding agents like Claude Code. The hook sends each call to the gateway, the gateway decides, and the harness enforces the answer. Claude Code runs hooks even under
--dangerously-skip-permissions, which only drops the permission prompts. What does switch a hook off is a local settings edit (disableAllHooks, removing the hook entry) or never installing it. Org-managed settings (allowManagedHooksOnly) can pin it. See the deny-list bypass post. - A proxy or SDK in the path. The model proxy (
claude-acp) and framework SDK wrappers sit on the route the call takes, so a client flag does not remove them.
The hook path fails open by default. The Claude Code plugin shows a loud UNGOVERNED banner when it can’t reach the gateway and lets interactive sessions continue. It fails closed for unattended tiers (subagent, background, API). The shared hook other harnesses use fails open unless ACP_FAIL_MODE=closed or ~/.acp/failmode is set on that machine. If you need a check that cannot be bypassed from the client, use fail-closed plus managed settings, or route through the proxy. See what a gateway can actually enforce.
When you need runtime authorization
- Your agents take real actions (create tickets, modify records, send email, run shell commands), not just retrieve text
- Agents run unattended (CI, scheduled jobs, background tiers) where no human watches each action
- You’re in a regulated context (SOC 2, HIPAA, the EU AI Act’s human-oversight provisions) and “we told the model not to” won’t survive an audit
- Several runtimes (Claude Code, Codex CLI, Cursor, custom SDK agents) need one consistent policy, not per-tool config drift
- Model spend needs a hard ceiling, per user or per agent, enforced rather than dashboarded
Frequently asked questions
What is runtime authorization?
Runtime authorization is the permission decision made when an action is attempted. It runs on every call, against live context (verified identity, the specific tool and its arguments, what the session has already done, what it has already spent), rather than once at login. Each rule allows, asks or denies, and every decision is logged. It is also written run-time authorization or run time authorization, and it goes by per-call authorization, continuous authorization, and runtime policy enforcement.
What is the difference between runtime authorization and authentication?
Authentication answers who is calling. It happens once, at the start. Runtime authorization answers whether this specific action may happen now, and it happens on every action. You need both: runtime authorization uses the identity that authentication established, and adds the call, its arguments, and the session’s history to the decision.
How is runtime authorization different from RBAC?
RBAC answers “what can this role do?” once, at session start, and the grant holds for the whole session. Runtime authorization answers “may this specific action happen right now?” on every call. RBAC still assigns the baseline permissions. Runtime authorization checks each action against them, and adds context RBAC can’t see, like call chains, cumulative spend, and delegation depth.
Is runtime authorization the same as ABAC?
No, but they overlap. ABAC is a policy model: decisions based on attributes of the subject, resource, and environment. Runtime authorization is about when and where the decision runs: on every call, at a point the caller can’t skip. A runtime authorization layer usually evaluates ABAC-style policy per call.
Why do AI agents need runtime authorization?
Because agents act on their own, at machine speed. A human clicks one button at a time. An agent can make dozens of tool calls in seconds and chooses the calls as it goes. A login-time grant approves the intent, not the actions. The only checkpoint that reflects what an agent did is one that runs on every call.
Where should runtime authorization be enforced?
Somewhere the agent can’t talk its way past. A check written into the prompt can be ignored by a prompt-injected agent. A hook on the agent’s own machine is better: Claude Code runs hooks even under --dangerously-skip-permissions, which only removes the permission prompts. But a hook can still be switched off by editing local settings (disableAllHooks, removing the hook entry), and ACP’s hooks fail open by default if the gateway can’t be reached. Managed settings (allowManagedHooksOnly) can pin the hook, and you can opt into fail-closed. A model proxy or a framework SDK sits outside the client’s own switches.
Related concepts
- Per-call permissions for AI agents: why RBAC breaks at agent speed: the long-form argument, with worked policy examples
- What is an agentic control plane?: the layer that makes these decisions and records them
- AI agent tool allowlists: deny-by-default for Claude Code, Codex CLI, and MCP
- Agent delegation chains: how identity and narrowed scope survive agent-to-agent hops
- The tool surface index: what agents can actually call, captured from live traffic
Related: What a gateway can actually enforce · The three planes · Agent identity vs. agent control
Running coding agents? ACP records each tool call its hook sees and makes the dangerous shell commands (a force-push, destructive SQL, curl | sh) wait for you. One command, free up to 5 agents:
curl -fsSL https://agenticcontrolplane.com/install.sh | bash
irm https://agenticcontrolplane.com/install.ps1 | iex