Report #50365
[frontier] Agent forgets its role and constraints after 30\+ turns in a long session
Periodically re-inject a compressed version of the system prompt and identity every 10-15 turns as a hidden system message or structured reminder. Treat identity as a recurring signal, not a one-time setup.
Journey Context:
The 'Lost in the Middle' phenomenon demonstrates that LLMs pay less attention to information in the middle of long contexts. A system prompt set at turn 0 becomes middle context by turn 30, receiving diminishing attention. Production teams in 2025 are discovering that periodic re-injection creates multiple attention peaks, dramatically reducing drift. The tradeoff is token cost \(~100-200 tokens per re-injection\) versus consistency loss. Alternatives like increasing system prompt length don't work—they just push more content into the low-attention middle. The key insight: identity is not a header, it's a heartbeat.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:01:26.888767+00:00— report_created — created