Admitted Is Not Effective: Lessons from a Notary-Gated Retrospective Loop in an Agentic Pipeline
Organizations: Lund University, Lund, Sweden
Abstract
Agentic software development pipelines with frozen prompts can repeat the same mistakes across pull requests (PRs), yet ungoverned additions to instruction files grow without bound and do not generally improve task success. We present a retrospective loop for a four-stage large language model (LLM) pipeline in which a Retrospective agent proposes edits to learned rules every ten PRs and a Notary admits, merges, or rejects them while recording each decision in a provenance ledger. In a pre-registered study of 880 PRs on two Python repositories, the loop ran end to end and the Notary admitted 55 of 89 proposals, rejecting 8 that cited nonexistent evidence. However, held-out review comments and hidden-test resolution did not improve after ten retrospectives. Tracing each step of the loop, we found that sparse review signal (0.45 comments/PR) left little to learn from and that rules admitted on their stated evidence did not show measurable held-out effects. We derive six lessons and argue that governed loops should admit and retire every learned rule as a testable hypothesis.
Figures & tables
| Measure | Run-1 Result | Interpretation |
|---|---|---|
| Loop mechanics | 880 PRs completed (0 dropped); 40 retrospectives ( ); 1 unparsed review ( dvc-b ). | Governed loop runs end to end. |
| Notary gate | 55/89 accepted (62%: 46 add, 5 merge, 4 replace, 0 delete); 34 rejected (8 nonexistent comment IDs in pre-check, 25 unsupported/single-instance evidence, 1 contradiction). | Provenance and evidence gates hold. |
| Rule growth | Combined 3-stage tokens 1,070 1,528–1,801 (peak section 820 of 3,000 budget, sqlglot-b Impl.); 0 deletions; 136/144 seed instances kept unmerged and unreplaced. | Budget never binds; no retirement. |
| Rule content ( ) | 48 non-seed rules (11, 15, 12, 10 across sqlglot-a/b , dvc-a/b ): 23 generic, 23 project-specific, 2 Python; 31/48 (65%) say “verify” (Section III ). | Generic or domain-level practice. |
| Uptake check | File-level probe ( # Changed: once per modified file) followed in 371/572 files (65%; start 65%, end 65%) and 197/240 PRs (82%) at least once, 101/240 (42%) in every file; function-level probe ( Changed: docstring per added or modified function) in 130/789 functions (16%; start 22%, end 12%) and 85/240 PRs (35%) at least once, 4/240 (2%) in every function; baselines 0/577, 0/786. | A once-per-file rule is followed far more often than a per-function rule; end placement lowered only the latter. |
| Held-out comments | 114 ( ) 100 ( ) across 240 runs/arm; paired HL ( issues, mean over two trajectories; 68 unchanged); 95% CI sqlglot [0.00, 0.00], dvc [0.00, 0.25]; same-prompt sqlglot replicates differed by 15 (24 vs. 39). | Inside replicate noise; no measurable effect. |