Rules file only lowers one coding agent’s test score, acting as advice not enforcement
A repository rules file does not enforce agent behavior, merely advises and can reduce performance
Software arXiv 20 Nov 2026 Measurement Prototype evidence
Published as “Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries”
Why it matters
A simple one-page rules file can substantially hurt performance for some coding agents without demonstrably improving security, suggesting teams should evaluate its impact before deployment.
Summary
A rules file caused Codex CLI’s hidden-test pass rate to drop from 99.0% to 67.7%, a loss of a third of its score, while the other three agents changed by less than 2.5 points. No real bugs of the checked kinds were found in any arm, and all 31 checker warnings were false alarms. The agents rarely attempted to cross the four security boundaries, and the gate blocked every attempt; however, a script error meant the no-file and rules-file arms always ran behind the gate, limiting the crossing measurement. Overall evidence is based on 348 valid study chains (684 steps) with modest sample sizes, so conclusions are tentative.
What they found 2
- Codex CLI’s hidden-test pass rate fell from 99.0% to 67.7% under the rules file.
“Codex CLI fell from 99.0 to 67.7.”
- All 31 checker findings were false alarms after blind adjudication.
“All 31 checker findings were false alarms.”
Caveats 6
- The other three agents (Claude Code, Gemini CLI, OpenCode) moved by less than 2.5 points, showing the effect is not universal.
- When Codex CLI is excluded, the pooled drop across agents is only 1.3 points, indicating the overall impact is driven by a single model.
- A run-script error forced the no-file and rules-file arms to run behind the gate, making the crossing-rate results zero by construction.
- By an error in my run script (Section 4.3), the no-file and rules-file arms always ran behind the gate, and only the neutral-file arm ran without it.
- Five runs are too few to prove it.
- The gate’s zero under arms A and B is by construction, limiting inference about actual boundary crossing.
What’s new here 4
- First pre-registered measurement of a repository rules file at security boundaries with an enforcement gate.
- Blind hidden tests and a gate log used as immutable ground truth, preventing agents from influencing the verdict.
- Full public release of all transcripts, scripts, and step-by-step records.
- Comparison of three conditions: no file, rules file, and neutral file across four coding agents.