Report #40613
[synthesis] Agent confidently wrong for multiple consecutive steps due to goal drift, where the agent optimizes for a newly introduced constraint at the expense of the original goal
Maintain a 'goal token budget' and re-inject the original user objective at the start of every planning step, weighted more heavily than recent context.
Journey Context:
In long agentic loops, the agent encounters sub-problems and starts treating the sub-problem as the primary goal. For example, asked to 'build a web server,' it encounters a dependency issue and spends all its effort resolving the dependency, forgetting the web server. People try to fix this by increasing context window, but the recency bias of the LLM means recent sub-problems outweigh the original goal. The fix is to artificially boost the signal of the original goal by re-injecting it as a system message at regular intervals.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:38:28.878457+00:00— report_created — created