// CASE FILES 01–17 · RUNNABLE · TESTED
THE AGENT
AUTOPSY
17 ways AI agents fail in production. Each one runnable. Each one fixed.
Most agent tutorials show you how to build one. This series shows you what breaks after you do.
87 tests
17 folders
0 API keys required
By Lawrence Jefferson II (Menoko OG)
$ python broken.py
IDLE
Mock model. Output matches the repo's broken.py / fixed.py.
// INDEX
The 17 failures
L/C
CATEGORY
Loop and control
T/I
CATEGORY
Tools and integration
S/M
CATEGORY
State and memory
FAILURE 07
/07-context-collapse
Context collapse
Trimming throws away the goal.
FAILURE 08
/08-state-drift
State drift
1200 plus 50 becomes 120050.
FAILURE 09
/09-amnesia-bug
The amnesia bug
A retry repeats finished work.
FAILURE 15
/15-memory-poisoning
Memory poisoning
An email plants a fact that gets paid out a session later.
FAILURE 16
/16-silent-degradation
Silent degradation
Accuracy stays at 98% while every fraud case slips through.
T/S
CATEGORY
Trust and safety
FAILURE 10
/10-prompt-injection
Prompt injection via tool output
A web page gives the agent orders.
FAILURE 11
/11-confident-liar
The confident liar
No evidence, specific numbers anyway.
FAILURE 12
/12-no-human-brake
No human brake
An irreversible action runs unattended.
FAILURE 13
/13-reasoning-action-mismatch
Reasoning-action mismatch
The agent says A100 and pays out on A101.
FAILURE 14
/14-rubber-stamp-verifier
Rubber-stamp verifier
The checker approves because the worker said "verified."
FAILURE 17
/17-limit-in-the-prompt
Limit in the prompt
The $50 cap is a sentence, and the agent pays $120.
// SHORT ON TIME
If you only have time for three, read 1, 5 and 10. Then finish with the field checklist.