Report #51677
[frontier] Agent forgets instructions provided in the middle of the system prompt or early session
Apply the Primacy and Recency Bracketing pattern: place critical constraints at the very beginning and the very end of the system prompt/context, using the middle strictly for examples and low-salience info.
Journey Context:
LLM attention mechanisms exhibit a U-shaped curve \(the 'Lost in the Middle' phenomenon\). Instructions placed in the middle of a long context suffer from significantly lower attention weights. Moving critical identity and constraint data to the edges ensures they are attended to, even as the context grows to massive lengths.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:14:04.763730+00:00— report_created — created