Repository navigation
Description
Queue rank 44/48 · Difficulty 4/5 · Status on main: not_fixed
NVBug: https://nvbugspro.nvidia.com/bug/6900615 · NVBug priority: Unprioritized · ARB: Ananth Subramaniam
GitHub: none found
Summary
In resources_servers/indian_banking, a user-simulator failure (HTTP 200 reply with empty/incomplete text) ends the episode as an ordinary truncation and the partial score becomes a valid reward. The rollout carries mask_sample=False, failure_kind=None, and no log line, so an infrastructure failure is counted as a real policy outcome in mean/reward and RL data. Still present on main (HEAD 75bb53e).
Reproduction
Run the QA indian_banking e2e with a user-sim model that reasons by default against the shipped max_output_tokens: 512. When reasoning exhausts the budget, the reply is incomplete/empty on every retry; the episode truncates and is scored (observed: reward 0.0635 and 0.1108 on 2026-10-08 rc1 reruns).
Root cause
_user_sim_reply (app.py:257-285) only returns non-empty text and only logs exceptions (283-285); an empty 200 reply is retried silently, then returns None. step() (app.py:238-242) then calls _finish and returns truncated=True with _reward_info(scores) — no mask. The gymnasium contract cannot carry a mask: EnvStepResponse (gymnasium/base.py:49-54) is only obs/reward/terminated/truncated/info, and gymnasium_agent/app.py:311-318 never sets mask_sample on GymnasiumRunResponse (which does inherit it from BaseVerifyResponse). nemo_user_sim/app.py:337 masks sim failures, but it is a /verify server, not gymnasium step.
Status on main (not_fixed)
Code is byte-equivalent to the reported defect; cited lines unchanged. The gymnasium step contract was recently reworked (gymnasium_agent #3415 +144, gymnasium/base.py #3440, indian_banking #3728 Ray chore) but still carries no mask. No mask_sample/failure_kind anywhere in gymnasium/gymnasium_agent. Config indian_banking.yaml:25 still max_output_tokens: 512. No related GitHub PR/issue found.
Proposed fix
- Gymnasium framework: add
mask_sample/failure_kind/failure_reasontoEnvStepResponseand thestep()tuple; havegymnasium_agentpropagate the terminal step's values intoGymnasiumRunResponse. Needs maintainer sign-off (affects all gymnasium envs); note the info-dict passthrough still hits the_REWARD_KEYSinvariant (app.py:52). indian_banking/app.py: in_user_sim_reply, treatstatus != completed/empty text as a failed attempt and log it; on all-retries-failed truncation (238-242) flagmask_sample=True+ afailure_kind.- Optional: raise/disable sim-model reasoning budget in the config and document it.
Tests: unit test asserting a None sim reply yields a masked terminal step.
Validation
Re-run QA testcases/environments/indian_banking.py (check_simulator_failure, assertion at line 602 "simulator failures are masked (mask_sample), not scored (NVBug 6900615)"); confirm masked episodes drop out of mean/reward. Masking is injection/unit-testable; only a full e2e needs a reasoning sim model/GPU.
Triage
Difficulty 4/5 — cross-component gymnasium contract change plus env fix, needs maintainer design agreement and a model-backed smoke rollout. Effort ~10 h. Needs GPU/model: yes (full e2e only). External dependency: none.
Reviewer notes
Verifier confirmed not_fixed and difficulty 4 (high confidence). Corrections applied: _user_sim_reply line range corrected to app.py:257-285; the "last touch #2881" claim replaced with the real recent contract rework (#3415/#3440/#3728), which still adds no mask; Validation clarified that masking is injection/unit-testable (only full e2e needs a GPU) and the exact line-602 assertion text was quoted.
Activity
yuhezhang-ai commentedon Oct 21, 2026
Cross-linking this work with #3180, the failure-reporting migration tracker now assigned to @yuhezhang-ai. This issue remains under #4482; its existing scope and ownership are preserved.
#4882 covers adding missing diagnostics to already-masked results without changing behavior. This Indian Banking issue needs its own Gymnasium propagation and partial-score semantics work, so it remains a separate implementation task. Record any specific dependency on #2135 / #3302 when selecting the result contract; the inventory and regression tests can start now.