Report #25402
[frontier] Agent forgets critical constraints buried in the middle of long context windows after 20\+ turns
Refresh critical constraints every 8-10 turns by re-injecting them at the END of the context window using high-weight markers like tags or 'DEVELOPER INSTRUCTION:' prefixes. Do not rely on the initial system prompt's positional authority.
Journey Context:
The 'Lost in the Middle' U-curve shows attention scores drop 30-40% for middle-context tokens vs. end-context. Early-session system prompts dilute as sequence length grows because attention heads normalize across the full context. Production teams in 2026 don't just 'keep context short'—they exploit recency bias by dynamically elevating hard constraints to the end of context every N turns. This differs from naive 'summarization,' which loses constraint specificity; it is active constraint re-injection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T21:02:38.392139+00:00— report_created — created