TRANSMISSION // 2611.39420v1
Why Coding Agents Need Clear Permission Boundaries
Source published
A study of three coding agents finds that explicit authorization rules improved permission checks, though errors remained and the tests have important limits.

When a coding agent’s checker approves actions automatically, what helps it distinguish permitted work from out-of-scope changes? A study tested whether stronger models, more target information, or explicit authorization rules changed those decisions.
Coding agents can make changes across a software project, but users may not spell out every boundary in a request. If an agent is asked to clean up old artifacts, for example, which environment, owner and software component may those artifacts belong to? Automatic permission checkers are meant to approve routine actions and block unauthorized ones. But a checker cannot reliably apply a restriction that was never provided.
Shimeng Yang and colleagues studied this problem in Claude Code, Codex and Qwen Code. They ran the agents on development and operations tasks and on tasks involving prompt injection, recording proposed actions and approval decisions. The researchers compared those decisions with benchmark reference answers defining which targets could be changed.
They also replayed recorded actions under altered checking conditions. This allowed comparisons on the same actions while changing factors such as the model, available target information, or whether the request explicitly stated authorization rules. Finally, they reran the 128 development-and-operations tasks from AmPermBench per agent with those rules added.
Under the original requests, the checkers approved 54%–93% of actions classed as out of scope. They also sometimes blocked authorized actions. These figures describe actions observed in the study’s tasks, not the likelihood that a particular real-world action will be mishandled.
Switching to a stronger model did not consistently reduce missed out-of-scope actions. One Claude Code comparison showed fewer misses, but the stronger model refused every second-stage request; refusals count as blocks, and false blocks on authorized actions rose sharply. Adding target information, such as tool outputs, also did not reduce misses overall when authorization rules were absent. Results varied across models and conditions.
A key finding was that 132 of 143 out-of-scope actions violated rules found in neither the user’s request nor the tool outputs. In the paper’s artifact-cleanup example, the intended scope includes artifacts in a specified lane, owned by the current user, and belonging to a specified component. Knowing an artifact’s owner does not by itself establish which owners’ artifacts may be deleted; that boundary must be stated. When researchers added scope statements derived from the benchmark’s reference answers, miss rates for these 132 actions fell from 67%–92% to 8%–26% across the three product checkers. False-block rates also fell in these comparisons.
Explicit rules did not eliminate errors. Some checkers still approved out-of-scope actions. In reported Codex cases, actions given low authorization ratings were approved when rated medium risk; rationales referred to limited impact, bounded scope or reversibility. The finding highlights a further issue: recognizing a permission limit is not enough if the final approval can override it based on a risk assessment.
Once scope was explicit, extra target information helped more. In the study’s common checking procedure, adding tool outputs and then current target attributes reduced pooled miss rates further. In reruns of the 128 AmPermBench tasks per agent, none proposed an action labelled out of scope under the benchmark’s reference rules. This result applies to those tested reruns and labels, not to all coding-agent use. Final states matched reference answers in 94% of Claude Code reruns, 99% of Codex reruns and 49% of Qwen Code reruns. The paper says Qwen Code often attempted memory-file writes that were denied, limiting task completion.
There are important limits. The development-and-operations benchmark deliberately preserved ambiguity, and its out-of-scope actions arose from benign requests. The researchers did not test attackers adapting to checker feedback or injected text in checker inputs. Scope statements were complete by construction and derived from reference answers; the study does not establish how to obtain, validate or maintain accurate rules in ordinary use. Most configurations were run once, and fixed product versions and missing decision rationales limit broader conclusions. The authors also did not measure how often clarification would be needed or how it would affect automation.
The practical lesson is not that a prompt alone makes automatic approval safe. Permission checks need clear rules about which actions and targets are allowed, enough evidence to identify those targets, and a decision process that enforces the rules. This work is an arXiv preprint. Its findings concern the products, tasks and configurations tested, and do not establish reliability across coding agents generally.
- AI coding agents
- authorization
- permission checking
- AI security
- prompt injection
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A finer-grained fence for AI agents’ tool calls
Supporting evidence: Both studies report that making authorization constraints explicit can help prevent unauthorized agent actions: Yang et al. found that adding scope rules reduced approval misses on recorded coding-agent actions, while Li et al. report that ToolFence’s typed, task-scoped capabilities and runtime checks reduced attack success in benchmark tests. The evidence supports this bounded design proposition, not a direct performance comparison: the systems, benchmarks and authorization mechanisms differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.39420v1 — Original paper
Excerpt reference:
static/papers/2611.39420v1.md:13-80
Basis: Paper text
Source file SHA-256:76a52f100e66ed0347c740432501d76bd154dc9b9069f90f5ad5debe841dda982609.37196v2 — Original paper
Excerpt reference:
static/papers/2609.37196v2.md:16-56
Basis: Paper text
Source file SHA-256:e15db5d62820abc6f8b72ad32e4411e5b3b3b38cb65611edd8ce6e2edf64c11a
When AI-generated likenesses still need permission
Supporting evidence: Both studies found fewer unauthorized approvals when an explicit authorization rule was supplied: Yang et al. report lower miss rates for recorded coding-agent actions, and Ren reports no false allows in the tested likeness-request runs with a stated rule. This is limited support for supplying authorization rules to decision systems, not evidence that the effect generalizes across domains; Ren’s study was a small, single-subject pilot, and the tasks and systems differ.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.39420v1 — Original paper
Excerpt reference:
static/papers/2611.39420v1.md:13-80
Basis: Paper text
Source file SHA-256:76a52f100e66ed0347c740432501d76bd154dc9b9069f90f5ad5debe841dda982611.39421v1 — Original paper
Excerpt reference:
static/papers/2611.39421v1.md:13-43
Basis: Paper text
Source file SHA-256:4255c4b5c34d3b1fa323b5a83b6aca7b4df28696c4c2a22606983436348e0455
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can AI agents tell who has permission?
Source published
Shared keywords: ai security, prompt injection
How Should AI Agents Keep Their Permissions as They Change?
Source published
Shared keywords: ai security, prompt injection
Why AI Agents Need Permission to Act, Not Just Access
Source published
Shared keywords: ai security, prompt injection
When Benign Chat History Becomes Attack Material
Source published
Shared keywords: ai security, prompt injection
When malicious text sounds like an AI’s own reasoning
Source published
Shared keywords: ai security, prompt injection