When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy

Zeming Fei, Hongming Fei, Jingwen Chen, Xiaoyang Wang, Prosanta Gope +2 more
11/24/2026
cs.CRcs.AI

No confident code implementation found for this paper.

Abstract

Coding agents let plugins and remote services answer permission prompts, and Claude Code documents that such an answer cannot override the operator's deny rules. However, we show that this guarantee, checked one decision at a time, fails over a whole run, because an answer to one permission prompt can rewrite the policy that every later answer is checked against.

Show full abstract

For example, a remote service with no access to the operator's files approves an unrelated command and attaches an update that deletes the deny rule protecting the project's secrets. The agent then reads the secrets in that session and the next, even inside the vendor's strict sandbox. The root cause is that Claude Code checks only updates that add or replace allow rules. Relays that forward such deletions already exist, including the vendor's own Remote Control. In effect, the right to answer a prompt has become the right to administer the policy. Worse, the deletion leaves the same records as a local edit by the operator, so Claude Code cannot tell who wrote a rule. More generally, what a runtime records decides what it can safely delegate. A runtime that cannot tell who wrote a rule can accept only updates that keep every currently denied call denied, whereas, to protect every party's restrictions, a runtime that records who wrote each rule can let each party remove only the restrictions proven to be its own. We prove that these two bounds are tight. They correctly predict whether the operator's restrictions survive in all thirteen permission designs across ten agent systems, including predictions we wrote down before running Codex, Gemini CLI, opencode, and Goose. Enforcing the bounds at the shared update step blocks the attack. A survey of 2,227 fetched marketplace plugins finds only two that send policy updates.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fei2026when,
  title  = {When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy},
  author = {Zeming Fei and Hongming Fei and Jingwen Chen and Xiaoyang Wang and Prosanta Gope and Biplab Sikdar and Ying Zhang},
  year   = {2026},
  eprint = {2611.32195},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.32195v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.32195.svg)](https://codeofpaper.com/paper/2611.32195)

Discussion