Report #69475
[synthesis] Agent loses adherence to specific formatting or edge-case handling rules as the context window fills up, despite no errors
Inject critical instructions and few-shot examples at both the beginning AND the end of the prompt context, and monitor the position of the failing instruction relative to the total token count.
Journey Context:
It is well known that LLMs suffer from 'lost in the middle' attention degradation. However, in production agents, this manifests silently: an agent follows 9 out of 10 instructions perfectly. The 10th instruction, buried in the middle of a now-longer context due to a new logging feature, is silently ignored. Teams look for prompt changes as the cause, missing that the prompt didn't change, the context length did.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:05:57.617060+00:00— report_created — created