Report #59726
[agent\_craft] Parallel tool calls create race conditions on dependent file operations
Set \`parallel\_tool\_calls: false\` \(OpenAI\) or enforce sequential execution when tools have data dependencies \(e.g., read\_file then edit\_file\). Only allow parallel calls for independent operations \(linting multiple files\).
Journey Context:
Modern LLM APIs support parallel function calling to reduce latency, but this introduces non-deterministic execution order. When a workflow requires reading a file to determine an edit location, parallel execution creates a race condition where the edit tool may execute against stale or non-existent state. Disabling parallelization for dependent chains ensures causal consistency: the output of tool A is available in context before tool B is generated. This trades latency for correctness in stateful operations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:44:23.982186+00:00— report_created — created