Repository navigation
fix(hermes): retain correlated failures as masked rollouts - #4048
Merged
Merged
Conversation
lafrancef
force-pushed
the
flafrance/pi-harness-conformance
branch
from
October 6, 2026 20:44
e5c1ae2 to
5dc3d2e
Compare
Signed-off-by: Frederic Lafrance <[email protected]>
giuliolovisotto
force-pushed
the
flafrance/hermes-harness-conformance
branch
from
October 9, 2026 10:06
d67c3be to
df22ece
Compare
giuliolovisotto
approved these changes
Oct 9, 2026
lafrancef
enabled auto-merge
October 9, 2026 10:18
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37917127270 |
This was referenced Oct 9, 2026
yaoyu-33
added a commit
to yaoyu-33/Gym
that referenced
this pull request
Oct 9, 2026
…DIA-NeMo#4251) ## What does this PR do? Align conformance with NVIDIA-NeMo#4045: retained HTTP errors belong to an invocation and may have zero or one step reference. Successful policy responses still require a step; compaction calls remain separate. This corrects the P0 check introduced in NVIDIA-NeMo#4192 without inventing turns for failed HTTP exchanges. Also pass the configured assistant-message header to the scripted Model Server's capture middleware, matching normal Model Server startup. Tests cover header retention on HTTP success/failure and reject duplicate links or missing ownership. The OpenCode plugin-loading commit was removed and replaced by the separate shared-runtime PR NVIDIA-NeMo#4288. This PR only changes conformance checks, probe wiring, their tests and documentation. It is rebased on main `77509af61`. ## Validation After removing the plugin-loading commit: ```bash PYTHONPATH=$PWD python -m pytest \ tests/unit_tests/harness_capabilities \ scripts/harness_conformance/tests \ tests/unit_tests/test_harness_conformance_checks.py -q ``` **342 passed, 2 skipped.** Full core and all-server suites were not run locally. The all-files pre-commit check passed on the rebased branch before removing the isolated plugin-loading commit. The fresh four-harness probe run on the rebased branch, before that split, gave OpenCode 5/7, Hermes 7/7, Pi 6/7, Codex 0/7. These are not results for this final split: OpenCode additionally needs the separate plugin setup. Hermes benefits from NVIDIA-NeMo#4048 now on main. Pi's two provider-error classification unit failures remain separate (NVIDIA-NeMo#4285); its HTTP-400 health expectation also remains unresolved. Codex retains independent evidence gaps. No fresh generative-model benchmark is needed for this diagnostic/probe correction. No API migration or reward/scoring change. No new source files; existing licenses retained. All commits have DCO sign-off. --------- Signed-off-by: yaoyu-33 <[email protected]>
7 tasks done
adil-a
added a commit
that referenced
this pull request
Oct 13, 2026
A model endpoint that refuses the request for what it asked (HTTP 400, 413 or 422 after Hermes's own retries) is a model outcome: the episode reaches the verifier and keeps an unmasked zero, as the conformance model_error scenario requires since #4473. Auth, routing, rate-limit and server errors stay provider failures and are masked as #4048 intended. The response records the status under metadata.model_rejected. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Adil Asif <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hermes retries lose model-attempt ownership when no response ID exists, and local terminal provider failures previously aborted before collection and verification. Propagate invocation headers through SDK retries and retain local provider failures so the verifier and collector receive their evidence.
Provider-failed rollouts are always marked
mask_sample: trueandfailure_kind: agent_request_failed, even if the verifier awards a positive reward. They remain excluded from scores. This intentionally changes the local failure behavior established in #3554; sandbox sessions retain their retryable failure path.Depends on #4045 for the shared collector correction; this PR is based on that branch to keep its diff harness-specific. No separate issue is needed: the failures reproduce with the conformance suite from #3766.
All seven conformance scenarios pass with Hermes commit 26bb847a88493342ca1b194e0455b479073ae21d (previously 4/7). Reproduce with
python scripts/run_harness_conformance.py --harness hermes --output /tmp/hermes-conformanceusing a fresh output directory. Error/retry ownership satisfies TE-8, with TE-9 as the alternative response-ID contract.pre-commit run --all-filesis clean. A real gpt-4.1-mini rollout computed 17 × 23, wrote and read 391 through a shell tool, and returned CONFORMANCE_DONE; the independent verifier checked both the file and final answer and awarded 1.0 (two provider calls). The live smoke disabledchat_template_kwargs_enabledfor OpenAI compatibility.