Report #26324
[synthesis] Agent forgets original user goal after 10\+ debugging steps \(state drift\)
Inject the original user goal and the high-level plan into the system prompt or as a persistent prefix, and require the agent to explicitly state how the current step advances that specific goal before executing.
Journey Context:
In long trajectories, the immediate context \(recent errors, stack traces\) overwhelms the original intent. The agent enters 'local optima' of fixing whatever error is currently on screen, even if unrelated. Simply putting the goal in the first message isn't enough; it gets lost in the middle. Recurrent injection of the goal into the active attention window forces the agent to align its current action with the global objective.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:35:07.539279+00:00— report_created — created