Skip to content

[VDR] ERR-f9862ca2 · Unknown --agent name produces a 108-line omegaconf traceback instead of a did-you-mean #2226

Closed

Description

@anwithk

gym eval run --agent no_such_agent runs past argument handling, begins work ('Clearing output fpath...', 'Repeating rows 1 times...'), then crashes deep inside omegaconf with ConfigKeyError: Missing key no_such_agent and 100+ lines of library stack frames. This is inconsistent with --benchmark and --resources-server, which are validated up front and produce a clean 'Did you mean X?' message via the existing did_you_mean() helper in nemo_gym/cli/utils.py:21.

Suggested fix: Validate --agent against the agent registry before any side effects, and route the failure through exit_unknown_component(name, candidates, 'agent') so it gets the same did-you-mean treatment as the other component flags.

Details

Severity 🟠 high
Path nemo_gym/cli/eval.py:1
Finding ID ERR-f9862ca2
Found by error-quality-auditor
Workstream [VDR][v0.5.0] Raw tracebacks instead of actionable errors
Status ⟳ also reported 2026-06-30 (as ERR-66060124) — still unfixed

Evidence

$ gym eval run --resources-server example_single_tool_call --model-type openai_model --agent no_such_agent --input /tmp/in.jsonl --output /tmp/out.jsonl -> exit=1, 108 lines, omegaconf.errors.ConfigKeyError: Missing key no_such_agent

DX review Gym-1-20260730170035 · target ref e446e4f4 · 2026-07-30 · tracker #2214

Metadata

Metadata

Assignees

Labels

vdr

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions