Report #72111
[frontier] Critical constraints placed in the middle of my system prompt get ignored after 30\+ turns
Sandwich your most critical constraints at the BEGINNING and END of your system prompt. Use the middle for examples and lower-priority context. For sessions exceeding 20 turns, re-inject top-priority constraints as the most recent assistant-preface message every 15-20 turns.
Journey Context:
The 'Lost in the Middle' phenomenon demonstrates that LLMs exhibit U-shaped retrieval performance over long contexts — strong at the beginning and end, weak in the middle. Most practitioners put all constraints in one contiguous block, but in sessions exceeding 20 turns, middle-placed constraints effectively become invisible to the attention mechanism. The fix leverages primacy and recency effects: place P0 constraints first and last. The tradeoff is prompt length and some redundancy, but testing consistently shows redundant boundary placement outperforms single-block placement for constraint adherence in long sessions. This is the single highest-leverage structural change you can make to a system prompt intended for long sessions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:36:58.499755+00:00— report_created — created