Repository navigation
Conversation
…-aware judging Signed-off-by: Serge Panev <[email protected]>
This was referenced Oct 22, 2026
svcnemo-autobot
pushed a commit
to svcnemo-autobot/Gym
that referenced
this pull request
Nov 10, 2026
…the shared failure handling (NVIDIA-NeMo#5748) * feat(aa-briefcase-lite): add AA-Briefcase-Lite benchmark and artifact-aware judging Port of the briefcase files from gdpval-devel (12be3a8, identical to the files of NVIDIA-NeMo#4129), unchanged. Adaptation to main follows in later commits. Signed-off-by: Serge Panev <[email protected]> Signed-off-by: Adam Rajfer <[email protected]> * feat(gdpval): bound judge request attempts and retry invalid pairwise answers Judge callers that already retry in their SDK client can ask for a single outer attempt, and a pairwise trial can repeat an unparseable answer with a format reminder. SRT subtitles are read as text. Taken from the AA-Briefcase-Lite change; GDPVal defaults are unchanged. Signed-off-by: Serge Panev <[email protected]> Signed-off-by: Adam Rajfer <[email protected]> * refactor(gdpval): let a subclass pick the sandbox workdir and reuse deliverable resolution The sandbox working directory is a class setting that defaults to the existing one, and the steps of /verify that turn a session into a deliverable directory, or into a masked row, are a function a subclass can call. No behaviour change for GDPVal. Signed-off-by: Adam Rajfer <[email protected]> * feat(aa-briefcase-lite): run on current main The Stirrup agent no longer takes benchmark task strategies, so the task runs as a session of the resources server: it starts the sandbox, uploads the dataset inputs under /home/user, collects the submitted files at /verify and grades them. The prepared rows carry the rendered prompts and the two finish tools; the Apptainer task module is gone. The GDPVal request, session and masked-row handling are reused, imports follow the moved modules, and the server gets a pyproject and lock like its siblings, a manifest, and an environment server entry in the benchmark config. Judge-only reruns and generation-only runs use gym eval reverify and judge_deliverables. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): type judge failures and isolate each pairwise reference A failed binary or pairwise judge call is raised as a judge_failed event, so the verify route masks the row, keeps the saved deliverable, and gym eval reverify --judge-failed-only can judge it again. A pairwise reference whose judging fails is dropped with a skipped record and a warning, as GDPVal does per matchup, so the other references and the binary checks still count; only a task whose every reference failed is masked. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): report evaluation-side faults as verifier errors A deliverable without a PDF render, a failed Office conversion, and a task whose checks or task text cannot be read were bare RuntimeError or ValueError and failed the request. They are now AAEvaluationFault, and verify masks the row under the existing verifier_error kind with a failure event and keeps the deliverable, so a reverify can grade it once the cause is fixed. A pairwise mode without references is refused at startup instead of at the first verify. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): score a missing deliverable as the model's zero A check whose required file the model did not submit was sent to the judge with a placeholder line, so the model's score depended on the judge. The binary check now fails and each pairwise trial against every reference is a loss without a judge call, and the record names the missing files. An abandoned or empty submission therefore scores zero with no judge cost. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): log and count skipped pairwise references A reference with no submission for the task, or whose excluded judges left no judge, was visible only inside judge_response, and the pairwise counts shrank without a flag. Each skip is now a warning, the row carries a skipped-reference count and list, and the aggregate reports aa_lite/pairwise_references_skipped. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): declare the example dataset on the resources server The example overlay listed its jsonl under the agent, which has no task data schema, so the repository-wide committed-rows check found no schema for it. The rows belong to the resources server, whose schema validates them. Signed-off-by: Adam Rajfer <[email protected]> * fix(gdpval): type a comparison judge outage as judge_failed instead of an HTTP 500 When every judge matchup of a comparison failed for a reason that is neither a transport exclusion nor a permanent payload error (a judge request timing out, say), verify raised a bare RuntimeError. It escaped judge_failsafe and reached the caller as an untyped HTTP 500, which the environment server recorded as environment_server_failed with no failure kind and retried by running the whole agent episode again, although the agent's answer was already saved and nothing was wrong with the model. verify now raises a judge_failed event. judge_failsafe turns it into a masked row that keeps the saved answer, and recovery grades that answer again instead of sampling the policy a second time. Signed-off-by: Adam Rajfer <[email protected]> (cherry picked from commit 9fce912cbb84926e07855cdd50c70cfc929de563) * Revert "fix(gdpval): type a comparison judge outage as judge_failed instead of an HTTP 500" This reverts commit 929eaad. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): keep the deliverable on a judge_failed row of a live session A task that ran in a session has no deliverables_dir on its /verify request: the server collects the files from the sandbox and stops it. When the judge then failed, judge_failsafe built the masked row from the request's own body, so the row named no deliverable. gym eval reverify --judge-failed-only reads the deliverable from the row, found none, and masked the row again as a lost session, although the files were persisted. verify now hands the collected directory to the request body that judge_failsafe reads. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): mask a row whose judge gave no usable verdict instead of scoring it A binary check that the judge answered with an unparseable or empty reply after every format retry counted as a fail in the row's reward, and a pairwise criterion with an unusable vote was decided by the remaining votes. The row was neither masked nor retried: core no longer retries rows flagged invalid_judge_response, so the lowered score stayed, and the aggregate left the row out silently while coverage counted it as scored. Both cases now raise a judge failure. The row is masked as judge_failed with its deliverable, and gym eval reverify --judge-failed-only judges it again. A pairwise reference that fails this way is skipped like any other failed reference. The invalid_judge_response fields and the rows_valid metric go with the flag. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): mask a task with no pairwise reference to judge instead of scoring it 0.0 When every configured reference was skipped (it has no submission for the task, or its excluded judges left no judge) no vote was cast, and the task's pairwise reward was 0.0, which in all mode also halved the binary score. A single reference such as o3, which has no submission for w1_t1, scored that task as a model loss in every run. The row is now masked as a verifier_error that names each skipped reference. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): refuse to start an episode whose input files are missing The sandbox is seeded with whatever the dataset's source_files/shared and source_files/week directories hold. A partial checkout with an empty directory, or files left as Git LFS pointers, started every episode without the task's inputs, and the model's work on nothing was scored as its own. Seeding now fails when either directory has no files or holds unhydrated LFS pointers, before a sandbox is started. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): convert Office deliverables through libreoffice_command The GDPVal server runs conversions through libreoffice_command, a container prefix for hosts that have LibreOffice only inside an image. This server checked the host's own LibreOffice at startup and converted with the host binary, so a deployment with the command set refused to start, or converted with a binary that is not there. The startup check is left to GDPVal's probe of the command, and the conversion passes the command through. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): leave out the rate of a scoring path the run did not take A run in binary mode reported aa_lite/pairwise_win_rate 0.0, and a run in pairwise mode reported aa_lite/binary_pass_rate 0.0, as key metrics next to the real score, so a reader or a band check saw a model that lost every matchup or failed every check. A rate is now reported only when its path judged something. Signed-off-by: Adam Rajfer <[email protected]> * fix(aa-briefcase-lite): mask a task whose deliverables or references are not on disk A deliverables_dir that does not exist (a reverify on a host that cannot see the persisted tree, a moved or wiped persist directory, example rows whose submissions were not staged) read as a model that submitted nothing: every binary check failed and every pairwise trial was lost, unmasked and without a judge call. A pairwise reference or deliverable that is an unhydrated Git LFS pointer reached the judge as the file's content. Both are evaluation faults now: the row is masked as verifier_error and a reverify grades it once the files are in place. Signed-off-by: Adam Rajfer <[email protected]> * docs(aa-briefcase-lite): correct the retry and prepared-row notes in the benchmark README The benchmark README said pairwise requests keep the shared sender's own transport retries, but the server turns that loop off and relies on the SDK's two retries, as the server README says. It also said the prepared rows record the checkout path; they record only its revision. Signed-off-by: Adam Rajfer <[email protected]> * fix(gdpval): read a text deliverable in another encoding instead of failing the judge section A text-like deliverable that is not valid UTF-8, such as a subtitle file written as Windows-1252, raised while the judge input was built, so every grading attempt of the task failed and no row could be scored or re-judged. Undecodable bytes now read as U+FFFD and the judge weighs the file as submitted. Signed-off-by: Adam Rajfer <[email protected]> --------- Signed-off-by: Serge Panev <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
yaoyu-33
marked this pull request as draft
November 18, 2026 02:18
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! |
This branch has not been 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.
Summary
Ports #3417 from
gdpval-develto main: the four-task public AA-Briefcase-Lite benchmark (dataset preparation, an offline Stirrup task strategy, binary judging, and local pairwise comparisons against the released reference artifacts), plus the shared GDPVal and Stirrup changes it relies on.benchmarks/aa_briefcase_liteandresources_servers/aa_briefcase_lite(server, prepared-task schema, example data, tests).aa_briefcase_litetask strategy, offline tool and message behavior, apptainer provider and logging updates.comparison.py:run_judge_trialsgainsinvalid_response_retries(re-asks a malformed or empty verdict once with a format reminder, without repeating valid votes), andsend_judge_requestgainsrequest_attempts. Subtitle text, LaTeX source and attached-PDF labels are preserved in judge inputs.Port notes
resources_servers/gdpval/comparison.pyconflicted with main's judge failure telemetry (#4065), whichgdpval-develdoes not have. The resolution keeps both:send_judge_requesttakesrequest_attemptsplus main's keyword-only telemetry arguments, its telemetry reportsmax_attempts=request_attempts, and the invalid-response retry loop passes the trial's telemetry context and transport receipt on every send. All other files applied unchanged.Validation
resources_servers/aa_briefcase_lite/tests,resources_servers/gdpval/tests,responses_api_agents/stirrup_agent/tests,benchmarks/aa_briefcase_lite: 992 passed, 2 skipped, in a venv synced from main'suv.lockplus each server'srequirements.txt.Local pairwise scores are not AA's unpublished Elo calculation.