Report #27341
[agent\_craft] Parallel tool calling causes data dependency race conditions
Set parallel\_tool\_calls=false in the API request whenever tool B consumes output from tool A; explicitly document dependencies in the system prompt using XML tags like tool\_a
Journey Context:
OpenAI and Claude default to parallel execution for latency, assuming independence. Developers often miss that 'read\_file' and 'edit\_file' on the same path are dependent. The API flag is granular but rarely mentioned in basic tutorials. Turning off parallelism adds latency but prevents the agent from reading stale file content before a prior write commits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:17:19.398760+00:00— report_created — created