A failure ledger for coding agents
Each recorded failure names how it looks, how to spot it and what now refuses it.
Why agents repeat mistakes
A session ends and its lessons go with it. The next session meets the same file with the same blind spot. A ledger keeps the lesson next to the code, where the next agent reads it before it edits.
What one entry holds
- shape
- The failure in one sentence: what the agent does wrong.
- looks_like
- How it appears from outside, often as a success.
- tell
- The observable sign that separates it from real success.
- prevented_by
- The practice that avoids it.
- enforced_by
- The guard and the test that refuse it now.
A real entry
a_landing_command_force_pushes:
shape: a landing helper rewrites a published branch after rebasing
even when the operating contract forbids forced pushes
looks_like: the helper reports a successful leased push while
replacing the remote branch history
tell: a divergent remote branch is updated rather than refusing the push
prevented_by: push without force and reconcile a rejected divergence
without overwriting remote history
enforced_by: [branchstate._land_once, handoff_test.land_empty_cases]
This one is from the public Headron contract. The helper reported success while it overwrote history, which is exactly the case a completion report cannot catch.
Ask before the edit
headron failures --for path/to/file.py
headron successes --for "add a schema migration"
Over MCP, failures and successes take a file or an error text and refuse a read of the whole ledger, so the agent's context gets the entries that apply and nothing else.
What a guard covers
A guard covers the cases it tests, not every possible recurrence. Rules are mutation-tested: the contract test plants one defect per rule, and the guard must refuse it. The README records 31/31 planted breaks refused across 20 toolchains, with 869 declared planted cases.
Questions
What is an agent failure ledger?
A record of failure patterns coding agents have shown, each with how it looks, the tell that gives it away and the guard that now refuses it.
How does an agent use it?
Before editing a file, it asks for the failures that match that file or the error text and gets only those entries. A read without a scope is refused.
Does a guard stop every repeat?
No. A guard covers the cases it tests. The ledger names the guard for each pattern, so a gap is visible rather than assumed away.
Where does the ledger live?
In atlas.yaml under agent_failure_modes, in the same contract file that declares which checks each change owes.
Related guides
Start
Run the free, MIT-licensed verifier or connect through MCP. Headron Harness shows your runs, checks and receipts in one account.