Report #88037
[frontier] Why does my agent ignore system instructions after 30\+ turns?
Re-inject critical identity and constraint snippets every N turns or when context exceeds a threshold, not just at session start. Calculate re-injection points at roughly every 15-20% of your effective context window.
Journey Context:
The 'Lost in the Middle' phenomenon demonstrates that LLMs pay less attention to information at the extremes of long contexts as the middle grows. System prompts at position 0 suffer from relative attention dilution as conversation tokens accumulate. Teams shipping long-session agents in 2025 are finding that periodic re-injection of key constraints at calculated intervals significantly reduces drift. The tradeoff is token overhead \(5-15% of your context budget\) versus drift prevention. Naive approaches re-inject the entire system prompt; efficient approaches extract and re-inject only the 'identity fingerprint' — the 3-5 constraints most likely to erode. This is becoming standard practice in production agent systems but is not yet documented in most framework tutorials.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:21:12.086590+00:00— report_created — created