Repository navigation
Description
Queue rank 3/48 · Difficulty 1/5 · Status on main: not_fixed
NVBug: https://nvbugspro.nvidia.com/bug/6775679 · NVBug priority: P1-Should have · ARB: Ananth Subramaniam
GitHub: none found (JIRA NMGYM-56; no Gym PR/issue located)
Summary
The documented gym env start commands for GRL Sokoban and GRL Tetris pass an extra --config responses_api_agents/gymnasium_agent/configs/gymnasium_agent.yaml. That generic file adds an unbound top-level gymnasium_agent instance (only entrypoint: app.py), which GymnasiumAgentConfig rejects for missing resources_server/model_server. Startup aborts before any model eval. Each resource config already defines a correctly bound <resource>_gymnasium_agent, so the extra config is redundant and harmful.
Reproduction
From an installed checkout, run the documented command: gym env start --model-type openai_model --config responses_api_agents/gymnasium_agent/configs/gymnasium_agent.yaml --resources-server grl_sokoban (same for grl_tetris). Server start fails with ValidationError: 2 validation errors for GymnasiumAgentConfig then RuntimeError: Process gymnasium_agent finished unexpectedly!.
Root cause
Confirmed. gymnasium_agent.yaml:1-4 declares a gymnasium_agent instance with no references. GymnasiumAgentConfig requires both (app.py:48-49: resources_server: ResourcesServerRef, model_server: ModelServerRef). Composition only binds references via an explicit placeholder, so the generic instance stays unbound and fails validation. The resource's own grl_sokoban_gymnasium_agent is fully bound with max_steps: 20.
Status on main (not_fixed)
HEAD 75bb53e. Both READMEs still carry the offending line: grl_sokoban/README.md:16 and grl_tetris/README.md:17 (--config responses_api_agents/gymnasium_agent/configs/gymnasium_agent.yaml). git log 1f478743..HEAD on both READMEs = 0 commits. Sibling gymnasium READMEs (blackjack, wordle, example_multi_turn_gymnasium) correctly start with only --resources-server <name> and no extra config.
Proposed fix
Minimal docs fix (bug's preferred option): delete the --config responses_api_agents/gymnasium_agent/configs/gymnasium_agent.yaml line from the gym env start block in both resources_servers/grl_sokoban/README.md and resources_servers/grl_tetris/README.md, matching blackjack. Do not touch composition semantics. No new product tests needed; the bound agent and 20-turn budget already live in each resource YAML.
Validation
Re-run gym env start --model-type openai_model --resources-server grl_sokoban (and grl_tetris); confirm healthy services and no ValidationError. The QA e2e testcases testcases/environments/grl_sokoban.py and grl_tetris.py are already updated to match the corrected docs (no extra --config, expect_servers=4). Full acceptance = both cases green with the hosted model, 20-turn budget preserved, all 5 examples complete.
Triage
Difficulty 1/5 — two one-line README deletions, no behavior risk, pattern proven by sibling configs. Needs GPU/model: no for startup smoke; hosted model only for full 5-example QA rerun. External dependency: none.
Reviewer notes
Verifier confirmed not_fixed and difficulty 1. Two corrections applied: (1) the draft's claim that the QA testcases "currently pass AGENT_CONFIG" is stale — the on-disk cases (grl_sokoban.py:277, grl_tetris.py:302) already dropped it and use expect_servers=4; (2) the required-refs citation is app.py:48-49, not 46-47. Both READMEs and the unbound-instance validation failure reproduce on HEAD.
Activity
fix(grl): start GRL READMEs without the unbound gymnasium_agent and k…