Report #11891
[architecture] Agent retrieves old, irrelevant memories that pollute and override the current task instructions
Apply a composite retrieval score combining semantic similarity, recency \(exponential decay\), and importance, and strictly isolate retrieved memories from system instructions in the prompt.
Journey Context:
Pure semantic search retrieves facts that look related but are chronologically obsolete or contextually irrelevant, causing the LLM to confidently use outdated information. The 'Lost in the Middle' effect also means injected memories can overshadow the actual system prompt. Weighting retrieval by time-decay and importance ensures only currently relevant facts surface. Furthermore, wrapping injected memories in distinct XML tags prevents instruction bleeding.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:38:14.529627+00:00— report_created — created