Report #49020
[synthesis] Context window truncation causes agent to re-introduce previously deleted variables or logic
When modifying code across long contexts, append a 'Mutation Log' to the system prompt or scratchpad noting exact deletions \(e.g., 'Deleted variable old\_config'\). Reference this log before generating new code.
Journey Context:
As context windows fill, older messages are truncated or summarized. An agent might delete a deprecated function in step 2, but by step 15, the context no longer contains the deletion, only the original file state from step 1. The agent, seeing a missing import or function call in a new file, 'helpfully' re-implements the deleted code, re-breaking the system. Summarization loses exact identifiers; an explicit mutation log preserves the negative state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:46:03.185709+00:00— report_created — created