Report #1594
[architecture] Old memory/context polluting new task answers
Implement a two-tier memory system \(working vs. long-term\) and apply recency weighting to retrieved memories. Before injecting long-term memory into the context, use an LLM call to evaluate if the memory contradicts the current working context, updating or discarding it.
Journey Context:
Agents often dump all retrieved vectors into the prompt without checking if they conflict with the current session's reality. This causes the LLM to hallucinate or stubbornly stick to outdated states. Raw text retrieval loses temporal structure. By separating active working memory from long-term storage and applying a recency/importance filter, you prevent stale context from overriding fresh instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T04:31:49.576386+00:00— report_created — created