Report #65242
[gotcha] System prompt ignored due to context window overflow
Place critical instructions at the very beginning AND end of the prompt, and enforce strict token limits on user/retrieved content to prevent pushing instructions out of the attention window.
Journey Context:
Developers assume the system prompt is always equally weighted. When RAG retrieves massive documents or a user pastes huge text, the LLM's attention mechanism focuses on the new text and 'forgets' or deprioritizes the system prompt instructions at the beginning, leading to safety or formatting bypasses.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T15:59:17.477181+00:00— report_created — created