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.
- What it is
bin/skill-eval, a wrapper around Claude Code'sclaude plugin evalthat 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.pyandskill_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.
tddis 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.
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.
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.
| Case | Prompt | Planted problem |
|---|---|---|
bug-natural | A user bug report, no mention of tests | A bill splitter loses a cent |
feature-natural | A feature request, no mention of tests | A slug function needs a max length |
bug-explicit-tdd | Asks for a test-first fix | A 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
| Case | With skill | Without | Δ | Skill loaded |
|---|---|---|---|---|
bug-explicit-tdd | 1, 1, 1, 1, 1 | 1, 1, 1, 1, 1 | 0 | 5/5 |
bug-natural | 1, 1, 1, 1, 1 | 1, 1, 0.5, 1, 0.5 | +0.2 | 0/5 |
feature-natural | 0.5, 0.5, 1, 0.5, 0.5 | 0.5, 1, 0.5, 0.5, 0.5 | 0 | 1/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.
| Label | When |
|---|---|
too-new | Fewer than 14 days of corpus after the rule landed |
never-fires | The situation never arose after landing |
not-holding | At least one violation after landing, counted even if a guard denied it |
holding | The 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
| Tool | Lines | Measures |
|---|---|---|
bin/skill-eval | 172 | Δ for one skill's suite; --dry-run builds the plugin and prints the command without spending |
bin/skill_census.py | 269 | How tdd reaches real coding chats, and whether they tested first |
bin/guard_score.py | 494 | Base rate of a regex or hook; rule-probe labels |
bin/failure_harvest.py | 439 | Retried 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
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-builderlane 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
| Item | Why it matters | Status |
|---|---|---|
Rework the tdd skill's trigger and re-measure | The eval and the census agree it rarely loads on a natural prompt | next stem |
| Grader scenarios to confirm on real runs | Three 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 offline | calibration |
Evals for the tdd-builder lane agent | Brainstorm open since 2026-10-08: first a free scorecard of past lanes from committed records, aimed at the rework rate, then a small live eval | open brainstorm |
| Widen a rule probe that misses a known shape | A probe that cannot see a git -C <dir> -c user.… form under-reports violations | high |
| A/B evals for prose rules | A headless with/without test for rules the corpus cannot see | revisit |
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,meanDelta0.067,costUsd4.73, 666 s,partial: false, read 2026-10-08.bin/skill_census.pyanddocs/plans/tdd-trigger/plan.md.docs/workflow/guard-scoring.md,bin/guard_score.py,bin/failure_harvest.py; probes indocs/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 underagents/, line counts fromwc -l.