Repository navigation
Conversation
single_agent_turn skips /verify under skip_verification, but nemo_user_sim always called it, so a run with the global flag still scored every UserSim conversation. - nemo_user_sim gets skip_verification and skip_verification_reward. Left unset, they fall back to the assistant agent's values, which Gym fills from the global flags. With skipping on, the episode returns the fixed reward with verification_skipped: true and no verification, still closes both agent sessions and the Resources session, and /aggregate_metrics returns empty metrics. - UserSimEpisodeResult.verification is None exactly when verification_skipped is set; a verified result keeps its shape. - The harbor and swe_together READMEs say skip_verification does not apply (both grade inside the episode and have no setting that skips it), and the legacy_agent README says the agent's own /run keeps honoring it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test f2deb2a |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
RISK — Required real-model smoke evidence is missing
The PR reports three scripted-model runs and explicitly leaves a real-model smoke pending. Those runs provide useful plumbing evidence, but this changes environment behavior, and AGENTS.md requires representative real smoke rollouts with a model and inspection of agent and verifier behavior. This is a validation gap, not a demonstrated runtime defect.
Could you run representative real-model episodes through the UserSim environment composition, both with verification enabled and with global skip_verification=true and skip_verification_reward=0.5? Record the commands, model identifiers, selected rows, and inspected rollout/server evidence in the PR. No implementation patch is requested without a demonstrated failure.
Acceptance and preservation:
- The skipped run completes a real conversation, makes no Resources
/verifycall, persists reward0.5,verification_skipped: true,verification: null, and emptyreward_components, closes both agent sessions and the Resources session, and returns empty aggregate metrics. - The enabled run still calls
/verify, persists the measured reward and verification object without averification_skippedkey, and closes the same sessions. - Retain the explicit Environment Server
falseoverride and agent string"false"cases in the non-skipping regression test: both must continue verifying.
I inspected all seven changed files and the directly affected configuration, cleanup, serialization, collector, and aggregation paths. I found no confirmed implementation defect. One delegated report wasn't delivered; I independently covered its configuration and cleanup topic. This was a static review; I didn't execute tests or rollouts.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
Signed-off-by: yaoyu-33 <[email protected]>
With skip_verification on, a simulation that UserSim reported as failed got the fixed reward with no mask and no failure kind, so a user-model or judge outage became an ordinary row and an invalid assistant response could earn the fixed reward. /verify masks the first and scores the second 0.0. - Move the outcome classification (who caused the failure, failure kind and reason) into resources_servers/nemo_user_sim/episode_contracts.py as usersim_failure(), used by both /verify and the skipped episode result. - A skipped result for a failed simulation scores 0.0 with /verify's failure fields, masked unless the assistant model caused it. - One Resources-close block for the verified and skipped paths. - Tests: failure routing under skip (pinned against the real /verify), retryable assistant failure, terminal cleanup failure on both paths, full verify-path call order, field-by-field setting fallback. - READMEs: nemo_user_sim describes failures under skip; single_agent_turn_legacy says it inherits skip_verification. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test 0a309c6 |
…ent Servers - Move the rule both Environment Servers use to decide whether to skip /verify into nemo_gym.config.skipped_verification_reward(): the server's own setting wins, otherwise its agent's, parsed as the agent parses it. single_agent_turn and nemo_user_sim call it; behavior is unchanged. - Report each Environment Server's own skip_verification in the run-health provenance and the response/trial health warning, since it overrides the agent's setting. - README: do not claim nemo_user_sim skips exactly as single_agent_turn does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test bcc5d75 |
What and why
#4949 made
single_agent_turnhonorskip_verification.nemo_user_simstill always called/verify, so a runwith the global
skip_verificationflag still scored every UserSim conversation with the probe scorer. Thisgives
nemo_user_simthe same fields and behavior assingle_agent_turn, and says in each Environment Server'sREADME where the setting applies.
nemo_user_simskip_verificationandskip_verification_reward. When it leaves them unset, it falls backto the assistant agent's values. Gym fills those from the global flags, which reach only agents.
/verify. It returns the fixed reward withverification_skipped: true,verification: nulland emptyreward_components.failure_kindandfailure_reasonthat/verifygives it, masked unless the assistant model caused thefailure. Both paths use one rule,
usersim_failure(), which moves from the Resources Server'sapp.pyintoresources_servers/nemo_user_sim/episode_contracts.py./aggregate_metricsreturns empty metrics with the same warning assingle_agent_turn."false"stays false.UserSimEpisodeResultverificationmay beNone, exactly whenverification_skippedis true; a validator enforces that.verification_skippedis left out of a verified result, so verified rows are unchanged.READMEs
nemo_user_simdescribes the setting.harborandswe_togethersay it does not apply. Both grade inside the Environment Server as part of theepisode (a Harbor multi-step task even decides from each step's verifier whether the next step runs), and
neither has a setting that skips its verifier.
legacy_agentsays the agent's own/runkeeps honoring it.single_agent_turn_legacysays it inherits the setting fromsingle_agent_turn.One skip rule for both Environment Servers.
skipped_verification_reward()innemo_gym.configholdsthe rule: the server's own setting wins, otherwise the agent's, parsed as the agent parses it.
single_agent_turnandnemo_user_simboth call it, andsingle_agent_turn's behavior is unchanged. Thechange to
single_agent_turn/app.pytouches only that method and its imports. It merges cleanly with fix(eval): aggregate execution metrics in the environment server #5455 andfeat(agents): deliver per-task agent context to agent sessions #5703. The aggregate-metrics warning keeps its text in each server, because fix(eval): aggregate execution metrics in the environment server #5455 rewrites that block.
Run health.
run.provenance.serversin the run-health summary now reportsskip_verificationfor eachEnvironment Server, as it already did for each agent. An Environment Server's own setting overrides its agent's,
so before this change a run that skipped verification only on the Environment Server looked like a verified run.
The response/trial health warning lists Environment Servers with that value.
Left for later
The agent-level
skip_verificationandskip_verification_rewardfields onBaseResponsesAPIAgentConfigstay.The legacy
/runpath reads them, and bothsingle_agent_turnand nownemo_user_simfall back to them.Removing them waits until the
legacy_agentrelay is retired. At that point the global flag should be set onEnvironment Servers instead.
Compatibility
skip_verification. Scores, status codes and defaults are unchanged.skip_verificationonnemo_user_sim. Episodes score the fixed reward, except a simulation thatUserSim reports as failed. That episode scores
0.0with the failure fields/verifywould give it, and ismasked unless the assistant model caused the failure.
single_agent_turnis unchanged.environment_serversentry underrun.provenance.serversgains askip_verificationkey:trueorfalsewhen the config writes a boolean, otherwisenull. Summaries writtenbefore this change lack the key, and readers treat that as unknown.
environment servers [names]toenvironment servers (skip_verification) {name: value}.Issue
Follow-up of #4949, tracked internally. No public issue.
Validation
environment_servers/nemo_user_sim/testsin a venv built from that server'spyproject.toml(uv 0.13.7),with this worktree on the path: 41 passed.
reward: no
/verify; both agent sessions and the Resources session closed, the last with its seeded cookie;the fixed reward with
verification_skipped: true; the collected record carries both.falseoverriding the agent'strue, an agent string"false", and theunset case all still verify, and the result has no
verification_skippedkey.origin/main'snemo_user_sim. The three not-skipping tests pass onboth, as regression guards.
environment_servers/nemo_user_sim/tests49 passed andresources_servers/nemo_user_sim/tests42 passed. The tests for a failed simulation under skip (user-model failure,checked against the real
/verify, and an invalid assistant response) fail on f2deb2a and pass now.Further tests: a retryable assistant failure under skip, a terminal cleanup failure on both paths, the full
verify-path call order, and the field-by-field setting fallback.
skip_verificationin run provenance):environment_servers/nemo_user_sim/testsandresources_servers/nemo_user_sim/tests: 91 passed.The
nemo_user_simREADME no longer says it skips exactly assingle_agent_turndoes.environment_servers/single_agent_turn/tests,tests/unit_tests/config/test_global_config.py,tests/unit_tests/rollouts/test_rollout_health.py,tests/unit_tests/orchestration,tests/unit_tests/test_import_linter_coverage.pyandtests/unit_tests/test_public_api_facades.py:passed, except 54
tests/unit_tests/orchestrationtests that fail identically on the previous head 0a309c6 on this Mac (BSDsed, nosetsid).New tests:
skipped_verification_reward(server setting wins, agent fallback, string values, and a value thatis not a flag rejected), and Environment Server
skip_verificationin run provenance and in the trial-healthwarning.
Commands, from a scratch directory with this checkout on the path:
pre-commit run --all-files: passed.Rollout evidence
Scripted-model smoke (no real model).
gym env start --config environments/nemo_user_sim/config.yaml, thengym eval run --no-serveon the first committed example row (general_open_ended), with realnemo_user_simResources, Environment and agent servers. All model roles point at one scripted Chat Completionsstub. The UserSim conversation runs for real: user, judge, assistant, judge.
origin/mainwith the global++skip_verification=true ++skip_verification_reward=0.5, and this branch without the flag.origin/main+ flag/verify/close_session/aggregate_metricsrewardverification_skippedtrueverificationnullOn main the global flag reaches the agents, but nothing reads it. With this branch the Environment Server reads
it from the assistant agent. Without the flag, the branch's result matches main's.
Real-model smoke: not run yet. This Mac has no model endpoint. To run it on a host with an
OpenAI-compatible endpoint (
gym eval preparewrites the validation rows first; the embedding and support rolesdefault to the policy endpoint, and a failed embedding call falls back to lexical retrieval):
gym eval prepare --config environments/nemo_user_sim/config.yamlExpected: the second run has no Resources
/verifycall,reward0.5 withverification_skipped: trueoncompleted simulations,
0.0withfailure_kindon failed ones, andskip_verificationreported for the agents inthe run-health summary.
🤖 Generated with Claude Code