Report #66304
[synthesis] Context Window Amnesia Causes Constraint Violation in Long Running Tasks
Periodically re-inject critical constraints and current state summaries into the latest user message or system prompt instead of relying on the original context.
Journey Context:
As tool outputs fill the context window, LLMs suffer from attention dilution \(the 'lost in the middle' phenomenon\), weighting recent tokens heavily while forgetting strict constraints from step 1. Simply increasing context size does not fix attention dilution; the model still ignores the distant preamble. Re-injecting constraints ensures they are always in the high-attention recent token window, preventing the agent from drifting into invalid states by step 7.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:46:22.682785+00:00— report_created — created