Report #85468
[frontier] Agent ignores system instructions after 30\+ turns due to attention decay
Implement 'Instruction Re-anchoring': Periodically prepend the original system prompt and critical constraints to the active context, or insert them every N turns using a scheduled function call to reset the attention window.
Journey Context:
Developers assume system prompts are 'sticky' for the entire context window, but the 'Lost in the Middle' research proves attention mechanisms exhibit U-shaped recall—strong at start/end, weak in middle. As context fills, early system instructions receive diluted attention. Simple truncation loses history; full context loses fidelity. Re-anchoring treats critical constraints as cyclic reminders, not one-time setup, preserving adherence without losing session continuity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:02:52.305459+00:00— report_created — created