Skip to content
mentoor

Topic 3 of 5 · 5 min read

Eval criteria as acceptance requirements

Goal: Convert spec rules into eval criteria, each with a check method and a pass threshold.

An eval criterion is a spec rule turned into a check with a method and a pass threshold, and together the criteria are the acceptance requirements for an AI feature. A normal feature is done when its tests pass. An AI feature is done when it passes its evals at the agreed rates.

Check yourself · 1 of 3

Which spec rule is best checked with a code check rather than a rubric?

Choose one answer

Why it matters

You cannot read every output. Without criteria, "is it good enough to ship?" becomes an opinion, and a prompt change that fixes one case quietly breaks three others. Eval criteria turn quality into numbers that the whole team can read, and they let you compare two versions fairly. Both the Claude and OpenAI documentation tell teams to define success criteria that are specific and measurable before building.

How to write them

Take each rule in the spec and give it three things.

  1. A check method. Choose the cheapest one that works:
    • Code check. For anything a program can verify: valid JSON, under 80 words, contains a ticket number, no email address in the reply.
    • Rubric with a human grader. For judgement: was the tone calm, did it answer the question. Give graders yes or no items, not a 1 to 10 score.
    • Rubric with an LLM judge. The same rubric, graded by another model, to run on thousands of outputs. Check it against human grades on a sample first, because judge models have their own biases.
  2. A pass threshold. A rate, not a promise. "Never promise a refund" may need 100 percent on a test set of 40 risky inputs. "Reply in the customer's language" may accept 95 percent.
  3. A test set. Which examples the check runs on, drawn from the example set.

Set stricter thresholds where harm is higher. Never rules usually need near 100 percent. Should rules can be lower.

A small table keeps it honest. In engineering terms it can be a file:

- rule: never-promise-refund
  check: llm-judge
  rubric: "Does the reply promise or approve a refund? yes/no"
  pass: "0 of 40 risky inputs"
- rule: max-80-words
  check: code
  pass: "98% of all replies"

Before and after

Before: Acceptance: the assistant gives accurate answers.

After: Accuracy: on 100 real questions, a human grader marks each answer as supported by the help article, yes or no. Pass is 92 percent or more, and no answer may state a price that is not in the article.

What goes wrong

  • The criterion is a feeling, such as "sounds good", so two graders disagree and the number means nothing.
  • The LLM judge is trusted without comparing it to human grades, so it passes outputs a person would fail.
  • One average score hides a critical failure. Report each criterion separately.
  • The threshold is picked after seeing results, so it always passes.

Examples

Three rules, three methods

Rule Method Threshold
Reply is valid JSON with the field intent Code check 100% of 500 replies
Answer is supported by the retrieved article LLM judge, checked against 50 human grades 92% of 100 questions
Tone is calm and blame-free Human rubric, three yes/no items 90% of 60 replies

Fixing a rubric nobody could grade

Weak item: Rate the helpfulness from 1 to 10.

Better items: Does the reply answer the question asked? Does it name the next step? Does it avoid information not in the article? Each is yes or no, so two graders land on the same mark far more often.

Key points

  • Each spec rule becomes a criterion with a check method, a pass threshold and a test set.
  • Use code checks for anything a program can verify, and rubrics with yes or no items for judgement.
  • An LLM judge is fast but must be compared with human grades on a sample before anyone trusts it.
  • Set higher thresholds for never rules than for should rules, matching the harm of a failure.
  • Report each criterion on its own, because an average can hide a failure that matters.

Common mistakes

  • Writing criteria as adjectives or scores out of ten that graders read differently.
  • Trusting an LLM judge without checking it against human grades on a sample.
  • Reporting one average score, which hides a failure on a never rule.
  • Choosing the pass threshold after seeing the results.

Check yourself · 2 of 3

A team sets one pass mark of 90 percent average quality across all rules. What is the risk?

Choose one answer

Check yourself · 3 of 3

Before relying on an LLM judge to grade tone on 5,000 replies, what should you do?

Choose one answer

Practice items, not counted towards your mastery.

Start here