From e28269d0cc1a24972c1ab69d0bb17eb17558de9d Mon Sep 17 00:00:00 2001 From: Pierre Leca Date: Mon, 23 Nov 2026 14:10:52 +0100 Subject: [PATCH 1/3] docs(catalogue): say what OSWorld1's pause waits for and where its 3 seconds come from The pause option named a function and an argument of the upstream's code, which tells a first user nothing about what it changes. Its label now gives its unit, and its summary says what OSWorld waits for after each action and which of OSWorld's runners sets the default of 3 seconds. The first good-to-know line names the two options as the builder shows them. --- app/nullius/catalogue/benchmarks/osworld1/benchmark.json | 4 ++-- app/nullius/catalogue/benchmarks/osworld1/standard.json | 4 ++-- docs/benchmarks/supported/osworld1.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/nullius/catalogue/benchmarks/osworld1/benchmark.json b/app/nullius/catalogue/benchmarks/osworld1/benchmark.json index c334a8d8..4848b7ff 100644 --- a/app/nullius/catalogue/benchmarks/osworld1/benchmark.json +++ b/app/nullius/catalogue/benchmarks/osworld1/benchmark.json @@ -9,7 +9,7 @@ ], "origin": "official", "good_to_know": [ - "An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps (100) and Pause (3.0 seconds) set that loop.", + "An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps per task (100) and the pause after each action (3 seconds) set that loop.", "Original runs one of OSWorld's own agents, chosen by the Agent option (M3 by default), with a model it is published with.", "Providers: OpenAI for OpenAI CUA; OpenAI-compatible for Muse Spark (Meta's API) and for EvoCUA, AutoGLM-OS and Mano (your model server); OpenRouter for the others.", "At this version only the null control has run through Nullius. OSWorld's agents are the same code as in main (044bc33), where M3, PromptAgent and Qwen-CUA completed tasks.", @@ -58,7 +58,7 @@ "versions": { "044bc33": { "good_to_know": [ - "An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps (100) and Pause (3.0 seconds) set that loop.", + "An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps per task (100) and the pause after each action (3 seconds) set that loop.", "Original runs one of OSWorld's own agents, chosen by the Agent option (M3 by default), with a model it is published with.", "Providers: OpenAI for OpenAI CUA; OpenAI-compatible for Muse Spark (Meta's API) and for EvoCUA, AutoGLM-OS and Mano (your model server); OpenRouter for the others.", "Only M3, PromptAgent and Qwen-CUA have completed tasks through Nullius. The other agents were checked up to their first model call.", diff --git a/app/nullius/catalogue/benchmarks/osworld1/standard.json b/app/nullius/catalogue/benchmarks/osworld1/standard.json index 00096f8b..5fc29654 100644 --- a/app/nullius/catalogue/benchmarks/osworld1/standard.json +++ b/app/nullius/catalogue/benchmarks/osworld1/standard.json @@ -218,8 +218,8 @@ } }, "pause": { - "label": "Pause", - "summary": "run_single_example's sleep_after_execution for an agent: the seconds env.step waits after each action, 3.0 as in run_multienv_m3.py's default.", + "label": "Pause after each action (seconds)", + "summary": "How long OSWorld waits after each action before it takes the next screenshot, to let the screen settle. 3 seconds is the default of OSWorld's own runner for the M3 agent, run_multienv_m3.py.", "pattern": "[0-9]{1,2}(\\.[0-9]{1,2})?", "example": "5.0", "default": "3.0", diff --git a/docs/benchmarks/supported/osworld1.md b/docs/benchmarks/supported/osworld1.md index 71b7f35f..678f2bed 100644 --- a/docs/benchmarks/supported/osworld1.md +++ b/docs/benchmarks/supported/osworld1.md @@ -42,7 +42,7 @@ Open-ended tasks on a real Ubuntu desktop and its applications, each in a VM of |---|---|---|---| | `agent` | **`m3` (M3 Agent)**, `prompt` (PromptAgent), `claude` (Claude computer use), `gpt54` (GPT-5.4), `openai_cua` (OpenAI CUA), `qwen` (Qwen), `os_symphony` (OS-Symphony), `evocua` (EvoCUA), `autoglm` (AutoGLM), `autoglm_v` (AutoGLM-V), `mano` (Mano), `muse_spark` (Muse Spark) | Which of OSWorld's own agents runs: each its script as published, with its own prompts, action format and step limit. | `original`, `model` | | `max_steps` | e.g. `50`, default `default` | The most actions per task. default: each OSWorld agent script's own documented invocation; 100 through the computer port. | `original`, `model`, `yours` | -| `pause` | e.g. `5.0`, default `3.0` | run_single_example's sleep_after_execution for an agent: the seconds env.step waits after each action, 3.0 as in run_multienv_m3.py's default. | `agent` | +| `pause` | e.g. `5.0`, default `3.0` | How long OSWorld waits after each action before it takes the next screenshot, to let the screen settle. 3 seconds is the default of OSWorld's own runner for the M3 agent, run_multienv_m3.py. | `agent` | | `thinking` | **`adaptive`**, `off` | M3_THINKING_MODE: adaptive, as run_multienv_m3.py's own documented invocation exports it (the model decides whether to think; temperature 1, no top_p), or off, the agent's code default when the variable is unset. | `original`, `model` | | `vm_provider` | **`docker`** | --provider_name: where the task's VM runs. docker only: the upstream's other providers need cloud accounts or a hypervisor of their own. | `original`, `model`, `yours` | @@ -52,7 +52,7 @@ Open-ended tasks on a real Ubuntu desktop and its applications, each in a VM of ## Good to know -- An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps (100) and Pause (3.0 seconds) set that loop. +- An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps per task (100) and the pause after each action (3 seconds) set that loop. - Original runs one of OSWorld's own agents, chosen by the Agent option (M3 by default), with a model it is published with. - Providers: OpenAI for OpenAI CUA; OpenAI-compatible for Muse Spark (Meta's API) and for EvoCUA, AutoGLM-OS and Mano (your model server); OpenRouter for the others. - At this version only the null control has run through Nullius. OSWorld's agents are the same code as in main (044bc33), where M3, PromptAgent and Qwen-CUA completed tasks. From c6b8b7ca15e99df8d0ddc6ab3b4526a287f788e6 Mon Sep 17 00:00:00 2001 From: Pierre Leca Date: Mon, 23 Nov 2026 14:11:05 +0100 Subject: [PATCH 2/3] fix(builder): say how attempts and retries differ, and show the steps an agent's run gets On the Limits step "Attempts per task" and "Retries per attempt" read alike, and OSWorld1's steps showed "default" for an agent's run with no number, though the computer port gives its loop 100. Each field now has a line under it, and the second reads "Retries after an error". A benchmark option with a default by another option may name the value an agent's or a capability's run gets (yours); the definitions check it, Review and the builder show it, and a number default is named in the label. OSWorld1's steps say 100. --- .../catalogue/benchmarks/osworld1/standard.json | 1 + app/nullius/standard/contract/definitions.py | 5 ++++- app/nullius/standard/pages/recipe.py | 10 ++++++---- app/static/builder/command-builder.js | 12 ++++++++---- app/tests/test_computer_merge.py | 11 +++++++++-- app/tests/test_standard_bench_options.py | 16 ++++++++++++++++ app/tests/test_standard_ui.py | 2 +- docs/builder.md | 2 +- docs/standard.md | 1 + 9 files changed, 47 insertions(+), 13 deletions(-) diff --git a/app/nullius/catalogue/benchmarks/osworld1/standard.json b/app/nullius/catalogue/benchmarks/osworld1/standard.json index 5fc29654..4ab668cb 100644 --- a/app/nullius/catalogue/benchmarks/osworld1/standard.json +++ b/app/nullius/catalogue/benchmarks/osworld1/standard.json @@ -170,6 +170,7 @@ "yours" ], "default": "default", + "yours": "100", "pattern": "default|[1-9][0-9]{0,3}", "example": "50", "limit": true, diff --git a/app/nullius/standard/contract/definitions.py b/app/nullius/standard/contract/definitions.py index 5b890c7c..ad1d9642 100644 --- a/app/nullius/standard/contract/definitions.py +++ b/app/nullius/standard/contract/definitions.py @@ -523,7 +523,8 @@ def _bench_options(d: dict) -> List[str]: ``embeddings`` model called through the run's relay, ``host`` requirements or ``files`` by name - and ``when`` it applies: another option's values (a retriever's, only with a retrieval). ``limit``: a bound the upstream has of its own (its steps, its errors), offered with the run's limits; ``by``: - its default under each value of another option (an agent's own steps), for a default of ``default``. ``names``: a name for some of its values, shown in their place. ``step``: ``where`` for a choice of where the work runs, ``dataset`` for one its datasets need, the builder step that asks it.""" + its default under each value of another option (an agent's own steps), for a default of ``default``; ``yours``: the value + an agent's or a capability's run gets for it (the steps of a port's loop). ``names``: a name for some of its values, shown in their place. ``step``: ``where`` for a choice of where the work runs, ``dataset`` for one its datasets need, the builder step that asks it.""" opts = d.get("options") if opts is None: return [] @@ -548,6 +549,8 @@ def _bench_options(d: dict) -> List[str]: k != name and k in opts and isinstance(m, dict) and set(m) == set(opts[k].get("values") or [None]) and all(option_problem(o, v) is None for v in m.values()) for k, m in by.items())): bad.append(f"{w}.by: another option -> its every value -> this one's default under it") + if "yours" in o and (by is None or o["yours"] == o.get("default") or option_problem(o, o["yours"])): + bad.append(f"{w}.yours: beside by, the value an agent's or a capability's run gets for a default of default") # agent: an agent's run alone, on a benchmark agents run, and never beside another scope if on is not None and (not isinstance(on, list) or not on or any(x not in SETUPS + ("yours", "agent") for x in on) or "agent" in on and (on != ["agent"] or d.get("family") != "agent")): diff --git a/app/nullius/standard/pages/recipe.py b/app/nullius/standard/pages/recipe.py index b6266a3e..6eecc7a5 100644 --- a/app/nullius/standard/pages/recipe.py +++ b/app/nullius/standard/pages/recipe.py @@ -105,9 +105,11 @@ def _all() -> Dict[str, List[dict]]: def _shown(o: dict, v: str, values: dict) -> str: - """An option's value as Review shows it: its name, or for ``default`` under ``by`` the value it stands for.""" + """An option's value as Review shows it: its name, or for ``default`` under ``by`` the value it stands for (an + agent's or a capability's run, which takes no value of that other option, gets ``yours``).""" by = next(iter((o.get("by") or {}).items()), None) - v = by[1].get(values.get(by[0]), v) if v == "default" and by else v + if v == "default" and by: + v = by[1].get(values.get(by[0]), v) if by[0] in values else o.get("yours") or v return (o.get("names") or {}).get(v) or v @@ -185,7 +187,7 @@ def _bench_page(b: dict) -> dict: "options": {n: {"label": o.get("label") or n.replace("_", " ").capitalize(), "summary": o["summary"], "datasets": o.get("datasets") or [], "setups": o.get("setups") or ["yours"], **({"values": o["values"]} if "values" in o else {"pattern": o["pattern"], "example": o.get("example")}), "default": o.get("default"), "about": o.get("about") or {}, "names": o.get("names") or {}, "needs": o.get("needs") or {}, "when": o.get("when") or {}, - "limit": bool(o.get("limit")), "step": o.get("step") or "", "by": o.get("by") or {}} + "limit": bool(o.get("limit")), "step": o.get("step") or "", "by": o.get("by") or {}, "yours": o.get("yours") or ""} for n, o in (b.get("options") or {}).items()}, "host": {n: {"label": r.get("label") or n, "summary": r["summary"], "check": r["check"], "install": hostreq.install_lines(b, [n]), "needed_by": r["needed_by"]} for n, r in hostreq.all_of(b).items()}, @@ -602,7 +604,7 @@ def add(step, message, shown=False): # each attempt run again up to N times when it ends in a failure a further try may mend (runner.retries) retries = 0 if recipe.get("retries") in (None, "") else _int(recipe.get("retries"), 0, MAX_RETRIES) if retries is None: - add("limits", f"Retries per attempt: a whole number from 0 to {MAX_RETRIES}.") + add("limits", f"Retries after an error: a whole number from 0 to {MAX_RETRIES}.") retries = 0 sim_model = str(recipe.get("simulator_model") or "").strip() judge_model = str(recipe.get("judge_model") or "").strip() diff --git a/app/static/builder/command-builder.js b/app/static/builder/command-builder.js index a8438d2e..ecf6944e 100644 --- a/app/static/builder/command-builder.js +++ b/app/static/builder/command-builder.js @@ -772,8 +772,10 @@ return '

Scope

' + field('Number of ' + u.nouns, 'limit', rec.limit, {type: 'number', min: 1, placeholder: all, hint: 'The first ones' + per + ', in its order.'}) + field('Concurrent ' + u.nouns, 'concurrency', rec.concurrency, {type: 'number', min: 1, max: 32, placeholder: rec.backend === 'boat' ? String((schema.standardHere || {}).boatSlots || 'Boat\'s limit') : '1'}) + '
' - + '
' + field('Attempts per ' + u.noun, 'repeat', rec.repeat || '', {type: 'number', min: 1, max: 32, placeholder: '1'}) - + field('Retries per attempt', 'retries', rec.retries ?? '', {type: 'number', min: 0, max: 9, placeholder: '0'}) + '
' + + '
' + field('Attempts per ' + u.noun, 'repeat', rec.repeat || '', {type: 'number', min: 1, max: 32, placeholder: '1', + hint: 'Each ' + esc(u.noun) + ' is run and scored this many times.'}) + + field('Retries after an error', 'retries', rec.retries ?? '', {type: 'number', min: 0, max: 9, placeholder: '0', + hint: 'A try that ends in an error, such as a rate limit or a crash, is run again. A failed ' + esc(u.noun) + ' never is.'}) + '
' // a conversation's most agent turns (recipe.py: run --max-turns): only a benchmark that holds conversations has turns + ((b.needs || []).includes('agent.conversation/v1') ? field('Turns per conversation', 'turns', rec.turns ?? '', {type: 'number', min: 1, placeholder: String((b.timeouts || {}).turns || ''), @@ -793,6 +795,7 @@ // take, each empty at its default, shown greyed - an agent's own under ``by`` (OSWorld's agents' steps). function benchLimits(rec, b) { const chosen = C.runsOf(rec), yours = chosen.some(k => !['original', 'model'].includes(k) && !(b.controls || []).some(x => x.key === k)); + const theirs = chosen.some(k => ['original', 'model'].includes(k)); // a default by agent: the chosen own agents' one when they share it const own = [...new Set(C.ownChosen(rec).map(a => a.agent))], given = rec.bench_options || {}; const of = k => k === 'agent' && own.length ? (own.length === 1 ? own[0] : '') : given[k] ?? (b.options[k] || {}).default; @@ -801,8 +804,9 @@ .filter(([, o]) => (o.setups || ['yours']).some(s => s === 'yours' ? yours : chosen.includes(s))) .map(([n, o]) => { const [k, by] = Object.entries(o.by || {})[0] || []; - const def = (!yours && k && by[of(k)]) || o.default; - return ``; + // an agent's or a capability's run alone gets the benchmark's value for it (``yours``), the benchmark's own agents theirs + const def = yours ? (!theirs && o.yours) || o.default : (k && by[of(k)]) || o.default; + return ``; }); return rows.length ? `

${esc(b.label)}

` + rows.join('') : ''; } diff --git a/app/tests/test_computer_merge.py b/app/tests/test_computer_merge.py index c5200036..5fa07697 100644 --- a/app/tests/test_computer_merge.py +++ b/app/tests/test_computer_merge.py @@ -61,11 +61,18 @@ def test_the_builder_shows_one_steps_field_for_scripts_agents_and_both(self): "return ['yours', 'setup', 'shared'].map(s => benchOptions(r, b, s)).join('') + benchLimits(r, b);" "})));") result = subprocess.run(["node", "-e", program], stdin=subprocess.DEVNULL, capture_output=True, text=True, check=True) - for page, default in zip(json.loads(result.stdout), ("15", "default", "default")): + for page, default in zip(json.loads(result.stdout), ("15", "100", "default")): self.assertEqual(page.count('data-bench-opt-select="max_steps"'), 1) - field = page.split('data-bench-opt-select="max_steps"', 1)[1].split('>', 1)[0] + label, field = page.split('data-bench-opt-select="max_steps"', 1) + field = field.split('>', 1)[0] self.assertIn('value=""', field) self.assertIn(f'placeholder="{default}"', field) + # a number the run gets is named in the label; "default", each own agent's, is not + label = label.rsplit(" Date: Mon, 23 Nov 2026 14:11:32 +0100 Subject: [PATCH 3/3] fix(builder): tell the run's isolation apart from the VMs OSWorld1 starts The Where step showed Docker twice for OSWorld1: once as if it were a choice of isolation, once as a requirement. The run's processes run as the user on the machine, and Docker is what OSWorld itself uses to start each task's VM. The step now says both apart, names the requirement for what it is for, and says once when a chosen machine is known to lack it. The refusal of an unticked run no longer offers a container on a benchmark that boots its VMs: a container cannot start them, and the tick is the only way. The tick stays the person's to give. --- .../catalogue/benchmarks/osworld1/standard.json | 3 ++- app/nullius/standard/pages/recipe.py | 3 ++- app/static/builder/command-builder.js | 15 +++++++++------ app/tests/test_standard_bench_options.py | 9 ++++++++- app/ui_tests/test_builder_where.py | 16 ++++++++++++++-- app/ui_tests/test_catalogue_routes.py | 2 +- 6 files changed, 36 insertions(+), 12 deletions(-) diff --git a/app/nullius/catalogue/benchmarks/osworld1/standard.json b/app/nullius/catalogue/benchmarks/osworld1/standard.json index 4ab668cb..3b98e203 100644 --- a/app/nullius/catalogue/benchmarks/osworld1/standard.json +++ b/app/nullius/catalogue/benchmarks/osworld1/standard.json @@ -231,7 +231,8 @@ }, "host": { "docker": { - "summary": "Docker on the machine the driver runs on, usable without sudo, for the upstream's docker provider; /dev/kvm makes the VMs fast, and the upstream runs them without it, slowly.", + "label": "Docker for the tasks' VMs", + "summary": "Docker on the machine, usable without sudo: OSWorld starts each task's VM in it. /dev/kvm makes the VMs fast; without it they run slowly.", "check": [ "docker" ] diff --git a/app/nullius/standard/pages/recipe.py b/app/nullius/standard/pages/recipe.py index 6eecc7a5..057fcb17 100644 --- a/app/nullius/standard/pages/recipe.py +++ b/app/nullius/standard/pages/recipe.py @@ -560,7 +560,8 @@ def add(step, message, shown=False): add("model", why) agents_local = [p["o"]["label"] for p in picks if side == "agent" and not p["control"] and not p.get("setup") and backend == "local"] if agents_local and recipe.get("unsandboxed") is not True: - add("where", f"{', '.join(agents_local)} would run as you, not sandboxed: tick Run it as me, or choose Docker.") + add("where", f"{', '.join(agents_local)} would run as you, not sandboxed: tick Run it as me" + + ("; a container cannot start its VMs." if definitions.boots_vms(b) else ", or choose Docker.")) only_controls = bool(picks) and all(p["control"] for p in picks) needs_model = any(not p["control"] for p in picks) model_choice = recipe.get("model_choice", "any") diff --git a/app/static/builder/command-builder.js b/app/static/builder/command-builder.js index ecf6944e..99471d64 100644 --- a/app/static/builder/command-builder.js +++ b/app/static/builder/command-builder.js @@ -502,11 +502,12 @@ + (list.some(w => w !== 'local') ? button('Test connection', 'id="nb-test-host"') + ' ' : '')) + '

Isolation

' + (sandboxes || vms - ? `
${vms ? `Each ${esc(noun)} in its own VM` : `The agent alone in each ${esc(noun)}'s VM`}` - + `${vms ? (provider ? (sandboxes ? `${esc((provider.names || {})[provider.values[0]] || words(provider.values[0]))}, inside the ${esc(noun)}'s Boat VM` : `${esc(provider.label)}: ${esc((provider.names || {})[provider.values[0]] || words(provider.values[0]))}`) : '') : 'Answers and keys stay on this machine'}
` - : `
${how('local', 'Local processes', 'Its commands run as you, not sandboxed.', '')}` - + how('container', 'Container', web ? 'Sandboxed: each unit in a container whose only ways out are its relay and a public web proxy.' - : 'Sandboxed: each unit in a container whose only way out is its relay.', containerWhy) + '
') + ? (vms && !sandboxes ? `
As you, on the machineA container that Nullius starts cannot start the ${esc(noun)}s' VMs
` : '') + + `
${vms ? `Each ${esc(noun)} in its own VM` : `The agent alone in each ${esc(noun)}'s VM`}` + + `${vms ? (provider ? (sandboxes ? `${esc((provider.names || {})[provider.values[0]] || words(provider.values[0]))}, inside the ${esc(noun)}'s Boat VM` : `${esc(provider.label)}: ${esc((provider.names || {})[provider.values[0]] || words(provider.values[0]))}, used by ${esc(b.label)} itself`) : '') : 'Answers and keys stay on this machine'}
` + : `
${how('local', 'Local processes', 'Its commands run as you, on the machine, not sandboxed.', '')}` + + how('container', 'Container', web ? 'Sandboxed: Nullius starts a container for each unit, whose only ways out are its relay and a public web proxy.' + : 'Sandboxed: Nullius starts a container for each unit, whose only way out is its relay.', containerWhy) + '
') + (b ? benchOptions(rec, b, 'where') : '') + (agentRun && backend === 'local' ? consentBox(rec) : '') + (dockerOnly.length && backend !== 'container' && agentRun ? `

${esc(dockerOnly.join(', '))}: ${dockerOnly.length > 1 ? 'these environments need' : 'this environment needs'} a container - ${sandboxes ? 'in a Boat VM' : 'on local processes'} their units are recorded as not run.

` : '') @@ -535,12 +536,14 @@ if ((rec.backend || 'local') === 'container' && chosen.length && chosen.every(o => o.setup)) return ''; const reqs = need.map(n => [n, (b.host || {})[n]]).filter(([, r]) => r); const local = ((schema.standardHere || {}).host || {})[b.key] || {}; + const lacks = []; // a chosen machine known to lack one: said once, under the requirements return reqs.map(([name, req]) => { const lines = req.install || []; const machines = C.whereList(rec); const rows = machines.map(w => { const st = hostState[b.key + ':' + w + ':' + name] || (w === 'local' ? {missing: local[name] ? {[name]: local[name]} : {}} : null); const missing = st && st.missing && st.missing[name]; + if (missing && missing.length) lacks.push(`${w === 'local' ? 'This machine' : C.machineLabel(w)} lacks ${req.label} (${missing.join(', ')})`); const state = !st ? 'Not checked' : st.error ? st.error : missing && missing.length ? 'Missing' : 'Ready'; const attrs = `data-hostreq-name="${esc(name)}"`; return `
${machines.length > 1 || w !== 'local' ? `${esc(w === 'local' ? 'This machine' : C.machineLabel(w))}` : ''}` @@ -552,7 +555,7 @@ }).join(''); return `

${esc(req.label)}

${rows}` + (lines.length ? `
Install manually
${esc(lines.join('\n'))}
` : '') + '
'; - }).join(''); + }).join('') + (lacks.length ? `

${esc(lacks.join('; '))}: ${esc(b.label)} cannot run there. Run waits until it is there.

` : ''); } async function hostReq(entry, what, name) { const rec = r(), b = C.standardBench(rec), key = b.key + ':' + entry + ':' + name; diff --git a/app/tests/test_standard_bench_options.py b/app/tests/test_standard_bench_options.py index b3d33f51..ef7db371 100644 --- a/app/tests/test_standard_bench_options.py +++ b/app/tests/test_standard_bench_options.py @@ -287,10 +287,17 @@ def test_review_asks_for_docker_for_every_setup_and_the_null_control(self): setups = {n["name"]: n for n in out["host"]["needs"]} rows = prerequisites.check_here([], setups, which=lambda p: None) self.assertEqual([(x["name"], x["state"]) for x in rows], [("setup:docker", "missing")]) - self.assertEqual(rows[0]["label"], "docker") + self.assertEqual(rows[0]["label"], "Docker for the tasks' VMs") self.assertFalse(prerequisites.ready([{"rows": rows}])) self.assertTrue(prerequisites.ready([{"rows": prerequisites.check_here([], setups, which=lambda p: "/usr/bin/" + p)}])) + def test_an_agents_run_is_asked_the_tick_alone_since_no_container_starts_the_vms(self): + out = recipe.compile(self.a_recipe(["codex"], model_choice="any", model="vendor/m", unsandboxed=False)) + said = [e["message"] for e in out["errors"] if "not sandboxed" in e["message"]] + self.assertEqual(len(said), 1, out["errors"]) + self.assertNotIn("choose Docker", said[0]) + self.assertEqual(recipe.compile(self.a_recipe(["codex"], model_choice="any", model="vendor/m", unsandboxed=True))["errors"], []) + def test_the_null_control_is_refused_as_it_starts_on_a_machine_without_docker(self): b = definitions.get("benchmark", "osworld1") with self.assertRaises(run.Refused) as e: diff --git a/app/ui_tests/test_builder_where.py b/app/ui_tests/test_builder_where.py index 1f2f85b5..981a9336 100644 --- a/app/ui_tests/test_builder_where.py +++ b/app/ui_tests/test_builder_where.py @@ -72,10 +72,12 @@ def test_a_benchmark_booting_its_own_vms_asks_no_isolation_and_refuses_a_size_to with self.subTest(key): hosts = self.draw(None)[key + " local"] self.assertNotIn("data-std-backend", hosts) - self.assertIn('Each task in its own VMVM provider: Docker', hosts) + label = "OSWorld1" if key == "osworld1" else "OSWorld2" + self.assertIn("As you, on the machineA container that Nullius starts cannot start the tasks' VMs", hosts) + self.assertIn(f'Each task in its own VMVM provider: Docker, used by {label} itself', hosts) self.assertEqual(hosts.count("VM provider"), 1) boxes = self.draw(None, backends=("boat",))[key + " boat"] - label = "OSWorld1" if key == "osworld1" else "OSWorld2" + self.assertNotIn("As you, on the machine", boxes) self.assertIn(f'data-std-boat-size="small" aria-pressed="false" disabled aria-disabled="true" title="Too small for {label}'s 4 GB VM"', boxes) self.assertIn('data-std-boat-size="default" aria-pressed="true"', boxes) # the smallest that fits, chosen for it self.assertIn("Each task in its own VMDocker, inside the task's Boat VM", boxes) @@ -87,9 +89,19 @@ def test_a_benchmark_booting_its_own_vms_asks_no_isolation_and_refuses_a_size_to # an agent's run still asks the yes to running as you: its process is on the machine, only the desktop in a VM agent = self.draw(None, "r.others=[C.standardOthers(r).find(o=>!o.setup&&!o.control&&!o.why.length).key];")["osworld1 local"] self.assertIn("data-std-unsandboxed", agent) + self.assertNotRegex(agent, r"data-std-unsandboxed[^>]*checked") # never ticked for the person + self.assertIn("

Docker for the tasks' VMs

", agent) # the requirement under its label # a saved container recipe is brought back to the machine: a container cannot start the VMs self.assertNotIn("data-std-backend", self.draw(None)["osworld2 docker"]) + def test_a_machine_known_to_lack_a_requirement_is_refused_on_the_step_with_what_it_lacks(self): + lacks = self.draw(None, host={"osworld1": {"docker": ["docker not on PATH"]}})["osworld1 local"] + self.assertIn("This machine lacks Docker for the tasks' VMs (docker not on PATH)", lacks) + self.assertEqual(lacks.count("std-hostreq-lacks"), 1) + for name, html in self.draw(None).items(): # nothing known to be missing: nothing said + with self.subTest(name): + self.assertNotIn("std-hostreq-lacks", html) + def test_every_standard_benchmark_draws_its_where_step_and_says_why_docker_is_not_offered_once(self): missing, here = self.draw("docker is not installed"), self.draw(None) self.assertEqual(len(missing), 2 * len(self.schema["standard"]["benchmarks"])) diff --git a/app/ui_tests/test_catalogue_routes.py b/app/ui_tests/test_catalogue_routes.py index 601d1c70..5805cf9b 100644 --- a/app/ui_tests/test_catalogue_routes.py +++ b/app/ui_tests/test_catalogue_routes.py @@ -262,7 +262,7 @@ def test_a_machine_setup_shows_its_label_and_its_key_without_one(self): self.assertIn("Setup: " + label, osworld2) self.assertIn("needs " + label, osworld2) self.assertNotIn("Setup: scoring_programs", osworld2) - self.assertIn("Setup: docker", self.page("osworld1")) + self.assertIn("Setup: Docker for the tasks' VMs", self.page("osworld1")) class DatasetsOnTheirPage(PageCase):