Report #15051
[architecture] Old memories polluting current context window
Use a two-phase retrieval: semantic search followed by a recency/relevance scoring filter, and inject memories as ephemeral context with explicit system prompts bounding their authority.
Journey Context:
Agents often dump top-K vector results into the prompt. If a user changes topics, old high-similarity but irrelevant memories dominate the context, causing hallucination or topic drift. Top-K is insufficient; you need MMR \(Maximal Marginal Relevance\) or temporal decay to filter out stale but semantically similar hits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:08:32.765599+00:00— report_created — created