" not in said:
+ text = Fake.lines.pop(0)
+ else:
+ text = json.dumps([{"rubric_idx": k, "justification": "it did", "meetExpectation": k != Fake.missed}
+ for k in sorted(set(re.findall(r"rubric_\d+", said)))]) if Fake.judge_ok else None
+ out = json.dumps({"choices": [{"message": {"role": "assistant", "content": text}}] if text is not None else [],
+ "usage": {"prompt_tokens": 1, "completion_tokens": 1}}).encode()
+ self.send_response(200)
+ self.send_header("Content-Type", "application/json")
+ self.send_header("Content-Length", str(len(out)))
+ self.end_headers()
+ self.wfile.write(out)
+
+
+@unittest.skipIf(_ready(), _ready())
+class Upstream(unittest.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ cls.up = install.upstream_dir(BENCH)
+ cls.argv, cls.extra = install.driver_argv(BENCH)
+ cls.srv = ThreadingHTTPServer(("127.0.0.1", 0), Fake)
+ threading.Thread(target=cls.srv.serve_forever, daemon=True).start()
+ cls.route = {"model": "fake", "base_url": f"http://127.0.0.1:{cls.srv.server_port}/v1", "key": "placeholder"}
+
+ @classmethod
+ def tearDownClass(cls):
+ cls.srv.shutdown()
+ cls.srv.server_close()
+
+ def setUp(self):
+ self.tmp = tempfile.mkdtemp()
+ self.addCleanup(shutil.rmtree, self.tmp, True)
+ Fake.lines, Fake.asked, Fake.judge_ok, Fake.missed = [], [], True, None
+
+ def env(self, dataset):
+ ds = next(d for d in BENCH["datasets"] if d["id"] == dataset)
+ return dict(self.extra, PATH=os.environ.get("PATH", os.defpath), HOME=self.tmp, PYTHONPATH=APP,
+ PYTHONDONTWRITEBYTECODE="1", NULLIUS_UPSTREAM=self.up,
+ NULLIUS_DATASET=os.path.join(self.up, ds["path"]), NULLIUS_DATASET_ID=dataset)
+
+ def opened(self, dataset, unit, lines):
+ """A unit set up and its MCP server started: the setup, and how to list tools, call one, take a turn and score."""
+ env = self.env(dataset)
+ d = jsonl.Proc(self.argv, BENCH["_here"], env, os.path.join(self.tmp, "driver.log")).start()
+ self.addCleanup(d.close)
+ ws = os.path.join(self.tmp, "unit", "workspace")
+ os.makedirs(ws)
+ s = d.request("setup", unit=unit, dir=ws)
+ cmd = install.words(BENCH["mcp_servers"]["vita"]["command"], {"here": BENCH["_here"], "install": install.driver_dir(BENCH)})
+ p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True,
+ env=dict(env, **s["mcp"][0]["env"]))
+ self.addCleanup(lambda: (p.kill(), p.wait(), p.stdin.close(), p.stdout.close()))
+ n = [0]
+
+ def ask(method, params=None):
+ n[0] += 1
+ p.stdin.write(json.dumps({"jsonrpc": "2.0", "id": n[0], "method": method, "params": params or {}}) + "\n")
+ p.stdin.flush()
+ while True:
+ m = json.loads(p.stdout.readline())
+ if m.get("id") == n[0]:
+ return m
+ ask("initialize", {"protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": {"name": "t", "version": "1"}})
+ p.stdin.write(json.dumps({"jsonrpc": "2.0", "method": "notifications/initialized"}) + "\n")
+ p.stdin.flush()
+ Fake.lines = list(lines)
+
+ def call(name, arguments):
+ got = ask("tools/call", {"name": name, "arguments": arguments})["result"]
+ return got["content"][0]["text"], got["isError"]
+
+ def turn(said=None):
+ t = [] if said is None else [{"role": "user", "text": "..."}, {"role": "agent", "text": said}]
+ return d.request("turn", unit=unit, dir=ws, transcript=t, simulator=self.route, judge=self.route)
+
+ def score():
+ return d.request("score", unit=unit, dir=ws, transcript=[], answer="", judge=self.route)
+ return s, ask, call, turn, score
+
+ def test_the_orchestrator_executes_each_call_and_the_users_stop_ends_it(self):
+ s, ask, call, turn, score = self.opened("cross-en", "A0812003", ["Lunch, please.", "Thanks. ###STOP###"])
+ self.assertIn("Current time: ", s["prompt"])
+ tools = ask("tools/list")["result"]["tools"]
+ self.assertGreater(len(tools), 50) # the three domains' tools
+ self.assertNotIn("$ref", json.dumps(tools))
+ self.assertIn("not started", call("nope", {})[0])
+ self.assertEqual(turn(), {"message": "Lunch, please."})
+ self.assertEqual(Fake.asked[0]["messages"][1], {"role": "user", "content": "Hello, how can I help you?"})
+ text, error = call("nope", {})
+ self.assertTrue(error)
+ self.assertNotIn("was not made", text) # the upstream's own answer
+ text, error = call("longitude_latitude_to_distance", {"longitude1": 1, "latitude1": 1, "longitude2": 1, "latitude2": 1})
+ self.assertFalse(error, text)
+ self.assertEqual(turn("Ordered."), {"done": True})
+ self.assertIn("conversation has ended (user_stop)", call("nope", {})[0])
+ r = score()
+ self.assertEqual((r["reward"], r["detail"]["termination"], r["detail"]["tool_calls"], r["detail"]["tool_errors"]),
+ (1.0, "user_stop", 2, 1), r["detail"])
+ self.assertNotIn("window_evaluations", r["detail"]["reward_info"])
+ self.assertTrue(os.path.isfile(os.path.join(self.tmp, "unit", "verifier", "simulation.json")))
+
+ def test_ten_tool_errors_score_zero_unjudged(self):
+ _, _, call, turn, score = self.opened("delivery", "10711001", ["你好"])
+ turn()
+ for _ in range(9):
+ call("nope", {})
+ self.assertIn("too_many_errors", call("nope", {})[0])
+ self.assertEqual(turn("bye ###STOP###"), {"done": True})
+ r = score()
+ self.assertEqual((r["reward"], r["detail"]["termination"]), (0.0, "too_many_errors"))
+ self.assertEqual(len(Fake.asked), 1) # the user's first line alone
+
+ def test_the_agents_stop_is_judged(self):
+ _, _, _, turn, score = self.opened("instore", "10826004", ["你好"])
+ turn()
+ self.assertEqual(turn("好的 ###STOP###"), {"done": True})
+ r = score()
+ self.assertEqual((r["reward"], r["detail"]["termination"]), (1.0, "agent_stop"))
+
+ def test_one_missed_rubric_fails_the_task_and_is_named(self):
+ _, _, _, turn, score = self.opened("instore", "10826004", ["你好"])
+ Fake.missed = "rubric_0"
+ turn()
+ turn("好的 ###STOP###")
+ r = score()
+ self.assertEqual((r["reward"], r["passed"], list(r["detail"]["rubrics_missed"].values())), (0.0, False, ["it did"]))
+
+ def test_an_empty_final_message_is_the_agents_invalid_message(self):
+ _, _, call, turn, score = self.opened("ota", "D0812006", ["你好"])
+ turn()
+ call("nope", {})
+ self.assertEqual(turn(""), {"done": True})
+ r = score()
+ self.assertEqual((r["reward"], r["detail"]["termination"]), (0.0, "invalid_agent_message"))
+
+ def test_a_judge_that_fails_is_the_units_error_never_a_score(self):
+ _, _, _, turn, score = self.opened("delivery-en", "10711001", ["Hello."])
+ Fake.judge_ok = False
+ turn()
+ self.assertEqual(turn("ok ###STOP###"), {"done": True})
+ with self.assertRaises(jsonl.Failed) as e:
+ score()
+ self.assertIn("evaluator raised", str(e.exception))
+
+ def test_a_failed_user_call_starts_the_conversation_again(self):
+ _, _, _, turn, score = self.opened("delivery-en", "10711001", ["Hello.", "", "Hello again.", "Bye ###STOP###"])
+ turn()
+ self.assertEqual(turn("What would you like?"), {"message": "Hello again.", "restart": True})
+ self.assertEqual(turn("Done."), {"done": True})
+ self.assertEqual(score()["detail"]["attempts"], 2)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/app/ui_tests/test_catalogue_routes.py b/app/ui_tests/test_catalogue_routes.py
index a2dd974f..312b1e49 100644
--- a/app/ui_tests/test_catalogue_routes.py
+++ b/app/ui_tests/test_catalogue_routes.py
@@ -130,7 +130,7 @@ def test_every_listed_benchmark_is_a_card_opening_its_page(self):
cat = catalog.load()
keys = re.findall(r'', 1)[0]
for b in cat.listed_benchmarks:
diff --git a/app/ui_tests/test_command_builder_state.py b/app/ui_tests/test_command_builder_state.py
index f7b467a4..8e7e3102 100644
--- a/app/ui_tests/test_command_builder_state.py
+++ b/app/ui_tests/test_command_builder_state.py
@@ -83,9 +83,9 @@ def test_the_benchmark_comes_first_and_sets_the_runner_that_runs_it(self):
"standard", "harbor", "standard", "harbor"])
def test_like_the_paper_is_offered_when_the_paper_fixes_a_model(self):
- out = self.js('process.stdout.write(JSON.stringify(["longmemeval","tau3-bench","gsm8k","locomo"].map(k=>{const r=C.createStandard(k);'
+ out = self.js('process.stdout.write(JSON.stringify(["longmemeval","tau3-bench","gsm8k","locomo","vitabench"].map(k=>{const r=C.createStandard(k);'
'return [C.paperOffered(r),C.paperListed(r)];})));')
- self.assertEqual(out, [[True, True], [True, False], [False, False], [False, False]])
+ self.assertEqual(out, [[True, True], [True, False], [False, False], [False, False], [False, False]])
def test_like_the_leaderboard_sets_its_options_and_attempts_and_leaving_it_gives_them_back(self):
out = self.js('const r=C.createStandard("tau3-bench");r.repeat=2;r.simulator_model="x";'
diff --git a/docs/agents/supported/README.md b/docs/agents/supported/README.md
index e5603cdf..07c4ea94 100644
--- a/docs/agents/supported/README.md
+++ b/docs/agents/supported/README.md
@@ -55,21 +55,21 @@ Every agent in the catalogue, the ports each version has proven, and the benchma
### Benchmarks each agent fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/codex.md b/docs/agents/supported/codex.md
index fa271132..0aaccf0b 100644
--- a/docs/agents/supported/codex.md
+++ b/docs/agents/supported/codex.md
@@ -34,10 +34,10 @@ OpenAI's coding agent.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/digitalmate.md b/docs/agents/supported/digitalmate.md
index afc0abf3..5f097abe 100644
--- a/docs/agents/supported/digitalmate.md
+++ b/docs/agents/supported/digitalmate.md
@@ -32,10 +32,10 @@ None declared.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/goose.md b/docs/agents/supported/goose.md
index 907d3452..b12af269 100644
--- a/docs/agents/supported/goose.md
+++ b/docs/agents/supported/goose.md
@@ -30,9 +30,9 @@ The AAIF's open-source agent, formerly Block's.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/jiuwenswarm.md b/docs/agents/supported/jiuwenswarm.md
index bc019125..861ef612 100644
--- a/docs/agents/supported/jiuwenswarm.md
+++ b/docs/agents/supported/jiuwenswarm.md
@@ -36,11 +36,11 @@ openJiuwen's WorkSwarm agent.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/mini-swe-agent.md b/docs/agents/supported/mini-swe-agent.md
index f43378ed..f9e7ce65 100644
--- a/docs/agents/supported/mini-swe-agent.md
+++ b/docs/agents/supported/mini-swe-agent.md
@@ -30,9 +30,9 @@ Princeton's 100-line agent, bash only.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/opencode.md b/docs/agents/supported/opencode.md
index c288131d..903d4971 100644
--- a/docs/agents/supported/opencode.md
+++ b/docs/agents/supported/opencode.md
@@ -30,9 +30,9 @@ The open-source terminal coding agent.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/swe-agent.md b/docs/agents/supported/swe-agent.md
index 9413747e..3949b604 100644
--- a/docs/agents/supported/swe-agent.md
+++ b/docs/agents/supported/swe-agent.md
@@ -28,9 +28,9 @@ None declared.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/agents/supported/terminus-2.md b/docs/agents/supported/terminus-2.md
index fcc73382..d5073b2a 100644
--- a/docs/agents/supported/terminus-2.md
+++ b/docs/agents/supported/terminus-2.md
@@ -30,9 +30,9 @@ Harbor's terminal agent, used by Terminal-Bench.
## Benchmarks it fits
- ✗: the missing port, on hover.
diff --git a/docs/benchmarks/supported/README.md b/docs/benchmarks/supported/README.md
index 735c499f..a445f14e 100644
--- a/docs/benchmarks/supported/README.md
+++ b/docs/benchmarks/supported/README.md
@@ -23,6 +23,7 @@ Every benchmark in the catalogue: where it runs, what it needs, the ways it runs
SWE-bench Verified
swe-bench-verified | Software engineering: fix a real GitHub issue so the failing tests pass. | Coding | ✓ | ✓ | 500 | Official |
τ³-bench
tau3-bench | Customer service with domain tools and a simulated user: airline, retail, telecom, banking. | Customer service | ✓ | ✓ | 375 | Official |
Terminal-Bench 2.0
terminal-bench | Real terminal tasks in a container: build, configure, debug. | Terminal | ✓ | ✓ | 89 | Official |
+VitaBench
vitabench | Food delivery, in-store and travel requests from a simulated user, with up to 66 tools. | Life services | ✓ | – | 400 | Official |
### How each runs
@@ -41,6 +42,7 @@ Every benchmark in the catalogue: where it runs, what it needs, the ways it runs
| SWE-bench Verified | agent.workspace/v1 | Nullius | the authors | ✓ | ✓ | ✓ |
| τ³-bench | agent.tools/v1, agent.conversation/v1 | Nullius | Nullius | ✓ | ✓ | ✓ |
| Terminal-Bench 2.0 | agent.workspace/v1 | Nullius | the authors | ✓ | ✓ | ✓ |
+| VitaBench | agent.tools/v1, agent.conversation/v1 | Nullius | – | ✓ | ✓ | ✓ |
- Nullius wrote a control where the upstream published none.
diff --git a/docs/benchmarks/supported/vitabench.md b/docs/benchmarks/supported/vitabench.md
new file mode 100644
index 00000000..0be140cd
--- /dev/null
+++ b/docs/benchmarks/supported/vitabench.md
@@ -0,0 +1,83 @@
+
+
+# VitaBench
+
+Food delivery, in-store and travel requests from a simulated user, with up to 66 tools.
+
+
+
+## Datasets
+
+| Dataset | Key | Tasks | From | Verifier |
+|---|---|---|---|---|
+| VitaBench | `vitabench` | 400 | GitHub [meituan-longcat/vitabench](https://github.com/meituan-longcat/vitabench/tree/742e240855bf8686a0842360749d5ea970ea3987) | VitaBench's evaluator: a judge model marks each task's rubrics. |
+
+## On the standard
+
+| Control | Written by |
+|---|---|
+| `nop` | Nullius |
+
+### Versions
+
+| Version | Setups as published, whose model | Options |
+|---|---|---|
+| `vitabench` | Original · VitaBench LLM agent · Like the paper or Any of your choice | `agent_max_tokens`, `agent_reasoning_effort`, `agent_temperature`, `enable_think`, `evaluation`, `max_errors`, `max_steps`, `upstream_agent`, `user` |
+
+## Options
+
+| Option | Values, default in bold | What it sets | Setups |
+|---|---|---|---|
+| `agent_max_tokens` | e.g. `8192`, default `default` | The longest reply of the benchmark's own agent model. The default sends no limit. | `original` |
+| `agent_reasoning_effort` | **`default`**, `minimal`, `low`, `medium`, `high`, `xhigh` | How much reasoning the benchmark's own agent model uses. | `original` |
+| `agent_temperature` | e.g. `0.7`, default `0.0` | The temperature of the benchmark's own agent model, the paper's 0 by default. | `original` |
+| `enable_think` | **`off` (Off)**, `on` (On) | Whether the benchmark's own agent model thinks (the upstream's --enable-think). | `original` |
+| `evaluation` | **`trajectory` (Sliding window, rubrics)**, `trajectory_full_traj_rubric` (Whole conversation, rubrics), `trajectory_sliding_wo_rubric` (Sliding window, no rubrics), `trajectory_full_traj_wo_rubric` (Whole conversation, no rubrics) | How the judge reads the conversation. | `original`, `yours` |
+| `max_errors` | e.g. `5`, default `10` | The most tool calls that fail before a conversation ends. | `original`, `yours` |
+| `max_steps` | e.g. `100`, default `300` | The most messages and tool rounds of a conversation. | `original`, `yours` |
+| `upstream_agent` | **`llm_agent` (Conversation)**, `llm_solo_agent` (Solo) | Whether the benchmark's own agent talks with the user or works alone. | `original` |
+| `user` | **`user_simulator` (Step by step)**, `dummy_user` (All at once) | How the simulated user tells what it wants. | `original`, `yours` |
+
+## Good to know
+
+- The paper's judge, Claude 3.7 Sonnet, is retired, so Like the paper cannot run: choose Any of your choice and a judge model. Scores compare only between runs with the same judge, never with the paper's.
+- Scores depend on the judge's and the simulated user's models: keep both fixed when comparing.
+- The leaderboard's main result is Cross-scenario, in Chinese, with 4 attempts per task.
+- A task passes only when every rubric is met.
+
+## Upstream limitations
+
+- In 15 of the 100 Cross-scenario (English) tasks, the shops, orders or bookings the task relies on are missing, though the Chinese version has them: an agent may fail them through no fault of its own. Score with the Chinese datasets.
+- Its model calls carry configuration fields (base_url, headers, name, max_input_tokens) that OpenAI's API refuses with HTTP 400: run every model of a VitaBench run on OpenRouter (OpenAI's models are there as openai/...) or a custom endpoint.
+- A failed model call makes the upstream start the conversation again, up to 3 times, and each costs its calls.
+- The updated leaderboard does not name its judge model.
+- Its dependencies are not locked to versions.
+
+## Nullius limitations
+
+- Another agent replaces the upstream's agent. It gets the upstream's prompt, plus lines from Nullius: where its tools are, and that its last message in a turn goes to the user.
+- With another agent, a judge that fails is the task's error: the upstream's restart of the conversation is not followed.
+- With another agent, one empty final message ends the conversation. The upstream asks its own agent 3 times.
+- There is no reference control: the upstream publishes no reference conversations.
+
+## Cite
+
+??? citation "BibTeX"
+
+ ```bibtex
+ @article{he2025vitabench,
+ title={VitaBench: Benchmarking LLM Agents with Versatile Interactive Tasks in Real-world Applications},
+ author={He, Wei and Sun, Yueqing and Hao, Hongyan and Hao, Xueyuan and Xia, Zhikang and Gu, Qi and Han, Chengcheng and Zhao, Dengchang and Su, Hui and Zhang, Kefeng and Gao, Man and Su, Xi and Cai, Xiaodong and Cai, Xunliang and Yang, Yu and Zhao, Yunke},
+ journal={arXiv preprint arXiv:2509.26490},
+ year={2025}
+ }
+ ```
diff --git a/docs/standard.md b/docs/standard.md
index 1edfd71c..6b033905 100644
--- a/docs/standard.md
+++ b/docs/standard.md
@@ -633,7 +633,7 @@ already accepts arbitrary models needs only the `original` method.
| `model` driver method | The upstream is told `runs_as` (its window, batching and token budget) while the relay sends the model chosen. A model that reasons by default can spend that budget thinking: a last reply with neither text nor a tool call is `OutputLengthExceededError`. A last Responses reply that `failed` is an API error. A runner that fails after the unit is asked to stop is `CancelledError` |
| `units` | A setup may count its own units; `units` is sent `setup` |
| `answer` | Runs the upstream's answerer through the unit's relay; `score` is sent `setup` too. Local processes or the Original setup driver container |
-| `comparable` | `false` when no model of `models` is the paper's, so its runs compare with each other only; or the list of those models whose runs compare with the paper's (`paper`), when the setup runs several agents and only some are the paper's: the builder offers those alone as Like the paper, the others as Any of your choice; or `[]` when none can be run any more: Like the paper is greyed out, and `run BENCHMARK original` refused |
+| `comparable` | `false` when no model of `models` is the paper's, so its runs compare with each other only; or the list of those models whose runs compare with the paper's (`paper`), when the setup runs several agents and only some are the paper's: the builder offers those alone as Like the paper, the others as Any of your choice; or `[]` when none can be run any more: Like the paper is greyed out, and `run BENCHMARK original` refused. Without `models`, `[]` says the paper's judge or user simulator is retired: Original still takes any model |
| Recorded | `standard.setup` in the config and each trial: its name, the model `asked` and `sent`, `comparable_with_paper`, and the benchmark's own agent that ran (`agent`), whose key is also the job's agent (`agent_info.name`) |
| Attempts | `cli run --attempts K` runs each unit K times; `result.json` carries [`pass_hat_k`](field-guide.md#attempts) |
| Retries | `cli run --retries N` runs a failed attempt again: [which failures](cli/run.md#retries) |