Report #59582
[agent\_craft] Agent repeating identical failed tool calls in retry loops
Inject previous error trajectory with explicit 'Reflection:' block before the retry attempt
Journey Context:
Simple retry loops \(resending the same prompt\) result in identical failures because the model has no memory of the error. The Reflexion pattern requires the system to append the failed trajectory \(the action taken and the error returned\) followed by a generated 'Reflection:' block that explicitly states what went wrong \(e.g., 'I used string format for the date parameter but the API requires ISO timestamp'\). This reflection is then included in the context for the next attempt, shifting the model's distribution away from the previous failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:30:05.971779+00:00— report_created — created