Skip to content

fix(benchmarks): bound the HLE agent loop with max_steps 1 - #5763

Merged
iguehring-nvidia merged 2 commits into
mainfrom
iguehring/hle-max-steps
Nov 6, 2026
Merged

iguehring-nvidia merged 2 commits into
mainfrom
iguehring/hle-max-steps

Conversation

@iguehring-nvidia

@iguehring-nvidia iguehring-nvidia commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What

benchmarks/hle/config.yaml sets the HLE simple agent's max_steps to 1 instead of null.

Why

#3145 added max_steps: 1 to the single-turn benchmarks, but benchmarks/hle/config.yaml got max_steps: null; its own description says all twelve get 1. SimpleAgentConfig.max_steps is declared int = None, which accepts an omitted key but rejects an explicit null. So the HLE agent server does not start:

pydantic_core._pydantic_core.ValidationError: 1 validation error for SimpleAgentConfig
max_steps
  Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]

HLE is the only benchmark config with max_steps: null. The HLE variant config_vision.yaml already sets 1.

No issue: a one-line config fix for a regression from #3145.

Validation

  • pre-commit run --all-files: passed.
  • No new test: the change is one config value.

Rollout evidence

N/A: a one-value config fix. The failure is a deterministic schema validation error when the agent server starts (shown above), and 1 is the value #3145 set for the other single-turn benchmarks.

Compatibility

Behavior change for HLE: a rollout is bounded to one agent step, as for the other single-turn benchmarks. A run that sets max_steps itself is unaffected.

#3145 set max_steps: 1 on single-turn benchmarks but gave benchmarks/hle/config.yaml
max_steps: null. SimpleAgentConfig.max_steps is 'int = None', which accepts an
omitted key but rejects an explicit null, so the HLE agent server fails to start.

Set it to 1 as #3145 intended, and add a test that every simple_agent max_steps in
benchmarks/ is an integer.

Signed-off-by: Ingo Guehring <[email protected]>
@copy-pr-bot

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

The fix is the one config line; the check is out of scope for it.

Signed-off-by: Ingo Guehring <[email protected]>
@iguehring-nvidia
iguehring-nvidia marked this pull request as ready for review November 6, 2026 21:29
@iguehring-nvidia iguehring-nvidia added bug Something isn't working area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 6, 2026
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 6, 2026 21:30
@iguehring-nvidia
iguehring-nvidia added this pull request to the merge queue Nov 6, 2026

@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 — the configuration fix looks correct, but required smoke-rollout evidence is missing.

I checked the HLE configuration, inheritance and override precedence, the agent loop and existing tests, and the benchmark’s prompt and verification path. I found no implementation defect. The integer value satisfies the declared configuration type and preserves a complete single-turn answer.

One RISK remains below. This was a static review; I didn’t execute tests or rollouts.

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

responses_api_agents:
simple_agent:
max_steps: null
max_steps: 1

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 — Could you attach a representative real HLE smoke rollout rather than mark rollout evidence N/A? This changes the default agent’s runtime limit, so the trusted quality bar requires a model rollout with agent and verifier inspection. The supplied traceback demonstrates the original startup failure; it and pre-commit don’t establish successful answer generation and grading after this fix. This is a validation gap for the default text-only HLE path, not a demonstrated scoring defect.

The correction is evidence, not another code change: exercise a small representative set of prepared HLE rows through the documented start/run workflow, then record the head commit, model, commands, task IDs, and inspected results in the PR. Acceptance: startup succeeds without the max_steps validation error, the agent retains the complete policy answer, and the judge returns a parsed verdict and binary reward without infrastructure failures.

Retain max_steps: 1, the existing HLE prompt and judge wiring, and one repeat. As a static preservation check, explicit integer overrides must continue to take precedence over this YAML default through the configuration merge. A full reward-profile comparison isn’t required because verifier and reward logic are unchanged. These are proposed checks; I couldn’t execute them here.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit 662b9d6 Nov 6, 2026
72 checks passed
@iguehring-nvidia
iguehring-nvidia deleted the iguehring/hle-max-steps branch November 6, 2026 22:22
rimashahbazyan added a commit that referenced this pull request Nov 9, 2026
…ools

Brings in 42 commits from main (bd6f5f0..363af5e), including #5709
(centralized resources lifecycle and verification ownership), #5551 (MCP
tools of extra tool servers granted to session agents), #5763 (HLE agent
loop bounded with max_steps 1) and #5446 (gym list environments).

Only README.md overlapped textually; the environment table was
regenerated with scripts/update_env_list.py and the Hle Web Tools row is
preserved.

Signed-off-by: Rima Shahbazyan <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>

This branch was previously deployed

1 inactive deployment
public — d46f3793 Deployed Nov 6, 2026 by copy-pr-bot[bot] via release / finalize / notify #10758
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 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