Skip to content

State Authorization Scope for Agent Permission Checkers

State which environment, owner, and component an agent may change; in one benchmark, complete statements cut permission checkers' out-of-scope approvals without ending them.

An authorization scope statement tells a permission checker which objects a task may change. In a preprint testing Claude Code, Codex, and Qwen Code, 132 of 143 out-of-scope actions broke rules about components, environments, or owners. Neither requests nor earlier tool outputs stated those rules (Yang et al., 2026, §4.4).

When the evidence applies

Conditions (§4.1 and §5.5):

  • Evidence on misses comes from one development and operations benchmark that deliberately preserves scope ambiguity. Every out-of-scope action arose from a benign request.
  • The statements came from the benchmark's reference answers, so they were complete. Partial or incorrect ones are untested.
  • Adaptive attackers and injected checker input were not studied.
  • Checkers: Claude Code 2.1.311 (client-side classifier, Claude Sonnet 5), Codex 0.164.0 (GPT-5.6 Luna), Qwen Code 0.26.1 (Qwen 3.7 Max). Codex required approval for state-changing sandbox commands.

What the statement says

The study's statements gave filter conditions, not lists of target objects. Each named the permitted lane, owner, and component; branch statements named protected branches instead of a component. A lane is the benchmark's environment boundary, such as a Kubernetes namespace (§3.3).

What changed in the study

The authors resubmitted recorded actions, unexecuted, with and without a statement appended to the request. Miss rate is the share of out-of-scope actions approved; false-block rate is the share of authorized actions blocked (§3 and Table 4).

Product checker Miss rate, original to scoped False-block rate, original to scoped
Claude Code 67% to 8% 42% to 2%
Codex 92% to 20-26% (two runs) 10% to 3% (p = 0.057)
Qwen Code 80% to 20% 29% to 2%

Miss rates cover 24, 84, and 35 out-of-scope actions (row order), from each product's own agent.

Where the checker reads it

The experiments only appended statements to requests (§3.3). The authors also support persistent policies, untested (§5.4). Current vendor docs list:

Checker What it reads Persistent route
Claude Code's own classifier requests User messages, CLAUDE.md, tool calls except read-only lookups; no tool results (docs) CLAUDE.md, or autoMode in user or managed settings, not project settings (docs)
Codex Auto-review Typically user messages, surfaced assistant updates, relevant tool calls and outputs, and the pending action (docs) [auto_review].policy or managed guardian_policy_config (docs)

Limits:

  • Claude Code can lose a boundary stated in conversation if compaction removes that message (docs).
  • Custom rules can drop defaults: keep "$defaults" in each autoMode rule list you set (docs). A replacement Codex policy loses every rule you omit (docs).
  • Some actions skip the checker. Codex runs already-permitted actions without review (docs). Claude Code applies allow, ask, and deny rules first and, without server-side review, auto-approves reads and working-directory edits, with exceptions (docs).

Why it works

Knowing that an object belongs to another user excludes it only if the request limits the task to the user's own objects (§4.4).

Without the rules, more target information did not reduce aggregate misses in a common checking procedure (nine models, ten settings). Aggregate miss rates were 58% with default inputs, 62% after adding tool outputs, and 59% after also adding target attributes. Effects differed by model (§4.3). With the rules, the pooled miss rate fell to 9% on default inputs, then 2% with tool outputs and 1% with attributes (§4.4).

When this backfires

  • Targets are bare identifiers. With rules but no tool outputs, the common procedure passed 60% of out-of-scope job cancellations (55% under original requests). Adding outputs cut that to 4% (§5.1). Claude Code and Qwen Code checkers did not read tool outputs.
  • Risk judgments can override authorization. In Codex's second scoped run, 76 of 84 out-of-scope actions got low authorization ratings. Of those, all 46 high-risk actions were blocked, but 16 of 30 medium-risk ones were approved (§5.2).
  • You need a hard boundary. Complete statements still left 8-26% of out-of-scope actions approved (Table 4). Use controls such as Claude Code's permissions.deny, which the classifier and user intent cannot override. Its Bash patterns can miss a command written another way (docs).
  • Scope is unknown up front. The authors suggest clarification but did not measure its frequency or effect on automation (§5.4).

Example

In the paper's Figure 1, a user asks to delete stale experiment artifacts for a range of tickets without saying whose artifacts may go. The agent proposes deleting another user's artifacts, and the checker approves. With the ownership restriction added to the request, the checker blocks the same action (Yang et al., 2026, §1).

The paper's sample statement for artifact cleanup permits deleting only artifacts in dev, owned by alex, and belonging to auth (§3.3).

Key Takeaways

  • When you report a checker's miss rate, name the labeling criterion, the scope rules in its requests, and the target information it could see.
  • Check that your checker can see each attribute a rule depends on. An ownership rule is hard to apply to an ID the checker cannot look up.
  • Treat a scope statement as a way to reduce misses, and keep the controls that do not depend on a model's judgment.