Repository navigation
test(conformance): check terminal errors reported to environments - #4782
Conversation
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
118f1de to
81b7361
Compare
lafrancef
left a comment
There was a problem hiding this comment.
Optional: "terminal error" to me sounds like an error raised from the terminal. Do we define this term anywhere? Maybe "non-retriable error" is a more evocative naming.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39414488624 |
|
Re @lafrancef's naming question: "terminal" here follows the repo's existing sense of "final, no further recovery" (cli-commands.mdx#L858), and the scenario is a persistent 400 the harness cannot recover from. I'd keep the Optional notes on the contract:
Generated by Claude Code |
What does this PR do?
Check that the Environment Server receives a structured failed agent response retaining the terminal provider error. Previously model.terminal_error only checked that the scripted provider returned HTTP 400, and separate checks imposed an unmasked, verified zero grade. Verification and masking are environment policy, so the terminal-error scenario no longer prescribes either.
A test-only observer records response status/error at the Environment Server boundary before verification. Other artifact, ownership, token and health checks remain; successful/retry/verifier scenarios retain their grading checks. Behavioral locations consistently use witness.json.
Tracking: FEA-395.
Split for review
This PR now contains only conformance changes. The adapter fixes are separate sibling PRs based on this branch:
Merge this contract first, then retarget the harness PRs to main. The contract alone exposes existing producer gaps; it is not expected to make current-main harnesses pass by itself. No scenario is demoted or disabled to hide those gaps.
Validation and rollouts
python -m pytest scripts/harness_conformance/tests tests/unit_tests/harness_capabilities -q -o addopts='' -o log_cli=false --import-mode=importlib).118f1de37passed all 28 scenarios (7/7 per harness) locally on Linux and in GitHub CI run 39400867183. Downloaded artifacts were checked individually. All five split branches recombine to exactly the tested implementation plus the witness location-label correction./Users/glovisotto/repos/notes/conformance-terminal-reporting-20261020/.Compatibility and benchmark impact
The terminal-error scenario now certifies reporting to the caller, not a specific grading/masking policy. Production Environment Server and benchmark policies are unchanged by this PR. Changes to producer behavior are isolated in the sibling PRs.