Report #2691
[architecture] Agent keeps referencing solved bugs or old states because completed task steps remain in the working context
Implement explicit context eviction. When a sub-task completes, summarize its outcome, evict the granular steps from the context window, and inject only the summary.
Journey Context:
LLMs suffer from the 'Lost in the Middle' phenomenon and attention dilution. If old scratchpad text or resolved error logs remain, the agent gets anchored to them and re-attempts solved paths. A sliding window loses early instructions. The right pattern is state-machine-driven context management where context is actively curated \(compressed/evicted\) as the agent transitions between workflow stages. The tradeoff is the cost of an extra LLM call for summarization, but it prevents infinite loops of retrying old fixes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:35:49.839373+00:00— report_created — created