eval-dashboards docs

Type to search.

    v1 pages

    Exercise 04: Upgrade one row to taxonomy-complete

    What this exercise teaches

    1. “Minimal valid” and “taxonomy-complete” are different bars — the second one is what makes a row debuggable by someone else.
    2. 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.
    3. 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.md section “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

    1. Classification
    • kind: what type of eval row this is
    • severity: impact level
    • category: machine-friendly failure/success label
    1. Governance IDs
    • datasetId: dataset version identity
    • scenarioId: scenario identity inside the dataset
    • rubricId: scoring/rubric identity
    1. Evidence (deterministic row)
    • input, output, expected, reason

    Steps

    1. 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
    1. Run lint.
    npx eval-dashboards lint --input=.evals_output
    1. 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-001 now 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 metadata for vendor-specific extras).
    • Forgetting reason (human-readable failure context).