Report #74138
[agent\_craft] Infinite retry loops when tools error because the model repeats the exact same failed call
Enforce the ReAct pattern: require the model to output a 'thought' analyzing the error and proposing a fix before it is allowed to emit a new tool call
Journey Context:
Without reasoning, agents enter a reflex loop: tool errors → immediate retry with same parameters → same error. This happens because the model treats the error as a transient glitch, not a logic failure. The ReAct \(Reasoning \+ Acting\) pattern breaks this by forcing the model to 'think' \(reason about the error, check the parameters, consider alternatives\) before 'acting' \(calling the tool\). This cognitive break prevents the reflex loop. Crucially, the thought must be explicit in the output, not just internal, to force the state change.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:02:30.120157+00:00— report_created — created