lex-imperfecta. Instruction or enforcement? A pre-registered study of a write rule for coding agents (study 1, frozen protocol)
The pre-registration of study 1 of lex-imperfecta, frozen before the pilot and before any run. A coding agent works in a repository with one write rule: the files of tests/ are changed only through a channel that records each change and its reason. Does it matter whether the agent gets that rule as an instruction (in a session hook or in CLAUDE.md) or whether code outside the model enforces it? Four conditions, 20 runs each, with Claude Code and Claude Sonnet 5.5. The study measures compliance, displacement (work that moves outside the governed path), the quality of the tests the agent writes (by mutation), and cost. The enforcement is done by Actuarii, used here as the instrument, not evaluated as a product. This record archives the frozen commit: the protocol, the definitions, the author's predictions with what would refute each, the proof of concept of the instrument, the order of the 80 runs with the script that makes it from its seed, the script of the margin, and every review received before the freeze with the author's response. What is fixed after the freeze, before the pilot and before the first run, is in FIXED.md; every change after it is in DEVIATIONS.md.
Authors
- Alexis Zapico Fernández
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24763211
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00