Permissions Decide What Runs Unasked
A gate in front of an agent's irreversible actions is only as good as the attention of the person standing at it. Anthropic, explaining why it built a sandbox for Claude Code, wrote that constantly clicking "approve" "can lead to 'approval fatigue'," where people "might not pay close attention to what they're approving." When Agents Need a Sandbox showed where that ends: with the gate opened. Ask about everything and the person stops reading. Ask about nothing and there is no gate. Permissions are how you decide which few actions deserve the question, and which should not be possible for the agent at all.
Thesis: Permissions bound the part of the blast radius a sandbox cannot: what the agent may do to the systems it can reach. Give it the fewest tools and the narrowest credentials the task needs, enforced where the model cannot argue, in the harness and in the systems themselves. Then sort every remaining action by two questions, can it be undone and how far does it reach: contained, reversible work runs on its own, the outward or irreversible waits for a person who is shown its exact effect, and the catastrophic is not in the agent's credentials at all.
Three Ways an Agent Has Too Much
What an Agent Sandbox Bounds split an agent's blast radius into four parts and left the fourth, the systems it can act on, to identity and permissions. The Open Worldwide Application Security Project (OWASP) names the failure in that fourth part excessive agency, an agent able to do damage when its output is wrong or manipulated, and traces it to three kinds of excess (LLM06, 2025). Each has its own fix.
| Too much | What it looks like | The fix |
|---|---|---|
| Functionality | A mail-triage agent that only needs to read, given a mail tool that can also send and delete | Offer only the tools the task needs |
| Permissions | A tool connected with an administrator's account when the task reads one table | Give each tool only the access the task needs |
| Autonomy | High-impact actions that run with nobody checking | A person approves high-impact actions before they run |
The principle under all three is least privilege: a system restricts each user's access, and that of the programs acting for them, to what their tasks require (NIST). An agent is such a program.
The order of the three fixes matters. Remove before you gate. A tool that is not there cannot be misused, and a credential that cannot delete does not delete, whatever an approval screen says. So the check that counts is made by the system that owns the data, on every action, not by the model deciding whether an action seems allowed. In practice the agent gets its own account, scoped in that system: a GitHub fine-grained token, for example, can be limited to specific repositories and specific permissions.
Allow, Ask, Deny
Inside the harness, the code that runs the model's tool calls, every permission system comes down to three outcomes for each one: run it, ask a person, or refuse it. The Model Context Protocol (MCP), the open standard many agents use to connect to tools, recommends rather than requires a gate: "there SHOULD always be a human in the loop with the ability to deny tool invocations."
How the three combine matters as much as the rules. A deny should be a floor that no later grant can undo, which is what you want for the few things that must never happen; Claude Code, for one, checks deny rules first and lets no allow rule override one (permissions docs).
Write the rest as an allowlist, the actions that may run, with everything else asked or refused, rather than a denylist of what may not. A denylist has to predict every way of spelling a request. A rule that forbids reading a file by name does not stop a script the agent writes from opening it, and the same docs send you to the sandbox for that. That is the split from What an Agent Sandbox Bounds: use permissions to state intent and the sandbox to enforce effect.
Sort Actions by What a Mistake Costs
Once the tools and credentials are trimmed, sort what is left by two questions. Can the action be undone? And how far does it reach: inside a sandbox that is thrown away after the task, such as a fresh virtual machine for each job; into your own systems; or out to customers, the public or money?
| Inside the sandbox | Your own systems | The outside world | |
|---|---|---|---|
| Can be undone | Runs on its own: edit files, run tests | Runs and is recorded: push to the agent's own branch, open a pull request | Waits for a person: a message can be deleted, but not unread |
| Cannot be undone | Runs on its own: the damage stays in a sandbox that is thrown away anyway | Waits for a person: merge to main, delete records | Not in the agent's credentials: payments, production deploys |
The first column holds only for a sandbox like that. A harness's own sandbox on a laptop confines writes to the project folder, but the folder is the real one, so an edit there that cannot be undone belongs in the second column. It can also reach every host on its allowlist, and in Claude Code a command the sandbox blocks can be retried outside it, after a prompt or under a matching allow rule, unless allowUnsandboxedCommands is set to false.
The grid fills in the autonomy dial from What Makes AI Agentic: "Runs on its own" and "Runs and is recorded" are both acting within bounds, inside the sandbox or on the agent's own branch, with the record or the pull request as the review; "Waits for a person" is acting with approval; and the last cell is off the dial. Confidence Is Not Consent argues the rule behind the bottom row: reversibility is checked before any confidence score, and an irreversible write is never automatic.
The grid is the default, and an ask rule overrides it: a rule that says "ask before touching the tests" holds even for an edit the grid would let run. The decision a harness makes on each action the agent asks for is short enough to draw:
flowchart TD
A["Agent requests<br/>an action"] --> D{"Denied, or outside<br/>its credentials?"}
D -->|yes| R["Refused<br/>nothing runs"]
D -->|no| K{"An ask rule<br/>matches?"}
K -->|yes| P
K -->|no| S{"Contained in<br/>the sandbox?"}
S -->|yes| AUTO["Runs on<br/>its own"]
S -->|no| U{"Reversible, and in<br/>your own systems?"}
U -->|yes| LOG["Runs and<br/>is recorded"]
U -->|no| P["Waits for a person,<br/>shown the effect"]
P --> Y{"Person approves?"}
Y -->|yes| RUN["Runs, approver<br/>recorded"]
Y -->|no| R
style R fill:#ffcdd2
style AUTO fill:#e8f5e9
style LOG fill:#e8f5e9
style RUN fill:#e8f5e9
style P fill:#fff3e0
Figure: The decision on each action. Denied or outside its credentials is refused; an action an ask rule matches waits for a person; otherwise, contained in the sandbox runs on its own, reversible and in your own systems runs and is recorded, and anything else waits for a person, shown the effect, and runs only if approved.
Most of an agent's actions should end in green. The few that reach a person, shown in gold, are the ones where a mistake leaves the sandbox and cannot be taken back, or that a rule says a person must see.
Try It: Sort an Action
The lab below runs one action at a time through that decision. Pick one of the bank's test-fixing agent's actions and it fills in the chapter's four answers; then change an answer and watch where the action goes instead. Two are worth trying first. "Run any shell command it writes" is the tool people find hardest to sort: with the sandbox on, it lands in the first column, whatever the command; with no sandbox, it can reach anything the machine can, and it sorts into the worst cell. The lab shows the grid's default case, a throwaway sandbox with nothing reachable; an allowlist, or a sandbox on your own machine, changes the answer. And give "Merge to main" back to the agent's credentials to see what the branch rule was saving you from. With JavaScript off, the table gives the same sort.
Approvals People Actually Read
An approval is a control only if the person reads it. Four habits keep them reading.
Make them rare. The sandbox and the sort above are what make this possible: a person asked twice a day reads both prompts, and one asked two hundred times reads none.
Show the effect, not the tool's name. MCP asks clients to show a tool's inputs to the user before calling it, to guard against data leaving by accident or through malice. "Allow the git tool?" gets a yes. "Post this comment, which contains a token, to a public issue?" gets a no. In the lab in Prompt Injection Is a Design Problem, the person refuses because they can see what the comment says. Treat the agent's explanation of why it wants the action as untrusted text: if it was misled, the justification came from the same place.
Approve one action, not a tool forever. A "don't ask again" is a standing rule: in Claude Code, that answer for a shell command lasts for that command in that repository from then on. Permission settings can be checked into version control, so review a widened permission as you would a code change.
Cap the rate. OWASP lists rate limiting among the measures that limit the damage even when they cannot prevent it. An agent that may open five pull requests a night cannot open five hundred.
A model can also stand in for the person. In Claude Code's auto mode, "a separate classifier model reviews actions before they run, blocking anything that escalates beyond your request, targets unrecognized infrastructure, or appears driven by hostile content Claude read" (permission modes), and explicit ask rules still prompt. That cuts the questions sharply. A classifier is still a model judging a model's request, so keep the deny rules and the sandbox underneath it.
An Example: The Test-Fixing Agent's Permissions
Go back to the bank's agent from What an Agent Sandbox Bounds, which fixes failing tests from the overnight builds. The sandbox already bounds its files, network and secrets. Here is the rest of its blast radius, sorted.
| Action | Where it lands | Outcome | Enforced by |
|---|---|---|---|
| Read and edit files in the checkout, run the tests | Inside the sandbox | Runs on its own | The sandbox's file and network bounds |
| Read anything outside the checkout | Your systems | Refused | The sandbox, plus a deny rule |
Push to an agent/* branch, open a pull request |
Your systems, can be undone | Runs and is recorded | A token for this one repository, attached by the git proxy |
| Edit the tests it was asked to fix, or the build configuration | Inside the sandbox, but decides what "passing" means | Waits for a person | An ask rule on those paths |
| Merge to main, change branch rules, deploy | Your systems or beyond, cannot be undone | Not possible | A branch rule on the git host that refuses its pushes everywhere but agent/* |
On a typical night nobody is asked anything until the agent wants to change a test. That approval prompt is rare, specific and worth reading, and it is the right one to ask about, for a reason Check the Work Before It Lands makes central: an agent that can rewrite the test can make any fix "pass."
The naive version gives the agent a developer's token and an instruction in its prompt never to push to main. The instruction is text the model weighs. The branch rule is a refusal from the git host.
When the Opposite Wins
A throwaway environment. A developer working alone in a disposable container, on code nobody else depends on, can let almost everything inside it run without asking. The outer boundary does the work, as What an Agent Sandbox Bounds said of every switch that skips prompts.
The strongest objection: approvals hand responsibility to a tired person. They do when every action asks. The answer is not more approvals but fewer and sharper ones: the sort keeps a person for the few actions that need judgment, the credentials carry the worst cases, and the request shows the effect.
Tight allowlists cost time. An agent that stops at every new host or command is slow, and people respond by widening everything at once. Start narrow, widen one rule at a time, and keep the reason next to the rule.
What to Do Next
- List each agent's tools and remove the ones its task never uses. A missing tool needs no rule.
- Give each agent its own credentials, scoped in the system that owns the data, to the repositories, tables or mailboxes the task needs.
- Write permissions as an allowlist with a short deny floor, keep the file in version control, and review every "don't ask again" like a code change.
- Sort actions by reversibility and reach, and put a person only where a mistake leaves the sandbox and cannot be undone.
- Make every approval show the exact effect: the diff, the recipient, the command, the amount.
- Keep the catastrophic out of the credentials, not behind a prompt.
Next: permissions decide what the agent may do. They say nothing about where its writes land: on a person's own machine, contained work still changes the real files. Let the Agent Work on a Copy gives those writes somewhere private to go, and Check the Work Before It Lands then puts the last bound on the agent's output.
Related reading: Confidence Is Not Consent for why reversibility outranks confidence, Commands That Know When to Merge for a developer's version of the grid, and The Tool Call Is a Round Trip for where in a turn the harness makes this decision.