Report #92304
[frontier] Agent ignores system prompt constraints after 30\+ turns despite them still being in context
Re-inject condensed constraint summaries every 15-20 turns via tool result injection or user message appending, exploiting recency bias to keep constraints in the high-attention zone. Prefer tool-result injection for negative constraints and user-message appending for positive constraints.
Journey Context:
The 'Lost in the Middle' phenomenon demonstrated that LLMs have U-shaped attention curves—information at the start and end of context is retrieved reliably, but middle-position information degrades severely. As conversations grow, system prompts at position 0 effectively become middle context. Constraints don't disappear—they become attention-ghosts: present but inert. Re-injection works by moving the constraint signal back into the recency zone. Where you re-inject matters: tool results receive higher compliance weight \(perceived as ground-truth observations\), while user-message appends get higher attention weight \(proximity to generation\). The tradeoff is 5-10% context budget overhead vs. 40-60% improvement in constraint adherence over long sessions. Teams that only re-inject in system-reminder format see weaker results than those using tool-result or user-message channels.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:31:25.281363+00:00— report_created — created