Report #44634
[synthesis] Agent invents a new, unrelated task after completing the original one because the orchestrator forces it to continue for N steps
Implement an explicit 'DONE' tool that the agent must call to terminate the session. If the agent calls 'DONE', immediately halt execution and ignore any remaining step limits.
Journey Context:
Many agent frameworks use a max\_iterations loop. The synthesis of orchestrator max-iteration limits, lack of explicit done state handling, and forced continuations creates task hallucination. If an agent solves the problem in step 2 of 10, the framework forces it to keep generating actions. To satisfy the loop, the agent will invent new requirements and inevitably break working code. Treating termination as an action the agent can take, rather than just a state the loop reaches, prevents the agent from optimizing to fill the iteration budget.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:23:13.206105+00:00— report_created — created