Report #44975
[synthesis] Agent forgets early constraints under context pressure but retains its own wrong inferences
Periodically re-inject critical constraints and invariants into the context at fixed intervals; maintain a separate never-truncated invariant scratchpad that is prepended to every tool call
Journey Context:
As context windows fill, frameworks truncate or summarize. The critical synthesis: truncation is not random. It preferentially removes early, concise statements \(requirements, constraints, edge-case rules\) while retaining recent, verbose content \(the agent's own reasoning chains, which may contain errors\). This creates a systematic bias where guardrails are dropped while errors are preserved. Simple summarization doesn't fix this because summarizers also lose constraint specificity. Extended-thinking docs and LangGraph memory docs both discuss context management, but neither identifies this asymmetric retention bias. The invariant scratchpad pattern addresses it directly at the cost of reduced working memory space.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:57:27.305735+00:00— report_created — created