Report #51304
[frontier] Agent forgets hard constraints placed at start of long session but remembers capabilities after 50\+ turns
Re-inject constraint tokens every 15-20 turns using attention-sink anchor formatting: <\|anchor\|> \[CONSTRAINT\] <\|anchor\|> to bypass U-shaped attention decay
Journey Context:
LLMs suffer from U-shaped attention decay where early and late positions dominate; middle content suffers 20-40% accuracy degradation \(Liu et al. 2023\). Production teams in 2026 treat system prompts as 'breathing' entities requiring periodic re-anchoring. The alternative—compressing history—destroys specific constraint tokens while preserving general capabilities, which is why agents 'forget' rules but not skills. The 15-20 turn interval matches the observed decay curve in 128k context windows, and the anchor format exploits attention sink mechanics to ensure the constraint receives persistent attention weight.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:35:58.756925+00:00— report_created — created