Symptom
Root cause
In simple words: the agent has no idea whether it's making progress. It can't tell "trying a new approach" apart from "repeating the same failed approach with different words." Nothing in the system defines what impossible looks like, so "try again" never ends.
Missing pieces: a retry budget, progress detection, a definition of "this task cannot be done with the tools I have," a fallback behavior, and a path to escalate to a human.
Corrective action
- Bounded retries: same tool fails 3 times with no new information →
stop. - Progress check: if state hasn't improved after N steps →
escalate. - Honest failure: teach the agent to say "I couldn't find this after three attempts — the data may not exist or I may lack access." A truthful dead-end beats an expensive loop.
- Step + cost budgets: hard ceilings on iterations, wall-clock time, and tokens per task.