ADR-0013: A scoreboard and scoped grades¶
Status¶
Superseded by ADR-0026 (2026-11-25): the
scoreboard is removed, with the grading method, the signed results and their store, and the
hidden sets it graded on. Leaderboards stay (mendari leaderboard, mendari.leaderboard/1,
ranked by mendari.rank/1).
Accepted (2026-11-06, LP-17m). Proposed 2026-10-17, and built in steps (LP-17, tasks/todo.md,
planned in notes/lp17-plan.md). What landed, in the order it was built:
- 17a (#257), the grading method 1.0 (mendari.grading/1.0, a draft
not in effect) and its pinned constants (mendari.evals.method: the version, the SHA-256 of
the document's bytes, the effective date left empty for the owner, and the parameters);
- 17b (#258), the statistics the scoreboard adds (mendari.evals.stats: the stratified
bootstrap, the Korn-Graubard weighted proportion and Brier's reliability term);
- 17c (#259), arms by provider class (mendari.arms/1, mendari scoreboard arms);
- 17d (#261), scoreboard entries and run records (mendari.scoreboard/1, mendari.run/1), the
price table (mendari.prices/1) and the disclosures file (mendari.disclosures/1), pure;
- 17e (#263), signed results and the public verifier (mendari.evals.signing,
mendari scoreboard sign and verify), off without the key;
- 17f (#267, merged with 17j in #268), the results store under scoreboard/, its check in a
required CI job, and the early scoreboard's page (stage 3);
- 17j (#268), grades as attestations and band ranking with its Holm family
(mendari.evals.grade, mendari.evals.bands), pure;
- 17g (#279, the LP-17 lane), the public template sets relabelled "public set: regression check,
not a ranking" on the Decision Cards, the dashboard and web/, with no Rank column;
- 17h (#279), remote arms on public sets: replicates, the flip rate, the canary, the
declarations (mendari.declared/1) and the disclosures, run by hand and refused in CI; a
CQL configuration measured on Mendari's own CQL engine;
- 17k (#279), the hidden-set scoreboard through the existing grading route
(mendari.hidden_scoreboard/1), stored as answered;
- 17m (#279), the close-out: the launch gates' probes (a9-scoreboard, grading-method),
the threat model's residual risks, this status, the owner's runbook
(Running the scoreboard) and the end-to-end
test.
Two steps stay open. 17i is the owner's run: the remote arms' replicates on the public test
sets, after the price table, the disclosures and the declarations are written. 17l, the
developer flow (banded answers, a budget, a sealed confirmation split), waits on LP-19 and LP-20
(on 2026-11-07 the owner decided the rotation numbers and the submission budget, decision 4, and
confirmed that 17l waits for LP-19 and LP-20, decision 10). Gate G3-4's
a9-scoreboard names both as pending. The method stays a draft until the owner sets its
effective date (gate grading-method). The defaults below hold unless the owner chooses
otherwise: the owner's decisions still open are listed in tasks/todo.md.
Terminology updated 2026-11-23 and 2026-11-25: what Mendari governs is called an agent here, as everywhere since ADR-0026.
Context¶
Mendari compares an agent's configurations today with leaderboards (mendari.leaderboard/1), ranked
by one function (mendari.rank/1, evals/ranking.py): critical cases automated first, then the
worst critical label's lower bound, false automation, accuracy and cost, on raw 95% bounds, with a
strict name tiebreak.
- Every set it ranks on is public: in the repository and in the wheel. An agent can be tuned to it,
and a set built from templates cannot be told from a hand-written one (no record carries a
templateorsourceattribute). - Raw counts overstate the evidence. A
testset built from templates can hold far fewer distinct positives than positives, and far fewer distinct inputs than cases. - It has no arms by provider class, no simultaneous bound across critical labels, no Brier, no bands, no shared ranks and no rank intervals.
- Its 166 shipped rows are mostly on older agent digests, with n of 100 or less and no ledgers.
- Hidden sets (ADR-0011) are graded by the organization's grading key through
POST /api/evalsets/{set}/runs, with local providers only, answering aggregates only (mendari.hidden_result/1). Nothing there ranks or grades.
The vision audit's A9 and B30 ask for a scoreboard and grading service that cannot be gamed by selection or by repeated submission, and for the method to be published, versioned, before any grade is given.
Decision¶
- The method is written first, and pinned.
docs/grading/method-1.0.mdholds every rule and number before the code that applies them. Every entry, grade and ranking names the method's version and the SHA-256 of its bytes. Until the owner sets the effective date (at least 30 days after the document is published at a public URL, gategrading-method), it is a draft, and everything made under it says so. Once in effect it does not change: a change is a new version, with 30 days' notice. The document is not in the wheel, so the hash is pinned in code and a test checks it against the repository's file. - A separate scoreboard format, with
mendari.rank/1kept as data. The scoreboard's entries are a new format (mendari.scoreboard/1, LP-17d), computed from five committed inputs: the ledger, the dataset, a run record, a dated price table and the method.mendari.rank/1,mendari.eval/1,mendari.ledger/1,mendari.compare/1and every committed benchmark and ledger stay byte for byte as they are. Changingrank/1would make every published Decision Card stale. - Grades and ranks on frozen hidden sets only. A grade is a set of attestations, each met, not met or insufficient evidence, never a letter or a composite score. Ranking is by bands fixed in the method, with a stated Holm family and rank intervals. Both are given only on a frozen hidden set, over configurations declared before grading. Every public set is "public set: regression check, not a ranking": unranked and ungraded, with every figure's interval and the insufficient-evidence banner (the early scoreboard, stage 3).
- Evidence on distinct positives, for each critical label. A critical label has enough
evidence when its distinct positives (
norm/v1) reach the method'sn_min(floor, L): never fewer than 100, and more where the simultaneous bound needs more. The grade's bound is Clopper-Pearson at1 - 0.05/L, two-sided, over distinct groups. Figures stay as raw k of n at 95%, with the distinct count beside them. - Local providers only on hidden sets, until owner decision 2. The grading route refuses a remote variant before any case is read (LP-11l). A remote arm on a hidden set reads "not graded here". With one local arm per agent, ranking is built but off until the owner decides otherwise. A remote configuration is measured on public sets only, with 3 to 5 replicates, outside CI: the remote arms by the owner, and a CQL configuration (deterministic, but calling Mendari's own CQL engine) by a build session (LP-17h).
- The declared-configuration route to selection. For Mendari's own grading, one
configuration per arm is declared and committed (
scoreboard/declared/) before grading, and each result cites the declaration's SHA-256. Nothing is selected, so the whole set is reported. The salted split into a selection part and a ranking part comes with the developer flow (LP-17l), computed in the server's process from the set's freeze salt, never from the index key or a case hash, with its ranking part scored once. - An offline signing key, domain-separated. Results are signed with a Mendari grading key
(
MENDARI_GRADING_SIGNING_KEY, Ed25519) that differs from every other key Mendari uses. The owner holds it offline: it is never a server or CI setting. The signature coversmendari-grading-result-v1, a zero byte, and the result's canonical JSON without its signature, so no checkpoint statement, archive or yank signature verifies as a result. A result signed by a publisher's key is refused. The key does not sign freeze commitments: a signed hidden-set result carries the commitment. Anyone can verify with public keys only. - The repository is the store. Results live under
scoreboard/at the repository root, outside the wheel, the sdist and the site, append-only, each named by the SHA-256 of its body, each able to name the result it supersedes. A check in a required CI job recomputes every public result and refuses any change but a valid signature added to an unsigned result. The site's scoreboard page is generated from the store.
Defaults (the owner may choose otherwise)¶
- (17a) Every number in the method is the owner's to confirm (owner decision 5): a recall floor of 0.95 on the simultaneous lower bound, a false-automation ceiling of 0.02 on the 95% upper bound, no critical case automated, the bands, 45 days to stale, 3 to 5 replicates, a canary of 30 and a split of 0.5.
- (17a) Bounds at
1 - 0.05/Lare two-sided, as written: conservative (owner decision 6). - (17a) Evidence is decided on distinct positives under
norm/v1, a group detected only when every positive case in it is (owner decision 3). - (17a) A critical case automated is "not met" whatever the evidence; every other attestation is "insufficient evidence" when even a perfect result could not meet it.
- (17d) The ledger's format does not change: distinct groups, weights, per-type tokens and latency come from the dataset and the run record.
- (17d, 17h) A local configuration's disclosure reads "no model provider". An entry of a remote configuration, CQL's included, reads "not published: disclosure pending" until each remote provider type it calls has a statement.
- (17d, 17f) No paired tests on public boards under method 1.0: each entry stands alone with its intervals.
- (17j) The Holm tests set the rank intervals and never reorder the ranks; cost is the band tuple's last element. Detection is compared on distinct positive groups, as the grade's bound is computed.
Consequences¶
- The method is readable, and fixed, before any grade exists. Any edit to it while a draft re-pins its hash and makes earlier entries stale.
- Nothing published today changes until LP-17g relabels the public template sets on the card, the
dashboard and
web/, a stated display change. - On the public sets of the time, almost every table carried the insufficient-evidence banner:
only one
testset had 100 distinct positives on every critical label. - A signed hidden-set result is the owner's attestation: no one else can recompute it, since no ledger of a hidden set is kept.
- The threat model keeps three residual risks of this design: that attestation; raw intervals on sets built from templates, which look narrower than they are; and the key holder, who could sign an altered result.
Alternatives considered¶
- Change
mendari.rank/1into the band ranking. Rejected: every published card would become stale, and a public set would still be ranked. - Rank public template sets. Rejected by the build prompt: they are in the repository, so anything can be tuned to them.
- Split every hidden set for declared configurations. Rejected: with nothing selected, halving the set halves the evidence for nothing.
- One-sided bounds at
1 - 0.05/L. Smaller minimums; left to the owner (owner decision 6). - A signing key on the server, and a results table. Rejected: a key a server holds can sign whatever the server is made to compute. Signing is offline, and the repository is the one store.
- A store under each agent's own
evals/folder. Rejected: that directory is outside the digest but inside the wheel and every archive, so a publisher's agent could carry a forged scoreboard file, and model ids would ship. - Read the method from the installed package. The documentation is not in the wheel or the sdist, so the hash is pinned in code and checked against the repository's file by a test.