Repository navigation
Commit 55c9f73
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
File tree
- app
- nullius
- catalogue
- agents/codex
- benchmarks/osworld1
- runs
- standard
- kits/agent-computer-v1
- static/builder
- tests
- fixtures
- osworld1_fake_desktop
- desktop_env
- standard
- ui_tests
- docs
- agents/supported
- benchmarks/supported
- cli
- ports
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
141 | 176 | | |
142 | 177 | | |
143 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | | - | |
| 40 | + | |
32 | 41 | | |
33 | 42 | | |
34 | 43 | | |
| |||
0 commit comments