Spot the Agent Failure¶
Run the Spot the Agent Failure MicroSim Fullscreen
About This MicroSim¶
Agent failures look alike on the surface. Each one arrives as a report that reads well. This sim gives you ten cards from the dating-safety app. Each card shows what the builder asked, what the agent reported, and one fact the builder found on checking. Your job is to say what went wrong, if anything.
There are five labels. Context drift is an early instruction lost as the session grew. A hallucination is something made up, such as a function option or a field name. A confident wrong answer is a false claim about real code or about work done. Scope creep is a change bigger than the request. Sound is work that did what was asked and showed evidence.
Cards 2 and 6 use the chapter's hypothetical hallucination examples. Cards 4, 5, 8 and 9, and the switched-off detail on card 10, are illustrative.
How to Use¶
- Read the card: the request, the report and the finding.
- Pick one of the five labels in the control area. Your pick turns gold.
- Press Check. The right label turns green, and the feedback says why.
- Press Next card. Cards come in a fixed order, one attempt each.
- After card 10, read the summary of the five labels and their definitions.
- Hover over How to decide for the tie-break rules, over a numbered dot to see a past answer, or over a card section for a hint.
Mastery is 8 of 10 correct on the first attempt.
Iframe Embed Code¶
You can add this MicroSim to any web page by adding this to your HTML:
<iframe src="https://arunbatchu.github.io/good-enough-engineering/sims/spot-the-agent-failure/main.html"
height="494px"
width="100%"
scrolling="no"></iframe>
Lesson Plan¶
Learning Objective¶
The learner will differentiate context drift, hallucination, confident wrong answers, scope creep and sound agent work in ten short agent reports from the dating-safety app, with at least eight of ten correct.
Grade Level¶
Adult professional (Good Enough Engineering)
Duration¶
10-15 minutes
Prerequisites¶
- Context drift
- Hallucination
- Confident wrong answer
- Scope creep in a diff
Activities¶
- Exploration (5 min): Read all three parts of card 1 before picking. Ask what was asked, what was said and what was done.
- Guided Practice (5 min): Label the ten cards. For each miss, read the tie-break rules and find the one that applies.
- Assessment (5 min): Explain why card 2 is a hallucination and not a confident wrong answer, even though the report sounds sure.
Assessment¶
- 8 or more of 10 cards labeled correctly on the first attempt.
- The learner can apply the tie-break rule that puts an invented name or field under Hallucination.
Common Misconceptions¶
- A report that sounds sure is probably right.
- A large diff means the agent worked hard.
- Every agent mistake is a hallucination.
References¶
- Chapter 4: AI Coding Agents - the section "How Agents Fail."
- Why Language Models Hallucinate - OpenAI, 2025. Explains why models produce confident made-up answers.