Evals and guard scoring

The harness measures itself two ways: a sandboxed with-versus-without eval for one skill, and read-only tools that replay every recorded session to score guards, rules and skill routing. The numbers so far are small, and the page says so.

  • Agent evaluation
  • Ablation testing
  • Offline replay
  • Grader calibration
What it is
bin/skill-eval, a wrapper around Claude Code's claude plugin eval that runs a skill's cases with and without the skill loaded and reports the score difference (Δ). Beside it, three corpus readers over the local transcript store: guard_score.py, failure_harvest.py and skill_census.py.
What it isn't
Not a benchmark of the model, and not a gate. No eval result blocks a skill edit or a push. Eval runs strip the global prompt, hooks, settings and memory, so they test what a skill carries on its own, not the harness as a whole.
Why it exists
Prose instructions are cheap to write and expensive to trust. tdd is the most-invoked skill, and until the first run nothing measured whether its text changes what the agent builds. On the guard side, a hook that runs before every shell call should have a measured base rate before it is allowed to block anything.
1 of 18skills with an eval suite
30runs in the one Δ reading
+0.07mean Δ, at n=5 per arm
$4.73cost of that reading
0 of 9agents evaluated

How it works

There are two sources of evidence and one decision point. The live eval spends money to create new runs under controlled conditions. The corpus readers spend nothing: every past session's transcript is already on disk, so they replay it. Neither one edits a skill, writes a lesson or builds a guard. A person reads the output and decides.

live · costs money · sandboxed Skill + cases 3 cases · 4 graders claude plugin eval with vs without skill Δ per case result.json replay · free · read-only Transcripts every past session Corpus readers census · score · harvest Readings rates · hits · clusters Operator decides skill · guard · lesson No reading exit 3, errors listed every run errored
Paid runs and free replay feed the same human decision. The dashed red path is the failure the wrapper refuses to dress up: when every run errors, it exits 3 instead of reporting a score of zero as if it were a reading.

The skill eval

bin/skill-eval <skill> copies the skill and its cases into a throwaway plugin with its own manifest (a manifest at the repo root would load every skill at once), then runs claude plugin eval with the model pinned, Bash allowed, and a cost ceiling. Each case seeds a small stdlib Python package with one planted problem. The sandbox has no network.

CasePromptPlanted problem
bug-naturalA user bug report, no mention of testsA bill splitter loses a cent
feature-naturalA feature request, no mention of testsA slug function needs a max length
bug-explicit-tddAsks for a test-first fixA duration parser returns 0

Four deterministic graders score each run: whether the skill was loaded (reported as a rate, not scored), whether a test ran before the first edit of the source file (double weight), whether a new test uses the planted input, and whether the last test output is green. No model grades a model. Every regex grader is proven offline against one fixture it must match and one it must not.

The one reading, read plainly

CaseWith skillWithoutΔSkill loaded
bug-explicit-tdd1, 1, 1, 1, 11, 1, 1, 1, 105/5
bug-natural1, 1, 1, 1, 11, 1, 0.5, 1, 0.5+0.20/5
feature-natural0.5, 0.5, 1, 0.5, 0.50.5, 1, 0.5, 0.5, 0.501/5

At five runs a side, no Δ here is a finding. The explicit case is at ceiling: told to work test-first, both arms did. The +0.2 on bug-natural is five of five against three of five on one grader, and the skill never loaded in that arm, so whatever moved the score was not the skill's body. The useful signal is about routing. Across the two natural-prompt cases the skill loaded once in ten runs, and that run was the only one in either arm that wrote a failing test first. So the skill does what it says when invoked, and is rarely invoked unless the prompt asks for TDD.

Before anyone rewrote the skill's description on that basis, skill_census.py checked real use, where the global prompt (stripped in the eval) is what routes a bug fix to tdd. Over 138 coding chats, 48 (34.8%) neither got tdd in any form nor tested before their first edit. The threshold for acting had been written into the plan before any number existed, and 34.8% cleared it, so the description rework stays open as the next stem. The census also found that the main chat almost never loads tdd itself (2 of 138): it reaches real work through the tdd-builder subagent, which loaded it before its first source edit in 360 of 400 runs, exactly on its 90% bar.

Guard scoring and rule probes

guard_score.py replays a regex, or an existing hook fed exactly the payload the runtime would send, over every recorded shell call, and prints the base rate and every hit for a hand check. Its --rules mode scores prose rules: a lesson's status row can carry a probe, a pair of regexes for "the situation arose" and "the rule was broken", and each probed rule is labelled from calls after its landing date.

LabelWhen
too-newFewer than 14 days of corpus after the rule landed
never-firesThe situation never arose after landing
not-holdingAt least one violation after landing, counted even if a guard denied it
holdingThe situation arose and no violation followed

Five rules carry a probe today. In the one recorded round of guard candidates, five shell shapes were scored over about 67,000 calls against a written build bar (at least 3 true hits, zero false positives, at most 1% of calls). Two were built and three recorded do-not-build. failure_harvest.py runs the same reader to find shell calls that failed and then passed on a retry, clusters them, and marks which clusters a guard already covers. It feeds the end-of-session lesson step on the Lessons to guards page.

AI engineering practices it demonstrates

  • Ablation, not anecdote. The same cases run with and without the skill under one pinned model, so the reading is a difference, not a score in isolation.
  • Pre-registered decision rules. The census threshold for reworking the skill was written into the plan before the census ran, and applied as written.
  • Deterministic graders, calibrated against traces. Every grader verdict checked against a real trace was right; two graders have only been seen failing on offline fixtures, and the doc says so. No grader is loosened without naming the run it mis-scored.
  • Errors are not scores. An eval that errors at zero turns reports a score of zero; the wrapper reads its own result, lists errored runs, and exits 3 when no reading exists.
  • Offline replay before online enforcement. A guard's false-positive rate is measured on the real corpus before it can block a single call.
  • Cost ceilings. Every live run passes a dollar cap; hitting it aborts and marks the result partial.
  • Privacy of the corpus. Readers print to stdout only, and the census prints counts and file:line, never prompt text or commands.

Capabilities

ToolLinesMeasures
bin/skill-eval172Δ for one skill's suite; --dry-run builds the plugin and prints the command without spending
bin/skill_census.py269How tdd reaches real coding chats, and whether they tested first
bin/guard_score.py494Base rate of a regex or hook; rule-probe labels
bin/failure_harvest.py439Retried failures, clustered; guard fires; hook asks

Benefits

  • A proposed skill rewrite was checked against 138 real chats before anyone touched the text, for no model spend.
  • Shell guards ship with a known false-positive rate instead of a guess.
  • A full Δ reading costs a few dollars and about eleven minutes, cheap enough to repeat after a skill edit.

Limits

Where it loses

Almost nothing is evaluated yet. One skill of 18 has a suite, with three small cases and one Δ reading at n=5, which cannot separate a real effect from noise. None of the nine agents, none of the global prompt's rules, and no end-to-end multi-agent run has an eval.

  • What isn't evaluated. The other 17 skills; the tdd-builder lane agent (excluded on purpose, because an isolated eval strips the brief it depends on); the global prompt (the eval strips it); hooks, except through their unit tests and corpus replay.
  • Not a gate. No eval or census result blocks an edit or a push, and the eval and census test suites are not on the pre-push gate.
  • Toy tasks. Each case is a one-function stdlib package. A harder task might separate the arms where these cannot.
  • The corpus is one person's. Census rates and guard base rates come from one operator's sessions, and the census's list of test commands is a floor, so its "not test-first" share leans high.
  • Only shell is probeable. Rules about reading before editing or tool order leave no regex-matchable trace.
  • Machine friction. On the operator's Mac the eval sandbox refuses to start while Docker's config folder holds symlinks; the workaround is moving that folder aside for the run.

Roadmap

ItemWhy it mattersStatus
Rework the tdd skill's trigger and re-measureThe eval and the census agree it rarely loads on a natural promptnext stem
Grader scenarios to confirm on real runsThree ways a grader could mis-score were raised in review and have not appeared yet; until they do, two graders' failing side is proven only offlinecalibration
Evals for the tdd-builder lane agentBrainstorm open since 2026-10-08: first a free scorecard of past lanes from committed records, aimed at the rework rate, then a small live evalopen brainstorm
Widen a rule probe that misses a known shapeA probe that cannot see a git -C <dir> -c user.… form under-reports violationshigh
A/B evals for prose rulesA headless with/without test for rules the corpus cannot seerevisit

Sources

  • docs/workflow/skill-evals.md: the reading, the census table, calibration, the sandbox workaround.
  • bin/skill-eval, evals/skills/tdd/ (three cases, four graders each), bin/tests/test_skill_eval.py.
  • evals/results/tdd/20261005T212832Z/result.json (local, gitignored): per-run scores, meanDelta 0.067, costUsd 4.73, 666 s, partial: false, read 2026-10-08.
  • bin/skill_census.py and docs/plans/tdd-trigger/plan.md.
  • docs/workflow/guard-scoring.md, bin/guard_score.py, bin/failure_harvest.py; probes in docs/lessons-status.json.
  • docs/plans/lessons-to-guards/evidence/shape-scores.md: five shapes, two built.
  • docs/brainstorms/tdd-builder-evals.md: verdict open.
  • Counts: 18 skill folders under skills/, 9 files under agents/, line counts from wc -l.

Facts as of 2026-10-08. The Δ reading is from 2026-10-05; the census from 2026-10-06.