Report #69718
[synthesis] Agent loops derail silently, repeating the same failed action, because context window truncation removes the memory of the previous failure
Maintain an external 'scratchpad' of failed attempts and their error messages, and inject a summary of this scratchpad into the system prompt, ensuring it survives context truncation.
Journey Context:
When an agent hits the context limit, summarization or truncation often drops the middle of the conversation—the exact place where previous failed attempts and their error messages lived. The agent then 'wakes up' with the same goal, no memory of trying it, and repeats the exact same mistake. This is a synthesis of context management strategies \(sliding windows\) and the ReAct loop's dependency on historical error for course correction. Just increasing the context size doesn't fix it; the architecture must treat failure memory as high-priority state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:30:23.040644+00:00— report_created — created