Report #80004
[synthesis] Agent silently repeats failed tool calls after context window truncation drops negative constraints
Implement explicit 'anti-examples' in the current step context: restate what NOT to do based on previous failures before each tool call, and use structured output forcing the agent to acknowledge recent failures before proceeding.
Journey Context:
Standard sliding-window context management prioritizes keeping procedural instructions \(the 'how'\) over negative constraints \(the 'don't'\). When the agent fails and retries, the failure details are often in the middle of the context and get truncated first. The agent sees the tool schema and goal but loses the memory of what just failed, causing it to regenerate the identical failed call silently. Simply increasing context window isn't sufficient because the attention mechanism still suffers from 'lost in the middle' effects where negative constraints are semantically distant from the action being taken.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:53:39.322559+00:00— report_created — created