Skip to content
AgenticAIWiki
  1. Learn
  2. Part 3
  3. 16. Write the eval first
  4. 16.4

Lesson 16.4 · 4 of 4 · 4 min read · Reviewed 24 Nov 2026

How would you test this? A habit for every project

By the end, you can

  • Apply 'how would you test this?' to any AI design.
  • Sketch an eval plan in a few minutes.

This lesson is short on purpose. It’s a habit, and the rest of the course keeps asking for it.

The five questions

  1. Inputs: what will users actually send? Include messy and hard ones.
  2. Success: which criteria must every answer meet (16.2)?
  3. Scoring: code, model graderLLM-as-judge: Using a language model with a rubric to grade another model’s outputs. or human for each criterion?
  4. Bar: what scores mean “ship”?
  5. Upkeep: how will new failures become new cases (17.4)?

Example: a meeting-notes summariser

Inputs: 20 real transcripts (redactedRedaction: Removing or masking sensitive data, such as PII or secrets, before it is stored, logged or sent.), including a 2-hour one, one with crosstalk, one with no decisions. Criteria: lists every decision; lists owners for actions; no invented facts; under 250 words. Scoring: code for length; model graderGrader: The part of an eval that decides whether an output passes, using code, a model or a person. with rubricRubric: A written set of criteria and score levels that a grader applies to each output. for decisions, owners and invented facts; human spot check of 5. Bar: no invented facts in any case; decisions 90%. Upkeep: any user-flagged summary becomes a case.

That took two minutes and already says more about quality than a page of prompt.

In this course

Look for the “How would you test this?” lesson at the end of the Start here project, and the same question in each design review.

Key points

  • For every AI feature, ask early: what inputs, what counts as success, and how will we score it?
  • A one-paragraph eval plan before building saves days of arguing about quality later.
  • Every project in this course ends with this question; answer it before you move on.
Hands-on labOn your own machine

Write a one-paragraph eval plan

Answer 'how would you test this?' for a feature you are building or planning, before writing its prompt.

You will have: A short eval plan in your project's repository covering inputs, criteria, scoring, the ship bar and upkeep.

Steps

  1. Pick a real or planned AI feature, such as a summariser, a classifier or a support reply drafter.
  2. Write the five answers: inputs (including messy and hard ones), success criteria, a scoring method per criterion, the bar that means ship, and how new failures become cases.
  3. Keep each answer to one or two sentences, like the meeting-notes example in the lesson.
  4. Save it as a file next to the prompt (for example evals/PLAN.md) and ask a teammate to challenge one criterion.
  5. Turn the inputs line into your first three test cases using the format from 20.3.

Done when

  • All five questions have a concrete answer, with numbers where possible (case counts, word limits, target percentages).
  • At least one criterion is must-pass, such as safety or format at 100%.
  • The plan is stored in version control next to the prompt it tests.

Docs: Define success criteria and build evaluations (Claude docs)

Do it Answer it for your first agent in the Playground. No API key needed.

Quick checkYou're designing a meeting-notes summariser. What should you do before writing the prompt?
How sure are you?
Pick an answer and how sure you are

Finished the chapter? Take the chapter check.