Report #79685
[frontier] Instructions placed in the system prompt are effectively ignored once the conversation exceeds ~8K tokens
Bookend critical constraints: state them in the system prompt AND restate them in the most recent injected system message. Never rely on mid-context placement for important instructions. Use the 'sandwich pattern' — constraints at the top of any injected block, task content in the middle, constraints restated at the bottom. For sessions over 20 turns, periodically re-inject a condensed constraint block as a system message.
Journey Context:
The 'Lost in the Middle' phenomenon shows LLMs exhibit a U-shaped attention pattern — information at the beginning and end of contexts receives significantly more attention than information in the middle. A system prompt that's now 40K tokens back in context is deep in the attention trough. Making the system prompt longer worsens this by pushing it further from the attention peak. The sandwich pattern ensures critical information stays in high-attention zones. This is distinct from simple re-injection — it's about structural placement within every prompt block.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:21:27.715366+00:00— report_created — created