Skip to content

feat(aa-briefcase-lite): add AA-Briefcase-Lite benchmark and artifact-aware judging - #4129

Draft
Kh4L wants to merge 1 commit into
mainfrom
spanev/aa-briefcase-lite-main
Draft

Kh4L wants to merge 1 commit into
mainfrom
spanev/aa-briefcase-lite-main

Conversation

@Kh4L

@Kh4L Kh4L commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Ports #3417 from gdpval-devel to 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.

  • New benchmarks/aa_briefcase_lite and resources_servers/aa_briefcase_lite (server, prepared-task schema, example data, tests).
  • Stirrup: aa_briefcase_lite task strategy, offline tool and message behavior, apptainer provider and logging updates.
  • GDPVal comparison.py: run_judge_trials gains invalid_response_retries (re-asks a malformed or empty verdict once with a format reminder, without repeating valid votes), and send_judge_request gains request_attempts. Subtitle text, LaTeX source and attached-PDF labels are preserved in judge inputs.

Port notes

resources_servers/gdpval/comparison.py conflicted with main's judge failure telemetry (#4065), which gdpval-devel does not have. The resolution keeps both: send_judge_request takes request_attempts plus main's keyword-only telemetry arguments, its telemetry reports max_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's uv.lock plus each server's requirements.txt.
  • pre-commit (ruff, ruff-format, README environment list, end-of-file, whitespace) passed on the changed files.
  • No model rollout was run for this port.

Local pairwise scores are not AA's unpublished Elo calculation.

@copy-pr-bot

copy-pr-bot Bot commented Oct 6, 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 area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:high Cross-component or shared-contract change with a large review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Oct 6, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 7, 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
yaoyu-33 marked this pull request as draft November 18, 2026 02:18
@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:triage-overdue Review assignment 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 complexity:high Cross-component or shared-contract change with a large review surface 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