Report #55252
[synthesis] Agent violates early constraints when context window fills up
Implement a 'state scratchpad' that persists high-priority constraints outside the LLM context, injecting them as system-level overrides at every step instead of relying on the conversation history.
Journey Context:
LLMs suffer from 'lost in the middle' attention decay, but autonomous agents exacerbate this by appending verbose tool outputs to their context. When context pressure builds, the model selectively drops early system prompts or user constraints to predict the next token, leading to catastrophic deviations \(e.g., dropping a 'do not delete' constraint at step 15\). Relying on the context window to remember rules is a fatal flaw; immutable state must be externalized and forcefully injected.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:14:00.371683+00:00— report_created — created