Skip to content

X37 - A builder on Sonnet

Purpose: The result of the spike for I826I826 (closed): X37-sonnet-builder: A builder on SonnetDoes a builder on Sonnet 5.5 at medium effort hand back a pull request for a closed issue that the unchanged reviewers accept in as many rounds as the original from Opus 5.5, for less money?. Does a builder on Sonnet 5.5 at medium effort hand back a pull request for a closed issue that the unchanged reviewers accept in as many rounds as the original from Opus 5.5, for less money?

Requirements: none. The spike measures an agent that builds Wraith Box, not the product.

Brief: B826-sonnet-builderB826-sonnet-builder: Can builders run on Sonnet and hand back the same work for less?No, not an improvement.

From I826I826 (closed): X37-sonnet-builder: A builder on SonnetDoes a builder on Sonnet 5.5 at medium effort hand back a pull request for a closed issue that the unchanged reviewers accept in as many rounds as the original from Opus 5.5, for less money?: does a builder on Sonnet 5.5 at medium effort hand back a pull request for a closed issue that the unchanged reviewers accept in as many rounds as the original from Opus 5.5, for less money? Builders are 36% of a campaign’s spend (R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding.). The issue asks for an answer per kind of issue.

No, a builder on Sonnet is not an improvement. That is the maintainer’s reading (I826I826 (closed): X37-sonnet-builder: A builder on SonnetDoes a builder on Sonnet 5.5 at medium effort hand back a pull request for a closed issue that the unchanged reviewers accept in as many rounds as the original from Opus 5.5, for less money?) of the answers by kind of issue: no for the spec issue, no by a small margin for the Swift feature, and yes with conditions for the wb-netd fix and the test fix. Each kind rests on one rebuild, I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). included, so none of these answers moves a builder alone. Sonnet’s rebuilds cost 9% to 34% of the originals’ first builds, and all four passed the gate. The grade follows the question: the rounds a rebuild would need against the original’s, and the money.

R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding. wrote its decision rule before the run, and none of its moves passes it. Rank 1, test builders, asks for three test rebuilds, and one ran. Rank 4, the other builders that aren’t security-sensitive, asks that the rebuilds of I611I611 (closed): User docs: list the V1 limits, starting with the GUI-session limit of S06-04Found in the code review of #608 (#224)., I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). and I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1. have no must-fix the original didn’t have, and those of I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). and I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1. each have at least one. Rank 5, security-sensitive builders, asks for more than two security-sensitive rebuilds, and one ran.

The tool and the tables are x37.py and results/ on the spike branch, at spikes/x37-sonnet-builder/ at 2564730. The reviews run through spikes/x34-review-replay/x34.py on the same branch.

From results/paired.md. Lines are added and deleted in the diff against the base. Review counts are must-fix, fold and drop.

Issue Side Gate $ Min Calls Lines Code r1 Security r1 Judge’s pick
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). spec original passed 3.50 15.5 69 +377/-14 2, 8, 4 0, 6, 0 original, high
Sonnet passed 0.32 5.0 13 +147/-3 1, 7, 3 4, 5, 0
I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): wb-netd original passed 1.20 13.9 40 +18/-9 1, 3, 1 0, 4, 2 original, medium
Sonnet passed 0.16 6.3 10 +14/-7 1, 2, 2 1, 5, 0
I589I589 (closed): wb-netd: TestAnswerFails/report_slow answers instead of timing out (flaky on macOS)TestAnswerFails/report_slow (packages/wraithbox-go/internal/netd/synth/pool_test.go:161) failed on Go (xcode-27) in CI on #588, a pull request that doesn't change internal/netd or any package its tests build: test original passed 0.58 9.5 18 +24/-17 0, 3, 1 0, 2, 1 original, medium
Sonnet passed 0.20 3.5 10 +27/-13 0, 1, 1 0, 4, 0
I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1. feature original passed 3.59 14.4 76 +480/-98 0, 4, 3 - original, medium
Sonnet passed 0.90 21.1 45 +236/-43 1, 6, 2 -

For I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). and I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025):, today’s setup also reviewed the original heads (runs today-spec-1, and today-1 and today-2 of X34-review-replayX34-review-replay: Replaying a campaign's reviewsCan a replay of the first-round reviews of a finished campaign, at fixed pull request heads and scored against the reference defects of R11-review-overlap, tell two reviewer setups apart?). That takes the Claude Code version and the model out of the difference.

Issue Side Code r1 Security r1
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). original, today’s setup 3, 4, 1 1, 8, 0
rebuild 1, 7, 3 4, 5, 0
I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): original, today’s setup, two runs 1, 2, 1 and 0, 2, 1 1, 5, 1 and 0, 4, 2
rebuild 1, 2, 2 1, 5, 0

Two runs of today’s setup on the same five heads disagree on 7 of 38 entries of the known-defect list for the code reviewer (18%), and on 8 of 38 for the security reviewer (21%), as X34-review-replayX34-review-replay: Replaying a campaign's reviewsCan a replay of the first-round reviews of a finished campaign, at fixed pull request heads and scored against the reference defects of R11-review-overlap, tell two reviewer setups apart? measured. On one pull request, a difference of one or two findings in a rating is within that rate. So the counts above don’t mean anything alone. I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20).’s security must-fix findings, four against one, are the difference that comes closest to more than noise, and after reading it shrinks: one of the four, anchor apple, is a rating difference on a shared finding, and one is close in kind to the original’s single must-fix. Every reading below rests on reading the findings, not on the counts.

The rule for “its own”, on both sides: a must-fix is a change’s own when the other change doesn’t have its defect. A finding on text or code that only one change wrote is that change’s own. A finding whose defect is in both changes is shared, whatever the ratings.

Each rebuild must-fix, read against the original change.

Rebuild finding What it says Reading
I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): code F1 end sets k.ended and unlocks before it notes the end shared: the original’s code r1 F1 is the same defect, and today’s today-1 found it on the original too
I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): security F1, low the hand-off streams stay open while a log write blocks reviewer noise: today’s today-1 rated the same point must-fix on the original, and the maintainer ruled it not valid in X34-review-replayX34-review-replay: Replaying a campaign's reviewsCan a replay of the first-round reviews of a finished campaign, at fixed pull request heads and scored against the reference defects of R11-review-overlap, tell two reviewer setups apart?
I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1. code F1 C11-host-daemonsC11-host-daemons: Host Daemons, Audit, and DisksThe test cases for the host daemons' own checks: wb-vmd's device set and slots, the image build bundle, supervision, the accounting and event channels, the daemon log pipes, the audit writer, free space, and the data… still says “a Start with provisioning set is refused in every slot” the rebuild’s own, missing work: the original changed C11-host-daemonsC11-host-daemons: Host Daemons, Audit, and DisksThe test cases for the host daemons' own checks: wb-vmd's device set and slots, the image build bundle, supervision, the accounting and event channels, the daemon log pipes, the audit writer, free space, and the data…
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). code F1 wb-hostd runs xcodebuild and codesign and builds the disk, which S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. forbids, “and no S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. page changes” the rebuild’s own: the original’s code r1 F2 was close, but the original moved that work to other processes and changed S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. and S04-04-vm-processesS04-04-vm-processes: Per-VM ProcessesOne wb-vmd for each VM, the wb-vmd-layer entry of the Claude Code layer build, the wb-vmd-recipe entry of a named image's recipe, and wb-diskfmt, which formats a VM's new data disk.
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). security F1, high the same widening of wb-hostd: a compromised wb-hostd “could then attach a guest-written disk on the host” (SEC15-no-guest-disk-mountSEC15-no-guest-disk-mount: The host never mounts a guest-written diskA disk image is guest-written once a guest has run with it attached, and every copy or clone of a guest-written image is guest-written too.) the rebuild’s own, the root of code F1
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). security F2, high wb-hostd downloads runtimes with xcodebuild -downloadPlatform, where S17-03-downloadsS17-03-downloads: DownloadsHow wb-download fetches what an image build needs from the internet. says “Only wb-download fetches” the rebuild’s own: the original has the user export the runtimes and says “wb-hostd never runs xcodebuild on the host”
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). security F3, medium the requirement anchor apple “is wrong in both directions” shared, rated higher: the campaign’s round 1 security review of PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet. had the same point as its F1 (fold, medium), and today’s today-spec-1 as its F3 (fold). The original fixed it in its first fix round (item 1 below)
I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). security F4, medium the guest checks the app “with codesign again”, with no requirement and no fail rule the rebuild’s own spec gap

The other direction: today’s code reviewer gave the original I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). three must-fix findings, F1 to F3, and all three are its own, on text only the original wrote: Decided: lines that its own brief calls “Awaiting decision”, the wb-diskfmt contract in S04-04-vm-processesS04-04-vm-processes: Per-VM ProcessesOne wb-vmd for each VM, the wb-vmd-layer entry of the Claude Code layer build, the wb-vmd-recipe entry of a named image's recipe, and wb-diskfmt, which formats a VM's new data disk., which the original extended only in part and the rebuild left alone, and a brief that lists an S06-02-image-buildS06-02-image-build: Image BuildHow wb image build makes a guest image: the build VM, its two provisioning stages, terminfo, sealing, and storage. change the pull request doesn’t make. So the rebuild’s lead in code must-fix findings comes from writing less, and writing less also caused the bigger findings above.

Today’s security reviewer also gave the original I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). one must-fix (F1, medium) of its own. A compromised wb-hostd writes a crafted folder, or a link, at <data>/xcode-runtimes and asks for wb-diskfmt-xcode, which checks and copies those bytes in the one helper that reaches the disk services. A parser flaw there would reach SEC15-no-guest-disk-mountSEC15-no-guest-disk-mount: The host never mounts a guest-written diskA disk image is guest-written once a guest has run with it attached, and every copy or clone of a guest-written image is guest-written too.. That is close in kind to the rebuild’s security F1: both are about what a compromised wb-hostd can reach. The difference is in the step. In the original, wb-hostd needs a second flaw, in a helper that is confined and runs once. In the rebuild, wb-hostd builds and attaches the disk itself, so no second flaw is needed. The rebuild’s F2 (wb-hostd downloads) has no match on the original. By the rule above both F1 findings are their side’s own, since neither change has the other’s defect.

So under today’s reviewers, I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20).’s own must-fix findings are four on each side. The original’s: code F1 to F3, about its decision lines, a partial contract and its brief, and security F1, medium. The rebuild’s: code F1 and security F1, F2 and F4, two of them high and three about host work in wb-hostd that S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves. forbids. The counts are equal. The difference is in what the findings are: the original’s are fixed in the text, and the rebuild’s need the design changed.

The rebuilds are smaller: +147 against +377 lines for I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20)., +236 against +480 for I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1.. For I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). and I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): the judges and a file-by-file read agree that the difference is mostly work the issue or its triage asked for. For I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1. it isn’t: the judge rated the rebuild “met” on all seven points it took from the issue and its comments.

Today’s reviewers on the rebuilt heads, against the original round 1 reviews. The original side is results/original-reviews.json (x37.py original-reviews): the first review per pull request and reviewer in R11-review-overlapR11-review-overlap: Overlap of the code and security reviewsHow much the code review and the security review of one pull request overlap, what each catches that the other misses, and which review lanes follow from that.’s transcript data, priced from its token counts as input + 1.25 × 5-minute cache writes + 2 × 1-hour cache writes + cache reads at the model’s read rate + 5 × output, times the model’s input list price.

PR Reviewer Original r1, about $ Rebuild review $
PR626PR626 (merged): docs(spec): Xcode image from a host-built read-only diskAn image that needs full Xcode now gets it from the Mac it runs on, never from the internet. (I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20).) code 1.74 1.03
security, Fable 5.1 then 5.59 3.04
PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards. (I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025):) code 0.66 0.85
security 5.18 3.43
PR733PR733 (merged): test(netd): decide TestAnswerFails slow cases with a synctest clockA test that checks the address pool refuses a name when the proxy or host answers too slowly sometimes passed the answer through on a busy CI machine. (I589I589 (closed): wb-netd: TestAnswerFails/report_slow answers instead of timing out (flaky on macOS)TestAnswerFails/report_slow (packages/wraithbox-go/internal/netd/synth/pool_test.go:161) failed on Go (xcode-27) in CI on #588, a pull request that doesn't change internal/netd or any package its tests build:) code 0.32 0.55
security 3.46 1.89
PR810PR810 (merged): feat(swift): run ProvisioningCheck in wb-vmd's start pathThe build VM's wb-vmd now really starts a VM with the macOS provisioning options, the step that creates the guest admin user and turns on remote login for the image build's one SSH session. (I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1.) code 0.58 0.98

Today’s security reviewer on the original I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): head cost $5.68 and $6.15, against $3.43 on the rebuild. A smaller change takes a smaller security review. That saving comes with the missing work above.

What an extra round would cost, from R12-model-fit-by-roleR12-model-fit-by-role: Model fit by agent roleWhich agent roles could run on Sonnet 5.5, or at a lower effort, at the same quality, what each move would save, and how to test each one before deciding., “A cost model”:

$15.73 for 16 headless sessions, from results/sessions.json: rebuilds $1.57 (I589I589 (closed): wb-netd: TestAnswerFails/report_slow answers instead of timing out (flaky on macOS)TestAnswerFails/report_slow (packages/wraithbox-go/internal/netd/synth/pool_test.go:161) failed on Go (xcode-27) in CI on #588, a pull request that doesn't change internal/netd or any package its tests build:’s is the proof run), reviews $12.70 with the void one’s $0.91, and pair judges $1.46. Elsewhere the page rounds each rebuild first, which gives $1.58. The two failed starts stopped before a session. The issue expected about $40.

Seven calls where your verdict would change a reading. Locations in a rebuild are given as file and line, because rebuilt branches aren’t pushed.

  1. I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20). security F3, anchor apple: must-fix on the rebuild, fold on the original.
  2. I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20)., fewer code must-fix for the rebuild. Today’s code reviewer gave the original three and the rebuild one.
    • Reading here: all three of the original’s are about text the rebuild never wrote. Fewer findings here aren’t a better change.
    • Your verdict:
  3. I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20)., the shorter spec. The judge: the rebuild “never touches S06-04-vms-and-placementS06-04-vms-and-placement: VMs and PlacementThe work VM and the isolated VM, Xcode in them, and which VM a project's sessions run in.” and its spec “has no Status, Requirements or Tests lines”.
  4. I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025):, synth/stream.go left in the old order. The judge calls it “a guest-visible refusal in internal/netd that the triage comment asked to check”. The triage’s wording covers TestServeStreamRechecks in synth/pool_test.go, whose cases see the pipe close and then read Recorder().Count, the order the issue is about. (TestSyntheticPool’s cases, which the triage also names, are refused at the SYN in Stack.refuse, which the rebuild did fix.)
  5. I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1., when the password is read. The judge prefers the original, which reads the password before it builds the VM. The original’s own code review F3 (fold) said the opposite: “The password is read before steps that can still fail”.
    • The question: which order is right? If the review is, the judge’s second reason for preferring the original falls away.
    • Your verdict:
  6. I589I589 (closed): wb-netd: TestAnswerFails/report_slow answers instead of timing out (flaky on macOS)TestAnswerFails/report_slow (packages/wraithbox-go/internal/netd/synth/pool_test.go:161) failed on Go (xcode-27) in CI on #588, a pull request that doesn't change internal/netd or any package its tests build:, a blocking fake or synctest. The judge prefers the original for using testing/synctest and leaving the shared fake alone, and calls the rebuild “correct but adds surface to a helper that other tests use”.
    • The question: is that a quality gap, or a matter of taste?
    • Your verdict:
  7. I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1., a builder that tried to kill every mise run ci. Not a finding of a reviewer. pkill -f "mise run ci" was refused.
    • The question: is that a risk of Sonnet, or of the builder’s instructions on a shared machine, where one builder’s wait can end another’s run?
    • Your verdict:

Four closed issues were rebuilt by the builder agent on Sonnet 5.5 at medium effort, each from the original pull request’s starting point, with no way to see the original. All four passed the project’s checks when the spike’s tool ran them after hand-back, and together they cost $1.58, where Opus’s first builds of the same issues cost $8.87. Today’s reviewers then reviewed each rebuild once, and a judge compared each with the original without being told which was which. The judge preferred the original every time. For the spec issue, the Sonnet builder put work into a process that the architecture forbids from doing it, which the security reviewer rated as blocking, and left out a spec page the triage named. That gap is real and large, and a fix round can’t cheaply repair it. For the network fix, it left a second place in the network code with the same ordering bug, but both reviewers caught it as a smaller finding, and otherwise the reviews can’t tell the two changes apart, so it likely needs no more review rounds than the original. For the Swift feature, the rebuild did what the issue asked but left a test document out of date and wrote fewer tests, so it likely needs one more review round than the original, and would still cost less with it. For the test fix, both versions are fine, and Sonnet’s cost a third as much. Each kind of issue rests on one rebuild, the spec issue too, which isn’t enough to move a kind of builder. The spike didn’t run fix rounds, so the rounds are inferred from the first review, not measured.

This section is a recommendation, not a rule.

Nothing. No S* page or SEC* control describes the build harness, and the builder agent file doesn’t change.

spike/x37-sonnet-builder at 2564730. results/ holds the paired table, the originals’ costs, the costs of their round 1 reviews, the edit history of their bodies and every session’s cost. Raw transcripts, review texts and the rebuilt branches stay on the maintainer’s disk.

Status: Answered 2026-11-29: no. All four Sonnet rebuilds passed the gate for 18% of the cost, and the blind judge preferred the original on all four. By kind of issue, one rebuild each: no for the spec issue, no by a small margin for the feature, yes with conditions for the wb-netd fix and the test fix. Decided 2026-11-29 (I826I826 (closed): X37-sonnet-builder: A builder on SonnetDoes a builder on Sonnet 5.5 at medium effort hand back a pull request for a closed issue that the unchanged reviewers accept in as many rounds as the original from Opus 5.5, for less money?): not an improvement, builders stay on Opus 5.5.