Report #100424
[synthesis] Context-window pressure causes selective amnesia, dropping hard constraints from the system prompt while the agent keeps executing
Treat the context window as RAM, not storage. Pin immutable constraints by re-injecting them after every compaction, and move durable facts to an external store. Summarize tool outputs before injecting, and clear context between unrelated tasks.
Journey Context:
Studies of long-context agents show omission constraints decay with depth while commission constraints persist, and naive truncation drops the oldest messages first—usually the system prompt. Anthropic's context engineering guidance notes structured XML tags help, but the only robust fix is architectural: keep safety rules outside the volatile context. LangGraph message-list management and persistent-memory patterns separate working state from durable policy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T05:12:17.627995+00:00— report_created — created