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

> The paper shows how a coding-agent permission reply can carry a persistent policy edit, letting a remote approver remove an operator's restriction. Its bounds matched all 13 studied designs; the validator blocks the attack while preserving updates used by both policy-writing plugins.

- arXiv: https://arxiv.org/abs/2611.32195
- Authors: Zeming Fei, Hongming Fei, Jingwen Chen, Xiaoyang Wang, Prosanta Gope, Biplab Sikdar, Ying Zhang
- Published: 2026-11-26
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.32195
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## A permission reply can rewrite a coding agent's rules

**13/13** permission-design outcomes predicted correctly

## A reply changes the rules future calls see

**Per-call check:** Claude Code rechecks allowed calls against current deny rules; matching denies are meant to block them.

**Persistent update:** A reply can also persist a rule update, changing the policy later calls are checked against.

## One unrelated approval removes a secret-file deny

![Figure 1](https://cdn.instaxiv.com/figures/2611.32195/figure1.webp)

With no file access, a remote approver allows an unrelated command and deletes `Read(./.env)` from settings. The runtime persists it, so reads succeed now and later. Red marks lost restrictions; blue marks retained ones. (Figure 1)

## An update reaches beyond the shell sandbox

**Rewritten command:** Three tested shell rewrites could not read `.env`, edit settings, or escape the strict sandbox.

**Policy update:** The runtime writes settings outside the shell. A deny removal lifts file limits; added Edit, WebFetch, or host rules can widen sandbox access even under deny-overrides.

## Without owner labels, preserve every current denial

$$
\begin{gathered}\amber{\mathcal{M}(u(R))}\\ \supseteq\\ \emerald{\mathcal{M}(R)}\end{gathered}
$$

Claude Code stores bare rule strings. Without authorship, a filter reading current rules must preserve every reader's current denials; original restrictions persist.

- $\mathcal{M}(u(R))$: Actions refused after the update
- $\supseteq$: Contains every earlier refusal
- $\mathcal{M}(R)$: Actions refused before the update

## Per-step checks can miss a sequence

1. **Copy the deny**: A plugin adds its own copy of the operator's deny; access stays blocked.
2. **Delete original**: The per-step check accepts removal because the plugin's copy still blocks access.
3. **Delete copy**: Its next deletion allows the initially denied action; an owner-aware check blocks the earlier removal.

## The safe bound depends on what the runtime remembers

![Figure 3](https://cdn.instaxiv.com/figures/2611.32195/figure3.webp)

Panel (a) ties updates to recorded information. Panel (b) shows a per-step failure; one protected class per party can preserve others' denials and lift own-only restrictions, where readers preserve those denials. (Figure 3)

## Saved 'always allow' answers can shadow denies

1. **The permission-check bound**: A saved allow is safe only if it matches the asked call alone or ranks no higher than every deny.
2. **opencode example**: Its `rm ./build.log` answer saves `rm *`; last-match-wins lets the broad rule override `rm -rf *`.

## Put one validator where answers share a path

![Figure 2](https://cdn.instaxiv.com/figures/2611.32195/figure2.webp)

Four answer routes feed a shared update step; none writes the managed tier. Five of 70 inspected relays forwarded updates, including the vendor's Remote Control. Put the validator at that common point. (Figure 2)

## The bounds predict across systems and guide a repair

**Design tests:** The model uses what a party may change, how rules combine, and whether authorship is recorded. It matched all 13 studied designs across 10 systems; five predictions preceded testing.

**Repair and footprint:** The validator preserved the operator's restrictions in every repaired attack run; safe filters had zero losses in 20,000 randomized settings-monitor runs. Only 2 of 2,227 fetched plugins sent updates; repair keeps their proposed changes.

## Scope and limits

- **Trusted mediator**: The runtime must mediate every update; authorship records must stay outside answerers' reach.
- **Reader semantics**: Owner labels work only where each reader preserves each author's denials; allow-list readers may require additions blocked.
- **Test boundary**: Sandbox tests used Linux/bubblewrap. Runtime, OS, or managed-tier compromise and prompt-injection steering are out of scope; hook/MCP state remains future work.

Best used when: Use these bounds when a partially trusted answerer can change state future checks consult.

## Key takeaways

- A per-call deny check is insufficient when its answer can rewrite policy for later calls.
- Validate effects across every reader at the shared write step; record rule authors so parties can remove their own changes.
- How far should the same audit extend to hooks, MCP settings, and other state future checks trust?

## Links

- arXiv: https://arxiv.org/abs/2611.32195
- PDF: https://arxiv.org/pdf/2611.32195

## Citation

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