Evals for an agent that runs unattended: what 121 cases tell me
A review comes back with 0 blocking and 13 advisory findings. Five are stale comments, two cite the wrong requirement id, one is a check written twice, one is a copied fake in three test files. The other four are a design opinion, a rollout note, a product question and an API-contract change. What should the pipeline do next?
shipkit has an answer written down, and an eval that checks the agent gives it. The agent passes only if it fixes the nine mechanical ones in one pass, leaves the other four unfixed with a reason, runs the review again, and doesn't count any of this as a round. It fails if it asks me, fixes all thirteen, or skips the re-review. This post is about those evals, and why I needed them once I started letting shipkit run on auto.
Why I needed evals
A rule in a skill is text, and a change to it can alter behaviour somewhere I didn't look. Two rules about the same action once disagreed, and an auto run stopped twice on a merge that was perfectly clean. I needed something that re-asks the agent what it would do on every case I have already been bitten by.
How they work
shipkit's evals run with claude plugin eval. Each case is a short scenario prompt plus a grader written as PASS and FAIL
conditions. The agent answers from the skills only, reading them and saying what it would do, without running anything.
The suite has 121 cases. 89 are named issue-*, and each comes from a real incident. 17 check that Claude picks the right
skill from a plain request, 14 pin a single rule, and one checks that unrelated requests are ignored. A rule in the repo says
a change that alters what an agent decides ships with its eval case in the same commit, so the suite grows with every
mistake.
What the latest runs say
201 runs are recorded since 18 November, including reruns of single cases. Taking the latest result of each case, 119 of the
121 pass. The other two need a look: one passes two runs out of three, and one failed its last recorded run, a case about what
/pr does at the severity stop in an auto run.
The full run on 18 November, 61 cases, passed 52 (86%) and cost about $45. A single case ran in 75 seconds, so after most changes I run a tag or one case and keep the whole suite for rarer occasions.
What they can't tell me
These evals check decisions the agent makes from reading the rules, so they can't tell me whether a terminal in a real
worktree behaves. The worktree removal bug, the timers that slept their full two hours and the submodule that git status
shows with a dash were all found by running on real tickets, and each then became both a fix and a case. An LLM grader can
also be wrong, and a case that passes today only says the rules still read the way I think they do.
The evals also don't say how often a run reaches the end without me. shipkit doesn't record its stops yet, so for now that number comes from reading each ticket's state file, as in the ticket I described earlier.