NVIDIA-NeMo/Gym · scicode
- Pattern
- The agent can write what the grader reads
- Severity
- High
- What is rewarded
- A sub-step passes when its program exits with code 0, and nothing confirms the asserts ran. One line, raise SystemExit(0), passes the sub-step before its tests run, and because each step’s code carries into later steps, every later sub-step passes too.
- Affected
- 13 of 13 scored sub-steps on the 5 example problems (reward 1.0 on 5 of 5); a wrong-answer control passes 0 of 13; tested at 9240708
- Suggested fix
- Require a per-run random sentinel printed after the last assert, or run the tests from a harness that catches SystemExit and reports through a channel the solution can’t write to.