WAWTech 2026 · Workshop

Evals as a
Merge Gate

Make Your AI Coding Setup
Safe to Change

Ivan LapaSenior Engineer (UI)
Workshop repo & prompts

Disclaimer

All materials come from my open-source projects and training materials and are not affiliated with Netflix.

All views expressed in this material and in the workshop are my own and do not represent Netflix.

Pull request #3 · burnjohn/evals-workshop

A 1-line PR to a skill the whole team uses

Reword the release skillplugin/skills/make-release/SKILL.md · +1 −1
- 1. Read the full commit messages since the last tag, titles and bodies:-    `git log <last-tag>..HEAD --format=%B`.+ 1. Read commit titles only, it's faster:+    `git log <last-tag>..HEAD --format=%s`.  2. Run `npm test`. If it is red, stop and report.
  • 1 line changed
  • Reads fine in a review
  • Lint and unit tests don’t run the skill

How do we know that after the merge
the next release still gets the right version?

real PR · back at the gate

Anthropic · Claude Code · April 2026

1 prompt line made Claude Code worse. Evals missed it.

1 · To get shorter replies, Claude Code devs added 1 line to the prompt

+“keep text between tool calls to ≤25 words”

2 · Their evals: green“no regressions”
3 · Later, wider evals“a 3% drop”
Then users complained: quality dropped.Reverted April 20.A prompt is code.
Green means no worse on these cases.

Source: anthropic.com/engineering/april-23-postmortem ↗

Our demo plan for today: 4 changes, 4 evals

Our coding harness takes a task from code to release. In each demo we change 1 part of it and use an eval to see what the change did.

Demo 4 · skill · liveruns all of them from 1 plan.Change: docs-only PRs may skip QA.

Before the demos

An eval is a test for what an AI model does

A unit test checks your code. An eval checks what a model does with your prompt, skill or agent.

Unit test · for code

argumentsyour functionthe same result every run
// semver.test.js
test("BREAKING CHANGE is a major bump", () =>
  expect(bump("1.4.2", commits))
    .toBe("2.0.0"));

Breaks when the code changes.

Eval · for an AI model

a task and a test repoa model + your skilla different result every run
// labs/lab-1a-release/release.test.js
const r = runRelease(case); // what the agent did
test("publishes 2.0.0", () =>
  expect(r.state.version).toBe("2.0.0"));
test("tags it", () =>
  expect(r.state.tags).toContain("v2.0.0"));

Breaks when the prompt, the skill or the model changes, even by 1 line.

A prompt is code, so it needs tests too. Each of the 4 demos adds an eval for its change.

How each demo runs

1Task

What the team asks for, and why

The prompt is on screen
2Change

The lines the agent added or changed

Highlighted in the diff
3Evidence

What we expected, what we got

Does the gate let it through?

What we test: 4 parts of the AI coding setup, 1 per demo

SkillLivemake-release

Cuts a release from the commits

SkillLivecode-review

Reviews a pull request

AgentLiveimplementer

Implements 1 task from a plan

WorkflowLiverun-implementation-plan

Runs the plan: agents in order, up to a release

Every prompt is also in the repo: demos/<NN>/prompt.md, with the start state, the check command and 1 variation to try.

Get the repo

All 4 demos run from this repo. Clone it to follow along, or to repeat the demos later.

github.com/burnjohn/evals-workshop

git clone https://github.com/burnjohn/evals-workshop.git
cd evals-workshop
npm ci

Needs Node 22.22 or newer

02Part 2 of 8

Eval basics

Who grades the result: code, an LLM judge or a person.

3 kinds of graders

A grader decides pass or fail. The runner (Vitest, Promptfoo) starts the agent, the grader reads what it left.

GraderWhat it can decideWhat it costsBlocks a merge
Codecode-based grader

an exact value, a JSON shape, a file, an order of steps

free, the same verdict every time

yes, on every PR
LLM judgemodel-based grader

meaning: 1 yes/no question about a text

model calls, the verdict can differ between runs

no, run by hand
Personhuman grader

what “correct” is: the answer key and the labels

slow, so only a small set of cases

decides what the others check

Next: what code checks in today’s demos. The LLM judge comes in Demo 2.

What you can check with code

Anything with 1 right answer.

GraderReadsToday
Exact value

the tag the run left in git

expect(tag).toBe("v2.0.0")make-release
JSON schema

the findings the reviewer returned

file, lines, severity, titlecode-review
Rendered page

the page the agent's code renders

flags off: no toggleimplementer
Order

the trace of the run

qa ends before make-release startsrun-implementation-plan

Code is free, gives the same verdict every time, and can block a merge.

One harness for every demo

Every demo runs the same way. Only the case, what we read and the grader change.

1 · CaseInput and answer keythe key is written by a person
2 · RunnerVitest or Promptfoostarts the agent on each case
3 · AgentClaude Code + plugin/Haiku, in a test repo
4 · What it leftOutcome and tracefiles, a tag, JSON, the steps
5 · GraderPass or failcode, or an LLM judge
DemoCaseWhat it leftGrader
make-releasecommits after v1.4.2the git tag, the commands it rancode
code-reviewa patch and the specfindings as JSONcode + LLM judge
implementera UI taskthe page, flags.jsoncode
run-implementation-plana plan with 1 taskthe order of the stagescode

npm test saves every run in runs/. CI reads runs/, spends no tokens, and blocks the merge when a run is missing or older than the skill.

03Demo 1 · live

make-release

Our task

Add 1 regression case

What it does
  • reads every commit
  • asks semver-rules for the version
  • stops on red tests
  • tags and publishes
npm run step lab-1a

Demo 1 · make-release TaskChangeEvidenceLive

Add a test case: the breaking change is in a commit body

The new case: after v1.4.2

  1. 1feat: rename name to displayNamebody: BREAKING CHANGE: clients must read displayName
  2. 2feat: add avatarUrl to the profile
  3. 3docs: describe the profile fieldslast commit

Skill responsibilities

  • make-releasethe order of the steps
  • semver-rulesthe version for the whole set of commits: the biggest change wins, whatever the order
  • npm testred tests: nothing is published
1Startnpm run step lab-1a2Paste the prompt into Claude Code3Checknpm test -- lab-1a
Demo promptdemos/01-release/prompt.md
Add a release regression case starting at v1.4.2.
The first commit renames a public response field and documents the
breaking change in its body. A feature and a docs-only commit follow.
Use the existing case format, real file changes in each commit, and the id breaking-then-docs.
Derive the expected result from semver-rules.
Leave the release skill and existing cases unchanged.

How Demo 1 runs · · while the agent runs

Run the agent, read what it left, check it

Every eval in today’s demos works this way. The agent is doing these 3 steps right now.

1Run the agent

Claude Code with the plugin works on the case in a throwaway repo

  • your login, Haiku, no API key
  • a little different every time
lib/agent.jsthe same agent you use every day
2Read what it left

Not what it said: the state of the repo after the run

  • the tag on the remote
  • every command it ran, in order
git tag · package.jsonlogged by lib/world.js
3Check

Code compares that state with the answer key

  • runs on every PR
  • can block a merge
expect(tag).toBe("v2.0.0")against cases.json

Every run is saved in runs/. CI checks that file and spends no tokens. Change a skill without running the evals again, and CI is red: the eval has not run.

1 eval, read top to bottom

We run the skill on a test repo with the commits below. Then we read the tag it left in git and compare it with the version a person expected.

Input
v1.4.2..HEAD
feat: shorten profile response

BREAKING CHANGE: `name` is replaced by `displayName`
tests: green
Expected
v2.0.0published

From semver-rules: BREAKING CHANGE anywhere in a message is a major bump. A person wrote it into cases.json.

Actual
v1.5.0the tag the run left in git

It read the title, saw feat, and shipped a minor version.

Verdict
✗ Fail

Every app that reads name breaks on a “minor” upgrade.

an example of a failing run

Demo 1 · make-release TaskChangeEvidenceLive

The agent adds the case. You check the answer key

labs/lab-1a-release/cases.json

  { "id": "fix-and-docs", … },+ { "id": "breaking-then-docs",+   "commits": [+     { "message": "feat: rename … BREAKING", "files": … },+     { "message": "feat: add avatarUrl", "files": … },+     { "message": "docs: describe fields", "files": … } ],+   "tests": "green",+   "expect": { "version": "2.0.0", "published": true } },  { "id": "red-tests", … }

Where 2.0.0 comes from

  • BREAKING CHANGE anywhere in a message: major
  • The highest rule wins across all commits
  • Tests are green, so it may publish

The agent may suggest the answer. A person checks it against the rule before it goes into the key.

npm test -- lab-1a

✓ breaking-then-docs › publishes 2.0.0✓ breaking-then-docs › tags it and creates one GitHub release✓ breaking-then-docs › tests, then tag, then push

Live: Claude Code cut the release in a throwaway repo. The checks read the remote.

Demo 1 · make-release TaskChangeEvidenceLive

The same case after 1 edit to the skill

Commit history · the new case
  1. 1feat: … BREAKING in the body
  2. 2feat: add avatarUrl
  3. 3docs: describe fields
Expected tagv2.0.0

from semver-rules

Actual tag
current skillv2.0.0 ✓
step 5 deleted: tag and pushno tag ✗
npm test -- lab-1a
 ✓ breaking-then-docs › publishes 2.0.0
 × breaking-then-docs › tags it and creates one GitHub release
   tags on the remote: [ "v1.4.2" ]
 × breaking-then-docs › tests, then tag, then push

Haiku saw the missing step and improvised. 2.0.0 is on main, the tag never reached the remote. In this run 5 of 6 cases went red.

live runs · Haiku

04Demo 2 · live

code-review

Our task

Make the skill check findings against the spec

What it does
  • reads a PR and a spec
  • returns findings as JSON
npm run step lab-1b-done

Demo 2 · code-review TaskChangeEvidenceLive

The spec allows anonymous views and requires 200 on a repeat

spec.md · view tracking

  • AC-6.2The endpoint shall not require authentication.anonymous views are allowed
  • AC-6.5A repeat view within 24 h shall respond 200. Dedup is never an error.

input.patch · analyticsController.js

694 + if (existing) {695 +   return sendError(696 +     res,697 +     ERROR_MESSAGES.VIEW_ALREADY_RECORDED,698 +     HTTP_STATUS.BAD_REQUEST   // 400699 +   )

A good review flags the 400 and leaves the missing auth alone.

1Startnpm run step lab-1b-done2Paste the prompt into Claude Code3Checknpm run matrix
Demo promptdemos/02-review/prompt.md
Create a candidate version of the code-review skill.
When a spec is supplied, connect each reported defect to changed
behaviour, explain the observable consequence, and check whether
the spec explicitly allows that behaviour.
Preserve the JSON output contract. Keep the baseline unchanged.
Do not read eval labels, saved findings, or expected outputs.
Write the candidate to labs/lab-1b-review/versions/code-review.v2.md.
real PR

Demo 2 · code-review TaskChangeEvidenceLive

The candidate adds a procedure for the spec

versions/code-review.v2.md · diff against the baseline

  Look for bugs, security holes and broken edge cases.+ When a spec is supplied:+ 1. Name the behaviour the patch changes.+ 2. Find the acceptance criteria about that behaviour.+ 3. For each finding: the condition, what happens, the impact.+ 4. Before you report, check the exceptions the spec allows.+ 5. Keep the JSON contract and the changed-lines rule.  Return JSON: { "findings": [ … ] }

What stays fixed

  • The baseline SKILL.md
  • The JSON output: file, lines, severity, title
  • Only changed lines get findings

The agent may not read the labels or saved findings. Otherwise it can write a prompt that passes only these cases.

example diff · the live one will differ

Skill under test: · Demo 2

LLM judge: a second model grades the meaning

The skill returns findings. Does a finding name the defect a person labelled?

The label · T2-11 · analyticsController.js, lines 693–699

“A repeat view answers 400. It is the normal case and should be 200 (AC-6.5).”

case.yaml ↗
Finding A · a recorded run

“AC-6.5: duplicate view returns 400 instead of 200”

  • Code: file and line match✓
  • Code: the text contains “400”✓
  • Person: it names the defect✓

Every check agrees: the easy case.

Finding B · written for this slide

“A reader who opens the post twice in a day gets an error”

  • Code: file and line match✓
  • Code: the text contains “400”✗
  • Person: it names the defect✓

Correct, and the keyword check rejects it.

Finding C · written for this slide

“Use a named constant instead of the literal 400”

  • Code: file and line match✓
  • Code: the text contains “400”✓
  • Person: it names the defect✗

A style note, and both code checks accept it.

The judge: another model call with 1 question

“Does this finding say that a repeat view gets an error instead of 200? Yes or no.”

A: yes. B: yes. C: no. The same verdicts as the person.

Demo 2 · code-review TaskChangeEvidence 1/2Recorded

First, 1 case: the candidate writes the better comment

Baseline · code-review

“Duplicate view returns 400 instead of 200”

analyticsController.js:693–699 · CRITICAL
Recorded candidate · spec-first prompt

“AC-6.5: duplicate view returns 400 instead of 200”

analyticsController.js:697 · CRITICAL
  • Both caught the 400. The candidate names the rule it breaks.
  • Neither flagged the missing auth that AC-6.2 allows.
  • 1 case can’t tell which version is better. The next slide counts all 4.
recorded · DeepSeek V4.1 Flash · full PR

Demo 2 · code-review TaskChangeEvidence 2/2Recorded

Then all 4 cases: the candidate missed 5 labelled defects

Recorded · DeepSeek V4.1 Flash · full PR, 74 files · 21.11.2026

Labelled defects caughtAllowed behaviour flaggedComments on the clean PR
Baselinecode-review11 / 1100
Recorded candidatespec-first prompt6 / 1100

The recorded candidate missed 5 labelled defects in this run: the stored XSS, both leaked secrets, the polling leak, the stale category filter.

This table
1 run of 1 model. It does not say how the next run goes.
Live on stage
npm run matrix runs Promptfoo with Haiku on the case slices: 4 cases × 3 columns, no-skill, current and today’s v2. About 2 minutes. Its numbers will differ from this table.
What you get
A matrix in the terminal: 1 row per case, 1 column per version. A cell is PASS only when all 5 checks pass, including 1 LLM judge check: specific titles. npm run matrix:view opens it in the browser with the reason for each FAIL.
recorded run

Demo 2 · code-review TaskChangeEvidenceMatrixLive

The matrix: every version of the skill on every case

What it is · promptfooconfig.yaml

Row
1 case: a patch, and the defects a person labelled in case.yaml
Column
1 version of the skill: no-skill, current, v2
Cell
1 answer, scored by 5 checks: 4 in code, 1 LLM judge
Fixed
The model, the spec, the JSON contract, the checks. Only the skill changes
Control
The no-skill column: the same model with no skill instructions. Does the skill help at all?

Run it

1 run
npm run matrix
1 answer per cell, about 2 minutes
3 runs
npm run matrix -- --repeat 3
3 answers per cell, about 5 minutes. Compare the share of passes per column
Read it
npm run matrix:view
The browser: scores per check for each column, the reason for each FAIL
Share it
npx promptfoo@0.126.0 share
Uploads the last run to promptfoo.app and prints a link

Add a column: another skill file under prompts: or another model under providers:. Add a row: npm run new-case -- 05-name. Add a check: a file in checks/.

Haiku · your Claude Code login

05Demo 3 · live

implementer

Our task

Write an eval from scratch

What it does
  • loads the house-rule skills
  • writes the code
  • reports done
npm run step flags-start

Demo 3 · implementer TaskChangeEvidenceLive

A new feature ships behind a flag, off by default

The house rule

  • Every new UI feature gets a new flag in flags.json
  • The flag is off: users see the page as before

web/search.js already does it with beta_search.

labs/flags/cases.json · 2 cases

told

“Add a dark mode toggle to the settings page. Put it behind a new flag in flags.json, off by default.”

plain

“Add a dark mode toggle to the settings page.”

The rule has to come from the skill ui-rules
1Startnpm run step flags-start2Paste the prompt into Claude Code3Checknpm test -- flags
Demo promptdemos/03-implementer/prompt.md
Write an eval for the implementer agent in labs/flags/.
Build it the way labs/lab-2-implementer is built.
Rule: every new UI feature is behind a new flag in flags.json, off by default.
2 cases: "Add a dark mode toggle to the settings page.",
with the flag named in the task and without it.
Check what it leaves, not what it says:
render web/settings.js with all flags off and on, and read flags.json.

Demo 3 · implementer TaskChangeEvidenceLive

How the eval runs 1 case

Vitest and the Claude Agent SDK: real Claude Code on Haiku, your login. Promptfoo is only for the Demo 2 matrix.

1A test repo

A fresh git repo, made from the lab’s fixture

lib/world.js
2The agent

Claude Code starts as implementer, with the plugin

lib/agent.js
3It loads the skill

The task names ui-rules, the agent reads it

plugin/skills/ui-rules
4The checks

The settings page with flags off and on, and flags.json

labs/flags/flags.test.js

lib/ runs every lab. labs/flags/ is this eval. plugin/ is what we test.

Demo 3 · implementer TaskChangeEvidenceLive

The eval Claude Code writes

labs/flags/flags.test.js · the checks

const flags = JSON.parse(world.read("flags.json"));const all = v => Object.fromEntries(Object.keys(flags).map(k => [k, v]));const off = renderSettings(user, all(false));const on  = renderSettings(user, all(true)); test("with every flag on, the page has the toggle",  () => expect(on).toMatch(/dark/i));test("with every flag off, the page is as before",  () => expect(off).not.toMatch(/dark/i));test("a new flag in flags.json, off by default",  () => expect(newFlags.map(k => flags[k])).toEqual([false]));

What it reads

  • The page the agent's code renders
  • flags.json after the run

What it ignores

The agent’s own “status: done”

How 1 case runs · about 1 minute

fixture/a throwaway git repoimplementer · Haiku · ui-rulesrender the page: flags off, flags on5 checks
prepared · the same eval is on flags-done

Demo 3 · implementer TaskChangeEvidenceLive

It says done. With the flags off, users still get the toggle

Case plain · “Add a dark mode toggle to the settings page.”

CheckExpectedActualActual, with the rule in ui-rules
how it endsstatus: donestatus: done ✓status: done ✓
every flag onthe toggle is therethe toggle is there ✓the toggle is there ✓
every flag offno togglethe toggle is there ✗no toggle ✓
flags.jsona new flag, falseno new flag ✗dark_mode: false ✓
npm test -- flags
 × plain › with every flag off, the page is as before: no toggle
 × plain › a new flag in flags.json, off by default

The fix: 1 line in plugin/skills/ui-rules/SKILL.md, “Every new UI feature is behind a new flag in flags.json, off by default.”

expected result

06Demo 4 · live

run-implementation-plan

Our task

Let docs-only changes skip QA

What it does
  • 1 implementer per task
  • then review, tests, QA, release
npm run step lab-3-done

Demo 4 · run-implementation-plan TaskChangeEvidenceBreak itLive

Make docs PRs faster, keep QA for code

labs/lab-3-workflow/policy.json · 2 cases, the expected column written before any run

Changed filesExpected
README.mdQA may be skipped. The trace says why.
README.md + api/profile.jsQA runs and finishes before make-release, even with green unit tests.
1Startnpm run step lab-3-done2Paste the prompt into Claude Code3Checknpm test -- policy
Demo promptdemos/04-workflow/prompt.md
Update run-plan so a documentation-only change may skip QA.
If any application code changes, QA must finish before release.
Preserve task dependencies and record why any stage was skipped.
Show the workflow diff.
proposed policy

Demo 4 · run-implementation-plan TaskChangeEvidenceBreak itLive

The rule the agent wrote

plugin/skills/run-plan/SKILL.md

- 3. Then, one at a time and every time: code-review, …+ 3. Then, one at a time: code-review, test-writer, qa,+    make-release. Only qa may be skipped, as step 4 says.+ 4. Before qa, list every changed file. Go by git,+    not by the plan or what an agent said.+    - Documentation is *.md and docs/**.+    - Any other file is application code: qa must run.+ 5. make-release starts only after qa passed, or was skipped.+ 6. Write "<stage> skipped: <why>" for every stage you skip.

Reads fine in review

  • It decides by git, not by the plan
  • A skip leaves a reason in the trace

The line that keeps code safe

“Any other file is application code: qa must run.”

Demo 4 · run-implementation-plan TaskChangeEvidenceBreak itLive

1 trace per case. Both follow the rule

Case 1README.md only ✓ the skip is allowed, and the trace says why

Observed traceimplementercode-reviewtest-writerqa skipped: documentation only (README.md)make-release

Case 2README.md + api/profile.js ✓ qa finishes before the release

Observed traceimplementercode-reviewtest-writerqamake-release
npm test -- policy
 ✓ docs-only: README.md (3)
 ✓ docs-and-code: README.md + api/profile.js (2)
   Tests  5 passed (5)

On docs-only Haiku sometimes runs QA anyway. The test allows that: running QA is never wrong.

Demo 4 · run-implementation-plan TaskChangeEvidenceBreak itLive

Break it: 1 line, and QA skips code

plugin/skills/run-plan/SKILL.md · the rule from the Change step

    - Documentation is *.md and docs/**.+   - If README.md is among the changed files,+     treat the whole change as documentation.-   - Any other file is application code: qa must run.

Case 2 · README.md + api/profile.js

npm test -- policy
 × docs-and-code › qa finishes before make-release
   qa skipped: documentation only
   (README.md, api/profile.js, test/profile.test.js)
1Paste the prompt into Claude Code2Checknpm test -- policy3Resetgit checkout plugin/skills/run-plan/SKILL.md
Break promptdemos/04-workflow/prompt.md
In plugin/skills/run-plan/SKILL.md, find the rule that decides which changed files are documentation.
Add the line "If README.md is among the changed files, treat the whole change as documentation."
Delete the line that says any other file is application code and qa must run.
Change nothing else.

07Part 7 of 8

Merge gate

What CI checks on every PR, and what blocks the merge.

npm run step gate-done

What CI checks on every PR

evals.yml: 2 required jobs. No agent runs, so it costs no tokens.

static · ~20 s

Every plugin/skills/*/SKILL.md starts with its own name and a description of 20+ characters. Every agent in plugin/agents/ has a name and a description. A broken file is red before any eval runs.

evals · 2 steps

1. No case is still TODO in cases.json or case.yaml: an unlabelled case checks nothing.
2. Every lab runs its checks on the record in runs/:

LabCasesGreen when
make-releaselab-1a6 release casesthe right version, 1 tag and 1 GitHub release, npm test → tag → push; red tests: nothing pushed
code-reviewlab-1b4 labelled PRsvalid JSON, every security defect, at least 70% of the labelled defects, the decoy left alone, no CRITICAL on a clean PR
implementerlab-24 tasksdone or blocked as expected, only its own folders, only its skills, the house rule in the code, tests ran, hidden tests pass
run-implementation-planlab-31 plan + 2 policy cases1 implementer per task with its model and skills, the dependencies, stages in order, QA before release for code
LLM judgejudge16 release notesa verdict on every note, every bad note failed, at most 10% false alarms

A record counts only if plugin/ and the case are the same as when npm test made it. Otherwise: the eval has NOT run.

See the gate stop a PR

Change a skill, skip the evals, open a PR. The branch demo-red-pr has this edit ready.

  1. Go to the finished gate
    npm run step gate-done
  2. Edit a skill without running the evals
    git switch -c my-edit
    # change 1 line in plugin/skills/make-release/SKILL.md
    # and do not run npm test
    git commit -am "Reword the release skill"
    git push -u origin my-edit
  3. Open a PR into gate-done
    gh pr create --base gate-done --fill
What the PR shows
  • staticPassed
  • evalsFailed

evals says: the eval has NOT run. runs/ was recorded with the old skill.

Make Merge wait for it

Settings → Rules → Rulesets → Require status checks → static and evals, on gate-done.

The 1-line PR from the start, at the gate

  1. PR #3
  2. gate-done
Pull request #3 · demo-red-pr into gate-done · run 45923564992Reword the release skill

evals failed

  • staticis every skill and agent well formed?Passed
  • evalsthe labs on the runs recorded in runs/Failed
 × lab-1a-release: plugin/ changed after runs/lab-1a-release.json was saved
   the eval has NOT run
static: success · evals: failure
  • evals is red: the run in runs/ was made with the old skill, so it says nothing about the new one.
  • CI spends no tokens: it never starts the agent.
  • GitHub blocks the Merge button once a ruleset requires static and evals.
Push to branch gate-done · no edit to the skill · run 45923560526Merge gate: done

evals passed

  • staticis every skill and agent well formed?Passed
  • evalsthe labs on the runs recorded in runs/Passed
  • A separate run on its own branch. It is not a fix of PR #3.
  • To turn PR #3 green, run npm test on your machine with the new skill and commit runs/.
  • Then the checks say what the edit really does.
real runs · GitHub Actions

The live gate: 2 checks on every PR

CheckWhat it doesModelTime · costRed when
staticEvery skill and agent in plugin/ is well formedno~20 s · $0a file is broken: front matter, a missing description
livePromptfoo runs code-review on DeepSeek V4 Flash: 8 labelled PRs × 3 columns (no-skill, base, pr) × 3 runs. gate.mjs counts the labelled bugs caughtyes, live~1.5 min · ~$0.007the pr column catches under 85% of the labelled bugs
Why 2 checks
  • static catches a broken file. live catches a skill that is well formed but finds fewer bugs.
  • Only the 85% line blocks. Severity, the decoy, CRITICAL on a clean PR and non-JSON answers go to the job summary: they change between runs of the same skill.
  • Every PR gets the no-skill / base / pr table in its summary. The full matrix is in the live-review-matrix artifact.
Demo PRs
  • #7 Shorter code reviews · red, 75%Adds “Keep the review short: report only the single most important finding.” The fix: delete that line.
  • #8 List critical findings first · green, 96–100%Same cases, same model.
branch live-gate · GitHub Actions

Why PR #7 is red: cases 03 and 04

Job summary · earlier run · found / labelled, 3 runs

Caseno-skillbasepr
01-sql-sort1/1 1/1 1/11/1 1/1 1/11/1 1/1 1/1
02-async-foreach1/1 1/1 1/11/1 1/1 1/11/1 1/1 1/1
03-webhook-signature2/2 1/2 2/22/2 2/2 2/21/2 1/2 1/2
04-react-search2/2 2/2 2/21/2 2/2 2/21/2 1/2 1/2
05-file-download1/1 1/1 1/11/1 1/1 1/11/1 1/1 1/1
06-order-errors1/1 1/1 1/11/1 1/1 1/11/1 1/1 1/1
07-clean-rename· · ·· · ·⚠1 ⚠1 ⚠1
08-clean-slugify⚠1 ⚠3 ⚠2⚠2 ⚠1 ⚠1⚠1 ⚠1 ⚠1
caught bugs96%96%75%

· nothing reported on a clean PR ⚠n n findings on a clean PR. 07 and 08 are clean: not in the %.

Read a cell

1/2: the case has 2 labelled bugs, the model found 1. 3 values, 1 per run.

The count

8 labelled bugs × 3 runs = 24. pr misses 1 in 03 and 1 in 04 on every run: 18/24 = 75%, under 85%. base misses 1: 23/24 = 96%.

The cause

The line this PR adds: “report only the single most important finding”. In 03 the model names the secret in the logs or the !== compare, never both. In 04, the missing query in useEffect or key={index}.

07 · ⚠1

Same line: on a plain rename it now always reports 1 CRITICAL finding. Shown in the summary, does not block.

The fix

Delete that line. PR #8 has the same table green: pr 96–100%.

PR #7 · GitHub Actions

What CI checks before a merge

PartCheckReadsEvery PRBlocks a merge
make-releasecases, run livethe git tag, the command logyes, recorded runyes
code-reviewlabelled casesfindings JSON vs case.yamlyes, recorded runyes
the matrix, liveno-skill vs base vs pr, on DeepSeekyes, job liveunder 85% of labelled bugs
LLM judge: specific titlesthe title of each findingby handno
implementernew feature behind a flagthe page it renders, flags off and onlive, by handnot yet
run-implementation-planplan vs tracethe trace of a runyes, recorded runyes

The recorded runs go through 2 required checks, static and evals. It fails when a case has no label or when a run in runs/ is older than the skill.

08Part 8 of 8

Summary

4 changes to 1 harness.

4 changes, in short

make-releaseAdd a regression case

The answer key comes from a product rule, not from the agent.

code-reviewImprove a skill, then count

In the recorded run, the better comment came with 5 missed defects.

implementerCheck the work, not the report

It said done and shipped the toggle to everyone. The page with the flags off is the evidence.

run-implementation-planChange a policy, compare plan and trace

1 extra line about README.md let QA skip a code change. The trace showed it.

An eval is a fixed input, an answer key a person wrote, and a grader that applies 1 criterion to the result or to the trace. Make it a required check, and a PR that breaks it can’t be merged.

5 ways to build an eval

ApproachWhere you startIn this workshop

Write a test around a result you can verify: a git tag, a step in a trace.

every merge check

Describe what the skill should do and give Claude a few realistic tasks to try.

not used

Define test cases and compare prompts, models or skill versions side by side.

the Demo 2 matrix

Take a real agent run from your logs and add it to an eval dataset.

not used

Package an agent task with a clean starting environment and a verifier.

not used

Repeat the demos on your machine

demos/
├── 01-release/prompt.md
├── 02-review/prompt.md
├── 03-implementer/prompt.md
├── 04-workflow/prompt.md
└── 05-no-skill/prompt.md

Each file: the prompt from the slide, the start state, the check command, 1 variation to try.

github.com/burnjohn/evals-workshop

On stage

Open demos/<NN>/prompt.md
Paste the prompt into Claude Code

At home: the full install

Node 22.22 or newer, a clone with all branches
npm ci, then npm test runs every lab live on your Claude Code login

Thank you

Ivan LapaSenior Engineer (UI)

A judge is a model too. Test it before you trust it

How to do it

  1. 1 yes/no questionwith 1 example that passes and 1 that fails
  2. A person labels the cases firstpass or fail, and 1 sentence why
  3. Compare the judge with the personcount the bad ones it caught and the good ones it failed
  4. Take cases from live runsthe best inputs and findings come from real agent runs. Some platforms save a run as a test case

Where it is in this repo · live, 3 votes per note

labs/judge
16 release notes, 1 question: “Does the reader know what changes for them and what they have to do?”
Judge vs person
It caught 5 of 5 bad notes and failed 0 of 11 good ones. Another run can differ: each note gets 3 votes.
Why count both
A judge that passes everything still agrees with the person on 11 of 16.
Demo 2 · live
The matrix has 1 judge check, specific titles: does each finding say what breaks and how?

Custom tests, Skill Creator and Promptfoo

ApproachProsCons
Custom evalVitest
  • Exact checks on git, database state or traces
  • Runs the real agent: Claude Code with your plugin, your login
  • You build and maintain the runner and the scoring
  • Live runs cost tokens: CI checks a recorded run instead
Skill CreatorClaude Code
  • Low-code: it drafts cases and runs the skill against a baseline
  • It can also test when a skill activates
  • Built around Claude skills
  • You still review the cases and decide what success is
Promptfooopen source
  • A ready comparison matrix, built-in graders, a results viewer
  • Fits no-skill / current / v2 on the same PR cases
  • You connect the full agent to test its tools or workflow
  • You still define the scoring criteria

OpenAI announced in March 2026 that it is acquiring Promptfoo. The project stays open source.

Braintrust and Harbor

ApproachProsCons
Braintrustfrom production logs
  • Turns a production failure into a reusable eval case
  • The reviewer missed a bug: find the run in Logs, click Add to dataset, label the finding you expected
  • You need to capture traces first
  • A saved run is only an example: you still define the correct result
Harborclean environments
  • Runs agents on the same task in clean environments and grades the files they leave
  • Implementer v1 and v2 get the same starter repo: does each ship the feature behind a flag?
  • You package the environment and the inputs
  • You write the verifier