Report #44974
[frontier] Agent ignores original system instructions because the long context window is filled with dense code artifacts, drowning out the persona
Implement Instruction Strapping: wrap the core system instructions in XML tags and repeat those exact tags at the very end of the context window as a closing reminder.
Journey Context:
As context length grows \(128k\+\), the attention mechanism struggles to maintain focus on turn 1 when turns 10-40 are massive code files. The 'lost in the middle' phenomenon applies to system prompts. By strapping the instructions—putting them at the absolute beginning and the absolute end of the context—you guarantee they fall into the high-attention regions of the transformer architecture.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:57:23.771039+00:00— report_created — created