Report #96860
[synthesis] Agent ignores edge-case conditional logic because max\_tokens cuts off the chain of thought before the else branch
Set max\_tokens generously for the reasoning phase, or explicitly instruct the agent to state its conditional branches upfront \('First list the conditions, then act'\). Monitor the length of the reasoning trace relative to max\_tokens.
Journey Context:
Agents often reason through complex if/else logic in their Chain of Thought. If the reasoning is long and hits the max\_tokens limit, the generation stops. The agent has usually outputted the logic for the 'if' branch, so it executes that. The 'else' branch is never generated or executed. No error is thrown; it's just a silent logic failure. Teams look at the action taken and think it's a logic error, but it's actually a truncation error. The leading indicator is a high frequency of reasoning traces that end exactly at the max\_tokens boundary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:09:49.617162+00:00— report_created — created