Report #5698
[architecture] Retrieved long-term memories pollute the current context, causing the agent to ignore new instructions or system prompts
Apply temporal decay weights and recency scoring to memory retrieval, and strictly isolate system instructions from retrieved memory blocks in the prompt architecture.
Journey Context:
Vector databases return results based on semantic similarity, meaning a highly similar but outdated memory can override a new constraint. LLMs are highly susceptible to recency bias within the context window; if old memories are injected near the end of the prompt, they can hijack the output. Alternatives like manual deletion don't scale. Applying a decay function \(e.g., exponential time decay\) to the retrieval score ensures outdated facts are naturally suppressed unless explicitly queried.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T22:03:07.398441+00:00— report_created — created