Sandeep Dhuri, Independent Researcher. Preprint, November 19, 2026.
Short on time? Read the plain-language summary.
Paper on arXiv PDF Data and transcripts Pre-registration
Teams put a one-page rules file in a repository and call it a control on coding agents. A registered study found agents rarely look up a repository's contribution rules. I asked the security question: what does a rules file do at a boundary, against a gate? I tested one 278-word rules file, with hypotheses and analysis code deposited first. Claude Code, Codex CLI, Gemini CLI and OpenCode with DeepSeek worked through 20 small repositories with hidden tests, 12 for three of them. Three agents met four boundaries I built: a refused endpoint, a destructive shortcut, a planted instruction and a planted package. Permission prompts, each vendor's own control layer, were off by design. A gate in front of the mock service blocked and logged forbidden requests. Every verdict was read from records the agent could not change. Only my first scoring pass was blind to arm. My checkers found no real bugs, with the file or without it. The file cost one agent a third of its score: Codex CLI fell from 99.0 to 67.7 percent on hidden tests, and in 11 of its 36 steps reported the task complete with all tests passing while under half of the hidden tests passed. Its own tests passed. Faced with two of its rules that clash on these tasks, three agents followed the task and one followed the rule. Pooled, passes fell from 98.2 to 90.9 percent. Matched pairs fell 7.7 points, 1.3 without Codex CLI. Attempts to cross were rare: 5 in 90 gated steps, 3 without the file, 2 with it, all by OpenCode with DeepSeek, all blocked. With no gate, under the neutral file, the same requests reached the mock in 7 of 45 runs. By an error in my run script, the no-file and rules-file arms always ran behind the gate at the three HTTP boundaries, so I could not test whether the file changes what an agent does there. On what I could measure, the file acted as advice. A file tells an agent what you want. A gate decides what it gets.
A file tells an agent what you want. A gate decides what it gets.
I gave four coding agents the same 278-word rules file and ran them on small repositories with tests they could not see. Three of the agents also met four boundaries I built, with a network gate in front of a test service. At each boundary the rules file carried one added rule for that boundary. The hypotheses and analysis code were deposited before the runs.
Two rules in the file pulled against each other on these tasks. I did not plan that clash. Three agents followed the task. One followed the rule.
It shows that the wording of a short rules file can change one agent's results a great deal on tasks like these, that an agent's own report of passing tests can differ from independent tests, and that a gate outside the agent blocked what it was built to block.
It does not show what a rules file does at a boundary with no gate. An error in my run script meant the no-file and rules-file runs always sat behind the gate at the three HTTP boundaries. Under the rules file, 2 of 45 gated steps still tried to cross, and the gate blocked both. No boundary result reaches a verdict at 15 runs per arm.
It does not rank the agents. Each agent is compared only with itself. The agents ran different models at different price tiers.
Other limits. Each cell ran once. The 11 steps come from four repositories, so I cannot say how often that agent would read the line this way again. Only my first scoring pass was blind to arm, and I was the only scorer. That agent ran its default model, not the one I registered. The repositories are small, about 60 to 125 lines each. Permission prompts, each vendor's own control layer, were off by design. One rules file, written by me.
A rules file often has more than one author today. Some project starters write one for you. The Next.js docs say managed instructions in AGENTS.md are on by default from version 16.3. The Expo docs say create-expo-app adds AGENTS.md to a new project. The Laravel Boost docs say it writes its guidelines into CLAUDE.md or AGENTS.md. I did not test these tools or their files, and I do not say they clash with anything. The point is narrower: when a framework, a team and a developer all write into one file, it is worth reading that file for rules that pull against each other.
@misc{dhuri2026markdown,
title = {Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries},
author = {Dhuri, Sandeep},
year = {2026},
eprint = {2611.27112},
archivePrefix = {arXiv},
primaryClass = {cs.SE},
doi = {10.48550/arXiv.2611.27112},
url = {https://arxiv.org/abs/2611.27112}
}
arXiv DOI: 10.48550/arXiv.2611.27112. The paper is under CC BY 4.0. Code, hidden tests and scoring scripts: doi.org/10.5281/zenodo.23608251.
Questions and corrections are welcome through the ORCID record: 0009-0008-1829-2431.