Skip to content

Add AA-Briefcase-Lite benchmark and artifact-aware judging - #3417

Merged
dznvidia merged 12 commits into
gdpval-develfrom
aa-briefcase-lite-devel
Oct 6, 2026
Merged

dznvidia merged 12 commits into
gdpval-develfrom
aa-briefcase-lite-devel

Conversation

@AdamRajfer

Copy link
Copy Markdown
Contributor

Adds the four-task public AA-Briefcase-Lite benchmark on top of gdpval-devel, with dataset preparation, an offline Stirrup task strategy, binary judging and local pairwise comparisons against the released reference artifacts.

Changes

  • Route each check to a capable judge using its declared artifacts, including missing-file modality requirements; retain configurable judge/model and execution-mode overrides.
  • Preserve subtitle text and LaTeX source, label attached PDFs correctly, and insert submitted artifacts at the released prompt marker. Shared subtitle handling also applies to GDPval.
  • Retry empty, malformed and transiently failed judgments without repeating valid votes; record usage and transport outcomes while leaving exhausted failures unscored.
  • Include prepared-task schema, public-reference examples and regression coverage. Integrate current GDPval budgeting/compaction support while preserving Briefcase's offline tool and message behavior.

Validation

  • 597 focused tests passed, zero skipped: Stirrup component suite, Briefcase resource suite, GDPval artifact/panel tests, and affected setup/global-config tests.
  • Ruff 0.9.9 lint and formatting checks passed for the resolved Stirrup merge file; syntax and diff checks passed.
  • No fresh model rollout was run after this merge; the full repository suite was not run.

Local pairwise scores are not AA's unpublished Elo calculation. Claude uses adaptive medium effort with a 49,152-token budget; GPT binary judging uses high effort with 16,384 tokens, and Gemini uses high effort. These settings and retry behavior are documented implementation choices.

Public dataset and prompts

dznvidia and others added 3 commits September 10, 2026 17:44
Fix Briefcase judging so each binary check receives its declared
artifacts and a consistently selected, capable judge.

- Route panel members through separate model adapters; retain model,
reward and execution-mode environment overrides.
- Preserve subtitle text and LaTeX source, label attached PDFs
accurately, and insert artifacts at the released prompt’s submission
marker. Shared SRT support can also change GDPval judge inputs for
subtitle submissions.
- Retry empty or malformed judgments without repeating valid votes. Log
each binary transport attempt with timing and outcome metadata, without
request content or credentials. Exhausted failures remain unscored and
require coverage reporting.
- Add the prepared-task schema and five genuine public-reference
examples for Gym’s data validation contract.

Claude currently uses adaptive thinking with **medium effort and a 48k
output budget**. Medium deliberately differs from AA’s published
maximum-effort setting; both choices remain under validation. GPT and
Gemini retain AA’s published high-reasoning settings. JSON formatting,
retry policy and local pairwise scoring are implementation choices, not
a reproduction of AA’s unpublished harness or Elo calculation.

Validation: 38 resource tests and pre-commit checks pass for the latest
change. Final live validation remains incomplete. Stored public examples
were generated under earlier judge settings, as documented in the
resource README.

[AA
methodology](https://artificialanalysis.ai/methodology/intelligence-benchmarking#aa-briefcase)
· [Released prompts and
rubric](https://huggingface.co/datasets/ArtificialAnalysis/AA-Briefcase-Lite/tree/main)

---------

Signed-off-by: Adam Rajfer <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Sep 16, 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.

@AdamRajfer AdamRajfer self-assigned this Sep 16, 2026
@AdamRajfer
AdamRajfer requested review from Kh4L and dznvidia September 16, 2026 00:38

@AdamRajfer AdamRajfer left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes on the judge settings and why Briefcase needs the changes to the shared agent and artifact reader.

name: aa_briefcase_lite_claude_judge_model
media_mode: native_pdf
create_params_overrides:
extra_body: {thinking: {type: adaptive}, output_config: {effort: medium}}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chose medium effort deliberately; it differs from AA's maximum-effort reference setup. Keeping it explicit makes that choice visible rather than relying on a provider default. We still need to verify its effect on judging quality and comparability before treating it as equivalent.

create_params_overrides:
extra_body: {thinking: {type: adaptive}, output_config: {effort: medium}}
temperature: null
max_tokens: 49152

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the configured output budget, not a measured minimum. We should verify that 49,152 tokens are necessary and sufficient for complete, valid judgments across the supported artifact types. The value alone does not establish equivalence with AA's setup.


if tavily_api_key or _os.environ.get("TAVILY_API_KEY"):
if not allow_web_tools:
tools = [tool for tool in tools if not isinstance(tool, WebToolProvider)]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Briefcase must run offline, so its task strategy disables web tools even when search credentials happen to be present. Previously the shared wrapper could install the web provider from the environment. The default stays enabled for other tasks, preserving their existing behavior.

"tool_response_as_user": True,
"skip_input_file_listing": is_gdpval,
"tool_response_as_user": tool_response_as_user,
"skip_input_file_listing": skip_input_file_listing or is_gdpval,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Briefcase needs tool results to remain tool messages and uses the released task prompt without an extra automatic file listing. These options let its task strategy select that behavior instead of changing the shared wrapper globally. GDPval retains its existing user-message setting and skips the listing through the existing is_gdpval condition.

else:
home_spec = self._home_dir
network_section = "--net --network none" if self._disable_network else ""
shell_command = f"env HOME={shlex.quote(self._home_dir)} bash" if self._isolated_home else "bash"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Briefcase writes deliverables under /home/user, so the shell and its child processes need HOME to agree with the mounted home directory. The bind alone does not reliably set HOME when the image's user entry points elsewhere. Setting it inside the isolated shell avoids Apptainer's HOME environment override warning; callers that do not opt into an isolated home retain the previous path.

"pptx": {"type": "DOC", "converter": _convert_to_pdf, "mime_type": "application/pdf"},
"xlsx": {"type": "DOC", "converter": _convert_to_pdf, "mime_type": "application/pdf"},
"txt": {"type": "TXT", "converter": _load_raw_text, "mime_type": None},
"srt": {"type": "TXT", "converter": _load_raw_text, "mime_type": None},

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Briefcase includes an SRT deliverable alongside the video. Without this entry, the shared reader does not pass the subtitle text through as a supported text artifact, leaving the judge without part of the submission. This belongs in the shared reader, so GDPval subtitle submissions also gain the same handling.

)
judgement = parse_judgement(response_text)
if judgement is not None:
break

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Briefcase opts into retrying an empty or malformed verdict for the same judge and A/B positions. The break preserves the first valid vote instead of sampling again after a usable result, and an exhausted invalid response still is not scored as a tie. The default remains zero formatting retries for existing callers; request_attempts separately avoids multiplying outer retries when the client already retries transport failures.

@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 Sep 16, 2026
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Sep 17, 2026
… LibreOffice

Office deliverables reach the judge as a PDF rendering. The judge stage held
only the requested files, so a render already sitting beside a deliverable
never got there and conversion ran regardless, failing at judge time on a host
without LibreOffice, after the rollouts were spent.

Stage an existing render when it is attributable to exactly one Office source
(<stem>.pdf, or the injective <name>.pdf sidecar when two Office files share a
stem), keeping the Office original as the deliverable, and refuse to start when
conversion is enabled and LibreOffice is unavailable.

Signed-off-by: Adam Rajfer <[email protected]>
… from the model

Office deliverables are graded through a PDF rendering, and two paths still sent
the judge something else.

With preconvert_office_to_pdf=false and no render beside an Office deliverable,
staging produced a filename-only stub and grading continued, so a model was scored
on a deliverable the judge never saw. Staging now raises instead.

With conversion on, a PDF found beside an Office file was carried into the stage
and replaced the conversion, so a PDF the model wrote itself could be graded in
place of its spreadsheet. Renders are carried only when we do not convert.

The startup guard moves into its own method so it can be covered by a test.

Signed-off-by: Adam Rajfer <[email protected]>
…ssion callers

The staging tests in test_app.py still called _stage_submission without the
carry_renders argument. The render cases move into test_office_render_staging.py,
where an absent or unattributable render now asserts the raise rather than a
silent skip, and the server fixture stubs model_post_init so construction does
not look for a dataset on disk.

Signed-off-by: Adam Rajfer <[email protected]>
…3693)

Add `pairwise_references`, one entry per opponent. A reference can point
at a local run's deliverables (`task_<id>/repeat_<n>`) instead of the
shipped submissions, and can list judges that must not score it, so a
judge never compares a submission against its own model family.
`pairwise_reference_ids` keeps working unchanged when
`pairwise_references` is empty.

A reference with no submission for a task, or whose exclusions leave no
judge, is recorded as skipped with no vote counts instead of failing the
whole comparison, so it cannot be mistaken for a tie. The pairwise
precondition now checks the resolved references rather than the legacy
list.

Signed-off-by: Adam Rajfer <[email protected]>

@dznvidia dznvidia left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested PR head f26df8d against gdpval-devel base 9d7c400

Validation results:

Snapshot preparation passed: job 7744094.
All 10 Office-render staging tests passed: job 7744324.
Trusted XLSX and PPTX PDF preparation passed: job 7745138.
Live four-task binary judge passed: job 7745205.
Result coverage was 4/4 rows and 55/55 checks.
Invalid judge responses were zero.
The previous Office failure no longer occurs. Existing trusted PDF renders are staged correctly. The server also fails early when runtime conversion is enabled without LibreOffice.

This resolves my Office staging and host-LibreOffice review concerns. The scores are local and are not AA leaderboard results.

One fresh policy-generation GPU smoke test on this updated head remains recommended because the PR also changes the Stirrup and Apptainer paths.

The updated PR passed snapshot validation, Office-render tests, trusted preconversion, abd the complete four-task live judge. Approving this PR.

@dznvidia
dznvidia merged commit e853f1b into gdpval-devel Oct 6, 2026
5 checks passed
@dznvidia
dznvidia deleted the aa-briefcase-lite-devel branch October 6, 2026 15:47
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 sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants