Skip to main content

Parallel tool calls: live gate results

Last run: 2026-11-02 (UTC), router main at 1ca83567, live gate script scripts/parallel_tool_live.py.

This page states exactly which parallel-tool shapes are proven, and how. Offline coverage of the same matrix (translated directions, opt-out controls, awkward SSE fragment boundaries) lives in the repository test suite; this page is only about the live provider runs.

What the gate does​

For each cell it runs a two-turn streaming conversation:

  1. Turn 1 asks for three files to be read "all at once" with a single read_file tool description. The gate requires at least three tool_use / tool_calls blocks, distinct non-empty ids, and complete JSON arguments containing a path in every call.
  2. Turn 2 returns those results out of order, with one error result, one multi-part text result and one deliberately empty result, then asks the model to quote the markers it received. The gate requires the two non-empty markers and an explicit EMPTY acknowledgement in the streamed answer.

Every dispatch is preceded by a hard budget reservation and the run stops if reported usage ever exceeds its reservation. The run is capped at $5.

Results (2026-11-02)​

CellCalls in turn 1Turn 1Turn 2Result
OpenAI Chat, direct (gpt-4o-mini)3200200pass
OpenAI Chat, through the router (gpt-4o-mini)3200200pass
Anthropic Messages, direct (claude-haiku-4-5)3200200pass
Anthropic Messages, through the router (claude-haiku-4-5)3200200pass
Chat caller → Messages target, through the router3200200pass
Messages caller → Chat target, through the router3200200pass

Actual cost of this run: $0.002815 summed from the router's own request_usage rows for the four routed cells, at the prices configured on the targets (Chat $0.15/$0.60 per million input/output, Messages $1/$5 per million). The two direct cells are invoiced by the provider outside the router and are therefore not in those rows. The run reserved $0.5141 of its $5 cap and never had to halt.

Marker observations worth recording separately from pass/fail: after the multi-part result, three cells reproduced the marker across the part boundary on separate lines (GATE-A / -7731), so the marker only matches once whitespace is ignored. That is a formatting effect of a two-part tool result seen from the model side; the router-level newline-injection defect in translated tool-result arrays is tracked separately in #672 and is not exercised as a pass condition here.

Limits​

  • Six cells: native Chat and native Messages (streaming, direct and routed) plus the two translated directions Chat → Messages and Messages → Chat. The Responses-based directions (Responses ↔ Chat, Chat/Responses ↔ Messages), non-streaming requests and the parallel_tool_calls: false / disable_parallel_tool_use opt-outs are covered by offline HTTP tests, not by this live run.
  • Two cheap models on one day. Provider-side interleaving of argument fragments across calls is observed only when a provider chooses to interleave; this gate does not force it.
  • Turn 2 is a single reordered continuation, not a multi-round agent loop, and the final answer check is a marker echo, not a semantic judgement.
  • The direct cells bypass the router entirely, so they measure provider behaviour only.
  • Runs cost real money; the gate is a release-time check, not a per-PR CI job.

Rerun:

make test-parallel-tool-live # writes .out/parallel-tool-live.json, requires provider keys