Skip to module content
Module 17 Β· ~8 min

Evals & Review Loops

The sharpest line between demo-ware and production.

Reading progress
0/8 Β· 0%

The big idea

πŸ’‘Key idea
The minimum viable eval for any workflow has five parts: a golden set of 20–50 real inputβ†’ideal-output pairs (harvested from the manual era of the client's process), deterministic graders for structure, an LLM-as-judge for quality (with a written rubric, forced 1–5 scoring per dimension, and required cited evidence from the output), a baseline score that every change must beat before it ships, and weekly production sampling of 5–10% of live outputs to catch silent drift. Without all five, you have a guess, not a system.
Quick check
1 question Β· instant feedback
0/1
  1. The minimum viable eval requires:

Numbers that matter

20–50
Golden-set pairs β€” the minimum viable eval per workflow.
5–10%
Production output sample rate β€” weekly; alert on drift.
Quick check
1 question Β· instant feedback
0/1
  1. LLM-as-judge must require cited evidence from the output because:

Deep dive

4/4 open

A golden set is a collection of 20–50 real inputβ†’ideal-output pairs, harvested from the manual era of the client's process β€” before any AI was involved.

Real inputs beat synthetic ones. They surface the edge cases that matter: the weird formatting, the off-topic question, the ambiguous brief that a real user actually sent.

Don't treat the golden set as permanent. Update it quarterly with new failure modes discovered through production sampling. Your eval should get harder over time, not easier.

Build graders in two layers, from cheapest to most expensive.

**Deterministic graders first.** These check structure: is the output valid JSON? Are the required fields present? Is the length within bounds? Are banned phrases absent? Do the links resolve? Are the dates parseable? These run in milliseconds and catch a huge share of failures.

**LLM-as-judge second.** Use this for quality dimensions that require judgment β€” tone, completeness, accuracy. But anchor it: write a rubric, force 1–5 scoring per dimension, and require cited evidence from the actual output for each score.

Unanchored LLM judges drift optimistic over time. The evidence requirement is what keeps them honest.

For single-step tasks, grading the final answer is enough. For multi-step agents, it isn't.

When an agent runs a sequence of tool calls, you need to grade the entire trajectory: Did it call the right tools? In a sensible order? Within the allotted budget? Without any unauthorized writes?

A perfect-looking final answer can still mask a dangerous or wasteful path to get there.

Extend this logic to the harness itself: test whether the agent can be prompt-injected (feed it adversarial content in retrieved docs and confirm it treats the instructions as data, not commands), test timeout behavior, and check for over-tooling β€” did it call tools it had no reason to use?

Grade a random 5–10% of live outputs every week. Set alerts for score drift.

Model providers update their models without announcement. Behavior you measured last month may not be behavior you're getting today. Evals are how you notice before the client does.

The weekly one-pager is what turns this into a client-facing asset: outputs sampled, scores by dimension, failures with diagnosis, changes shipped, cost per outcome, next-week bets.

This is the retention mechanism. Clients don't churn from systems whose improvement they watch every week.

Quick check
1 question Β· instant feedback
0/1
  1. Trajectory evals on multi-step agents grade:

How to run it

  1. Golden set 20–50 pairs
    Real work, not synthetic.
  2. Deterministic graders first
    Structural checks before LLM judge.
  3. LLM-judge with rubric + evidence
    Anchors the score to actual output text.
  4. Trajectory evals for agents
    Grade tools/order/budget/writes, not just final answer.
  5. Production sampling weekly
    5–10% of live outputs; alert on drift.
  6. Weekly one-pager
    The retention mechanism.
Quick check
1 question Β· instant feedback
0/1
  1. Production sampling frequency is:

In the field

πŸ”¬Worked example
Review-loop deliverable (client-facing shape): weekly one page β€” outputs sampled, scores by dimension, failures with diagnosis, changes shipped, cost per outcome, next-week bets. Turns 'is the AI any good?' from vibes into a managed KPI. Retention mechanism: clients don't churn from systems whose improvement they watch weekly.
🚫When not to reach for it
Don't grade only the final answer for multi-step agents. Grade the TRAJECTORY: did it call the right tools, in a sane order, within budget, without unauthorized writes? The agents-best-practices security-eval framing extends this to the harness itself β€” test injection resistance, timeout behavior, over-tooling.
Quick check
1 question Β· instant feedback
0/1
  1. The one-page weekly review-loop deliverable is:

Pitfalls & takeaways

Failure modes

  • LLM-as-judge without a rubric or evidence requirement β€” drifts optimistic.
  • No production sampling β€” model updates silently change behavior, client sees it first.
  • Grading only final answer on multi-step agents β€” misses budget/tool/safety failures.
  • No baseline β€” no proof that a change is an improvement.

Durable takeaways

  • A prompt/skill/agent without an eval is a guess.
  • Deterministic graders first; LLM-as-judge second, always with evidence.
  • Grade trajectories on agents β€” final-answer-only misses safety failures.
  • Weekly production sampling catches silent model drift.
  • The one-pager review is the retention mechanism.

Do the work

πŸ‹οΈProve you learned it

Build the minimum viable eval for one skill: 20 golden input→output pairs from real work, deterministic graders for structure, LLM-judge with rubric + evidence requirement for quality, baseline score, one iteration that beats baseline. Ship the weekly review-loop one-pager next.

0 chars
πŸ“¦Artifact to produce
Eval harness per critical workflow + weekly one-page review-loop report.

Sources

  • Β· GMS Field Manual Β§17 (Evals & Review Loops)
  • Β· skill-creator benchmark harness
  • Β· n8n Evaluations for AI Workflows