Pages

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 claude process holds a reservation of its whole --max-budget-usd while it runs. The canary probe's budget is the smaller of --sample-budget and --max-cost.
  • Each sample is admitted after its fixture is ready, immediately before its claude process 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 claude runs past its own --max-budget-usd, which it checks between turns. When that happens, run.json records over_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 and CLAUDE.md files do not load, and a CLAUDE.md in the fixture is ignored. --strict-mcp-config loads no MCP server, --disable-slash-commands loads no skill or command, and --no-session-persistence saves no session.
  • A --settings override turns auto-memory off and disables each built-in plugin the canary probe reports.
  • --tools limits 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, diff and show (also as git -C <fixture copy>). A deny rule blocks git ... --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 claude process, including the version check, inherits GIT_* 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.
  • claude runs as you, with your HOME and your Claude Code configuration directory, because that is where a subscription login lives. A scratch configuration directory logs claude out.
  • The fixture's setup script runs on the host before claude starts, with no sandbox beyond a scratch HOME (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, claude version, 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.jsonl and transcripts/<case>-<n>.jsonl: the raw claude stream 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, claude or 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 it regressed or fixed. 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-regraded grades the saved transcripts again with the suite's current cases and graders, after the same suite validation check runs. It calls no model and keeps each sample's recorded cost. Only a row that ended pass, fail or ungraded and names its transcript is graded again; an error (including an interrupted sample), skipped or not-loaded row 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 an error, so the exit code is not clean. --out must be a new directory, claimed the same way as a run's, and the earlier run is the baseline. For a run written before probe_cost_known existed, the probe's cost comes from its saved probe.jsonl.

Built from commit d0fd30a44c8b (2026-11-26).