Report #94716
[frontier] Agent forgets system instructions after many turns in long session
Re-inject critical constraints at regular intervals \(every N turns or when context exceeds a threshold\) rather than relying solely on the initial system prompt. Use structured XML tags for re-injected constraints to maintain semantic distinctiveness.
Journey Context:
The 'Lost in the Middle' phenomenon means system prompts at the start of long contexts receive diminishing effective attention as conversation grows. Production teams in 2025 are moving from 'set and forget' system prompts to 'periodic reinforcement' patterns where key constraints are re-stated in user or system messages at intervals. The tradeoff is token cost and slight context pollution, but instruction fidelity improves dramatically. Teams that don't do this see constraint adherence drop to near zero by turn 40\+ in unstructured sessions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:33:53.413682+00:00— report_created — created