Repository navigation
Conversation
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test a6d3ca1 |
|
Latest reviewed head a6d3ca1 passed Gym CI, including Unit tests / Test and the server suite: https://github.com/NVIDIA-NeMo/Gym/actions/runs/33950755568 |
Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test fe2373e |
Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test f153c9f |
|
Latest-head validation is green: core unit tests and all 8/8 environment server shards passed in https://github.com/NVIDIA-NeMo/Gym/actions/runs/33996155222. |
|
Sorry i did not notice the app.py changes at first glance! We should wait for environment owner to review changes outside of test. |
thanks, i pinged in gym channel. |
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test 3854c5f |
## Summary This PR establishes repo-wide contributor and AI-agent guidance for Gym: - documents PR titles, focused changes, simplicity-first code guidance, typing and public-API expectations, logging/error-handling conventions, DCO, and validation handoff in `AGENTS.md` and `CONTRIBUTING.md` - adds a `nemo-gym-pr-checks-and-labels` skill for affected-file history review, CI/check selection, missing-check diagnosis, and Gym's live label taxonomy - updates the PR template and contributor docs to request exact validation, compatibility impact, and rollout evidence when applicable - adds native Claude/Codex skill discovery links and regression coverage The simplicity guidance distills the core idea from NVIDIA NeMo labs-molt's [`simplicity-first`](https://github.com/NVIDIA-NeMo/labs-molt/tree/main/.claude/skills/simplicity-first) skill directly into Gym's always-loaded code-style rules: prefer the smallest clear solution for current requirements, avoid speculative abstractions, and preserve required behavior. The guidance adapts only conventions that Gym currently supports. In particular, Gym uses Ruff rather than Black, `area:*` labels rather than Megatron Bridge title prefixes, and does not claim a repository-wide strict mypy or Ruff-docstring CI gate. Part of NVIDIA-NeMo#3122. ## Relationship to NVIDIA-NeMo#3123 This PR is independent of NVIDIA-NeMo#3123 and can merge first. - NVIDIA-NeMo#3123 updates the technical contracts and skills for adding environments, benchmarks, and Fern documentation. - NVIDIA-NeMo#3194 defines the more general repository foundation: contribution, PR, code-style, validation, CI, and label guidance. The PRs overlap in a few documentation and skill-discovery files, so whichever lands second will need a mechanical rebase/conflict resolution. There is no semantic dependency, and reviewing NVIDIA-NeMo#3123 first is not required. ## What counts as a smoke rollout? For behavior-changing environment or agent code, a representative real smoke rollout is the smallest model-backed end-to-end run that exercises the changed runtime path--normally one or a few representative tasks. The contributor should inspect the agent output or tool interactions and the verifier result, then record the command/configuration and observed outcome in the PR. Unit tests, mocked requests, and health checks do not replace this evidence. A full evaluation, reward profile, or training run is not required. Docs-only and metadata-only catalog or manifest changes may record rollouts as N/A. ## Compatibility and benchmark impact None. This PR changes contributor policy, documentation, repository skills, discovery links, and their tests; it does not change runtime behavior or benchmark results. ## Validation - Agent Skills structural validation - `pytest tests/unit_tests/test_skills.py tests/unit_tests/test_blade_toolkit.py -q` -- 26 passed - `python tests/unit_tests/test_fern_docs_links.py` -- 14/14 passed - `pre-commit run --all-files` - `make docs-check` -- 0 errors; redirect validation skipped because Fern authentication was unavailable locally - `git diff --check` - exercised the documented PR inspection, check, label, and REST fallback commands against live Gym PRs - forward-tested the affected-file history workflow against NVIDIA-NeMo#3127, including the constraint recorded in NVIDIA-NeMo#2113 - three independent review rounds found no remaining correctness blockers ## Rollouts N/A. This PR does not change environment or agent runtime behavior. ## Checklist - [x] Focused change - [x] Targeted tests and pre-commit pass - [x] Documentation updated - [x] DCO sign-off present --------- Signed-off-by: yaoyu-33 <[email protected]>
Purpose
Add focused L1 standalone environment/verifier acceptance coverage for three environments in the active RL training mix whose prior tests were empty or helper-only.
Coverage
jailbreak_detection: validates all five checked-in rows, standard and Nemotron verdicts, combined reward, all five production policy mappings, both reward polarities for all six policy verifiers, final-verdict precedence, empty responses, and judge failuresover_refusal_detection: validates all five checked-in rows and all represented categories, complied/refused/unclear goldens, standard and Nemotron verdicts, final-verdict precedence, empty responses, and judge failuresmultichallenge: validates all five checked-in rows and represented challenge shapes, production-config judge behavior, full verification, context construction, rubric aggregation, negative pass criteria, empty rubrics, and judge failuresAll external judge calls are mocked at the service boundary. The tests exercise real checked-in data schemas and verifier reward logic on CPU without adding test-specific APIs to production code.
Validation
git diff --check: passedThree-PR test stack
Draft: the author will review before this is ready for merge.