Repository navigation
fix(tier3): make native NeMo Gym Claude Code runs reach the policy model and discover skills - #581
Merged
Conversation
Supply the model-server placeholder required by the Claude agent template, reuse the pinned runtime version, and enable project skill discovery in both arms despite isolated Claude configuration directories. Add regression coverage for command credentials and paired skill projections. Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Override the Claude template's direct-provider defaults so the sandbox uses the configured Gym model server and selected policy model rather than an external credential route. Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
chrisknvidia
requested review from
mosheabr,
rmalani-nv and
rng1995
as code owners
November 14, 2026 23:50
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
chrisknvidia
deleted the
fix/christopherk/nemo-gym-claude-code-config
branch
November 15, 2026 04:23
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
skillevaluator tier3 evaluate --backend nemo-gym --agents claude-codefailed in both arms before any model call. Gym'sclaude_code_agenttemplate requiresanthropic_api_key, and the adapter never set it.tier3 doctorstill passed:With that key set, the template's other defaults still sent Claude Code to a direct provider route instead of Gym's policy model server. They also left the runtime version unpinned and kept
bare: true, which turns off native skill discovery, so the with-skill arm could not see the skill.For
claude-codeonly,gym_eval_commandnow passes these overrides:anthropic_api_key=EMPTY: a placeholder. In model-server mode Gym uses its own dummy client credential, and the policy key stays in the model-server environment.model_serverset topolicy_model, andmodelset to the selected policy model.bare=false.claude_code_versionpinned to the same version Harbor uses (PINNED_RUNTIME_VERSIONS["claude-code"]).Gym gives Claude Code a private
CLAUDE_CONFIG_DIR, sostage_for_gymalso copies the staged skills into<workdir>/.claude/skills/in the task image. The baseline image gets the same copy, which holds no target skill.--backend nemo-gym --agents claude-code, paired runbare: true, private config dir)Skilltool call to the staged skillVerification
pytest tests/test_nemo_gym_backend.py tests/test_nemo_gym_main_integration.py tests/cli/test_nemo_gym_autopilot_preflight.py -q: 193 passedruff checkandruff format --checkon the changed files: passLive paired run on Gym built from
NVIDIA-NeMo/Gym@792fa142f58277aecff05d402061d647e9a92acf(reports0.7.0rc0), Docker sandbox, calculator reference skill, 2 cases × 1 attempt:execution_status: succeeded, 4/4 scored, both arms'rollouts.jsonlpresent, verifier artifacts collected.make lint,make build: passmake test(full suite, 4 workers): 33,353 passed, 89 skipped, 48 failed. The same 48 tests fail on unmodifiedmainin this environment (local LLM-client, plugin-dependency and secure-fs tests unrelated to Gym), so this change does not cause them.I am familiar with the Contributing Guidelines
Added or updated focused tests
Updated documentation for user-visible changes
Ran
make lintRan
make testRan
make buildDid not add credentials, private datasets, or proprietary benchmark content
Release Impact
CHANGELOG.md