Exercise 04: Upgrade one row to taxonomy-complete
What this exercise teaches
- “Minimal valid” and “taxonomy-complete” are different bars — the second one is what makes a row debuggable by someone else.
- A complete row answers five questions at once: what kind of check, how bad, which dataset/rubric governs it, what the evidence was, and why it passed or failed.
- Adding these fields directly removes specific lint warnings for that row
(
missing-kind,missing-severity,missing-category).
Question this answers
What is the minimum set of fields that turns a bare pass/fail row into something a teammate can debug without asking you questions?
Goal
- Take one minimal row and make it taxonomy-complete.
- Verify lint warnings decrease for that row.
Prerequisite
- Complete setup in
docs/teach-curriculum.mdsection “Exercise rules”. - Finish Exercise 02; this exercise edits the artifact it created.
Plain-English theory
- “Minimal valid” means the row can load.
- “Taxonomy-complete” means the row is useful for debugging, ownership, and trends.
- A complete row answers: what failed, how bad, why, and under which dataset/rubric.
Row fields to add
- Classification
kind: what type of eval row this isseverity: impact levelcategory: machine-friendly failure/success label
- Governance IDs
datasetId: dataset version identityscenarioId: scenario identity inside the datasetrubricId: scoring/rubric identity
- Evidence (deterministic row)
input,output,expected,reason
Steps
- Update the first row in
.evals_output/run-minimal.json.
python3 - <<'PY'
import json
from pathlib import Path
p = Path('.evals_output/run-minimal.json')
doc = json.loads(p.read_text())
doc['rows'][0].update({
'kind': 'deterministic',
'severity': 'none',
'category': 'success',
'datasetId': 'starter-dataset-v1',
'scenarioId': 'case-001',
'rubricId': 'starter-rubric-v1',
'input': 'What is 2+2?',
'output': '4',
'expected': '4',
'reason': 'Exact-match deterministic check passed'
})
p.write_text(json.dumps(doc, indent=2) + '\n')
PY
- Run lint.
npx eval-dashboards lint --input=.evals_output
- Inspect that row.
python3 - <<'PY'
import json
from pathlib import Path
row = json.loads(Path('.evals_output/run-minimal.json').read_text())['rows'][0]
for k in ['id','suite','passed','kind','severity','category','datasetId','scenarioId','rubricId','input','output','expected','reason']:
print(f"{k}: {row.get(k)}")
PY
Example result (verified against a real run)
- Row
case-001now has classification + governance + evidence fields. - Lint passes with no issues for this artifact (
Eval taxonomy lint passed with no issues.), because the three warnings from Exercise 02 (missing-kind,missing-severity,missing-category) are exactly the fields this exercise adds.
Definition of done
- You can explain each added field in one sentence.
- Another beginner can read the row and understand what happened without extra context.
Common mistakes
- Using unstable IDs (they should stay stable across runs).
- Putting big vendor payloads in top-level fields (use
metadatafor vendor-specific extras). - Forgetting
reason(human-readable failure context).