Claude Code, Codex auto mode approves unauthorised actions when scope goes unstated
A preprint finds that the AI permission checkers in three coding agents let most overreaching actions through. One short sentence saying what is allowed, taken from the benchmark's answer key, fixed most of the errors on a DevOps benchmark.
scienceunderway.com/articles/claude-code-codex-auto-mode-approves-unauthorised-actions-unless-scope-is-stated

AI illustrationWhat the study shows
Coding agents such as Claude Code, Codex and Qwen Code can run in an 'auto mode'. Instead of pausing to ask the user, a separate AI model, the permission checker, approves or blocks each action. The authors ran all three products on 128 DevOps tasks from AmPermBench, a public benchmark built around vague operations requests. They also used prompt-injection tasks from AgentDojo, a benchmark where hidden instructions try to hijack an agent. Each action was labelled authorised or out of scope using the benchmark's reference answers.
Under the original task wording, the checkers approved between about half and over nine in ten of the out-of-scope actions. They also blocked a share of legitimate actions. Statistically, the checkers did not block out-of-scope actions significantly more often than authorised ones. A typical case: a user asks to delete stale test artefacts for a range of tickets, without saying whose. The agent proposes deleting a colleague's files, and the checker approves.
The authors then replayed the same recorded actions under different conditions. A stronger model from the same vendor did not reduce misses for Codex or Qwen Code. For Claude Code, the apparent gain came from the stronger model refusing to answer, which the product treats as a block, so false blocks rose sharply. Giving checkers more context, such as earlier command outputs or each target's owner and status, also left pooled misses roughly unchanged across ten model settings, though individual models moved in both directions.
The key finding concerns missing rules. For 132 of the 143 out-of-scope actions, the rule that made the action off limits appeared nowhere in the request or in earlier tool outputs. When the authors appended one short 'scope statement' naming the allowed environment, owner and component, miss rates fell from 67–92% to 8–26% on the same actions. Wrongful blocks fell too. Once scope was stated, extra context did help, cutting pooled misses to about 1%.
When all 128 tasks were rerun in full with scope statements, none of the three agents proposed an out-of-scope action. Tasks ending in the correct state rose to 94% for Claude Code and 99% for Codex. Qwen Code reached 49%, held back by unrelated denied file writes. This is a preprint and has not been peer reviewed.
Our reading
In our reading, the paper reframes a familiar complaint. Approval errors are usually blamed on the checker model. Here most errors trace back to the request itself: the checker cannot enforce a limit nobody stated. That explains why a bigger model and more context did little on their own.
The size of the improvement needs care. The scope statements were taken from the same answer key used to grade the actions, so they were complete and correct by design. The results show what checkers can do when the rules are fully known, not what happens when a busy engineer types them. On our Readiness Scale this sits at level III: tested on public benchmarks, with code released, but no documented production use.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/claude-code-codex-auto-mode-approves-unauthorised-actions-unless-scope-is-stated
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | Controlled experiments were run on recorded agent actions and on full task reruns. |
| II Benchmarked | Met | Results are reported on public benchmarks: AmPermBench (128 DevOps tasks) and AgentDojo (244 prompt-injection cases). Miss and false-block rates are given for three commercial coding agents and nine checker models. |
| III Open source | Met | The paper links released code at github.com/YSMsimon/scope-statement-checkers. We have not checked what the repository contains. |
| IV In production | Not yet | The paper documents no use of scope statements by a named organisation in production. |
What would move it up
A named organisation would need to document using explicit scope statements or persistent permission policies in a production coding-agent auto mode, with measured miss and false-block rates. Tests with real user-written, partial scope statements would also strengthen the case.
The study
Shimeng Yang, Changjian Zhou, Chuan Qin et al.. Explicit authorization scope improves LLM-based permission checking in coding agents. arXiv, 29 November 2026. Read the paper
Notes
- Yang et al., 'Explicit Authorization Scope Improves LLM-Based Permission Checking in Coding Agents', arXiv preprint, 29 November 2026, not peer reviewed. Source
- Code released by the authors. We have not checked the repository's contents. Source
- Original-request miss rates (Table 2): Claude Code 13/24 (54%), Codex 78/84 (93%), Qwen Code 28/35 (80%). False-block rates 37%, 10%, 31%.
- With scope statements on repeated decisions (Table 4): miss rates 67% to 8% (Claude Code), 92% to 20–26% (Codex, two runs), 80% to 20% (Qwen Code). Pooled common procedure: 58% to 9%, then 2% with tool outputs and 1% with target attributes.
- Full reruns (384 runs): correct final state 25% to 94% (Claude Code), 34% to 99% (Codex), 21% to 49% (Qwen Code). Readiness level III: public benchmark results and released code, no documented production use.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.199 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


