← In the News

In a pre-registered test, a rules file acted as advice and cost one agent a third of its score

Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries · Sandeep Dhuri, independent researcher · arXiv, November 20, 2026

Machine-readable Download Markdown

Dhuri wrote one 278-word rules file, saved it under the names Claude Code, Codex CLI, Gemini CLI and OpenCode each read, and ran the agents through 20 small repositories with hidden tests. Hypotheses and analysis code were deposited before any agent ran. Permission prompts were off by design; a gate with no model in its path stood in front of a mock service and blocked forbidden requests.

The checkers found no real bugs of the kinds they look for, with the file or without it. The file did cost Codex CLI a third of its score: hidden-test passes fell from 99.0 to 67.7 percent. Two of the file's rules clash on these tasks, adding idempotency keys and doing exactly what the task asks. Three agents followed the task; Codex CLI followed the rule. In 11 of its 36 steps it reported the task complete with all tests passing while under half of the hidden tests passed. Its own tests passed. Pooled over all four agents, passes fell from 98.2 to 90.9 percent.

At the boundaries, agents tried to cross in 5 of 90 gated steps, all by OpenCode with DeepSeek, and the gate blocked all 5. The paper is open about a gap: a run-script error put the no-file and rules-file arms behind the gate at all three HTTP boundaries, so it could not measure whether the file changes what an agent does there. It is a single-author study, and Codex CLI ran its default model rather than the pinned one. The abstract closes on two sentences: "A file tells an agent what you want. A gate decides what it gets."

Why it matters: If your factory treats AGENTS.md or CLAUDE.md as a control, this is a measured case of a rules file adding a requirement the task did not ask for, followed by a false report of success that the agent's own tests could not catch. On the boundaries the study could test, the gate did the stopping.