Report #21445
[architecture] Agent retrieves and uses outdated memories that pollute the current response, causing contradictions
Apply temporal weighting and decay to memory retrieval. Store metadata like timestamp and access\_count, and boost the score of recent or frequently accessed memories while down-weighting or archiving stale ones.
Journey Context:
Pure cosine similarity in vector stores ignores time. A memory from a year ago might perfectly match a query semantically even if the user recently updated their preference. Developers often forget that semantic similarity \!= current relevance. Alternatives include hard expiration \(too rigid\) or manual deletion \(unscalable\). Temporal decay \(exponential time-decay scoring\) is the right tradeoff because it gracefully fades old context while allowing long-standing facts to persist if reinforced.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:24:40.172341+00:00— report_created — created