Skip to content

Evals Primer

A practical field guide to knowing whether an AI system is good enough—and keeping it that way in production.

One system, four parts

This primer will use one running example: a customer-support agent that begins with a small refund workflow and gradually becomes more capable. Its evaluation system grows beside it. Every important idea should eventually point to a case, trace, grader, experiment, release rule, or production-learning artifact that we can inspect.

The reading order and building order are intentionally different. Readers meet the ideas before the implementation details. We build a thin working slice early and distinguish recorded executions, illustrative exercises, and outstanding evidence throughout the chapters.

If you are arriving with a decision to make, use three questions:

The four-part reading order remains below. The complete practice index links all 105 numbered katas by topic; the delivery map distinguishes implemented material from remaining work.

The shared learning loop is:

concept → CX requirement → executable artifact → observed result or declared evidence gap → source comparison → revised design

Part I · Evaluation foundations

A learning route with evidence checkpoints

Finish the route with Capstone: defend the release: submit a decision memo and inspectable evidence index, then defend the result under revoked qualification, missing traces and completed side effects. The worked answer distinguishes three local studies from a qualified production system.

Carry one customer workflow through this route. At each checkpoint, produce the named artifact before reading the solution. Record two separate fields: evidence origin/status (for example, constructed example, executed local mock, or live study) and authorized use (for example, lab-only, unqualified, or qualified for a named use). A live study is not automatically qualified, and an executed result may still use synthetic data. A later chapter does not upgrade an earlier artifact's authority.

Checkpoint Read and practice What you should be able to produce and defend
1. Specify the promise Foundations worked checkpoint, then Katas 01–03 A seven-surface contract separating failures, unknowns, runtime prevention and grading. Explain why a correct enum and successful API call can coexist with a failed task.
2. Build and improve the data Dataset Design, Human Evaluation, Katas 18–20 An incident-to-regression record, group-aware split policy and adjudication record. Identify which labels may tune the system and which must remain independent.
3. Qualify the measurement LLM as a Judge, Semantic Grading Lab, Calibration Decision Workshop A rubric, criterion-specific error table, abstention policy and scoped qualification decision. Compute uncertainty and review workload; explain why synthetic annotation rows do not establish human agreement or live judge accuracy.
4. Inspect the execution CX Eval Lab, Kata 04, Order Resolution, Process Recovery A retained trace and authoritative state diff, plus an independently reconstructed grade. Distinguish re-grading, re-execution and provenance verification.
5. Defend the comparison Metrics, Statistical Method Study, Sequential Decisions A registered contrast, independent sampling unit, stopping rule and justified verdict. Reproduce a false-promotion counterexample and state where its assumptions fail.
6. Control exposure Release Gates, CI Gate Lab, Exposure Control Lab Separate software conformance from candidate qualification and deployment authority. Demonstrate a hold, restriction and rollback; account for actions already completed before containment.
7. Test transfer and risk Modern Architectures, Eval Integrity, Frontier Risk Decisions A study protocol connecting actual execution to outcomes, and a claim–evidence–safeguard argument. Identify what needs human evidence or remains an unresolved research question.

For interview preparation, close the solution and defend each artifact against a changed assumption: a stale approval, correlated customer sessions, a revoked judge, missing outcomes or an interrupted write. Use Interview & Design Drills for broader prompts. Completing the route is practice, not an automatic certification; the delivery map lists the still-missing live and operational evidence.

Follow one complete local evidence path: Katas 58–59 connect checkpoints 4–6 using one retained multi-order CX packet. Inspect the request, clarification, ledger, semantic receipt and paired result, then explain the current release hold. The walkthrough distinguishes first-grader exercises, SDK mock-transport integration and still-required empirical model qualification.

Make a portfolio, not a reading log

Start with the worked CX packet, then keep one learner-owned evidence index linking the outputs below. Do not edit the book's retained artifacts to make your answer pass. For a fresh execution, use the chapter's command and a new output filename; for historical inspection, record the artifact and original revision. Mark each entry not attempted, reproduced, explained under a changed assumption, or unresolved, with a reason. These are learning statuses, not grader qualification or deployment permissions.

Portfolio output Concrete check before moving on If the check fails, return to
Contract and failure diagnosis Explain how a correct outcome enum can coexist with false prose, and how an authorized refund can target the wrong owned order. Name the evidence that detects each failure. First grader katas and Order Resolution
Dataset revision and label lineage Show the source incident, grouping key, reviewed label and destination split. Explain why approval attached to another case is invalid and why tuning on the acceptance set changes its role. Incident-promotion Kata 60 and Human Evaluation
Judge qualification memo Recompute B's 5/20 unsafe-pass rate and C's zero-event bound; include abstention and the review queue. State the sampling assumptions and evidence still needed for the supplied target. Katas 90–92
Trace-to-grade reconstruction Join a paired record to its full artifact by hash. Locate the agent-visible request, tool result, authoritative state and message evidence. Explain why a matching hash alone does not authenticate the evidence owner. Follow One CX Packet and Evidence Spine
Registered comparison Name the target population, independent unit, contrast, missingness policy and stopping rule. Reproduce a method counterexample; do not count repeated runs of one customer as new customers. Statistical Method Study and Sequential Decisions
Operating decision and incident response Explain why expected candidate rejection can make CI green, why missing telemetry cannot justify expansion, and why four completed wrong-order commits remain after routing rolls back. Name separate containment and remediation work. CI Gate Lab, Telemetry Delivery and Exposure Control
Transfer and risk argument Choose coding or research reports as a second domain below. Identify its authoritative outcome, one misleading proxy and one untested transfer assumption. Separate application quality from broader capability, safeguards and residual-risk claims. Domain transfer and Frontier Risk Decisions

Close the solutions for the first attempt. Compare your output with the worked evidence, record the discrepancy, then defend a changed assumption without copying the answer. A reviewer should be able to follow each claim to an artifact or identify it as a proposal. Do not turn an unresolved mandatory check into an overall passing average. Finish with the capstone's worked memo and rubric; passing these learning checks still does not authorize application exposure.

Choose a transfer test by its outcome

The refund workflow teaches a reusable evaluation structure, not a universal success metric. Preserve the earlier CX work and choose coding or research reports for the second-domain portfolio requirement. Knowledge-to-action and process recovery below are optional CX extensions: they change the failure mechanism and required evidence, but remain refund/payment workflows and do not satisfy that cross-domain requirement.

Transfer question Worked study What must change in your evaluation design
Did a patch actually repair the program? Coding Patch Evaluation Inspect executed acceptance results, caller-state preservation and protected-file integrity. A plausible diff or passing visible examples is insufficient; the authored tests themselves still need validity scrutiny.
Did useful evidence become the right action? Knowledge-to-Action Separate retrieved/supplied policy, selected version, action arguments and final ledger. An oracle document can repair access without repairing execution.
Is the research artifact usable and supported? Long-Report Study and Casebook Evaluate atomic claims, source support, omitted obligations and extraction coverage. A high score among extracted claims can hide missing claims.
Did interrupted work resume without a new harmful effect? Process Recovery Inspect the external effect ledger separately from workflow checkpoints. Test commit-before-acknowledgement and revoked authority, not only process exit status.

These studies execute local controls or inspect authored artifacts; they do not establish the performance of the model that might produce the code, report or actions. For an actual model comparison, register the case population, model/harness versions, complete budgets, repeated-trial design, independent grading and decision method first. Voice and multi-agent protocols in Modern Architectures remain additional requirements, not capabilities proved by completing a coding kata. The coverage ledger retains the wider source and subject inventory; this route is a learning spine, not a substitute for that completeness audit.

The order is deliberate: establish why the evaluation exists, decide what evidence it measures, learn how to read the scores, build human evidence, calibrate model graders, test robustness and safety, evaluate retrieval and agents, reproduce benchmarks, watch the system live, and finally enforce the release decision.

Part II · Build the CX evaluation system

Use the Micro-katas to predict, reproduce and repair small evaluation failures. Each includes runnable checks, a solution, the key interview explanation, and the limits of its evidence. The delivery map tracks the remaining work toward the complete practitioner curriculum.

The first runnable slice now exists locally. It includes five synthetic refund cases, a resettable mock world, a safe reference agent, deliberately broken agents, deterministic graders, and a release gate that treats safety, quality, protected slices, latency, and cost as separate rules. Open the CX Eval Lab →

The Evidence Spine continues the build from isolated cases to versioned manifests, repeated paired trials, minimum evidence, confidence-bound decisions, and immutable authority receipts.

Part III · Reference library

The reference library is maintained as part of the work, not attached as a bibliography at the end. Sources are verified, dated, and connected to the claim or design choice they support. Open the reference library →

The Courses & Learning Paths page maps selected external courses to exact chapters, lab artifacts, and follow-up exercises. A watched course is not treated as evidence of mastery; the artifact produced after it is.

The Interview & Design Drills page turns the supplied 118-question bank into a thirteen-theme practice map, senior scenarios, whiteboard patterns, answer checks, and evidence receipts.

The Source Coverage Ledger maps every substantive theme from the supplied research corpus to a chapter, example, artifact, and remaining implementation evidence. It is the completeness control for this living book.

Part IV · Comparative system studies

Each study asks the same questions of a paper, platform, or codebase, then records what the CX lab should adopt, adapt, or reject. This keeps comparison practical and stops the section from becoming a vendor catalogue. Open the study programme →

Five operating families

Family Primary home What it answers
CALIBRATE 4 · Human Evaluation and 5 · LLM as a Judge Is the scoring instrument trustworthy enough for its assigned authority?
BUILD 2 · Dataset Design and 3 · Metrics Is the golden set an executable specification, and can the runner produce defensible evidence?
GATE 11 · Release Gates & Shipping What evidence changes exposure, blocks release, or triggers rollback?
WATCH 10 · Production Evals Is the live system still behaving inside its operating contract?
LOCALIZE 1 · Foundations, 7 · RAG, 8 · Agents, and 10 · Production Did the failure occur at the step, trajectory, or outcome level, and what should fix it?

Dataset boundaries are intentional

Sealed acceptance data and label access control live in chapter 2. The frozen calibration set used to validate a judge lives in chapter 5. Keeping them separate prevents evaluation freshness from becoming label leakage.

A living book

The chapters, code, datasets, and reference map will develop together. When a real failure reveals a missing boundary, we review it, add the smallest useful case, and preserve it in the living regression set.