diff --git a/app/nullius/catalogue/agents/mini-swe-agent/run.py b/app/nullius/catalogue/agents/mini-swe-agent/run.py index a9153916a..ccfc95ec3 100644 --- a/app/nullius/catalogue/agents/mini-swe-agent/run.py +++ b/app/nullius/catalogue/agents/mini-swe-agent/run.py @@ -21,11 +21,14 @@ task = sys.argv[1] out = os.path.join(tempfile.mkdtemp(prefix="mini-"), "trajectory.json") mini = os.path.join(os.path.dirname(sys.executable), "mini") -# the run's reasoning effort, mini's own model.model_kwargs.reasoning_effort; -c replaces mini's config list, so its -# own mini.yaml is named first (drop_params kept). default: none, as mini sends on its own. +# Load the benchmark's published config before transport and explicit run options. +config = ["-c", os.environ.get("MSWEA_MINI_CONFIG_PATH", "mini.yaml")] effort = os.environ.get("NULLIUS_REASONING_EFFORT", "default") -config = ["-c", "mini.yaml", "-c", f"model.model_kwargs.reasoning_effort={effort}"] if effort not in ("", "default") else [] -rc = subprocess.run([mini, "--task", task, "--yolo", "--exit-immediately", "--cost-limit", "0", "--output", out, *config], +if effort not in ("", "default"): + config += ["-c", f"model.model_kwargs.reasoning_effort={effort}"] +rc = subprocess.run([mini, "--task", task, "--yolo", "--exit-immediately", + "--environment-class", "local", "--model", os.environ["MSWEA_MODEL_NAME"], + "--output", out, *config], stdin=subprocess.DEVNULL, stdout=sys.stderr, stderr=sys.stderr).returncode try: with open(out) as f: diff --git a/app/nullius/catalogue/agents/swe-agent/agent.json b/app/nullius/catalogue/agents/swe-agent/agent.json index 5fca9fb3d..c3c1a0d34 100644 --- a/app/nullius/catalogue/agents/swe-agent/agent.json +++ b/app/nullius/catalogue/agents/swe-agent/agent.json @@ -108,7 +108,7 @@ "smmap==5.0.3", "sniffio==1.3.1", "starlette==1.10.0", - "swe-rex==1.2.1", + "swe-rex==1.4.0", "tabulate==0.10.0", "tenacity==9.2.1", "textual==8.2.8", @@ -156,6 +156,13 @@ } }, "only_for": [ - "swe-bench-verified" + "swe-bench-verified", + "swe-bench-multilingual" + ], + "prepare_image": [ + "{install}/.venv/bin/python", + "{here}/run.py", + "image", + "{image}" ] } diff --git a/app/nullius/catalogue/agents/swe-agent/run.py b/app/nullius/catalogue/agents/swe-agent/run.py index 297739cf1..f181d890f 100644 --- a/app/nullius/catalogue/agents/swe-agent/run.py +++ b/app/nullius/catalogue/agents/swe-agent/run.py @@ -1,7 +1,7 @@ """Start SWE-agent v1.1.0 through its public configuration and environment APIs. Preparation calls its ToolHandler.install without creating a model. Execution -uses its default configuration and RunSingle, including its normal tool setup. +uses the benchmark's upstream configuration and RunSingle, including its normal tool setup. """ import os import importlib.util @@ -9,6 +9,7 @@ import sys import subprocess import json +import logging import shutil import shlex from contextlib import contextmanager @@ -44,7 +45,18 @@ def tool_staging(root=Path("/root/tools")): def main(): - check_tool_python() + config_path = os.environ.get("SWE_AGENT_CONFIG_PATH", "config/default.yaml") + if sys.argv[1] == "image": + if config_path == "config/benchmarks/anthropic_filemap_multilingual.yaml": + from swerex.deployment.docker import DockerDeployment + deployment = DockerDeployment(image=sys.argv[2], python_standalone_dir="/root", + logger=logging.getLogger("nullius.swe-image")) + # The pinned upstream recipe, with its own BASE_IMAGE build argument resolved. + print(deployment.glibc_dockerfile.replace("ARG BASE_IMAGE", "ARG BASE_IMAGE=" + sys.argv[2], 1)) + return + os.environ["PATH"] = os.environ.get("NULLIUS_TASK_PATH", os.environ["PATH"]) + if shutil.which("python") or config_path == "config/default.yaml": + check_tool_python() os.environ["PIP_CONSTRAINT"] = str(Path(__file__).with_name("tools.constraints.txt")) # The pinned checkout is mounted read-only and owned by the host user. # Permit GitPython's provenance lookup for this one path, process-locally. @@ -58,7 +70,7 @@ def main(): from sweagent.environment.swe_env import EnvironmentConfig, SWEEnv from sweagent.tools.tools import ToolConfig, ToolHandler - config = yaml.safe_load((REPO_ROOT / 'config/default.yaml').read_text()) + config = yaml.safe_load((REPO_ROOT / config_path).read_text()) # SWE-ReX intentionally starts shells with a fresh environment. Use the # upstream tool environment option for pip constraints and preparation's # temporary proxy; normal execution receives no proxy variables. diff --git a/app/nullius/catalogue/benchmarks/swe-bench-multilingual/driver.py b/app/nullius/catalogue/benchmarks/swe-bench-multilingual/driver.py index e0107fd7e..51ab8ef72 100644 --- a/app/nullius/catalogue/benchmarks/swe-bench-multilingual/driver.py +++ b/app/nullius/catalogue/benchmarks/swe-bench-multilingual/driver.py @@ -46,7 +46,8 @@ SOLVE_SECONDS = 300 RESULTS = "/tmp/nullius-swebench-verifier" # What the images keep under root's home, where the tests find it: an agent's home is the run's, not root's. -AGENT_ENV = {"GOPATH": "/root/go", "GOCACHE": "/root/.cache/go-build", "COREPACK_HOME": "/root/.cache/node/corepack"} +AGENT_ENV = {"MSWEA_MINI_CONFIG_PATH": "swebench.yaml", + "SWE_AGENT_CONFIG_PATH": "config/benchmarks/anthropic_filemap_multilingual.yaml", "GOPATH": "/root/go", "GOCACHE": "/root/.cache/go-build", "COREPACK_HOME": "/root/.cache/node/corepack"} with open(os.path.join(HERE, "images.json")) as f: IMAGES = json.load(f) diff --git a/app/nullius/catalogue/benchmarks/swe-bench-pro/driver.py b/app/nullius/catalogue/benchmarks/swe-bench-pro/driver.py index db56cc597..52e13df74 100644 --- a/app/nullius/catalogue/benchmarks/swe-bench-pro/driver.py +++ b/app/nullius/catalogue/benchmarks/swe-bench-pro/driver.py @@ -152,12 +152,15 @@ def setup(unit, dir): apply = (f"cp {CAPTURED} {LOGS}/model.patch; " f"if [ -s {CAPTURED} ]; then cp {CAPTURED} /tmp/replay.patch; {replay()}; fi; {check}") return {"prompt": prompt, "environment": "task", "image": image, + "env": {"MSWEA_MINI_CONFIG_PATH": "/tmp/nullius-mini-config/mini_toolcall.yaml"}, + "mount": {"v2/tooling/configs": "/tmp/nullius-mini-config"}, **({"agent_seconds": int(agent)} if agent else {}), "verify": {**common, "run": ["bash", "-c", apply], "capture": {"run": ["bash", "-c", capture()], "collect": os.path.dirname(CAPTURED), "seconds": 300}, "in_place": {**common, "run": ["bash", "-c", check]}}} + def score(unit, dir, transcript, answer, verified=None): if not verified: return {"reward": 0.0, "passed": False, "detail": {"why": "the task's check did not run"}} diff --git a/app/nullius/catalogue/benchmarks/swe-bench-verified/driver.py b/app/nullius/catalogue/benchmarks/swe-bench-verified/driver.py index 360802e73..a7d4137c5 100644 --- a/app/nullius/catalogue/benchmarks/swe-bench-verified/driver.py +++ b/app/nullius/catalogue/benchmarks/swe-bench-verified/driver.py @@ -81,7 +81,7 @@ def setup(unit, dir): f"git diff --cached --binary --no-ext-diff --no-textconv {shlex.quote(r['base_commit'])} -- " f"> {RESULTS}/model.patch && exec /bin/bash /eval.sh") return {"prompt": r["problem_statement"], "environment": "task", "image": {"pull": IMAGES[unit]}, "workdir": WORKDIR, - "env": {"PATH": "/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin", + "env": {"MSWEA_MINI_CONFIG_PATH": "swebench.yaml", "PATH": "/opt/miniconda3/envs/testbed/bin:/opt/miniconda3/condabin", "CONDA_DEFAULT_ENV": "testbed", "CONDA_PREFIX": "/opt/miniconda3/envs/testbed", "CONDA_SHLVL": "1", "CONDA_EXE": "/opt/miniconda3/bin/conda", "CONDA_PYTHON_EXE": "/opt/miniconda3/bin/python", "_CE_CONDA": "", "_CE_M": "", diff --git a/app/nullius/standard/contract/definitions.py b/app/nullius/standard/contract/definitions.py index 557987500..b5ee7a6fd 100644 --- a/app/nullius/standard/contract/definitions.py +++ b/app/nullius/standard/contract/definitions.py @@ -1883,6 +1883,8 @@ def problems(d: dict, kind: str) -> List[str]: elif kind == "agent" and "driver" in (d.get("start") or {}): bad += _driver_agent(d) elif kind == "agent": + if "prepare_image" in d: + bad += _command("prepare_image", d["prepare_image"], {"here", "install", "image"}) if "prepare" in d: bad += ["prepare." + p for p in step_problems(d["prepare"], collect=False)] if isinstance(d["prepare"], dict): diff --git a/app/nullius/standard/runner/run.py b/app/nullius/standard/runner/run.py index 92856a32a..9701ee37d 100644 --- a/app/nullius/standard/runner/run.py +++ b/app/nullius/standard/runner/run.py @@ -2653,6 +2653,8 @@ def place(self, rl, cmd: List[str], env: dict, workdir: str, home: str, interact **getattr(box, "agent_proxy", {})} path = ":".join(([box.env["PATH"]] if "PATH" in box.env else []) + [box.path] + install.bin_dirs(self.inst) + [d + "/bin" for _, d in box.runtimes.values()]) + inside["NULLIUS_TASK_PATH"] = ":".join(p for p in (box.env.get("PATH"), box.path) if p) + inside["IS_SANDBOX"] = "1" # Harbor's marker: root agents are inside a task sandbox. argv = box.exec_argv(container.in_runtime(cmd, box.runtimes), inside, path, interactive=interactive) return argv, container.program_env(inside) if self.backend == "local": @@ -2778,6 +2780,8 @@ def own_box(self, tag: str, setup: dict, rl, home: str): box = None try: image = self.own_image(spec) + if self.other["_kind"] == "agent" and self.other.get("prepare_image"): + image = self.prepare_agent_image(image, setup, os.path.dirname(home)) cfg = container.image_config(image) volumes = {container.within(self.up or self.bench["_here"], src): inside for src, inside in (setup.get("mount") or {}).items()} mounted, runtimes = [], {} @@ -2805,6 +2809,34 @@ def own_box(self, tag: str, setup: dict, rl, home: str): box.stop() raise + def prepare_agent_image(self, image: str, setup: dict, trial: str) -> str: + """Build the agent's upstream Dockerfile before starting an own-image unit.""" + out = os.path.join(trial, "agent") + os.makedirs(out, exist_ok=True) + command = install.words(self.other["prepare_image"], + {"here": self.other["_here"], "install": self.inst, "image": image}) + # Only the task's configuration, not the run's model environment or credentials. + env = {"PATH": os.defpath, **{k: v for k, v in setup.get("env", {}).items() if k != "PATH"}} + try: + result = run_group(command, 60, env=env, stdout=subprocess.PIPE, stderr=subprocess.PIPE, + text=True, stopped=self.cancellation) + with open(os.path.join(out, "prepare-image.txt"), "w") as f: + f.write(result.stderr) + if result.returncode: + raise container.Unavailable(f"agent image configuration exited {result.returncode}: {result.stderr[-1000:]}") + if not result.stdout.strip(): + return image + # Use the existing content-addressed image builder and retain its exact input. + with tempfile.TemporaryDirectory() as root: + context = os.path.join(root, "image") + os.mkdir(context) + for folder in (context, out): + with open(os.path.join(folder, "Dockerfile"), "w") as f: + f.write(result.stdout) + return container.own_image(self.other, {"build": "image"}, root, out) + except subprocess.TimeoutExpired as e: + raise container.Unavailable("agent image configuration timed out") from e + @staticmethod def box_changes(box) -> Optional[str]: """What changed in the unit's container since its image - the work diff --git a/app/tests/test_agent_preparation.py b/app/tests/test_agent_preparation.py index 60b6fcae0..295e47eca 100644 --- a/app/tests/test_agent_preparation.py +++ b/app/tests/test_agent_preparation.py @@ -208,3 +208,59 @@ def test_preexisting_directory_or_symlink_is_preserved(self): self.fail('preexisting uploads accepted') self.assertEqual(marker.read_text(), 'benchmark data') self.assertTrue(link.is_symlink()) + + +class AgentImagePreparation(unittest.TestCase): + def test_upstream_recipe_is_built_and_recorded_without_model_credentials(self): + from pathlib import Path + from types import SimpleNamespace + with tempfile.TemporaryDirectory() as folder: + r = run.Run.__new__(run.Run) + r.other = {"key": "example", "_here": "/definition", + "prepare_image": ["{install}/python", "{here}/image.py", "{image}"]} + r.inst, r._stopped = "/install", None + recipe = "FROM task@sha256:" + "a" * 64 + "\n" + def build(agent, spec, root, log): + self.assertEqual(Path(root, "image", "Dockerfile").read_text(), recipe) + self.assertEqual(Path(log, "Dockerfile").read_text(), recipe) + return "prepared" + with mock.patch.object(run, "run_group", return_value=SimpleNamespace( + returncode=0, stdout=recipe, stderr="")) as emit, \ + mock.patch.object(container, "own_image", side_effect=build), \ + mock.patch.dict(os.environ, {"ANTHROPIC_API_KEY": "must-not-reach-hook"}): + self.assertEqual(r.prepare_agent_image("task", {"env": {"CONFIG": "upstream"}}, folder), "prepared") + self.assertEqual(emit.call_args.args[0], ["/install/python", "/definition/image.py", "task"]) + self.assertEqual(emit.call_args.kwargs["env"], {"PATH": os.defpath, "CONFIG": "upstream"}) + with mock.patch.object(run, "run_group", return_value=SimpleNamespace( + returncode=0, stdout="", stderr="")), mock.patch.object(container, "own_image") as build: + self.assertEqual(r.prepare_agent_image("task", {}, folder), "task") + build.assert_not_called() + with mock.patch.object(run, "run_group", return_value=SimpleNamespace( + returncode=1, stdout=recipe, stderr="failed")), mock.patch.object(container, "own_image") as build: + with self.assertRaisesRegex(container.Unavailable, "exited 1"): + r.prepare_agent_image("task", {}, folder) + build.assert_not_called() + + +class MiniBenchmarkConfig(unittest.TestCase): + def test_benchmark_config_and_effort_reach_cli_without_overriding_limits(self): + import runpy + from pathlib import Path + from types import SimpleNamespace + wrapper = Path(__file__).parents[1] / 'nullius/catalogue/agents/mini-swe-agent/run.py' + for config in ("swebench.yaml", "/benchmark/mini_toolcall.yaml"): + for effort in ("default", "high"): + with self.subTest(config=config, effort=effort), tempfile.TemporaryDirectory() as folder, \ + mock.patch.dict(os.environ, {"MSWEA_MINI_CONFIG_PATH": config, "MSWEA_MODEL_NAME": "openai/test", + "NULLIUS_REASONING_EFFORT": effort}), \ + mock.patch('sys.argv', [str(wrapper), "Fix the bug"]), \ + mock.patch('tempfile.mkdtemp', return_value=folder), \ + mock.patch('subprocess.run', return_value=SimpleNamespace(returncode=0)) as called: + with self.assertRaises(SystemExit): + runpy.run_path(str(wrapper)) + argv = called.call_args.args[0] + self.assertEqual(argv[argv.index('-c') + 1], config) + self.assertEqual(argv[argv.index('--model') + 1], 'openai/test') + self.assertEqual(argv[argv.index('--environment-class') + 1], 'local') + self.assertNotIn('--cost-limit', argv) + self.assertEqual('model.model_kwargs.reasoning_effort=high' in argv, effort == 'high') diff --git a/app/tests/test_standard_own_image.py b/app/tests/test_standard_own_image.py index 307a79646..be2c80e99 100644 --- a/app/tests/test_standard_own_image.py +++ b/app/tests/test_standard_own_image.py @@ -113,6 +113,8 @@ def test_task_environment_reaches_agent_and_runner_variables_win(self): {"PATH": "/host/bin", "HOME": "/run/home", "OPENAI_BASE_URL": "http://relay/v1"}, "/testbed", "/run/home", box=b) self.assertIn("PATH=/task/bin:/image/bin", argv) + self.assertEqual(env["NULLIUS_TASK_PATH"], "/task/bin:/image/bin") + self.assertEqual(env["IS_SANDBOX"], "1") self.assertEqual(env["CONDA_DEFAULT_ENV"], "testbed") self.assertEqual(env["HOME"], "/run/home") self.assertEqual(env["OPENAI_BASE_URL"], "http://relay/v1") @@ -252,7 +254,7 @@ def test_on_podman_the_agent_in_its_own_image_gets_its_home_by_value(self): b = container.Box("job", "u0001", "img", workdir="/app", runtimes={}) argv, env = r.place(None, ["sh", "x"], {"HOME": "/h", "NULLIUS_RELAY_KEY": "placeholder", "PATH": "/p"}, "/app", "/h", box=b) self.assertEqual(argv[:2], ["podman", "exec"]) - self.assertEqual([argv[i + 1] for i, w in enumerate(argv) if w == "-e"][1:], ["HOME=/h", "NULLIUS_RELAY_KEY"]) + self.assertEqual([argv[i + 1] for i, w in enumerate(argv) if w == "-e"][1:], ["HOME=/h", "IS_SANDBOX", "NULLIUS_RELAY_KEY", "NULLIUS_TASK_PATH"]) self.assertEqual((env.get("HOME"), env["NULLIUS_RELAY_KEY"]), (os.environ.get("HOME"), "placeholder")) def _docker_ready() -> str: diff --git a/app/tests/test_swebench_patch.py b/app/tests/test_swebench_patch.py index 15766df7e..9f04788ce 100644 --- a/app/tests/test_swebench_patch.py +++ b/app/tests/test_swebench_patch.py @@ -64,7 +64,9 @@ def git(self, *args): return subprocess.check_output(["git", "-C", str(self.repo), *args], text=True) def capture(self, env=None): - step = self.driver.setup("unit", str(self.root))["verify"] + setup = self.driver.setup("unit", str(self.root)) + self.assertEqual(container.task_env_problems(setup.get("env", {})), []) + step = setup["verify"] command = step["run"][-1].replace("/eval.sh", str(self.eval)) subprocess.run([*step["run"][:-1], command], check=True, capture_output=True, env=env) self.assertEqual(step["collect"], self.driver.RESULTS) @@ -168,7 +170,9 @@ def capture_is(self, command): def check(self, tests): """The check's command run here, with ``tests`` as the task's test.sh: its exit code.""" self.tests.write_text(tests) - step = self.driver.setup("unit", str(self.root))["verify"] + setup = self.driver.setup("unit", str(self.root)) + self.assertEqual(container.task_env_problems(setup.get("env", {})), []) + step = setup["verify"] self.assertEqual(step["collect"], str(self.logs)) subprocess.run(step["capture"]["run"], check=True, capture_output=True) self.git("reset", "--hard", "HEAD") diff --git a/docs/agents/supported/README.md b/docs/agents/supported/README.md index f182aa9dc..6f927e5f5 100644 --- a/docs/agents/supported/README.md +++ b/docs/agents/supported/README.md @@ -86,7 +86,7 @@ Every agent in the catalogue, the ports each version has proven, and the benchma openclaw✓✗✓✗✗✓✓✓✓✓✗✓✗✗✓✓✓✓✓✓✓✓✓✓✓ opencode✓✓✓✗✓✓✓✓✓✓✗✓✗✗✓✓✓✓✓✓✓✓✓✓✓ pi✓✓✗✗✓✓✓✓✓✓✗✓✗✗✗✗✓✓✓✓✗✓✓✓✗ -swe-agent✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✓✗✗✗✗✗ +swe-agent✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✓✗✓✗✗✗✗✗ terminus-2✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✓✗✗✗ diff --git a/docs/agents/supported/swe-agent.md b/docs/agents/supported/swe-agent.md index c87f49088..1b3c73071 100644 --- a/docs/agents/supported/swe-agent.md +++ b/docs/agents/supported/swe-agent.md @@ -9,7 +9,7 @@ Princeton’s software engineering agent with its upstream tool bundles. Keyswe-agent Driven overa command Fromrepository -Installedgithub.com/SWE-agent/SWE-agent at 0f3acafacabc; aiohappyeyeballs==2.7.1, aiohttp==3.14.5, aiosignal==1.4.0, annotated-doc==0.0.7, annotated-types==0.8.0, anyio==4.16.0, attrs==26.1.0, bashlex==0.18, bidict==0.24.1, blinker==1.9.0, boto3==1.44.9, botocore==1.44.9, certifi==2026.11.20, charset-normalizer==3.5.2, click==8.5.1, datasets==5.2.0, dill==0.4.1, distro==1.9.0, docstring-parser==0.18.0, fastapi==0.165.0, fastcore==2.2.46, fastspec==0.2.9, fasttransport==0.0.4, fastuuid==0.14.0, filelock==3.32.7, flask==3.1.3, flask-cors==6.0.5, flask-socketio==5.7.2, frozenlist==1.8.0, fsspec==2026.9.0, ghapi==2.1.5, gitdb==4.0.12, gitpython==3.2.1, h11==0.16.0, h2==4.4.1, hf-xet==1.8.0, hpack==4.2.0, httpcore==1.0.9, httpcore2==2.16.2, httpx==0.28.1, httpx2==2.16.2, huggingface-hub==1.33.0, hyperframe==6.1.0, idna==3.20, importlib-metadata==8.9.0, itsdangerous==2.2.0, jinja2==3.1.6, jiter==0.19.0, jmespath==1.1.0, jsonschema==4.26.0, jsonschema-specifications==2025.9.1, linkify-it-py==2.2.0, litellm==1.105.7, markdown-it-py==4.3.0, markupsafe==3.0.4, mdit-py-plugins==0.7.0, mdurl==0.1.2, multidict==7.2.1, multiprocess==0.70.19, numpy==2.5.5, openai==2.54.0, opentelemetry-api==1.45.2, packaging==26.3, pandas==3.1.1, pexpect==4.9.0, platformdirs==4.14.8, propcache==0.5.4, ptyprocess==0.7.0, pyarrow==26.0.1, pydantic==2.14.4, pydantic-core==2.50.5, pydantic-settings==2.16.3, pygments==2.21.0, python-dateutil==2.9.0.post0, python-dotenv==1.2.4, python-engineio==4.15.1, python-multipart==0.0.34, python-socketio==5.18.1, pyyaml==6.0.4, referencing==0.37.0, regex==2026.11.19, requests==2.34.2, rich==15.0.0, rich-argparse==1.8.0, rpds-py==2026.9.1, ruamel-yaml==0.19.1, s3transfer==0.19.3, simple-parsing==0.1.9, simple-websocket==1.1.0, six==1.17.0, smmap==5.0.3, sniffio==1.3.1, starlette==1.10.0, swe-rex==1.2.1, tabulate==0.10.0, tenacity==9.2.1, textual==8.2.8, tiktoken==0.14.0, tokenizers==0.23.3, tqdm==4.70.1, truststore==0.10.5, typing-extensions==4.16.0, typing-inspection==0.4.5, unidiff==1.0.1, urllib3==2.8.0, uvicorn==0.54.0, werkzeug==3.1.9, wsproto==1.3.2, xxhash==4.1.0, yarl==1.25.1, zipp==4.1.2 +Installedgithub.com/SWE-agent/SWE-agent at 0f3acafacabc; aiohappyeyeballs==2.7.1, aiohttp==3.14.5, aiosignal==1.4.0, annotated-doc==0.0.7, annotated-types==0.8.0, anyio==4.16.0, attrs==26.1.0, bashlex==0.18, bidict==0.24.1, blinker==1.9.0, boto3==1.44.9, botocore==1.44.9, certifi==2026.11.20, charset-normalizer==3.5.2, click==8.5.1, datasets==5.2.0, dill==0.4.1, distro==1.9.0, docstring-parser==0.18.0, fastapi==0.165.0, fastcore==2.2.46, fastspec==0.2.9, fasttransport==0.0.4, fastuuid==0.14.0, filelock==3.32.7, flask==3.1.3, flask-cors==6.0.5, flask-socketio==5.7.2, frozenlist==1.8.0, fsspec==2026.9.0, ghapi==2.1.5, gitdb==4.0.12, gitpython==3.2.1, h11==0.16.0, h2==4.4.1, hf-xet==1.8.0, hpack==4.2.0, httpcore==1.0.9, httpcore2==2.16.2, httpx==0.28.1, httpx2==2.16.2, huggingface-hub==1.33.0, hyperframe==6.1.0, idna==3.20, importlib-metadata==8.9.0, itsdangerous==2.2.0, jinja2==3.1.6, jiter==0.19.0, jmespath==1.1.0, jsonschema==4.26.0, jsonschema-specifications==2025.9.1, linkify-it-py==2.2.0, litellm==1.105.7, markdown-it-py==4.3.0, markupsafe==3.0.4, mdit-py-plugins==0.7.0, mdurl==0.1.2, multidict==7.2.1, multiprocess==0.70.19, numpy==2.5.5, openai==2.54.0, opentelemetry-api==1.45.2, packaging==26.3, pandas==3.1.1, pexpect==4.9.0, platformdirs==4.14.8, propcache==0.5.4, ptyprocess==0.7.0, pyarrow==26.0.1, pydantic==2.14.4, pydantic-core==2.50.5, pydantic-settings==2.16.3, pygments==2.21.0, python-dateutil==2.9.0.post0, python-dotenv==1.2.4, python-engineio==4.15.1, python-multipart==0.0.34, python-socketio==5.18.1, pyyaml==6.0.4, referencing==0.37.0, regex==2026.11.19, requests==2.34.2, rich==15.0.0, rich-argparse==1.8.0, rpds-py==2026.9.1, ruamel-yaml==0.19.1, s3transfer==0.19.3, simple-parsing==0.1.9, simple-websocket==1.1.0, six==1.17.0, smmap==5.0.3, sniffio==1.3.1, starlette==1.10.0, swe-rex==1.4.0, tabulate==0.10.0, tenacity==9.2.1, textual==8.2.8, tiktoken==0.14.0, tokenizers==0.23.3, tqdm==4.70.1, truststore==0.10.5, typing-extensions==4.16.0, typing-inspection==0.4.5, unidiff==1.0.1, urllib3==2.8.0, uvicorn==0.54.0, werkzeug==3.1.9, wsproto==1.3.2, xxhash==4.1.0, yarl==1.25.1, zipp==4.1.2 LicenceMIT @@ -30,7 +30,7 @@ None declared. - +
ARC-AGI-2BrowseCompClaw-EvalClawMarkGAIAGPQAGSM8KHealthAgentBenchHumanEvalMedAgentBenchMyPCBenchOpen TelcoOSWorld1OSWorld2PAST-BenchPi-BenchSimpleQASWE-bench MultilingualSWE-bench ProSWE-bench Verifiedτ³-benchTerminal-Bench 2.0Terminal-Bench ProTriggerBenchVitaBench
One taskOne task, SearchMCP tools, ConversationnoneOne task, Workspace files, SearchOne taskOne taskWorkspace filesWorkspace filesConversationComputer useOne taskComputer useComputer useConversation, MCP tools, Workspace filesMCP tools, Conversation, Workspace filesOne taskWorkspace filesWorkspace filesWorkspace filesMCP tools, ConversationWorkspace filesWorkspace filesOne taskMCP tools, Conversation
swe-agent✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✓✗✗✗✗✗
swe-agent✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✗✓✗✓✗✗✗✗✗
- ✗: the missing port, on hover. diff --git a/docs/standard.md b/docs/standard.md index 742797022..37d2460fd 100644 --- a/docs/standard.md +++ b/docs/standard.md @@ -529,6 +529,14 @@ The upstream's dependencies go in `driver.install` (a Module's `install` is the Follow [Add an agent manually](agents/add-manually.md). +Agent `prepare_image` optionally names a command with `{here}`, `{install}` and +`{image}` slots. It runs on the host with the task's environment, without model +credentials, and prints its upstream Dockerfile (empty output keeps the task image). +The runner builds it before starting an own-image agent container; failure refuses +the unit. The recipe and build log stay under `agent/` in the trial. +A benchmark selects an agent's published config through its setup `env`; config +files from its pinned upstream can be supplied through `mount`. + Agent `prepare` runs as root in own-image containers only. Requested public access ends and leftover processes stop before startup; failure refuses the unit.