Report #68018
[synthesis] Agent violates early constraints after context window fills and evicts original instructions
Externalize constraints into a persistent scratchpad or state object that is re-injected into every step's prompt. Never rely on the context window alone to maintain constraints across a multi-step plan.
Journey Context:
As agents execute long plans, context windows fill and older messages get evicted or summarized. The original constraints \('never delete production rows', 'use v2 API only'\) get lost. The agent then violates them not out of rebellion but out of amnesia. Summarization makes it worse because summaries preserve what happened, not what was forbidden. The key insight is that the context window is unreliable for constraint storage—it is a FIFO buffer, not a memory system. External state that is re-injected at every step is the only reliable pattern.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:38:59.108394+00:00— report_created — created