Skip to content

feat(automationbench): make the benchmark discoverable and preparable - #3322

Merged
cmunley1 merged 1 commit into
cmunley1/ab-evalsfrom
wprazuch/automationbench-benchmark-wrapper
Sep 14, 2026
Merged

cmunley1 merged 1 commit into
cmunley1/ab-evalsfrom
wprazuch/automationbench-benchmark-wrapper

Conversation

@wprazuch

Copy link
Copy Markdown
Contributor

Targets cmunley1/ab-evals rather than main, so the diff is just the wiring
and it lands inside #3187. Happy to fold it in however you prefer, or close
this if you'd rather take the change directly.

Why

AutomationBench cannot currently be run through gym or EFB at all. Three
things block it, each verified against your branch:

  1. Not discoverable. discover_benchmarks() only scans the benchmarks/
    subdir of each component search root, so a config under environments/ is
    never seen. 'automationbench' in discover_benchmarks() → False.
  2. No type: benchmark dataset. _is_benchmark_config() requires exactly
    one; the environment config declares only example and validation, so it
    would not qualify even if moved.
  3. No prepare(). gym eval prepare imports the prepare script as a
    module and calls module.prepare(**prepare_script_args), requiring the
    returned path to equal the dataset's jsonl_fpath
    (nemo_gym/cli/eval.py). prepare.py exposes only an argparse main(),
    and automationbench-600.jsonl is gitignored — so an EFB
    install_on_the_fly run finds no data.

Net effect: --benchmark automationbench, ++split=benchmark and any
Evaluator run resolve to nothing.

What this does

Adds benchmarks/automationbench/config.yaml, mirroring how
benchmarks/ifbench/config.yaml wraps environments/instruction_following —
chain to the environment config, _inherit_from the instance, declare the one
benchmark dataset.

Rather than duplicating the row-building logic, prepare() is extracted from
main() so the benchmark config can point prepare_script back at the
environment's own script. main() becomes a thin CLI wrapper; the CLI
behaviour is unchanged. Also adds the __init__.py that every other
environment package has.

Verified on your branch

gym eval prepare --benchmark automationbench   -> wrote 600 rows
gym eval run --benchmark automationbench --split benchmark --limit 1
   -> 1 rollout, task_source: automationbench_benchmark, 2 real tool calls

Note for reviewers, not caused by this change

Benchmark discovery needs allow_openai_version_skew=true in this tree.
verifiers 0.3.1 requires openai>=2.9.0 unbounded, which resolves to 3.13.0
against nemo-gym's openai==2.44.0 pin. Without the flag every benchmark
fails to resolve, not just this one — worth a pin rather than a flag, but it
belongs in #3187's discussion rather than here.

Separately, I have #3321 open against main fixing the rollout-capture prefix
in verifiers_agent, which is what makes rollout-health checks report anything
other than unobserved for this benchmark. Independent of this PR.

AutomationBench currently cannot be run through `gym` or EFB at all. Three
things block it, each verified against this branch:

1. `discover_benchmarks()` only scans the `benchmarks/` subdir of each
   component search root, so a config living under `environments/` is never
   seen. `'automationbench' in discover_benchmarks()` was False.
2. `_is_benchmark_config()` requires exactly one `type: benchmark` dataset.
   The environment config declares only `example` and `validation`, so the
   config would not qualify even if it were moved.
3. `gym eval prepare` imports the prepare script as a module and calls
   `module.prepare(**prepare_script_args)`, requiring the returned path to
   equal the dataset's `jsonl_fpath` (nemo_gym/cli/eval.py). `prepare.py`
   exposed only an argparse `main()`, and the declared
   `automationbench-600.jsonl` is gitignored, so an EFB `install_on_the_fly`
   run would find no data.

Together these mean `--benchmark automationbench`, `++split=benchmark` and any
Evaluator run resolve to nothing.

Add `benchmarks/automationbench/config.yaml`, mirroring how
`benchmarks/ifbench/config.yaml` wraps `environments/instruction_following`:
chain to the environment config, inherit the instance, declare the single
benchmark dataset. Extract `prepare()` out of `main()` so the benchmark can
point `prepare_script` back at the environment's own script rather than
duplicating the row-building logic, and add the `__init__.py` every other
environment package has.

Verified on this branch: `gym eval prepare --benchmark automationbench` writes
600 rows, and `gym eval run --benchmark automationbench --split benchmark`
collects a rollout with `task_source: automationbench_benchmark` and real tool
calls.

Note for reviewers: benchmark discovery needs `allow_openai_version_skew=true`
in this tree. That is not caused by this change -- `verifiers` 0.3.1 requires
`openai>=2.9.0` unbounded, which resolves to 3.13.0 against nemo-gym's
`openai==2.44.0` pin, and without the flag *every* benchmark fails to resolve,
not just this one.

Signed-off-by: Wojciech Prazuch <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Sep 11, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Sep 14, 2026
@wprazuch wprazuch mentioned this pull request Sep 14, 2026
5 tasks
@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Sep 14, 2026
@cmunley1
cmunley1 merged commit 1bf0c1e into cmunley1/ab-evals Sep 14, 2026
10 checks passed
@cmunley1
cmunley1 deleted the wprazuch/automationbench-benchmark-wrapper branch September 14, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants