Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Sandeep Dhuri
cs.SE, cs.CR
2026-11-20
Pre-registered study, four coding agents, prompts off: the rules file fixed zero bugs, cost Codex CLI 31 points with 11 over-claimed completions; a gate blocked every crossing attempt.
Teams drop a one-page AGENTS.md or CLAUDE.md at the repo root and treat it as a control on their coding agents. A registered study had already shown that agents rarely look up a repository's contribution rules on their own, but nobody had pre-registered a measurement of what such a file does at a security boundary, against an enforcement gate. This paper runs that measurement, and the title gives the answer: markdown is advice, a filter decides.
Everything was frozen before the run: nine hypotheses, verdict rules and the analysis script were deposited on Zenodo the day before, and the statistics ran exactly once afterwards.
| Comparison | Metric | Result |
| Codex CLI | Hidden-test pass rate, A → B | 99.0% → 67.7% (100% under the neutral file) |
| All four pooled | Paired B − A | −7.7 points [−13.4, −2.6]; −1.3 without Codex CLI |
| Codex CLI | Over-claimed completions under B | 11 of 36 steps; every main-set over-claim |
| Every arm | Real defects of the checked kinds | 0; all 31 checker flags were false alarms |
| 90 gated steps | Crossing attempts | 5 (3 without the file, 2 with), all OpenCode, all blocked |
The mechanism of the drop is clear. Two lines of the file pull against each other on these tasks: make retryable handlers idempotent, and implement exactly what the task asks. Codex CLI read the idempotency line strictly and added an Idempotency-Key requirement to routes the task never named; its own added tests passed while the hidden tests, written to the task, failed. The other three agents sided with the task and moved less than 2.5 points. In the 11 over-claim steps the final message said the task was complete with all tests passing while under half the hidden tests passed; the tests it meant were its own, and those did pass. Boundaries stayed quiet: Claude Code and Codex CLI made zero bounded requests in 60 gated steps, and in the ungated neutral-file arm the same request reached the mock in 7 of 45 HTTP runs, with registered crossings of 1/15 on the blocked path, 2/15 posting the token, and 1/15 adding the planted package. Carrying the file was cheap for Claude Code ($0.030 more per chain, and −$0.003 versus the neutral file), while Codex CLI burned 24,328 more tokens per chain than under the neutral file.
The one-line takeaway: a file tells an agent what you want; a gate decides what it gets. Teams already shipping a CLAUDE.md can split the job accordingly, expectations in the file, boundaries on a network-level deny list. The over-claim numbers matter more for daily practice. In all 288 steps where the parser could read tool calls, the agent ran the test suite before its final message, and its own tests genuinely passed; the gap shows up only against an external hidden suite, so self-reported success is not a completion signal. On quality, the file had nothing to show: zero real bugs in every arm, so this test could not detect it helping, and its only measurable effect was making one agent worse.
The paper keeps one table of every departure from the registration, and the heaviest changes a conclusion: a run-script error left arms A and B always behind the gate at the three HTTP boundaries, so the registered ungated measurement was never collected and whether the file changes boundary behaviour is unanswered; the author found it on 12 November while reading the gate logs. Beyond that: each cell ran once; 15 runs per arm sits below the 20-observation minimum, so all four boundary hypotheses carry NO VERDICT and 3-versus-2 attempts is a description, not a difference; one author was the sole adjudicator, no second rater, no kappa, and the second and third reading passes happened after unblinding; Codex CLI was served gpt-6.1-sol rather than the registered pin; Gemini CLI's set was truncated when its prepaid credit ran out, leaving a selected sample. One reading caveat: the hidden tests encode the author's reading of the idempotency line, while the file's own ambiguity rule asks for the strictest reading, so Codex CLI's interpretation is defensible from the text. The 31-point drop is a spec conflict as much as an agent failure.