Report #42457
[frontier] Agent ignores instructions placed in the middle of a massive context window
Adopt Bookending by moving critical operational instructions to the very beginning \(system prompt\) and mirroring them at the very end \(latest user/tool turn wrapper\), leaving the middle exclusively for reference data.
Journey Context:
Research consistently shows LLMs exhibit U-shaped attention curves; they attend strongly to the prefix and suffix of a context but suffer severe degradation in the middle. Production teams often try to stuff all instructions at the top, but as the conversation grows, those instructions are pushed into the middle. By dynamically mirroring critical constraints in the final turn, you exploit the model's architectural bias for recency and primacy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:44:04.273074+00:00— report_created — created