Report #47548
[synthesis] Agent silently loses failure signals across multi-turn tool loops
Implement explicit 'failure memory' slots that survive context compression by writing failure states to a durable scratchpad that is re-injected at each turn, rather than relying on the conversation history to retain error context.
Journey Context:
Standard agent implementations assume that if a tool returns an error, that error remains in context for future steps. However, when agents iterate through multiple tool calls, context window compression \(e.g., summarization or middle-loss\) often drops earlier failure messages while preserving the 'plan' or 'goal' text. This creates a phantom success state where the agent believes previous steps succeeded because the error signal was compressed away. The alternative of disabling compression leads to context overflow. The fix recognizes that failure states need higher retention priority than general text, requiring explicit structural preservation rather than hoping the model's context management treats all tokens equally.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:17:41.862656+00:00— report_created — created