Repository navigation
Add Copyright docs README FAQ - #7
Merged
Merged
Conversation
Signed-off-by: Brian Yu <[email protected]>
kbhardwaj-nvidia
pushed a commit
that referenced
this pull request
Sep 5, 2025
Signed-off-by: Brian Yu <[email protected]> Signed-off-by: Khushi Bhardwaj <[email protected]>
soares-f
pushed a commit
that referenced
this pull request
Sep 8, 2025
Signed-off-by: Brian Yu <[email protected]> Signed-off-by: soares-f <[email protected]>
soares-f
pushed a commit
that referenced
this pull request
Sep 15, 2025
Signed-off-by: Brian Yu <[email protected]> Signed-off-by: soares-f <[email protected]>
2 tasks
abubakaria56
pushed a commit
to abubakaria56/Gym
that referenced
this pull request
Mar 2, 2026
Signed-off-by: Brian Yu <[email protected]>
abubakaria56
pushed a commit
to abubakaria56/Gym
that referenced
this pull request
Mar 2, 2026
Signed-off-by: Brian Yu <[email protected]>
13 tasks
wprazuch
added a commit
that referenced
this pull request
Jun 15, 2026
Generated server configs shipped with zero comments — new authors couldn't tell what each field meant or which values were valid without consulting external docs (#1205 friction point #7). Add inline comments to every field in the generated template (server type, domain values, cross-references, dataset splits, license). Also emit 'verified: false' in the generated resources_servers block so the add-verified-flag pre-commit hook is a no-op: its yaml.safe_load + yaml.dump round-trip would otherwise rewrite the file and strip the new comments on the author's first commit. Test asserts the hook leaves the generated config byte -for-byte unchanged. Addresses #1205 friction point #7. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 15, 2026
Generated server configs shipped with zero comments — new authors couldn't tell what each field meant or which values were valid without consulting external docs (#1205 friction point #7). Add inline comments to every field in the generated template (server type, domain values, cross-references, dataset splits, license). Also emit 'verified: false' in the generated resources_servers block so the add-verified-flag pre-commit hook is a no-op: its yaml.safe_load + yaml.dump round-trip would otherwise rewrite the file and strip the new comments on the author's first commit. Test asserts the hook leaves the generated config byte -for-byte unchanged. Addresses #1205 friction point #7. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 16, 2026
…1205 friction #7) (#1597) ## Friction point #7 — "No inline documentation in generated configs" `ng_init_resources_server` generated a config with **zero comments**, so a new author had no way to tell what `domain: other` should be, what `type: resources_servers` meant, that `policy_model` is resolved elsewhere, or which fields are required — without reading external docs. This is friction point 7 in #1205 (also relates to #191). ## Change Add inline `#` comments to every field in the generated template — server type, the full list of valid `domain` values, the cross-reference structs, dataset splits, and the license requirement. The `domain` comment lists the values factually ("change 'other' to the closest fit") and deliberately does **not** editorialize the taxonomy (that's the separate #600 discussion). ### Generated config, after ```yaml # Resources server: owns this environment's task verification (verify()) and reward. my_server_resources_server: # instance name — how agents/CLI refer to this server resources_servers: # server type: resources_servers | responses_api_agents | responses_api_models my_server: # implementation directory under resources_servers/ entrypoint: app.py # server entry module domain: other # capability under test; one of: math, coding, agent, knowledge, # instruction_following, long_context, safety, games, translation, # e2e, rlhf, other. Change 'other' to the closest fit. verified: false # set true once the benchmark has been baselined and reviewed ... ``` ## Why `verified: false` is now in the template The `add-verified-flag` pre-commit hook (`scripts/add_verified_flag.py`) rewrites a resources-server config via `yaml.safe_load` + `yaml.dump` **whenever `verified` is missing** — which strips all comments. Since generated configs previously had no `verified` field, that hook would have nuked these new comments on the author's first commit. Emitting `verified: false` in the template makes the hook a **no-op**, so the comments survive. No hook change, no new dependency. ## Testing `test_init_resources_server_includes_domain` extended to assert: the generated config still parses and validates, `verified: false` is present, inline comments exist, and — crucially — running `ensure_verified_flag` on the generated file returns `False` and leaves it **byte-for-byte unchanged** (comments preserved). `pytest tests/unit_tests/test_cli.py` 14/14, ruff clean. Pure additive change — only affects what new servers get generated; existing configs and runtime behavior are untouched. --------- Signed-off-by: Wojciech Prazuch <[email protected]>
This was referenced Jun 17, 2026
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
Annotate the config emitted by ng_init_resources_server with inline comments explaining each non-obvious field (domain, resources_server, policy_model magic name, datasets/source), addressing friction #7 (no inline documentation in generated configs). Also modernize the scaffold to emit the canonical `source:` dataset block instead of the now-deprecated `gitlab_identifier`, so a freshly created server starts on the recommended schema. Addresses M6a (epic #1205). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
…M6g) Add a reusable LLM-as-judge resources-server template and a --template flag to ng_init_resources_server. `+template=judge` scaffolds a verifier whose verify() calls another model (judge / reward model / subagent) via the server client, wiring judge_model_server + judge_responses_create_params in the generated config, with a bounded judge-call semaphore and a clamped 0..1 reward parser. This is additive: the default 'basic' template is unchanged and the existing LLM-as-judge servers are left untouched (consolidating them is a separate, owner-sensitive change). New template files live under nemo_gym/resources/ and are omitted from coverage (copied verbatim into generated servers; exercised by the bundled test template inside a scaffolded server). Implements M6g (epic #1205, friction #2/#7). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
Annotate the config emitted by ng_init_resources_server with inline comments explaining each non-obvious field (domain, resources_server, policy_model magic name, datasets/source), addressing friction #7 (no inline documentation in generated configs). Also modernize the scaffold to emit the canonical `source:` dataset block instead of the now-deprecated `gitlab_identifier`, so a freshly created server starts on the recommended schema. Addresses M6a (epic #1205). Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 22, 2026
…1205 friction #7) (#1597) ## Friction point #7 — "No inline documentation in generated configs" `ng_init_resources_server` generated a config with **zero comments**, so a new author had no way to tell what `domain: other` should be, what `type: resources_servers` meant, that `policy_model` is resolved elsewhere, or which fields are required — without reading external docs. This is friction point 7 in #1205 (also relates to #191). ## Change Add inline `#` comments to every field in the generated template — server type, the full list of valid `domain` values, the cross-reference structs, dataset splits, and the license requirement. The `domain` comment lists the values factually ("change 'other' to the closest fit") and deliberately does **not** editorialize the taxonomy (that's the separate #600 discussion). ### Generated config, after ```yaml # Resources server: owns this environment's task verification (verify()) and reward. my_server_resources_server: # instance name — how agents/CLI refer to this server resources_servers: # server type: resources_servers | responses_api_agents | responses_api_models my_server: # implementation directory under resources_servers/ entrypoint: app.py # server entry module domain: other # capability under test; one of: math, coding, agent, knowledge, # instruction_following, long_context, safety, games, translation, # e2e, rlhf, other. Change 'other' to the closest fit. verified: false # set true once the benchmark has been baselined and reviewed ... ``` ## Why `verified: false` is now in the template The `add-verified-flag` pre-commit hook (`scripts/add_verified_flag.py`) rewrites a resources-server config via `yaml.safe_load` + `yaml.dump` **whenever `verified` is missing** — which strips all comments. Since generated configs previously had no `verified` field, that hook would have nuked these new comments on the author's first commit. Emitting `verified: false` in the template makes the hook a **no-op**, so the comments survive. No hook change, no new dependency. ## Testing `test_init_resources_server_includes_domain` extended to assert: the generated config still parses and validates, `verified: false` is present, inline comments exist, and — crucially — running `ensure_verified_flag` on the generated file returns `False` and leaves it **byte-for-byte unchanged** (comments preserved). `pytest tests/unit_tests/test_cli.py` 14/14, ruff clean. Pure additive change — only affects what new servers get generated; existing configs and runtime behavior are untouched. --------- Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
The generated resources-server config's dataset comment referenced the deprecated gitlab_identifier/huggingface_identifier; point it at the unified source: block instead. Inline field documentation (friction #7) is already provided by the CLI scaffold; this PR is reduced to the source: alignment on top of it. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 24, 2026
…a) (#1638) ## What Generated resources-server configs (`ng_init_resources_server`) now carry inline comments explaining each non-obvious field — `domain`, `resources_server`, the `policy_model` magic name, and the `datasets`/`source:` block — so new users understand the scaffold without leaving the file. Addresses friction #7 (no inline documentation in generated configs). While here, the scaffold now emits the canonical `source:` dataset block instead of the deprecated `gitlab_identifier`, so a freshly created server starts on the recommended schema (depends on #1637). ## Notes - Chose inline comments over an indirected `FIELD_DOCS` constant (suggested in the RFC): there is a single generation site, so a one-line-per-field constant would add indirection without reuse. Easy to extract later if a second site appears. ## Tests - Extended `test_init_resources_server_includes_domain` to assert the generated config (a) contains the inline docs, (b) uses `source: {type: gitlab}` rather than `gitlab_identifier`, and (c) validates cleanly with no `DeprecationWarning`. Part of the configuration-friction epic (#1205), milestone M6a. Targets `wprazuch/dataset-source` since it builds on the `source:` schema; will retarget to the shared base once that merges. Signed-off-by: Wojciech Prazuch <[email protected]>
wprazuch
added a commit
that referenced
this pull request
Jun 25, 2026
…a) (#1638) ## What Generated resources-server configs (`ng_init_resources_server`) now carry inline comments explaining each non-obvious field — `domain`, `resources_server`, the `policy_model` magic name, and the `datasets`/`source:` block — so new users understand the scaffold without leaving the file. Addresses friction #7 (no inline documentation in generated configs). While here, the scaffold now emits the canonical `source:` dataset block instead of the deprecated `gitlab_identifier`, so a freshly created server starts on the recommended schema (depends on #1637). ## Notes - Chose inline comments over an indirected `FIELD_DOCS` constant (suggested in the RFC): there is a single generation site, so a one-line-per-field constant would add indirection without reuse. Easy to extract later if a second site appears. ## Tests - Extended `test_init_resources_server_includes_domain` to assert the generated config (a) contains the inline docs, (b) uses `source: {type: gitlab}` rather than `gitlab_identifier`, and (c) validates cleanly with no `DeprecationWarning`. Part of the configuration-friction epic (#1205), milestone M6a. Targets `wprazuch/dataset-source` since it builds on the `source:` schema; will retarget to the shared base once that merges. Signed-off-by: Wojciech Prazuch <[email protected]>
This was referenced Jun 25, 2026
adil-a
pushed a commit
to adil-a/Gym
that referenced
this pull request
Jun 25, 2026
…audit) - (#4) Cache the static mcp_config (read once, reuse) instead of reading it from disk every rollout. - (NVIDIA-NeMo#5) Document that the per-rollout Gym entry overwrites a same-named static mcp_config server. - (NVIDIA-NeMo#6) Warn when seed MCP metadata has no headers (tool calls would otherwise be unauthenticated). - (NVIDIA-NeMo#7) Add an agent test asserting the session cookie is threaded seed_session -> verify. - (#8a) Move the example task ground truth (expected_city) under verifier_metadata, per convention. - (#8b) Use the message-list input format in the example dataset, like the other examples. - (NVIDIA-NeMo#9) Remove the dead 'url' branch in the rollout mcp_config (MCPServerMetadata has no 'url'); audited that every metadata field accessed (server_name/url_path/transport/headers) actually exists. - (#2v) Add a test that a token-less MCP tool call surfaces as a clean isError (HTTP 200), not a 401. Also patch only ensure_claude_code (not all of model_post_init) in the claude_code_agent test helper, so the model's private attributes initialize. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Signed-off-by: Codex <[email protected]>
This was referenced Oct 27, 2026
subhankar-ghosh
added a commit
to subhankar-ghosh/Gym
that referenced
this pull request
Dec 2, 2026
…ze, preflight - The submission mirror opens the episode dir and submission/ as no-follow directory descriptors before the remote read, then creates an exclusive temp file and renames it relative to them: a link or a swapped parent in the episode's writable workspace cannot redirect the write (review NVIDIA-NeMo#7). - Event polls, the pre-call check and finalize take one lock around the request and the handling of its reply, so each broker event is applied once and a later tripwire is never skipped (NVIDIA-NeMo#8). - The submission is identified by its sha256 (read as the agent, regular file only, time bounded) instead of size and whole-second mtime, and the identity is recorded only after a successful mirror. The file sync compares files below 64 MiB by sha256 on both sides (NVIDIA-NeMo#9). - TaskSandbox.kill() joins a create, recovery or hydration in progress; a provider handle that arrives after the release is killed at once, so no sandbox or renewal task outlives finalize (NVIDIA-NeMo#13). - The S3 preflight requires each probe to run to its end (exit 0, not timed out, completion mark printed); an incomplete probe refuses the sandbox as an infrastructure failure, not as a tripwire (NVIDIA-NeMo#14). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Subhankar Ghosh <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.