Repository navigation
feat(aa_briefcase_lite): AA-Briefcase-Lite on the GDPVal server with the shared failure handling - #5748
Merged
Conversation
…-aware judging Port of the briefcase files from gdpval-devel (12be3a8, identical to the files of #4129), unchanged. Adaptation to main follows in later commits. Signed-off-by: Serge Panev <[email protected]> Signed-off-by: Adam Rajfer <[email protected]>
… 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]>
…eliverable 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]>
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]>
… 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]>
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]>
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]>
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]>
…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]>
…f 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)
…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]>
…ce_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]>
…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]>
…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]>
…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]>
…ailing 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]>
wprazuch
approved these changes
Nov 10, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42810519134 |
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.
Supersedes #4129. @Kh4L, whose commits and sign-off are carried here, is a co-contributor.
Behaviour
AA-Briefcase-Lite is the public four-task example of Artificial Analysis's office-work evaluation. The agent works in a sandbox with the shared and week inputs under
/home/userand submits files withfinish, or gives up withabandon_task_finish; there are no web tools.pairwise_references(default: the publicgpt-5-5submission). The pairwise rate counts a tie as half a win.allmode reports both scores plus a non-official convenience average. Nothing here is comparable to AA's leaderboard Elo.Change
resolve_deliverables, sessions and masked rows. Prepared rows carry the rendered prompts and the two finish tools, and the Apptainer task module is removed. Judge-only reruns usegym eval reverify.judge_failedrow viajudge_failsafe, keeping the saved deliverable so it can be re-judged;verifier_errorrows;aa_lite/pairwise_references_skipped).Checked
Briefcase server tests 85, benchmark prepare tests 7, gdpval tests 959, stirrup agent tests plus
test_public_api_facades.py1019, ruff clean.No run against a real sandbox or judge endpoint was made. The sandbox image (
AA_BRIEFCASE_SANDBOX_IMAGE) must exist, run as the configured user with a writable home, and the provider must enforce the no-network rule. Thegym eval reverifyexample in the README was not run.Open points
Revert
Revert the merge commit. The shared changes are limited to a few lines in
resources_servers/gdpval(judge request options and a workdir hook) and do not change GDPVal behaviour.