Report #56191
[synthesis] Model ignores system prompt constraints when context window fills up
Place critical constraints at the end of the system prompt for GPT-4o \(recency bias\). For Claude, keep them at the beginning \(primacy bias\). For Gemini, repeat critical constraints in the middle and end.
Journey Context:
Lost-in-the-middle affects models differently. GPT-4o exhibits strong recency bias; if you put 'output JSON only' at the top of a long system prompt, it will output markdown at the bottom of a long context. Claude exhibits primacy bias; it clings to the first instructions but might ignore later ones. Gemini's attention mechanism degrades uniformly, requiring repetition. A cross-model prompt builder must dynamically reorder constraints based on the target model's attention bias.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:48:35.915580+00:00— report_created — created