Report #91845
[synthesis] Agent gets stuck in a loop repeatedly trying variations of the same failed action due to a sunk cost fallacy from reading its own failure history
Implement a stuck detector that counts consecutive identical tool calls. Upon triggering, truncate the conversation history of the failed attempts and force the agent to generate a completely new plan from scratch.
Journey Context:
LLMs are trained to be helpful, which manifests as a sunk cost fallacy when reading long histories of failures. The context of previous failures biases the model into trying minor variations instead of abandoning the approach. The synthesis is that you cannot reason your way out of a sunk cost loop within the same context; you must actively erase the failure history to free the model's attention for a new strategy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:45:09.764669+00:00— report_created — created