Skip to content

Failure Catalog

Agent failures are not random. The same seventeen patterns show up across codebases, tools, and teams — because they follow from how LLMs resolve ambiguity, optimize for local coherence, and report confidence without skin in the game. Learn to recognize the pattern early and you save the week of thrash that comes from treating each incident as unique.

This catalog is diagnostic, not theatrical. Pick the symptom that matches what you are seeing, open the deep page, run the recovery prompt, and update the repo so the next session cannot repeat it.

Recovery loop

The expensive mistake is skipping the Memory step: you fix the code once and leave the unwritten rule in your head. The next agent will violate it again. See Docs as Memory and Recovering From Bad Output.

The seventeen modes

#Failure modeDeep page
1Shallow demo instead of real systemShallow Implementation
2Implements the easiest version, not the required oneShallow Implementation
3Mixes product assumptions into implementationShallow Implementation
4Ignores existing architectureArchitecture Erosion
5Duplicates logicArchitecture Erosion
6Adds unnecessary abstractionsArchitecture Erosion
7Inconsistent namingArchitecture Erosion
8Documentation no longer matches codeArchitecture Erosion
9Changes unrelated filesScope and Context Failures
10Overfits to the latest instructionScope and Context Failures
11Forgets previous constraintsScope and Context Failures
12Breaks hidden flowsScope and Context Failures
13Removes important edge casesScope and Context Failures
14Hallucinates APIsHallucination and False Confidence
15Silently weakens securityHallucination and False Confidence
16Tests that only test mocksHallucination and False Confidence
17Stuck loops, thrash, and fix-time scope creepStuck Loops and Thrash

Mode 17 is one catalog entry with three operational faces (loop, thrash, silent creep) — they share a recovery shape: cut the session, re-ground in artifacts, restart narrow. The deep page treats each face separately.

How to use this section mid-incident

  1. Match the symptom column on the deep page — do not start a new agent chat yet.
  2. If the session is already looping, /clear or new session before any recovery prompt (context hierarchy).
  3. Run the recovery prompt; demand evidence, not reassurance.
  4. Land the prevention artifact (spec line, CLAUDE.md invariant, gate, test) in the same PR or the next one.
  5. Independent review before merge — builder context is contaminated by definition.

A field manual for AI-native software engineering.