diff --git a/app/nullius/catalogue/benchmarks/claw-eval/benchmark.json b/app/nullius/catalogue/benchmarks/claw-eval/benchmark.json new file mode 100644 index 000000000..ace3c8be4 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/claw-eval/benchmark.json @@ -0,0 +1,94 @@ +{ + "key": "claw-eval", + "title": "Claw-Eval", + "category": "General assistance", + "domain": "Personal-assistant tasks over mock services, the web, media and a sandbox.", + "scoring": "Task graders", + "harness": [ + "standard" + ], + "origin": "official", + "good_to_know": [ + "Each task's grader reads the whole trajectory, the services' audit logs and the sandbox's files. Passed at a task score of 0.75 or more.", + "The leaderboard's Pass^3 counts a task when all 3 attempts pass: run 3 attempts per task.", + "The judge is gemini-3-flash for General and Multimodal, claude-opus-4.6 for Multi-turn, whose user claude-opus-4.6 plays. Keep them fixed when comparing.", + "63 tasks (35 Multi-turn, 25 General, 3 Multimodal) search the live web: add SERP_DEV_KEY in Settings, Custom keys.", + "General and Multimodal download a 2.9 GB archive once.", + "Two Multimodal tasks (M029, M051) are graded with ffmpeg on the machine: install it first." + ], + "upstream_limitations": [ + "No release tag: pinned to main on 2026-08-04.", + "At this commit a judge whose name contains gemini is called at a Gemini URL that OpenRouter does not serve.", + "Its judge, simulated user and own agent call only OpenAI-style chat completions, never Anthropic: give them OpenRouter, OpenAI or an OpenAI-compatible endpoint.", + "No reference control: the tasks ship with no runnable solution.", + "The sandbox image's packages are not pinned.", + "While a task runs, its mock services listen on all of the machine's network interfaces, and its sandbox has internet access." + ], + "limitations": [ + "The judge is asked on the upstream's chat completions path under a neutral name, which Nullius's relay replaces with the judge's own.", + "The sandbox image is built from the upstream's Dockerfile with its China mirrors replaced by the default servers.", + "Another agent replaces the model in the upstream's loop: it gets the upstream's prompt and tools, plus a paragraph on where its tools are. Each tool call counts as one of the task's turns, parallel ones too.", + "Another agent gets a task's attached images from the sandbox, never in its first message.", + "Original runs on the local backend only: its driver starts the sandbox with the machine's Docker." + ], + "datasets": [ + { + "key": "general", + "title": "General", + "tasks": 161, + "official": "https://huggingface.co/datasets/claw-eval/Claw-Eval", + "source": "GitHub and Hugging Face", + "registry": "", + "hub": "", + "verifier": "Each task's own grader at the pinned commit.", + "notes": "Published split." + }, + { + "key": "multimodal", + "title": "Multimodal", + "tasks": 101, + "official": "https://huggingface.co/datasets/claw-eval/Claw-Eval", + "source": "GitHub and Hugging Face", + "registry": "", + "hub": "", + "verifier": "Each task's own grader at the pinned commit.", + "notes": "Published split." + }, + { + "key": "multi_turn", + "title": "Multi-turn", + "tasks": 38, + "official": "https://huggingface.co/datasets/claw-eval/Claw-Eval", + "source": "GitHub and Hugging Face", + "registry": "", + "hub": "", + "verifier": "Each task's own grader at the pinned commit.", + "notes": "Published split." + } + ], + "citation": "@misc{ye2026clawevaltrustworthyevaluationautonomous,\n title={Claw-Eval: Towards Trustworthy Evaluation of Autonomous Agents}, \n author={Bowen Ye and Rang Li and Qibin Yang and Yuanxin Liu and Linli Yao and Hanglong Lv and Zhihui Xie and Chenxin An and Lei Li and Lingpeng Kong and Qi Liu and Zhifang Sui and Tong Yang},\n year={2026},\n eprint={2604.06132},\n archivePrefix={arXiv},\n primaryClass={cs.AI},\n url={https://arxiv.org/abs/2604.06132}, \n}", + "citation_source": "https://github.com/claw-eval/claw-eval/blob/5680b8b11ff2ee5dd2b07b89086a29a5c5c984d7/README.md", + "task_count": 300, + "evidence": [ + { + "label": "Task score", + "path": "scores.task_score" + }, + { + "label": "Completion", + "path": "scores.completion" + }, + { + "label": "Robustness", + "path": "scores.robustness" + }, + { + "label": "Safety", + "path": "scores.safety" + }, + { + "label": "Turns", + "path": "turns" + } + ] +} diff --git a/app/nullius/catalogue/benchmarks/claw-eval/driver.py b/app/nullius/catalogue/benchmarks/claw-eval/driver.py new file mode 100644 index 000000000..ecd34136a --- /dev/null +++ b/app/nullius/catalogue/benchmarks/claw-eval/driver.py @@ -0,0 +1,524 @@ +"""Claw-Eval's driver for the Nullius standard (JSON lines on stdin and stdout). + +Everything the authors decide is their code at the pinned commit, imported from ``$NULLIUS_UPSTREAM``: + +units - the published splits, read from the tasks' own files: ``multi_turn`` has the simulated user, + ``multimodal`` its tag, ``general`` the rest +setup - for an agent: the task's mock services (``ServiceManager``) and sandbox container + (``SandboxRunner``) are started, its files injected, and the prompt is the upstream's + ``build_system_prompt``. The tools are served by ``mcp_server.py`` +turn - the upstream's ``run_task`` runs in a thread with ``AcpProvider`` in place of its model + provider: each MCP call and each final message is the model's next reply, so the upstream + dispatches the tools, counts turns, keeps the time, asks its simulated user and writes its trace +score - the upstream's steps after the loop, in ``_run_single_task``'s order: grader files injected, + the environment snapshot, local grader files, the task's grader with ``LLMJudge`` +answer - Original: the upstream's ``_run_single_task`` whole, one trial + +Ours, glue only: ``AcpProvider``, the socket the MCP server calls, a port range per unit, the sandbox +image's build (the upstream's Dockerfile without its mirror addresses), the fixtures' unpacking, and +one name: the judge and the simulated user are asked by a neutral model name, which the relay replaces. +With a name holding "gemini" the pinned judge calls a Gemini URL that OpenRouter and the relay do not +serve; any other name takes the upstream's own chat completions path. +""" +import base64 +import contextlib +import fcntl +import hashlib +import json +import os +import queue +import re +import shutil +import signal +import socket +import subprocess +import sys +import tarfile +import tempfile +import threading +import uuid +from pathlib import Path + +PROTOCOL, sys.stdout = sys.stdout, sys.stderr # stdout is the protocol's: what the upstream prints goes to the log +UP = Path(os.environ["NULLIUS_UPSTREAM"]) +sys.path.insert(0, str(UP / "src")) +os.chdir(UP) # as its commands are run: from the repository's root +os.environ.setdefault("no_proxy", "localhost,127.0.0.1") # as claw_eval.cli sets them +os.environ.setdefault("NO_PROXY", "localhost,127.0.0.1") + +import docker +import yaml + +from claw_eval import cli +from claw_eval.config import load_config +from claw_eval.graders.registry import get_grader +from claw_eval.models.content import TextBlock, ToolUseBlock +from claw_eval.models.message import Message +from claw_eval.models.scoring import compute_task_score, is_pass +from claw_eval.models.task import TaskDefinition +from claw_eval.models.trace import TokenUsage +from claw_eval.runner.loop import run_task +from claw_eval.runner.sandbox_runner import SandboxRunner +from claw_eval.runner.sandbox_tools import SANDBOX_TOOLS +from claw_eval.runner.services import ServiceManager +from claw_eval.runner.system_prompt import build_system_prompt +from claw_eval.runner.user_agent import UserAgent +from claw_eval.trace.reader import load_trace + +from nullius.standard.protocols.jsonl import serve + +CONFIGS = {"general": "config_general.yaml", "multimodal": "config_multimodal.yaml", "multi_turn": "config_user_agent.yaml"} +RELAYED = "relayed" # the model name the judge and the simulated user are asked by: the relay sends the route's own +STRIDE, FIRST, SLOTS = 50, 5000, 300 # cmd_batch's ports between two workers; ours start well above its own +WEB = ("web_real", "web_real_injection") +HOW = """ + +How this session works: your tools are those of the MCP server named claw-eval, given to this session. They act in the \ +task's own sandbox, whose files are under /workspace; the folder you were started in is empty and is not looked at. \ +Your final message in each turn is sent to the user. + +The user says:""" +ENDED = "Error: the conversation has ended; this call was not made." +WAIT = 590 # a turn waits less than the run waits for it +STATE = {} + + +# -- the tasks, their files, the sandbox's image ----------------------------------------------------------- +def dataset(): + return os.environ.get("NULLIUS_DATASET_ID") or "general" + + +def task_dir(unit): + d = UP / "tasks" / unit + if d.parent != UP / "tasks" or not (d / "task.yaml").is_file(): + raise ValueError(f"no task {unit!r}") + return d + + +def units(dataset, setup=None): + out = [] + for f in sorted((UP / "tasks").glob("*/task.yaml")): + t = TaskDefinition.from_yaml(f) + split = "multi_turn" if t.user_agent.enabled else "multimodal" if "multimodal" in t.tags else "general" + if split == dataset: + out.append(f.parent.name) + return {"units": out} + + +@contextlib.contextmanager +def locked(name): + with open(UP / (name + ".lock"), "w") as f: + fcntl.flock(f, fcntl.LOCK_EX) + yield + + +def fixtures(): + """The files the repository leaves out, from the published archive: never over one it has.""" + archive = os.environ.get("NULLIUS_DATASET") + if not archive: + return + with locked(".nullius-fixtures"): + done = UP / ".nullius-fixtures" + if done.exists(): + return + with tarfile.open(archive, "r|gz") as tar: + for m in tar: + parts = Path(m.name).parts + to = UP / "tasks" / Path(*parts) + if m.isfile() and len(parts) > 2 and parts[1] == "fixtures" and ".." not in parts and not to.exists(): + m.mode = 0o644 + tar.extract(m, UP / "tasks", filter="data") + done.touch() + + +def image(): + """The upstream's sandbox image, built once from its Dockerfile.agent: the same steps, from the default servers.""" + text = (UP / "Dockerfile.agent").read_text().replace("docker.m.daocloud.io", "docker.io").replace("mirrors.ustc.edu.cn", "deb.debian.org") + text = re.sub(r"-i https://pypi\.tuna\.tsinghua\.edu\.cn/simple|--trusted-host pypi\.tuna\.tsinghua\.edu\.cn", "", text) + h = hashlib.sha256(text.encode()) + for f in [UP / "requirements-sandbox-server.txt", *sorted((UP / "src/claw_eval/sandbox").glob("*.py"))]: + h.update(f.read_bytes()) + tag = "nullius/claw-eval-sandbox:" + h.hexdigest()[:12] + with locked(".nullius-image"): + if subprocess.run(["docker", "image", "inspect", tag], capture_output=True).returncode: + subprocess.run(["docker", "build", "-f", "-", "-t", tag, "."], cwd=UP, check=True, stdout=sys.stderr, input=text.encode()) + return tag + + +def asks_web(t): + return any(s.name in WEB for s in t.services) + + +# -- one unit's ports, configuration and upstream parts ---------------------------------------------------- +class EnvironmentSetupError(Exception): + pass + + +class Slot: + """A port offset of this machine's, held while the unit runs. A container an earlier run left in it is removed.""" + + def __init__(self, ports): + folder = Path(tempfile.gettempdir()) / f"nullius-claw-eval-{os.getuid()}" + folder.mkdir(mode=0o700, exist_ok=True) + for i in range(SLOTS): + self.f = open(folder / str(i), "w") + self.offset = FIRST + i * STRIDE + with contextlib.suppress(OSError): + fcntl.flock(self.f, fcntl.LOCK_EX | fcntl.LOCK_NB) + if all(free(p + self.offset) for p in ports) and self.cleared(): + break + self.f.close() + else: + raise RuntimeError("no free port range for the task's mock services") + + def cleared(self): + """Whether no container is left in this range by an earlier run: one found is removed.""" + left = [c for c in docker.from_env().containers.list(all=True, filters={"label": "app=claw-eval"}) + if c.name.endswith(f"-p{self.offset}")] + for c in left: + with contextlib.suppress(docker.errors.APIError): + c.remove(force=True) + return not left + + def close(self): + self.f.close() + + +def free(port): + with socket.socket() as s: + s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + try: + s.bind(("0.0.0.0", port)) + return True + except OSError: + return False + + +def option(name, default): + return os.environ.get("NULLIUS_OPTION_" + name.upper()) or default + + +def reasoning_field(): + """The field that carries earlier reasoning back: the option's, or what the upstream infers from its base URL + (OpenRouter ``reasoning``, else ``reasoning_content``), read from the run's provider since that URL is the relay's.""" + chosen = option("reasoning_field", "provider") + if chosen != "provider": + return chosen + return "reasoning" if os.environ.get("NULLIUS_PROVIDER") == "openrouter" else "reasoning_content" + + +def config(where, judge, simulator=None, model=None): + """The split's published configuration with the run's routes in it, written where ``load_config`` reads it.""" + raw = yaml.safe_load((UP / CONFIGS[dataset()]).read_text()) + raw["sandbox"] = {"image": image()} + raw["judge"].update(api_key=judge["key"], base_url=judge["base_url"], model_id=RELAYED) + raw["user_agent_model"] = ({"api_key": simulator["key"], "base_url": simulator["base_url"], "model_id": RELAYED} + if simulator else {}) + m = raw["model"] + if model: + temperature, effort = option("temperature", "0.0"), option("reasoning_effort", "high") + m.update(api_key=model["key"], base_url=model["base_url"], model_id=model["model"], + reasoning_field=reasoning_field(), + input_modalities=option("input_modalities", "text").split("_"), + temperature=None if temperature == "default" else float(temperature)) + if effort == "default": + m.pop("extra_body") + else: + m["extra_body"]["reasoning"]["effort"] = effort + else: + m.pop("api_key") + path = os.path.join(where, "config.json") # JSON is YAML; it holds the relay's word, never a key + with open(os.open(path, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600), "w") as f: + json.dump(raw, f) + return path + + +class AcpProvider: + """The agent where the upstream's loop asks its model: ``chat`` answers the calls waiting with what the loop + found, or hands the user's message out, and returns the agent's next move.""" + + def __init__(self, unit, model_id): + self.u, self.model_id = unit, model_id + + def chat(self, messages, tools=None): + u = self.u + last = max((i for i, m in enumerate(messages) if m.role == "assistant"), default=0) + tail = [b for m in messages[last + 1:] for b in m.content] + if u.pending: + result = next(b for b in tail if b.type == "tool_result") + reply, u.pending = u.pending, None + reply("\n".join(b.text for b in result.content), result.is_error, + [{"data": b.data, "mime_type": b.mime_type} for b in tail if b.type == "image"]) + elif not u.silent: + u.out.put("\n".join(b.text for b in tail if b.type == "text")) + if u.silent: + return Message(role="assistant", content=[]), TokenUsage() + what, value = u.inbox.get() + u.steps += 1 + u.progress() + if what == "call": + name, arguments, u.pending = value + block = ToolUseBlock(id="call_" + uuid.uuid4().hex[:16], name=str(name), input=arguments if isinstance(arguments, dict) else {}) + return Message(role="assistant", content=[block]), TokenUsage() + return Message(role="assistant", content=[TextBlock(text=value)] if value else []), TokenUsage() + + +class Simulated(UserAgent): + """The upstream's simulated user, who leaves once the agent has been cut off.""" + + def generate_response(self, *a, **kw): + return None if self.unit.silent else super().generate_response(*a, **kw) + + +class Unit: + def __init__(self, unit, where): + self.where = os.path.abspath(where) + self.trial = os.path.dirname(self.where) + self.dir = task_dir(unit) + self.t = TaskDefinition.from_yaml(self.dir / "task.yaml") + self.ports = [s.port for s in self.t.services] + self.kept = contextlib.ExitStack() + self.inbox, self.out = queue.Queue(), queue.Queue() + self.lock = threading.Lock() + self.pending = self.thread = self.error = self.trace = self.result = None + self.silent = self.over = False + self.steps = 0 + + # -- what the upstream starts for a trial + def open(self): + fixtures() + tag = image() + slot = Slot(self.ports) + self.kept.callback(slot.close) + self.t.apply_port_offset(slot.offset) + self.kept.enter_context(ServiceManager(self.t.services, cwd=UP, mock_today=self.t.environment.mock_today)) + self.runner = SandboxRunner(load_config(UP / CONFIGS[dataset()]).sandbox, image=tag) + self.handle = self.runner.start_container(run_id=f"{self.t.task_id}-{uuid.uuid4().hex[:6]}-p{slot.offset}") + self.kept.callback(self.runner.stop_container, self.handle) + self.runner.inject_files(self.handle, self.t, task_dir=str(self.dir)) + self.tmp = tempfile.mkdtemp(prefix="nullius-claw-") + self.kept.callback(shutil.rmtree, self.tmp, ignore_errors=True) + self.at = os.path.join(self.tmp, "s") + sock = socket.socket(socket.AF_UNIX) + self.kept.callback(sock.close) + sock.bind(self.at) + sock.listen(16) + threading.Thread(target=self._accept, args=(sock,), daemon=True).start() + return self + + def close(self): + self.mute() + self.kept.close() + + # -- the MCP server's side: one connection per call, a JSON line each way + def _accept(self, sock): + while True: + try: + conn, _ = sock.accept() + except OSError: + return + threading.Thread(target=self._call, args=(conn,), daemon=True).start() + + def _call(self, conn): + f = conn.makefile("rwb") + + def reply(text, error, images=()): + with contextlib.suppress(OSError): + f.write((json.dumps({"text": text, "isError": error, "images": list(images)}) + "\n").encode()) + f.flush() + conn.close() + + try: + req = json.loads(f.readline() or b"{}") + except (OSError, ValueError): + conn.close() + return + with self.lock: + if self.thread is not None and not self.over and not self.silent: + self.inbox.put(("call", (req.get("name"), req.get("arguments"), reply))) + return + reply(ENDED, True) + + # -- the upstream's loop, in a thread + def start(self, model_id, simulator=None): + user = None + if simulator and self.t.user_agent.enabled: + user = Simulated(model_id=RELAYED, api_key=simulator["key"], base_url=simulator["base_url"]) + user.unit = self + self.thread = threading.Thread(target=self._loop, args=(AcpProvider(self, model_id), user), daemon=True) + self.thread.start() + + def _loop(self, provider, user): + try: + cfg = load_config(UP / CONFIGS[dataset()]) + self.trace = run_task(self.t, provider, trace_dir=os.path.join(self.trial, "verifier", "claw-eval"), sandbox_tools=True, + sandbox_url=self.handle.sandbox_url, prompt_cfg=cfg.prompt, model_cfg=cfg.model, + media_cfg=cfg.media, user_agent=user) + except Exception as e: + self.error = e + with self.lock: + self.over = True + left, self.pending = [self.pending] if self.pending else [], None + 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, True) + self.progress() + self.out.put(None) + + def progress(self): + path = os.path.join(self.trial, "progress.json") + with contextlib.suppress(OSError): + with open(path + ".new", "w") as f: + json.dump({"steps": self.steps, "steps_limit": self.t.environment.max_turns, "ended": self.over}, f) + os.replace(path + ".new", path) + + def next(self): + try: + said = self.out.get(timeout=WAIT) + except queue.Empty: + raise TimeoutError(f"the upstream's loop did not answer in {WAIT} s") + if said is None: + self.check() + return {"done": True} + return {"message": said} + + def check(self): + if self.error is not None: + raise RuntimeError(f"the upstream's loop raised {type(self.error).__name__}: {self.error}") + + def mute(self): + """The agent is gone: it says nothing more, and the loop ends by its own rules.""" + with self.lock: + self.silent = True + self.inbox.put(("said", "")) + if self.thread is not None: + self.thread.join(timeout=120) + + # -- grading: _run_single_task's steps after the loop + def grade(self, judge): + self.runner.inject_grader_files(self.handle, self.t, task_dir=str(self.dir)) + snapshot = cli._collect_env_snapshot(self.handle.sandbox_url, self.t) + cli._save_env_snapshot(snapshot, Path(self.trace), self.t.task_id) + for rel in self.t.local_grader_files: + p = self.dir / rel + snapshot[f"local_file:{rel}"] = ({"encoding": "base64", "content": base64.b64encode(p.read_bytes()).decode()} + if p.exists() else {"error": f"not found: {p}"}) + start, messages, dispatches, media, end, audit = load_trace(self.trace) + grader = get_grader(self.t.task_id, tasks_dir=UP / "tasks", task_dir=self.dir) + cfg = load_config(config(self.tmp, judge)) + scores, calls = cli._grade_with_optional_params(grader, messages, dispatches, self.t, audit_data=audit, + judge=cli._make_judge(cfg, None), media_events=media, env_snapshot=snapshot) + score = compute_task_score(scores) + cli._append_grading_to_trace(self.trace, trace_id=start.trace_id, task_id=self.t.task_id, scores=scores, task_score=score, + passed=is_pass(score), judge_calls=calls, + user_agent_meta={"rounds_used": end.user_agent_rounds, "max_rounds": end.user_agent_max_rounds, + "done_reached": end.user_agent_done} if end and end.user_agent_rounds else {}) + return dict(scores.model_dump(), task_score=score), end + + +def state(unit): + if unit not in STATE: + raise ValueError(f"{unit} was not set up") + return STATE[unit] + + +def leave(): + for u in STATE.values(): + u.close() + STATE.clear() + + +def setup(unit, dir, participant=None): + leave() # one unit at a time: an earlier one left unfinished is ended + u = STATE[unit] = Unit(unit, dir) + cfg = load_config(UP / CONFIGS[dataset()]) + own = {t.name for t in u.t.tools} + prompt = build_system_prompt(u.t, cfg.prompt, extra_tools=[t for t in SANDBOX_TOOLS if t.name not in own]) + if u.t.user_agent.enabled and u.t.user_agent.system_prompt_suffix: + prompt += "\n\n" + u.t.user_agent.system_prompt_suffix + out = {"prompt": prompt + HOW, "agent_seconds": u.t.environment.timeout_seconds + 300, "progress": os.path.join(u.trial, "progress.json")} + if participant == "agent": + u.open() + out["mcp"] = [{"name": "claw-eval", "server": "tools", + "env": {"CLAW_UPSTREAM": str(UP), "CLAW_TASK": str(u.dir / "task.yaml"), "CLAW_AT": u.at}}] + return dict(out, environment="web") if asks_web(u.t) else out + + +def turn(unit, dir, transcript, simulator=None, judge=None): + u = state(unit) + if not transcript: + if u.t.user_agent.enabled and not simulator: + raise ValueError("the user is played by a model, and none was given") + u.start("agent", simulator) + return u.next() + if u.over: + u.check() + return {"done": True} + u.inbox.put(("said", transcript[-1].get("text") or "")) + return u.next() + + +def score(unit, dir, transcript, answer, judge=None, setup=None): + u = state(unit) + if u.result is not None: # Original: graded by the upstream's own _run_single_task + scores, turns = u.result + detail = {"scores": scores, "turns": turns} + else: + if not judge: + raise ValueError("the tasks are graded with a judge model, and none was given") + if u.thread is None: # the null control: the upstream's loop, with nothing said + u.open() + u.silent = True + u.start("nop") + u.mute() + u.check() + if not u.over: + raise RuntimeError("the upstream's loop did not end") + scores, end = u.grade(judge) + detail = {"scores": scores, "turns": end.total_turns, "steps": u.steps, "steps_limit": u.t.environment.max_turns, + "user_rounds": end.user_agent_rounds} + u.close() + return {"reward": float(is_pass(scores["task_score"])), "passed": is_pass(scores["task_score"]), "detail": detail} + + +def answer(unit, dir, setup, model, base_url, key, simulator=None, judge=None): + """Original: one trial of the upstream's own ``_run_single_task``, in its sandbox, as ``batch --sandbox`` runs it.""" + leave() + u = STATE[unit] = Unit(unit, dir) + if asks_web(u.t) and not os.environ.get("SERP_DEV_KEY"): + raise EnvironmentSetupError("this task searches the live web: set SERP_DEV_KEY in Settings, Custom keys") + if shutil.which("docker") is None: + raise EnvironmentSetupError("Claw-Eval's sandbox needs Docker beside the driver: run Original on the local backend") + fixtures() + u.kept.callback(shutil.rmtree, tmp := tempfile.mkdtemp(prefix="nullius-claw-"), ignore_errors=True) + cfg = config(tmp, judge, simulator, {"model": model, "base_url": base_url, "key": key}) + slot = Slot(u.ports) + u.kept.callback(slot.close) + out = cli._run_single_task(task_dir=str(u.dir), config_path=cfg, model=None, api_key=None, base_url=None, + trace_dir=os.path.join(u.trial, "verifier", "claw-eval"), port_offset=slot.offset, + no_judge=False, judge_model=None, trials=1, sandbox=True) + if out["error"]: + raise RuntimeError("the upstream recorded an error: " + str(out["error"])) + t = out["trials"][0] + start, messages, _, _, end, _ = load_trace(t["trace"]) + u.result = {k: t[k] for k in ("completion", "robustness", "communication", "safety", "task_score")}, end.total_turns + said = [m.message.text for m in messages if m.message.role == "assistant" and m.message.text] + return {"answer": said[-1] if said else ""} + + +def end(unit, dir): + if unit in STATE: + STATE.pop(unit).close() + return {} + + +if __name__ == "__main__": + signal.signal(signal.SIGTERM, lambda *a: sys.exit(143)) + try: + serve({"units": units, "setup": setup, "turn": turn, "answer": answer, "score": score, "end": end}, out=PROTOCOL) + finally: + leave() diff --git a/app/nullius/catalogue/benchmarks/claw-eval/env/web.Dockerfile b/app/nullius/catalogue/benchmarks/claw-eval/env/web.Dockerfile new file mode 100644 index 000000000..2686da664 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/claw-eval/env/web.Dockerfile @@ -0,0 +1 @@ +# Nullius's base image unchanged. SERP_DEV_KEY goes to the driver alone, never into the image. diff --git a/app/nullius/catalogue/benchmarks/claw-eval/mcp_server.py b/app/nullius/catalogue/benchmarks/claw-eval/mcp_server.py new file mode 100644 index 000000000..069be2c6d --- /dev/null +++ b/app/nullius/catalogue/benchmarks/claw-eval/mcp_server.py @@ -0,0 +1,62 @@ +"""Claw-Eval's tools as a stdio MCP server: the upstream's schemas, the upstream's loop executing them. + +The tools are the task's own and the upstream's sandbox tools, listed as the upstream's ``run_task`` +lists them. Nothing runs here: each call goes to the driver (``CLAW_AT``, the unit's socket), where it +is the agent's next message to ``run_task``, which dispatches it; what the upstream answers, its images +included, comes back as the call's result. Ours is the pass-through alone.""" +import contextlib +import json +import os +import socket +import sys + +sys.path.insert(0, os.path.join(os.environ["CLAW_UPSTREAM"], "src")) +with contextlib.redirect_stdout(sys.stderr): # stdout carries the protocol, nothing else + import anyio + import mcp.types as types + from mcp.server.lowlevel import Server + from mcp.server.stdio import stdio_server + + from claw_eval.models.task import TaskDefinition + from claw_eval.runner.sandbox_tools import SANDBOX_TOOLS + + +def call(at, name, arguments): + """One call, through the driver: (content, is it an error).""" + try: + with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as s: + s.connect(at) + f = s.makefile("rwb") + f.write((json.dumps({"name": name, "arguments": arguments}) + "\n").encode()) + f.flush() + got = json.loads(f.readline()) + return ([types.TextContent(type="text", text=got["text"])] + + [types.ImageContent(type="image", data=i["data"], mimeType=i["mime_type"]) for i in got["images"]]), got["isError"] + except (OSError, ValueError, KeyError) as e: + return [types.TextContent(type="text", text=f"Error: the benchmark could not be reached ({e})")], True + + +def main(): + task = TaskDefinition.from_yaml(os.environ["CLAW_TASK"]) + own = {t.name for t in task.tools} + tools = list(task.tools) + [t for t in SANDBOX_TOOLS if t.name not in own] + server = Server("claw-eval") + + @server.list_tools() + async def list_tools(): + return [types.Tool(name=t.name, description=t.description, inputSchema=t.input_schema) for t in tools] + + @server.call_tool(validate_input=False) # the upstream answers a malformed call itself + async def call_tool(name, arguments): + content, error = await anyio.to_thread.run_sync(call, os.environ["CLAW_AT"], name, arguments or {}) + return types.CallToolResult(content=content, 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/claw-eval/standard.json b/app/nullius/catalogue/benchmarks/claw-eval/standard.json new file mode 100644 index 000000000..422126527 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/claw-eval/standard.json @@ -0,0 +1,241 @@ +{ + "schema": "nullius.benchmark/v1", + "key": "claw-eval", + "label": "Claw-Eval", + "summary": "Personal-assistant tasks: the agent works through mock services, the web and a sandbox, some with a simulated user; the authors' graders score its whole trajectory.", + "family": "agent", + "needs": [ + "agent.tools/v1", + "agent.conversation/v1" + ], + "upstream": { + "repository": "https://github.com/claw-eval/claw-eval", + "branch": "main", + "tested": "5680b8b11ff2ee5dd2b07b89086a29a5c5c984d7", + "tested_date": "2026-11-25", + "license": "MIT" + }, + "driver": { + "command": [ + "{install}/.venv/bin/python", + "{here}/driver.py" + ], + "install": { + "python": "3.12", + "pip": [ + "pydantic==2.14.3", + "pyyaml==6.0.3", + "openai==3.49.0", + "httpx==0.28.1", + "fastapi==0.162.4", + "uvicorn==0.54.0", + "pypdf==7.0.1", + "trafilatura==2.3.1", + "requests==2.34.2", + "docker==7.2.0", + "pillow==13.0.0", + "pdf2image==1.17.0", + "opencv-python-headless==5.0.0.93", + "mcp==1.30.0" + ] + }, + "participant": true, + "unit_end": true + }, + "mcp_servers": { + "tools": { + "command": [ + "{install}/.venv/bin/python", + "{here}/mcp_server.py" + ], + "summary": "The task's tools and the sandbox's, by the upstream's schemas; each call is passed to the driver, where the upstream's loop dispatches it." + } + }, + "datasets": [ + { + "id": "general", + "label": "General", + "summary": "Communication, finance, operations, research and office tasks.", + "units": 161, + "url": "https://huggingface.co/datasets/claw-eval/Claw-Eval/resolve/ca978fd82edb77d52f26f4ccf3f9684a8df84341/data/fixtures.tar.gz", + "sha256": "01c349b8eb3ae8bcd741578d6a7f94ba3f76e0aad74bd98233e02e629e65ff5b" + }, + { + "id": "multimodal", + "label": "Multimodal", + "summary": "Video, images, documents and web pages.", + "units": 101, + "url": "https://huggingface.co/datasets/claw-eval/Claw-Eval/resolve/ca978fd82edb77d52f26f4ccf3f9684a8df84341/data/fixtures.tar.gz", + "sha256": "01c349b8eb3ae8bcd741578d6a7f94ba3f76e0aad74bd98233e02e629e65ff5b" + }, + { + "id": "multi_turn", + "label": "Multi-turn", + "summary": "A simulated user with a persona.", + "units": 38, + "judge": { + "model": "anthropic/claude-opus-4.6", + "says": "the same LLMJudge, as config_user_agent.yaml names it" + } + } + ], + "units": { + "noun": "task", + "nouns": "tasks" + }, + "environments": { + "web": { + "summary": "Live web search through the authors' search service.", + "dockerfile": "env/web.Dockerfile", + "local_ok": true, + "needs_secrets": [ + { + "name": "SERP_DEV_KEY", + "to": "driver", + "summary": "Novada search key, for the 63 tasks that search the live web." + } + ] + } + }, + "simulator": { + "model": "anthropic/claude-opus-4.6", + "says": "the simulated user of the multi-turn tasks: the upstream's UserAgent with the task's persona, temperature 0.7" + }, + "score": { + "kind": "pass", + "says": "the task's own grader.py on the recorded trajectory, the services' audit logs and the sandbox's files; task score = safety x (0.8 completion + 0.2 robustness), passed at 0.75 or more (compute_task_score, is_pass)", + "judge": { + "model": "google/gemini-3-flash-preview", + "says": "the upstream's LLMJudge, its prompts, temperature 0, on its chat completions path" + } + }, + "leaderboard": { + "says": "claw-eval.github.io, by the README: Pass^3, a task counts when all three trials pass", + "simulator": "anthropic/claude-opus-4.6", + "repeat": 3 + }, + "limits": { + "turn_seconds": 2100, + "turns": 50, + "setup_seconds": 5400, + "score_seconds": 1800, + "scored_cuts": [ + "time", + "calls", + "end" + ] + }, + "controls": { + "nop": { + "source": "nullius", + "from": "Nullius: the upstream's loop with an agent that says nothing and calls no tool, then the task's grader." + } + }, + "setups": { + "original": { + "summary": "The upstream's own agent loop on the run's model: _run_single_task, as claw-eval batch --sandbox runs a trial, with its sandbox, simulated user, graders and judge.", + "providers": {"openai": "", "openrouter": "", "custom": ""}, + "turn_seconds": 7200, + "paper": "the Claw-Eval paper (arXiv 2604.06132)", + "reference_agent": "Claw-Eval agent" + } + }, + "options": { + "sandbox": { + "label": "Task sandbox", + "step": "where", + "summary": "--sandbox: each task's shell, files and browser in a container of the upstream's image.", + "values": [ + "docker" + ], + "default": "docker", + "setups": [ + "original", + "yours" + ], + "about": { + "docker": "The upstream's Dockerfile.agent, built once on the machine the driver runs on." + }, + "needs": { + "docker": { + "host": [ + "docker" + ] + } + } + }, + "reasoning_effort": { + "summary": "Reasoning effort sent to the model; the published configurations send high.", + "values": [ + "high", + "medium", + "low", + "default" + ], + "default": "high", + "setups": [ + "original" + ], + "about": { + "default": "None sent." + } + }, + "temperature": { + "summary": "Temperature sent to the model; default sends none.", + "pattern": "default|(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?", + "default": "0.0", + "setups": [ + "original" + ] + }, + "input_modalities": { + "label": "Attachments", + "summary": "Whether a task's attached images are put in its first message; the upstream's default sends text only.", + "values": [ + "text", + "text_image" + ], + "default": "text", + "setups": [ + "original" + ], + "about": { + "text": "The text; images stay readable in the sandbox.", + "text_image": "The images too, for a model that reads them." + }, + "names": { + "text": "Text only", + "text_image": "Text and images" + } + }, + "reasoning_field": { + "summary": "The message field that carries earlier reasoning back to the model.", + "values": [ + "provider", + "reasoning", + "reasoning_content" + ], + "default": "provider", + "setups": [ + "original" + ], + "names": { + "provider": "From the provider" + }, + "about": { + "provider": "reasoning on OpenRouter, reasoning_content elsewhere, as the upstream infers it.", + "reasoning": "OpenRouter.", + "reasoning_content": "SGLang, vLLM and others." + } + } + }, + "host": { + "docker": { + "label": "Docker for the task sandbox", + "summary": "Docker on the machine, usable without sudo: the upstream starts each task's sandbox in it.", + "check": [ + "docker" + ] + } + } +} diff --git a/app/nullius/catalogue/benchmarks/claw-eval/upstream-settings.json b/app/nullius/catalogue/benchmarks/claw-eval/upstream-settings.json new file mode 100644 index 000000000..de72edeb3 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/claw-eval/upstream-settings.json @@ -0,0 +1,268 @@ +[ + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--tag general, not multi-turn", + "values": "general", + "default": "all tasks", + "nullius": "dataset:general" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--tag multimodal", + "values": "multimodal", + "default": "all tasks", + "nullius": "dataset:multimodal" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "config_user_agent.yaml's tasks", + "values": "tasks with user_agent.enabled", + "default": "all tasks", + "nullius": "dataset:multi_turn" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--config", + "values": "config_general.yaml, config_multimodal.yaml, config_user_agent.yaml", + "default": "config.yaml", + "nullius": "fixed:each split's own - the README names one per split" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--tasks-dir", + "values": "a selection of tasks", + "default": "all", + "nullius": "fixed:the split - Nullius lists and limits units itself" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--filter", + "values": "a selection of tasks", + "default": "all", + "nullius": "fixed:the split - Nullius lists and limits units itself" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--range", + "values": "a selection of tasks", + "default": "all", + "nullius": "fixed:the split - Nullius lists and limits units itself" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--model", + "values": "any OpenAI-compatible model", + "default": "anthropic/claude-opus-4.6", + "nullius": "setup:original" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--api-key", + "values": "an endpoint", + "default": "the config's", + "nullius": "fixed:the unit's relay - ours, every call is recorded and no key reaches the benchmark" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--base-url", + "values": "an endpoint", + "default": "the config's", + "nullius": "fixed:the unit's relay - ours, every call is recorded and no key reaches the benchmark" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--trials", + "values": "a whole number", + "default": "1 (README: 3)", + "nullius": "fixed:1 - a run's attempts repeat the unit" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--parallel", + "values": "a whole number", + "default": "4", + "nullius": "fixed:1 - units side by side are the run's" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--port-base-offset", + "values": "a port offset", + "default": "0", + "nullius": "fixed:5000 and up, 50 a unit - ours, so units and the upstream's own runs do not collide" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--trace-dir", + "values": "a folder", + "default": "traces", + "nullius": "fixed:the trial's verifier/claw-eval - ours, kept with the trial" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--judge-model", + "values": "a model", + "default": "the config's", + "nullius": "fixed:the config's - a run's judge model replaces it through the relay" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--no-judge", + "values": "on, off", + "default": "off", + "nullius": "not offered - the published scores use the judge" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--proxy", + "values": "a URL", + "default": "none", + "nullius": "not offered - model calls go to the relay on this machine" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--sandbox", + "values": "on, off", + "default": "off (README: on)", + "nullius": "option:sandbox" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--sandbox-image", + "values": "an image", + "default": "claw-eval-agent:latest", + "nullius": "fixed:the pinned Dockerfile.agent's build - ours, tagged by its content" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--sandbox-tools", + "values": "on, off", + "default": "off", + "nullius": "not offered - it runs the agent's shell on the machine itself" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--rerun-errors", + "values": "a trace folder", + "default": "none", + "nullius": "not offered - a run's retries and units do this" + }, + { + "entry": "claw-eval batch (README; cmd_batch)", + "setting": "--continue", + "values": "a trace folder", + "default": "none", + "nullius": "not offered - a run's retries and units do this" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "model.extra_body.reasoning.effort", + "values": "an effort", + "default": "high", + "nullius": "option:reasoning_effort" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "model.temperature", + "values": "a number or null", + "default": "0.0", + "nullius": "option:temperature" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "model.input_modalities", + "values": "text, image, audio, video", + "default": "text", + "nullius": "option:input_modalities" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "model.reasoning_field", + "values": "reasoning, reasoning_content", + "default": "inferred from base_url", + "nullius": "option:reasoning_field" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "model.reasoning_effort", + "values": "an effort", + "default": "none", + "nullius": "not offered - the published configurations set the effort in extra_body" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "model.system_prompt_prefix", + "values": "text", + "default": "none", + "nullius": "not offered - no published configuration sets it" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "model.context_window", + "values": "tokens", + "default": "1000000 in the published configurations", + "nullius": "fixed:1000000 - the upstream's; no task turns compaction on" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "judge.model_id", + "values": "a model", + "default": "google/gemini-3-flash-preview; anthropic/claude-opus-4.6 for multi-turn", + "nullius": "fixed:the split's - the dataset's judge, sent by the relay" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "judge.enabled", + "values": "true, false", + "default": "true", + "nullius": "fixed:true - the upstream's default" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "user_agent_model.model_id", + "values": "a model", + "default": "anthropic/claude-opus-4.6", + "nullius": "fixed:the config's - the run's simulator, sent by the relay" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "sandbox.*", + "values": "memory 4g, 2 CPUs, port 8080, browser, shell, files", + "default": "as listed", + "nullius": "fixed:as listed - the upstream's defaults" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "prompt.*", + "values": "system prompt parts", + "default": "enabled, with tool schemas", + "nullius": "fixed:enabled, with tool schemas - the upstream's defaults" + }, + { + "entry": "config*.yaml (load_config)", + "setting": "media.*", + "values": "image sizes, counts and quality", + "default": "the upstream's", + "nullius": "fixed:the upstream's - its defaults" + }, + { + "entry": "SERP_DEV_KEY", + "setting": "live search key", + "values": "a Novada key", + "default": "none", + "nullius": "fixed:the user's - Settings, Custom keys" + }, + { + "entry": "mock services", + "setting": "ERROR_RATE, MAX_SEARCHES, MAX_FETCHES, CACHE_TTL, INJECTION_*", + "values": "numbers", + "default": "0, 20, 30, 24, the upstream's", + "nullius": "fixed:the upstream's - its defaults, a task's own env included" + }, + { + "entry": "claw-eval run, grade, list, cleanup, build-image", + "setting": "single task, regrading, listing, clean-up", + "values": "", + "default": "", + "nullius": "not offered - the same trial and grading as batch, one task at a time" + } +] diff --git a/app/nullius/standard/cli.py b/app/nullius/standard/cli.py index 282e13f15..2851830e3 100644 --- a/app/nullius/standard/cli.py +++ b/app/nullius/standard/cli.py @@ -781,7 +781,7 @@ def _boat_units(a, b, other) -> int: words += ["--" + field.replace("_", "-"), value] # Saved price overrides belong to the launching profile, not the fresh VM. needs = definitions.option_needs(b, vals) - models = [a.model, other.get("sent"), a.judge_model or providers.official_as((b.get("score", {}).get("judge") or {"model": ""}), a.judge_provider or a.provider), + models = [a.model, other.get("sent"), a.judge_model or providers.official_as((definitions.judge_of(b, next((x for x in b["datasets"] if x["id"] == ds), None)) or {"model": ""}), a.judge_provider or a.provider), a.simulator_model or providers.official_as((b.get("simulator") or {"model": ""}), a.simulator_provider or a.provider), *[providers.served_as(m, a.provider) for m in needs["embeddings"] + needs["reranker"]]] explicit = prices(a.price) diff --git a/app/nullius/standard/contract/definitions.py b/app/nullius/standard/contract/definitions.py index ba654d773..3dd7a8ff0 100644 --- a/app/nullius/standard/contract/definitions.py +++ b/app/nullius/standard/contract/definitions.py @@ -1186,6 +1186,13 @@ def _secrets(w: str, secrets, local_ok: bool, settings) -> List[str]: return bad +def judge_of(bench: dict, dataset: Optional[dict] = None) -> Optional[dict]: + """The official judge of a benchmark scored by a model, on one of its datasets: the dataset's own + (``judge``), else ``score.judge``. None when no model scores it.""" + judge = (bench.get("score") or {}).get("judge") + return ((dataset or {}).get("judge") or judge) if judge else None + + def environment_of(bench: dict, unit_setup: Optional[dict], dataset: Optional[dict] = None) -> Tuple[Optional[str], Optional[dict]]: """The environment a unit runs in: the one its setup names (``environment``), else its dataset's default, else none - the base image. @@ -1276,6 +1283,10 @@ def paper_models(orig: dict) -> List[str]: return [m for m in orig.get("models") or [] if not isinstance(c, list) or m in c] +def _judge(j) -> bool: + return isinstance(j, dict) and bool(_MODEL_NAME.match(str(j.get("model", "")))) and bool(j.get("says")) + + def _leaderboard(d: dict) -> List[str]: """``leaderboard``: {says, simulator?, judge?, bench_options?, repeat?} - what the upstream's leaderboard fixes besides the ranked model, from its own submission @@ -1819,7 +1830,7 @@ def problems(d: dict, kind: str) -> List[str]: bad.append("kit_version: a kit's version, a whole number from 1") bad += _skills(d) j = s.get("judge") - if j is not None and (not isinstance(j, dict) or not _MODEL_NAME.match(str(j.get("model", ""))) or not j.get("says")): + if j is not None and not _judge(j): bad.append("score.judge: {model: the official judge, as the provider names it; says: what it is asked}") elif j is not None and not isinstance(j.get("retired", False), bool): bad.append("score.judge.retired: true when the official judge can no longer be called") @@ -1828,6 +1839,12 @@ def problems(d: dict, kind: str) -> List[str]: if x is not None and (j is not None or not isinstance(x, dict) or not x.get("label") or not x.get("says") or not _MODEL_NAME.match(str(x.get("model", "")))): bad.append("score.experiment_judge: {label, model: the one its source used, says}, on a benchmark with no official judge") + for i, x in enumerate(ds if isinstance(ds, list) else []): + if isinstance(x, dict) and "judge" in x: + if j is None or not _judge(x["judge"]): + bad.append(f"datasets[{i}].judge: {{model, says}}, this dataset's official judge, on a benchmark with a score.judge") + else: + bad += _served_as(f"datasets[{i}].judge", x["judge"]) sim = d.get("simulator") if sim is not None: if not isinstance(sim, dict) or not _MODEL_NAME.match(str(sim.get("model", ""))) or not sim.get("says"): diff --git a/app/nullius/standard/pages/recipe.py b/app/nullius/standard/pages/recipe.py index 98dd55c89..8bcac9834 100644 --- a/app/nullius/standard/pages/recipe.py +++ b/app/nullius/standard/pages/recipe.py @@ -209,7 +209,7 @@ def _bench_page(b: dict) -> dict: if "models" in x else {"any": True, "providers": list(x["providers"])})} for k, x in (b.get("setups") or {}).items() if k == "original"], # its own options (a search, a mode): each value with its line and what it needs; and the host requirements - "simulator": (b.get("simulator") or {}).get("model", ""), "judge": ((b.get("score") or {}).get("judge") or {}).get("model", ""), + "simulator": (b.get("simulator") or {}).get("model", ""), "judge": (definitions.judge_of(b) or {}).get("model", ""), "judge_retired": bool(((b.get("score") or {}).get("judge") or {}).get("retired")), # a judge beside the score, run only when the recipe names its model "experiment_judge": {k: v for k, v in ((b.get("score") or {}).get("experiment_judge") or {}).items() if k in ("label", "model")} or None, @@ -233,7 +233,7 @@ def _bench_page(b: dict) -> dict: "host": {n: {"label": hostreq.label(b, n), "summary": r["summary"], "check": r["check"], "install": hostreq.install_lines(b, [n]), "needed_by": r["needed_by"]} for n, r in hostreq.all_of(b).items()}, "datasets": [{"id": d["id"], "label": d.get("label") or d["id"], "summary": d.get("summary", ""), "units": d.get("units"), - "environment": d.get("environment") or "", + "judge": (definitions.judge_of(b, d) or {}).get("model", ""), "environment": d.get("environment") or "", # the list it is cut from, when the benchmark declares one: drawn as that dataset's own task set "subset_of": d.get("subset_of") or "", "controls": [dict(c, **{k: status[d["id"]][c["key"]][k] for k in ("proven", "short", "failed")}) @@ -746,7 +746,8 @@ def add(step, message, shown=False, field=None, unset=False): if model_choice == "leaderboard" and not b.get("leaderboard"): add("model", f"{b['label']} declares no leaderboard; choose Like the paper or Any of your choice.") 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", "")} + ds_judges = [j_ for x in dss or [{}] if (j_ := definitions.judge_of(b, x))] # each dataset's official one + official = {"judge": ", ".join(dict.fromkeys(j_["model"] for j_ in ds_judges)), "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 orig.get("comparable") == []: add("model", "Paper models unavailable; choose Any of your choice.") @@ -815,8 +816,9 @@ def add(step, message, shown=False, field=None, unset=False): for what, role, m in (("the user simulator's", "simulator", sim_model), ("the judge's", "judge", judge_model)): if m and not _MODEL.match(m): add("model", f"Enter {what} model as the provider lists it, or leave it empty for its official one.") - elif m and like and m not in (fixed[role], providers.served_as(fixed[role], prov(role)), - providers.official_as({"model": fixed[role], **({} if lb.get(role) else spec[role] or {})}, prov(role))): + elif m and like and any(m not in (x, providers.served_as(x, prov(role)), providers.official_as({"model": x, **({} if lb.get(role) else s_ or {})}, prov(role))) + for x, s_ in ([(j_["model"], j_) for j_ in ds_judges] if role == "judge" and not lb.get("judge") and ds_judges + else [(fixed[role], spec[role])])): add("model", f"{like} uses {what} model {fixed[role]}: choose Any of your choice for {m}.") if ((b.get("score") or {}).get("judge") or {}).get("retired") and not judge_model and not like: add("model", f"{b['label']}'s official judge, {official['judge']}, is retired: enter a model for the judge.") @@ -969,8 +971,8 @@ def add(step, message, shown=False, field=None, unset=False): if (share or per_unit) and unpriced is not None: # the models each job names as it sends them, read where its run reads them (ledger.models): each # dataset with each choice, the dataset's own embeddings - judge, sim = (b.get("score") or {}).get("judge"), b.get("simulator") - called = [m for x in dss for p in picks for m in ledger.models( + sim = b.get("simulator") + called = [m for x in dss for judge in [definitions.judge_of(b, x)] for p in picks for m in ledger.models( p["o"], None if p["control"] else (p["o"].get("sent") or p.get("model")) if p.get("setup") else model, (judge_model or providers.official_as(judge, prov("judge"))) if judge else judge_model if judges else None, (sim_model or providers.official_as(sim, prov("simulator"))) if sim else None, @@ -984,34 +986,34 @@ def add(step, message, shown=False, field=None, unset=False): limits.of(t) except ValueError as e: add("where", f"{e}: fix it in Settings.") - judge_def, sim_def = (b.get("score") or {}).get("judge"), b.get("simulator") + sim_def = b.get("simulator") - def sent_of(p: dict) -> Dict[str, Optional[str]]: - """Each model field's model as job ``p`` sends it; None where it has none (a control has no model of its own).""" + def sent_of(d: dict, p: dict) -> Dict[str, Optional[str]]: + """Each model field's model as the job of ``p`` on dataset ``d`` sends it; None where it has none (a control has no model of its own).""" return {"model": None if p["control"] else (p["o"].get("sent") or p.get("model")) if p.get("setup") else model, - "judge": (judge_model or providers.official_as(judge_def, prov("judge"))) if judge_def else judge_model if judges else None, + "judge": (judge_model or providers.official_as(judge_def, prov("judge"))) if (judge_def := definitions.judge_of(b, d)) else judge_model if judges else None, "simulator": (sim_model or providers.official_as(sim_def, prov("simulator"))) if sim_def else None} - def called_of(p: dict) -> List[str]: - s = sent_of(p) + def called_of(d: dict, p: dict) -> List[str]: + s = sent_of(d, p) return ledger.models(p["o"], s["model"], s["judge"], s["simulator"], None, control=p["control"]) # the pins by model, as the run sends each: a field's pin is its model's, on every job that calls that model # (a control's judge job too, when the judge's model is the one the model field pinned) by_model: Dict[str, List[str]] = {} - for p in picks: + for d, p in [(d, p) for d in dss for p in picks]: for role, slugs in served.items(): - m = sent_of(p).get(role) + m = sent_of(d, p).get(role) if not m: continue if m in by_model and by_model[m] != list(slugs): add("model", f"Served by pins {m} twice, with different providers: give its fields the same ones.") by_model[m] = list(slugs) # the pin goes with the name: a field on another provider calling the same model would take it there too - if any(sent_of(p).get(r) == m and role_choice.get(r, agent_choice) != role_choice.get(role, agent_choice) for r in roles): + if any(sent_of(d, p).get(r) == m and role_choice.get(r, agent_choice) != role_choice.get(role, agent_choice) for r in roles): add("model", f"Served by: {m} is called on two providers, so a pin would reach both: leave it empty, or give both fields one provider.") # each field's model as the run sends it, for the builder to ask its providers under that name - out["served_models"] = {role: next((sent_of(p)[role] for p in sorted(picks, key=lambda q: q["control"]) if _MODEL.match(sent_of(p)[role] or "")), None) + out["served_models"] = {role: next((m for d in dss or [{}] for p in sorted(picks, key=lambda q: q["control"]) if _MODEL.match((m := sent_of(d, p)[role]) or "")), None) for role in roles} def options_for_pick(d: dict, p: dict) -> dict: @@ -1025,38 +1027,38 @@ def own_reasoning(d: dict, p: dict) -> Dict[str, str]: bench = options_for_pick(d, p) own = {"model": bench.get("agent_reasoning_effort") if p.get("setup") else p["opts"].get("reasoning_effort"), "simulator": bench.get("user_reasoning_effort")} - return {r: v for r, v in own.items() if v and v != "default" and sent_of(p).get(r)} + return {r: v for r, v in own.items() if v and v != "default" and sent_of(d, p).get(r)} def reasoned(d: dict, p: dict) -> Dict[str, str]: """The --reasoning of one job: each field's level, by the model it sends, where no one sets its own.""" own = own_reasoning(d, p) - return {sent_of(p)[r]: v for r, v in levels.items() if sent_of(p).get(r) and r not in own} + return {sent_of(d, p)[r]: v for r, v in levels.items() if sent_of(d, p).get(r) and r not in own} for ds_ in dss: for pick_ in picks: mine_, set_ = own_reasoning(ds_, pick_), {} for role_, level_ in levels.items(): - model_ = sent_of(pick_).get(role_) + model_ = sent_of(ds_, pick_).get(role_) if not model_ or role_ in mine_: continue if set_.get(model_, level_) != level_: add("model", f"Reasoning sets {model_} twice, at different levels: give its fields the same one.") - if any(sent_of(pick_)[o] == model_ for o in mine_): + if any(sent_of(ds_, pick_)[o] == model_ for o in mine_): add("model", f"{model_} reasons as {pick_['o']['label']} sets it: give the {SERVED_LABEL[role_]} another model, or leave its reasoning at the default.") set_[model_] = level_ # by field, what sets its reasoning in place of the recipe when every job that calls it does: the builder greys its select for role_ in roles: - owned_ = [own_reasoning(ds_, pick_).get(role_) for ds_ in dss for pick_ in picks if sent_of(pick_).get(role_)] + owned_ = [own_reasoning(ds_, pick_).get(role_) for ds_ in dss for pick_ in picks if sent_of(ds_, pick_).get(role_)] if owned_ and all(owned_): out["own_reasoning"][role_] = sorted(set(owned_)) - def pinned(p: dict) -> Dict[str, List[str]]: + def pinned(d: dict, p: dict) -> Dict[str, List[str]]: """The --served-by of one job: the pins of the models it calls.""" - called = called_of(p) + called = called_of(d, p) return {m: s for m, s in by_model.items() if m in called} if served and not errors: - everything = {m for p in picks for m in called_of(p)} + everything = {m for d in dss for p in picks for m in called_of(d, p)} for role in served: - if not {sent_of(p)[role] for p in picks} & everything: + if not {sent_of(d, p)[role] for d in dss for p in picks} & everything: add("model", f"Served by: no job of this recipe calls {roles[role]}; leave it empty.") # the roles whose own provider a job calls: their keys are the run's too (execution.Plan.roles) out["roles"] = {r: c for r, c in role_choice.items() @@ -1119,7 +1121,7 @@ def command_for(d: dict, p: dict, index: int) -> str: *(["--unsandboxed"] if side == "agent" and not control and not p.get("setup") and backend == "local" else []), *(["--shard", f"{index}/{of}", "--launch", launch_of(d, p)] if of > 1 else []), *limits.cli_words(limits.of(targets[index - 1])), - *[w for m_, slugs in pinned(p).items() for w in ("--served-by", f"{m_}={','.join(slugs)}")], + *[w for m_, slugs in pinned(d, p).items() for w in ("--served-by", f"{m_}={','.join(slugs)}")], *[w for m_, v in reasoned(d, p).items() for w in ("--reasoning", f"{m_}={v}")], "--from-run"] return " ".join(shlex.quote(w) for w in words) + ' --jobs "${NULLIUS_JOBS:-jobs_standard}"' @@ -1194,7 +1196,7 @@ def row(p: dict) -> list: + ((model or "not chosen") if not listed or any(not p["control"] for p in listed) else ", ".join(p["o"]["sent"] for p in picks if p.get("setup")) or "the judge only") + (f" · user simulator {sim_model or (b.get('simulator') or {}).get('model')}" + (" (leaderboard)" if lb.get("simulator") else "" if sim_model else " (official)") if b.get("simulator") else "") + (f" on {providers.label(out['roles']['simulator'])}" if "simulator" in out["roles"] else "") - + (f" · judge {judge_model or b['score']['judge']['model']}" + ("" if judge_model else " (official)") if (b.get("score") or {}).get("judge") else "") + + (f" · judge {judge_model or official['judge']}" + ("" if judge_model else " (official)") if (b.get("score") or {}).get("judge") else "") + (f" · {b['score']['experiment_judge']['label']} {judge_model} (experiment)" if judges and not (b.get("score") or {}).get("judge") else "") + (f" on {providers.label(out['roles']['judge'])}" if "judge" in out["roles"] else "") + "".join(f" · {SERVED_LABEL[r_]} served by {', '.join(s)}" for r_, s in served.items()) diff --git a/app/nullius/standard/runner/run.py b/app/nullius/standard/runner/run.py index c48923171..fc50374e8 100644 --- a/app/nullius/standard/runner/run.py +++ b/app/nullius/standard/runner/run.py @@ -964,34 +964,34 @@ def __init__(self, bench: dict, other: dict, *, model: str, provider: str, datas self.options, bad = definitions.agent_options_of(bench, other, options) if bad: raise Refused("; ".join(bad)) - # A benchmark scored by a model: its official judge, or the one asked for; its calls go through the relay - # on a route of their own (-judge), recorded beside the unit's and never counted as the agent's. - # The official one is written as its maker spells it; the run's provider may spell it otherwise. - # An experiment judge (``score.experiment_judge``) runs only when the run names its model. - j = (bench.get("score") or {}).get("judge") - # A retired one is never the default: an agent's run names another; a control's run without one sends none. - if j and j.get("retired") and not judge_model: - if other.get("_kind") != "control": - raise Refused(f"{bench.get('label') or bench['key']}'s official judge, {j['model']}, is retired: name another with --judge-model") - j = None # each role's own provider, when the run names one that is not the agent's (or reads it from elsewhere) role_env = dict(role_env or {}) asked = {r: p for r, p in (("judge", judge_provider), ("simulator", simulator_provider)) if p and (p != provider or r in role_env)} - self.judge_model = ((judge_model or providers.official_as(j, asked.get("judge", provider))) if j - else judge_model or None if (bench.get("score") or {}).get("experiment_judge") else None) # A benchmark whose user a model plays: its driver's turns ask that model the same way, on -simulator. # A control holds no conversation, so it never asks it. sim = bench.get("simulator") self.simulator_model = (simulator_model or providers.official_as(sim, asked.get("simulator", provider))) if sim else None - for role, p in asked.items(): - if not getattr(self, role + "_model"): - raise Refused(f"--{role}-provider: {bench['label']} has no {'judge' if role == 'judge' else 'user simulator'}") # A control (definitions.control) calls no model: its run needs a key only for the benchmark's judge. ds = [d for d in bench["datasets"] if dataset in (None, d["id"])] if not ds: raise BenchmarkRefused(f"{bench['label']} has no dataset {dataset!r}: {[d['id'] for d in bench['datasets']]}") self.ds = ds[0] + # A benchmark scored by a model: the dataset's official judge, or the one asked for; its calls go through the relay + # on a route of their own (-judge), recorded beside the unit's and never counted as the agent's. + # The official one is written as its maker spells it; the run's provider may spell it otherwise. + # An experiment judge (``score.experiment_judge``) runs only when the run names its model. + j = definitions.judge_of(bench, self.ds) + # A retired one is never the default: an agent's run names another; a control's run without one sends none. + if j and j.get("retired") and not judge_model: + if other.get("_kind") != "control": + raise Refused(f"{bench.get('label') or bench['key']}'s official judge, {j['model']}, is retired: name another with --judge-model") + j = None + self.judge_model = ((judge_model or providers.official_as(j, asked.get("judge", provider))) if j + else judge_model or None if (bench.get("score") or {}).get("experiment_judge") else None) + for role, p in asked.items(): + if not getattr(self, role + "_model"): + raise Refused(f"--{role}-provider: {bench['label']} has no {'judge' if role == 'judge' else 'user simulator'}") try: _, env_def = definitions.environment_of(bench, None, self.ds) except ValueError as e: diff --git a/app/static/builder/command-builder-core.js b/app/static/builder/command-builder-core.js index 8bd41a8c1..98e366898 100644 --- a/app/static/builder/command-builder-core.js +++ b/app/static/builder/command-builder-core.js @@ -89,6 +89,8 @@ const keep = m => own.some(a => a.models.includes(m)); return {...o, models: o.models.filter(keep), sent: Object.fromEntries(Object.entries(o.sent || {}).map(([p, ms]) => [p, Object.fromEntries(Object.entries(ms).filter(([m]) => keep(m)))]))}; } + // The official judge of the chosen datasets: each dataset's own, when they differ. + const judgeOf = r => { const b = standardBench(r) || {}, ids = datasetsOf(r), own = (b.datasets || []).filter(d => ids.includes(d.id)).map(d => d.judge).filter(Boolean); return [...new Set(own)].join(', ') || b.judge || ''; }; // 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; // none of what the paper ran can run any more (comparable: []): a retired model, judge or user simulator @@ -1038,5 +1040,5 @@ // A recipe nobody changed: Start over has nothing to ask about. A new one, or that one as a reloaded draft holds it // (fromJSON fills in what a new one leaves out). The page's own values are compared as they are: reading would drop the bad ones. const atDefaults = r => { const s = JSON.stringify(r); return s === JSON.stringify(prefill({})) || s === JSON.stringify(fromJSON(prefill({}))); }; - return {setTaskSet,keepTaskSets,setStartWith,keepStartWith,nestedDatasets,wholeOf,swapDataset,STANDARD_PHASES,STEPS,STEP,runners,RUNNER_GONE,isStandard,standard,standardBase,standardBench,standardOthers,ownAgentsOf,ownChosen,runsOf,standardKeyless,paperModels,paperListed,paperOffered,leaderboard,setModelChoice,servedRoles,servedList,setServed,reasoningRoles,setReasoning,LEVEL_NAMES,addServed,removeServed,setModelOf,servedModelOf,servedKey,servedCompiled,servedRow,stepShown,refusedPart,chosenOf,toggleParticipant,datasetsOf,whereList,machineLabel,createStandard,setStandardBenchmark,openingStep,runnersOf,runnerFor,benchKey,whereLabel,create,benchmarks,routeBlocker,dataset,sources,setBenchmark,parameters,scopes,validate,compile,runnable,fromJSON,fromJob,prefill,atDefaults,deleteAsk,review,copy,packDraft,unpackDraft,adapterPath,taskCount,PROVIDERS,PROVIDER_LABEL,PROVIDER_NEEDS,available,labelOf,needsOf,choiceOf,setChoice,providersOf,recipeProvider,providerBlocker,blockedProvider,roleChoiceOf,setRoleChoice,roleProvidersOf,ownRole,providerOf,bareModel,settleModel,agentModel,quote:q,path,defaults,needsCredentials,credentialBindings,declaredTimeouts,effectiveTimeouts,setPhaseMinutes,PHASES,harborExecutable,harborPin,harborProblem,harborKey,harborRepoUrl,harborLabel,repoLabel,agents,mergeAgents,setScanned,COMMON,agentById}; + return {setTaskSet,keepTaskSets,setStartWith,keepStartWith,nestedDatasets,wholeOf,swapDataset,STANDARD_PHASES,STEPS,STEP,runners,RUNNER_GONE,isStandard,standard,standardBase,standardBench,standardOthers,ownAgentsOf,ownChosen,runsOf,standardKeyless,paperModels,paperListed,paperOffered,leaderboard,setModelChoice,servedRoles,servedList,setServed,reasoningRoles,setReasoning,LEVEL_NAMES,addServed,removeServed,setModelOf,servedModelOf,servedKey,servedCompiled,servedRow,stepShown,refusedPart,chosenOf,toggleParticipant,datasetsOf,judgeOf,whereList,machineLabel,createStandard,setStandardBenchmark,openingStep,runnersOf,runnerFor,benchKey,whereLabel,create,benchmarks,routeBlocker,dataset,sources,setBenchmark,parameters,scopes,validate,compile,runnable,fromJSON,fromJob,prefill,atDefaults,deleteAsk,review,copy,packDraft,unpackDraft,adapterPath,taskCount,PROVIDERS,PROVIDER_LABEL,PROVIDER_NEEDS,available,labelOf,needsOf,choiceOf,setChoice,providersOf,recipeProvider,providerBlocker,blockedProvider,roleChoiceOf,setRoleChoice,roleProvidersOf,ownRole,providerOf,bareModel,settleModel,agentModel,quote:q,path,defaults,needsCredentials,credentialBindings,declaredTimeouts,effectiveTimeouts,setPhaseMinutes,PHASES,harborExecutable,harborPin,harborProblem,harborKey,harborRepoUrl,harborLabel,repoLabel,agents,mergeAgents,setScanned,COMMON,agentById}; }); diff --git a/app/static/builder/command-builder.js b/app/static/builder/command-builder.js index 58874bcc0..d3d5e3dd8 100644 --- a/app/static/builder/command-builder.js +++ b/app/static/builder/command-builder.js @@ -898,7 +898,7 @@ if (b.simulator) lines.push(roleLine(rec, 'simulator', 'User simulator', (b.needs.includes('agent.conversation/v1') ? 'Plays the user in every conversation.' : 'Plays the desktop’s chat contacts.') + ' Empty: ' + b.label + "'s official one; another compares only with runs that used it.", paper ? fixedModel(lb && lb.simulator || b.simulator, lb && lb.simulator ? 'leaderboard' : 'official') : modelInput(rec, 'simulator', 'simulator_model', rec.simulator_model || '', b.simulator + ' (official)', 'User simulator'), who)); if (b.judge) lines.push(roleLine(rec, 'judge', 'Judge', b.judge_retired ? 'Grades the answers.' : 'Grades the answers. Empty: ' + b.label + "'s official judge; another compares only with runs that used it.", - paper ? fixedModel(lb && lb.judge || b.judge, lb && lb.judge ? 'leaderboard' : 'official') : modelInput(rec, 'judge', 'judge_model', rec.judge_model || '', b.judge_retired ? 'Search or enter a model ID' : b.judge + ' (official)', 'Judge'), who)); + paper ? fixedModel(lb && lb.judge || C.judgeOf(rec), lb && lb.judge ? 'leaderboard' : 'official') : modelInput(rec, 'judge', 'judge_model', rec.judge_model || '', b.judge_retired ? 'Search or enter a model ID' : C.judgeOf(rec) + ' (official)', 'Judge'), who)); // a judge beside the benchmark's score, never its own: run only when a model is named if (b.experiment_judge && !paper) lines.push(roleLine(rec, 'judge', b.experiment_judge.label + ' (experiment)', 'A second score beside ' + b.label + "'s, never in its place. Empty: none. Its source used " + b.experiment_judge.model + '.', modelInput(rec, 'judge', 'judge_model', rec.judge_model || '', 'None', b.experiment_judge.label), who)); diff --git a/app/static/catalogue/marks.svg b/app/static/catalogue/marks.svg index 75d090481..8eaeab2d2 100644 --- a/app/static/catalogue/marks.svg +++ b/app/static/catalogue/marks.svg @@ -27,6 +27,9 @@ + + + diff --git a/app/tests/test_catalog.py b/app/tests/test_catalog.py index 3827588b8..14394766f 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), ["clawmark", "gaia", "gsm8k", "healthagentbench", "humaneval", "locomo", "longmemeval", "medagentbench", "mypcbench", "open-telco", "osworld1", "osworld2", "swe-bench-verified", "tau3-bench", "terminal-bench", "triggerbench", "vitabench"]) + self.assertEqual(sorted(listed), ["claw-eval", "clawmark", "gaia", "gsm8k", "healthagentbench", "humaneval", "locomo", "longmemeval", "medagentbench", "mypcbench", "open-telco", "osworld1", "osworld2", "swe-bench-verified", "tau3-bench", "terminal-bench", "triggerbench", "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_definitions.py b/app/tests/test_standard_definitions.py index 784a74505..4f7c2c0c1 100644 --- a/app/tests/test_standard_definitions.py +++ b/app/tests/test_standard_definitions.py @@ -112,6 +112,14 @@ def test_a_judge_is_named_and_said(self): self.assertEqual(definitions.problems(dict(BENCH, score={"kind": "pass", "says": "s", "judge": {"model": "gpt-4o", "says": "the paper's"}}), "benchmark"), []) self.bad(BENCH, "benchmark", lambda d: d.update(score={"kind": "pass", "says": "s", "judge": {"model": "gpt 4o"}}), "score.judge") + def test_a_dataset_may_name_its_own_judge(self): + score = {"kind": "pass", "says": "s", "judge": {"model": "gpt-4o", "says": "the paper's"}} + own = {"model": "claude-opus-4.6", "says": "this split's"} + d = dict(BENCH, score=score, datasets=[dict(BENCH["datasets"][0], judge=own), {"id": "rest", "units": 1}]) + self.assertEqual(definitions.problems(d, "benchmark"), []) + self.assertEqual([definitions.judge_of(d, x)["model"] for x in d["datasets"]], ["claude-opus-4.6", "gpt-4o"]) + self.bad(BENCH, "benchmark", lambda d: d["datasets"][0].update(judge=own), "datasets[0].judge") + def test_an_example_is_marked_true_or_false_on_an_agent_or_a_feature(self): self.assertEqual(definitions.problems(dict(AGENT, example=True), "agent"), []) self.bad(AGENT, "agent", lambda d: d.update(example="yes"), "example: true or false") diff --git a/app/tests/test_standard_recipe_served_by.py b/app/tests/test_standard_recipe_served_by.py index 984e27883..4731b3083 100644 --- a/app/tests/test_standard_recipe_served_by.py +++ b/app/tests/test_standard_recipe_served_by.py @@ -70,6 +70,17 @@ def test_each_job_is_pinned_where_it_calls_the_model(self): for part in out["parts"]: self.assertIn("--served-by openai/gpt-4o-mini=prov-a", part["script"]) + def test_each_datasets_own_judge_is_its_jobs(self): + b = judged() + first = dict(b["datasets"][0], judge={"model": "openai/gpt-5", "says": "its own"}) + b = dict(b, datasets=[first, dict(b["datasets"][0], id="more")]) + out = recipe.compile(a_recipe(datasets=["all", "more"], dataset=None, served_by={"judge": ["prov-j"]}), defs(b)) + self.assertEqual(out["errors"], []) + scripts = [p["script"] for p in out["parts"]] + self.assertIn("--served-by openai/gpt-5=prov-j", scripts[0]) + self.assertIn("--served-by openai/gpt-4o-mini=prov-j", scripts[1]) + self.assertIn("judge openai/gpt-5, gpt-4o-mini (official)", next(r for r in out["review"] if r[1] == "Model")[2]) + def test_a_judge_on_its_own_provider_is_named_spelled_and_pinned_by_it(self): d = defs(judged()) r = a_recipe(provider="openai", model="gpt-5-mini", judge_provider="openrouter", served_by={"judge": ["prov-j"]}) diff --git a/app/ui_tests/test_builder_where.py b/app/ui_tests/test_builder_where.py index 4a9e239c5..0c592fe29 100644 --- a/app/ui_tests/test_builder_where.py +++ b/app/ui_tests/test_builder_where.py @@ -122,6 +122,8 @@ def test_every_standard_benchmark_draws_its_where_step_and_says_why_docker_is_no if name.split()[0] == "medagentbench": # its Original starts a server in Docker, out of a container's reach self.assertIn("Docker for the FHIR server cannot be provided in a container", offered) continue + if name.split()[0] == "claw-eval": # its Original starts the sandbox with the machine's Docker + continue self.assertNotIn("disabled", offered) def test_a_setup_whose_option_needs_what_no_image_installs_is_not_offered_the_container(self): diff --git a/app/ui_tests/test_catalogue_routes.py b/app/ui_tests/test_catalogue_routes.py index 305633b0c..50940e20e 100644 --- a/app/ui_tests/test_catalogue_routes.py +++ b/app/ui_tests/test_catalogue_routes.py @@ -128,7 +128,7 @@ def test_every_listed_benchmark_is_a_card_opening_its_page(self): cat = catalog.load() keys = re.findall(r'x.judge);const r=C.createStandard(b.key,'claude-code');r.model='x';" + judged = ("const b=C.standard().benchmarks.find(x=>x.judge&&!x.simulator);const r=C.createStandard(b.key,'claude-code');r.model='x';" "C.setChoice(r,'anthropic');C.setRoleChoice(r,'judge',%s);" "process.stdout.write(JSON.stringify([C.providersOf(r),C.providerBlocker(r),C.blockedProvider(r)]))") self.assertEqual(self.on(['anthropic', 'openrouter'], judged % "''"), diff --git a/docs/agents/supported/README.md b/docs/agents/supported/README.md index 47ed5703c..590f1bf9c 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 - + - - - - - - - - - - - - - + + + + + + + + + + + + +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
claude-code✗✓✓✓✓✓✓✓✓✓✓✓✓✓✓
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✗✓✓✓✓✓✗✓✗✗✓✓✓✓✓
swe-agent✗✗✗✗✗✗✗✗✗✗✓✗✗✗✗
terminus-2✗✗✗✗✗✗✗✗✗✗✗✗✓✗✗
claude-code✓✗✓✓✓✓✓✓✓✓✓✓✓✓✓✓
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✓✗✓✓✓✓✓✗✓✗✗✓✓✓✓✓
swe-agent✗✗✗✗✗✗✗✗✗✗✗✓✗✗✗✗
terminus-2✗✗✗✗✗✗✗✗✗✗✗✗✗✓✗✗
- ✗: the missing port, on hover. diff --git a/docs/agents/supported/claude-code.md b/docs/agents/supported/claude-code.md index a99e91e9d..9122e851d 100644 --- a/docs/agents/supported/claude-code.md +++ b/docs/agents/supported/claude-code.md @@ -32,9 +32,9 @@ Anthropic's coding agent. ## Benchmarks it fits - + - +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
claude-code✗✓✓✓✓✓✓✓✓✓✓✓✓✓✓
claude-code✓✗✓✓✓✓✓✓✓✓✓✓✓✓✓✓
- ✗: the missing port, on hover. diff --git a/docs/agents/supported/codex.md b/docs/agents/supported/codex.md index f2e1be150..dc3a14ff6 100644 --- a/docs/agents/supported/codex.md +++ b/docs/agents/supported/codex.md @@ -35,10 +35,10 @@ OpenAI's coding agent. ## Benchmarks it fits - + - - + +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP 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 a35224f1a..7d8116918 100644 --- a/docs/agents/supported/digitalmate.md +++ b/docs/agents/supported/digitalmate.md @@ -32,10 +32,10 @@ None declared. ## Benchmarks it fits - + - - + +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP 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 49c270ac9..ab51cd23e 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 - + - +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
goose✗✓✓✓✓✓✗✓✗✗✓✓✓✓✓
goose✓✗✓✓✓✓✓✗✓✗✗✓✓✓✓✓
- ✗: the missing port, on hover. diff --git a/docs/agents/supported/jiuwenswarm.md b/docs/agents/supported/jiuwenswarm.md index b3ea192bc..46be8b3a8 100644 --- a/docs/agents/supported/jiuwenswarm.md +++ b/docs/agents/supported/jiuwenswarm.md @@ -37,11 +37,11 @@ openJiuwen's WorkSwarm agent. ## Benchmarks it fits - + - - - + + +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP 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 88b6f86a8..506de7145 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 - + - +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP 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 10a61ea63..66cf32217 100644 --- a/docs/agents/supported/opencode.md +++ b/docs/agents/supported/opencode.md @@ -31,9 +31,9 @@ The open-source terminal coding agent. ## Benchmarks it fits - + - +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP 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 d4423ede0..260e4f3ec 100644 --- a/docs/agents/supported/swe-agent.md +++ b/docs/agents/supported/swe-agent.md @@ -28,9 +28,9 @@ None declared. ## Benchmarks it fits - + - +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP 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 1b37b8587..5340904f2 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 - + - +
ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
noneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation
Claw-EvalClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
MCP tools, ConversationnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP 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 476b1bb88..9b32038da 100644 --- a/docs/benchmarks/supported/README.md +++ b/docs/benchmarks/supported/README.md @@ -12,6 +12,7 @@ Every benchmark in the catalogue: where it runs, what it needs, the ways it runs + @@ -36,6 +37,7 @@ Every benchmark in the catalogue: where it runs, what it needs, the ways it runs
BenchmarkWhat it isCategoryRuns onTasksOrigin
NulliusHarbor
Claw-Eval
claw-eval
Personal-assistant tasks over mock services, the web, media and a sandbox.General assistance✓–300Official
ClawMark
clawmark
Office work over several days, across files, mail, calendar, Notion and Sheets.General assistance✓–100Official
GAIA
gaia
Real-world questions needing reasoning, web research and file understanding.General assistance✓–165Official
GSM8K
gsm8k
Grade-school math word problems that take two to eight steps of basic arithmetic, each with a single numeric answer.Math✓–1319Official
+ diff --git a/docs/benchmarks/supported/claw-eval.md b/docs/benchmarks/supported/claw-eval.md new file mode 100644 index 000000000..c03486b86 --- /dev/null +++ b/docs/benchmarks/supported/claw-eval.md @@ -0,0 +1,92 @@ + + +# Claw-Eval + +Personal-assistant tasks over mock services, the web, media and a sandbox. + +
BenchmarkNeeds, ports provenControls, written byRuns with, any model
noporacleyour agent or Moduleas publishedas published, your model
Claw-Evalagent.tools/v1, agent.conversation/v1Nullius–✓✓✓
ClawMarkNullius–✓✓✓
GAIAagent.task/v1, agent.workspace/v1, agent.search/v1Nulliusan adapter's author✓✓✓
GSM8Kagent.task/v1Nulliusthe authors✓✓✓
+ + + + + + + + +
Keyclaw-eval
CategoryGeneral assistance
OriginOfficial
Runs onNullius
Tasks300
PaperClaw-Eval: Towards Trustworthy Evaluation of Autonomous Agents, arXiv · 2026
Needs, ports provenagent.tools/v1, agent.conversation/v1
+ +## Datasets + +| Dataset | Key | Tasks | From | Verifier | +|---|---|---|---|---| +| General | `general` | 161 | Hugging Face [claw-eval/Claw-Eval](https://huggingface.co/datasets/claw-eval/Claw-Eval/tree/ca978fd82edb77d52f26f4ccf3f9684a8df84341) | Each task's own grader at the pinned commit. | +| Multimodal | `multimodal` | 101 | Hugging Face [claw-eval/Claw-Eval](https://huggingface.co/datasets/claw-eval/Claw-Eval/tree/ca978fd82edb77d52f26f4ccf3f9684a8df84341) | Each task's own grader at the pinned commit. | +| Multi-turn | `multi_turn` | 38 | GitHub [claw-eval/claw-eval](https://github.com/claw-eval/claw-eval/tree/5680b8b11ff2ee5dd2b07b89086a29a5c5c984d7) | Each task's own grader at the pinned commit. | + +## On the standard + +| Control | Written by | +|---|---| +| `nop` | Nullius | + +### Versions + +| Version | Setups as published, whose model | Options | +|---|---|---| +| `claw-eval` | Original · Claw-Eval agent · Like the paper, Like the leaderboard or Any of your choice | `input_modalities`, `reasoning_effort`, `reasoning_field`, `sandbox`, `temperature` | + +## Options + +| Option | Values, default in bold | What it sets | Setups | +|---|---|---|---| +| `input_modalities` | **`text` (Text only)**, `text_image` (Text and images) | Whether a task's attached images are put in its first message; the upstream's default sends text only. | `original` | +| `reasoning_effort` | **`high`**, `medium`, `low`, `default` | Reasoning effort sent to the model; the published configurations send high. | `original` | +| `reasoning_field` | **`provider` (From the provider)**, `reasoning`, `reasoning_content` | The message field that carries earlier reasoning back to the model. | `original` | +| `sandbox` | **`docker`** | --sandbox: each task's shell, files and browser in a container of the upstream's image. | `original`, `yours` | +| `temperature` | default `0.0` | Temperature sent to the model; default sends none. | `original` | + +| Option | Value | Refused without (`host`: the driver's machine; `embeddings`: a model the provider serves) | +|---|---|---| +| `sandbox` | `docker` | host: Docker for the task sandbox | + +## Good to know + +- Each task's grader reads the whole trajectory, the services' audit logs and the sandbox's files. Passed at a task score of 0.75 or more. +- The leaderboard's Pass^3 counts a task when all 3 attempts pass: run 3 attempts per task. +- The judge is gemini-3-flash for General and Multimodal, claude-opus-4.6 for Multi-turn, whose user claude-opus-4.6 plays. Keep them fixed when comparing. +- 63 tasks (35 Multi-turn, 25 General, 3 Multimodal) search the live web: add SERP_DEV_KEY in Settings, Custom keys. +- General and Multimodal download a 2.9 GB archive once. +- Two Multimodal tasks (M029, M051) are graded with ffmpeg on the machine: install it first. + +## Upstream limitations + +- No release tag: pinned to main on 2026-08-04. +- At this commit a judge whose name contains gemini is called at a Gemini URL that OpenRouter does not serve. +- Its judge, simulated user and own agent call only OpenAI-style chat completions, never Anthropic: give them OpenRouter, OpenAI or an OpenAI-compatible endpoint. +- No reference control: the tasks ship with no runnable solution. +- The sandbox image's packages are not pinned. +- While a task runs, its mock services listen on all of the machine's network interfaces, and its sandbox has internet access. + +## Nullius limitations + +- The judge is asked on the upstream's chat completions path under a neutral name, which Nullius's relay replaces with the judge's own. +- The sandbox image is built from the upstream's Dockerfile with its China mirrors replaced by the default servers. +- Another agent replaces the model in the upstream's loop: it gets the upstream's prompt and tools, plus a paragraph on where its tools are. Each tool call counts as one of the task's turns, parallel ones too. +- Another agent gets a task's attached images from the sandbox, never in its first message. +- Original runs on the local backend only: its driver starts the sandbox with the machine's Docker. + +## Cite + +??? citation "BibTeX" + + ```bibtex + @misc{ye2026clawevaltrustworthyevaluationautonomous, + title={Claw-Eval: Towards Trustworthy Evaluation of Autonomous Agents}, + author={Bowen Ye and Rang Li and Qibin Yang and Yuanxin Liu and Linli Yao and Hanglong Lv and Zhihui Xie and Chenxin An and Lei Li and Lingpeng Kong and Qi Liu and Zhifang Sui and Tong Yang}, + year={2026}, + eprint={2604.06132}, + archivePrefix={arXiv}, + primaryClass={cs.AI}, + url={https://arxiv.org/abs/2604.06132}, + } + ``` diff --git a/docs/standard.md b/docs/standard.md index 8a5882361..d6282b91c 100644 --- a/docs/standard.md +++ b/docs/standard.md @@ -447,7 +447,7 @@ An `answer` or `score` error that begins `EnvironmentSetupError: `, `VerifierErr | Field in `standard.json` | Meaning | | --- | --- | | `gated` | `true` for a benchmark whose tasks are gated: a unit's failing model endpoint (the agent's, the judge's, the simulated user's) is kept as its status and class, never the provider's words | -| `score.judge` | `{model, says, retired?, served_as?}`: the official judge. Its route (`-judge`) is asked as that model, recorded beside the unit's calls, never as the agent's. `cli run --judge-model` asks another. `retired: true`: no default; an agent's run without `--judge-model` is refused, a control's gets no judge. `served_as`: `{provider: name}` where a provider lists the model under another name | +| `score.judge` | `{model, says, retired?, served_as?}`: the official judge. Its route (`-judge`) is asked as that model, recorded beside the unit's calls, never as the agent's. A dataset's own `judge`, the same shape, replaces it there. `cli run --judge-model` asks another. `retired: true`: no default; an agent's run without `--judge-model` is refused, a control's gets no judge. `served_as`: `{provider: name}` where a provider lists the model under another name | | `score.experiment_judge` | `{label, model, says}`: a judge beside the score, never in its place, on a benchmark with no official one. Runs only on `--judge-model`, on the same route; `model` is the one its source used, never a default | | `simulator` | `{model, says, served_as?}`, with `agent.conversation/v1` or `agent.computer/v1`: the simulated people's model, on `-simulator`. A conversation opens with a `turn` on an empty transcript, its message after `setup`'s prompt and a blank line; a desktop gets the route in `task_given`. A control never asks it. `cli run --simulator-model` asks another | | `leaderboard` | `{says, simulator?, judge?, bench_options?, repeat?}`: what the upstream's leaderboard fixes besides the ranked model, from its own submission rules - the user simulator's and judge's models, the benchmark's options it sets and the fewest attempts per unit. The builder then offers **Like the leaderboard** |