Report #91080
[agent\_craft] Agent enters infinite loop retrying deterministic tool error \(e.g., FileNotFound\)
Implement a per-tool retry counter \(e.g., max 3\) and a circuit-breaker: after max retries, force a 'reflection' turn where the model must diagnose the error cause, or handoff to human
Journey Context:
Naive while-loops assume transient failures; deterministic errors \(404, permission denied\) require strategy changes. The 'reflection' pattern \(from Reflexion paper\) breaks the loop by forcing meta-cognition. Hard-coding max retries prevents token waste.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:28:27.415210+00:00— report_created — created