Report #62123
[architecture] Old memories polluting new answers with outdated facts
Implement a composite memory scoring function combining semantic relevance, recency, and importance. Apply a decay multiplier to recency scores and filter out memories below a dynamic threshold before injecting them into the context window.
Journey Context:
Agents commonly retrieve memories based purely on vector similarity. This retrieves outdated but topically relevant facts \(e.g., a user's old address\), which the LLM then treats as ground truth. Pure recency filters miss important but infrequent facts. A composite score \(like Recency \* Importance \* Relevance\) ensures that critical, long-lasting facts are retained while trivial, outdated facts decay and are pruned, preventing 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-20T10:45:30.508299+00:00— report_created — created