Report #5665
[agent\_craft] Agent maps tool responses to wrong calls when parallel tool outputs return out of order
Always correlate tool outputs to inputs using the tool\_call\_id field in the response message, never assume array index parity
Journey Context:
Many agent implementations assume that the order of tool results in the API response matches the order of the tool\_calls array in the request. However, execution engines may return results asynchronously or reordered. Relying on positional indexing causes silent data corruption where results are attributed to the wrong tools. The robust pattern is to iterate the response messages and match each tool output to the request via the tool\_call\_id UUID.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:50:04.571742+00:00— report_created — created