TRANSMISSION // 2611.29727v1

Why AI coding agents need more than a rulebook

Source published

A governed system could add lessons to an AI coding pipeline, but a study of 880 pull requests found no measurable improvement on held-out outcomes.

AI-generated conceptual illustration for Why AI coding agents need more than a rulebook
AI-generated conceptual illustration; not documentary evidence.

When an AI coding agent repeats a mistake, adding a rule to its instructions sounds like an easy fix. A study of a system that proposed and checked such rules found that keeping the process auditable did not, by itself, make the pipeline perform better.

A rule can pass review and still fail to help

Coding agents can repeat the same errors across pull requests (PRs). One proposed remedy is to let a system learn from those experiences by adding or revising instructions. But a growing rulebook brings its own risks: a rule may be based on weak evidence, fail to change the agent’s behavior, or remain in place after it stops being useful.

In Admitted Is Not Effective, Lo Gullstrand Heander, Emma Söderberg and Christofer Rydenfält ask whether a governed process can learn useful rules from coding-agent reviews. Their central distinction is important: checking that a proposed rule is supported by cited evidence is not the same as testing whether the rule improves later results.

How the loop worked

The researchers built a four-stage pipeline that plans a code change, implements it, reviews the result and then addresses review comments. Every ten PRs, a “Retrospective” agent examined available information—including review comments and earlier rule changes—and proposed additions, replacements, deletions or merges to instructions for three stages. A separate “Notary” checked the proposals and recorded decisions in an append-only ledger, creating a record of what was proposed, why and whether it was accepted.

The Notary used automated checks and an AI judge. It checked, among other things, whether cited comments existed, whether a rule conflicted with the pipeline’s requirements, and whether evidence showed a problem across more than one change. The review agent’s instructions were kept fixed, and the agents could not see the hidden tests used to assess whether a PR resolved its issue. These choices helped keep the review signal and test outcomes separate from the agents proposing and applying rules.

The preregistered study covered 880 PR runs on two Python repositories, sqlglot and dvc. The pipeline first handled 400 tasks across ten learning windows; researchers then compared the original instructions with the updated version on 480 held-out runs. In this context, “held-out” means tasks not used to generate the later rules. Hidden tests checked whether each PR fixed the issue without breaking tests that had previously passed.

A working process, but no measured improvement

The loop completed its runs, and the Notary accepted 55 of 89 proposals. It rejected 34, including eight that cited comments that did not exist. That is evidence that the system could apply its governance checks and maintain a record of its decisions.

It is not evidence that the accepted rules improved coding performance. On held-out tasks, the researchers found no measurable improvement in review-comment counts or hidden-test resolution after ten rounds of retrospectives. Hidden-test resolutions were 62 of 240 runs with the original instructions and 56 of 240 with the updated instructions. The paper reports that this difference was not statistically significant; it should not be read as proof that the rules made performance worse. Most tested issues produced the same hidden-test outcome in both conditions, limiting how much change the study could detect.

The authors trace one likely obstacle to the information available for learning: the review agent produced an average of 0.45 comments per PR. With so few comments, the Retrospective agent had little feedback from which to infer recurring problems. The Notary also judged rules mainly from their stated evidence and consistency, rather than by rerunning tasks to measure whether the rules changed outcomes. In the authors’ terms, admission was not an effectiveness test.

A separate probe illustrates another gap. Agents followed a planted instruction asking for a comment in modified files in 65% of files, but followed a more demanding instruction to add a docstring in only 16% of functions. This measured uptake of the probe rules—not whether the rules accepted by the Notary were followed. An instruction can therefore be accepted without reliably shaping the code that is produced.

What the evidence does—and does not—show

The study is limited to one local language model and two Python repositories, so its results may not carry over to other models, codebases or review setups. The held-out sample had little room to reveal changes because many issues had the same test outcome across runs. Some additional analyses, including parts of the instruction-uptake checks, were exploratory rather than included in the original preregistration. The review agent also served as the source of feedback, making the results dependent on what that particular reviewer noticed.

This is a preprint study, and its findings should be treated as provisional rather than as settled evidence about coding agents generally. The authors make their preregistration and study materials available, but the results do not establish that all self-editing systems fail, or that rules cannot help under different conditions.

Their practical proposal is to treat each learned rule as a hypothesis: state what problem it should address, test it on relevant tasks, check for regressions and retire it if the expected effect does not appear. The study’s lesson is narrower but useful: a careful gate can make changes auditable, yet a rule’s evidence and approval are not substitutes for measuring what happens after it is applied.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • How Vestrum Teaches AI Agents to Improve Their Setup

    Shared method: Both papers describe evidence-guided, gated changes to agent guidance: the origin study has a Retrospective propose rule edits for Notary review, while Vestrum proposes harness mechanisms for recurring failure classes and admits bundles after paired comparisons. This is a bounded procedural overlap, not the same learning method or a comparable outcome; the origin study reports no measurable held-out improvement after ten retrospectives, while Vestrum reports held-out gains in its separate evaluations. Vestrum is a preprint under review.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.29727v1 — Original paper

      Excerpt reference: static/papers/2611.29727v1.md:248-316
      Basis: Paper text
      Source SHA-256: 23ccf697e4a8b40fc39f6cfd04737655814d70ef12142bd4c64f7c9b77933a54

    • 2611.29727v1 — Original paper

      Excerpt reference: static/papers/2611.29727v1.md:93-167
      Basis: Paper text
      Source SHA-256: 23ccf697e4a8b40fc39f6cfd04737655814d70ef12142bd4c64f7c9b77933a54

    • 2609.33822v2 — Original paper

      Excerpt reference: static/papers/2609.33822v2.md:60-107
      Basis: Paper text
      Source SHA-256: 032134f4ef074d05ab47936605191fc197a50af3a87ff814e70548afe017e64e

    • 2609.33822v2 — Original paper

      Excerpt reference: static/papers/2609.33822v2.md:12-14
      Basis: Paper text
      Source SHA-256: 032134f4ef074d05ab47936605191fc197a50af3a87ff814e70548afe017e64e

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.