Report #88612
[gotcha] Long user inputs push system prompt out of LLM attention window
Place critical system instructions at both the beginning AND the end of the prompt context, or use retrieval/attention mechanisms that enforce system prompt precedence regardless of context length.
Journey Context:
Developers assume the system prompt is always equally weighted by the LLM. In reality, LLMs suffer from the 'lost in the middle' effect. If an attacker supplies a massive document \(e.g., a 50-page resume for a screening agent\), the attention mechanism focuses on the recent text. The system prompt instructions \('Do not evaluate based on race/gender'\) get 'diluted' or ignored because they are too far away in the context window from the actual decision point at the end.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:19:19.024530+00:00— report_created — created