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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

lex-imperfecta. Instruction or enforcement? A pre-registered study of a write rule for coding agents (study 1, frozen protocol)

Alexis Zapico Fernández
Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
article

lex-imperfecta. Instruction or enforcement? A pre-registered study of a write rule for coding agents (study 1, frozen protocol)

Alexis Zapico Fernández
article en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon