What τ²-bench is
τ²-bench tests agents that serve customers. In each task an LLM plays a customer with a scenario and a persona, and the agent under test follows the company's written policy and acts on its database through typed tools: looking up a reservation, changing a flight, exchanging an item. A task passes when the conversation leaves the database exactly as the task's gold actions would and, where the task asks for it, when an LLM judge finds that the agent said or did what it should. Sierra publishes the benchmark as open source with the paper below and runs its leaderboard at taubench.com.
This page describes Sandworld's port of it: the airline and retail domains in English text, faithful to upstream's release, with an optional layer of renamed variants. It is an imported benchmark, not a Sandworld world: it is not in the world catalog or its counts, the benchmark suites, the Leaderboard, datasets, exports, or the API and MCP world lists.
Credit
- Benchmark
- τ²-bench 2.0.0, by Victor Barres, Honghua Dong, Soham Ray, Xujie Si and Karthik Narasimhan, Sierra Research
- Paper
- Victor Barres, Honghua Dong, Soham Ray, Xujie Si and Karthik Narasimhan. “τ²-Bench: Evaluating Conversational Agents in a Dual-Control Environment.” arXiv:2506.07982, June 2025. arxiv.org/abs/2506.07982
- Code
- github.com/sierra-research/tau2-bench, release v2.0.0 (October 19, 2026), commit
989d3285ae669e49503324bdb9981bf14fccedeb - Licence
- MIT, Copyright (c) 2025 Sierra Research. Full licence text (also in upstream's repository).
- Affiliation
- Sandworld is not affiliated with or endorsed by Sierra. The airline and the online store in this benchmark are fictional companies with simulated databases; no real airline, retailer or customer is involved, and no real service is called.
To cite τ²-bench, cite Sierra's paper:
@misc{barres2025tau2,
title={$\tau^2$-Bench: Evaluating Conversational Agents in a Dual-Control Environment},
author={Victor Barres and Honghua Dong and Soham Ray and Xujie Si and Karthik Narasimhan},
year={2025},
eprint={2506.07982},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2506.07982},
}What's ported
The English text airline and retail domains, as a default tau2 run --domain airline|retail (seed 300) builds them with upstream's own code: every task, the domain policy, the agent's exact system prompt, the tool schemas, each task's simulated-customer prompt and persona, the greeting, and the caps of 200 steps and 10 failed tool calls per conversation.
| Domain | Tasks | In text-v1 | Tools (write) | Need an LLM judge |
|---|---|---|---|---|
| Airline | 50 | all 50 | 14 (6) | 6 |
| Retail | 114 | 50 | 16 (7) | 40 |
Upstream's released text benchmark, text-v1, scores a frozen set of 50 tasks per domain. In airline that is every task. In retail it is the English pack's 50 reviewed replacement tasks; the port also holds the other English retail tasks of a default run, and marks the 50. Every task keeps its upstream id (Sandworld's ids are airline-<id> and retail-<id>).
The 50 retail tasks in text-v1, by upstream id
Not ported
- Telecom. The customer has tools of their own acting on a second, device-side database that the grader also checks; porting it faithfully needs a second tool-calling loop for the customer, which Sandworld's harness doesn't have yet.
- Voice. It needs commercial realtime speech, speech-to-text and text-to-speech APIs.
- Other languages (Spanish, Portuguese, Hindi, Chinese and Korean). The port and its parity checks cover the English pack only.
banking_knowledgeandintake. The first needs retrieval with embeddings over 698 documents; the second is voice-first.
How scoring works
Every episode gets two scores. They answer different questions and are reported side by side, never combined into one number.
Upstream-faithful
Upstream's own reward for the conversation: the product of the task's reward components. Every airline task is scored on the database and on what the agent communicated; retail tasks on the database and on natural-language assertions about the conversation, or on the database alone. The database check replays the conversation's state-changing calls on a fresh database and requires the same hash as a replay of the gold actions. Communication and assertions are judged by an LLM, with upstream's prompts verbatim. A conversation that ends any other way than the customer or the agent stopping scores 0.
46 of the 164 tasks need an LLM judge for this score: 6 airline tasks (communication) and 40 retail tasks (assertions). Until a judge has run on one of them, its upstream-faithful score is pending, neither a pass nor a fail, unless another component already makes it 0. The other 118 tasks are decided without a model. Each run records which judge model it used.
Sandworld-audited
Deterministic and state-only, and it never calls a model: the final database must equal the gold actions' replay (upstream's own database check, exact hash equality), within Sandworld's step budget. It leaves out everything a judge decides and how the conversation ended.
Like the database check it is built on, it reads only the final state. On a task whose correct outcome changes nothing, such as a refusal, it can't tell the right answer from an agent that did nothing; upstream's evaluation guide notes that a correct refusal can earn full reward with no tool calls at all. Read the audited score with the upstream-faithful one, not instead of it.
Neither score is a Sandworld world score: runs of an imported benchmark are stored apart and never appear on the Leaderboard, in Bench v1 or Bench Hard, or in any headline number.
Parity with upstream
The data, prompts and tool schemas are not retyped: upstream's own code exports them. The tools, the environment's tool-call handling, the evaluator and the conversation loop are ported from Python to TypeScript by hand, keeping Python's behaviour wherever it decides an outcome: argument errors, type coercions, changes made before an error, JSON bytes and the database hash. The port is then replayed against upstream's own Python:
- 1,143 tool-level cases, covering each tool's success and error paths, including ill-typed arguments;
- all 164 tasks: each task's gold actions, and 3 graded trajectories per task.
Every tool message, error flag, database hash, reward component and judge prompt is identical.
Sandworld fresh variants
Public benchmark tasks and their gold actions can end up in a model's training data. A Sandworld fresh variant shows the agent and the simulated customer a world in which every user id, record locator, flight and order number, product and item id, payment id, tracking number and customer email is renamed, by a keyed mapping fixed per variant. The policy, the tasks' logic and upstream's grading are unchanged and run on the world's own records, so a model that memorised the public tasks gets no head start: the ids it remembers belong to nobody there.
Variants are opt-in and never the default. A run on them is labelled “Sandworld fresh variants of τ²-bench” and kept apart from runs on the original tasks, and like any run with other models than upstream's it is not comparable to upstream's leaderboard. The LLM judges read the conversation mapped back to the original names, with upstream's facts and assertions as written, so the upstream-faithful score means on a variant what it means upstream. Variants are derived from τ²-bench under its MIT licence by renaming, never by changing a task.
The evidence
All deterministic, with no model calls:
- Same outcome under new names. All 164 tasks on 5 variants (1, 2, 3, 4242 and 3735928559), 820 task-variants: the gold actions written in the variant's names, played through the real conversation loop, leave the same transcript, final database, action log, database hash, reward components, verdict and judge prompts as on the original.
- A memorised answer fails. The original gold actions, sent verbatim, fail on every variant for every task whose gold actions change the database. The exceptions are the 35 tasks whose gold actions change nothing (refusals, lookups and transfers, which upstream's evaluation guide describes): there a verbatim answer changes nothing either, so renaming can't catch it.
- No leaks. No original id appears in anything the agent or the customer sees (system prompts, tool descriptions, the greeting, messages, tool results) on any of the 820 task-variants.
- No collisions. On 5 variants per domain, every alias is new, unique and no record's real name. Every name is listed up front: 4,799 in airline, 3,925 in retail.
- Upstream's own code agrees. 164 task-variants (25 airline and 57 retail tasks on variants 7 and 2718281828), exported in upstream's formats and run through τ²-bench's Python: the renamed gold reaches the original reward on all 164, with 0 differences from what the port predicts.
What is deliberately not renamed
- People's names and dates of birth. Passenger names are written into reservations and compared byte for byte by the database hash, and names collide with policy words and airport codes.
- Zip codes and addresses. Retail finds a customer by name and zip code, so both stay as the database has them; addresses are written as given and hashed as written.
- Airports, cabins, products and their options, prices, dates, statuses, card brands and last-four digits, balances. They are what the policy and the customers talk about, not record ids.
So a model that memorised a customer's name and zip code still finds that customer, but then reads only renamed ids, and no write keys on a name, zip code or address.
Changes from upstream
Every change Sandworld made, from the port's change log:
- Ported from Python to TypeScript: the airline and retail tools, the environment's tool-call handling and replay, the default evaluator (EvaluationType.ALL) and the half-duplex text orchestrator. Checked against upstream's own Python with a parity harness (scripts/tau2, tests/fixtures/tau2): identical tool messages, database hashes and reward components on every task's gold actions and on tool-level cases covering each tool's success and error paths, including ill-typed arguments.
- Task data, prompts and tool schemas are upstream's, exported by upstream's own code for the default English text run (
tau2 run --domain airline|retail, language pack en, seed 300): the English pack's 50 reviewed retail replacements, every task's exact agent and user-simulator system prompts (including the persona the default run assigns), the greeting, the 200-step and 10-error caps. Voice, the other five languages, telecom, banking_knowledge, intake and mock are not ported. - Determinism: none was needed in the tools (upstream's airline clock is the fixed 2024-05-15T15:00:00, and new ids come from fixed lists). Whole numbers: JSON can't tell 2.0 from 2, so a whole number the agent sends as a float arrives as an int; where upstream would store or print 2.0 the port stores or prints 2. Values the tools compute keep Python's int/float types.
- Model calls are not part of the port: the agent and the user simulator run through Sandworld's model drivers with upstream's prompts, tools and turn rules (one message or one batch of tool calls per turn; the conversation ends on ###STOP###, ###TRANSFER### or ###OUT-OF-SCOPE### from the user, at 200 steps or at 10 tool errors). The wire format to each provider is the driver's, not LiteLLM's; tool results are sent without an error flag, as upstream sends them.
- LLM judges: upstream 2.0 scores communicate_info with a semantic LLM judge and nl_assertions with an LLM judge. Their prompts are ported verbatim behind an interface; until a judge has run, a task that needs one has a pending upstream-faithful score. Upstream's substring communicate scorer is reported alongside as a diagnostic only.
- A JavaScript error inside the port (a case upstream's Python handles that the port doesn't) is reported to the agent as
Error: <message>and flagged in the episode; parity tests check none occurs on the tested cases. Absurdcalculatepowers (results over a million bits) are refused instead of computed. - Two scores, never merged: the upstream-faithful score is upstream's reward for the conversation (product of the task's reward_basis components, 0 on a premature end); the Sandworld-audited score is deterministic and state-only (the database must equal the gold actions' replay, upstream's own DB check) plus Sandworld's step budget, and never calls a model.
- Reference solutions are upstream's gold actions; for QA probes Sandworld adds a closing message stating the task's communicate_info facts. Episodes not played as a conversation (baselines, QA probes, a world-server session) are graded on a synthesized transcript: the greeting, the tool calls in order, the closing text, ended by the user.
- One Sandworld world per upstream domain (tau2-airline, tau2-retail), task ids <domain>-<upstream id>, upstream's id kept on every task; the 50 tasks per domain of upstream's released text benchmark (text-v1) are marked. Upstream rates no task difficulty; Sandworld shows every task as medium.
- Sandworld fresh variants of τ²-bench (opt-in per episode or run, never the default): a keyed renaming of every user id, record locator, flight number, order number, product and item id, payment id, tracking number and customer email the agent or the simulated customer sees (src/envs/imports/tau2/alias.ts). The agent's system prompt, tool descriptions (their example ids renamed), greeting, every tool result and message, and the customer's system prompt are shown renamed; what the agent sends and what the customer says are mapped back before the world runs them. Names, addresses, zip codes, airports, cabins, products, prices and dates stay as upstream has them. The database, the action log, the transcript and the grading are canonical: the reward is upstream's, and the LLM judges read the canonical transcript (TAU2_VARIANTS). A canonical episode is unchanged.
How to run it
Imported benchmarks run on Sandworld's benchmark runner, not through the public API or sw eval, which don't list them. The runner is part of Sandworld's code, which isn't public. --user-sim names the model that plays the customer and --judge the LLM judge; without a judge, the 46 judged tasks stay pending. Runs are written apart from native runs, each episode with its full transcript, and record the models they used.
# One domain at a time: tau2-airline or tau2-retail
npx tsx scripts/bench.ts --agent <model> --envs tau2-airline \
--user-sim <model> --judge <model>
# Sandworld fresh variants: add --variant <n> for one numbered variant,
# or --variants for a fresh one per task and seed (needs SW_VARIANT_KEY)
npx tsx scripts/bench.ts --agent <model> --envs tau2-retail \
--user-sim <model> --judge <model> --variantsFor a managed run on your model or agent, or a run on private fresh variants, scope a pilot.
Licence
τ²-bench is licensed under the MIT License. The text below ships with the port and is identical to upstream's.
MIT License
Copyright (c) 2025 Sierra Research
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.