Report #68805
[architecture] Old retrieved memories polluting new context and causing hallucinations
Apply a recency weighting or decay function to memory retrieval scores, and explicitly prompt the agent to evaluate the temporal validity of a retrieved fact before acting on it.
Journey Context:
When an agent retrieves memories, older facts often have high semantic similarity to the current query and get injected into the context. If the user's situation has changed \(e.g., they switched from AWS to GCP\), the old AWS instructions get retrieved and the agent gives outdated advice. Pure semantic similarity lacks temporal awareness. By decaying the retrieval score based on age, or adding a 'valid\_as\_of' metadata field that the LLM is forced to check, you prevent stale state from overriding current reality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:58:21.416651+00:00— report_created — created