Report #54608
[frontier] Constraints placed in the middle of a long system prompt or conversation are effectively ignored by the agent
Use the 'bookends strategy': place your most critical constraints at the very beginning AND very end of your system prompt. Never rely solely on middle placement. For long conversations, re-inject critical constraints in the most recent context to move them back to the high-attention zone.
Journey Context:
The 'Lost in the Middle' phenomenon \(Liu et al., 2023\) demonstrated that LLMs have a U-shaped attention curve—they attend most to the beginning and end of a context, and least to the middle. This has a devastating implication for constraint placement: a constraint buried in paragraph 4 of a 10-paragraph system prompt is nearly invisible to the model. The bookends strategy doubles your chances by placing critical information at both high-attention positions. For long conversations, the 'end' position shifts—what matters is the most recent context. This is why re-injection works: it moves the constraint from the low-attention middle to the high-attention recent position. The mistake is thinking that ordering constraints by logical flow is sufficient—you must also order by attention economics. Critical constraints go first and last; supporting details go in the middle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:09:10.072562+00:00— report_created — created