Repository navigation
Commit 56ca756
authored
feat(standard): choose a benchmark's own agents like any agent, one job each (#246)
Closes #245
## What
OSWorld 1 and OSWorld 2 ship several agent scripts of their own. They
were one `agent` option of the Original setup, one value per recipe, and
every job recorded its agent as `original`. They are now agents: listed
on the Agents page, chosen in the builder's Agent step, and named in
their jobs. Nullius still runs the upstream's own scripts, unchanged.
1. **A benchmark's own agents are agents of the catalogue.** Each entry
of `osworld1/agents.json` and `osworld2/agents.json` is a
`nullius.agent/v1` definition with `key`, `label`, `summary`, `models`
and a new optional start kind, `start.driver`. `start.driver.agent`
keeps the upstream's own value (`openai_cua`); the rest is what the
driver runs (`script`, `argv`, `env`). Keys are dashed (`openai-cua`)
and the ref is `<benchmark>:<key>` (`osworld1:openai-cua`). Where an
agent comes from (`from`: bundled, yours, benchmark) and its `only_for`
are derived from where its definition sits, never written.
`standard.json` keeps only `options.agent`'s `label`, `summary` and
`setups`; the loader rebuilds `values`, `names`, `about` and `default`
from the file, so drivers, `--bench-option agent=...` and
`NULLIUS_OPTION_AGENT` read as before. `problems()` refuses a driver
agent with `offers` or `proven`, a missing field, a model outside
`setups.original.models`, an `only_for` naming another benchmark, and
option values written beside the file. `match.fit` binds an own agent to
its benchmark ("OpenAI CUA belongs to OSWorld1") and checks no port. The
Agents page lists them behind a From filter whose default leaves them
out; their card shows the benchmark, linked, and the published models.
2. **The builder offers them as agent tiles.** For OSWorld, its own
agents come first in the Agent step, in place of the Original tile and
the `agent` select. Several may be chosen, one job each. A setting that
names one agent (M3's `thinking`) is in that agent's tab. Other
benchmarks' own agents are greyed with the benchmark they belong to, and
a chip hides them. A pick compiles through the Original setup with the
upstream's value as its agent option: one pick gives the command the
option gave, byte for byte. Like the paper names the agent that a model
is not published with. A recipe from before (`original` with
`bench_options.agent`) is read as that agent, by `standardFromJSON` and
by the server's compile; without `agent` it is the first agent, and an
unknown value is a compile error that names it.
3. **A job names the agent that ran.** `config.standard.setup.agent`,
`agent_info.name`, `agents[].name` and the live feed carry the agent key
(`openai-cua`); the setup stays `original`. `parse` names an older
OSWorld job the same way from its recorded agent option, so old and new
runs of one agent share a Compare column.
4. **Under the `model` method, `setup.asked` is the model the agent is
asked as.** It was `setups.model.runs_as` (MiniMax-M3) for every agent,
while the driver asks the agent's own first model.
5. **A Runs on filter** on the Agents and Capabilities pages: one choice
per benchmark, each entry under the benchmarks it fits, read from the
same `fits` the builder greys with. For OSWorld1 it keeps its 12 own
agents and Codex, the catalogue agent that proved the computer port.
6. **An own agent's protocol reads "its own script"** on every tile, its
own benchmark's included.
7. **A card's summary breaks a long word** (a script name such as
`run_multienv_muse_spark.py`) instead of running past the card's edge,
on every catalogue card page.
Out of scope: τ³-bench's `upstream_agent` option, and Harbor's reference
agent bound to one benchmark. The builder's Agent step grid will be
redrawn in a later change.
## Touches
standard (`standard/definitions.py`, `match.py`, `recipe.py`, `job.py`,
`run.py`, `cli.py`) · runs (`runs/parse.py`) · catalogue (`osworld1/`,
`osworld2/`: `agents.json`, `standard.json`, `driver.py`) · routes
(`web/agents.py`) · templates (`agents/standard.html`, `_cards.html`,
`_tables.html`) · static (`catalogue/catalogue.css`) · builder
(`command-builder-core.js`, `command-builder.js`) · docs (`standard.md`,
`builder.md`, `agents/add-manually.md`, `field-guide.md`, generated
Supported pages) · skills (`import-standard`, `import-benchmark`,
`remove-integration`) · tests
## Before and after
| Before | After |
| --- | --- |
| <img width="1280" height="863" alt="01-before-agents"
src="https://github.com/user-attachments/assets/450dd489-eea7-4347-b75f-d3fede283c54"
/> | <img width="1280" height="863" alt="01-after-agents"
src="https://github.com/user-attachments/assets/5c720114-0a39-4014-89ed-692eeb5b0b13"
/> |
| <img width="1280" height="863" alt="02-before-agents-filter"
src="https://github.com/user-attachments/assets/ee69150a-adf1-45c8-9ab2-ce163ffc7d61"
/> | <img width="1280" height="1568"
alt="02-after-agents-runs-on-osworld1"
src="https://github.com/user-attachments/assets/c3ade916-7847-4c28-8eeb-faf6a21e88a8"
/> |
| <img width="1280" height="1427" alt="03-before-builder-agent"
src="https://github.com/user-attachments/assets/25b9f52b-bdb4-44a4-ac1b-59100d196809"
/> | <img width="1280" height="1742" alt="03-after-builder-agent"
src="https://github.com/user-attachments/assets/135e948b-eba3-462b-8239-9d274d3310ba"
/> |
| <img width="1280" height="1497" alt="04-before-builder-review"
src="https://github.com/user-attachments/assets/8ca968da-11cf-4bbe-80f0-8ee2228ba4a6"
/> | <img width="1280" height="1420" alt="04-after-builder-review"
src="https://github.com/user-attachments/assets/05810b81-e60e-41f3-becf-520ea9848a67"
/> |
| <img width="1280" height="863" alt="05-before-agents-dark"
src="https://github.com/user-attachments/assets/0b177a26-41d3-4a89-a12a-9c223a5a63e7"
/> | <img width="1280" height="2139" alt="05-after-agents-dark-from-all"
src="https://github.com/user-attachments/assets/203206d3-0acd-4cf2-8227-63135f2ea394"
/> |
1. Agents page. 2. Agents page filters (after: From All, Runs on
OSWorld1). 3. Builder, Agent step for OSWorld1 (after: two of its agents
chosen). 4. Builder, Review for OSWorld1 (after: two jobs). 5. Agents
page, dark theme (after: From All).
## Verified
- In a rootless Podman container (`python:3.12`): `python3
app/tests/parallel.py`: 3099 tests in 157 modules, OK.
- `pip install -r app/requirements.txt`, then `python3
app/tests/parallel.py app/ui_tests`: 543 tests in 55 modules, OK.
- Each of the first six commits passes both suites on its own.
- `python3 app/tests/catalogue_docs.py --write` and `python3
app/tests/field_contract.py --write` leave the tree unchanged.
- `app/ui_tests/test_recipe_execution_fixtures.py` and its fixtures are
unchanged.
- New tests:
- `test_benchmark_agents.py`: the entries load as agents bound to their
benchmark; the option is rebuilt from the file; each refusal of
`problems()`; the fits table; an own agent compiles to the command of
today's agent option; a recipe from before, without `agent`, and with an
unknown value; two agents give two jobs named by their keys; Like the
paper with a model the agent is not published with; two of its agents
without a model give one error, not one each; another benchmark's agent
is refused with its reason; a job names its agent, an older job is read
the same way; `setup.asked` under the `model` method for a non-M3 agent.
- Route tests: the Agents page's From and Runs on filters; the Agent
step tiles for OSWorld1, `thinking` in M3's tab and no `agent` option;
other benchmarks' own agents greyed; a recipe from before read back by
the builder.
- In a browser, on a local server with an empty profile, at 1280 px: the
Agents page with the From and Runs on filters, light and dark, and the
builder's Agent and Review steps for OSWorld1 with two own agents
chosen. No page error.
- Each OSWorld `driver.py` changes by three lines: on load it keys
`agents.json`'s entries by `start.driver.agent` again, so the rest of
the driver reads the shape it read before. The suite loads both drivers
and checks that their keys are the agent option's values
(`test_osworld2_muse.py`) and that each OSWorld1 agent's `argv` gives
its own step limit (`test_standard_bench_options.py`).
Not checked: a real OSWorld run. For one agent, the compiled command is
the one the agent option gave.
## Risk
- Compare columns move. New OSWorld jobs name their agent key, not
`original`, and older ones are read the same way, so an `original`
column for OSWorld becomes one column per agent.
- Job names with several agents chosen use the agent key in place of
`original`. A single pick keeps its name.
- Every agent benchmark now shows 14 greyed tiles, OSWorld's own agents.
The chip hides them.
- Like the paper with two own agents that share no model has no valid
model. The compile says which agent.
- A recipe saved on this branch names `osworld1:<key>`, which main does
not read. To undo, revert the commits; recipes saved in the old shape
compile on both.1 parent 5c918be commit 56ca756
41 files changed
Lines changed: 1206 additions & 519 deletions
File tree
- .claude/skills
- import-benchmark
- import-standard
- remove-integration
- app
- nullius
- catalogue/benchmarks
- osworld1
- osworld2
- runs
- standard
- static
- builder
- catalogue
- templates
- agents
- tests
- ui_tests
- web
- docs
- agents
- benchmarks/supported
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 | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
| 221 | + | |
221 | 222 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
451 | 456 | | |
452 | 457 | | |
453 | 458 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
0 commit comments