Report #83014
[frontier] Agent forgets instructions from the middle of the system prompt as conversation context grows
Place critical identity and constraint instructions at the very beginning AND very end of the system prompt. Use a 'U-shaped attention' layout: identity header → detailed instructions → identity/constraint footer. Never put the most important constraint in the middle of a long system prompt.
Journey Context:
The 'Lost in the Middle' research demonstrated that LLMs exhibit U-shaped attention curves—they attend strongly to the beginning and end of long contexts but lose fidelity in the middle. In agent sessions, as conversation turns accumulate, the original system prompt effectively becomes the 'middle' of the total context. Production teams in 2025 are restructuring prompts to exploit this: a compact identity\+constraint block at both poles of the system prompt, with expendable detail in between. The tradeoff is redundancy cost in tokens vs. dramatically higher constraint survival rate at 30\+ turns. Teams that don't do this see constraints placed in the middle of a 2000-token system prompt effectively vanish by turn 40.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:55:37.339097+00:00— report_created — created