Report #6980
[architecture] Old memories polluting current context window
Implement a two-stage retrieval: semantic similarity \+ temporal decay scoring, then re-rank before injection.
Journey Context:
Just pulling top-k semantically similar memories often surfaces outdated code patterns or resolved bugs. If you only use vector similarity, a memory from 6 months ago about a deprecated API looks identical to one from today. Agents then hallucinate or revert fixes. Pure recency fails to find long-term relevant facts. The right call is a hybrid score: alpha \* similarity \+ \(1-alpha\) \* recency\_score, ensuring old but highly relevant facts surface, while old and irrelevant facts decay.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:35:36.869234+00:00— report_created — created