From 30e3378397ea3ef4833481f3e977517147d4c05d Mon Sep 17 00:00:00 2001 From: Etienne Filhol Date: Wed, 25 Nov 2026 23:48:53 +0100 Subject: [PATCH] feat(catalogue): add VitaBench on the standard, and grey out Like the paper when its judge is retired --- .../benchmarks/vitabench/benchmark.json | 76 +++ .../catalogue/benchmarks/vitabench/driver.py | 441 ++++++++++++++++++ .../benchmarks/vitabench/mcp_server.py | 53 +++ .../benchmarks/vitabench/proofs.json | 179 +++++++ .../benchmarks/vitabench/standard.json | 292 ++++++++++++ .../vitabench/upstream-settings.json | 275 +++++++++++ app/nullius/standard/pages/recipe.py | 6 +- app/static/builder/command-builder-core.js | 4 +- app/static/catalogue/marks.svg | 4 + app/tests/test_catalog.py | 2 +- app/tests/test_standard_setups.py | 10 + app/tests/test_standard_vitabench.py | 195 ++++++++ app/ui_tests/test_catalogue_routes.py | 2 +- app/ui_tests/test_command_builder_state.py | 4 +- docs/agents/supported/README.md | 28 +- docs/agents/supported/codex.md | 6 +- docs/agents/supported/digitalmate.md | 6 +- docs/agents/supported/goose.md | 4 +- docs/agents/supported/jiuwenswarm.md | 8 +- docs/agents/supported/mini-swe-agent.md | 4 +- docs/agents/supported/opencode.md | 4 +- docs/agents/supported/swe-agent.md | 4 +- docs/agents/supported/terminus-2.md | 4 +- docs/benchmarks/supported/README.md | 2 + docs/benchmarks/supported/vitabench.md | 83 ++++ docs/standard.md | 2 +- 26 files changed, 1656 insertions(+), 42 deletions(-) create mode 100644 app/nullius/catalogue/benchmarks/vitabench/benchmark.json create mode 100644 app/nullius/catalogue/benchmarks/vitabench/driver.py create mode 100644 app/nullius/catalogue/benchmarks/vitabench/mcp_server.py create mode 100644 app/nullius/catalogue/benchmarks/vitabench/proofs.json create mode 100644 app/nullius/catalogue/benchmarks/vitabench/standard.json create mode 100644 app/nullius/catalogue/benchmarks/vitabench/upstream-settings.json create mode 100644 app/tests/test_standard_vitabench.py create mode 100644 docs/benchmarks/supported/vitabench.md diff --git a/app/nullius/catalogue/benchmarks/vitabench/benchmark.json b/app/nullius/catalogue/benchmarks/vitabench/benchmark.json new file mode 100644 index 00000000..eaaefc12 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/vitabench/benchmark.json @@ -0,0 +1,76 @@ +{ + "key": "vitabench", + "title": "VitaBench", + "category": "Life services", + "domain": "Food delivery, in-store and travel requests from a simulated user, with up to 66 tools.", + "scoring": "Rubric judge", + "harness": [ + "standard" + ], + "origin": "official", + "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." + ], + "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." + ], + "datasets": [ + { + "key": "vitabench", + "title": "VitaBench", + "tasks": 400, + "official": "https://github.com/meituan-longcat/vitabench", + "verifier": "VitaBench's evaluator: a judge model marks each task's rubrics.", + "source": "GitHub" + } + ], + "timeouts": { + "env_setup": 600, + "agent_setup": 1200, + "agent_run": 7200, + "verify": 3600 + }, + "citation": "@article{he2025vitabench,\n title={VitaBench: Benchmarking LLM Agents with Versatile Interactive Tasks in Real-world Applications}, \n 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},\n journal={arXiv preprint arXiv:2509.26490},\n year={2025}\n}", + "citation_source": "https://github.com/meituan-longcat/vitabench", + "evidence": [ + { + "label": "Rubrics met", + "path": "rubrics" + }, + { + "label": "Rubric missed", + "path": "rubrics_missed" + }, + { + "label": "Ended by", + "path": "termination", + "values": { + "user_stop": "User", + "agent_stop": "Agent", + "max_steps": "Step limit", + "too_many_errors": "Too many errors", + "invalid_agent_message": "Empty agent message" + } + }, + { + "label": "Tool errors", + "path": "tool_errors", + "unless": [ + "0" + ] + } + ] +} diff --git a/app/nullius/catalogue/benchmarks/vitabench/driver.py b/app/nullius/catalogue/benchmarks/vitabench/driver.py new file mode 100644 index 00000000..5400cc92 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/vitabench/driver.py @@ -0,0 +1,441 @@ +"""VitaBench's driver for the Nullius standard (JSON lines on stdin and stdout). + +Everything the benchmark's authors decide is their code, ``vitabench`` at the commit +``standard.json`` pins, installed as this driver's environment and imported: + +units - the dataset file's tasks, through the upstream's ``Task`` model +setup - the upstream agent's own prompt (``LLMAgent.system_prompt``) and its + environment's tools, served by ``mcp_server.py``, which passes each call here +turn - the upstream's ``run_task`` in a thread: its Orchestrator, user simulator, + limits, retries and evaluator. The agent in it is ``AcpAgent``: a tool call made + over MCP is the agent's next message, which the Orchestrator executes; the final + text of a turn is its next message to the user. ``turn`` answers ``done`` once + the agent or the user says the upstream's stop token, or the Orchestrator ends it +answer - the original: the upstream's own agent as the run's model, in the same run_task +score - the ``SimulationRun`` run_task returned, scored by the upstream's evaluator + +The run's three models are entries of the upstream's own model configuration +(``vita.config.models``): its ``default`` entry with the route's address and model. + +Glue that shows in a result: the lines that tell the ACP agent where its tools are; an +empty final message, which the upstream would ask its model for again twice, counts as +three empty ones (``invalid_agent_message``); and a conversation started again by run_task +is told by ``restart``, except after it ended: an evaluator that raises is then the +unit's error, the ACP agent being gone. +""" +import contextlib +import json +import os +import queue +import random +import shutil +import socket +import sys +import tempfile +import threading +import uuid + +PROTOCOL, sys.stdout = sys.stdout, sys.stderr # stdout is the protocol's: whatever the upstream prints goes to the log +from loguru import logger + +logger.remove() +logger.add(sys.stderr, level="INFO") + +from vita import config +from vita.agent.llm_agent import LLMAgent +from vita.data_model.message import AssistantMessage, MultiToolMessage, ToolCall, ToolMessage, UserMessage +from vita.data_model.simulation import SimulationRun, TerminationReason +from vita.data_model.tasks import Task +from vita.environment.environment import get_cross_environment +from vita.evaluator.evaluator import evaluate_simulation +from vita.orchestrator.orchestrator import get_default_first_agent_message +from vita.registry import registry +from vita.run import _clear_global_state, run_task +from vita.user.user_simulator import DummyUser, UserSimulator +from vita.utils.utils import get_now + +from nullius.standard.protocols.jsonl import serve + +DOMAINS = {"cross": "delivery,instore,ota"} # the upstream CLI's own default domain +HOW = {"english": """ + +How this session works: the tools of the MCP server named vita, given to this session, are your tools. \ +Your final message in each turn is sent to the user, and their reply comes as your next message. + +You said to the user: {greeting} +The user says:""", + "chinese": """ + +本次会话的方式:本会话提供的名为 vita 的 MCP 服务器中的工具就是你的工具。你每一轮的最后一条消息会发送给用户,用户的回复会作为你的下一条消息。 + +你对用户说:{greeting} +用户说:"""} +ENDED_CALL = "Error: the conversation has ended ({why}); this call was not made." +RESTARTED_CALL = "Error: the conversation was started again; this call was not made." +WAIT = 590 # under the 600 s a turn's answer is given +STATE, _TASKS = {}, {} +_CURRENT = [None] # the conversation running: a driver holds one unit at a time + + +class Aborted(BaseException): + """The run cannot go on. Not an ``Exception``: run_task retries those.""" + + +class AcpAgent(LLMAgent): + """The ACP agent as the upstream's Orchestrator sees an agent.""" + + def __init__(self, **kw): + super().__init__(**kw) + self.c = _CURRENT[0] + self.attempt = self.c.new_attempt() + self.empty = None # the message the ACP agent answered with nothing + + def get_init_state(self, message_history=None): + return None + + def generate_next_message(self, message, state): + c = self.c + if self.empty is message: # the Orchestrator asks again: the turn is over, there is no other answer + return AssistantMessage(role="assistant", content="", cost=0.0), state + if isinstance(message, (ToolMessage, MultiToolMessage)): + for m in (message.tool_messages if isinstance(message, MultiToolMessage) else [message]): + c.answer(m.id, m.content or "", bool(m.error)) + elif isinstance(message, UserMessage): + c.out.put(("say", message.content, self.attempt)) + while True: + what, value, attempt = c.inbox.get() + if what == "abort": + raise Aborted("the unit was left before the conversation ended") + if attempt == self.attempt: + break + if what == "call": # from an attempt before: not made + value[2](RESTARTED_CALL, True) + if what == "call": + name, arguments, reply = value + tc = ToolCall(id="call_" + uuid.uuid4().hex[:16], name=str(name), + arguments=arguments if isinstance(arguments, dict) else {}, requestor="assistant") + c.pending[tc.id] = reply + return AssistantMessage(role="assistant", content=None, tool_calls=[tc], cost=0.0), state + said = AssistantMessage(role="assistant", content=value, cost=0.0) + if not said.has_text_content(): + self.empty = message + elif self.is_stop(said): + c.closing(TerminationReason.AGENT_STOP) + return said, state + + +class _Heard: + """The upstream's user, its stop heard: the judge may take long, and the ACP agent need not wait for it.""" + + def generate_next_message(self, message, state): + said, state = super().generate_next_message(message, state) + if said.has_text_content() and self.is_stop(said): + _CURRENT[0].closing(TerminationReason.USER_STOP) + return said, state + + +class HeardUser(_Heard, UserSimulator): + pass + + +class HeardDummyUser(_Heard, DummyUser): + pass + + +registry.register_agent(AcpAgent, "nullius_acp") +registry.register_user(HeardUser, "heard_user_simulator") +registry.register_user(HeardDummyUser, "heard_dummy_user") + + +class Conversation: + """One unit's conversation: the upstream's run_task in a thread, the socket + the MCP server passes calls through, and the queues between them.""" + + def __init__(self, tools): + self.tools = tools + self.inbox = queue.Queue() # to AcpAgent: ("call", (name, arguments, reply), attempt), ("said", text, attempt), ("abort", ..) + self.out = queue.Queue() # to a turn: ("say", text, attempt), ("done", None, None) + self.pending = {} # tool call id -> its reply + self.attempt = 0 # run_task's attempt running (1, 2, ...) + self.given = 0 # the attempt the ACP agent was last given a message of + self.lock = threading.Lock() + self.over = self.result = self.error = self.thread = None + self.dir = tempfile.mkdtemp(prefix="nullius-vita-") + os.chmod(self.dir, 0o700) + self.at = os.path.join(self.dir, "s") + self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) + self.sock.bind(self.at) + self.sock.listen(16) + threading.Thread(target=self._accept, daemon=True).start() + + def _accept(self): + while True: + try: + conn, _ = self.sock.accept() + except OSError: + return + threading.Thread(target=self._call, args=(conn,), daemon=True).start() + + def _call(self, conn): + try: + f = conn.makefile("rwb") + req = json.loads(f.readline() or b"{}") + except (OSError, ValueError): + conn.close() + return + + def send(reply): + with contextlib.suppress(OSError): + f.write((json.dumps(reply) + "\n").encode()) + f.flush() + with contextlib.suppress(OSError): + conn.close() + + def reply(text, error): + send({"text": text, "isError": error}) + + if req.get("list"): + send({"tools": self.tools}) + return + with self.lock: + if self.over is None and self.thread is not None and self.given == self.attempt: + self.inbox.put(("call", (req.get("name"), req.get("arguments"), reply), self.given)) + return + why = self.over or (None if self.thread is not None else "not started") + reply(RESTARTED_CALL if why is None else ENDED_CALL.format(why=why), True) + + def new_attempt(self): + with self.lock: + if self.over is not None: + raise Aborted("the upstream's evaluator raised (the driver's log says why)") + self.attempt += 1 + left = list(self.pending.values()) + self.pending.clear() + for reply in left: + reply(RESTARTED_CALL, True) + return self.attempt + + def answer(self, call_id, text, error): + reply = self.pending.pop(call_id, None) + if reply is not None: + reply(text, error) + + def closing(self, why): + """The conversation is over: calls still waiting are answered, never made.""" + with self.lock: + self.over = self.over or getattr(why, "value", why) + left = list(self.pending.values()) + self.pending.clear() + with contextlib.suppress(queue.Empty): + while True: + what, value, _ = self.inbox.get_nowait() + if what == "call": + left.append(value[2]) + for reply in left: + reply(ENDED_CALL.format(why=self.over), True) + self.out.put(("done", None, None)) + + def start(self, **kw): + self.thread = threading.Thread(target=self._run, kwargs=kw, daemon=True) + self.thread.start() + + def _run(self, **kw): + try: + self.result = run_task(**kw) + except BaseException as e: + self.error = e + self.closing(self.result.termination_reason if self.result is not None else "stopped") + + def said(self, text): + with self.lock: + if self.given == self.attempt: + self.inbox.put(("said", text, self.given)) + + def next(self): + """What the user says next - in a new attempt, with ``restart`` - or done.""" + try: + what, value, attempt = self.out.get(timeout=WAIT) + except queue.Empty: + raise TimeoutError(f"the conversation did not answer in {WAIT} s") + if what == "done": + return {"done": True} + with self.lock: + again, self.given = self.given not in (0, attempt), attempt + return {"message": value, "restart": True} if again else {"message": value} + + def close(self): + if self.thread is not None and self.thread.is_alive(): + self.inbox.put(("abort", None, None)) + self.thread.join(timeout=10) + with contextlib.suppress(OSError): + self.sock.close() + shutil.rmtree(self.dir, ignore_errors=True) + + +def option(name, default): + return os.environ.get("NULLIUS_OPTION_" + name.upper()) or default + + +def dataset(): + """(the upstream's --domain, its --language).""" + ds = os.environ.get("NULLIUS_DATASET_ID") or "" + name = ds.removesuffix("-en") + return DOMAINS.get(name, name), "english" if ds.endswith("-en") else "chinese" + + +def tasks(): + if not _TASKS: + with open(os.environ["NULLIUS_DATASET"], encoding="utf-8") as f: + _TASKS.update((str(t["id"]), Task.model_validate(t)) for t in json.load(f)) + return _TASKS + + +def task(unit): + if unit not in tasks(): + raise ValueError(f"no task {unit!r} in {os.environ.get('NULLIUS_DATASET_ID')}") + return tasks()[unit] + + +def environment(t): + """The task's environment, built as the upstream's runner builds it (_run_task_internal).""" + domain, language = dataset() + _clear_global_state() + if "," in domain: + return get_cross_environment(domain, t.environment, language) + return registry.get_env_constructor(domain)(t.environment, language) + + +def use(role, r, **settings): + """A route as an entry of the upstream's model configuration, over its ``default``; its name there.""" + config.models[role] = config._deep_merge_dict(config.models["default"], { + "name": role, "model": r["model"], "base_url": r["base_url"].rstrip("/") + "/chat/completions", + "headers": {"Authorization": "Bearer " + r["key"]}, **settings}) + return role + + +def run_args(t, agent, simulator, judge, attempt, user_prefix=""): + """run_task's arguments. The seed is the one the upstream's run_tasks draws for the trial.""" + if not simulator: + raise ValueError("the user is played by a model, and none was given") + if not judge: + raise ValueError("the rubrics are graded by a judge model, and none was given") + domain, language = dataset() + r = random.Random(config.DEFAULT_SEED) + seed = [r.randint(0, 1000000) for _ in range(int(attempt or 1))][-1] + return dict(domain=domain, task=t, agent=agent, user=user_prefix + option("user", config.DEFAULT_USER_IMPLEMENTATION), + llm_user=use("nullius-user", simulator), llm_args_user={}, llm_evaluator=use("nullius-judge", judge), llm_args_evaluator={}, + max_steps=int(option("max_steps", config.DEFAULT_MAX_STEPS)), max_errors=int(option("max_errors", config.DEFAULT_MAX_ERRORS)), + evaluation_type=option("evaluation", config.DEFAULT_EVALUATION_TYPE), seed=seed, language=language) + + +def _state(unit): + if unit not in STATE: + raise ValueError(f"{unit} was not set up") + return STATE[unit] + + +def _leave(): + for st in STATE.values(): + if st.get("conversation") is not None: + st["conversation"].close() + STATE.clear() + _CURRENT[0] = None + + +def units(dataset, setup=None): + return {"units": list(tasks())} + + +def setup(unit, dir, attempt=None): + t = task(unit) + _leave() + env, language = environment(t), dataset()[1] + agent = LLMAgent(tools=env.get_tools(), domain_policy=env.get_policy(), time=env.tools.db.time, language=language) + c = Conversation([{"name": f["name"], "description": f["description"], "inputSchema": f["parameters"]} + for f in (x.openai_schema["function"] for x in env.get_tools())]) + STATE[unit] = {"conversation": c, "judge": None} + _CURRENT[0] = c + greeting = get_default_first_agent_message(language).content + return {"prompt": agent.system_prompt + HOW[language].format(greeting=greeting), + "mcp": [{"name": "vita", "server": "vita", "env": {"VITA_AT": c.at}}]} + + +def turn(unit, dir, transcript, simulator=None, judge=None, attempt=None): + st, t = _state(unit), task(unit) + c = st["conversation"] + if not transcript: + args = run_args(t, "nullius_acp", simulator, judge, attempt, "heard_") + st.update(judge=judge["model"], args=args) + c.start(llm_agent="nullius-acp", llm_args_agent={}, **args) + return c.next() + if c.thread is None: + raise ValueError("the conversation was not started: the first turn has an empty transcript") + if c.over is not None: + return {"done": True} + c.said((transcript[-1].get("text") or "") if transcript[-1].get("role") == "agent" else "") + return c.next() + + +def answer(unit, dir, setup, model, base_url, key, simulator=None, judge=None, attempt=None): + """The original: the upstream's own agent as ``model``, its --agent, --enable-think and model settings the run's options.""" + if setup != "original": + raise ValueError(f"VitaBench has no {setup} setup") + t = task(unit) + _leave() + args = run_args(t, option("upstream_agent", config.DEFAULT_AGENT_IMPLEMENTATION), simulator, judge, attempt) + think = option("enable_think", "off") == "on" + settings = {"temperature": float(option("agent_temperature", config.models["default"]["temperature"]))} + if option("agent_max_tokens", "default") != "default": + settings["max_tokens"] = int(option("agent_max_tokens", "")) + if think and option("agent_reasoning_effort", "default") != "default": + settings["reasoning_effort"] = option("agent_reasoning_effort", "") + agent = use("nullius-agent", {"model": model, "base_url": base_url, "key": key}, **settings) + run = run_task(llm_agent=agent, llm_args_agent={}, enable_think=think, **args) + STATE[unit] = {"conversation": None, "original": run, "judge": judge["model"], "args": args} + said = [m.content for m in run.messages if m.role == "assistant" and m.content] + return {"answer": said[-1] if said else ""} + + +def score(unit, dir, transcript, answer, judge=None, setup=None): + st, t = _state(unit), task(unit) + c = st["conversation"] + if c is None: + run = st["original"] + elif c.thread is None: # the null control: no message, as the upstream scores one + now = get_now() + run = SimulationRun(id=str(uuid.uuid4()), task_id=t.id, start_time=now, end_time=now, duration=0.0, + termination_reason=TerminationReason.INVALID_AGENT_MESSAGE, messages=[]) + domain, language = dataset() + run.reward_info = evaluate_simulation(run, t, config.DEFAULT_EVALUATION_TYPE, domain, language=language) + else: + if c.over is None: + raise ValueError("the conversation has not ended: the run's turns ran out before the upstream's limits") + c.thread.join() # the upstream's evaluator + if c.result is None: + raise ValueError(f"the upstream's run raised {type(c.error).__name__}: {c.error}") + run = c.result + info = run.reward_info + calls = [m for m in run.messages if isinstance(m, ToolMessage)] + detail = {"domain": dataset()[0], "language": dataset()[1], "termination": getattr(run.termination_reason, "value", run.termination_reason), + "tool_calls": len(calls), "tool_errors": sum(1 for m in calls if m.error), + "user_turns": sum(1 for m in run.messages if m.role == "user"), + "reward_info": info.model_dump(mode="json", exclude_none=True, exclude={"window_evaluations"})} + if info.nl_rubrics: + detail["rubrics"] = f"{sum(1 for r in info.nl_rubrics if r.met)}/{len(info.nl_rubrics)}" + detail["rubrics_missed"] = {r.nl_rubric or "": r.justification for r in info.nl_rubrics if not r.met} + if st.get("args"): + a = st["args"] + detail.update(judge=st["judge"], seed=a["seed"], max_steps=a["max_steps"], max_errors=a["max_errors"], evaluation=a["evaluation_type"], user=a["user"].removeprefix("heard_"), + **({"attempts": c.attempt} if c is not None else {"agent": option("upstream_agent", config.DEFAULT_AGENT_IMPLEMENTATION)})) + out = os.path.join(os.path.dirname(os.path.abspath(dir)), "verifier") + with contextlib.suppress(OSError): + os.makedirs(out, exist_ok=True) + with open(os.path.join(out, "simulation.json"), "w", encoding="utf-8") as f: + f.write(run.model_dump_json(indent=2)) + if c is not None: + c.close() + return {"reward": info.reward, "passed": info.reward == 1.0, "detail": detail} + + +if __name__ == "__main__": + serve({"units": units, "setup": setup, "turn": turn, "answer": answer, "score": score}, out=PROTOCOL) diff --git a/app/nullius/catalogue/benchmarks/vitabench/mcp_server.py b/app/nullius/catalogue/benchmarks/vitabench/mcp_server.py new file mode 100644 index 00000000..c4edbc84 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/vitabench/mcp_server.py @@ -0,0 +1,53 @@ +"""VitaBench's tools as a stdio MCP server. It executes nothing: the list of tools +(the upstream's own schemas) and each call go to the driver over the unit's socket +(``VITA_AT``), where the upstream's Orchestrator executes the call in its own +environment. Each request is one connection, a JSON line each way. A call is never +refused before the upstream sees it.""" +import json +import os +import socket + +import anyio +import mcp.types as types +from mcp.server.lowlevel import Server +from mcp.server.stdio import stdio_server + + +def ask(request): + with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as s: + s.connect(os.environ["VITA_AT"]) + f = s.makefile("rwb") + f.write((json.dumps(request) + "\n").encode()) + f.flush() + return json.loads(f.readline() or b"{}") + + +def call(name, arguments): + try: + got = ask({"name": name, "arguments": arguments}) + return str(got["text"]), bool(got["isError"]) + except (OSError, ValueError, KeyError) as e: + return f"Error: the benchmark could not be reached ({e})", True + + +def main(): + server = Server("vita") + + @server.list_tools() + async def list_tools(): + return [types.Tool(**t) for t in (await anyio.to_thread.run_sync(ask, {"list": True}))["tools"]] + + @server.call_tool(validate_input=False) + async def call_tool(name, arguments): + text, error = await anyio.to_thread.run_sync(call, name, {} if arguments is None else arguments) + return types.CallToolResult(content=[types.TextContent(type="text", text=text)], isError=error) + + async def serve(): + async with stdio_server() as (read, write): + await server.run(read, write, server.create_initialization_options()) + + anyio.run(serve) + + +if __name__ == "__main__": + main() diff --git a/app/nullius/catalogue/benchmarks/vitabench/proofs.json b/app/nullius/catalogue/benchmarks/vitabench/proofs.json new file mode 100644 index 00000000..d7640c33 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/vitabench/proofs.json @@ -0,0 +1,179 @@ +{ + "schema": "nullius.proofs/v1", + "kind": "benchmark", + "key": "vitabench", + "versions": { + "": { + "proven": { + "cross": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + }, + "delivery": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + }, + "instore": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + }, + "ota": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + }, + "cross-en": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + }, + "delivery-en": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + }, + "instore-en": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + }, + "ota-en": { + "units": { + "units": 100, + "passed": "100 ids, the same twice, unique" + }, + "nop": { + "passed": "0/100", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 100, + "options": { + "evaluation": "trajectory", + "user": "user_simulator", + "max_steps": "300", + "max_errors": "10" + }, + "judge": "meta/muse-spark-1.3-contributor" + } + } + } + } + } +} diff --git a/app/nullius/catalogue/benchmarks/vitabench/standard.json b/app/nullius/catalogue/benchmarks/vitabench/standard.json new file mode 100644 index 00000000..f375ae38 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/vitabench/standard.json @@ -0,0 +1,292 @@ +{ + "schema": "nullius.benchmark/v1", + "key": "vitabench", + "label": "VitaBench", + "summary": "Each task is a user's request to a life-service agent (food delivery, in-store services, travel), held by the upstream's own runner: a simulated user talks, the agent answers through the domain's tools, and a judge checks the conversation against the task's rubrics.", + "family": "agent", + "needs": [ + "agent.tools/v1", + "agent.conversation/v1" + ], + "upstream": { + "repository": "https://github.com/meituan-longcat/vitabench", + "tested": "742e240855bf8686a0842360749d5ea970ea3987", + "tested_date": "2026-11-25", + "license": "MIT" + }, + "driver": { + "command": [ + "{install}/.venv/bin/python", + "{here}/driver.py" + ], + "install": { + "python": "3.12", + "project": ".", + "pip": [ + "mcp==1.30.0" + ] + } + }, + "mcp_servers": { + "vita": { + "command": [ + "{install}/.venv/bin/python", + "{here}/mcp_server.py" + ], + "summary": "The task's tools: the upstream's own schemas; each call is executed by the upstream's Orchestrator." + } + }, + "datasets": [ + { + "id": "cross", + "label": "Cross-scenario", + "path": "data/vita/domains/cross_domain/tasks.json", + "sha256": "a7e782785f40667511a54562d613e2122de645a36b8661a5658c1740d34a5815", + "units": 100 + }, + { + "id": "delivery", + "label": "Delivery", + "path": "data/vita/domains/delivery/tasks.json", + "sha256": "22746ae23eb6dbed2ee6a5e3a0f476af60e8a43bab0ea2d3ead54f0ef3829f94", + "units": 100 + }, + { + "id": "instore", + "label": "In-store", + "path": "data/vita/domains/instore/tasks.json", + "sha256": "f92b9313e5476499d51b73a929cc901b7d87cd7c3315df56942d62c83aa34407", + "units": 100 + }, + { + "id": "ota", + "label": "OTA", + "path": "data/vita/domains/ota/tasks.json", + "sha256": "c9208c25accef24f4798bbd3f38403da081fdf48f3c7100dfc702aa7b379559e", + "units": 100 + }, + { + "id": "cross-en", + "label": "Cross-scenario (English)", + "path": "data/vita/domains/cross_domain/tasks_en.json", + "sha256": "54a396cd2e5de2a26da29b954341ad190806ed7f2e870dd96511e81a947c2865", + "units": 100 + }, + { + "id": "delivery-en", + "label": "Delivery (English)", + "path": "data/vita/domains/delivery/tasks_en.json", + "sha256": "4906517e50ad578cdfd52426b76e4604bfd207db4254643bbc150891240f5500", + "units": 100 + }, + { + "id": "instore-en", + "label": "In-store (English)", + "path": "data/vita/domains/instore/tasks_en.json", + "sha256": "8e3ac7b53501d211a5261ef4e8ad9eb46bd304bd6a77794dea860f107aebaa95", + "units": 100 + }, + { + "id": "ota-en", + "label": "OTA (English)", + "path": "data/vita/domains/ota/tasks_en.json", + "sha256": "f04ac51d84452557f4a68b6cc25f854edc88b0a501c85e48943859be7ab203b9", + "units": 100 + } + ], + "units": { + "noun": "task", + "nouns": "tasks" + }, + "simulator": { + "model": "gpt-4.1-2025-04-14", + "says": "the user: the upstream's own user simulator, with the paper's model, at temperature 0" + }, + "controls": { + "nop": { + "source": "nullius", + "from": "Nullius: no agent runs; the upstream's evaluator scores a run ended by an invalid agent message, without asking the judge." + } + }, + "score": { + "kind": "pass", + "says": "the upstream's evaluator: the judge reads the conversation in sliding windows of 10 messages, 2 of them overlapping, and marks each rubric; the task passes when every rubric is met. A conversation that reaches the step or error limit, or ends on an empty agent message, scores 0 without the judge.", + "judge": { + "model": "claude-3.7-sonnet", + "says": "the paper's evaluator, at temperature 0 and without thinking; the updated leaderboard does not name its evaluator" + } + }, + "limits": { + "turn_seconds": 7200, + "turns": 160, + "score_seconds": 3600, + "attempts": "Attempt N is the upstream's trial N-1: its recorded seed is the one run_tasks draws for it from 300. The upstream sends no seed to a model." + }, + "setups": { + "original": { + "summary": "The upstream's own agent (LLMAgent) as the run's model, in the upstream's own runner, user simulator and evaluator.", + "providers": { + "openrouter": "", + "custom": "" + }, + "comparable": [], + "turn_seconds": 7200, + "paper": "the VitaBench paper (arXiv 2509.26490)", + "reference_agent": "VitaBench LLM agent" + } + }, + "options": { + "evaluation": { + "summary": "How the judge reads the conversation.", + "setups": [ + "original", + "yours" + ], + "default": "trajectory", + "values": [ + "trajectory", + "trajectory_full_traj_rubric", + "trajectory_sliding_wo_rubric", + "trajectory_full_traj_wo_rubric" + ], + "names": { + "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" + }, + "about": { + "trajectory": "The upstream's default, the leaderboard's.", + "trajectory_full_traj_rubric": "The paper's ablation: every rubric in one judge call.", + "trajectory_sliding_wo_rubric": "The paper's ablation: the judge sees no rubrics.", + "trajectory_full_traj_wo_rubric": "The paper's ablation: one judge call without rubrics." + } + }, + "user": { + "label": "Simulated user", + "summary": "How the simulated user tells what it wants.", + "setups": [ + "original", + "yours" + ], + "default": "user_simulator", + "values": [ + "user_simulator", + "dummy_user" + ], + "names": { + "user_simulator": "Step by step", + "dummy_user": "All at once" + }, + "about": { + "user_simulator": "The upstream's default: reveals its requests over the conversation.", + "dummy_user": "The upstream's dummy_user: states every request in its first message, for the solo agent." + } + }, + "max_steps": { + "label": "Steps per conversation", + "summary": "The most messages and tool rounds of a conversation.", + "setups": [ + "original", + "yours" + ], + "default": "300", + "pattern": "[1-9][0-9]?|[12][0-9]{2}|300", + "example": "100", + "limit": true + }, + "max_errors": { + "label": "Tool errors per conversation", + "summary": "The most tool calls that fail before a conversation ends.", + "setups": [ + "original", + "yours" + ], + "default": "10", + "pattern": "[1-9][0-9]{0,3}", + "example": "5", + "limit": true + }, + "upstream_agent": { + "label": "Agent variant", + "summary": "Whether the benchmark's own agent talks with the user or works alone.", + "setups": [ + "original" + ], + "default": "llm_agent", + "values": [ + "llm_agent", + "llm_solo_agent" + ], + "names": { + "llm_agent": "Conversation", + "llm_solo_agent": "Solo" + }, + "about": { + "llm_agent": "The upstream's LLMAgent, the leaderboard's.", + "llm_solo_agent": "The paper's solo ablation: use it with the simulated user All at once. Its prompt is Chinese on every dataset." + } + }, + "enable_think": { + "label": "Thinking", + "summary": "Whether the benchmark's own agent model thinks (the upstream's --enable-think).", + "names": { + "off": "Off", + "on": "On" + }, + "setups": [ + "original" + ], + "default": "off", + "values": [ + "off", + "on" + ], + "about": { + "off": "The upstream's default: no reasoning effort sent, Claude's thinking disabled.", + "on": "Sends the reasoning effort below; Claude and DeepSeek replies keep their reasoning." + } + }, + "agent_reasoning_effort": { + "summary": "How much reasoning the benchmark's own agent model uses.", + "setups": [ + "original" + ], + "default": "default", + "values": [ + "default", + "minimal", + "low", + "medium", + "high", + "xhigh" + ], + "when": { + "enable_think": [ + "on" + ] + }, + "about": { + "default": "None sent: the provider's own." + } + }, + "agent_temperature": { + "summary": "The temperature of the benchmark's own agent model, the paper's 0 by default.", + "setups": [ + "original" + ], + "default": "0.0", + "pattern": "[0-9]+(\\.[0-9]+)?", + "example": "0.7" + }, + "agent_max_tokens": { + "summary": "The longest reply of the benchmark's own agent model. The default sends no limit.", + "setups": [ + "original" + ], + "default": "default", + "pattern": "default|[1-9][0-9]{0,6}", + "example": "8192" + } + } +} diff --git a/app/nullius/catalogue/benchmarks/vitabench/upstream-settings.json b/app/nullius/catalogue/benchmarks/vitabench/upstream-settings.json new file mode 100644 index 00000000..b1def4b4 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/vitabench/upstream-settings.json @@ -0,0 +1,275 @@ +[ + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--domain delivery,instore,ota", + "values": "domains, joined by commas to merge them", + "default": "delivery,instore,ota", + "nullius": "dataset:cross" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--domain delivery", + "values": "a registered domain", + "default": "delivery,instore,ota", + "nullius": "dataset:delivery" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--domain instore", + "values": "a registered domain", + "default": "delivery,instore,ota", + "nullius": "dataset:instore" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--domain ota", + "values": "a registered domain", + "default": "delivery,instore,ota", + "nullius": "dataset:ota" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--language english, domain cross", + "values": "chinese, english", + "default": "chinese", + "nullius": "dataset:cross-en" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--language english, domain delivery", + "values": "chinese, english", + "default": "chinese", + "nullius": "dataset:delivery-en" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--language english, domain instore", + "values": "chinese, english", + "default": "chinese", + "nullius": "dataset:instore-en" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--language english, domain ota", + "values": "chinese, english", + "default": "chinese", + "nullius": "dataset:ota-en" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--domain, another combination of domains", + "values": "any two domains", + "default": "delivery,instore,ota", + "nullius": "not offered - the cross-scenario tasks are written for all three domains, which the paper runs" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--task-set-name", + "values": "a registered task set", + "default": "the domain's", + "nullius": "fixed:the domain's - the upstream's default" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--task-ids, --num-tasks", + "values": "ids, a number", + "default": "every task", + "nullius": "fixed:every task - a run's units and limit choose fewer" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--num-trials", + "values": "an integer from 1", + "default": "1", + "nullius": "fixed:1 trial per attempt - a run's --attempts K runs each task K times" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--agent", + "values": "llm_agent, llm_solo_agent", + "default": "llm_agent", + "nullius": "option:upstream_agent" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--agent-llm", + "values": "a model of models.yaml", + "default": "gpt-4.1", + "nullius": "setup:original" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--agent-llm-args, --user-llm-args, --evaluator-llm-args", + "values": "a dict", + "default": "the model's entry of models.yaml", + "nullius": "not offered - the CLI cannot parse a dict, and models.yaml's entry overrides them in generate" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--user", + "values": "user_simulator, dummy_user", + "default": "user_simulator", + "nullius": "option:user" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--user-llm", + "values": "a model of models.yaml", + "default": "gpt-4.1", + "nullius": "fixed:gpt-4.1-2025-04-14 - the paper's; a run's simulator model replaces it" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--evaluator-llm", + "values": "a model of models.yaml", + "default": "anthropic.claude-3.7-sonnet", + "nullius": "fixed:claude-3.7-sonnet - the upstream's default; a run's judge model replaces it" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--evaluation-type", + "values": "trajectory, trajectory_full_traj_rubric, trajectory_sliding_wo_rubric, trajectory_full_traj_wo_rubric", + "default": "trajectory", + "nullius": "option:evaluation" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--enable-think", + "values": "a flag", + "default": "off", + "nullius": "option:enable_think" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--max-steps", + "values": "an integer", + "default": "300", + "nullius": "option:max_steps" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--max-errors", + "values": "an integer", + "default": "10", + "nullius": "option:max_errors" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--seed", + "values": "an integer", + "default": "300", + "nullius": "fixed:300 - the upstream's default; it is recorded and sent to no model" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--max-concurrency", + "values": "an integer", + "default": "1", + "nullius": "fixed:1 - each task is a run of its own; the run's concurrency runs several" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--save-to, --csv-output, --log-level", + "values": "paths, a level", + "default": "a file per run, none, DEBUG", + "nullius": "fixed:the trial's verifier/simulation.json, none, INFO - output only" + }, + { + "entry": "vita run (src/vita/cli.py)", + "setting": "--re-evaluate-file, --re-run", + "values": "a results file, a flag", + "default": "none", + "nullius": "not offered - re-scores a saved run; changes no run" + }, + { + "entry": "environment", + "setting": "VITA_MODEL_CONFIG_PATH", + "values": "a path", + "default": "src/vita/models.yaml", + "nullius": "fixed:the package's models.yaml - the run's three models are added to its entries, over its default one" + }, + { + "entry": "models.yaml", + "setting": "base_url, headers", + "values": "an address, headers", + "default": "none", + "nullius": "fixed:the run's relay - every model call goes through it" + }, + { + "entry": "models.yaml", + "setting": "temperature", + "values": "a number", + "default": "0.0", + "nullius": "option:agent_temperature" + }, + { + "entry": "models.yaml", + "setting": "temperature of the user and the evaluator", + "values": "a number", + "default": "0.0", + "nullius": "fixed:0.0 - the upstream's default entry, the paper's" + }, + { + "entry": "models.yaml", + "setting": "max_tokens, max_completion_tokens", + "values": "an integer", + "default": "8192 to 32768 per model, none in the default entry", + "nullius": "option:agent_max_tokens" + }, + { + "entry": "models.yaml", + "setting": "max_tokens of the user and the evaluator", + "values": "an integer", + "default": "8192 to 32768 per model, none in the default entry", + "nullius": "fixed:none sent - the upstream's default entry" + }, + { + "entry": "models.yaml", + "setting": "max_input_tokens", + "values": "an integer", + "default": "32768", + "nullius": "fixed:32768 - the upstream's default; it is sent and read by no code" + }, + { + "entry": "models.yaml", + "setting": "reasoning_effort", + "values": "a level", + "default": "none", + "nullius": "option:agent_reasoning_effort" + }, + { + "entry": "models.yaml", + "setting": "thinking.budget_tokens", + "values": "an integer", + "default": "16384 for claude-3.7-sonnet", + "nullius": "not offered - a Claude field the OpenAI-compatible route does not take" + }, + { + "entry": "models.yaml", + "setting": "cost_1m_token_dollar", + "values": "prices", + "default": "2.00 and 8.00 for gpt-4.1", + "nullius": "fixed:none - the relay counts the cost" + }, + { + "entry": "hard-coded", + "setting": "run_task max_retries", + "values": "an integer", + "default": "3", + "nullius": "fixed:3 - the upstream's" + }, + { + "entry": "hard-coded", + "setting": "evaluator window_size, overlap", + "values": "integers", + "default": "10, 2", + "nullius": "fixed:10 and 2 - the upstream's, no flag sets them" + }, + { + "entry": "hard-coded", + "setting": "neutral user (the paper's ablation)", + "values": "a user without behavioral attributes", + "default": "none", + "nullius": "not offered - its code is not published" + } +] diff --git a/app/nullius/standard/pages/recipe.py b/app/nullius/standard/pages/recipe.py index 84679ca3..caa680c9 100644 --- a/app/nullius/standard/pages/recipe.py +++ b/app/nullius/standard/pages/recipe.py @@ -175,7 +175,7 @@ def _bench_page(b: dict) -> dict: "controls": controls, # One Original procedure, with separate reference-participant and paper-model metadata. "setups": [{"key": k, "label": definitions.setup_label(b, k), "summary": x["summary"], - "reference_agent": x.get("reference_agent", ""), "turn_seconds": x.get("turn_seconds"), + "reference_agent": x.get("reference_agent", ""), "turn_seconds": x.get("turn_seconds"), "gone": x.get("comparable") == [], "comparable": k == "original" and b["setups"]["original"].get("comparable", True) not in (False, []), "units": (b["setups"]["original"].get("units") or b.get("units") or {}), **({"models": definitions.paper_models(x), "default": x["default"], "providers": list(x["providers"]), "sent": {p: {m: pre + (x.get("served_as") or {}).get(m, m) for m in definitions.paper_models(x)} @@ -584,7 +584,9 @@ def add(step, message, shown=False, field=None, unset=False): orig = (b.get("setups") or {}).get("original") or {} official = {"judge": ((b.get("score") or {}).get("judge") or {}).get("model", ""), "simulator": (b.get("simulator") or {}).get("model", "")} fixed = {**official, **{k: lb[k] for k in ("judge", "simulator") if lb.get(k)}} - if model_choice == "paper" and needs_model and not orig.get("models") and not any(official.values()): + if model_choice == "paper" and needs_model and orig.get("comparable") == []: + add("model", "Paper models unavailable; choose Any of your choice.") + elif model_choice == "paper" and needs_model and not orig.get("models") and not any(official.values()): add("model", "No paper models are listed for this benchmark; choose Any of your choice.") elif model_choice == "paper" and needs_model and orig.get("models"): if recipe.get("model") not in definitions.paper_models(orig): diff --git a/app/static/builder/command-builder-core.js b/app/static/builder/command-builder-core.js index d3fa7ce7..3ccfb6b2 100644 --- a/app/static/builder/command-builder-core.js +++ b/app/static/builder/command-builder-core.js @@ -78,7 +78,9 @@ } // Like the paper keeps what the paper fixed: its models when it lists them, its judge and its user simulator. const paperListed = r => !!(paperModels(r).models || []).length; - const paperOffered = r => { const b = standardBench(r) || {}; return paperListed(r) || !!(b.judge || b.simulator); }; + // none of what the paper ran can run any more (comparable: []): a retired model, judge or user simulator + const paperGone = r => !!(((standardBench(r) || {}).setups || []).find(x => x.key === 'original') || {}).gone; + const paperOffered = r => { const b = standardBench(r) || {}; return !paperGone(r) && (paperListed(r) || !!(b.judge || b.simulator)); }; // Like the leaderboard: what the upstream's leaderboard fixes besides the ranked model, when the benchmark declares it. const leaderboard = r => (standardBench(r) || {}).leaderboard || null; // Choose how the model is chosen: paper or leaderboard keep their fixed models (the leaderboard also its options and diff --git a/app/static/catalogue/marks.svg b/app/static/catalogue/marks.svg index dce84e25..3bfe63fb 100644 --- a/app/static/catalogue/marks.svg +++ b/app/static/catalogue/marks.svg @@ -35,4 +35,8 @@ + + + + diff --git a/app/tests/test_catalog.py b/app/tests/test_catalog.py index fd792c27..500c4a45 100644 --- a/app/tests/test_catalog.py +++ b/app/tests/test_catalog.py @@ -33,7 +33,7 @@ def test_shipped_catalogue_is_consistent(self): self.assertEqual(titles, sorted(titles, key=catalog.sort_key)) # what has a usable route is listed, whoever made it and whether or not it has run listed = {x.key for x in cat.listed_benchmarks} - self.assertEqual(sorted(listed), ["gaia", "gsm8k", "humaneval", "locomo", "longmemeval", "open-telco", "osworld1", "osworld2", "swe-bench-verified", "tau3-bench", "terminal-bench"]) + self.assertEqual(sorted(listed), ["gaia", "gsm8k", "humaneval", "locomo", "longmemeval", "open-telco", "osworld1", "osworld2", "swe-bench-verified", "tau3-bench", "terminal-bench", "vitabench"]) self.assertEqual((cat.benchmark("longmemeval").origin, cat.benchmark("longmemeval").label), ("official", "Official")) self.assertEqual(cat.benchmark("tau3-bench").label, "Official") # τ³ files as "t3…", before "te…": a reader looking under T finds it diff --git a/app/tests/test_standard_setups.py b/app/tests/test_standard_setups.py index 5a724c2d..c2dc6078 100644 --- a/app/tests/test_standard_setups.py +++ b/app/tests/test_standard_setups.py @@ -350,6 +350,16 @@ def test_like_the_paper_without_paper_models_leaves_the_model_free_and_keeps_the gsm = self.compiled(benchmark="gsm8k", datasets=["test"], others=["original"], provider="openai", model="m", model_choice="paper") self.assertTrue(gsm["errors"]) + def test_a_retired_judge_refuses_like_the_paper_and_leaves_any_model(self): + vita = dict(benchmark="vitabench", datasets=["cross"], others=["original"], provider="openrouter", model="vendor/m") + said = " ".join(e["message"] for e in self.compiled(**vita, model_choice="paper")["errors"]) + self.assertIn("Paper models unavailable", said) + out = self.compiled(**vita, model_choice="any", judge_model="vendor/judge") + self.assertEqual(out["errors"], []) + self.assertIn("run vitabench original --model vendor/m", out["script"]) + o, _ = definitions.setup(definitions.get("benchmark", "vitabench"), "original", "vendor/m", "openrouter") + self.assertEqual((o["sent"], o["comparable"]), ("vendor/m", False)) + def test_like_the_leaderboard_runs_its_user_simulator_options_and_attempts(self): tau = dict(benchmark="tau3-bench", datasets=["airline"], others=["original"], provider="openai", model="their-model", model_choice="leaderboard") diff --git a/app/tests/test_standard_vitabench.py b/app/tests/test_standard_vitabench.py new file mode 100644 index 00000000..9295b03f --- /dev/null +++ b/app/tests/test_standard_vitabench.py @@ -0,0 +1,195 @@ +"""VitaBench in the standard runs its upstream: its runner, user simulator, tools and +evaluator. The simulated user and the judge are a local fake endpoint: no key, no +network. Skipped without the upstream and the driver's environment under +``STANDARD_DIR`` (``cli prove vitabench`` installs both).""" +from __future__ import annotations + +import json +import os +import re +import shutil +import subprocess +import tempfile +import threading +import unittest +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer + +from nullius.standard.contract import definitions +from nullius.standard.protocols import jsonl +from nullius.standard.requirements import install + +APP = os.path.dirname(os.path.dirname(os.path.abspath(definitions.CATALOGUE))) # what a driver imports +BENCH = definitions.get("benchmark", "vitabench") + + +def _ready(): + if not (install.ready(install.upstream_dir(BENCH)) and install.ready(install.driver_dir(BENCH))): + return "VitaBench's upstream and driver environment are not installed (cli prove vitabench)" + return "" + + +class Fake(BaseHTTPRequestHandler): + """The simulated user, its lines from a script, and the judge, which finds every rubric met or cannot answer.""" + lines, asked, judge_ok, missed = [], [], True, None + + def log_message(self, *a): + pass + + def do_POST(self): + body = json.loads(self.rfile.read(int(self.headers["Content-Length"]))) + Fake.asked.append(body) + said = json.dumps(body["messages"]) + if "" 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 - + - - - - - - - - - - - - - + + + + + + + + + + + + +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
codex@2.2.2✓✓✓✓✓✓✓✓✓
codex@0.16.0✓✓✓✓✗✗✓✓✓
digitalmate@0.1.13✗✓✗✓✗✗✗✗✗
digitalmate@0.1.13-fixes✓✓✓✓✗✗✓✓✓
goose✓✓✓✓✗✗✓✓✓
jiuwenswarm@0.2.7✗✓✓✓✗✗✓✓✓
jiuwenswarm@0.2.8✓✓✓✓✗✗✓✓✓
jiuwenswarm@0.2.9✗✓✓✓✗✗✓✓✓
mini-swe-agent✗✗✗✗✗✗✓✗✗
opencode✓✓✓✓✗✗✓✓✓
reference✗✓✓✓✗✗✓✓✓
swe-agent✗✗✗✗✗✗✓✗✗
terminus-2✗✗✗✗✗✗✗✗✓
codex@2.2.2✓✓✓✓✓✓✓✓✓✓
codex@0.16.0✓✓✓✓✗✗✓✓✓✓
digitalmate@0.1.13✗✓✗✓✗✗✗✗✗✗
digitalmate@0.1.13-fixes✓✓✓✓✗✗✓✓✓✓
goose✓✓✓✓✗✗✓✓✓✓
jiuwenswarm@0.2.7✗✓✓✓✗✗✓✓✓✓
jiuwenswarm@0.2.8✓✓✓✓✗✗✓✓✓✓
jiuwenswarm@0.2.9✗✓✓✓✗✗✓✓✓✓
mini-swe-agent✗✗✗✗✗✗✓✗✗✗
opencode✓✓✓✓✗✗✓✓✓✓
reference✗✓✓✓✗✗✓✓✓✓
swe-agent✗✗✗✗✗✗✓✗✗✗
terminus-2✗✗✗✗✗✗✗✗✓✗
- ✗: 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 - + - - + +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
codex@2.2.2✓✓✓✓✓✓✓✓✓
codex@0.16.0✓✓✓✓✗✗✓✓✓
codex@2.2.2✓✓✓✓✓✓✓✓✓✓
codex@0.16.0✓✓✓✓✗✗✓✓✓✓
- ✗: 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 - + - - + +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
digitalmate@0.1.13✗✓✗✓✗✗✗✗✗
digitalmate@0.1.13-fixes✓✓✓✓✗✗✓✓✓
digitalmate@0.1.13✗✓✗✓✗✗✗✗✗✗
digitalmate@0.1.13-fixes✓✓✓✓✗✗✓✓✓✓
- ✗: 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 - + - +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
goose✓✓✓✓✗✗✓✓✓
goose✓✓✓✓✗✗✓✓✓✓
- ✗: 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 - + - - - + + +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
jiuwenswarm@0.2.7✗✓✓✓✗✗✓✓✓
jiuwenswarm@0.2.8✓✓✓✓✗✗✓✓✓
jiuwenswarm@0.2.9✗✓✓✓✗✗✓✓✓
jiuwenswarm@0.2.7✗✓✓✓✗✗✓✓✓✓
jiuwenswarm@0.2.8✓✓✓✓✗✗✓✓✓✓
jiuwenswarm@0.2.9✗✓✓✓✗✗✓✓✓✓
- ✗: 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 - + - +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
mini-swe-agent✗✗✗✗✗✗✓✗✗
mini-swe-agent✗✗✗✗✗✗✓✗✗✗
- ✗: 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 - + - +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
opencode✓✓✓✓✗✗✓✓✓
opencode✓✓✓✓✗✗✓✓✓✓
- ✗: 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 - + - +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
swe-agent✗✗✗✗✗✗✓✗✗
swe-agent✗✗✗✗✗✗✓✗✗✗
- ✗: 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 - + - +
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace files
GAIAGSM8KHumanEvalOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0VitaBench
One task, Workspace files, SearchOne taskWorkspace filesOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesMCP tools, Conversation
terminus-2✗✗✗✗✗✗✗✗✓
terminus-2✗✗✗✗✗✗✗✗✓✗
- ✗: 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-verifiedSoftware engineering: fix a real GitHub issue so the failing tests pass.Coding✓✓500Official τ³-bench
tau3-benchCustomer service with domain tools and a simulated user: airline, retail, telecom, banking.Customer service✓✓375Official Terminal-Bench 2.0
terminal-benchReal terminal tasks in a container: build, configure, debug.Terminal✓✓89Official +VitaBench
vitabenchFood delivery, in-store and travel requests from a simulated user, with up to 66 tools.Life services✓–400Official ### How each runs @@ -41,6 +42,7 @@ Every benchmark in the catalogue: where it runs, what it needs, the ways it runs SWE-bench Verifiedagent.workspace/v1Nulliusthe authors✓✓✓ τ³-benchagent.tools/v1, agent.conversation/v1NulliusNullius✓✓✓ Terminal-Bench 2.0agent.workspace/v1Nulliusthe authors✓✓✓ +VitaBenchagent.tools/v1, agent.conversation/v1Nullius–✓✓✓ - 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. + + + + + + + + + + +
Keyvitabench
CategoryLife services
OriginOfficial
Runs onNullius
Tasks400
PaperVitaBench: Benchmarking LLM Agents with Versatile Interactive Tasks in Real-world Applications, arXiv · 2025
Needs, ports provenagent.tools/v1, agent.conversation/v1
+ +## 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) |