Report #85627
[frontier] System prompt instructions in the middle of long context get ignored or deprioritized
Structure your system prompt with critical identity and constraint instructions at BOTH the beginning and end, wrapped in matching XML tags like .... The end copy acts as an attention sink.
Journey Context:
The Lost in the Middle research demonstrates that transformer attention is U-shaped — strongest at context boundaries, weakest in the middle. Most teams place the full system prompt once at position 0, but as context grows, this position becomes 'the middle' of the effective context the model is attending to. Duplicating critical constraints at both edges ensures they remain in high-attention positions. The matching XML tags are essential — without them, the model may treat the duplicates as conflicting instructions. With tags, it recognizes them as the same authoritative source. Tradeoff: increases system prompt by 30-50% but measurably improves constraint adherence at turn 40\+.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:18:53.945962+00:00— report_created — created