Skip to content

Commit 55c9f73

Browse files
pierrelecasirotaolegaitianshi
authored
feat(standard): run a desktop benchmark with an agent of the Agents page, through a computer port and its kit (#188)
Closes #187 ## What An agent of the Agents page could not run OSWorld: the entry asked for `agent.computer/v1`, a port with no page, no server and no kit. This adds the three. - **The port:** the benchmark's runner serves the desktop to the agent as an MCP server `computer` of fifteen tools. Five read (`info`, `screenshot`, `read`, `python`, `upload`), eight act (`click`, `move`, `drag`, `scroll`, `type`, `key`, `wait`, `step`) and two end the task (`done`, `fail`). One acting call is one step, counted by the benchmark's own loop. A `step` may also end the task with `end` (`done` or `fail`): a decision that acts and then stops is one step. The port's records (calls, desktop events and targets, OSWorld's result and runner log) are listed on a trial's Artifacts tab. - **The kit:** a small desktop in a container and eight checks: four basic (`see`, `click`, `type`, `limit`) and four skills (`drag`, `scroll`, `recover`, `batch`), with a null control and a reference. - **OSWorld's agent side:** an agent that holds the port runs OSWorld's tasks through the upstream's own loop and evaluator, unmodified, with the options Steps and Pause. Steps is the entry's one `max_steps`, for OSWorld's own scripts and for an agent through the port, where `default` is 100. - **The core:** what a driver needs for this (`driver.participant`, `driver.unit_end`, `limits.setup_seconds`, an option for agents alone), and `conform` going on past a kit that cannot run on the machine. **Read first:** the port's page, then `computer_port.py` (the server and its bridge to a loop), the kit's `checks.py` and `driver.py`, then OSWorld's `runner.py` and the new part of its `driver.py`. `main` is merged in, with the fixes the merge needed. Two limits: OSWorld's agent side ran on the local backend alone, and the port bounds an agent's steps, not its model calls. A run that would put the agent in a VM of its own is refused with the port. ## Touches backend and the standard · templates and static · docs and site · catalogue ## Before and after The builder for OSWorld, with an agent that holds the port chosen: Pause on the Agent step, Steps with the run's limits. Each picture opens at full size. | Before: the Agent step | After: the Agent step | After: the Limits step | | --- | --- | --- | | <img width="290" alt="The Agent step on main" src="https://github.com/user-attachments/assets/ec03527a-752b-4da3-bc4b-4989c066139e"> | <img width="290" alt="The Agent step with Pause" src="https://github.com/user-attachments/assets/0aec1aa6-f683-4107-af6d-e223775ff726"> | <img width="290" alt="The Limits step with Steps per task" src="https://github.com/user-attachments/assets/4925dd16-375e-4379-ac2f-e9d9f527794a"> | ## Verified - **The kit's own proof** (`prove`), on a machine with Docker: the null control passes 0 of 8 checks and the reference 8 of 8. The kit's tests that need Docker pass there (100 tests). - **A real agent on the kit:** `codex` 2.2.2 with `gpt-6-luna` passes the four basic checks and shows the four skills, each in three runs of three (`conform --repeat 3`, the container backend). - **OSWorld on the upstream's real VM, through the port,** with a scripted agent: every tool answered as the page says, and the steps as the port counts them equal the upstream's own trace. A turn with no `done`, a `fail`, a used-up budget and a stop each left no VM, container or process. Two units at a time kept their desktops apart. - **Unchanged:** OSWorld with its own agents, and the null control, give the same records as on `main`. - **Tests:** the backend and route suites, each module in its own process, pass but for one module that fails the same way on `main` in the sandbox used here. After the merge of `main`, `prove` and the suites were run again; the other lines above date from the first push. - **Not verified:** the container backend for OSWorld's agent side, and OSWorld's tasks run by a model-driven agent of the Agents page. ## Risk A run with no agent of the Agents page takes the paths it took: the new hooks act only for a driver that asks for them (the comparison above). The kit needs Docker; on a machine without it `conform` reports that kit as refused and goes on. The port's page is a contract: agents built against it would break if it changed. Undo with a revert. --------- Co-authored-by: Oleg <247799477+sirotaoleg@users.noreply.github.com> Co-authored-by: Etienne Filhol <etienne.filhol@hotmail.fr>
1 parent f6ef315 commit 55c9f73

62 files changed

Lines changed: 10351 additions & 140 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ and its resources. The source layout stays under `app/`.
6262
`feed`: the live feed any Harbor writes, from its own trial hooks),
6363
`importers/` (`atif` ATIF, `otel` OpenTelemetry, and the `cli`), `judge/` (`questions`, `state`, `client`, `store`, `batch`, `reconcile`, `lanes`),
6464
`standard/` (the Nullius standard, `docs/standard.md`: `ports`, `names` (capability vocabulary and legacy aliases), `definitions` (with an agent's or capability's versions), `match`,
65-
`jsonl`, `acp`, `cancellation` (interruptible protocol waits), `relay`, `ledger` (a run's spending cap), `retries` (what an attempt is tried again after, and how many times), `pace` (how soon the next unit starts after a rate limit), `pins` (image digests checked against registry tags), `install`, `run`, `container` (the container backend), `boat` (the boat backend: each unit's agent in a boat.dev VM), `setup_container` (an Original setup's driver and its Linux dependencies in Docker), `forward` (a licence server's one door from it, or a benchmark's MCP server's), `web_services` (HTTP fixtures a driver's setup declares, each behind a unit-local Docker door), `mcp_machine` and `mcp_bridge` (a benchmark's MCP server run on the machine, in its driver's environment, and the agent's bridge to it), `network_requirements` (an environment's declared public web access: the schema and the connectivity check), `hostreq` (what a benchmark's options need of the machine its driver runs on: the check and the install) and `egress` (an own image's check's proxy to public addresses), `job`, `conform`, `fidelity` (ACP against the agent's own CLI), `prove` (a benchmark's controls and proofs), `shard` and `merge` (one run over many machines), `recipe` (the builder's standard recipe), `howto` (the How to add steps) and the `cli`; its
65+
`jsonl`, `acp`, `cancellation` (interruptible protocol waits), `relay`, `ledger` (a run's spending cap), `retries` (what an attempt is tried again after, and how many times), `pace` (how soon the next unit starts after a rate limit), `pins` (image digests checked against registry tags), `install`, `run`, `container` (the container backend), `boat` (the boat backend: each unit's agent in a boat.dev VM), `setup_container` (an Original setup's driver and its Linux dependencies in Docker), `forward` (a licence server's one door from it, or a benchmark's MCP server's), `web_services` (HTTP fixtures a driver's setup declares, each behind a unit-local Docker door), `mcp_machine` and `mcp_bridge` (a benchmark's MCP server run on the machine, in its driver's environment, and the agent's bridge to it), `computer_port` and `computer_pipe` (the computer port's MCP server, served by a desktop benchmark's runner over the benchmark's own loop, and the session's stdio pipe to it), `network_requirements` (an environment's declared public web access: the schema and the connectivity check), `hostreq` (what a benchmark's options need of the machine its driver runs on: the check and the install) and `egress` (an own image's check's proxy to public addresses), `job`, `conform`, `fidelity` (ACP against the agent's own CLI), `prove` (a benchmark's controls and proofs), `shard` and `merge` (one run over many machines), `recipe` (the builder's standard recipe), `howto` (the How to add steps) and the `cli`; its
6666
`payload` snapshots the running backend and effective catalogue for a remote host;
6767
conformance kits under `standard/kits/`, each a benchmark: a `driver` and, for the
6868
tools kit, an MCP server `mcp_kit`) - the definitions it reads are in the catalogue:
6969
a benchmark's `standard.json` and `driver` in its folder (τ³-bench's also the MCP
7070
server of its domains' tools, `mcp_server`: the upstream's own, run on the machine; OSWorld1's also its null control's
71-
agent, `nop`; OSWorld2's also `nop`, `api_logs` (each image of its API logs kept once), `websites` (its mock
71+
agent, `nop`, and the `runner` of a unit an agent runs: the upstream's loop with the computer port's bridge; OSWorld2's also `nop`, `api_logs` (each image of its API logs kept once), `websites` (its mock
7272
websites: the checks before a VM start, Overleaf's lock and reset, the stack's command line), `gitlab_server` (its
7373
GitLab: made once on the run's machine with its token, its tasks' lock, the stack's command line), `proxy` (a
7474
tinyproxy of a unit's own for the tasks that ask for a proxy) and, in `startup/`,

‎app/nullius/catalogue/agents/codex/agent.json‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,41 @@
138138
"kit_version": 1,
139139
"backend": "docker",
140140
"job": "2026-11-12__10-24-26__kit__agent-search-v1__codex-2.2.2"
141+
},
142+
"agent.computer/v1": {
143+
"passed": "4/4",
144+
"on": "2026-11-17",
145+
"model": "gpt-6-luna",
146+
"provider": "openai",
147+
"version": "2.2.2",
148+
"kit_version": 1,
149+
"backend": "container",
150+
"job": "2026-11-17__12-53-08__kit__agent-computer-v1__codex-2.2.2",
151+
"repeat": 3,
152+
"checks": {
153+
"see": "3/3",
154+
"click": "3/3",
155+
"type": "3/3",
156+
"limit": "3/3"
157+
},
158+
"skills": {
159+
"drag": {
160+
"passed": "3/3",
161+
"ok": true
162+
},
163+
"scroll": {
164+
"passed": "3/3",
165+
"ok": true
166+
},
167+
"recover": {
168+
"passed": "3/3",
169+
"ok": true
170+
},
171+
"batch": {
172+
"passed": "3/3",
173+
"ok": true
174+
}
175+
}
141176
}
142177
}
143178
},

‎app/nullius/catalogue/benchmarks/osworld1/benchmark.json‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
],
1010
"origin": "official",
1111
"good_to_know": [
12+
"An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. Steps (100) and Pause (3.0 seconds) set that loop.",
1213
"Original runs one of OSWorld's own agents, chosen by the Agent option (M3 by default), with a model it is published with.",
1314
"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.",
1415
"Only M3, PromptAgent and Qwen-CUA have completed tasks through Nullius. The other agents were checked up to their first model call.",
@@ -25,10 +26,18 @@
2526
"Each VM's ports are open on every network interface; one runs any command in the VM. Bind Docker's ports to 127.0.0.1, or keep the machine off untrusted networks."
2627
],
2728
"limitations": [
28-
"No agent from the Agents page can run it yet.",
29+
"An agent needs the computer port, proven by its conformance kit. The agent side has been checked on a fake desktop alone.",
30+
"Preparing the VM image (its lock and its download) is not bounded by a unit's setup time; the core's own limit on setup ends it.",
31+
"A VM start that hangs holds the start gate until its unit's setup time ends; units waiting for the gate fail at the end of theirs.",
32+
"On the local backend an agent runs as you and can write where you can, the runner's folder included.",
33+
"A runner let go at the end of scoring's time that then ends by itself is scored from its complete result.",
34+
"A stop during the runner's last clean-up keeps the result already written.",
35+
"A driver killed outright leaves the runner to stop on its own; a kill during a VM's start can leave that VM.",
36+
"A reaper checks a runner's start time before it ends the runner's group; a process number reused in between is not caught.",
37+
"The agent's python and upload calls do not mark OSWorld's desktop as used; each unit's desktop is reset once, before the agent's first call.",
2938
"Only 12 of OSWorld's agents are offered; the others fail at the pinned commit or need services the relay cannot reach.",
3039
"The VMs run only on Docker's default socket, not on rootless Docker or a Docker context. Podman is untested.",
31-
"A task still running after 2 hours is stopped and gets no score."
40+
"A task run by one of OSWorld's own agents and still running after 2 hours is stopped and gets no score. For an agent, the task's setup may take 1 hour, the agent's turn 2 hours and the scoring 10 minutes; past any of them the task gets no score."
3241
],
3342
"datasets": [
3443
{

0 commit comments

Comments
 (0)