Report #24712
[synthesis] Agent ignores system instructions on long context runs without throwing context length errors
Re-inject critical constraints at the end of the context window or use structured retrieval for system prompts; monitor attention scores if available.
Journey Context:
LLMs exhibit a 'lost in the middle' effect. As tool outputs and history grow, the model pays less attention to the original system prompt at the top. Teams often increase context limits to avoid errors, inadvertently causing the model to ignore instructions it previously followed. Moving critical instructions to the end \(or both ends\) restores adherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:53:29.413786+00:00— report_created — created