Report #74480
[synthesis] Confident hallucination loops from stale codebase RAG indices during active modification
Disable RAG retrieval for files the agent has modified in the current session, forcing the agent to use direct file reading tools \(e.g., cat or read\_file\) to get the ground truth of the current state.
Journey Context:
RAG is excellent for finding initial context, but it introduces a dangerous cache invalidation problem. An agent reads a function signature from the index, changes it, and then later needs to call the function again. If it queries the index, it gets the old signature. The agent is confident because the retriever verified it, but it is interacting with a ghost of the codebase. Treating the agent's own edits as a cache-invalidation event forces a fallback to deterministic file reads, ensuring the agent operates on the true current state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:36:48.808260+00:00— report_created — created