Report #64277
[frontier] Agent forgets system instructions in the middle of long context windows
Use bracket anchoring: place your 2-3 most critical constraints at BOTH the beginning \(system prompt\) and end \(closing anchor message\) of the context fed to the model. The closing anchor should be a system-level message inserted right before the model's generation point, repeating only the non-negotiable constraints in imperative form.
Journey Context:
The 'Lost in the Middle' effect \(Liu et al., 2023\) demonstrated that LLMs have U-shaped recall across long contexts: strong at the beginning and end, weak in the middle. Most teams put all constraints in the system prompt \(beginning\) but never reinforce them at the end, where recency bias actually helps. Leading teams in 2025 are adopting 'bracket anchoring' — repeating critical constraints as a closing block right before generation. The tradeoff: costs ~100-200 tokens per turn and can feel redundant. Don't repeat everything — only the 2-3 constraints where violation is unacceptable. This is especially critical for safety and compliance constraints that have no acceptable failure rate.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:22:44.079077+00:00— report_created — created