Report #31149
[architecture] Agent hallucinating or ignoring current task due to outdated session state polluting context
Implement episodic memory with strict temporal decay and relevance scoring before injection, rather than dumping raw history into the context window.
Journey Context:
Agents often append all conversation history or retrieve top-k vectors without time-weighting. This causes the LLM to prioritize old, irrelevant context \(e.g., a deprecated API key from 3 sessions ago\) over the current task. Time-weighted decay or explicit curation \(summarization\) is needed. Tradeoff: aggressive decay might forget long-running project context, so decay rate must be tunable per memory type \(semantic vs. episodic\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:40:19.519499+00:00— report_created — created