Exercise 02: Build a minimal eval artifact
What this exercise teaches
eval-report/v1needs onlyschemaVersion,run,suites, androwsto load — “minimal valid” is a much lower bar than “useful.”lintnever blocks a minimal artifact on missing taxonomy fields; it warns instead, so you can grow the artifact incrementally.- The artifact is a plain JSON file you can hand-author — no runner or SDK is required to produce a valid one.
Question this answers
Can I produce one file that the CLI accepts as a valid eval run, with nothing else installed?
Goal
- Create one valid
eval-report/v1JSON file. - Validate it with
eval-dashboards lint.
Prerequisite
- Complete setup in
docs/teach-curriculum.mdsection “Exercise rules”. - Finish Exercise 01 (foundations).
Why this matters
- The artifact is the contract.
- If the artifact is valid, every report/gate command can work.
Steps
- Create a minimal artifact.
mkdir -p .evals_output
cat > .evals_output/run-minimal.json <<'EOF'
{
"schemaVersion": "eval-report/v1",
"run": { "id": "local-minimal-001", "generatedAt": "2026-09-13T00:00:00.000Z" },
"suites": [{ "id": "quality", "name": "Quality", "total": 1, "passed": 1, "failed": 0 }],
"rows": [{ "id": "case-001", "suite": "quality", "passed": true }]
}
EOF
- Validate it.
npx eval-dashboards lint --input=.evals_output
Example result
lintexits0.- You may see taxonomy warnings at this stage, for example:
Eval taxonomy lint passed with warnings (3 warning(s), 0 error(s)):
WARNING [missing-kind] ...
WARNING [missing-severity] ...
WARNING [missing-category] ...
- No schema-breaking errors.
Definition of done
- File exists at
.evals_output/run-minimal.json. eval-dashboards lintsucceeds.
Common mistakes
- Treating the taxonomy warnings as errors and trying to “fix” them here — they are expected at this stage; Exercise 04 adds the fields that remove them.
- Forgetting
mkdir -p .evals_outputfirst, so the heredoc write fails silently into the wrong directory. - Running this outside a scratch directory, so
run-minimal.jsonlands in a real project’s working tree instead of/tmp/....