Report #42270
[synthesis] Agent forgets the original goal mid-task without throwing an error and drifts into infinite sub-tasking
Pin the original user goal and success criteria as a system prompt that cannot be evicted, and implement a step-counter that forces a goal-relevance check every N steps.
Journey Context:
As context windows fill, summarization or eviction algorithms drop the original goal prompt in favor of recent, verbose tool outputs. The agent continues working on the latest sub-problem indefinitely, never returning to the main task. It doesn't crash; it just silently drifts. This synthesizes context-window management mechanics with the agent's recency bias. The agent perceives the current sub-task as the entirety of the mission because the original mission was evicted to make room for git log output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:25:24.636272+00:00— report_created — created