Skip to content

docs(environments): fix new-environment.mdx issues from NVBug 6853090 - #4175

Merged
marta-sd merged 13 commits into
mainfrom
martas/fix-6853090
Oct 8, 2026
Merged

marta-sd merged 13 commits into
mainfrom
martas/fix-6853090

Conversation

@marta-sd

@marta-sd marta-sd commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Manifest reference (point 1): added one sentence after the experimental paragraph directing benchmark and named-config contributors to the Field Reference for optional fields (prompt_source, config_path, dataset_owner). Sub-items B and C were already correct in the current file.
  • Separated workflows (point 2): restructured the page so the manifest-backed path (gym env init --environment) is the primary journey from scaffold through publish; moved the standalone resources server into its own ## Standalone Resources Server section. Resolved conflicting guidance around data/example.jsonl, required files, validation, and rollout artifacts.
  • Executable smoke rollout (point 3): replaced the single-command rollout example with a two-terminal sequence (gym env start in terminal 1, gym eval run --no-serve in terminal 2); replaced the placeholder agent name with the generated my_eval_simple_agent and explained how to find it.
  • End-user journey first (point 4): reordered sections so workflow content (Onboarding Commands → Contribution Workflow → Detailed Steps → Required Files → Guiding Principles → Recommended Technical Design) precedes reference content (Component Ownership → Environment Manifest → Validation Layers → Verifier Fixture Contract), separated by a --- rule.
  • Navigation links (point 5): removed the broken "See Domain" reference; replaced it with a link to the Field Reference anchor.
  • Error handling example (point 6): replaced the broad except Exception as e: return ToolResponse(output=str(e)) with a two-tier pattern — catch ValueError/TypeError for expected argument errors and return them to the model, use a bare except Exception fallback that calls logger.exception and returns a safe opaque message.
  • Polish (point 7): added frontmatter description; labeled gym env publish as a "local readiness check" that does not commit or push; replaced the unsupported "tens of thousands of concurrent requests" claim with "scale to high concurrent request volumes during training."

Validation

Docs-only change. Each fix was verified against CLI source (nemo_gym/cli/env.py, nemo_gym/environment/scaffold.py) and compared against the v0.6.0 page to confirm regressions were not introduced. Points 1B and 1C were confirmed already correct in the current file and required no change. N/A for rollout evidence.

Fixes: NVBug 6853090

🤖 Generated with Claude Code

marta-sd and others added 6 commits October 7, 2026 10:58
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

@yaoyu-33 yaoyu-33 added area:env-infra Shared environment framework, lifecycle, registry, scaffolding, and validation complexity:low Localized change in one scope with a small, straightforward review surface docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer labels Oct 7, 2026
@ananthsub ananthsub added the r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Oct 7, 2026
@marta-sd marta-sd self-assigned this Oct 8, 2026
@marta-sd
marta-sd enabled auto-merge October 8, 2026 12:39
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Oct 8, 2026
…names

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
@github-actions github-actions Bot removed the sla:review-overdue Review response is over the one-business-day SLA label Oct 8, 2026
marta-sd and others added 5 commits October 8, 2026 16:04
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
…ples

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
… arg

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
@@ -5,176 +5,53 @@ description: "Compose task and harness components, declare a workload manifest,
# New Environment

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.

This is great.

We received positive feedback on the updates we made to the Add new benchmark.md. I would suggest we follow a similar structure for consistency.

Specifically following at least a similar logical layout.

  1. Overview introducing key concepts of env
  2. Overview of onboarding workflow / steps
  3. Hello world basic example
  4. Onboarding steps from 2/ above

I think we have most of this today, but do not have 3/. Perhaps we can repurpose Onboarding Commands as a Hello world example. We should also align 2/ as to have we have in the Add new benchmark for consistency. Our target audience are brand-new users.

This can be a follow up. So approving for now. But suggest we prioritize as a fast-follow for consistency.

@marta-sd
marta-sd added this pull request to the merge queue Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit 4413f81 Oct 8, 2026
43 of 44 checks passed
@marta-sd
marta-sd deleted the martas/fix-6853090 branch October 8, 2026 16:57
ananthsub pushed a commit that referenced this pull request Oct 8, 2026
…53090 (4175)` into `r0.7.0` (#4246)

beep boop [🤖]: Hi @marta-sd 👋,

    we've cherry picked #4175 into `r0.7.0` for you! 🚀

    Please review and approve this cherry pick by your convenience!

Signed-off-by: Marta Stepniewska-Dziubinska <[email protected]>
Signed-off-by: NeMo Bot <[email protected]>
Co-authored-by: Marta Stepniewska-Dziubinska <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
ananthsub added a commit that referenced this pull request Oct 12, 2026
## What

Updates three pages in the v0.7.0 docs snapshot
(`fern/versions/v0.7.0/pages/`) to match `r0.7.0`:

- `reference/cli-commands.mdx`
- `contribute/environments/new-environment.mdx`
- `contribute/environments/index.mdx`

Each file is copied verbatim from `fern/versions/latest/pages/` on
`r0.7.0`.

## Why

The snapshot in #4207 was copied from the release branch before two docs
fixes merged to `main` and were cherry-picked into `r0.7.0`:

- NVBug 6854088, `cli-commands.mdx`: #4093, cherry-picked in #4219
- NVBug 6853090, `new-environment.mdx` and `environments/index.mdx`:
#4175, cherry-picked in #4246

The 0.7.0 release includes both fixes, but the published v0.7.0 docs do
not, because the snapshot on `main` was never refreshed.

No issue: this corrects a stale copy of already-reviewed content.

## Validation

- Each of the three snapshot files on `main` was byte-identical to its
`r0.7.0` counterpart from before the fixes, which confirms the snapshot
predates them.
- After this change, `diff -r` between `r0.7.0`'s
`fern/versions/latest/pages` and `fern/versions/v0.7.0/pages` reports no
differences.
- `python3 tests/unit_tests/test_fern_docs_links.py` passes.
- `npm run check` in `fern/` reports no errors. Its one warning says the
missing-redirects check was skipped without a Fern token; CI runs it
with a token.

## Rollout evidence

N/A: docs-only change.

## Impact

After merge, the docs publish on `main` updates the v0.7.0 pages on the
Fern site. This does not affect the `docs.nvidia.com/nemo/gym` 404,
which comes from the custom-domain routing and also affects other
Fern-hosted NeMo docs.

Signed-off-by: Ananth Subramaniam <[email protected]>

This branch was previously deployed

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

Labels

area:env-infra Shared environment framework, lifecycle, registry, scaffolding, and validation complexity:low Localized change in one scope with a small, straightforward review surface docs Documentation-only updates or documentation debt needs-review PR is ready for code review and waiting on a reviewer r0.7.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NeMo Gym][H100][v0.7.0] There are several issues with contribute/environments/new-environment.mdx

4 participants