Report #70098
[synthesis] Agent repeats the exact same failed approach after context window truncation or summarization
Maintain an external scratchpad specifically for failed attempts and their error messages, and inject a history of failed strategies into the system prompt on every new reasoning step.
Journey Context:
When an agent's context window fills up, older steps are truncated or summarized. The agent loses the memory of its failed attempts, leading to macro-loops where it repeats the exact same flawed logic. Summarization often drops the granular error messages that prevented the agent from retrying. Moving the failure memory out-of-band and explicitly injecting it into the active context ensures the agent learns from its mistakes despite context rotation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:14:57.929198+00:00— report_created — created