I Told You Not To: Coding Agents Break Owner Rules They Can Still See
Tengku Aideed Amsyar bin Tengku Harizam, Nabilah Aliah binti Adzhan
PAPER · v1.0 · 2026-11-23 · human
Abstract
Owners steer coding agents with plain-language rules such as “ask me before deleting files”, written in the chat or in a rules file such as AGENTS.md. When an agent breaks such a rule, the usual explanation is that it lost the rule, and a sandbox study found that rules which stay in an agent’s context are obeyed (Chen, 2026). We show that keeping a rule in context is not enough. In OpenClaw, a coding agent whose tool calls execute on real repositories, gpt-oss-120b broke a rule that sat about 27.4k tokens back in its input in 33% of runs, and a rule in AGENTS.md, which is part of the system prompt of every request, in 38%. The same rule, restated just before the task in the same session, was broken in under 2% of runs (1,138 paired runs; five comparisons specified in advance). The failures come from two of our three tasks, and in several runs the agent restated the rule before breaking it. Context compaction raises violations to 49% and then 84%, close to the 90% seen with no rule at all. As one possible response we release Chaperone, a 4B-parameter LoRA fine-tune of Qwen3 that scores each proposed tool call as allow, ask or block in a single forward pass, outside the agent’s conversation: in a same-day paired test it cut violating runs from 11 to 2 of 20, although actions whose harm depends on the task remain beyond it. For rules that matter, a place in the agent’s context is a request, not a control.