Skip to content

docs(verifier): require verify to return the scored response - #2703

Draft
ananthsub wants to merge 1 commit into
mainfrom
ansubramania/verify-response-echo-contract
Draft

ananthsub wants to merge 1 commit into
mainfrom
ansubramania/verify-response-echo-contract

Conversation

@ananthsub

@ananthsub ananthsub commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

A resources server receives the completed agent response in body.response, calculates a reward, and returns a verification result. This PR documents and tests that the result must contain the same response that was passed to the verifier.

When a resources server is tested through VerifierFixture, the test now:

  • Saves request.response before calling verify().
  • Fails if verify() mutates the request response.
  • Fails if the returned result omits the response or returns different content.
  • Accepts equivalent Pydantic and dictionary representations.
  • Does nothing for generic scorer fixtures whose request model has no response field.

The response returned by verify() becomes part of the completed /run result and the persisted rollout. Re-verification must score that same response again. Model-call attribution must also match that response to the model call that produced it. Replacing the response inside verify() would mean that the verifier scored one object while downstream code received another.

Scope

This is a test-time check for resources servers that export and run a VerifierFixture. It does not change runtime verification and does not enforce the requirement across resources servers that do not yet provide a fixture.

A verifier that needs derived diagnostics should add separate fields to its verification result. Sanitization or redaction should happen before verification so the verifier scores and returns the same normalized response. If a workflow intentionally returns a different response, it needs an explicit attribution and re-verification design rather than silently replacing response.

terminus_judge sanitizes lone Unicode surrogates but preserves normal responses. Lone-surrogate responses cannot be stored by the token capture path, so they are already unusable for training.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format/copyright pass).
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

@copy-pr-bot

copy-pr-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@ananthsub
ananthsub requested a review from mpatel31415 August 24, 2026 05:09
@github-actions

Copy link
Copy Markdown
Contributor

@ananthsub
ananthsub force-pushed the ansubramania/verify-response-echo-contract branch from 8fd594a to d78ce73 Compare August 24, 2026 05:16
@ananthsub ananthsub changed the title feat(verifier): enforce the response echo contract in fixtures docs(verifier): require verify to return the scored response Aug 24, 2026
@ananthsub
ananthsub marked this pull request as ready for review August 24, 2026 05:18
Document that verify must return body.response unchanged. Fixture tests now
reject verifiers that mutate, omit, or replace the response because downstream
code must receive the same response that the verifier scored.

Signed-off-by: Ananth Subramaniam <[email protected]>
@ananthsub
ananthsub force-pushed the ansubramania/verify-response-echo-contract branch from d78ce73 to c2a5b8a Compare August 24, 2026 05:18
@copy-pr-bot

copy-pr-bot Bot commented Aug 24, 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.

@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Aug 25, 2026
@ananthsub

Copy link
Copy Markdown
Contributor Author

Related to the performance roadmap in #2998. This PR defines the response-echo compatibility constraint for simplifying verification payload construction in #3011.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Oct 20, 2026
@yaoyu-33
yaoyu-33 marked this pull request as draft November 18, 2026 02:15
@yaoyu-33

Copy link
Copy Markdown
Contributor

We’re doing some cleanup of the open PR list. This PR has had no activity for over a month, so I’ve moved it back to draft.

If this change is still needed, please resolve any merge conflicts and mark the PR ready for review again when it’s ready to merge. Thanks!

@github-actions github-actions Bot removed the sla:review-overdue Review response is over the one-business-day SLA label Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work 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