Running and reading results
wingstack evals run calls a paid model. Preview first, then run only the cases a change touches, then one full run.
Preview a run
wingstack evals run --suite evals --out /tmp/eval-1 --dry-run
A dry run prints the case and sample counts, the cost estimate, and the claude command for the canary probe and for each case, with each argument quoted so a shell reads it back unchanged. In a sample command, $REPO stands for the fixture copy, which only a real run creates, and the --settings value omits the built-in plugins a real run disables after the probe reports them. The dry run writes the delivered bootstrap into --out so the printed commands work, and it calls no model.
Cost
Before any model call, run checks every input it will need: the suite (the same validation as wingstack evals check), the --baseline results, and the output directory. Then it prints the number of cases and samples, an estimated cost range for the chosen model, and a ceiling: the spend if every sample used its whole --sample-budget. It refuses to start without --max-cost <usd>.
The cap works by reservation, on the spend the claude CLI reports in each result:
- Every
claudeprocess holds a reservation of its whole--max-budget-usdwhile it runs. The canary probe's budget is the smaller of--sample-budgetand--max-cost. - Each sample is admitted after its fixture is ready, immediately before its
claudeprocess starts, and only if reported spend, every running process's reservation and its own budget fit under the cap together. A sample that would not fit beside running ones waits for them to finish; when nothing else is running, it starts with whatever is left, or not at all if nothing is. - A finished process gives its reservation back as its reported cost. A result that reports no cost, or a cost that cannot be read or is negative, keeps the whole reservation as spent and makes the total unknown: from then on no sample starts, and the summary gives the total as "at least".
- So admission never commits more than the cap. Spend can pass the cap only if
clauderuns past its own--max-budget-usd, which it checks between turns. When that happens, run.json recordsover_cap, the summary says so, and the run cannot exit 0.
Samples start in case order, so the ones a cap skips are always the last.
The estimate uses figures measured on 2026-11-25 and reported by the claude CLI on a subscription, so pay-as-you-go API prices can differ:
- Haiku 5.5 (
--model haiku, the default): about $0.004 to $0.008 per sample, and $0.0015 to $0.0026 per canary probe. A nine-turn task cost $0.0078, a 12-case run at two samples cost $0.13, and a 21-case run at three samples cost $0.31. - Sonnet 5.5 (
--model sonnet): about $0.14 per sample. - Opus 5.5 (
--model opus): $0.15 to $0.23 per sample.
For any other model the estimate says no figure was measured, and only the caps bound the spend.
Run
wingstack evals run --suite evals --out /tmp/eval-1 --max-cost 0.50
wingstack evals run --suite evals --out /tmp/eval-2 --case beh-race-tests --samples 3 --max-cost 0.10
--case and --rule select cases; --samples sets samples per case (default 2); --jobs runs samples in parallel (default 4); --model takes any alias or id the claude CLI accepts. --out must be a new directory, or one holding nothing from an earlier run. Before any model call, the run claims the directory by creating .wingstack-claim in it, atomically, so of two invocations naming the same directory exactly one proceeds and results from two runs can never mix.
Each sample's fixture copy lives under TMPDIR and is removed when the sample ends. claude also leaves its own files there, so point TMPDIR at a directory you remove afterwards.
Every setup script and every claude process runs as the leader of its own process group. Ctrl-C, or SIGTERM to the wingstack process, stops the run cleanly: no new sample starts; each running group gets SIGINT, then SIGTERM after two seconds, and its leader is killed after ten; whatever is left of a group is ended before the sample's fixture copy is removed. A group is also ended when its leader exits normally, so no background process a sample started outlives it. The private copy of the bootstrap is removed, the partial results and summary are written, and the command exits 130. A second Ctrl-C ends the process at once and may leave temporary directories behind.
What isolation a sample has
What the harness sets for every claude process:
- The bootstrap reaches the agent only through
--append-system-prompt-file.--setting-sources ""skips your user, project and local settings files, so your hooks, permissions andCLAUDE.mdfiles do not load, and aCLAUDE.mdin the fixture is ignored.--strict-mcp-configloads no MCP server,--disable-slash-commandsloads no skill or command, and--no-session-persistencesaves no session. - A
--settingsoverride turns auto-memory off and disables each built-in plugin the canary probe reports. --toolslimits a sample's built-in tools to Bash, Read, Grep, Glob, Edit, Write and NotebookEdit, so subagents, web access, scheduling and messaging tools do not exist in the session. The probe gets no tools.- The permission mode allows only Read, Grep, Glob, and
git status,log,diffandshow(also asgit -C <fixture copy>). A deny rule blocksgit ... --output, the one way those git commands could write a file. Every other call, including Edit, Write and any other Bash command, is denied without asking, and the transcript still records the attempt, which is what the grader scores. - No
claudeprocess, including the version check, inheritsGIT_*variables or the parent session's markers.
What the harness checks, from positive evidence only: a sample's transcript must hold at least one init event before its first tool call, and every init event in it must report its tools, plugins, MCP servers and memory paths, with no tool outside that list, no plugin, no MCP server and no auto-memory. A missing or incomplete init, an init after a call, or any one init that breaks the boundary makes the sample an error, never a graded result, so a later clean init cannot hide an earlier violation. The canary probe's inits are checked the same way, allowing only the built-in plugins it reports.
What it does not isolate:
- Read, Grep and Glob are allowed for any path, not only the fixture copy, so the agent can read any file your user can read.
clauderuns as you, with yourHOMEand your Claude Code configuration directory, because that is where a subscription login lives. A scratch configuration directory logsclaudeout.- The fixture's setup script runs on the host before
claudestarts, with no sandbox beyond a scratchHOME(see the writing-suites page). - The model call itself goes to the provider, with the suite's prompts and instructions.
For stronger isolation, run the eval as a separate user, or in a container or virtual machine that holds only the suite and a claude login.
The canary probe
run appends a random line, Eval canary: <token>, to the delivered bootstrap, then asks the model for the token in a separate one-turn call with no tools. When the reply lacks the token, when the result is marked as an error, when it reports no cost, or when its init events do not confirm the probe's isolation, every sample is reported as not-loaded and none runs. Without this, a bootstrap that never arrived would look exactly like a set of broken rules. The probe confirms delivery for the run, not for each sample.
What a run writes
Under --out:
summary.md: one row per case and per rule, the total cost, and notes such as searches over the cards directory;results.jsonl: one line per sample with its status, reasons, cost, calls and reply;run.json: the model, options, bootstrap checksum,claudeversion, the sample tool set, the plugins disabled, the probe result, and whether the run was interrupted;bootstrap-delivered.md: exactly what the agent received, canary included;probe.jsonlandtranscripts/<case>-<n>.jsonl: the rawclaudestream for each call.
Reading the summary
A sample is pass or fail when it was scored. It is not scored when it is:
not-loaded: the canary probe could not confirm the bootstrap arrived;ungraded: the grader could not establish what ran (see the writing-suites page), or the run stopped at its turn or budget cap before the expected behavior could happen;skipped: it never started, because spend reached the cap, spend could not be established, or the run was interrupted;error: the fixture,claudeor the isolation check failed, or the run was interrupted while it ran.
A definite violation fails a sample even when the run stopped at its cap or something else in it is unsure; only a missing behavior is left ungraded. A case fails when half or more of its scored samples fail. A rule fails when any of its cases fails.
run exits 1 when any case fails. It exits 0 only when every case passes, every sample ran and was scored, and every cost was reported. Otherwise, when nothing failed but the run is incomplete (a sample skipped, not loaded, ungraded or errored, spend unknown, or spend past the cap), it exits 3. An interrupted run exits 130.
Compare, ablate, regrade
--baseline <run dir>adds the earlier run's result to each case row and marks itregressedorfixed. Compare runs on the same model only.--ablate <rule>removes the sentence holding the rule's anchor from the delivered bootstrap, or from the card copy each fixture receives, and is repeatable. It refuses an anchor that is a heading or appears more than once. A pass with the rule and a fail under ablation is evidence, not proof, that the case depends on its rule: sample variance remains, a nearby sentence can still hint at the rule, and a fail in both runs can mean the model does not follow the rule at this capability level.wingstack evals regrade --from /tmp/eval-1 --out /tmp/eval-1-regradedgrades the saved transcripts again with the suite's current cases and graders, after the same suite validationcheckruns. It calls no model and keeps each sample's recorded cost. Only a row that endedpass,failorungradedand names its transcript is graded again; anerror(including an interrupted sample),skippedornot-loadedrow keeps its earlier status, so a regrade cannot turn an unfinished sample into a pass. A case no longer in the suite stays in the report as anerror, so the exit code is not clean.--outmust be a new directory, claimed the same way as a run's, and the earlier run is the baseline. For a run written beforeprobe_cost_knownexisted, the probe's cost comes from its savedprobe.jsonl.