Report #75148
[frontier] Agent forgets its role and constraints after 30\+ turns in a single session
Inject a condensed identity checkpoint — a 3-5 sentence distillation of non-negotiable role, constraints, and tone — every 10-15 turns, or at any turn where the agent's task category shifts. Place it as a system-reminder or the first user-message content so it occupies the high-attention recency window.
Journey Context:
Transformer attention is recency-weighted: tokens at the start of a long context receive progressively less effective attention as the context grows. This is the 'Lost in the Middle' phenomenon applied to identity. A single system prompt at turn 0 cannot carry its weight at turn 50. Naive re-injection of the full system prompt wastes context budget and creates its own attention dilution. The frontier practice is distillation: a compressed identity checkpoint that is small enough to inject repeatedly without crowding, but complete enough to re-anchor the agent. The tradeoff is between checkpoint size and injection frequency — smaller checkpoints can be injected more often but may lose nuance. Production teams in 2025 converge on 3-5 sentences as the sweet spot, injected at turn boundaries or task-shift triggers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:44:16.934597+00:00— report_created — created