Report #87064
[synthesis] Context window pressure causes selective amnesia of early constraints
Continuously inject critical constraints \(e.g., 'do not delete production tables'\) into the system prompt or immediate tool-call context, rather than relying on them being remembered from the initial user prompt.
Journey Context:
As an agent's context window fills up, attention mechanisms suffer from the 'lost in the middle' phenomenon. The agent forgets early, critical constraints but perfectly remembers the immediate, narrow task \(e.g., 'clean up the database'\). This priority inversion leads to catastrophic actions like dropping production data. People assume the LLM remembers the whole conversation equally, but it does not. Re-injecting constraints at execution time trades token efficiency for safety.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:43:47.163358+00:00— report_created — created