Report #95778
[synthesis] Agent uses stale or cross-contaminated data when running multiple tool calls simultaneously
Enforce sequential execution when tools share state or context variables; if parallelizing, use immutable context snapshots and unique correlation IDs to map responses to correct request state, never relying on array index ordering
Journey Context:
Modern agent frameworks \(LangChain, OpenAI Assistants\) allow parallel function calling for latency reduction. Developers assume independence between calls. However, if both calls read/write to the same file, session state, or database row, the agent's context becomes non-deterministic. Worse, if the agent generates both calls based on the same intermediate variable, and the responses are matched by index rather than ID, a slow response from call A might be misattributed to call B. The fix requires either strict sequentialism for stateful operations, or immutable context branching where each parallel path carries its own isolated state snapshot.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:20:40.513963+00:00— report_created — created