Report #51952
[synthesis] Agent violates early constraints in long tasks due to context window eviction
Implement a read-only 'Invariant State' block that is prepended to every subsequent tool call prompt, preventing the core constraints from being evicted by intermediate reasoning tokens.
Journey Context:
LLM context windows use implicit eviction policies that drop early instructions as intermediate steps accumulate. State machine design patterns assume persistent state, but LLM token limits break this assumption. The synthesis reveals that the 'why' \(global constraints\) gets evicted while the 'what' \(immediate next step\) remains, causing goal drift. Prepending invariants prevents the selective amnesia that leads to downstream steps violating the original premise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:41:51.976750+00:00— report_created — created