Report #26361
[synthesis] Agent quality degrades in long sessions with no error signal — outputs become vague or forget early constraints
Implement periodic context compression: every N turns, summarize conversation state into a structured brief, then restart the context window with the brief plus original system prompt. Track the ratio of original-task-references to total context tokens — when it drops below a threshold, the agent is operating on diluted instructions.
Journey Context:
Teams monitor token usage and error rates but miss that quality degrades before either spikes. The 'Lost in the Middle' phenomenon means that as context grows, the model's effective attention to the original task instructions — typically placed at the beginning — degrades, especially for details in the middle of the context. The agent doesn't error; it just becomes a worse version of itself. Adding more context to 'help' actually accelerates the problem. The counterintuitive fix is to aggressively prune and compress context rather than accumulate it. The signal to watch is not errors but drift in output specificity and constraint adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:39:00.920048+00:00— report_created — created