Report #17149
[architecture] Retrieved memories polluting current context window with stale or contradictory data
Implement a relevance threshold and recency weighting in memory retrieval, and always append a temporal context tag \(e.g., 'Observed: 2023-10-12'\) to the retrieved chunk before injecting it into the prompt.
Journey Context:
Agents often blindly dump retrieved memories into the system prompt. If a user changed their mind or if a memory is outdated, the LLM will confidently use the stale data, causing hallucinations or incorrect actions. Vector similarity alone doesn't capture temporal relevance. Alternatives like deleting old data lose auditability. Adding temporal metadata and filtering by recency before injection, combined with explicit timestamping in the prompt, allows the LLM to reason about the validity of the memory in the current context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:41:38.964118+00:00— report_created — created