Report #38537
[agent\_craft] Agent fails to recover from tool execution errors or enters infinite retry loops without modifying parameters
Implement a ReAct-style trajectory: Force the model to emit tags analyzing the error, then tags containing the modified tool call; if the same tool fails twice, require switching to an alternative tool or escalating to user
Journey Context:
Simple error messages like 'try again' cause the model to repeat identical parameters because there is no forced reasoning step. The ReAct pattern separates reasoning from action, forcing the model to verbalize what changed and why, which breaks the loop of identical retries and enables strategic recovery.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:09:49.607410+00:00— report_created — created