How to build a graphic summary of the grades
This guide explains how to turn the graded summary into a visual. It covers what data to use, what the graphic must show, and what it must not imply. Styling, framework and final rendering are left to you. A static image, a web page, a slide or a notebook can all meet this spec.
The reference rendering is the "Runtime Grade Matrix" page made for this study. It is one possible implementation, not a template you must copy.
1. Produce the data
All grades, criteria and evidence links come out as one JSON file:
python3 -I study/export_grades_json.py \
study/grades study/grades_overrides.tsv \
agent-runtime-comparison.md study/RUBRIC.md \
study/grades.json
The script fails if any cited reference has no ledger entry. A ready-made study/grades.json
is included.
Schema (agent-runtime-grades/1)
{
"schema": "agent-runtime-grades/1",
"runtimes": ["codex", "goose", ...], // fixed row order (see §3)
"groups": [{"name": "Programmable capabilities",
"columns": ["Capability interface", ...]}, ...], // 6 groups × 3 columns
"levels": {"min": 0, "max": 4, "evidence_cap": 2},
"categorical_classes": {"E": "embedded", "O": "on demand",
"R": "resident service", "X": "external server required"},
"cells": [{
"runtime": "codex",
"group": "Execution controls",
"column": "Budget enforcement",
"kind": "ordinal", // or "categorical" (Service dependencies only)
"default": "1", // level in the default deployment; "0"-"4" or "n/a"
"best": "4", // level in the best supported configuration
"best_config": "opt: rollout_budget (under development)", // null when best == default
"confidence": "s", // "s" source-verified | "d" documentation/tests (level ≤ 2)
"rationale": "…", // ≤ 25 words, names the criterion met or unmet
"refs": ["X12", "X14", "X15"],
"grader_a": {"default": "1", "best": "4"},
"grader_b": {"default": "1", "best": "4"},
"adjudication": null // or the basis, e.g. "disagreement; R4"
}, ...], // 180 cells = 10 runtimes × 18 columns
"criteria": {"Budget enforcement": {"0": "…", "1": "…", ..., "4": "…"},
"Service dependencies": {"E": "…", "O": "…", "R": "…", "X": "…"}, ...},
"ledger": {"X12": {"repo": "codex", "url": "https://github.com/…#L…",
"what": "…", "evidence": "S"}, ...}
}
For categorical cells, default holds a class string such as "E (+R opt: goose serve)". The
first letter or letters before ( are the default class, and the bracket names the optional
footprint. best repeats the same string, so ignore it.
2. Required elements
A graphic summary of these grades must include all of the following. If a format can't hold an element, for example a slide with no drill-down, put that element in an accompanying note or link.
| # | Element | Why |
|---|---|---|
| 1 | Matrix of 10 runtimes × 18 columns, grouped visually into the six groups | The unit of the grade is one runtime in one column. Nothing coarser exists |
| 2 | Default level as the primary value in every ordinal cell | The default deployment is what an embedder gets without configuration |
| 3 | Best supported level, either as a second view or toggle, or as a secondary mark in the cell (e.g. "1 ↑4") | Many runtimes differ sharply between default and configured. Showing only one of the two misleads |
| 4 | Name of the configuration behind any best level, at least on drill-down or in a note | A higher level with no named setting can't be checked |
| 5 | Confidence marker for "d" cells, distinct from colour (pattern, outline or symbol) |
These levels rest on documentation and are capped at 2 |
| 6 | Service dependencies as categories (E / O / R / X), visually separate from the ordinal scale | It is a footprint, not a level. Putting it on the 0–4 scale implies a ranking that doesn't exist |
| 7 | Legend for levels, confidence marker, best-level marker and footprint classes | |
| 8 | Non-aggregation notice next to the graphic (wording below) | Prevents the most likely misreading |
| 9 | Traceability: from any cell, a reader can reach its rationale, the rubric criterion, and the cited code links | Each level is a claim about source code. Without the path back, it is an opinion |
| 10 | Provenance line: study date, pinned revisions (or a link to the report's reproducibility table), rubric version including errata | Levels change with revisions and rubric wording |
Minimum notice text (adapt the wording, keep the meaning):
Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.
Also carry over any cell-specific caveat that the report flags as an artifact of the rubric. In
this study there is one: codex Embedding interfaces is level 2 only because its app-server is
labelled [experimental].
3. Encoding rules
Rows and columns
- Keep the row order in
runtimes, which is the report order. Do not sort rows by level, by column, or by any computed value. A sorted chart reads as a ranking. - Keep the column order and grouping in
groups. Do not reorder columns to make patterns look stronger. - Show all 18 columns. If space forces a split, split by whole groups, for example three groups per panel, and label each panel.
Ordinal levels (0–4)
- Use a single-hue sequential ramp, or a lightness ramp, with five clearly separable steps. Do not use a diverging palette: there is no neutral midpoint. Do not use red/green semantics: level 0 is not an error and level 4 is not success.
- Print the level digit in every cell, so the graphic works in greyscale and for colour-blind readers. Check digit contrast at every step.
n/agets a neutral fill distinct from level 0, with "n/a" printed in the cell.
Default vs best
- Choose one approach and use it everywhere:
- a toggle or two side-by-side panels, one for default and one for best; or
- the default as the fill colour, plus a small secondary mark for the best level when it is higher (e.g. "↑4" in a corner).
- Never fill a cell with the best level without saying so on the same view.
Confidence
- Mark
"d"cells with a pattern (hatching) or a symbol, never with colour alone.
Categorical footprint
- Use a separate, non-sequential treatment: a neutral fill with the class letter, plus a footnote mark for an optional footprint.
Things not to do
| Don't | Because |
|---|---|
| Add row or column totals, averages or "overall" scores | Columns measure unrelated things. Their sum has no meaning, and the study forbids it |
| Use radar or spider charts per runtime | The enclosed area reads as an overall score, and axis order changes that area |
| Use bar charts of level counts per runtime ("how many 4s") | That is an aggregate under another name |
| Sort runtimes, highlight a "winner", or use medal or traffic-light icons | These imply rankings the data doesn't support |
| Interpolate between levels or show fractions such as 2.5 | Levels are ordinal criteria, not measurements |
| Drop the confidence marker or the best level to simplify | That removes information the grade depends on |
4. Drill-down content per cell
When a reader selects a cell (or on a detail page, a tooltip or a footnote), show:
- Runtime · Column, with the group name.
- Default level and best level, with
best_config(or "same as default"). - Rationale (
rationale). - Confidence, written out in words.
- Rubric criteria for the column: all levels from
criteria[column], with the default level highlighted and the best level highlighted differently. - Cited evidence: for each ref,
ledger[ref].urlas a link, withwhatandevidence("S", "D", "T" or a mixed label). - (Optional) grader A and grader B marks and the
adjudicationbasis. This shows the reader where the graders disagreed.
For static outputs such as print or PDF, put this content in an appendix keyed by cell coordinates (e.g. "codex · Budget enforcement"), and print the coordinates or a short code in each cell.
5. Implementation sketches (renderer-neutral)
These sketches are starting points that show the data mapping. They are not finished designs.
Pseudocode, for any renderer
data = load("study/grades.json")
cols = flatten(group.columns for group in data.groups)
for each runtime r in data.runtimes: # fixed order
for each column c in cols:
cell = find(data.cells, runtime=r, column=c)
if cell.kind == "categorical":
draw neutral box, text = default_class(cell.default)
else:
v = cell.default (or cell.best in "best" view)
draw box filled ramp[v], text = v
if view == "default" and cell.best != cell.default: draw corner mark "↑" + cell.best
if cell.confidence == "d": overlay hatch pattern
attach drill-down(cell) # §4
draw group headers spanning their 3 columns
draw legend + non-aggregation notice + provenance # §2
Vega-Lite, static heatmap of default levels (ordinal columns only)
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "grades.json", "format": {"type": "json", "property": "cells"}},
"transform": [{"filter": "datum.kind === 'ordinal'"}],
"facet": {"column": {"field": "group", "sort": null, "title": null}},
"spec": {
"layer": [
{"mark": "rect",
"encoding": {
"x": {"field": "column", "type": "nominal", "sort": null, "title": null},
"y": {"field": "runtime", "type": "nominal", "sort": null, "title": null},
"color": {"field": "default", "type": "ordinal",
"scale": {"domain": ["0","1","2","3","4"], "scheme": "blues"},
"title": "Default level"}}},
{"mark": {"type": "text"},
"encoding": {
"x": {"field": "column", "type": "nominal", "sort": null},
"y": {"field": "runtime", "type": "nominal", "sort": null},
"text": {"field": "default"}}}
]
},
"resolve": {"scale": {"x": "independent"}}
}
"sort": null keeps the file's order. Add the categorical column, the best-level marks and the
hatching yourself, then attach the notice and legend before publishing.
Python / matplotlib outline
import json, numpy as np, matplotlib.pyplot as plt
d = json.load(open("study/grades.json"))
cols = [c for g in d["groups"] for c in g["columns"]]
idx = {(c["runtime"], c["column"]): c for c in d["cells"]}
fig, ax = plt.subplots(figsize=(18, 6))
for i, r in enumerate(d["runtimes"]):
for j, col in enumerate(cols):
c = idx[(r, col)]
if c["kind"] == "categorical":
ax.add_patch(plt.Rectangle((j, i), 1, 1, color="0.9"))
ax.text(j + .5, i + .5, c["default"].split(" (")[0], ha="center", va="center")
continue
v = int(c["default"]) if c["default"].isdigit() else None
ax.add_patch(plt.Rectangle((j, i), 1, 1, color=plt.cm.Blues(.15 + .2 * v) if v is not None else "0.95",
hatch="///" if c["confidence"] == "d" else None))
ax.text(j + .5, i + .5, c["default"] + ("↑" + c["best"] if c["best"] != c["default"] else ""),
ha="center", va="center")
ax.set_xlim(0, len(cols)); ax.set_ylim(len(d["runtimes"]), 0)
ax.set_xticks(np.arange(len(cols)) + .5, cols, rotation=60, ha="right")
ax.set_yticks(np.arange(len(d["runtimes"])) + .5, d["runtimes"])
# add group separators, legend, non-aggregation notice and provenance (see §2)
6. Checklist before publishing a graphic
- All 180 cells shown, rows in report order, columns grouped as in
groups. - The default level is visible in every ordinal cell, and the best level is visible or reachable.
-
"d"cells are marked without relying on colour. - Service dependencies are shown as classes, not on the level scale.
- Legend, non-aggregation notice and provenance (date, revisions, rubric with errata) are present.
- Each cell's rationale, criteria and evidence links are reachable.
- No totals, averages, rankings, radar charts, sorted rows or winner highlighting.
- The codex embedding-interfaces caveat (and any future rubric-artifact caveat) is carried over.
- Readable in greyscale, and in both light and dark themes if shown on screen.
- If the data was regenerated, the file was rebuilt with
export_grades_json.pyafter the last change to the grades or overrides.