Scan your whole stack
Latest version: vgit:fb5854887bb3de4f33e15510872eb962e1449b58
nemo-gym-reward-profiling was last scanned on 25 Nov 2026 at commit fb585488. Risk score 1 of 100 (low). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| fb585488 | 1 rule fired |
Findings for commit fb585488. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The skill's text or bundled scripts contain encoded content, such as a long base64 or hex string, a dense run of hex escapes, or invisible Unicode tag characters that can carry hidden instructions. Skills rarely need these. On its own this is not evidence of malicious behavior.
LOWThe score describes fb585488; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Before RL training, run every task several times and look at how its reward changes between repeats. Group-based RL such as GRPO learns from the differences between repeats of the same task, so a task that gets the same reward every time, whether always solved or never solved, teaches the model nothing. This skill turns gym eval profile output into that decision and keeps every number honest when some rollouts are missing.
gym eval profile, reading its output files, or fixing its errors.Hand off when the main job is different:
run-and-babysit-eval in the Gym repo).nemo-gym-score-triage in the Gym repo).nemo-gym-repeat-planning in the Gym repo.nemo-gym-debugging in the Gym repo.pip install "nemo-gym>=0.7") for gym env start, gym eval run and gym eval profile.uv on the PATH (pip install uv) to start servers: gym env start builds each server's environment with it.Skip this step if the user already has a rollouts file and the <stem>_materialized_inputs.jsonl written next to it.
Put the model endpoint in env.yaml in the working directory. If the file already exists, add or update these keys rather than replacing the file:
policy_base_url: https://integrate.api.nvidia.com/v1
policy_api_key: <your key>
policy_model_name: <model id>
Then start the servers, wait until every server shows ✓, and collect:
# Terminal 1 (or run it in the background). Use --resources-server <name> for an environment shipped with
# nemo-gym, or --config <file> for your own. vllm_model talks to any OpenAI-compatible chat endpoint
# (vLLM, NVIDIA API); openai_model needs the OpenAI Responses API.
gym env start --resources-server <name> --model-type vllm_model
# Terminal 2. --agent takes the first name on the agent's line in gym env status, such as mcqa_simple_agent.
gym env status
gym eval run --no-serve --agent <agent> \
--input tasks.jsonl --output results/rollouts.jsonl \
--num-repeats 8 --concurrency 16
gym eval run writes results/rollouts.jsonl (one line per saved rollout) and results/rollouts_materialized_inputs.jsonl (one line per planned rollout, that is every task times every repeat, with _ng_task_index and _ng_rollout_index). Without --no-serve, gym eval run starts the servers itself but only runs the environment's prepared data; it rejects --input. For long runs, cluster jobs and resuming, use the evaluation-running skill.
Use enough repeats. A task with pass rate p gets the same reward on all n repeats with probability pⁿ + (1 − p)ⁿ, so hard tasks look unsolvable when n is small:
| True pass rate | Looks constant at 4 repeats | at 8 | at 16 |
|---|---|---|---|
| 5% | 81% | 66% | 44% |
| 10% | 66% | 43% | 19% |
| 25% | 32% | 10% | 1% |
| 50% | 13% | 1% | \<1% |
Use at least 8 repeats when choosing training tasks, and more when the environment has many hard tasks.
gym eval profile \
--inputs results/rollouts_materialized_inputs.jsonl \
--rollouts results/rollouts.jsonl
It writes three files next to the rollouts: rollouts_reward_profiling.jsonl (one row per task), rollouts_agent_metrics.json (one entry per agent) and rollouts_repeat_level_metrics.json (one entry per repeat). See references/output-format.md for every field.
If some planned rollouts were never saved, it stops with Materialized input rows and rollout results do not have matching rollout keys. Missing rollout results for N materialized input rows. Then either:
gym eval run command with --resume. It runs the planned rollouts that have no saved result; which recorded failures it retries depends on the version and the kind of failure; or++allow_partial_rollouts=True, and report the gap as in step 3.Run the bundled script from this skill's folder on the profile. It needs only Python and the files, so it also works where gym is not installed:
python3 <skill folder>/scripts/summarize_profile.py results/rollouts_reward_profiling.jsonl
It reads the materialized inputs and agent metrics beside the profile, prints coverage first (measured, never saved and masked rollouts), then sorts the tasks into groups (see Examples). It catches what the profile file alone hides:
_reward_profiling.jsonl entirely. Later versions (the main branch today) keep a row with num_rollouts: 0 and no reward fields, except for a task whose every planned rollout was saved and masked. The summary that gym eval profile prints says N without rollouts dropped from output either way. Count tasks from the materialized inputs, never from the profile file alone.mean/reward in _agent_metrics.json averages measured rollouts only. Report it with its coverage, for example "0.51 over 41 of 48 planned rollouts; task 10 not measured", never as the environment's pass rate. When several agents ran the same tasks, each agent has its own mean. The _aggregate_metrics.json that gym eval run writes can count some failed or missing rollouts as 0, depending on the version and settings such as count_failure_classes_as_zero, so its mean can differ from the profile's._repeat_level_metrics.json, missing_count counts only tasks that were measured in another repeat. A task missing from every repeat is never counted there, so a repeat can cover fewer tasks than planned while its missing_count stays 0. Compare sample_count with the number of planned tasks.gym eval profile leaves masked rollouts out of every per-task count and statistic, so a row's expected_num_rollouts is its planned count minus its masked rollouts. The printed completion line still counts them as saved, and _agent_metrics.json reports coverage/masked_rollouts. In 0.7.0 and earlier, --resume treats a masked result as saved and does not run it again; collect those tasks in a new run with its own --output./run request stops the run unless +route_failures_to_sidecar=true is set (after 0.7.0 it is written to <stem>_failures.jsonl first); with the option, the failure goes to that file and the run continues. Failures that the agent or environment returns as a result go to that file too. Either way they are not in rollouts.jsonl, so the profile counts them as never saved. Read that file before rerunning: --resume skips failures recorded as final.| What the profile shows | What it means | What to do |
|---|---|---|
| Reward varies across repeats | The model solves it some of the time | Keep: these carry the learning signal |
| Same top reward on every repeat | Already solved | Drop from RL training |
| Same zero reward on every repeat | Never solved | Check before dropping (below) |
| Same middle reward on every repeat, such as 0.5 each time | No spread, even though the mean looks medium | No signal; treat like a constant task |
| One measured rollout | Spread unknown; std/reward is 0 for any single value |
Collect more repeats |
| Partial (fewer measured than planned) | Statistics from fewer repeats: rollouts never saved or masked | Keep the decision tentative; collect the missing rollouts |
| No measured rollout | Not measured | Rerun before deciding; never count it as 0 or 1 |
Judge spread with min/reward and max/reward (or std/reward with num_rollouts), not with mean/reward: two tasks with mean 0.5 can be 1, 0, 1, 0 (useful) or 0.5 every time (useless).
Before dropping a task that never passes, read two or three of its rollouts. Join rollout_infos in the profile row to full rows in rollouts.jsonl on _ng_task_index and _ng_rollout_index.
Lead with coverage, then the decision. Take every number from the files or the script output, and say when a number covers only part of the run. See Examples.
A math environment, 12 tasks with 4 planned repeats each; the job stopped early and was profiled with ++allow_partial_rollouts=True. The script prints:
Coverage: 41 of 48 planned rollouts measured (85.42%): 7 never saved, 0 masked.
Tasks: 12; 9 complete, 2 partial, 1 with no measured rollout.
Not in the profile file (no saved rollout): 10
Mean reward over measured rollouts: 0.5122 (says nothing about tasks with none).
* = partial: fewer measured rollouts than planned.
Reward varies across repeats (learning signal): 5, 6, 7, 8, 9*
Same reward (0.0) on every repeat (no signal): 3, 4, 11*
Same reward (1.0) on every repeat (no signal): 0, 1, 2
No measured rollout (not measured): 10
Task 4's rollouts all answer 400 while its expected answer is 401. The report:
Coverage: 41 of 48 planned rollouts measured (85%). Task 10 has none; tasks 9 and 11 are partial.
Keep (reward varies): 5, 6, 7, 8, and 9 (only 2 of 4 repeats measured).
Drop, always solved: 0, 1, 2.
Never solved: 3, 4, 11 (3 of 4 measured). Task 4: the model answers 400 every time but the expected answer is 401; check the label before dropping it.
Not measured: 10. Rerun with --resume before deciding.
Mean reward 0.51 over the 41 measured rollouts only.
| Script | Purpose | Arguments |
|---|---|---|
scripts/summarize_profile.py |
Coverage and task groups from gym eval profile output, every number read from the files |
<stem>_reward_profiling.jsonl, optional --inputs <stem>_materialized_inputs.jsonl (found automatically beside the profile), optional --json (lists every task; the text report lists up to 20 per group) |
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.