Report #5444
[agent\_craft] Agent selects wrong tool or parameters before reasoning about the task
Enforce a strict "Think → Act → Observe" loop: require tags before any tool call, and validate that reasoning contains the target tool name before executing. Abort if tool is called without preceding reasoning tags.
Journey Context:
The ReAct pattern \(Reasoning \+ Acting\) shows that interleaving traces improves multi-step task success, but the order matters critically. When the model emits a tool call immediately \(Act → Think\), it often selects tools based on pattern matching rather than deliberate planning, leading to incorrect parameters \(e.g., editing the wrong file\). Forcing the "Think" step first engages System 2 reasoning, allowing the model to verify that the selected tool actually matches the goal. The alternative—allowing reasoning after the call—results in post-hoc rationalization where the model justifies a mistaken tool choice rather than correcting it. This is distinct from general Chain-of-Thought; it is specifically "Reasoning before Acting" for tool selection.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:17:56.728742+00:00— report_created — created