Lessons Outlive Their Failures: A Case Study of Rules for AI Coding Agents
Hassan Hassanzadeh Aliabadi
Key points
From the paper's conclusion- These results suggest that harness lessons can outlive the failures they were written to fix, while drift persists and still needs mechanical checks.
Abstract
AI coding agents increasingly work inside a harness: rule files such as AGENTS.md, on-demand skills, runtime hooks and automated checks. Most studies of harnesses look at a single point in time or at short benchmark runs. I report a six-week case study of my personal system of record, a plain-markdown repository that three AI agent tools edited daily under one shared rule set. I built a ledger of 118 agent failures, their fixes and whether they came back. I also tested the system's monthly LLM documentation audit against 47 known stale statements and 20 planted errors. Finally, I replayed five past failures in isolated git clones, with and without their fixes. All results come from one repository with three runs per condition, so I report them as exploratory. Stale documentation (drift) was the largest failure class (48 of 118), although 35 of those were found on one audit day. A single audit run found about half of the known drift (Claude Sonnet 5.5 mean: 50%), and at least 93% of its findings were correct. On Sonnet 5.5, the agent finished four of the five replayed tasks. In three of those four, the failure did not happen, with or without its fix. Only the stale-count failure came back without its check, and the check stopped it in every run. On older models, an agent drafted an em-dash once while the em-dash lint check was active, and the check rejected it. A written rule on run-time estimates did not change Sonnet 4.5's overestimates. These results suggest that harness lessons can outlive the failures they were written to fix, while drift persists and still needs mechanical checks. Tools that evolve a harness add lessons faster than they retire them, so they should re-test their rules from time to time and retire the obsolete ones.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Built on Broken Assumptions (BOBA): Why Coding Agents Cannot Be Left AlonearXiv · 2026
- When Instruction Files Go Stale: Documentation Debt and Hidden Cost in Coding AgentsarXiv · 2026
- Beyond Prompts: Runtime Contracts for Coding AgentsarXiv · 2026
- A Gated Spec-Driven Workflow: An Audit-Trail Study of Coding-Agent WorkarXiv · 2026
- Cross-Provider Review as a Runtime Contract for Coding Agents: A Controlled Pilot and Fault-Injection StudyarXiv · 2026
- Characterizing and Detecting Unfaithful Work Reports by Coding AgentsarXiv · 2026