Repository navigation
fix(automationbench): give prepared rows a stable task_id - #4683
Conversation
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]>
|
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. |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38869966578 |
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_idorinstance_id. Prepared AutomationBench rows carried none of them, sogym eval plan --benchmark automationbenchrefused the benchmark and its tasks could not be selected by id.example_idalone is not enough: it repeats across domains (570 distinct values over 600 rows). Prefixing the task name makes it unique.task_idxandexample_idare kept unchanged, so nothing that reads them changes. Same approach as #4610 for IFEval.task_idis 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 reportstask_idas an unknown key on every row. The committeddata/example.jsonlrows gain the same field, so they match whatprepare.pynow writes.Validation
benchmarks/automationbench/tests/test_prepare.py(environment load mocked): prepared rows carrytask_name/example_idastask_id; ids stay unique whenexample_idrepeats across domains; prepared rows anddata/example.jsonlare 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.gym eval plan --benchmark automationbench --out plan.jsonprepares the data and writes a plan with 600 tasks and 600 unique ids (finance.airtable_expense_approval/4026, …). Onmainthe same command is refused because the rows have no id field.gym eval plan --benchmark automationbench --task-ids sales.multi_hop_lookup/501plans exactly that task.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_idfield; re-rungym eval prepare --benchmark automationbenchto pick it up.Checklist
pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).