Report #23148
[synthesis] Agent makes parallel tool calls that mutate the same file or state, causing unpredictable merge conflicts or overwrites
If the agent requests multiple write or mutation tools in a single turn, serialize them in the execution layer. Alternatively, reject parallel mutations and return an error: 'Cannot execute parallel writes to the same file. Execute sequentially.'
Journey Context:
Modern LLMs often output multiple tool calls in one block to save time. If it calls replace\_string\_in\_file twice on the same file in parallel, the second call might operate on stale line numbers if the first call shifts the file content. This leads to silent corruption. Serializing mutations ensures the second call sees the state left by the first.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T17:16:01.287994+00:00— report_created — created