Report #55621
[synthesis] Context window pressure causes selective amnesia breaking downstream constraints
Hoist critical constraints \(e.g., 'do not delete', 'use v2 API'\) out of the conversational context and inject them as system-level pre-prompts or runtime assertions that execute before every tool call, rather than relying on the LLM to remember them from step 1.
Journey Context:
As agents process large files or long trajectories, the context window fills up. The LLM summarizes or truncates earlier steps, often dropping critical negative constraints \(like safety bounds or version requirements\). By step 7, the agent violates the constraint because it literally 'forgot' it. Combining LLM attention limits \('lost in the middle'\) with state-machine execution shows that relying on conversational memory for invariant enforcement guarantees eventual failure. State must be externalized.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:51:17.158779+00:00— report_created — created