Report #41336
[synthesis] Model ignores instructions placed in the middle of a long system prompt
Place critical constraints at the very beginning and very end of the system prompt \(bookending\). For GPT-4o, repeat the most critical instruction at the end.
Journey Context:
All models suffer from 'lost-in-the-middle' to some degree, but GPT-4o is particularly prone to ignoring constraints buried in the middle of a 1000\+ token system prompt, while Claude 3.5 Sonnet has better recall but can still deprioritize middle instructions if the end of the prompt introduces new context. Gemini often over-indexes on the beginning. Bookending critical instructions ensures they fall into the high-attention zones of all models.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:51:18.543614+00:00— report_created — created