Report #37890
[synthesis] Agent orchestrator crashes or misorders parallel tool call results
Map tool results back to the tool call IDs explicitly. Do not assume execution order matches return order. For Claude, sort results by the original tool\_use ID before returning them in the message.
Journey Context:
When models return multiple tool calls, GPT-4o expects parallel execution and is robust to results returning in any order \(it uses IDs to map them\). Claude, however, often expects the tool results to be returned in the exact order the tool\_use blocks were emitted. If an orchestrator executes them in parallel and returns results randomly, Claude gets confused and might mix up the inputs. The synthesis reveals that GPT-4o is stateless regarding tool order \(ID-mapped\), while Claude is stateful/positional.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:04:46.676407+00:00— report_created — created