RFC-034: Charts that show the evidence, and judges that say why¶
- Status: Accepted and built (0.8.0); where the build differs, As built says so. Owner, 2026-11-18, after comparing the harness with EvalBench (Google Cloud, shown at AGNTCon + MCPCon North America 2026): "do 1 and 2 now for 0.8", then "did we look enough into how much more we can visualize?", choosing every chart in §2.
- Authors: Marko Dragoljevic
- Related: RFC-032 (one model; the command line and the API as its surfaces), RFC-029 (studies), RFC-027 (baselines and rounds), RFC-030 (periods and faithfulness), ADR-0001 (the validated judge), ADR-0026 (contenders), RFC-035 (scenarios, 0.9.0)
Abstract¶
The harness computes more than it draws. The catalog draws five kinds of chart (runs per day, spend over time, words per item, quality against cost or speed with the frontier, a metric per arm as a strip). The Workbench draws none. Confidence intervals, rank stability, label agreement matrices, latency per item and study trials are computed and stored, and shown only as numbers or not at all. A judge's verdict is a number with no reason.
This RFC adds one chart operation (evh chart, GET /api/v1/charts/{kind}) that every surface draws from, eight
kinds of chart, and a reason inside every judge verdict.
Decisions (owner, 2026-11-18)¶
- The reason is inside the verdict, in the same call: the judge replies with its scores and a short
why. Not a second call. A judge whose prompt asks for a reason is a different judge (its message changes), so it is validated as such. - Every verdict carries its reason (the reason costs output tokens, not calls; measured on the first smoke before any paid run).
- The gain-against-cost chart goes on studies and rounds, with the significance rules of §3.
- Also in 0.8.0: the difference with its interval, study progress, rank stability, latency spread, judge against people, the per-item heat map, the charts in the Workbench, and trends over time.
1. One chart operation¶
A chart is a read operation (RFC-032), so it has every surface at once:
evh chart KIND [--goal G] [--round R] [--study S] [--dataset D] [--scorer S] [--model M] [--metric M] [--json] [--svg FILE]
GET /api/v1/charts/{kind}?goal=…&round=…
- Values:
{kind, title, caption, columns, rows, svg}.rowsis what is drawn (a row per point, line or cell), each with the numbers a reader needs to check it, undercolumns;svgis the drawing. - Command line: prints
rowsas a table and the caption;--svg FILEwrites the drawing;--jsongives the values. Nothing is only in the picture. - Catalog: the page calls the same function at build time and embeds the SVG, with the table under a
<details>. - Workbench: the screen asks the API and inserts the SVG. The drawing is made by
catalog_charts.pyfrom escaped text only, served same-origin under the Workbench's CSP. - A chart with too little to draw refuses with the reason (
not-enough), asrank-stabilitydoes now, and the surface shows that sentence instead of an empty frame.
Every drawing follows the existing rules of catalog_charts.py: one scale per axis, labels from the theme's
tokens, readable at 390 px (the Workbench's phone width), and no colour that carries meaning alone (a filled or
hollow mark, a line style or a word carries it too).
2. The charts¶
| kind | what it shows | from | where |
|---|---|---|---|
gain-cost |
each arm's or trial's difference in quality against its difference in cost per item, from the baseline | a round's evidence; a study's trials | round, study (catalog, Workbench) |
intervals |
each arm's difference from the leader, with its confidence interval, the non-inferiority margin and the verdict | the goal leaderboard's groups | goal, round |
study-progress |
a study's trials in order: kept, dropped or no effect, with the best-so-far line and the test-set confirmation | the study's log | study |
rank-stability |
how often two disjoint halves agree on the order, as items grow | rank-stability |
dataset, goal |
latency |
per-item latency per arm, with p50 and p95 marked; cost per item beside it | the runs' rows | goal, round |
agreement |
the confusion matrix of two label sets, or of a judge and people; the judge's position-bias agreement | label-set comparison; a judging summary's controls |
dataset, scorer |
items |
arms by items, coloured by score, items ordered by how much the arms disagree; each cell links to the item | the comparison's rows | round, goal |
trend |
the goal's baseline across its versions and the promoted run of each closed round; production's agreement per deployed period | baselines' history, closed rounds, periods and faithfulness records | goal, production |
gain-cost is the picture EvalBench draws for a skill's ablation ("free win", "worth paying for", "token tax"). A
study's trial is one change against the baseline by construction, so a study is an ablation; a round's arm against
the round's baseline (or the leader when there is none) is the same question asked of a whole arm.
3. What the gain-against-cost chart may claim¶
The quadrant names are claims, so they follow the tests the harness already makes:
- x: the difference in mean cost per item from the baseline, in dollars (tokens when no arm has a cost). Lower is left.
- y: the difference in the goal's measure from the baseline, oriented so up is better (a
lowermeasure is flipped and the axis says so), with its confidence interval as a whisker. - A filled mark only when the difference is significant at the level the round or study uses (its p and Holm adjustment where the round applies one). Otherwise the mark is hollow and the point is not separated: it sits in a quadrant by its estimate, but the quadrant's name is not claimed for it.
- Names: "better and cheaper", "better, costs more", "worse and cheaper", "worse, costs more", plus "no gain shown, costs more" for a hollow mark to the right of zero (EvalBench's token tax, without claiming the gain is zero). As built: a significant difference with no cost difference is "better (or worse) at the same cost", and one whose cost was not recorded on the items both share "better (or worse), its cost not compared": neither is cheaper.
- A study's trial that its rule dropped for a limit (RFC-029: a guard metric fell beyond its limit) is drawn with that reason in its tooltip and table row.
4. The difference with its interval¶
vs_leader holds the difference, its p and its verdict; the interval is computed by stats (exact_ci for paired
item deltas, cluster_ci where items are clustered) and not passed on. The goal leaderboard's vs_leader gains
ci: [low, high] at the same level as its test, so the number and the drawing agree. The chart draws zero, the
margin when the goal decides by non-inferiority (ADR-0026), and each arm's interval, with its verdict as a word.
5. Judges that say why¶
The reply. The harness appends one reminder to the judge's message when the scorer explains (the prompt file is unchanged):
grade:"why": ["…", "…"], one sentence per numbered output, in order, beside the score lists.pickandpairwise:"why": "…", one or two sentences.
The reminder asks for the reason after the scores in the same JSON object and for no quotation of the source or the outputs beyond a few words.
Parsing. parse_reply returns the verdict as before, plus why when it is present and well formed (a string,
or one string per output for grade). A reply whose scores parse and whose why does not keeps its scores; the
verdict records why_missing: true. A reason never decides whether the scores parsed.
Storing. The verdict file gains why. The rule that keeps a source's text out of git (no eight consecutive words
of the item or the outputs, judging.quotes_source) is applied when a verdict is written, where the source is at
hand, to the reply as now and to why on its own: a why that repeats the source is not committed
(why_withheld: "repeats the source", kept in the git-ignored local copy as an unparsed reply is now), and the scores
still are. validate's V12 checks every committed verdict without the source: its reply bare JSON or withheld, and
its reason in shape (a sentence, or one per graded output; never beside why_missing or why_withheld).
The scorer. A new field explain: true | false. A scorer without it gives no reasons, so every scorer made
before (the committed harness/data/scorers/*.yaml were validated and judged without reasons) keeps its identity,
its judging sets' ids and its byte-identical messages, with no migration. evh scorer-new writes explain: true
(the Workbench's form too, as a box ticked by default), and the tutorial's fake judge explains. A judged scorer that
wants reasons is a new scorer version (supersedes), as any change to a judging scorer is.
Validation. validation_problems also compares explain between the scorer and its validation runs (a run
measured with explain: false does not validate a scorer with explain: true). The SummEval validation adapter
(examples/summeval-judging/adapter.py) takes explain: true in a judge arm's params and ends its messages with the
same words, held equal by a test, so a judge with reasons can be validated. The judging set hashes explain when it
is on (as it hashes a declared mode), so a set made before keeps its id.
Where the reason is read.
- The command line:
evh judge-verdicts S [--item I] [--arm A]lists verdicts with their reasons (the scores per dimension, the reason, the judge, the pass). - The Workbench's judge screen: each judged item shows its verdicts and their reasons.
- The catalog's item page (the local inspector, not the public catalog, which shows no item text): the verdicts of that item beside the outputs they judge.
judge-scoreends by namingevh judge-verdicts <scorer>when its judges explain: the lowest scores first are the "what failed, and why" the talk asked for.
Cost. The reason adds output tokens to each call (and the request's few words to its input). The judge's dry
run (judge-score --dry-run) counts them: an estimate of 20 tokens per graded output and 40 for a pick or a pair, not
measured yet. The smoke rule applies: a three-item judging smoke, its replies and its tokens_out read before a paid
pass.
6. What changes for a project¶
- Judge scorers gain
explain. Existing ones are unchanged (no field, no reasons);scorer-newwritesexplain: true. evh chartandevh judge-verdictsare new reads. The goal leaderboard'svs_leadergainsci.- Catalog pages gain charts; nothing is removed.
7. Tests¶
- Each chart kind: its data on a project made by the test (echo arms, a study, label sets, a judging set on
provider: fake), the SVG well formed and free of unescaped text, the refusal when there is too little, and the command line's table equal to the API'srows. gain-cost: a significant and a non-significant arm on the same side of zero draw filled and hollow; the names follow §3; alowermeasure is flipped. Mutation: dropping the significance check must fail a test.- Judge reasons: the fake provider returns a
why; parsing with and without it, awhythat quotes the source withheld while the scores stay,explain: falsesends a byte-identical message to today's (checked against the committed message hash), validation refusing a mismatch ofexplain. - Browser: the Workbench's round, study and judge screens show their charts and reasons at 1280 and 390 px.
Alternatives set aside¶
- A second call for the reason. It keeps validated messages unchanged, but the reason would explain a verdict it did not produce, and it is a call per verdict. Set aside by the owner (decision 1).
- Drawing in the browser (a chart library in the Workbench). Two implementations of every chart, a new dependency, and the command line would have none. One Python drawing, served everywhere, is kept.
- Quadrant names without significance. What EvalBench's slide shows; it would call a lucky estimate a "free win". §3 keeps the names for what the tests support.
As built (0.8.0)¶
- Reasons: no migration. A scorer without
explaingives no reasons, so the committed scorers keep their judging sets' ids and their messages byte for byte;scorer-new(and the Workbench's form, a box ticked by default) writeexplain: true, and the tutorial's fake judge explains. The judging set hashesexplainonly when it is on, as it hashes a declaredmode; the judge's fingerprint is unchanged. The SummEval validation adapter asks for the reason in the words the package uses (a test holds them equal), so a judge with reasons can be validated. The dry run's estimate is 20 output tokens per graded output and 40 for a pick or a pair, not measured.judge-scorenamesevh judge-verdictsat its end instead of a list in the summary. - Intervals: the interval drawn is the paired test's 95% interval before Holm's correction (
stats.cluster_ci), the verdict after it; the caption says an interval clear of zero can still be not separated. The inspector's "Difference from the baseline" draws each arm's interval under its mean (it was in the table, not the chart); the goal page draws the same as a forest (catalog_charts.forest).forest.js(a project's baseline pages) is unchanged. - Latency: drawn as the existing strip with p50 and p95 marked (
catalog_charts.strip(marks=)), at the evidence charts' width; the inspector's "Spread per run" marks them for a latency measure. - Agreement: a dataset's label sets as heat maps above the confusion tables the dataset page already folded; a pair with a free-text set has no matrix and is counted, not drawn. Judge against people is the validation the judge screen shows; the chart draws the judge's own controls (reordered, re-asked, length, each other).
- The Workbench already drew one chart, each arm's mean against its cost on the eval screen;
gain-costreplaced it. A read answered after its screen was left no longer redraws the screen opened since (a slow chart redrew Settings under a person's typing). - The answer:
columnsandrows(the table the command line prints), not onedatafield;evh chartalso takes--model(trendof a code record) and--metric(rank-stability's measure). - After the release's review (2026-11-19):
gain-cost: an arm sharing no item with the baseline is a row "not compared", not drawn; a study is drawn on its own measure in that measure's direction, asstudy-progressis; alowermeasure's axis says it is flipped; with no cost the x axis is tokens per item; a trial its rule dropped carries its reason in its tooltip and row.intervals: the margin is drawn from the arm contenders are tested against (the promoted baseline underaxes.quality.reference: baseline), and the leader, the zero, is hollow.trend: each point as it was at the time (a version's record, a run's own score; a re-score only for a measure added after the run, said in its row), every version and closed round on one time line named by itself.latency: p50 and p95 by the leaderboard's rule (axes.percentile), in the chart and the inspector alike.- V12 checks a reason's shape; the eight-word rule stays where the source is, when a verdict is written.
- Not built: rank stability is not on the catalog's pages (it reads the project's runs, not a deployment's copy, and
costs seconds per dataset), only in the Workbench's dataset screen and
evh chart; production's label agreement over time is not drawn (the trend draws a code record's faithfulness per deployed period).