Skip to content

feat: add manifests for resolved benchmarks - #3535

Merged
ritaneves merged 2 commits into
mainfrom
rfneves/fill-manifests
Sep 21, 2026
Merged

ritaneves merged 2 commits into
mainfrom
rfneves/fill-manifests

Conversation

@ritaneves

@ritaneves ritaneves commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds experimental manifest.yaml metadata for 75 existing benchmark implementations whose current configs can be represented without changing their layout or runtime behavior.

Each manifest:

  • marks the benchmark as experimental;
  • records authors as GitHub handles;
  • captures benchmark identity, integration profile, licensing, reward, determinism, canonical split, and standard prompt configuration;
  • mirrors the composition resolved from the existing config, including the resources server, agent server, model server, and datasets.

This PR is intentionally manifest-only: it does not modify benchmark configs, tests, or runtime code.

Thirteen config variants that would require directory restructuring or compatibility wrapper configs are intentionally excluded:

  • apex25/config_with_system
  • arxivmath_{0426,0526,0626}/config_with_system
  • brokenarxiv_{0426,0526,0626}/config_with_system
  • livecodebench/v{5_2408_2502,6_2408_2505}/{config,cascade}
  • longbench_v2/config_n3_1m
  • longcodebench/config_n3_1m

Validation

  • .venv/bin/python -m pytest tests/unit_tests/test_environment_manifest.py -q — 34 passed.
  • Catalog validation — all 75 manifests load successfully, resolve against their existing config, use GitHub-style author handles, and have no composition mirror differences.
  • git diff --check origin/main...HEAD — passed.
  • Repository secrets detector — passed locally and in CI.
  • DCO, lint, copyright, and pre-flight CI checks — passed.

Rollouts

N/A. This PR adds declarative metadata only and does not change benchmark configuration or runtime behavior.

Compatibility and benchmark impact

None. Existing benchmark configs, selectors, execution paths, prompts, datasets, and scoring behavior are unchanged.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Existing manifest tests pass locally; no test changes are required for this metadata-only change.
  • Documentation changes are N/A; the manifests are the metadata being added.
  • pre-commit run --all-files was not run locally; the PR lint check passes.
  • SPDX headers are N/A; no source files are added.
  • All commits have DCO sign-off, and the DCO check passes.

@ritaneves
ritaneves marked this pull request as draft September 18, 2026 15:28
@copy-pr-bot

copy-pr-bot Bot commented Sep 18, 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.

@ritaneves
ritaneves added this pull request to the merge queue Sep 21, 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/35589911719

Merged via the queue into main with commit 9164de0 Sep 21, 2026
45 checks passed
@ritaneves
ritaneves deleted the rfneves/fill-manifests branch September 21, 2026 10:40
@iguehring-nvidia

Copy link
Copy Markdown
Contributor

Heads-up: the new manifest.yaml files trip the content-based benchmark discovery (_is_benchmark_config sees their type: benchmark dataset), so test_every_repo_benchmark_appears_in_listing fails on main (218 discovered vs 143 listed) and the merge queue ejects every PR queued after this one. Fix in #3564 (skip manifest.yaml by name in _benchmark_config_paths).

iguehring-nvidia added a commit that referenced this pull request Sep 21, 2026
#3535 added a manifest.yaml beside 75 benchmark configs. Each mirrors
its benchmark's `type: benchmark` dataset, so the content-based
prefilter takes it for a second config of the same benchmark; it does
not resolve as one, so `gym list benchmarks` drops it and
test_every_repo_benchmark_appears_in_listing fails on main (218
discovered, 143 listed), which ejects every PR from the merge queue.

_is_benchmark_config now rejects a manifest by name before looking at
content, so the predicate states the whole definition of a benchmark
config. The registry's own filter for the same file becomes redundant
and goes; the filename constant moves to benchmarks.py so both read
one definition.

Signed-off-by: Ingo Guehring <[email protected]>
iguehring-nvidia added a commit that referenced this pull request Sep 21, 2026
#3535 added a manifest.yaml beside 75 benchmark configs. Each mirrors
its benchmark's `type: benchmark` dataset, so the content-based
prefilter takes it for a second config of the same benchmark; it does
not resolve as one, so `gym list benchmarks` drops it and
test_every_repo_benchmark_appears_in_listing fails on main (218
discovered, 143 listed), which ejects every PR from the merge queue.

_is_benchmark_config now rejects a manifest by name before looking at
content, so the predicate states the whole definition of a benchmark
config. The registry's own filter for the same file becomes redundant
and goes; the filename constant moves to benchmarks.py so both read
one definition.

Signed-off-by: Ingo Guehring <[email protected]>
reinainblood pushed a commit to reinainblood/Gym that referenced this pull request Sep 21, 2026
…NeMo#3564)

## What does this PR do?

Unbreaks `main` after NVIDIA-NeMo#3535. Its 75 new `benchmarks/*/manifest.yaml`
files each mirror their benchmark's `type: benchmark` dataset, so
`_benchmark_config_paths`'s content-based prefilter
(`_is_benchmark_config`) takes every manifest for a second config of the
same benchmark. Manifests don't resolve as configs, so the listing drops
them and
`tests/unit_tests/test_benchmarks.py::TestDiscoverBenchmarksInDir::test_every_repo_benchmark_appears_in_listing`
fails on `main`:

```
AssertionError: 218 benchmark config(s) discovered but only 143 appear in the listing
```

`NVIDIA-NeMo#3535`'s own merge-queue run passed because it was queued against the
previous base; the first PR queued after it (NVIDIA-NeMo#3529) has been ejected
twice with "failed status checks". Reproduced locally: fails on `main`
(`9164de0e`), passes on its parent (`2581db97`).

Fix: `_is_benchmark_config` rejects a `manifest.yaml` by name before
looking at content, so the predicate states the whole definition of a
benchmark config and every caller of the discovery inherits it.
`nemo_gym/registry.py` already filtered the manifest out of the legacy
benchmark listing for the same reason; that filter is now redundant and
removed, and `MANIFEST_FILENAME` moves to `benchmarks.py` so both
modules read one definition (registry imports benchmarks, not the other
way round).

## Validation

```
python -m pytest tests/unit_tests/test_benchmarks.py tests/unit_tests/test_registry.py \
  tests/unit_tests/test_environment_publication.py tests/unit_tests/test_environment_onboarding.py \
  tests/unit_tests/test_environment_manifest.py
# all pass, including test_every_repo_benchmark_appears_in_listing (218 == 218)
pre-commit run --files nemo_gym/benchmarks.py nemo_gym/registry.py tests/unit_tests/test_benchmarks.py
```

New test `test_prefilter_rejects_the_benchmarks_manifest`: a
`config.yaml` and a `manifest.yaml` declaring the same dataset → the
prefilter rejects the manifest and only the config is discovered.

## Rollouts

N/A — discovery only.

## Compatibility and benchmark impact

None to configs or scoring. `gym list benchmarks` output is unchanged
from before NVIDIA-NeMo#3535; the catalog (`registry.py`) reads manifests through
its own path as before.

## Checklist

- [x] I have read the [contributing
guidelines](https://github.com/NVIDIA-NeMo/Gym/blob/main/CONTRIBUTING.md).
- [x] The change is focused; unrelated "drive-by" edits are tracked as
separate issues/PRs.
- [x] Tests added or updated and pass locally, or N/A for docs-only /
non-code changes (so CI unit/server checks pass when applicable).
- [x] Documentation added or updated, or N/A with justification —
docstring of `_benchmark_config_paths` explains the exclusion.
- [x] Pre-commit checks pass locally (`pre-commit run --all-files`) (so
CI lint/format checks pass).
- [x] New source files include the required Apache-2.0 SPDX header — no
new files.
- [x] All commits have DCO sign-off (`git commit -s`) (so the DCO check
passes).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Ingo Guehring <[email protected]>
ritaneves added a commit that referenced this pull request Sep 29, 2026
## What does this PR do?

Complete the remaining benchmark manifests, rebased onto main at
`d4c0f86c7`.

Related to #1520 and #2094. The initial 75 manifests already landed in
#3535 and are not part of this diff. This PR adds **95 manifests**,
giving **170/170 benchmark catalog entries** manifest coverage on the
rebased checkout.

### Alignment with the existing format

- Use the existing `dump_manifest` serializer and field ordering, block
lists, and plain YAML scalars rather than mixed hand-authored styles.
- Preserve serialization of all 75 existing benchmark manifests
byte-for-byte; none are modified.
- Omit redundant `config_path: config.yaml` and `prompt_source:
template` defaults, including when scaffold/sync rewrites existing
manifests.
- Reuse main's existing exclusion of manifest files from benchmark
config discovery instead of duplicating that implementation.
- Correct Terminal-Bench 4 metadata for its now agent-owned mini-SWE
loop and policy-model wiring.
- Include the 27 configurations added upstream since the original audit:
24 DeepSearchQA/WideSearch configurations plus FukuyamaBench, MolDeTox,
and SciCodePile.

### Additive contract support

The remaining workloads need cases the existing template-only contract
cannot represent:
- `prompt_source`: template (unchanged default), prepared messages, or
agent-owned prompting.
- Explicit nullable `resources_server` for non-custom-verifier profiles.
- Relative, catalog-contained `config_path` for named YAML
configurations.
- Optional `dataset_owner` for configurations with multiple
dataset-bearing instances.
- Constant reward ranges, including SpeedBench's existing [0, 0]
placeholder.

Runtime configs remain authoritative. Shared prompts and multi-benchmark
suite fragments are not fabricated standalone workloads. Mandatory
manifest CI is a separate follow-up; this does not close the onboarding
epic.

## Validation

**592 targeted tests passed** on the final rebased diff:

```sh
.venv/bin/python -m pytest tests/unit_tests/test_environment_validation.py tests/unit_tests/test_environment_manifest.py tests/unit_tests/test_registry.py tests/unit_tests/test_environment_scaffold.py tests/unit_tests/test_environment_publication.py tests/unit_tests/test_environment_onboarding.py tests/unit_tests/test_cli_main.py tests/unit_tests/test_benchmarks.py tests/unit_tests/test_verifier_fixture.py -q --tb=short -o addopts='' --junitxml=/private/tmp/gym-manifest-rebased-validation.xml
.venv/bin/pre-commit run --all-files
git diff --check
```

All checks above passed. Regression tests reproduced the serializer
drift and stale/missing manifests before fixes.

Additional offline audit:
- **170/170** schema, catalog identity, preparation-script, and
prompt-contract checks passed; zero no-manifest entries in the
benchmarks tree.
- **169/170** strict resolved-composition comparisons passed.
- The HLE variant under
`nemotron_3.5_super/benchmark_configs/hle_no_tools` still requires real
judge settings (`openai_base_url`, `openai_api_key`, `openai_model`). No
credentials or endpoints were fabricated.
- All **75 existing manifests** serialize byte-for-byte identically.

Full prepared-dataset validation, full server/sandbox/coverage suites,
Fern checks, and model evaluations were not run. This remains a draft;
the repository bot reports that draft PRs do not auto-sync to the main
CI workflow. No CI trust-gate comment or manual workflow dispatch was
issued.

## Rollouts

N/A: no runtime benchmark configs, scorers, agents, or preparation
scripts changed. This updates metadata, discovery, and validation; no
model rollout was run.

## Compatibility and benchmark impact

Existing template manifests and default config paths remain compatible
and retain their serialized format. Custom Gym verifiers still require a
resource server. Resource-less manifests do not add external-scorer
support to gym env test/publish, which retain resource-server fixture
requirements. Experimental metadata does not certify completed benchmark
runs or reproducibility. No benchmark score changes are intended.

## Checklist

- [x] I have read the [contributing
guidelines](https://github.com/NVIDIA-NeMo/Gym/blob/main/CONTRIBUTING.md).
- [x] The change is focused.
- [x] Tests added or updated and pass locally; broader validation
limitations are documented above.
- [x] Onboarding documentation updated.
- [x] Full pre-commit checks pass.
- [x] Required source SPDX headers retained; new files are metadata
manifests matching the existing format.
- [x] All commits have DCO sign-off.

---------

Signed-off-by: Rita Fernandes Neves <[email protected]>

This branch was previously deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants