Report #98100
[synthesis] Long-context agent forgets a constraint from the first message and violates it in step 20
Pin critical constraints in every prompt by regenerating a running 'invariants' block, and explicitly re-read them before any write/mutate action; do not rely on the model's recall across thousands of tokens.
Journey Context:
LLMs exhibit a U-shaped retrieval curve over long contexts: information in the middle is recalled worse than at the start or end. Agents commonly put constraints only in the system prompt or first user message, then assume they hold. Repeating constraints feels redundant but is the only robust mitigation because the failure mode is not attention 'forgetting' in the human sense but a positional bias in retrieval.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-26T05:13:38.680898+00:00— report_created — created