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 singleSCORECARD.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.
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 fromgaia 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_rateper category.aggregate.valuestaysround(100 × judged_pass_rate, 2), recomputable from the displayed components. - Environment stamps:
gaia_commit, the agentmodel,ctx_size(#1892), the hardware class, andeval_model(the Claude driver/judge — recorded because it drives the scenarios, not just scores them).
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 affectsaggregate.value. They add reviewer-facing detail about how the number was produced and where the misses are:
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.
Aggregate score formula
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:
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 singleSCORECARD.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).
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 (samemajor.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:
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:
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
- Presence check:
--scorecardpath must exist and be a valid scorecard. → exit 1 if not.--expected-version <V>(opt-in): exit 1 if the card’sagent.versionis notV.release_agent_gaia.ymlpasses the release version wheneverSCORECARD.mdchanged 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::.
- Absolute bar + anti-gaming floor (opt-in, applies to every path including first adoption):
--min-aggregate <N>: exit 1 ifaggregate.value < N.--min-urgent-recall <r>: exit 1 if the card’surgent_recallsecondary is belowr. 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.ymlreads the bar fromtests/fixtures/gaia/quality_gate_thresholds.json(min_judged_pass_rate,enforce) — data, not code.
- Baseline resolution:
--baseline-file: read the given file directly (no git access; suitable for unit tests).--baseline-ref: resolve viagit 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).
- Regression check (variance-aware, #1894): a regression is flagged only when
candidate < baseline − band, where the band is the wider ofk·stdev(--regression-k, default 1; stdev is on the [0,1] scale, scaled ×100 to matchaggregate.value) and an absolute floor (--regression-floor-pp, default 1.5). Single-run cards record a stdev of0.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 0for the strict behaviour. - 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 committedSCORECARD.md refreshed — upward. A regression is blocked.
Two enforcement points work together:
-
Reject-on-worse (always on, GitHub-hosted). The
scorecard-gatejob inrelease_agent_<id>.ymlruns 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. -
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.ymlisworkflow_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).
ctx_size,model) differs from the committed card’s — unlessrebaseline=true(with a requiredrebaseline_reason) marks the basis change deliberate. - all 13
gen_scorecard.py + scorecard_gate.py reproduce both steps (see the adding-eval-scorecard skill).
Adding a scorecard for a new agent
- Write a
packaging/gen_scorecard.pyadapter (seehub/agents/gaia/python/packaging/gen_scorecard.pyfor a reference). The adapter should populatereproduction_commandwith the exact commands needed to reproduce the scorecard. - Run the eval and call the adapter → commit the resulting
SCORECARD.mdto<doc-root>/SCORECARD.md. - Link the scorecard from the README:
./SCORECARD.md. - Add
SCORECARD.mdto the npmpackage.jsonfilesarray (if published on npm); do not add ascorecards/directory. - Wire
scorecard_gateinto the release workflow (seerelease_agent_gaia.ymlfor the job topology). Use--scorecard <path>/SCORECARD.mdand--baseline-ref <prev-tag>(best-effort).