Repository navigation
[2/4] feat(environments): add static manifest validation - #2441
Merged
Merged
Conversation
Contributor
|
🌿 Preview your docs: https://nvidia-preview-mbien-environment-onboarding-validation.docs.buildwithfern.com/nemo/gym Here are the markdown pages you've updated: |
This was referenced Aug 10, 2026
Glorf
marked this pull request as ready for review
August 10, 2026 12:38
Glorf
force-pushed
the
mbien/environment-onboarding-validation
branch
3 times, most recently
from
August 11, 2026 11:49
ae953b8 to
c67e180
Compare
Glorf
force-pushed
the
mbien/environment-onboarding-foundation
branch
2 times, most recently
from
August 11, 2026 12:04
8b78123 to
d359fdd
Compare
Glorf
force-pushed
the
mbien/environment-onboarding-validation
branch
from
August 11, 2026 12:04
c67e180 to
92d757b
Compare
Glorf
force-pushed
the
mbien/environment-onboarding-foundation
branch
from
August 11, 2026 12:51
d359fdd to
c191f82
Compare
Glorf
force-pushed
the
mbien/environment-onboarding-validation
branch
from
August 11, 2026 12:51
92d757b to
c45df25
Compare
ritaneves
force-pushed
the
mbien/environment-onboarding-foundation
branch
from
August 11, 2026 15:58
c191f82 to
14f6033
Compare
ritaneves
force-pushed
the
mbien/environment-onboarding-validation
branch
from
August 11, 2026 15:58
c45df25 to
2103fb7
Compare
Glorf
force-pushed
the
mbien/environment-onboarding-foundation
branch
from
August 11, 2026 18:29
14f6033 to
fc34da5
Compare
Glorf
force-pushed
the
mbien/environment-onboarding-validation
branch
from
August 11, 2026 18:29
2103fb7 to
5b94cc3
Compare
Base automatically changed from
mbien/environment-onboarding-foundation
to
main
August 11, 2026 18:32
Glorf
added a commit
that referenced
this pull request
Aug 11, 2026
## Summary Defines an opt-in `manifest.yaml` contract for Gym environments and benchmarks without changing how workloads run. ## Stack - **1/4 — Manifest contract** (this PR) - 2/4 — [Static manifest validation](#2441) - 3/4 — [Profile-aware scaffolding](#2442) - 4/4 — [Onboarding catalog and commands](#2443) Each PR contains one commit and is based on the preceding branch. ## What this PR delivers - A strict manifest model for identity, catalog metadata, reward semantics, determinism, integration shape, and config-owned composition mirrors. - Four integration profiles matching Gym's existing extension points: `custom-gym-verifier`, `custom-gym-agent-loop`, `external-agent-loop`, and `external-rollout-driver`. - A Pydantic contract that can emit Draft 2020-12 JSON Schema on demand. - SPDX expression validation through `packaging`, including `LicenseRef` values and Gym's private-license labels. - A neutral example, focused contract tests, and contributor documentation. The manifest is the single place to read a workload declaration. Gym configuration remains the authoritative place to write runtime composition. Names and versions must be non-empty; Semantic Versioning is documented guidance, while immutable-version enforcement is staged work. ## Compatibility and scope - Existing environments and benchmarks continue to run without a manifest. - No runtime dispatch, wire protocol, server route, or existing workload changes. - The manifest remains opt-in until later stack layers consume it. - Capabilities, concrete version resolution, pinning, swap enforcement, and certificate-backed validation remain follow-ups. ## Validation - Manifest parsing, invariants, SPDX expressions, serialization, and schema tests. - Independent Draft 2020-12 validation of the generated representation. - Ruff and whitespace checks. Signed-off-by: Michal Bien <[email protected]>
Glorf
force-pushed
the
mbien/environment-onboarding-validation
branch
from
August 11, 2026 19:36
5b94cc3 to
03e2231
Compare
bxyu-nvidia
previously requested changes
Aug 12, 2026
Signed-off-by: Michal Bien <[email protected]>
Glorf
force-pushed
the
mbien/environment-onboarding-validation
branch
from
August 12, 2026 08:02
03e2231 to
ab88cfd
Compare
Contributor
Author
|
/ok to test aa7847f |
ritaneves
approved these changes
Aug 12, 2026
Glorf
added a commit
that referenced
this pull request
Aug 12, 2026
## Summary Adds non-destructive scaffolding for all four integration profiles and a reusable, in-process verifier-fixture contract. ## Stack - 1/4 — [Manifest contract](#2417) - 2/4 — [Static manifest validation](#2441) - **3/4 — Profile-aware scaffolding** (this PR) - 4/4 — [Onboarding catalog and commands](#2443) This PR contains one commit and is based on the 2/4 branch. ## What this PR delivers - Runnable starting points for environments and benchmarks across `custom-gym-verifier`, `custom-gym-agent-loop`, `external-agent-loop`, and `external-rollout-driver`. - The appropriate authored extension point for each non-default profile while runtime wiring remains config-driven. - Conservative profile reporting: generated delegation placeholders infer as `unknown` until their authored behavior is implemented. - Benchmark source data, prompt configuration, and a typed `prepare()` hook. - A resources-server-owned verifier fixture covering full reward, zero reward, malformed input, and seeded determinism. - `--reuse-verifier` support across all profiles for compatible existing scorers with an explicit reward contract. - One canonical resource-component renderer shared with the existing `gym env init --resources-server` path; the legacy command keeps its combined runnable config. - Conflict-free reruns, atomic fixture updates, and rejection of unsafe paths, invalid Python names, or unsupported reused compositions. ## Compatibility and scope - Profiles classify authoring boundaries; they do not change runtime dispatch. - Existing workloads do not need manifests or fixtures to keep running. - No existing environment or resources-server implementation is modified. - Identical scaffold reruns are no-ops, and any conflict aborts the complete write set. ## Validation - Both workload kinds across all four profiles. - Generated-code lint and format checks. - Reused scorer contracts, reward direction, malformed input, determinism, path safety, and atomic-update regressions. ## Next layer The final PR exposes the stack through discovery and the four-command onboarding journey. Signed-off-by: Michal Bien <[email protected]>
Glorf
added a commit
that referenced
this pull request
Aug 12, 2026
## Summary Completes the user-facing onboarding MVP with a local registry and four commands: ```bash gym env init --environment my_eval --profile custom-gym-verifier gym env validate my_eval gym env test my_eval gym env publish my_eval ``` ## Stack - 1/4 — [Manifest contract](#2417) - 2/4 — [Static manifest validation](#2441) - 3/4 — [Profile-aware scaffolding](#2442) - **4/4 — Onboarding catalog and commands** (this PR) This PR contains one commit and is based on the 3/4 branch. ## What this PR delivers - A unified local workload registry for manifest-backed and legacy environments and benchmarks. - Transition visibility for runnable compositions still colocated under `resources_servers/`; reusable scorer, tool, and state components without agent datasets remain component entries. - Kind-filtered list, search, inspect, status, profile, domain, and JSON views. - Environment and benchmark targets for `gym env init`. - Static checks, advisory profile evidence, warnings, and mirror synchronization through `gym env validate`. - Verifier execution in the resources server's managed dependency environment through `gym env test`. - A local structural `gym env publish` check that reruns validation and fixtures, rejects manifest metadata placeholders, and confirms exact catalog discovery as `experimental`. - Public documentation for terminology, ownership, profiles, migration behavior, and all four commands. `publish` does not assess implementation quality, run a full evaluation, deploy, commit, push, or claim certificate-backed validation. ## Compatibility - Existing runtime configuration and execution remain unchanged. - Existing init, config validation, resources-server test, list, and search forms remain available. - Manifest-free runnable workloads remain visible with `no-manifest` status and continue to run as before. - Malformed manifests are isolated during global discovery and remain directly diagnosable with `gym env validate --manifest ...`. ## Validation - 510 sandbox-safe onboarding and affected CLI tests pass; the socket-binding case also passes outside the sandbox. - CI-version Ruff and whitespace checks pass. ## Staged follow-ups - Capability declarations, concrete component-version resolution, pinning, and swap refusal. - Runtime readiness probes as a separate pre-run validation layer. - In-place manifest backfill and phased CI enforcement for legacy runnable compositions. - Repository publication automation, ownership updates, and immutable version enforcement. - Certificate-backed `validated` status and a hosted catalog index. - A session-stateful onboarding sentinel and stored-trajectory replay coverage. These follow-ups strengthen runtime readiness, governance, and migration. They do not change the manifest contract, guided authoring path, local checks, or transition registry delivered here. Signed-off-by: Michal Bien <[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.
Summary
Adds service-free validation for manifest-backed environments and benchmarks. It checks the declaration against resolved Gym configuration before any service starts.
Stack
This PR contains one commit and is based on the 1/4 branch.
What this PR delivers
unknownwhen static source inspection is inconclusive.Compatibility and scope
Validation
Next layer
The next PR adds non-destructive profile-aware scaffolding and reusable verifier fixtures.