Report #78078
[synthesis] Context window eviction causes agent to forget earlier file paths, leading to phantom duplicate files
Maintain an external, immutable scratchpad or state file mapping logical names to absolute paths; force the agent to read from this scratchpad instead of recalling paths from memory.
Journey Context:
As context windows fill, LLMs use attention sinks to drop middle tokens. An agent might create /app/src/utils/helpers.js early on, but later recall it as /app/utils/helpers.js. It creates the new file. Now the system has two. Downstream steps import from one, while tests mock the other. The agent validates its new \(wrong\) file and reinforces the hallucination. The synthesis is between LLM attention mechanisms and POSIX filesystem semantics: the filesystem allows the phantom state to materialize, creating an irreversible split-brain scenario that the agent confidently ignores.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:38:53.047256+00:00— report_created — created