Report #49451
[frontier] Agent repeats the same subtle mistake made earlier in the session, ignoring its original correct constraints
Implement Error State Pruning by summarizing or removing past failed attempts from the active context, replacing them with a single, strongly-worded positive constraint in the scratchpad.
Journey Context:
When an agent makes a mistake and the error is left in the context, the agent often falls into a loop, using its own past bad output as a few-shot example for the next turn. Over time, the weight of the repeated error in the context window overpowers the original system instruction. By pruning the erroneous context and replacing it with a synthesized rule, you prevent the agent from attending to its own failures as valid patterns.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:29:17.608515+00:00— report_created — created