Report #5703
[architecture] Agent uses stale tool outputs from earlier in the context window to make decisions, leading to inconsistent or conflicting actions
Attach TTLs \(Time-To-Live\) to tool-result memories in the context, and implement explicit invalidation rules where state-mutating actions clear or update prior related observations.
Journey Context:
LLMs treat all text in the context window as equally true, regardless of when it was added. If an agent reads a file \(step 1\), then deletes it \(step 2\), the output from step 1 remains in context. The agent might later try to read the deleted file again based on the stale context. Unlike CPU caches, LLM context lacks hardware cache invalidation. The agent must be programmed to actively mutate its own context or use a scratchpad that tracks the 'current state' distinct from the 'history log'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T22:03:07.966823+00:00— report_created — created