Skip to content

feat(automationbench): serve AutomationBench as typed resources sessions and run it through single_agent_turn - #5961

Merged
weijiac0619 merged 21 commits into
mainfrom
weijiac/n4p1-automationbench
Nov 13, 2026
Merged

weijiac0619 merged 21 commits into
mainfrom
weijiac/n4p1-automationbench

Conversation

@weijiac0619

@weijiac0619 weijiac0619 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What and why

AutomationBench (benchmarks/automationbench) ran only through verifiers_agent behind the legacy_agent relay. verifiers_agent hands the whole episode to the verifiers library: the tool loop, the task's simulated SaaS world (kept in the agent process) and the rubric. There is no resources server, so single_agent_turn cannot drive it, and no other harness can run the benchmark.

This PR splits the episode the way the Environment Server expects:

  • New resources_servers/automationbench. It serves the benchmark as typed resources sessions through the SimpleResourcesServer state hooks (seed_request_model, has_session_state / initialize_session_state / release_session_state, verifying()).
    • /seed_session builds the task's world from info.initial_state, scoped to the task's services, as upstream's AutomationBenchEnv.setup_state does.
    • POST /api_search, /api_fetch, /base64_encode run upstream's api toolset on the session's world through Gym's automationbench_env, so api_fetch keeps its JSON-object params / body. The model gets each tool's text as it is, and errors as verifiers words them (an unknown tool, non-object arguments, a raising call).
    • /verify scores the final world with the benchmark's rubric: aa_headline by default (reward_fn: partial_credit switches it), plus partial_credit, task_completed_correctly, the guardrail and objective counts, task_name and domain. export_assertion_results: true adds the per-assertion records. A raising rubric masks the sample as verifier_error, as verifiers_agent does. A verify retry returns the first scores.
    • Per-domain metrics keep tasks that no /verify reached. With count_missing_rollouts_as_zero or count_failure_classes_as_zero, such a task's zero rows carry its task_id but not the domain that /verify computes, so compute_metrics takes the domain from the task_id prefix. A domain that any repeat reports wins.
    • The typed seed now carries responses_create_params. When it is present, /seed_session rejects a row with no tools before any model call and asks the caller to re-run gym eval prepare --benchmark automationbench. Older callers that omit the optional seed field retain the /verify fallback, which masks such rows as verifier_error instead of scoring 0.
    • Nothing is vendored. Tools and rubric are imported from automationbench_env and upstream automation-bench, at the same pins as verifiers_agent. The tool dispatch reuses verifiers on purpose, for exact tool parity with the existing recipe: tool_env() builds AutomationBenchEnv on a one-row placeholder dataset and calls each tool through its update_tool_args and tool_map. That is why the server depends on verifiers at verifiers_agent's git pin and copies its uv constraint, override and exclude lists. It also declares datasets, which builds that placeholder.
    • setup_webserver runs one api_search before serving, so the main process writes upstream's schema index (a non-atomic first-use write into site-packages) before uvicorn starts any worker. With num_workers > 1, workers then only read it, and each session's requests reach the worker that holds it.
  • benchmarks/automationbench/config.yaml now runs simple_agent (max_steps: 49: verifiers' max_turns: 50 never runs the 50th call's tool calls, while simple_agent runs a call's tool calls before it checks the cap, so both change the world in at most 49 tool rounds) through single_agent_turn_legacy, with direct_http tool access. It sets the run's responses_create_params to temperature and top_p 1.0, the sampling the legacy recipe sends from its agent config. The datasets stay on the agent as flat rows, so run-level responses_create_params overrides still apply. Its manifest moves to version: 0.2.0.
  • config_legacy_agent.yaml is the previous config.yaml, unchanged apart from a deprecation comment, with config_legacy_agent/manifest.yaml (lifecycle: deprecated, version: 0.1.0). This follows feat(swe): run the SWE OpenCode configs through single_agent_turn and keep the relay configs as *_legacy_agent #5762.
  • verifiers_agent is not changed, nor is automationbench_env.
  • prepare.py writes the environment's three tool schemas (with the strict flag verifiers sends) and max_output_tokens: 131072 into each row's responses_create_params. verifiers_agent reads neither. It no longer writes agent_ref: {name: verifiers_agent}: dataset collation strips a row's agent_ref and routes by the instance that declares the dataset (automationbench in both recipes), so the field only produced a warning. data/example.jsonl gets the same changes; every other field is unchanged.

No separate issue is necessary: this PR contains the focused resources-session migration and its compatibility and validation evidence.

Merge order: this branch contains #5987 (the typed seed carries responses_create_params). Merge #5987 first, or land both together.

Compatibility

  • benchmarks/automationbench/config.yaml and the automationbench benchmark name now run simple_agent sessions. Runs that must reproduce earlier scores, such as existing AutomationBench-AA results, use config_legacy_agent.yaml. The two recipes share tasks, prompts, tools and rubric, but not the tool loop:
    • simple_agent talks to the model through the Responses API, which vllm_model converts; verifiers_agent uses chat completions.
    • Invalid tool-call JSON gets simple_agent's error text, not verifiers'.
    • So scores from the two are separate measurements, and the manifests version them apart: 0.2.0 for config.yaml, 0.1.0 for config_legacy_agent.yaml, which keeps the version earlier results were reported under.
  • Sampling. Both recipes send temperature / top_p 1.0: the legacy recipe from its agent config, config.yaml as the run's responses_create_params. Like that key in lmarena_v3, vision_arena_v1 and litmus-bench, it applies to every row of a run that loads config.yaml, and ++responses_create_params.temperature=... replaces it. Rows carry neither, because verifiers_agent lets a row's value win over its config, so adding them would change the legacy recipe.
  • Rows. Rows prepared before this PR lack tools. Under config.yaml their samples are masked as verifier_error with that instruction; re-run gym eval prepare --benchmark automationbench. The legacy recipe is unaffected.
  • verifiers_agent and automationbench_env are unchanged.
  • If reviewers prefer to keep the default on the relay for now, the session recipe can ship as an opt-in config instead (for example config_sessions.yaml), with config.yaml left as it is on main; only the file names in the second commit change.

Validation

Inherited secret-scanner baseline repair (485e809cf9d9a9e0298336f9080ea5e97d09d179)

The previous head inherited malformed JSON from main, so the secrets-detector job could not read its baseline. It did not report a credential finding. This commit applies the same three-line repair already landed in #6083; all 283 entries across 68 files are preserved, and the repaired file is byte-identical to upstream.

Validation on ws: JSON parsing and pre-commit run --all-files passed on the final tree with no generated edits. Independent source review passed. Unit and model reruns are N/A for this baseline-only change. Fresh repository CI was requested for the full commit above.

Main integration (b954f7a04a23062bec8d1d3320f32bbee2b38112, 2026-11-12, workstation ws)

  • Resolved the release-workflow conflict using main's fix(ci): pick previous release tag from all tags for changelog #6066 implementation; source review found no additional checkpoint-protocol conflict with main's feat(checkpoint): protocol for harnesses that borrow a sandbox #5264. No lock resolution was regenerated.
  • uv lock --check passed at the root and in resources_servers/automationbench, benchmarks/automationbench, and responses_api_agents/verifiers_agent using uv 0.13.4.
  • In a fresh locked Python 3.13.14 environment with imports verified against this checkout: resources_servers/automationbench/tests passed 17 tests, and benchmarks/automationbench/tests passed 10 tests. These exercise real upstream initialization, tool mutation, scoring, and session cleanup.
  • pre-commit run --all-files passed.
  • Current-source CI: CICD NeMo Gym and release rehearsal.
  • No new model run at max_steps: 49, separate 49-round stress test, or cold-index multiworker stress test was performed. The historical parity run below used max_steps: 50; it remains separate evidence.

Team review fixes (dc98c39b1)

  • resources_servers/automationbench/tests: 17 passed, including test_sessions_hold_separate_worlds, which now also verifies the first session's world after the second seed. The fixture's setup_webserver runs the api_search warm-up.
  • benchmarks/automationbench/tests: 10 passed. uv lock --check (uv 0.13.4) passes for resources_servers/automationbench, benchmarks/automationbench and responses_api_agents/verifiers_agent; the lock change adds datasets as a direct dependency only.
  • Ruff check and format: passed. gym env validate --config benchmarks/automationbench/config.yaml and --manifest benchmarks/automationbench/manifest.yaml: valid.
  • Not run: a model run at max_steps: 49.

CI repair validation (2026-11-10, workstation ws)

  • Component CI now validates manifest-owned representative input and the exported verifier fixture when a resources server has no legacy data/ bundle. Missing examples, malformed rows, stale composition, and failed fixtures still fail. Present legacy bundles retain their existing checks. Caller virtual-environment settings reach the fixture subprocess.
  • pytest tests/unit_tests/environment/test_environment_validation.py tests/unit_tests/cli/test_manifest_data_validation.py tests/unit_tests/server_runtime/test_typed_seed_responses_create_params.py -q: 93 passed.
  • pytest tests/unit_tests/cli/test_cli.py -k test_manifest_fixture_runs_in_the_server_environment -q: 4 passed.
  • gym env test +entrypoint=resources_servers/automationbench +should_validate_data=true +uv_venv_dir=/dev/shm/gym-monitor-5961-5991/component-venvs: 17 passed; representative input and real tool/scorer fixtures passed in the relocated component environment.
  • Follow-up after CI found two invalid benchmark test stubs: _validate_dataset stubs now return their documented DatasetValidation result instead of None; the real composition/catalog assertions and production validation are unchanged. pytest tests/unit_tests/benchmarks/test_indic_gpqa_diamond.py tests/unit_tests/benchmarks/test_indic_in22.py tests/unit_tests/environment/test_environment_validation.py tests/unit_tests/cli/test_manifest_data_validation.py -q: 138 passed.
  • pre-commit run --all-files: passed, including new regression tests and fixture files.
  • New model rollout: N/A for this CI-routing/fixture repair; it does not change episode behavior. The parity evidence below is author-reported historical validation of the session migration, not a model run performed by this monitor.

Earlier author-reported validation

Unit tests

  • resources_servers/automationbench/tests: 14 passed. They cover seed → tools → verify on a real example task, separate worlds per session, tool error texts, lost session (404 tool, masked verify), verify retry, partial_credit and assertion_results, a raising rubric, a row without tools (masked), a task without assertions (422), close, check_resources_session_contract, and per-domain metrics that keep a task counted as zero before /verify (a domain reported by a repeat wins).
  • After merging main (openai 2.45.0): uv lock --check (uv 0.13.4) passes for resources_servers/automationbench, benchmarks/automationbench and responses_api_agents/verifiers_agent; tests/unit_tests/environment/{test_environment_manifest,test_registry,test_benchmarks,test_environment_validation}.py and tests/unit_tests/data/test_task_data.py: 800 passed; gym env validate --manifest on both manifests: valid.
  • benchmarks/automationbench/tests: 10 passed, including a new check that prepared rows carry the tools and output budget.
  • tests/unit_tests/{environment,config,data}, tests/unit_tests/tooling/test_add_legacy_agent_environment_servers.py, tests/unit_tests/test_public_api_facades.py, tests/unit_tests/cli/test_validate_server_configs.py: 3713 passed. The 8 failures and 31 errors are in tests/unit_tests/data/tasks/harbor/ and test_dataset_orchestrator.py, and are the same test IDs on an untouched main checkout on this host. test_task_data.py (445 tests, which includes the committed-row schema check and the dependency-light task_data.py check) passes.

Checks

  • gym env validate --config on config.yaml, config_legacy_agent.yaml and resources_servers/automationbench/configs/automationbench.yaml: valid.
  • gym env validate --manifest on both manifests, with the 600 prepared rows: valid.
  • pre-commit run --files <changed files>: passed. The README environment-list hook made no change. Commits are DCO signed off.

Parity run
Both recipes at the PR head, on the same 60 tasks (10 per domain: every tenth task of each domain in the prepared 600-row split), 3 repeats each, run in parallel against one vLLM server with a Nemotron checkpoint (thinking on). The model server had no sampling overrides; every captured request from both recipes carried temperature 1.0 and top_p 1.0, so the config.yaml default and the legacy agent config sent the same sampling. 180 episodes per recipe, none masked or failed.

Scores are means over 30 episodes per domain (180 overall); the range is the lowest and highest of the three per-repeat means.

Domain Recipe aa_headline range partial_credit range task_completed_correctly range Assistant turns Tool calls
finance config.yaml 0.474 0.417–0.527 0.627 0.574–0.674 0.367 0.300–0.400 15.4 31.0
finance legacy 0.438 0.360–0.490 0.670 0.599–0.711 0.300 0.300–0.300 16.4 32.3
hr config.yaml 0.217 0.217–0.217 0.370 0.348–0.411 0.100 0.100–0.100 13.1 27.4
hr legacy 0.212 0.200–0.231 0.358 0.336–0.386 0.067 0.000–0.100 12.6 26.3
marketing config.yaml 0.134 0.125–0.152 0.443 0.354–0.526 0.100 0.100–0.100 11.8 21.6
marketing legacy 0.197 0.142–0.225 0.492 0.448–0.520 0.167 0.100–0.200 11.7 20.2
operations config.yaml 0.463 0.396–0.533 0.655 0.620–0.704 0.233 0.200–0.300 10.5 24.7
operations legacy 0.424 0.250–0.525 0.617 0.512–0.671 0.267 0.000–0.500 10.0 23.2
sales config.yaml 0.123 0.056–0.187 0.339 0.262–0.428 0.000 0.000–0.000 12.7 27.7
sales legacy 0.165 0.145–0.177 0.365 0.291–0.422 0.033 0.000–0.100 12.4 26.9
support config.yaml 0.195 0.138–0.236 0.685 0.645–0.735 0.000 0.000–0.000 13.3 31.3
support legacy 0.182 0.091–0.269 0.669 0.610–0.731 0.033 0.000–0.100 13.3 31.9
all config.yaml 0.268 0.247–0.290 0.520 0.511–0.533 0.133 0.117–0.150 12.8 27.3
all legacy 0.270 0.261–0.275 0.528 0.480–0.560 0.144 0.133–0.167 12.7 26.8
  • Paired by task (mean of 3 repeats), config.yaml minus legacy is −0.002 ± 0.027 (standard error) for aa_headline, −0.009 ± 0.018 for partial_credit and −0.011 ± 0.024 for task_completed_correctly. Every per-domain aa_headline difference is within 1.5 standard errors (largest: marketing −0.063 ± 0.042, sales −0.042 ± 0.034).
  • 31 tasks scored above 0 under both recipes, 3 only under config.yaml, 6 only under legacy, and 20 under neither.
  • Episodes ended on a final assistant message in 178 of 180 (config.yaml) and 179 of 180 (legacy). The rest were one output-budget stop per recipe, plus one config.yaml episode that reached the 50-call cap.
  • Reasoning across turns is carried the same way. simple_agent sends earlier reasoning as Responses reasoning items, which vllm_model turns into <think> text on the assistant message. verifiers_agent sends it as <think> text in assistant content. vllm_model then moves both into the message's reasoning field, and the model's chat template renders it for every assistant turn after the last user message, which is every turn of an episode here. In the captured requests, each prompt was at least the previous prompt plus the previous completion in 2126 of 2126 consecutive call pairs (config.yaml) and 2112 of 2113 (legacy). That holds even though the median earlier reasoning (about 190 tokens) exceeds the 10th-percentile prompt growth (about 64 tokens), so prior reasoning was not dropped on either path.

An earlier 40-task smoke (sales only, one sample per task, before this review's changes) showed aa_headline 0.214 vs 0.260. At 3 repeats across all six domains, that gap is not present.

Known limits

  • Sessions live in the worker's memory and are not exported to partial-rollout checkpoints (checkpoint_mode stays restart_only): an episode interrupted by a crash starts over.
  • Tools are served over direct HTTP only; MCP exposure for other harnesses is left for a follow-up.
  • The parity run covers 60 of the 600 tasks with 3 repeats and one model; it shows no overall difference larger than its standard error, not certified equality on the full set. It ran with max_steps: 50, before the cap moved to 49; one of its 180 config.yaml episodes reached the cap.
  • Open question for the owner: the verifiers git pin. verifiers stays a dependency either way: automation-bench requires verifiers>=0.2.0, and automationbench.runner, which builds each session's world, imports verifiers and datasets when it loads. What the reused tool dispatch (tool_env() with its placeholder dataset, update_tool_args, tool_map) adds is the git pin and the copied uv constraint, override and exclude lists. Calling upstream's tools directly, with Gym's api_fetch overrides (JSON-object params / body) carried in the server, would let the pin relax to upstream's range.
  • The relay recipe's verifiers_agent prints a KeyboardInterrupt traceback when Gym stops it (verifiers installs its own SIGINT handler). This is unchanged by this PR.

🤖 Generated with Claude Code

Release rehearsal CI repair

The earlier PR rehearsal repair bounded changelog generation after repository-wide release notes caused Argument list too long. Main's #6066 subsequently replaced that workaround with an explicit previous-tag job. This branch now uses that implementation, preserving explicit changelog overrides and the pinned release template.

Completed CI for the repair

Source b1af4aaf4853268a94157d14a0ff282d74956b37: CICD NeMo Gym and release rehearsal passed. Lint and DCO also passed.

weijiac0619 and others added 2 commits November 10, 2026 12:06
Add resources_servers/automationbench. Each typed resources session holds
one task's simulated SaaS world, built from the row's initial_state as
upstream's AutomationBenchEnv.setup_state builds it. POST /api_search,
/api_fetch and /base64_encode run upstream's api toolset on that world
through Gym's automationbench_env, and the model gets tool text and error
text as verifiers words them. /verify scores the final world with the
benchmark's rubric: aa_headline by default, with partial_credit,
task_completed_correctly and the guardrail and objective counts alongside.
A raising rubric masks the sample as verifier_error.

prepare.py now writes the environment's tool schemas and the 131072-token
output budget into each row's responses_create_params, so a Gym agent can
offer the tools. verifiers_agent reads neither. The example rows gain the
same two fields.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
…d keep the verifiers recipe as config_legacy_agent

benchmarks/automationbench/config.yaml now runs simple_agent (50 model
calls, verifiers' max_turns) through single_agent_turn_legacy against the
automationbench resources server, with direct HTTP tool access. The
previous verifiers_agent recipe behind the legacy_agent relay is kept,
unchanged apart from a deprecation comment, as config_legacy_agent.yaml
with its own deprecated manifest. The README describes both recipes,
their sampling and the per-assertion export of each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

weijiac0619 and others added 2 commits November 10, 2026 15:33
…drop the stale agent_ref

- /verify masks a sample as verifier_error when the row's
  responses_create_params carries no tools: rows prepared before the
  resources server lack them, the model cannot act on the world, and the
  zero they would score is no grade of the model. The reason names
  `gym eval prepare --benchmark automationbench`.
- config.yaml sets the run's responses_create_params to temperature and
  top_p 1.0, the sampling config_legacy_agent.yaml sends from its agent
  config. Rows still carry neither, since verifiers_agent lets a row's
  value win over its config.
- prepare.py and the example rows no longer write
  agent_ref: verifiers_agent. Dataset collation strips a row's agent_ref
  and routes by the declaring instance (`automationbench` in both
  recipes), so the field only produced a warning.
- Both READMEs say the resources server reuses verifiers' tool dispatch
  as a transitional choice for exact tool parity, and what dropping
  verifiers would take.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
… resources seed

single_agent_turn seeds a resources session with task_data, which leaves out the task's responses_create_params,
then sends them back at /verify. A server whose session is built from the task's history or tools could not build
it at seed.

ResourcesSeedSessionRequest gains an optional responses_create_params, and single_agent_turn fills it on the
Resources server's seed, dumped as _verify_body dumps it. Tool servers' seeds do not get it. The base passes it to
seed_request_model only when the model declares a responses_create_params field; every other server's task_data
validates as before, and a seed without the field (an older caller) still validates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
@weijiac0619

Copy link
Copy Markdown
Contributor Author

/ok to test f5361db

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP WITH CARE

I found one RISK in per-domain aggregation and two NOTEs about protocol versioning and user documentation. Counted-zero tasks can disappear from their domain's denominator, inflating domain scores while the overall score includes them.

I reviewed all 15 changed files and traced the affected preparation, routing, session, scoring, tool, and aggregation paths. This was a static review; I didn't execute tests. External AutomationBench/verifiers implementations weren't mounted, and the reader truncated the long example JSONL payloads, so I couldn't independently compare their full world contents. One delegated tool/dependency report wasn't retrievable; I inspected that topic directly.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

def compute_metrics(self, tasks: List[List[Dict[str, Any]]]) -> Dict[str, Any]:
metrics, _, _, _ = compute_pass_majority_metrics(tasks, score_fn=self._scores)
metrics.pop("per_sample_aggregate", None)
metrics.update(compute_subset_metrics(tasks, subset_key="domain", score_fn=self._scores))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RISK — Keep counted-zero tasks in their domain's denominator.

Failure: With count_missing_rollouts_as_zero or count_failure_classes_as_zero, a task with no successfully verified repeat has reward: 0 but no verifier-computed domain. The collector restores dataset fields, not computed fields, and subset aggregation drops tasks with no domain-bearing repeat. Two sales tasks—one scoring 1 and one counted as 0—therefore produce overall pass@1[avg-of-1]/aa_headline = 50 but sales = 100. Both should be 50 under the requested denominator policy.

Correction: In compute_metrics, recover the domain from the prepared task_id when no repeat supplies an explicit domain. Replace this line with the following suggested code; please verify it before adopting it:

subset_tasks = []
for rollouts in tasks:
    if any(r.get("domain") for r in rollouts):
        subset_tasks.append(rollouts)
        continue
    subset_tasks.append([
        {**r, "domain": r["task_id"].split(".", 1)[0]}
        if isinstance(r.get("task_id"), str) and "." in r["task_id"]
        else r
        for r in rollouts
    ])
metrics.update(compute_subset_metrics(subset_tasks, subset_key="domain", score_fn=self._scores))

The invariant is that a counted task participates in its known domain. Retain an explicit domain from any repeat rather than letting an inferred label on an earlier repeat override it. Leave genuinely unidentified tasks unclassified, and keep missing score fields defaulting to zero.

Acceptance — proposed, not executed: Add two separate tasks to an aggregation regression: one row with task_id="sales.a/1", domain="sales" and all three scores equal to 1; another with task_id="sales.b/2", reward=0 and no domain or scores. Expect overall and sales averages of 50 for all three scores. Also retain: a single task with a zero repeat followed by a scored repeat averages 50 in its explicit domain; an explicit domain wins even if it differs from the task-ID prefix; and a masked zero passed through aggregate_metrics stays excluded, as required by the existing masking tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed in 7fa07dd: _with_domain labels a task no /verify reached by its task_id prefix, and the new test covers the counted-zero case (app.py). Looks good to us.

higher_is_better: true
determinism: unknown
agent_server: verifiers_agent
agent_server: simple_agent

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE — Suggestion: version the changed default evaluation protocol.

The manifest still declares version: 0.1.0, although the default now selects simple_agent and the PR treats its scores as a separate measurement from the previous verifiers recipe. The catalog publishes that version directly, so the same benchmark name/version describes two different protocols. The protected benchmark guidance calls for a new version for comparison-affecting changes.

Could you change line 2 to version: 0.2.0, while retaining 0.1.0 in the legacy manifest? This preserves the reproduction recipe's version and distinguishes the session protocol without changing either recipe's tasks or reward.

Acceptance — proposed static check: load both manifests and confirm distinct versions, simple_agent for the default and verifiers_agent for the legacy recipe; retain their dataset paths, repeat counts and reward ranges.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 7fa07dd: the session recipe is 0.2.0 (manifest.yaml#L2) and config_legacy_agent keeps 0.1.0, as DeepSWE did in #4560.

Comment thread benchmarks/automationbench/README.md Outdated

| Config | Agent | Path |
| --- | --- | --- |
| `config.yaml` | `simple_agent` | `single_agent_turn` Environment Server with the [`automationbench` resources server](../../resources_servers/automationbench/README.md) |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE — Suggestion: document the default-recipe migration in the published user docs.

This changes what --benchmark automationbench runs and introduces a resources server, but the migration is documented only in repository READMEs. The Agentic / Tool Use catalog has no AutomationBench entry, and the benchmark guide doesn't explain the migration. The review rubric requires Fern documentation for notable user-facing features.

Could you add a short linked section to the benchmark guide and a catalog entry? Include complete prepare/run commands, the default session recipe, and --benchmark automationbench/config_legacy_agent for reproducing earlier results. Preserve the distinction between the two measurements, the instruction to regenerate old rows without tools, and the direct-HTTP-only limitation. There's no need to duplicate the implementation details from this README.

Acceptance — proposed docs checks: confirm the rendered catalog links to the guide, both recipe selectors resolve to the intended configs, the default example includes model configuration and an output path, and the text explicitly distinguishes legacy and session scores.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on a published entry. AutomationBench has never been in the Fern catalog, and the benchmark README already covers both recipes, re-preparing rows and the separate-measurement caveat. A row in the Agentic / Tool Use table of environment-list.mdx that links the README seems enough; we would keep the details in the README rather than add a migration section to the guide.

weijiac0619 and others added 4 commits November 10, 2026 20:11
…s none

A seed without the params (every tool-server seed) dumped them as null, which a
resources server built from an older Gym refuses: its ResourcesSeedSessionRequest
forbids unknown fields. The key is now left out when it is unset, as
ResourcesSeedSessionResponse does for its observation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
…2.45.0

main moved the root openai pin to 2.45.0; the component lock check runs on the merge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
…n the session recipe 0.2.0

- compute_metrics labels a task that no /verify reached by its task_id prefix, so a task counted as zero under
  count_missing_rollouts_as_zero / count_failure_classes_as_zero stays in its domain's denominator. A domain any
  repeat reports wins.
- benchmarks/automationbench/manifest.yaml moves to 0.2.0; config_legacy_agent keeps 0.1.0, the version earlier
  results were reported under.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
@weijiac0619

Copy link
Copy Markdown
Contributor Author

/ok to test 7fa07dd

yaoyu-33 and others added 5 commits November 10, 2026 21:12
…omationBench sessions branch

Signed-off-by: yaoyu-33 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ped seed's params

The typed seed now carries the task's responses_create_params (#5987). The seed model declares that field, and
initialize_session_state refuses a row whose params carry no tools with ResourcesSeedRejectedError (HTTP 422, which
the Environment Server treats as terminal), so a row prepared before this server fails before any model call
instead of being masked at /verify after the episode. A seed without the params, from a caller that does not send
them, is served as before. /verify no longer checks the tools.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
…ut the task's params

A caller whose typed seed does not carry responses_create_params cannot be checked at seed, so /verify still masks a row without tools as verifier_error instead of scoring it 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
…ects at seed

WorldState validation failed inside initialize_session_state as a plain exception, so /seed_session answered 500 and the Environment Server dispatched the whole episode again. The typed seed contract asks for ResourcesSeedRejectedError (422, terminal) when no retry can make the seed succeed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
…nbuildable worlds

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 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

Copy link
Copy Markdown
Contributor

/ok to test 76ee529

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 11, 2026 05:14
…index before workers start, declare datasets

- config.yaml: max_steps 49. verifiers' max_turns 50 never runs the 50th call's tool calls; simple_agent runs a
  call's tool calls before it checks max_steps, so 49 caps both at 49 tool rounds on the scored world.
- setup_webserver runs one api_search, so the main process writes upstream's schema index (a non-atomic first-use
  write) before uvicorn starts any worker.
- pyproject declares datasets, which tool_env() imports for its placeholder dataset; lock refreshed.
- README: verifiers stays a dependency through automation-bench itself; only the git pin is the dispatch's cost.
  Note that the server runs with several workers.
- test_sessions_hold_separate_worlds also checks the first session's world after the second seed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
@weijiac0619

Copy link
Copy Markdown
Contributor Author

/ok to test dc98c39

@yaoyu-33

Copy link
Copy Markdown
Contributor

/ok to test b954f7a

Main's #5775 validates a resources server that only manifest workloads use through its committed verifier
fixtures (manifest_workloads_for_server, validate_environment(validate_datasets=False)). That covers what
eb66804 added for AutomationBench, so nemo_gym/cli/env.py and nemo_gym/environment/validation.py take main's
version, and the tests for the replaced path (require_all_datasets, setup_config reuse, the indic stubs it
needed) are dropped. AutomationBench's VERIFIER_FIXTURE and verifier_cases.jsonl stay; main's path runs them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
@weijiac0619

Copy link
Copy Markdown
Contributor Author

/ok to test 9782f70

@yaoyu-33

Copy link
Copy Markdown
Contributor

/ok to test 485e809

Main's #6083 repaired the secrets baseline with the same three lines as 485e809, so
.github/workflows/config/.secrets.baseline no longer differs from main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: weijia chen <[email protected]>
@weijiac0619

Copy link
Copy Markdown
Contributor Author

/ok to test 30089d4

@weijiac0619
weijiac0619 added this pull request to the merge queue Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43522038922

Merged via the queue into main with commit 37241f4 Nov 13, 2026
80 checks passed
@weijiac0619
weijiac0619 deleted the weijiac/n4p1-automationbench branch November 13, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants