From 403382ba0c001de2e7fc1405c889b9f4d7fad9f4 Mon Sep 17 00:00:00 2001 From: Etienne Filhol Date: Wed, 2 Dec 2026 03:08:22 +0100 Subject: [PATCH 1/5] fix(catalogue): name a dataset's own source on its page --- app/nullius/catalogue/sources.py | 29 ++++++++++++++++++++--------- app/tests/test_catalogue_sources.py | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+), 9 deletions(-) diff --git a/app/nullius/catalogue/sources.py b/app/nullius/catalogue/sources.py index 1e8dd5ba8..874158123 100644 --- a/app/nullius/catalogue/sources.py +++ b/app/nullius/catalogue/sources.py @@ -2,9 +2,9 @@ A benchmark that runs with Harbor and the Nullius standard reads its data two ways: Harbor from its registry or hub, the standard from the upstream it pins -(a repository at a commit, or a file at a revision) or from the Hugging Face -dataset its driver downloads (``data-source.json``: ``repository`` and -``revision``). Each row names the source, the pin and who fetches it and the files a definition +(a repository at a commit, a file at a revision, or a file at an address of +its own) or from the Hugging Face dataset or GitHub repository its driver +fetches (``data-source.json``: ``repository`` and ``revision``). Each row names the source, the pin and who fetches it and the files a definition checks by their sha256. Nothing here reads the network: it reads the catalogue entry and the definitions beside it. """ @@ -18,6 +18,7 @@ _GITHUB = re.compile(r"^https://github\.com/([^/]+/[^/]+?)(?:\.git)?/?$") _HF = re.compile(r"^https://huggingface\.co/datasets/([^/]+/[^/]+)/resolve/([^/]+)/") _HF_REPO = re.compile(r"^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$") +_URL = re.compile(r"^https?://([^/\s]+)/\S*$") _REVISION = re.compile(r"^[^/\s]+$") @@ -52,7 +53,8 @@ def _files(defined: List[dict]) -> List[dict]: def _data_source(here, key: str = "") -> Optional[tuple]: - """The Hugging Face dataset a driver downloads itself, ``data-source.json`` + """The Hugging Face dataset a driver downloads itself, or the GitHub + repository it fetches its data from (a URL), ``data-source.json`` beside its definition: (repository, revision), or None. A dataset's own entry there (``datasets.``) may name its repository and revision, for a driver that reads several.""" @@ -66,19 +68,28 @@ def _data_source(here, key: str = "") -> Optional[tuple]: repo, rev = own.get("repository", src.get("repository")), own.get("revision", src.get("revision")) except (OSError, ValueError, TypeError, AttributeError): return None - ok = isinstance(repo, str) and _HF_REPO.match(repo) and isinstance(rev, str) and _REVISION.match(rev) + ok = isinstance(repo, str) and (_HF_REPO.match(repo) or _GITHUB.match(repo)) and isinstance(rev, str) and _REVISION.match(rev) return (repo, rev) if ok else None def _own(upstream: dict, defined: List[dict], who: str, source: Optional[tuple] = None) -> dict: - """A row for a harness that reads the upstream itself: from Hugging Face when - its driver names a dataset there (``source``) or every file it names is - there, else from the repository it clones.""" + """A row for a harness that reads the upstream itself: from the GitHub + repository its driver fetches the data from (``source``); from Hugging Face + when its driver names a dataset there or every file it names is there; from + the address of the files it names by a URL elsewhere; else from the + repository it clones.""" hf = [_HF.match(d.get("url") or "") for d in defined] - if source or (defined and all(hf)): + urls = [_URL.match(d.get("url") or "") for d in defined] + if source and _GITHUB.match(source[0]): + row = dict(_repo({"repository": source[0], "tested": source[1]}), + by=f"{who} fetches the repository at this commit on the first run and keeps it") + elif source or (defined and all(hf)): name, rev = source or (hf[0].group(1), hf[0].group(2)) row = {"from": "Hugging Face", "name": name, "href": f"https://huggingface.co/datasets/{name}/tree/{rev}", "pin": rev[:7], "by": f"{who} downloads it on the first run and keeps it"} + elif defined and all(urls): + row = {"from": "Download", "name": urls[0].group(1), "href": urls[0].group(0), "pin": "", + "by": f"{who} downloads it on the first run and keeps it"} else: row = dict(_repo(upstream), by=f"{who} fetches the repository at this commit on the first run and keeps it") row["files"] = _files(defined) diff --git a/app/tests/test_catalogue_sources.py b/app/tests/test_catalogue_sources.py index f7ea2304c..0f1957039 100644 --- a/app/tests/test_catalogue_sources.py +++ b/app/tests/test_catalogue_sources.py @@ -48,6 +48,26 @@ def test_a_dataset_the_driver_downloads_from_hugging_face_names_it_not_the_upstr self.assertEqual((row["from"], row["name"], row["pin"]), ("Hugging Face", "org/data", "0123456")) self.assertEqual(row["href"], f"https://huggingface.co/datasets/org/data/tree/{COMMIT}") + def test_a_dataset_the_driver_fetches_from_another_github_repository_names_it_not_the_upstream(self): + d = catalog.Dataset(key="main", title="Main") + with tempfile.TemporaryDirectory() as here: + std = {"_here": here, "upstream": {"repository": "https://github.com/org/harness", "tested": COMMIT}, + "datasets": [{"id": "main", "units": 3}]} + with open(os.path.join(here, "data-source.json"), "w") as f: + json.dump({"repository": "https://github.com/org/tasks", "revision": "f" * 40}, f) + (row,) = sources.of(d, ["standard"], std) + self.assertEqual((row["from"], row["name"], row["pin"]), ("GitHub", "org/tasks", "fffffff")) + self.assertEqual(row["href"], "https://github.com/org/tasks/tree/" + "f" * 40) + + def test_a_file_at_an_address_outside_hugging_face_names_that_address_not_the_upstream(self): + d = catalog.Dataset(key="main", title="Main") + url = "https://files.example.org/evals/test_set.csv" + std = {"upstream": {"repository": "https://github.com/org/evals", "tested": COMMIT}, + "datasets": [{"id": "main", "url": url, "sha256": "c" * 64, "bytes": 2_000_000}]} + (row,) = sources.of(d, ["standard"], std) + self.assertEqual((row["from"], row["name"], row["href"], row["pin"]), ("Download", "files.example.org", url, "")) + self.assertEqual(row["files"], [{"name": "test_set.csv", "size": "2 MB", "checked": True}]) + def test_a_driver_that_downloads_from_two_repositories_names_each_datasets_own(self): lite, full = catalog.Dataset(key="qa-lite", title="Lite"), catalog.Dataset(key="qa-full", title="Full") other = "f" * 40 From 0413066dc38600c78be81292f560889b8528f866 Mon Sep 17 00:00:00 2001 From: Etienne Filhol Date: Wed, 2 Dec 2026 04:49:16 +0100 Subject: [PATCH 2/5] fix(catalogue): name a download's host only when all its files share it --- app/nullius/catalogue/sources.py | 4 ++-- app/tests/test_catalogue_sources.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/nullius/catalogue/sources.py b/app/nullius/catalogue/sources.py index 874158123..42782d0cf 100644 --- a/app/nullius/catalogue/sources.py +++ b/app/nullius/catalogue/sources.py @@ -76,7 +76,7 @@ def _own(upstream: dict, defined: List[dict], who: str, source: Optional[tuple] """A row for a harness that reads the upstream itself: from the GitHub repository its driver fetches the data from (``source``); from Hugging Face when its driver names a dataset there or every file it names is there; from - the address of the files it names by a URL elsewhere; else from the + the one host of the files it names by a URL elsewhere; else from the repository it clones.""" hf = [_HF.match(d.get("url") or "") for d in defined] urls = [_URL.match(d.get("url") or "") for d in defined] @@ -87,7 +87,7 @@ def _own(upstream: dict, defined: List[dict], who: str, source: Optional[tuple] name, rev = source or (hf[0].group(1), hf[0].group(2)) row = {"from": "Hugging Face", "name": name, "href": f"https://huggingface.co/datasets/{name}/tree/{rev}", "pin": rev[:7], "by": f"{who} downloads it on the first run and keeps it"} - elif defined and all(urls): + elif defined and all(urls) and len({u.group(1) for u in urls}) == 1: row = {"from": "Download", "name": urls[0].group(1), "href": urls[0].group(0), "pin": "", "by": f"{who} downloads it on the first run and keeps it"} else: diff --git a/app/tests/test_catalogue_sources.py b/app/tests/test_catalogue_sources.py index 0f1957039..83dee02e7 100644 --- a/app/tests/test_catalogue_sources.py +++ b/app/tests/test_catalogue_sources.py @@ -67,6 +67,9 @@ def test_a_file_at_an_address_outside_hugging_face_names_that_address_not_the_up (row,) = sources.of(d, ["standard"], std) self.assertEqual((row["from"], row["name"], row["href"], row["pin"]), ("Download", "files.example.org", url, "")) self.assertEqual(row["files"], [{"name": "test_set.csv", "size": "2 MB", "checked": True}]) + # files on two hosts have no one address to name: the upstream's row, as before + std["datasets"].append({"id": "main", "url": "https://other.example.net/more.csv", "sha256": "d" * 64}) + self.assertEqual(sources.of(d, ["standard"], std)[0]["from"], "GitHub") def test_a_driver_that_downloads_from_two_repositories_names_each_datasets_own(self): lite, full = catalog.Dataset(key="qa-lite", title="Lite"), catalog.Dataset(key="qa-full", title="Full") From 21a91a3020a758c67cc30a9121d3003175e9d597 Mon Sep 17 00:00:00 2001 From: Etienne Filhol Date: Wed, 2 Dec 2026 04:55:09 +0100 Subject: [PATCH 3/5] feat(catalogue): add ARC-AGI-2 --- .../benchmarks/arc-agi-2/benchmark.json | 78 ++++ .../benchmarks/arc-agi-2/data-source.json | 13 + .../catalogue/benchmarks/arc-agi-2/driver.py | 384 +++++++++++++++++ .../benchmarks/arc-agi-2/proofs.json | 39 ++ .../benchmarks/arc-agi-2/standard.json | 213 +++++++++ .../arc-agi-2/upstream-settings.json | 408 ++++++++++++++++++ app/static/catalogue/marks.svg | 4 + app/tests/test_catalog.py | 2 +- app/ui_tests/test_catalogue_routes.py | 2 +- docs/agents/supported/README.md | 28 +- docs/agents/supported/claude-code.md | 4 +- docs/agents/supported/codex.md | 6 +- docs/agents/supported/digitalmate.md | 6 +- docs/agents/supported/goose.md | 4 +- docs/agents/supported/jiuwenswarm.md | 8 +- docs/agents/supported/mini-swe-agent.md | 4 +- docs/agents/supported/opencode.md | 4 +- docs/agents/supported/swe-agent.md | 4 +- docs/agents/supported/terminus-2.md | 4 +- docs/benchmarks/supported/README.md | 2 + docs/benchmarks/supported/arc-agi-2.md | 77 ++++ 21 files changed, 1256 insertions(+), 38 deletions(-) create mode 100644 app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json create mode 100644 app/nullius/catalogue/benchmarks/arc-agi-2/data-source.json create mode 100644 app/nullius/catalogue/benchmarks/arc-agi-2/driver.py create mode 100644 app/nullius/catalogue/benchmarks/arc-agi-2/proofs.json create mode 100644 app/nullius/catalogue/benchmarks/arc-agi-2/standard.json create mode 100644 app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json create mode 100644 docs/benchmarks/supported/arc-agi-2.md diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json b/app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json new file mode 100644 index 000000000..c1dd335f4 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json @@ -0,0 +1,78 @@ +{ + "key": "arc-agi-2", + "title": "ARC-AGI-2", + "category": "Reasoning", + "domain": "Grid puzzles: infer the rule from a few example input and output grids, then give the output grid for a new input.", + "scoring": "Exact grid match", + "harness": [ + "standard", + "harbor" + ], + "origin": "official", + "good_to_know": [ + "The 120 tasks hold 167 test inputs. An agent, and Harbor, answer one test input at a time; Original answers one task at a time.", + "Original is ARC Prize's own testing harness with one of its OpenAI or Anthropic model configurations, each on its maker's key: two answers per test input, either one counts, and a task scores the share of its test inputs solved. Its mean over the 120 tasks is ARC Prize's score.", + "Of the 56 configurations offered, ARC Prize publishes public evaluation attempts for 19: GPT-4.1's three and the 16 of Claude Haiku 4.5, Sonnet 4.5 and Opus 4.5.", + "The grid is read from the end of the agent's last message: a JSON list of rows, as the examples in the prompt are written.", + "Every agent runs with its web tools off, as ARC Prize tests models: the tasks and their answers are public.", + "On Harbor the prompt asks for the grid in a file, /testbed/output.json, and a script compares it." + ], + "upstream_limitations": [ + "ARC Prize's leaderboard and competition score models on semi-private and private tasks that are not published. Only the 120 public evaluation tasks run here, and a model may have seen them." + ], + "limitations": [ + "An agent answers each test input once, and its score is the mean over the 167 test inputs. ARC Prize counts either of two answers and takes the mean over the 120 tasks: an agent's score is not ARC Prize's score. Several attempts of an agent are averaged.", + "Original offers 56 of ARC Prize's 139 model configurations: Anthropic's, and OpenAI's less the 24 that run in OpenAI's background mode, GPT-5.1 and GPT-5.2 among them. Google's, OpenRouter's and the other providers' are not offered.", + "The network does not block a web search the model's provider runs: each agent needs its own switch to turn web search off, for a fair comparison." + ], + "datasets": [ + { + "key": "arc-agi-2", + "title": "Public evaluation", + "tasks": 167, + "official": "https://github.com/arcprize/ARC-AGI-2", + "source": "Harbor hub", + "registry": "arcprize/arc-agi-2", + "hub": "arcprize/arc-agi-2", + "verifier": "The answer grid must be the expected output grid, cell for cell. On Nullius, ARC Prize's own parser and scorer read it in the agent's last message.", + "notes": "120 tasks, 167 test inputs. Apache License 2.0." + } + ], + "report": { + "sources": [ + "arcprize/arc-agi-2", + "arc_agi_2" + ] + }, + "citation": "@misc{chollet2026arcagi2newchallengefrontier,\n title={ARC-AGI-2: A New Challenge for Frontier AI Reasoning Systems}, \n author={Francois Chollet and Mike Knoop and Gregory Kamradt and Bryan Landers and Henry Pinkard},\n year={2026},\n eprint={2505.11831},\n archivePrefix={arXiv},\n primaryClass={cs.AI},\n url={https://arxiv.org/abs/2505.11831}, \n}", + "citation_source": "https://arxiv.org/abs/2505.11831", + "evidence": [ + { + "label": "Answer grid", + "path": "grid", + "unless": [ + "none" + ] + }, + { + "label": "Expected grid", + "path": "expected" + }, + { + "label": "Not read", + "path": "unread" + }, + { + "label": "Reply", + "path": "answer" + }, + { + "label": "Solved", + "path": "solved" + }, + { + "label": "Answers", + "path": "answers" + } + ] +} diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/data-source.json b/app/nullius/catalogue/benchmarks/arc-agi-2/data-source.json new file mode 100644 index 000000000..ed32acd40 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/data-source.json @@ -0,0 +1,13 @@ +{ + "repository": "https://github.com/arcprize/ARC-AGI-2", + "revision": "f3283f727488ad98fe575ea6a5ac981e4a188e49", + "license": "Apache-2.0", + "datasets": { + "evaluation": { + "folder": "data/evaluation", + "tasks": 120, + "units": 167, + "sha256": "ddb0a9f8794407f47ff9dc692ef7d3e578ddd503c92f555a4f38b509b0ba05aa" + } + } +} diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/driver.py b/app/nullius/catalogue/benchmarks/arc-agi-2/driver.py new file mode 100644 index 000000000..f29c0bce6 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/driver.py @@ -0,0 +1,384 @@ +"""ARC-AGI-2's driver for the Nullius standard (JSON lines on stdin and stdout). + +The upstream is ARC Prize's testing harness, arc-agi-benchmarking, at the pinned +commit ($NULLIUS_UPSTREAM), installed with its own lock file: its loader, its +prompt, its parser, its runner and its scorer are imported or run, never copied. +The tasks live in another repository, ARC-AGI-2, pinned in data-source.json. + +data - the harness's README clones ARC-AGI-2 beside it; here that repository + is fetched once at its pinned commit, beside the upstream, and its + data/evaluation folder checked against the digest data-source.json + records (each file's name and sha256, in name order) +units - an agent's: one per test input, _ from 0, tasks in name + order as the harness's batch runner lists them. The harness builds one + prompt per test input, so a task with several is several units. + The original setup's: one per task, the harness's own unit +setup - the harness's own prompt for the test input (prompt_manager's + convert_task_pairs_to_prompt over its own loaders' pairs), unchanged +score - an agent's: the last message saved as the harness saves one attempt, + read by its Attempt schema (whose validator runs its parser) and checked + by its ARCScorer.score_task against the task; 1 when the grid is right. + The original's: the submission file main.py wrote, scored by the same + ARCScorer: the share of the task's test inputs solved by one of its attempts +oracle - the test input's own output grid, written as the prompt writes a + training output +answer - a setup's: the harness's main.py, run as its README runs one task + (--data_dir, --config, --task_id, --save_submission_dir), with + --num_attempts from the option of that name; its retries are its own default. + original: --config is one of the harness's own model configurations, by + its name in models.yml, which holds every setting of the call; none is + written here. model: the README's way to add a model, a configuration + entry (name, model_name, provider openai, api_key_env, pricing) in + models_private.yml, the git-ignored file its loader reads beside + models.yml; the temperature option is that entry's temperature. + Either way the configuration's adapter finds the unit's relay as its + SDK reads an address from the environment (OpenAI's OPENAI_BASE_URL, + Anthropic's ANTHROPIC_BASE_URL), and the relay's word in the key + variable the configuration names. Its log, its raw API log and its + submission stay in the unit's folder +preflight - a setup's: the first request the harness's own adapter sends for + that configuration, on a one-line prompt, cut at its SDK's transport + +Ours: fetching and checking the data, naming the units, the filler fields of an +agent's attempt record (no usage, no cost: it came from no adapter), the model +setup's configuration entry, and reading the files the harness wrote. +""" +import contextlib +import fcntl +import hashlib +import importlib.util +import json +import os +import re +import shutil +import subprocess +import sys +import warnings +from datetime import datetime, timezone + +HERE = os.path.dirname(os.path.abspath(__file__)) +UPSTREAM = os.environ["NULLIUS_UPSTREAM"] +DATASET = os.environ.get("NULLIUS_DATASET_ID", "") +# main.py loads a .env from any folder above it. None is read here, by main.py or this process: the +# address and the key are the relay's, and a .env could select Anthropic's workload identity, past the relay. +os.environ["PYTHON_DOTENV_DISABLED"] = "1" +with open(os.path.join(HERE, "data-source.json")) as f: + SOURCE = json.load(f) + +with contextlib.redirect_stdout(sys.stderr): # stdout carries the replies + import yaml # the harness's own, for its configuration file + import arc_agi_benchmarking + from arc_agi_benchmarking import utils + from arc_agi_benchmarking.prompts.prompt_manager import convert_task_pairs_to_prompt + from arc_agi_benchmarking.schemas import ARCTask, BenchmarkedTaskResults + from arc_agi_benchmarking.scoring.scoring import ARCScorer + from pydantic import ValidationError + +PACKAGE = os.path.dirname(os.path.abspath(arc_agi_benchmarking.__file__)) +NUM_ATTEMPTS = os.environ.get("NULLIUS_OPTION_NUM_ATTEMPTS") # an original run's; unset, main.py's own default +TEMPERATURE = os.environ.get("NULLIUS_OPTION_TEMPERATURE", "default") +KEY_ENV = "OPENAI_API_KEY" # the model setup's entry: where the OpenAI adapter is told to read its key +# The adapters whose SDK reads its address from the environment, by the provider a configuration +# names: the variable, and whether the address keeps the relay's /v1 (Anthropic's SDK adds its own). +ADDRESS = {"openai": ("OPENAI_BASE_URL", True), "anthropic": ("ANTHROPIC_BASE_URL", False)} +SUBMISSIONS = "submission" # in the unit's folder: what main.py saves + + +@contextlib.contextmanager +def locked(path): + with open(path, "a") as f: + fcntl.flock(f, fcntl.LOCK_EX) + try: + yield + finally: + fcntl.flock(f, fcntl.LOCK_UN) + + +def digest(folder): + """A folder's files as one sha256: each file's name and its sha256, in name order.""" + h = hashlib.sha256() + for name in sorted(os.listdir(folder)): + with open(os.path.join(folder, name), "rb") as f: + h.update(name.encode() + b"\0" + hashlib.sha256(f.read()).digest()) + return h.hexdigest() + + +FOLDER = [] + + +def data_dir(): + """The dataset's task folder: the data repository at its pinned commit, fetched once and checked.""" + if FOLDER: + return FOLDER[0] + if DATASET not in SOURCE["datasets"]: + raise ValueError(f"no dataset {DATASET}") + own, repo, rev = SOURCE["datasets"][DATASET], SOURCE["repository"], SOURCE["revision"] + root = os.path.join(UPSTREAM, ".arc-agi-2-data", rev) + done = os.path.join(root, ".fetched") + if not os.path.exists(done): + os.makedirs(os.path.dirname(root), exist_ok=True) + with locked(root + ".lock"): + if not os.path.exists(done): + shutil.rmtree(root, ignore_errors=True) # a fetch that broke halfway + os.makedirs(root) + for cmd in (["git", "init", "--quiet"], ["git", "fetch", "--quiet", "--depth", "1", repo, rev], + ["git", "checkout", "--quiet", "FETCH_HEAD"]): + try: + rc = subprocess.run(cmd, cwd=root, stdout=sys.stderr, stderr=sys.stderr, + env=dict(os.environ, GIT_TERMINAL_PROMPT="0")).returncode + except OSError as e: + raise RuntimeError(f"EnvironmentSetupError: the tasks need git on this machine: {e}") + if rc != 0: + raise RuntimeError(f"EnvironmentSetupError: could not fetch the tasks, {repo} at {rev[:12]}: " + f"git {cmd[1]} exited {rc}") + open(done, "w").close() + folder = os.path.join(root, own["folder"]) + if digest(folder) != own["sha256"]: + raise RuntimeError(f"EnvironmentSetupError: {repo} at {rev[:12]}: {own['folder']} is not the folder its sha256 names") + FOLDER.append(folder) + return folder + + +def tasks(): + """The task ids, in name order: as the harness's batch runner lists a data folder.""" + return sorted(name[:-5] for name in os.listdir(data_dir()) if name.endswith(".json")) + + +def test_inputs(task): + return utils.get_test_pairs_from_task(data_dir(), task) # the harness's loader: each test pair, its output too + + +def units(dataset, setup=None): + if setup: + return {"units": tasks()} + found = [f"{task}_{k}" for task in tasks() for k in range(len(test_inputs(task)))] + if (len(tasks()), len(found)) != (SOURCE["datasets"][DATASET]["tasks"], SOURCE["datasets"][DATASET]["units"]): + raise ValueError(f"{len(tasks())} tasks and {len(found)} test inputs, not those data-source.json records") + return {"units": found} + + +def split(unit): + task, _, k = unit.rpartition("_") + if task not in tasks() or not k.isdigit() or int(k) >= len(test_inputs(task)): + raise ValueError(f"no test input {unit}") + return task, int(k) + + +def setup(unit, dir): + task, k = split(unit) + folder = data_dir() + return {"prompt": convert_task_pairs_to_prompt(utils.get_train_pairs_from_task(folder, task), + utils.get_test_input_from_task(folder, task)[k])} + + +def oracle(unit, dir): + task, k = split(unit) + return {"answer": json.dumps(test_inputs(task)[k].output)} + + +def attempt_record(task, k, text): + """A reply as the harness saves one attempt. The fields its schema requires hold nothing: + the reply came from no adapter, so it has no model, usage or cost of the harness's.""" + now = datetime.now(timezone.utc).isoformat() + usage = {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0, + "completion_tokens_details": {"reasoning_tokens": 0, "accepted_prediction_tokens": 0, "rejected_prediction_tokens": 0}} + return {"answer": text, "metadata": {"model": "", "provider": "", "start_timestamp": now, "end_timestamp": now, "choices": [], + "kwargs": {}, "usage": usage, "task_id": task, "pair_index": k, + "cost": {"prompt_cost": 0.0, "completion_cost": 0.0, "total_cost": 0.0}}} + + +SCORER = [] + + +def scorer(): + if not SCORER: + SCORER.append(ARCScorer(task_dir=data_dir(), submission_dir=data_dir())) # its solutions: the task files + return SCORER[0] + + +def scored(task, saved): + """A task's saved attempts read and scored as the harness's scorer does a submission file + (score_task_from_file): its Attempt schema reads each grid with its own parser, its + score_task marks each attempt right or wrong. Its ScoringResult, and the attempts marked.""" + results = BenchmarkedTaskResults(test_pairs=saved) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") # its warnings for an attempt left empty, which it scores 0 + result = ARCScorer.score_task(ARCTask.from_dict(scorer().solutions[task]), results) + return result, results + + +def score(unit, dir, transcript, answer, setup=None, **_): + if setup: + return score_task(unit, dir) + task, k = split(unit) + expected = json.dumps(test_inputs(task)[k].output) + said = (answer or "")[-4000:] + try: + _, results = scored(task, [{"attempt_1": attempt_record(task, k, answer or "")}]) + except ValidationError as e: # its parser found no grid, or its schema refused what it found + why = "; ".join(str(x.get("msg")) for x in e.errors())[:300] + return {"reward": 0.0, "detail": {"grid": None, "expected": expected, "unread": why, "answer": said, + "dataset_revision": SOURCE["revision"]}} + attempt = results[0][0] + return {"reward": 1.0 if attempt.correct else 0.0, + "detail": {"grid": json.dumps(attempt.answer), "expected": expected, "answer": said, + "dataset_revision": SOURCE["revision"]}} + + +PUBLISHED, SERVED_AS = {}, {} # the harness's models.yml by name; standard.json's served_as + + +def published(name): + """One of the harness's own configurations, by its name in models.yml, when a run here can + serve it: its adapter's SDK reads its address from the environment (ADDRESS), it names the + variable its key is read from and no address of its own, so that its client finds the unit's + relay; and the model it names is the one standard.json has the relay send for it.""" + if not PUBLISHED: + with open(os.path.join(HERE, "standard.json")) as f: + SERVED_AS.update(json.load(f)["setups"]["original"].get("served_as") or {}) + with open(os.path.join(PACKAGE, "models.yml")) as f: + PUBLISHED.update({m["name"]: m for m in yaml.safe_load(f)["models"]}) + entry = PUBLISHED.get(name) + if entry is None: + raise RuntimeError(f"EnvironmentSetupError: the harness's models.yml has no configuration {name}") + sent = SERVED_AS.get(name, name) + wrong = [said for said, bad in ((f"its provider is {entry.get('provider')}", entry.get("provider") not in ADDRESS), + ("it names no variable for its key", not entry.get("api_key_env")), + ("it names an address of its own", bool(entry.get("base_url"))), + (f"it asks {entry.get('model_name')}, and standard.json sends {sent}", entry.get("model_name") != sent)) + if bad] + if wrong: + raise RuntimeError(f"EnvironmentSetupError: the harness's configuration {name} cannot run through the relay: " + "; ".join(wrong)) + return entry + + +def config_for(model): + """The model setup's configuration, by its name: an entry in the harness's + models_private.yml, written once for a model and a temperature.""" + entry = {"model_name": model, "provider": "openai", "api_key_env": KEY_ENV, + "pricing": {"date": "none", "input": 0.0, "output": 0.0}} + if TEMPERATURE != "default": + entry["temperature"] = float(TEMPERATURE) + mark = hashlib.sha256(json.dumps(entry, sort_keys=True).encode()).hexdigest()[:8] + name = "nullius-" + re.sub(r"[^A-Za-z0-9._-]+", "-", model).strip("-") + "-" + mark + path = os.path.join(PACKAGE, "models_private.yml") + with locked(path + ".lock"): + held = {"models": []} + if os.path.exists(path): + with open(path) as f: + held = yaml.safe_load(f) or held + if not any(m.get("name") == name for m in held.get("models") or []): + held.setdefault("models", []).append(dict(name=name, **entry)) + with open(path + ".new", "w") as f: + yaml.safe_dump(held, f, sort_keys=False) + os.replace(path + ".new", path) # a reader finds the old file or the new, never half of one + return name + + +def config_of(setup, model): + """A setup's configuration: (main.py's --config, the provider it names, the variable its key is read + from). The published configuration asked for, or the model setup's own entry.""" + if setup not in ("original", "model"): + raise ValueError(f"ARC-AGI-2 has no {setup} setup") + if setup == "model": + return config_for(model), "openai", KEY_ENV + entry = published(model) + return model, entry["provider"], entry["api_key_env"] + + +def through_relay(provider, key_env, base_url, key): + """What points a configuration's SDK at the unit's relay (its base URL ends in /v1): the relay's + word in the key variable its adapter reads, the address where its SDK reads one.""" + variable, v1 = ADDRESS[provider] + return {key_env: key, variable: base_url if v1 else base_url.removesuffix("/v1")} + + +HARNESS = [] + + +def adapter_of(provider): + """The adapter main.py runs for a provider: its own table, from main.py loaded as a module.""" + if not HARNESS: + spec = importlib.util.spec_from_file_location("arc_agi_benchmarking_main", os.path.join(UPSTREAM, "main.py")) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + HARNESS.append(module) + return HARNESS[0].PROVIDER_ADAPTERS[provider] + + +def preflight(participant, model, roles, setup=None, **_): + """A setup's first request, as the harness's own adapter sends it for the run's configuration, + captured with no network: its SDK's transport is cut at send. The prompt is one line.""" + if participant != "setup" or "agent" not in roles: + return {"requests": []} + from unittest.mock import patch + import httpx + + class Captured(BaseException): # past the adapter's own handlers + def __init__(self, request): + self.request = {"role": "agent", "path": request.url.raw_path.decode(), "body": json.loads(request.content), + "headers": {k: v for k, v in request.headers.items() if k in ("anthropic-beta", "anthropic-version")}} + + def send(client, request, **kw): + raise Captured(request) + + config, provider, key_env = config_of(setup, model) + with patch.dict(os.environ, through_relay(provider, key_env, "http://127.0.0.1:9/v1", "nullius-relay")), \ + patch.object(httpx.Client, "send", send): + try: + adapter_of(provider)(config).make_prediction("Compatibility check. Reply OK.") + except Captured as captured: + return {"requests": [captured.request]} + raise RuntimeError(f"the harness's adapter sent no request for {config}") + + +def answer(unit, dir, setup, model, base_url, key, **_): + config, provider, key_env = config_of(setup, model) + if unit not in tasks(): + raise ValueError(f"no task {unit}") + out = os.path.join(dir, SUBMISSIONS) + argv = [sys.executable, os.path.join(UPSTREAM, "main.py"), "--data_dir", data_dir(), "--config", config, + "--task_id", unit, "--save_submission_dir", out] + (["--num_attempts", NUM_ATTEMPTS] if NUM_ATTEMPTS else []) + logname = os.path.join(dir, "main.log") + with open(logname, "w") as log: + rc = subprocess.run(argv, cwd=dir, env=dict(os.environ, **through_relay(provider, key_env, base_url, key)), + stdout=log, stderr=subprocess.STDOUT).returncode + if rc != 0: + with open(logname, errors="replace") as f: + tail = [ln for ln in f.read().splitlines() if ln.strip()][-3:] + raise RuntimeError(f"main.py exited {rc}: " + " | ".join(tail)[-600:]) + with open(os.path.join(out, unit + ".json")) as f: + saved = json.load(f) + grids = {str(k): {name: (a or {}).get("answer") for name, a in pair.items()} for k, pair in enumerate(saved)} + return {"answer": json.dumps(grids), "model": model} + + +def score_task(unit, dir): + """The original's task: the harness's own score of the submission main.py wrote.""" + with open(os.path.join(dir, SUBMISSIONS, unit + ".json")) as f: + saved = json.load(f) + result, results = scored(unit, saved) + word = lambda a: "no grid" if a is None else "right" if a.correct else "wrong" + solved = sum(1 for pair in results if any(a is not None and a.correct for a in pair)) + return {"reward": result.score, + "detail": {"solved": f"{solved} of {len(saved)} test inputs", + "answers": {f"Test input {k + 1}": ", ".join(word(a) for a in pair) for k, pair in enumerate(results)}, + "dataset_revision": SOURCE["revision"]}} + + +HANDLERS = {"units": units, "setup": setup, "score": score, "oracle": oracle, "answer": answer, "preflight": preflight} + + +def main(): + for line in sys.stdin: + try: + req = json.loads(line) + with contextlib.redirect_stdout(sys.stderr): + out = HANDLERS[req.pop("op")](**req) + except Exception as e: + out = {"error": f"{type(e).__name__}: {e}"} + print(json.dumps(out), flush=True) + + +if __name__ == "__main__": + main() diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/proofs.json b/app/nullius/catalogue/benchmarks/arc-agi-2/proofs.json new file mode 100644 index 000000000..3af1a066b --- /dev/null +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/proofs.json @@ -0,0 +1,39 @@ +{ + "schema": "nullius.proofs/v1", + "kind": "benchmark", + "key": "arc-agi-2", + "versions": { + "": { + "proven": { + "evaluation": { + "units": { + "units": 167, + "passed": "167 ids, the same twice, unique" + }, + "leak": { + "units": 167, + "looked_for": 167, + "short": 0, + "passed": "167/167" + }, + "nop": { + "passed": "0/167", + "value": 0.0, + "expect": { + "at_most": 0.0 + }, + "units": 167 + }, + "oracle": { + "passed": "167/167", + "value": 1.0, + "expect": { + "at_least": 1.0 + }, + "units": 167 + } + } + } + } + } +} diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/standard.json b/app/nullius/catalogue/benchmarks/arc-agi-2/standard.json new file mode 100644 index 000000000..0c8febdca --- /dev/null +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/standard.json @@ -0,0 +1,213 @@ +{ + "schema": "nullius.benchmark/v1", + "key": "arc-agi-2", + "label": "ARC-AGI-2", + "summary": "Each unit is one test input of a task, in the prompt ARC Prize's harness builds from the task's example grids; the grid its parser reads in the agent's last message must be the expected output grid, cell for cell.", + "family": "agent", + "needs": [ + "agent.task/v1" + ], + "upstream": { + "repository": "https://github.com/arcprize/arc-agi-benchmarking", + "tested": "78f2d3eacb86587d1438ab14f08fb56811eb1f1c", + "tested_date": "2026-11-19", + "license": "MIT" + }, + "driver": { + "command": [ + "{install}/.venv/bin/python", + "{here}/driver.py" + ], + "install": { + "python": "3.12", + "project": ".", + "locked": true + }, + "preflight": true + }, + "datasets": [ + { + "id": "evaluation", + "label": "Public evaluation", + "units": 167 + } + ], + "units": { + "noun": "test input", + "nouns": "test inputs" + }, + "controls": { + "nop": { + "source": "nullius", + "from": "Nullius: no agent runs; the answer is empty and the workspace is left as setup made it." + }, + "oracle": { + "source": "official", + "from": "The task file's own output grid for the test input, written as the prompt writes a training output." + } + }, + "score": { + "kind": "score", + "says": "1 when the grid ARC Prize's harness reads in the answer (its Attempt schema and parser) is the test input's expected output, by its ARCScorer.score_task, else 0; an Original task scores the share of its test inputs solved by one of its answers, as that scorer gives it" + }, + "limits": { + "turn_seconds": 1800, + "call_seconds": 1860 + }, + "agent_options": { + "web_tools": "off" + }, + "setups": { + "original": { + "summary": "ARC Prize's testing harness runs its own main.py on one task with one of its own model configurations, chosen by name: the configuration holds the model, the API, the token limit, reasoning and streaming.\n\nIts prompt, one call per answer, two answers for each test input, each asked once more when the call fails or no grid can be read.\n\nIts own scorer gives the task the share of its test inputs solved by either answer. The mean over the 120 tasks is ARC Prize's score.", + "models": [ + "gpt-5-2025-08-07-high", + "gpt-5-2025-08-07-medium", + "gpt-5-2025-08-07-low", + "gpt-5-2025-08-07-minimal", + "gpt-5-mini-2025-08-07-high", + "gpt-5-mini-2025-08-07-medium", + "gpt-5-mini-2025-08-07-low", + "gpt-5-mini-2025-08-07-minimal", + "gpt-5-nano-2025-08-07-high", + "gpt-5-nano-2025-08-07-medium", + "gpt-5-nano-2025-08-07-low", + "gpt-5-nano-2025-08-07-minimal", + "codex-mini-latest", + "o3-2025-04-16-low", + "o4-mini-2025-04-16-medium", + "o4-mini-2025-04-16-low", + "gpt-4-1-nano-2025-04-14", + "gpt-4-1-mini-2025-04-14", + "gpt-4-1-2025-04-14", + "gpt-4o-2024-11-20", + "gpt-4o-2024-05-13", + "gpt-4o-mini-2024-07-18", + "gpt-4-5-preview-2025-02-27", + "o3-mini-2025-01-31-high", + "o3-mini-2025-01-31-medium", + "o3-mini-2025-01-31-low", + "o1-2024-12-17-low", + "o1-2024-12-17-medium", + "o1-2024-12-17-high", + "gpt4o_mini", + "gpt-4.5-2025-02-21-alpha", + "o1-preview-2024-09-12", + "o1-mini-2024-09-12", + "claude-opus-4-5-20251101-thinking-64k", + "claude-opus-4-5-20251101-thinking-32k", + "claude-opus-4-5-20251101-thinking-16k", + "claude-opus-4-5-20251101-thinking-8k", + "claude-opus-4-5-20251101-thinking-1k", + "claude-opus-4-5-20251101-thinking-none", + "claude-haiku-4-5-20251001-thinking-32k", + "claude-haiku-4-5-20251001-thinking-16k", + "claude-haiku-4-5-20251001-thinking-8k", + "claude-haiku-4-5-20251001-thinking-1k", + "claude-haiku-4-5-20251001", + "claude-sonnet-4-5-20250929-thinking-32k", + "claude-sonnet-4-5-20250929-thinking-16k", + "claude-sonnet-4-5-20250929-thinking-8k", + "claude-sonnet-4-5-20250929-thinking-1k", + "claude-sonnet-4-5-20250929", + "claude-3-7-sonnet-20250219", + "claude-3-7-sonnet-20250219-thinking-1k", + "claude-3-7-sonnet-20250219-thinking-8k", + "claude-3-7-sonnet-20250219-thinking-16k", + "claude-3-5-sonnet-20241022", + "claude_haiku", + "claude_opus" + ], + "default": "gpt-4o-2024-11-20", + "served_as": { + "gpt-5-2025-08-07-high": "gpt-5-2025-08-07", + "gpt-5-2025-08-07-medium": "gpt-5-2025-08-07", + "gpt-5-2025-08-07-low": "gpt-5-2025-08-07", + "gpt-5-2025-08-07-minimal": "gpt-5-2025-08-07", + "gpt-5-mini-2025-08-07-high": "gpt-5-mini-2025-08-07", + "gpt-5-mini-2025-08-07-medium": "gpt-5-mini-2025-08-07", + "gpt-5-mini-2025-08-07-low": "gpt-5-mini-2025-08-07", + "gpt-5-mini-2025-08-07-minimal": "gpt-5-mini-2025-08-07", + "gpt-5-nano-2025-08-07-high": "gpt-5-nano-2025-08-07", + "gpt-5-nano-2025-08-07-medium": "gpt-5-nano-2025-08-07", + "gpt-5-nano-2025-08-07-low": "gpt-5-nano-2025-08-07", + "gpt-5-nano-2025-08-07-minimal": "gpt-5-nano-2025-08-07", + "o3-2025-04-16-low": "o3-2025-04-16", + "o4-mini-2025-04-16-medium": "o4-mini-2025-04-16", + "o4-mini-2025-04-16-low": "o4-mini-2025-04-16", + "gpt-4-1-nano-2025-04-14": "gpt-4.1-nano-2025-04-14", + "gpt-4-1-mini-2025-04-14": "gpt-4.1-mini-2025-04-14", + "gpt-4-1-2025-04-14": "gpt-4.1-2025-04-14", + "gpt-4-5-preview-2025-02-27": "gpt-4.5-preview-2025-02-27", + "o3-mini-2025-01-31-high": "o3-mini-2025-01-31", + "o3-mini-2025-01-31-medium": "o3-mini-2025-01-31", + "o3-mini-2025-01-31-low": "o3-mini-2025-01-31", + "o1-2024-12-17-low": "o1-2024-12-17", + "o1-2024-12-17-medium": "o1-2024-12-17", + "o1-2024-12-17-high": "o1-2024-12-17", + "gpt4o_mini": "gpt-4o-mini", + "claude-opus-4-5-20251101-thinking-64k": "claude-opus-4-5-20251101", + "claude-opus-4-5-20251101-thinking-32k": "claude-opus-4-5-20251101", + "claude-opus-4-5-20251101-thinking-16k": "claude-opus-4-5-20251101", + "claude-opus-4-5-20251101-thinking-8k": "claude-opus-4-5-20251101", + "claude-opus-4-5-20251101-thinking-1k": "claude-opus-4-5-20251101", + "claude-opus-4-5-20251101-thinking-none": "claude-opus-4-5-20251101", + "claude-haiku-4-5-20251001-thinking-32k": "claude-haiku-4-5-20251001", + "claude-haiku-4-5-20251001-thinking-16k": "claude-haiku-4-5-20251001", + "claude-haiku-4-5-20251001-thinking-8k": "claude-haiku-4-5-20251001", + "claude-haiku-4-5-20251001-thinking-1k": "claude-haiku-4-5-20251001", + "claude-sonnet-4-5-20250929-thinking-32k": "claude-sonnet-4-5-20250929", + "claude-sonnet-4-5-20250929-thinking-16k": "claude-sonnet-4-5-20250929", + "claude-sonnet-4-5-20250929-thinking-8k": "claude-sonnet-4-5-20250929", + "claude-sonnet-4-5-20250929-thinking-1k": "claude-sonnet-4-5-20250929", + "claude-3-7-sonnet-20250219-thinking-1k": "claude-3-7-sonnet-20250219", + "claude-3-7-sonnet-20250219-thinking-8k": "claude-3-7-sonnet-20250219", + "claude-3-7-sonnet-20250219-thinking-16k": "claude-3-7-sonnet-20250219", + "claude_haiku": "claude-3-5-haiku-latest", + "claude_opus": "claude-3-opus-latest" + }, + "providers": { + "openai": "", + "anthropic": "", + "custom": "" + }, + "apis": [ + "chat", + "responses", + "messages" + ], + "units": { + "noun": "task", + "nouns": "tasks" + }, + "turn_seconds": 21600, + "paper": "ARC Prize's published public evaluation attempts and results (Hugging Face arcprize/arc_agi_v2_public_eval), one folder per model configuration", + "comparable": false + }, + "model": { + "summary": "The same harness with any model: a configuration of its own, added as the harness's README adds a model, asked through its OpenAI adapter with chat completions and no other setting. The relay sends the model chosen. Its scores compare with other runs of this setup, not with ARC Prize's.", + "runs_as": "gpt-4o-2024-11-20" + } + }, + "options": { + "num_attempts": { + "label": "Answers per test input", + "summary": "How many answers the harness asks for each test input; one right answer solves it. 2 is ARC Prize's rule.", + "pattern": "[1-9]", + "default": "2", + "setups": [ + "original", + "model" + ] + }, + "temperature": { + "summary": "Sampling randomness. Provider default sends no temperature; enter a non-negative decimal to override it. Accepted values depend on the model.", + "default": "default", + "setups": [ + "model" + ], + "pattern": "default|(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?", + "example": "0.5" + } + } +} diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json b/app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json new file mode 100644 index 000000000..118f4b574 --- /dev/null +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json @@ -0,0 +1,408 @@ +[ + { + "entry": "arcprize/ARC-AGI-2", + "setting": "data/evaluation", + "values": "120 public evaluation tasks, 167 test inputs", + "default": "", + "nullius": "dataset:evaluation" + }, + { + "entry": "arcprize/ARC-AGI-2", + "setting": "data/training", + "values": "1,000 public training tasks", + "default": "", + "nullius": "not offered - the data's README gives this set to train models and the evaluation set to test them; the harness's README runs evaluation sets, and ARC Prize publishes no score on it" + }, + { + "entry": "arcprize/ARC-AGI-2", + "setting": "semi-private and private evaluation sets", + "values": "120 tasks each", + "default": "", + "nullius": "not offered - not published: ARC Prize keeps both" + }, + { + "entry": "README", + "setting": "data/arc-agi from the 2019 repository", + "values": "git clone https://github.com/fchollet/ARC-AGI.git data/arc-agi", + "default": "", + "nullius": "not offered - another benchmark's tasks" + }, + { + "entry": "README", + "setting": "data/sample/tasks", + "values": "two sample tasks and a sample submission", + "default": "data/sample/tasks", + "nullius": "not offered - the harness's own fixture for its quickstart and tests" + }, + { + "entry": "main.py", + "setting": "--data_dir", + "values": "a folder of task files", + "default": "", + "nullius": "fixed:data/evaluation of ARC-AGI-2 at its pinned commit - the dataset" + }, + { + "entry": "main.py", + "setting": "--task_id", + "values": "one task", + "default": "", + "nullius": "fixed:the unit's task - an Original unit is one task, as one main.py run is" + }, + { + "entry": "main.py", + "setting": "--config", + "values": "a configuration of models.yml or models_private.yml, by its name", + "default": "none; cli/run_all.py's is gpt-4o-2024-11-20", + "nullius": "setup:original" + }, + { + "entry": "main.py", + "setting": "--save_submission_dir", + "values": "a folder", + "default": "", + "nullius": "fixed:the unit's own folder - its submission file is what the scorer reads" + }, + { + "entry": "main.py", + "setting": "--num_attempts", + "values": "a whole number", + "default": "2", + "nullius": "option:num_attempts" + }, + { + "entry": "main.py", + "setting": "--retry_attempts", + "values": "a whole number", + "default": "2", + "nullius": "fixed:2 - the upstream's default, not passed: each answer is asked once more when the call fails or no grid is read" + }, + { + "entry": "main.py", + "setting": "--overwrite_submission", + "values": "flag", + "default": "off", + "nullius": "fixed:off - the upstream's default: a unit's folder holds no earlier submission" + }, + { + "entry": "main.py", + "setting": "--task_set", + "values": "public_eval, public_training", + "default": "public_eval", + "nullius": "fixed:public_eval - the upstream's default; main.py reads it nowhere" + }, + { + "entry": "main.py", + "setting": "--print_submission, --verbose, --enable-metrics", + "values": "flags", + "default": "off", + "nullius": "fixed:off - the upstream's defaults: logging and timing files only, no effect on answers or score" + }, + { + "entry": "main.py", + "setting": ".env (load_dotenv)", + "values": "variables from a .env file found above main.py", + "default": "on", + "nullius": "fixed:off - PYTHON_DOTENV_DISABLED in main.py's environment: the address and the key are the relay's, and a .env above the harness could select Anthropic's workload identity, past the relay" + }, + { + "entry": "main.py", + "setting": "raw API log (logs///openai.jsonl)", + "values": "every request and reply, unredacted", + "default": "on", + "nullius": "fixed:on - the upstream's default; written in the unit's folder" + }, + { + "entry": "prompts/system_prompt.txt", + "setting": "prompt", + "values": "the training pairs and one test input as JSON grids, 'Respond in the format of the training output examples'", + "default": "", + "nullius": "fixed:as published - prompt_manager.convert_task_pairs_to_prompt, imported: an agent's prompt and the Original's" + }, + { + "entry": "schemas.py, utils/parsing.py", + "setting": "reading a reply (Attempt, parse_and_validate_json)", + "values": "a grid in \\boxed{}, else the last bracketed JSON list of lists", + "default": "", + "nullius": "fixed:as published - the harness's Attempt schema reads an agent's last message and the Original's replies" + }, + { + "entry": "adapters/openai_base.py", + "setting": "extract_json_from_response (a second model call that extracts the grid)", + "values": "", + "default": "", + "nullius": "fixed:as published - main.py calls it only for a reply its parser returned unread, and the parser raises instead: it is never reached" + }, + { + "entry": "scoring/scoring.py", + "setting": "score", + "values": "a test pair is solved when any attempt equals its output; a task scores solved pairs / pairs; the final score is the mean over tasks", + "default": "", + "nullius": "fixed:as published - ARCScorer.score_task, imported; the job's mean over tasks is its final score" + }, + { + "entry": "scoring/scoring.py", + "setting": "--task_dir, --submission_dir, --results_dir, --print_logs", + "values": "folders, a flag", + "default": "", + "nullius": "fixed:the dataset's tasks and the unit's submission - the driver calls the scorer on one task; its results.json is Nullius's job" + }, + { + "entry": "models.yml", + "setting": "configurations of provider openai on OPENAI_API_KEY, not in background mode (33)", + "values": "16 on chat completions, 17 on the Responses API, 7 of those streamed", + "default": "gpt-4o-2024-11-20 (cli/run_all.py)", + "nullius": "setup:original" + }, + { + "entry": "models.yml", + "setting": "configurations of provider openai in background mode (24)", + "values": "GPT-5.1, GPT-5.2, the pro models, o3 and o4-mini high on the Responses API", + "default": "", + "nullius": "not offered - the relay passes a background call's start and polls, but answers its delete itself (501) and records no cost for the reply a poll brings, so a spending cap would not hold" + }, + { + "entry": "models.yml", + "setting": "baseten-glm-5-2 (provider openai, its own base_url and key)", + "values": "", + "default": "", + "nullius": "not offered - its address is Baseten's, written in the configuration: the relay is not its endpoint" + }, + { + "entry": "models.yml", + "setting": "configurations of provider openrouter (13)", + "values": "chat completions", + "default": "", + "nullius": "not offered - the adapter's address is fixed in its code (adapters/openrouter.py): its calls cannot be sent through the relay" + }, + { + "entry": "models.yml", + "setting": "configurations of provider anthropic (23)", + "values": "Anthropic's Messages API: 4 plain, 3 with thinking, 3 streamed, 13 streamed with thinking", + "default": "", + "nullius": "setup:original" + }, + { + "entry": "models.yml", + "setting": "configurations of provider gemini (17)", + "values": "Google's SDK", + "default": "", + "nullius": "not offered - Google's own API, which no run provider serves" + }, + { + "entry": "models.yml", + "setting": "configurations of providers grok, xai, deepseek, fireworks, huggingfacefireworks, together, dashscope, mulerouter (22)", + "values": "", + "default": "", + "nullius": "not offered - each adapter calls its vendor's own API, which no run provider serves" + }, + { + "entry": "models.yml", + "setting": "configurations of providers claudeagentsdk and codexcli (5)", + "values": "a vendor's agent SDK or CLI", + "default": "", + "nullius": "not offered - an agent, not a model call: the catalogue's agents run through the agent port" + }, + { + "entry": "models.yml", + "setting": "random-baseline (provider random)", + "values": "a random solver, the README's dry run", + "default": "", + "nullius": "not offered - it calls no model" + }, + { + "entry": "models.yml", + "setting": "provider", + "values": "openai, anthropic, gemini, openrouter, deepseek, fireworks, grok, xai, dashscope, mulerouter, huggingfacefireworks, together, claudeagentsdk, codexcli, random", + "default": "", + "nullius": "setup:original" + }, + { + "entry": "models.yml", + "setting": "api_type", + "values": "chat_completions, responses", + "default": "chat_completions", + "nullius": "setup:original" + }, + { + "entry": "models.yml", + "setting": "base_url, api_key_env", + "values": "an address, a variable's name", + "default": "the provider's own; OPENAI_API_KEY, ANTHROPIC_API_KEY", + "nullius": "fixed:the unit's relay - an offered configuration names no base_url, so its SDK reads the address from the environment (OPENAI_BASE_URL, ANTHROPIC_BASE_URL); the key variable it names holds the relay's word, never a key" + }, + { + "entry": "models.yml", + "setting": "temperature", + "values": "a number, optional; three offered configurations set 0.0, and the option is the model setup's", + "default": "unset", + "nullius": "option:temperature" + }, + { + "entry": "models.yml", + "setting": "max_tokens, max_completion_tokens, max_output_tokens", + "values": "a number, optional, set per published configuration", + "default": "unset", + "nullius": "setup:original" + }, + { + "entry": "models.yml", + "setting": "reasoning, reasoning_effort, thinking, thinking_config", + "values": "per published configuration", + "default": "unset", + "nullius": "setup:original" + }, + { + "entry": "models.yml", + "setting": "stream", + "values": "true, false", + "default": "false", + "nullius": "setup:original" + }, + { + "entry": "models.yml", + "setting": "background", + "values": "true, false", + "default": "false", + "nullius": "fixed:false - the 24 configurations that set it are not offered: the relay answers a background call's delete itself and records no cost for a polled reply" + }, + { + "entry": "models.yml", + "setting": "batch, betas", + "values": "Anthropic's Message Batches API; beta features passed to its SDK", + "default": "unset", + "nullius": "fixed:unset - no configuration at the pin sets either" + }, + { + "entry": "models.yml", + "setting": "top_p, extra_body, other SDK arguments", + "values": "passed to the SDK as written", + "default": "unset", + "nullius": "not offered - set only by configurations of providers that are not offered" + }, + { + "entry": "models.yml", + "setting": "pricing", + "values": "USD per million tokens, a date", + "default": "", + "nullius": "fixed:as each configuration has it - the harness's own cost metadata only, 0 in the model setup's entry; the relay records the run's cost" + }, + { + "entry": "models.yml", + "setting": "rate_limit", + "values": "requests per period, per configuration", + "default": "unset", + "nullius": "not offered - read by the batch runner alone" + }, + { + "entry": "README", + "setting": "Testing a new model (an entry added for it, then --config)", + "values": "name, model_name, provider, api_key_env, pricing; optional SDK arguments", + "default": "", + "nullius": "setup:model" + }, + { + "entry": "adapters/open_ai.py", + "setting": "client timeout and retries", + "values": "timeout 1800 seconds, max_retries 0", + "default": "", + "nullius": "fixed:as published - a task's limit here is 12 such calls (3 test inputs, 2 answers, 2 tries), an agent's the one call's" + }, + { + "entry": "adapters/anthropic.py", + "setting": "client timeout and retries", + "values": "the SDK's own timeout, max_retries 0", + "default": "", + "nullius": "fixed:as published - the relay waits longer for a call than either SDK" + }, + { + "entry": "adapters/anthropic.py", + "setting": "workload identity (ANTHROPIC_FEDERATION_RULE_ID and three more variables)", + "values": "AWS workload identity in place of a key, when any of the four is set", + "default": "unset", + "nullius": "not offered - a run's key is its provider's, at the relay: the driver's environment holds none of the four and no .env is read" + }, + { + "entry": "cli/run_all.py", + "setting": "batch runner", + "values": "every task of a folder, concurrently, with pacing, a circuit breaker and resume", + "default": "", + "nullius": "not offered - Nullius runs main.py once per task and paces units itself" + }, + { + "entry": "cli/run_all.py", + "setting": "--task_list_file", + "values": "a file of task ids", + "default": "every task file of --data_dir, in name order", + "nullius": "fixed:every task, in name order - the upstream's default; a run's limit, list or task set selects among them" + }, + { + "entry": "cli/run_all.py", + "setting": "--no-resume, --max-tasks-per-run", + "values": "flag, a number", + "default": "resume on, no cap", + "nullius": "not offered - a later run of the batch asks again the answers an earlier one left empty; a unit here runs once and its empty answers score 0, as the scorer counts them" + }, + { + "entry": "cli/run_all.py", + "setting": "--skip-preflight, --cost-limit", + "values": "flag, USD", + "default": "preflight on, no limit", + "nullius": "not offered - the batch runner's own checks and cost estimate; a run's spending cap is Nullius's" + }, + { + "entry": "cli/run_all.py", + "setting": "--max-task-timeout, --circuit-breaker-threshold, --max-concurrency, --rate-limit-divisor", + "values": "numbers", + "default": "none", + "nullius": "not offered - the batch runner's pacing" + }, + { + "entry": "cli/run_all.py", + "setting": "--logs-base-dir", + "values": "a folder", + "default": "logs", + "nullius": "not offered - the batch runner's; main.py writes its log in the unit's folder" + }, + { + "entry": "provider_config.yml", + "setting": "rate and period per provider", + "values": "requests per period", + "default": "openai 20 a minute", + "nullius": "not offered - read by the batch runner alone" + }, + { + "entry": "cli/run_configs.py", + "setting": "--configs, --datasets, --run_name, --save_submission_root", + "values": "several configurations over several data folders", + "default": "", + "nullius": "not offered - a launcher of batch runs; a launch here is Nullius's" + }, + { + "entry": "cli/submission_cli.py", + "setting": "validate, upload, bulk-upload", + "values": "a submission folder sent to a Hugging Face dataset", + "default": "", + "nullius": "not offered - publishing results, not evaluation" + }, + { + "entry": "utils/viewer.py", + "setting": "terminal task viewer", + "values": "", + "default": "", + "nullius": "not offered - a viewer, not evaluation" + }, + { + "entry": "arcprize.org/policy", + "setting": "tools behind the model", + "values": "none enabled: no code execution, and web search specifically not", + "default": "none", + "nullius": "fixed:web tools off - agent_options, for every agent that has the switch; an agent keeps its other tools, which a model asked alone has not" + }, + { + "entry": "driver (ours)", + "setting": "an agent's unit", + "values": "one test input, one answer", + "default": "", + "nullius": "fixed:one test input - the harness builds one prompt per test input and the port gives one answer; said in the limitations" + } +] diff --git a/app/static/catalogue/marks.svg b/app/static/catalogue/marks.svg index 75d090481..e25c4a139 100644 --- a/app/static/catalogue/marks.svg +++ b/app/static/catalogue/marks.svg @@ -57,4 +57,8 @@ + + + + diff --git a/app/tests/test_catalog.py b/app/tests/test_catalog.py index 3827588b8..1a1d2720e 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), ["arc-agi-2", "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/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' -ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBenchnoneOne task, Workspace files, SearchOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useWorkspace filesMCP tools, ConversationWorkspace filesOne taskMCP tools, Conversation +ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBenchOne tasknoneOne 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..128165af8 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..b4a9535e1 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..dfb253a27 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..8cbe78c40 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..65e1107b0 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..d7d0eb09d 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..0075d9383 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..c7bd35286 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..248f00355 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
ARC-AGI-2ClawMarkGAIAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2SWE-bench Verifiedτ³-benchTerminal-Bench 2.0TriggerBenchVitaBench
One tasknoneOne 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..60160e7d2 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
ARC-AGI-2
arc-agi-2
Grid puzzles: infer the rule from a few example input and output grids, then give the output grid for a new input.Reasoning✓✓167Official
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/arc-agi-2.md b/docs/benchmarks/supported/arc-agi-2.md new file mode 100644 index 000000000..f84f1e211 --- /dev/null +++ b/docs/benchmarks/supported/arc-agi-2.md @@ -0,0 +1,77 @@ + + +# ARC-AGI-2 + +Grid puzzles: infer the rule from a few example input and output grids, then give the output grid for a new input. + +
BenchmarkNeeds, ports provenControls, written byRuns with, any model
noporacleyour agent or Moduleas publishedas published, your model
ARC-AGI-2agent.task/v1Nulliusthe authors✓✓✓
ClawMarkNullius–✓✓✓
GAIAagent.task/v1, agent.workspace/v1, agent.search/v1Nulliusan adapter's author✓✓✓
GSM8Kagent.task/v1Nulliusthe authors✓✓✓
+ + + + + + + + +
Keyarc-agi-2
CategoryReasoning
OriginOfficial
Runs onNullius, Harbor
Tasks167
PaperARC-AGI-2: A New Challenge for Frontier AI Reasoning Systems, arXiv · 2026
Needs, ports provenagent.task/v1
+ +## Datasets + +| Dataset | Key | Tasks | From | Verifier | +|---|---|---|---|---| +| Public evaluation | `arc-agi-2` | 167 | GitHub [arcprize/ARC-AGI-2](https://github.com/arcprize/ARC-AGI-2/tree/f3283f727488ad98fe575ea6a5ac981e4a188e49)
Harbor hub `arcprize/arc-agi-2` | The answer grid must be the expected output grid, cell for cell. On Nullius, ARC Prize's own parser and scorer read it in the agent's last message. | + +## On the standard + +| Control | Written by | +|---|---| +| `nop` | Nullius | +| `oracle` | the authors | + +### Versions + +| Version | Setups as published, whose model | Options | +|---|---|---| +| `arc-agi-2` | Original · No agent · Like the paper or Any of your choice | `num_attempts`, `temperature` | + +## Options + +| Option | Values, default in bold | What it sets | Setups | +|---|---|---|---| +| `num_attempts` | default `2` | How many answers the harness asks for each test input; one right answer solves it. 2 is ARC Prize's rule. | `original`, `model` | +| `temperature` | e.g. `0.5`, default `default` | Sampling randomness. Provider default sends no temperature; enter a non-negative decimal to override it. Accepted values depend on the model. | `model` | + +## Good to know + +- The 120 tasks hold 167 test inputs. An agent, and Harbor, answer one test input at a time; Original answers one task at a time. +- Original is ARC Prize's own testing harness with one of its OpenAI or Anthropic model configurations, each on its maker's key: two answers per test input, either one counts, and a task scores the share of its test inputs solved. Its mean over the 120 tasks is ARC Prize's score. +- Of the 56 configurations offered, ARC Prize publishes public evaluation attempts for 19: GPT-4.1's three and the 16 of Claude Haiku 4.5, Sonnet 4.5 and Opus 4.5. +- The grid is read from the end of the agent's last message: a JSON list of rows, as the examples in the prompt are written. +- Every agent runs with its web tools off, as ARC Prize tests models: the tasks and their answers are public. +- On Harbor the prompt asks for the grid in a file, /testbed/output.json, and a script compares it. + +## Upstream limitations + +- ARC Prize's leaderboard and competition score models on semi-private and private tasks that are not published. Only the 120 public evaluation tasks run here, and a model may have seen them. + +## Nullius limitations + +- An agent answers each test input once, and its score is the mean over the 167 test inputs. ARC Prize counts either of two answers and takes the mean over the 120 tasks: an agent's score is not ARC Prize's score. Several attempts of an agent are averaged. +- Original offers 56 of ARC Prize's 139 model configurations: Anthropic's, and OpenAI's less the 24 that run in OpenAI's background mode, GPT-5.1 and GPT-5.2 among them. Google's, OpenRouter's and the other providers' are not offered. +- The network does not block a web search the model's provider runs: each agent needs its own switch to turn web search off, for a fair comparison. + +## Cite + +??? citation "BibTeX" + + ```bibtex + @misc{chollet2026arcagi2newchallengefrontier, + title={ARC-AGI-2: A New Challenge for Frontier AI Reasoning Systems}, + author={Francois Chollet and Mike Knoop and Gregory Kamradt and Bryan Landers and Henry Pinkard}, + year={2026}, + eprint={2505.11831}, + archivePrefix={arXiv}, + primaryClass={cs.AI}, + url={https://arxiv.org/abs/2505.11831}, + } + ``` From 30edb5298e1150a600b395eff92547a41894b708 Mon Sep 17 00:00:00 2001 From: Etienne Filhol Date: Wed, 2 Dec 2026 09:51:17 +0100 Subject: [PATCH 4/5] fix(catalogue): run ARC-AGI-2's model setup as its runs_as configuration, say what Original and agents do not compare with --- .../benchmarks/arc-agi-2/benchmark.json | 9 ++++--- .../catalogue/benchmarks/arc-agi-2/driver.py | 26 +++++++++++-------- .../benchmarks/arc-agi-2/standard.json | 4 +-- .../arc-agi-2/upstream-settings.json | 2 +- docs/benchmarks/supported/arc-agi-2.md | 9 ++++--- 5 files changed, 28 insertions(+), 22 deletions(-) diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json b/app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json index c1dd335f4..8220ad989 100644 --- a/app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/benchmark.json @@ -11,9 +11,9 @@ "origin": "official", "good_to_know": [ "The 120 tasks hold 167 test inputs. An agent, and Harbor, answer one test input at a time; Original answers one task at a time.", - "Original is ARC Prize's own testing harness with one of its OpenAI or Anthropic model configurations, each on its maker's key: two answers per test input, either one counts, and a task scores the share of its test inputs solved. Its mean over the 120 tasks is ARC Prize's score.", + "Original is ARC Prize's own testing harness with one of its OpenAI or Anthropic model configurations, each on its maker's key: two answers per test input, either one counts, and a task scores the share of its test inputs solved. Its mean over the 120 tasks is the harness's final score.", "Of the 56 configurations offered, ARC Prize publishes public evaluation attempts for 19: GPT-4.1's three and the 16 of Claude Haiku 4.5, Sonnet 4.5 and Opus 4.5.", - "The grid is read from the end of the agent's last message: a JSON list of rows, as the examples in the prompt are written.", + "The grid is read in the agent's last message: the first \\boxed{...} grid, else the last bracketed block, a JSON list of rows as the prompt's examples are written.", "Every agent runs with its web tools off, as ARC Prize tests models: the tasks and their answers are public.", "On Harbor the prompt asks for the grid in a file, /testbed/output.json, and a script compares it." ], @@ -21,8 +21,9 @@ "ARC Prize's leaderboard and competition score models on semi-private and private tasks that are not published. Only the 120 public evaluation tasks run here, and a model may have seen them." ], "limitations": [ - "An agent answers each test input once, and its score is the mean over the 167 test inputs. ARC Prize counts either of two answers and takes the mean over the 120 tasks: an agent's score is not ARC Prize's score. Several attempts of an agent are averaged.", - "Original offers 56 of ARC Prize's 139 model configurations: Anthropic's, and OpenAI's less the 24 that run in OpenAI's background mode, GPT-5.1 and GPT-5.2 among them. Google's, OpenRouter's and the other providers' are not offered.", + "An agent answers each test input once, and its score is the mean over the 167 test inputs. ARC Prize counts either of two answers and takes the mean over the 120 tasks: an agent's score does not compare with the harness's. Several attempts of an agent are averaged.", + "Original offers 56 of ARC Prize's 139 model configurations: Anthropic's 23 and 33 of OpenAI's, not the 24 in OpenAI's background mode, GPT-5.1 and GPT-5.2 among them. Google's, OpenRouter's and the other providers' are not offered.", + "Original runs each task once: a test input left with no answer scores 0. Upstream, running the batch again fills it.", "The network does not block a web search the model's provider runs: each agent needs its own switch to turn web search off, for a fair comparison." ], "datasets": [ diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/driver.py b/app/nullius/catalogue/benchmarks/arc-agi-2/driver.py index f29c0bce6..dd6b01dfc 100644 --- a/app/nullius/catalogue/benchmarks/arc-agi-2/driver.py +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/driver.py @@ -28,9 +28,10 @@ original: --config is one of the harness's own model configurations, by its name in models.yml, which holds every setting of the call; none is written here. model: the README's way to add a model, a configuration - entry (name, model_name, provider openai, api_key_env, pricing) in - models_private.yml, the git-ignored file its loader reads beside - models.yml; the temperature option is that entry's temperature. + entry in models_private.yml, the git-ignored file its loader reads + beside models.yml: the configuration standard.json's runs_as names, + every setting kept, its model_name the model chosen; the temperature + option is that entry's temperature. Either way the configuration's adapter finds the unit's relay as its SDK reads an address from the environment (OpenAI's OPENAI_BASE_URL, Anthropic's ANTHROPIC_BASE_URL), and the relay's word in the key @@ -41,7 +42,7 @@ Ours: fetching and checking the data, naming the units, the filler fields of an agent's attempt record (no usage, no cost: it came from no adapter), the model -setup's configuration entry, and reading the files the harness wrote. +setup's entry (runs_as's, another model_name), and reading the files the harness wrote. """ import contextlib import fcntl @@ -77,7 +78,6 @@ PACKAGE = os.path.dirname(os.path.abspath(arc_agi_benchmarking.__file__)) NUM_ATTEMPTS = os.environ.get("NULLIUS_OPTION_NUM_ATTEMPTS") # an original run's; unset, main.py's own default TEMPERATURE = os.environ.get("NULLIUS_OPTION_TEMPERATURE", "default") -KEY_ENV = "OPENAI_API_KEY" # the model setup's entry: where the OpenAI adapter is told to read its key # The adapters whose SDK reads its address from the environment, by the provider a configuration # names: the variable, and whether the address keeps the relay's /v1 (Anthropic's SDK adds its own). ADDRESS = {"openai": ("OPENAI_BASE_URL", True), "anthropic": ("ANTHROPIC_BASE_URL", False)} @@ -253,10 +253,14 @@ def published(name): def config_for(model): - """The model setup's configuration, by its name: an entry in the harness's - models_private.yml, written once for a model and a temperature.""" - entry = {"model_name": model, "provider": "openai", "api_key_env": KEY_ENV, - "pricing": {"date": "none", "input": 0.0, "output": 0.0}} + """The model setup's configuration, as config_of gives one: an entry in the harness's + models_private.yml, written once for a model and a temperature. It is the configuration + standard.json's runs_as names in models.yml, every setting as published, with the model + chosen as its model_name.""" + with open(os.path.join(HERE, "standard.json")) as f: + runs_as = json.load(f)["setups"]["model"]["runs_as"] + entry = {k: v for k, v in published(runs_as).items() if k != "name"} # a copy: models.yml's stays as read + entry["model_name"] = model if TEMPERATURE != "default": entry["temperature"] = float(TEMPERATURE) mark = hashlib.sha256(json.dumps(entry, sort_keys=True).encode()).hexdigest()[:8] @@ -272,7 +276,7 @@ def config_for(model): with open(path + ".new", "w") as f: yaml.safe_dump(held, f, sort_keys=False) os.replace(path + ".new", path) # a reader finds the old file or the new, never half of one - return name + return name, entry["provider"], entry["api_key_env"] def config_of(setup, model): @@ -281,7 +285,7 @@ def config_of(setup, model): if setup not in ("original", "model"): raise ValueError(f"ARC-AGI-2 has no {setup} setup") if setup == "model": - return config_for(model), "openai", KEY_ENV + return config_for(model) entry = published(model) return model, entry["provider"], entry["api_key_env"] diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/standard.json b/app/nullius/catalogue/benchmarks/arc-agi-2/standard.json index 0c8febdca..400ed31c4 100644 --- a/app/nullius/catalogue/benchmarks/arc-agi-2/standard.json +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/standard.json @@ -59,7 +59,7 @@ }, "setups": { "original": { - "summary": "ARC Prize's testing harness runs its own main.py on one task with one of its own model configurations, chosen by name: the configuration holds the model, the API, the token limit, reasoning and streaming.\n\nIts prompt, one call per answer, two answers for each test input, each asked once more when the call fails or no grid can be read.\n\nIts own scorer gives the task the share of its test inputs solved by either answer. The mean over the 120 tasks is ARC Prize's score.", + "summary": "ARC Prize's testing harness runs its own main.py on one task with one of its own model configurations, chosen by name: the configuration holds the model, the API, the token limit, reasoning and streaming.\n\nIts prompt, one call per answer, two answers for each test input, each asked once more when the call fails or no grid can be read.\n\nIts own scorer gives the task the share of its test inputs solved by either answer. The mean over the 120 tasks is its final score.", "models": [ "gpt-5-2025-08-07-high", "gpt-5-2025-08-07-medium", @@ -185,7 +185,7 @@ "comparable": false }, "model": { - "summary": "The same harness with any model: a configuration of its own, added as the harness's README adds a model, asked through its OpenAI adapter with chat completions and no other setting. The relay sends the model chosen. Its scores compare with other runs of this setup, not with ARC Prize's.", + "summary": "The same harness with any model: gpt-4o-2024-11-20's configuration with the model chosen in its place, added as the harness's README adds a model. It keeps that configuration's Responses API, token limit and streaming, so it needs an OpenAI-compatible provider that serves Responses. Its scores compare with other runs of this setup, not with ARC Prize's.", "runs_as": "gpt-4o-2024-11-20" } }, diff --git a/app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json b/app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json index 118f4b574..e62d737e4 100644 --- a/app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json +++ b/app/nullius/catalogue/benchmarks/arc-agi-2/upstream-settings.json @@ -284,7 +284,7 @@ "setting": "pricing", "values": "USD per million tokens, a date", "default": "", - "nullius": "fixed:as each configuration has it - the harness's own cost metadata only, 0 in the model setup's entry; the relay records the run's cost" + "nullius": "fixed:as each configuration has it - the harness's own cost metadata only, the model setup's that of its runs_as configuration; the relay records the run's cost" }, { "entry": "models.yml", diff --git a/docs/benchmarks/supported/arc-agi-2.md b/docs/benchmarks/supported/arc-agi-2.md index f84f1e211..3305752b7 100644 --- a/docs/benchmarks/supported/arc-agi-2.md +++ b/docs/benchmarks/supported/arc-agi-2.md @@ -44,9 +44,9 @@ Grid puzzles: infer the rule from a few example input and output grids, then giv ## Good to know - The 120 tasks hold 167 test inputs. An agent, and Harbor, answer one test input at a time; Original answers one task at a time. -- Original is ARC Prize's own testing harness with one of its OpenAI or Anthropic model configurations, each on its maker's key: two answers per test input, either one counts, and a task scores the share of its test inputs solved. Its mean over the 120 tasks is ARC Prize's score. +- Original is ARC Prize's own testing harness with one of its OpenAI or Anthropic model configurations, each on its maker's key: two answers per test input, either one counts, and a task scores the share of its test inputs solved. Its mean over the 120 tasks is the harness's final score. - Of the 56 configurations offered, ARC Prize publishes public evaluation attempts for 19: GPT-4.1's three and the 16 of Claude Haiku 4.5, Sonnet 4.5 and Opus 4.5. -- The grid is read from the end of the agent's last message: a JSON list of rows, as the examples in the prompt are written. +- The grid is read in the agent's last message: the first \boxed{...} grid, else the last bracketed block, a JSON list of rows as the prompt's examples are written. - Every agent runs with its web tools off, as ARC Prize tests models: the tasks and their answers are public. - On Harbor the prompt asks for the grid in a file, /testbed/output.json, and a script compares it. @@ -56,8 +56,9 @@ Grid puzzles: infer the rule from a few example input and output grids, then giv ## Nullius limitations -- An agent answers each test input once, and its score is the mean over the 167 test inputs. ARC Prize counts either of two answers and takes the mean over the 120 tasks: an agent's score is not ARC Prize's score. Several attempts of an agent are averaged. -- Original offers 56 of ARC Prize's 139 model configurations: Anthropic's, and OpenAI's less the 24 that run in OpenAI's background mode, GPT-5.1 and GPT-5.2 among them. Google's, OpenRouter's and the other providers' are not offered. +- An agent answers each test input once, and its score is the mean over the 167 test inputs. ARC Prize counts either of two answers and takes the mean over the 120 tasks: an agent's score does not compare with the harness's. Several attempts of an agent are averaged. +- Original offers 56 of ARC Prize's 139 model configurations: Anthropic's 23 and 33 of OpenAI's, not the 24 in OpenAI's background mode, GPT-5.1 and GPT-5.2 among them. Google's, OpenRouter's and the other providers' are not offered. +- Original runs each task once: a test input left with no answer scores 0. Upstream, running the batch again fills it. - The network does not block a web search the model's provider runs: each agent needs its own switch to turn web search off, for a fair comparison. ## Cite From 233d60faad12411ea0b0e641bc269097b5449a41 Mon Sep 17 00:00:00 2001 From: Etienne Filhol Date: Wed, 2 Dec 2026 13:01:48 +0100 Subject: [PATCH 5/5] test(builder): give node two more builder programs on stdin --- app/ui_tests/test_start_with_page.py | 2 +- app/ui_tests/test_task_set_pages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui_tests/test_start_with_page.py b/app/ui_tests/test_start_with_page.py index 0836d3565..4d51e2ed4 100644 --- a/app/ui_tests/test_start_with_page.py +++ b/app/ui_tests/test_start_with_page.py @@ -543,6 +543,6 @@ def with_more(kind, root=None, every=False): "rec.start_with={all:'1',more:'2'};rec.model='gpt-5-mini';rec.concurrency=1;rec.unsandboxed=true;" f"new Function('C','r','d',{json.dumps(handler)})(C,()=>rec,{{stdDataset:'all'}});" "process.stdout.write(JSON.stringify(rec));") - recipe = json.loads(subprocess.run([node, "-e", program], capture_output=True, text=True, check=True, timeout=10).stdout) + recipe = json.loads(subprocess.run([node, "-"], input=program, capture_output=True, text=True, check=True, timeout=10).stdout) self.assertEqual(recipe["start_with"], {"more": "2"}) self.assertEqual(self.post("/new-run/runner", {"recipe": recipe})["errors"], []) diff --git a/app/ui_tests/test_task_set_pages.py b/app/ui_tests/test_task_set_pages.py index 1dc1b51fd..b871bbf8f 100644 --- a/app/ui_tests/test_task_set_pages.py +++ b/app/ui_tests/test_task_set_pages.py @@ -1189,7 +1189,7 @@ def test_build_a_run_carries_the_dataset_and_the_open_set(self): f"const query=Object.fromEntries(new URL({json.dumps(link)},'http://localhost').searchParams);" "const r=C.prefill(query);" "process.stdout.write(JSON.stringify([r.benchmark,r.datasets,r.task_sets||{}]));") - result = subprocess.run([node, "-e", program], stdin=subprocess.DEVNULL, + result = subprocess.run([node, "-"], input=program, # stdin: the catalogue outgrows one argument check=True, capture_output=True, text=True, timeout=10) self.assertEqual(json.loads(result.stdout), ["described", ["more"], task_sets])