Skip to content

fix(hermes): retain correlated failures as masked rollouts - #4048

Merged
lafrancef merged 1 commit into
mainfrom
flafrance/hermes-harness-conformance
Oct 9, 2026
Merged

lafrancef merged 1 commit into
mainfrom
flafrance/hermes-harness-conformance

Conversation

@lafrancef

Copy link
Copy Markdown
Contributor

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: true and failure_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-conformance using a fresh output directory. Error/retry ownership satisfies TE-8, with TE-9 as the alternative response-ID contract. pre-commit run --all-files is 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 disabled chat_template_kwargs_enabled for OpenAI compatibility.

@lafrancef lafrancef added bug Something isn't working area:agent Agent harnesses and Responses API agent behavior needs-review PR is ready for code review and waiting on a reviewer labels Oct 5, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 5, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyu-33 yaoyu-33 added the complexity:low Localized change in one scope with a small, straightforward review surface label Oct 5, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 6, 2026
@lafrancef
lafrancef force-pushed the flafrance/pi-harness-conformance branch from e5c1ae2 to 5dc3d2e Compare October 6, 2026 20:44
Base automatically changed from flafrance/pi-harness-conformance to main October 6, 2026 21:15
@lafrancef
lafrancef enabled auto-merge October 9, 2026 10:18
@lafrancef
lafrancef added this pull request to the merge queue Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37917127270

@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 9, 2026
Merged via the queue into main with commit 77509af Oct 9, 2026
40 of 43 checks passed
@lafrancef
lafrancef deleted the flafrance/hermes-harness-conformance branch October 9, 2026 10:39
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]>
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

1 inactive deployment
public — df22ece5 Deployed Oct 9, 2026 by copy-pr-bot[bot] via release / finalize / notify #4846
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent harnesses and Responses API agent behavior bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants