Skip to content

feat(aa_briefcase_lite): AA-Briefcase-Lite on the GDPVal server with the shared failure handling - #5748

Merged
AdamRajfer merged 20 commits into
mainfrom
arajfer/aa-briefcase-lite
Nov 10, 2026
Merged

AdamRajfer merged 20 commits into
mainfrom
arajfer/aa-briefcase-lite

Conversation

@AdamRajfer

Copy link
Copy Markdown
Contributor

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/user and submits files with finish, or gives up with abandon_task_finish; there are no web tools.

  • Binary mode applies the 55 released A/C checks with AA's released judge prompts, one independent pass/fail call per check.
  • Pairwise mode compares the submission with reference submissions on the eight released AQ/P criteria, with position-debiased trials. References are set with pairwise_references (default: the public gpt-5-5 submission). The pairwise rate counts a tie as half a win.
  • The judge panel comes from config. all mode reports both scores plus a non-official convenience average. Nothing here is comparable to AA's leaderboard Elo.

Change

  • The briefcase benchmark and resources server from the gdpval-devel implementation, with Serge Panev's sign-off kept.
  • GDPVal judge/trial changes the server needs: bounded outer request attempts, retry of unparseable pairwise answers, SRT read as text. GDPVal defaults are unchanged.
  • Adaptation to the session-based Stirrup agent: the server starts the sandbox, uploads the inputs, collects the submitted files and grades them. It reuses GDPVal's 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 use gym eval reverify.
  • Failure handling:
    • a failed judge call is a masked judge_failed row via judge_failsafe, keeping the saved deliverable so it can be re-judged;
    • one failed pairwise reference no longer fails the task;
    • staging and conversion faults are masked verifier_error rows;
    • a missing deliverable is a model zero and is not judged;
    • skipped references are logged and counted (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.py 1019, 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. The gym eval reverify example in the README was not run.

Open points

  • The dataset content licence is not stated in the example files.
  • An Elo-anchored variant exists and will follow as a separate change.

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.

…-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]>
@kajalj22
kajalj22 removed request for a team November 6, 2026 22:41
@svcnvidia-nemo-ci svcnvidia-nemo-ci added feature New capabilities, enhancements, or enablement work area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers benchmark-onboarding Self-contained benchmark onboarding needs-review PR is ready for code review and waiting on a reviewer labels Nov 7, 2026
…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)
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 8, 2026 20:47
…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]>
@AdamRajfer
AdamRajfer added this pull request to the merge queue Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit c4e8e52 Nov 10, 2026
70 checks passed
@AdamRajfer
AdamRajfer deleted the arajfer/aa-briefcase-lite branch November 10, 2026 12:06

This branch was previously deployed

1 inactive deployment
public — af8f693a Deployed Nov 9, 2026 by copy-pr-bot[bot] via release / finalize / notify #11061
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 benchmark-onboarding Self-contained benchmark onboarding feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer sla:triage-overdue Review assignment is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants