Skip to main content
Source Code: src/gaia/eval/release_scorecard.py (core generator) · src/gaia/eval/scorecard_gate.py (release gate)Distinct from src/gaia/eval/scorecard.py — that file is the per-run scenario PASS/FAIL aggregator used internally by gaia eval agent. This document describes the outward-facing release artifact.

Overview

Each published hub agent ships a release scorecard — a single SCORECARD.md file (updated in place per release, versioned via the publish snapshot, the same way README.md works) that records:
  • The eval recipe: dataset reference, methodology, configuration, and metric definitions.
  • The measured results: per-metric values, number of test cases actually run, and dataset size.
  • A single named aggregate score: a deterministic, recomputable percentage so a reviewer can verify the number without re-running the eval.
  • A Reproduction section: the exact commands to reproduce the result from scratch.
Scorecards are committed alongside the agent’s README and linked from it. A standalone release gate (scorecard_gate.py) blocks packaging when the scorecard is missing, when its aggregate score regresses below the prior version’s, or — when enforcement is on — when it is below an absolute bar or an anti-gaming floor.

Aggregate metric — GAIA flagship

The flagship’s scorecard is built from gaia eval agent --agent-type gaia runs over the committed 13-category scenario corpus (eval/scenarios/gaia_*, ~99 judged multi-turn scenarios: conversation/memory tiers through adversarial, RAG, files, data, web, the shell permission gate, skill lifecycle + all 12 skills, the honesty floor, tool selection, code index). The adapter is hub/agents/gaia/python/packaging/gen_scorecard.py; it reads the run’s scorecard.json (or merges the CI eval-out/<category>/scorecard.json collection from serial per-category runs) and never imports the eval runner.
  • Aggregate = judged_pass_rate (weight 1.0): passed ÷ judged, where judged = PASS + FAIL + BLOCKED_BY_ARCHITECTURE. Infra failures (timeout / budget / errored / skipped) are excluded from the rate — and fail the CI run’s integrity gate instead, so they can never quietly improve it.
  • Reported secondaries (weight 0): avg_score_normalized (the judge’s 0–10 rubric mean ÷ 10) and one <category>_pass_rate per category. aggregate.value stays round(100 × judged_pass_rate, 2), recomputable from the displayed components.
  • Environment stamps: gaia_commit, the agent model, ctx_size (#1892), the hardware class, and eval_model (the Claude driver/judge — recorded because it drives the scenarios, not just scores them).
Bars + the enforce switch live in tests/fixtures/gaia/quality_gate_thresholds.json (with a perf sibling). The quality manifest ships enforce: true with deliberately loose absolute floors (judged pass rate ≥ 0.60, avg score ≥ 5.0), so a breach fails the build; the perf sibling ships enforce: false until the first self-hosted-runner baseline calibrates it. Expect the quality bars to be retuned after that first Gemma run rather than assumed correct. CI: test_gaia_agent_eval.yml (dispatch only; the gaia_* categories run on release and RC tags in eval_flagship.yml), gaia_scorecard_refresh.yml (dispatch-only card refresh, described below), and, in release_agent_gaia.yml, the scorecard-gate release gate plus the gaia-eval subset, which reports only: publishing never waits on it. It compares against the flagship baseline (tests/fixtures/eval_baselines/gaia-flagship/) and files the agent’s one eval-failure issue only on a breached quality bar or a stable smoke-set scenario gone PASS→FAIL. A run that measured nothing files nothing and says why in its summary, and a later clean, complete run closes the issue.

File format

Scorecard files are Markdown with YAML front matter (.md). The front matter holds all machine-readable fields; the body is a human-readable summary with a worked recomputation and a Reproduction section.

Required fields

A scorecard missing any of these is invalid and will be rejected by the release gate:

Optional fields

These blocks are optional and additive — a scorecard is valid with or without them, and none of them ever affects aggregate.value. They add reviewer-facing detail about how the number was produced and where the misses are:
The flagship adapter fills environment and per_category in automatically. For a new agent, set ResultPayload.environment / ResultPayload.breakdown when your harness exposes the data, and omit them otherwise.

Two counts — defined distinctly

recipe.dataset.size and results.test_cases_run are intentionally separate fields:
  • recipe.dataset.size — total labeled examples available in the dataset (fixed for a given dataset version).
  • results.test_cases_run — the subset actually executed in this run (may be limited by --limit). Must be ≤ recipe.dataset.size.
They may be numerically equal (when the full dataset is run), but they represent different things.
Comparability depends on a consistent --limit. Future regression checks compare aggregate scores. If one run uses --limit 12 and the next uses --limit 100, the scores may differ for reasons unrelated to model quality. Record the exact limit in recipe.config and keep it consistent across versions.

Aggregate score formula

where each valueᵢ is a metric value in [0, 1] and each weightᵢ defaults to 1.0. The result is a percentage in [0, 100]. For a single metric with weight 1.0:
A reader can reproduce this value from aggregate.components alone — no eval-harness access needed. The aggregate.formula field in the front matter states the formula in human-readable form so it is self-documenting.

Storage convention

Each agent package ships a single SCORECARD.md file, updated in place per release — the same way README.md works. Per-version uniqueness comes from the publish snapshot (R2 stores the file at agents/<id>/<version>/SCORECARD.md; the npm package ships only the current version’s SCORECARD.md).
The doc-root is the location of the agent’s canonical README: The relative link ./SCORECARD.md resolves both in-repo and when the directory is published as an npm package. The npm files array includes SCORECARD.md (not a scorecards/ directory).

Versioning policy

Patch releases — carry forward

For a patch release (same major.minor, patch incremented), the prior version’s results are carried forward verbatim using carry_forward(). Pass the path to the agent’s current SCORECARD.md:
The resulting scorecard has inherited_from: "0.1.1" and identical results and aggregate fields. The aggregate score is unchanged, so the release gate’s equal-score case passes. carry_forward() reads the prior version from the agent.version field in the front matter — not from the filename.

Minor / major releases — re-run required

For a minor or major bump, carry_forward() raises ValueError with a “re-run” message. Run the eval fresh and generate a new scorecard:
This writes hub/agents/gaia/npm/SCORECARD.md in place. Pass the same --ctx-size and --model as the committed card, or the new card is not comparable to it.

Release gate

scorecard_gate.py is a standalone script that exits non-zero on failure:
--baseline-file and --baseline-ref are mutually exclusive. If the file doesn’t exist at the given ref, the gate treats it as first adoption (presence-only pass).

Gate logic

  1. Presence check: --scorecard path must exist and be a valid scorecard. → exit 1 if not.
    • --expected-version <V> (opt-in): exit 1 if the card’s agent.version is not V. release_agent_gaia.yml passes the release version whenever SCORECARD.md changed since the previous tag, so a freshly committed card must match the package being released; a card carried over unchanged only gets a “stale scorecard” ::warning::.
  2. Absolute bar + anti-gaming floor (opt-in, applies to every path including first adoption):
    • --min-aggregate <N>: exit 1 if aggregate.value < N.
    • --min-urgent-recall <r>: exit 1 if the card’s urgent_recall secondary is below r. Fails loud if the metric is absent, so pass it only for a card that records one.
    • Omit both for report mode (presence + regression only). release_agent_gaia.yml reads the bar from tests/fixtures/gaia/quality_gate_thresholds.json (min_judged_pass_rate, enforce) — data, not code.
  3. Baseline resolution:
    • --baseline-file: read the given file directly (no git access; suitable for unit tests).
    • --baseline-ref: resolve via git show <ref>:<scorecard-path>. If the ref does not resolve to a commit → exit 1 (an actionable error, not first adoption). If the file does not exist at that ref → first adoption, exit 0.
    • Neither specified: first adoption, exit 0 (presence-only pass).
  4. Regression check (variance-aware, #1894): a regression is flagged only when candidate < baseline − band, where the band is the wider of k·stdev (--regression-k, default 1; stdev is on the [0,1] scale, scaled ×100 to match aggregate.value) and an absolute floor (--regression-floor-pp, default 1.5). Single-run cards record a stdev of 0.0, so the floor is what gives them tolerance — without it the band would collapse to a strict < and trip on sub-noise wobble. Pass --regression-floor-pp 0 for the strict behaviour.
  5. Equal or above the threshold → exit 0.

Exit codes

--allow-regression

When a regression is intentional (e.g. a dataset correction or methodology change), use --allow-regression. The gate prints a GHA ::warning:: annotation naming both versions and scores, then exits 0:

Keeping the scorecard current (the update / reject loop)

The scorecard must move with the agent: when LLM-affecting code changes, the eval is re-run and the committed SCORECARD.md refreshed — upward. A regression is blocked. Two enforcement points work together:
  1. Reject-on-worse (always on, GitHub-hosted). The scorecard-gate job in release_agent_<id>.yml runs on every release. It only parses committed files (no eval), so it runs on a standard runner and fails the build if the committed scorecard regressed below the prior version, is missing, or was newly committed at a version other than the release. This is the hard gate.
  2. Run-and-refresh (self-hosted AMD, manual dispatch). The judged eval needs Lemonade on AMD hardware, so it cannot run on GitHub-hosted runners. gaia_scorecard_refresh.yml is workflow_dispatch-only and runs on the self-hosted pool:
    • all 13 gaia_* categories (the default) is the only run allowed to commit a refreshed card;
    • a subset of categories is an end-to-end smoke run that exercises every step and then never commits (a partial number is not a valid stand-in for the published figure).
    A full run then either commits the refreshed card (bar met and no regression beyond the noise band) or fails loudly. Before any eval spend, the run also fails fast if its basis (ctx_size, model) differs from the committed card’s — unless rebaseline=true (with a required rebaseline_reason) marks the basis change deliberate.
So the published number always traces to a full-corpus run, and the release gate is the backstop on hosted CI. Locally, gen_scorecard.py + scorecard_gate.py reproduce both steps (see the adding-eval-scorecard skill).
The refresh job needs contents: write and runs only on the repo’s own branches — a fork PR’s GITHUB_TOKEN is read-only and cannot auto-commit. For a fork PR, run the eval locally/on AMD hardware and commit the scorecard manually; the release gate still enforces no-regression.

Adding a scorecard for a new agent

Use the adding-eval-scorecard skill. In Claude Code, invoke it instead of following these steps by hand — it carries the exact commands, the harness→payload→generator flow, the headless-eval gotchas (keyring/PYTHONPATH/tool-timeout), and the verification evidence to capture. The steps below are the reference the skill automates.
  1. Write a packaging/gen_scorecard.py adapter (see hub/agents/gaia/python/packaging/gen_scorecard.py for a reference). The adapter should populate reproduction_command with the exact commands needed to reproduce the scorecard.
  2. Run the eval and call the adapter → commit the resulting SCORECARD.md to <doc-root>/SCORECARD.md.
  3. Link the scorecard from the README: ./SCORECARD.md.
  4. Add SCORECARD.md to the npm package.json files array (if published on npm); do not add a scorecards/ directory.
  5. Wire scorecard_gate into the release workflow (see release_agent_gaia.yml for the job topology). Use --scorecard <path>/SCORECARD.md and --baseline-ref <prev-tag> (best-effort).