Skip to content

fix(automationbench): give prepared rows a stable task_id - #4683

Merged
iguehring-nvidia merged 1 commit into
mainfrom
iguehring/automationbench-task-id
Oct 16, 2026
Merged

iguehring-nvidia merged 1 commit into
mainfrom
iguehring/automationbench-task-id

Conversation

@iguehring-nvidia

@iguehring-nvidia iguehring-nvidia commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Gives every prepared AutomationBench row a stable task_id: <task_name>/<example_id> (e.g. sales.multi_hop_lookup/501), unique for all 600 tasks.

Gym selects and plans tasks by task_id, problem_id or instance_id. Prepared AutomationBench rows carried none of them, so gym eval plan --benchmark automationbench refused the benchmark and its tasks could not be selected by id. example_id alone is not enough: it repeats across domains (570 distinct values over 600 rows). Prefixing the task name makes it unique.

task_idx and example_id are kept unchanged, so nothing that reads them changes. Same approach as #4610 for IFEval.

task_id is also declared as an optional field in the verifiers_agent task-data schema (responses_api_agents/verifiers_agent/task_data.py). Without it, task-data validation reports task_id as an unknown key on every row. The committed data/example.jsonl rows gain the same field, so they match what prepare.py now writes.

Validation

  • New test benchmarks/automationbench/tests/test_prepare.py (environment load mocked): prepared rows carry task_name/example_id as task_id; ids stay unique when example_id repeats across domains; prepared rows and data/example.jsonl are clean under the verifiers_agent schema. The two schema tests fail without the schema change.
  • pytest benchmarks/automationbench/tests: 8 passed. pytest responses_api_agents/verifiers_agent/tests: 23 passed.
  • pre-commit run --all-files: pass.
  • gym env test +entrypoint=responses_api_agents/verifiers_agent +should_validate_data=true: 23 passed.
  • Real run: gym eval plan --benchmark automationbench --out plan.json prepares the data and writes a plan with 600 tasks and 600 unique ids (finance.airtable_expense_approval/4026, …). On main the same command is refused because the rows have no id field.
  • gym eval plan --benchmark automationbench --task-ids sales.multi_hop_lookup/501 plans exactly that task.
  • The full prepared file (600 rows) is clean under the verifiers_agent schema.

Rollouts

N/A: only the prepared rows gain a field; prompts, environment arguments and grading are unchanged.

Compatibility and benchmark impact

None for scores. Prepared files gain a task_id field; re-run gym eval prepare --benchmark automationbench to pick it up.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Documentation added or updated, or N/A with justification. N/A: no documented behaviour changes; the schema field carries its own description.
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format checks pass).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

Gym selects and plans tasks by an id stored in the row (`task_id`,
`problem_id` or `instance_id`). Prepared AutomationBench rows carried
none, so `gym eval plan --benchmark automationbench` refused the
benchmark and its tasks could not be selected by id. `example_id` alone
is not unique: it repeats across domains.

Add `task_id = <task_name>/<example_id>`, unique across all 600 tasks.
`task_idx` and `example_id` are kept unchanged. Declare `task_id` in the
verifiers_agent task-data schema so validation does not report it as an
unknown key, and add it to the committed example rows.

Signed-off-by: Ingo Guehring <[email protected]>
@iguehring-nvidia iguehring-nvidia self-assigned this Oct 16, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 16, 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.

@iguehring-nvidia
iguehring-nvidia marked this pull request as ready for review October 16, 2026 07:33
@iguehring-nvidia iguehring-nvidia added bug Something isn't working area:data Datasets, preparation, task formats, and materialization needs-review PR is ready for code review and waiting on a reviewer labels Oct 16, 2026
@iguehring-nvidia

Copy link
Copy Markdown
Contributor Author

/review

@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.

HOLD — review incomplete.

No validated reliability findings in the preparation code, schema, tests, or affected task-identity consumers inspected.

The remaining comparison cannot be completed with the available tools: the file reader truncates each of the five long rows in example.jsonl, and provides no character-offset access to the omitted contents. The added ID prefixes were visible, but the complete omitted base/head diff could not be reconstructed. Approval requires confirming that the remaining row contents—including prompts, environment state, and assertions—are unchanged.

Static inspection only; tests were not executed.

Review generated by codex

@iguehring-nvidia
iguehring-nvidia added this pull request to the merge queue Oct 16, 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/38869966578

Merged via the queue into main with commit 23cbc4c Oct 16, 2026
45 of 50 checks passed
@iguehring-nvidia
iguehring-nvidia deleted the iguehring/automationbench-task-id branch October 16, 2026 08:11

This branch was previously deployed

1 inactive deployment
public — fd19fdcb Deployed Oct 16, 2026 by copy-pr-bot[bot] via release / finalize / notify #5629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:data Datasets, preparation, task formats, and materialization bug Something isn't working 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.

3 participants