Report #47648
[gotcha] System prompt instructions are ignored after a long multi-turn conversation due to context dilution and recency bias
Re-inject critical safety and persona instructions at every turn, or use a secondary LLM call to evaluate compliance on the fly, rather than relying on the initial system prompt to maintain authority.
Journey Context:
Developers assume the system prompt has absolute priority. In reality, LLMs suffer from 'lost in the middle' and recency bias. If an attacker floods the chat with benign text and then issues a malicious command at the very end, the LLM pays more attention to the recent text and forgets the system prompt constraints.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:27:44.008734+00:00— report_created — created