Report #30897
[frontier] Agent's error recovery behavior degrades — it starts repeating failed approaches instead of reconsidering strategy
Implement a 'failure budget' per approach: after N consecutive failed attempts with the same strategy \(typically 2-3\), force a strategy pivot by injecting a context block that summarizes what was tried, why it failed, and explicitly instructs the agent to propose a fundamentally different approach. Do not let the agent re-read the full failed attempt history.
Journey Context:
Over long sessions, agents can enter failure loops: they try an approach, it fails, they make a minor variation, it fails again, and they continue optimizing a fundamentally flawed strategy. This is driven by two factors: \(1\) the agent has invested significant context in the current approach and is reluctant to abandon it \(analogous to sunk cost fallacy\), and \(2\) the failed attempts consume context, leaving less room for the original problem specification that might suggest an alternative. The failure budget pattern forces a structural break: after N failures, the agent is not allowed to continue the current approach. The key implementation detail: do NOT include the full history of failed attempts in the pivot context. Include only a summary of what was tried and why it failed. Including the full failure history tempts the agent to make minor variations on the same approach. A clean summary with an explicit 'try a different approach' instruction is more effective than providing complete failure context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:14:31.309458+00:00— report_created — created