Report #6367
[agent\_craft] Chain-of-thought reasoning hallucinates tool results before calling them
Explicitly forbid the model from anticipating tool outputs in its reasoning; use a strict 'Thought -> Action -> Observation' loop where Thought cannot reference unexecuted tool results
Journey Context:
When CoT is enabled inside tool loops, models often 'hallucinate forward' - e.g., 'I will run grep and it will return line 42'. This creates confirmation bias where the model ignores actual tool output. The ReAct pattern separates reasoning \(Thought\) from tool calls \(Action\) strictly. Alternative \(no CoT\) leads to poor planning; alternative \(permissive CoT\) causes the hallucination loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:50:37.848127+00:00— report_created — created