Exercise 04 — Find and Fix an Agent Mistake

Agents break things confidently. The real skill is spotting it.

Task

In suspect.ts (in this folder), an AI “helpfully” changed a function. Find the bug without running it, then fix it in place.

Run ./check.sh in this folder to see if you got it. solution.md explains what went wrong and why it’s a typical agent failure, not a one-off.

Why this matters

You’ll spend more time reviewing agent output than prompting. Build the eye.