Campaign 622: network floor, lane mac
Ended 2026-11-09: wave 1 merged nothing into the train itself: its headless session exited while the wave lead waited on its own check watches (I631I631 (closed): Campaign waves end when the wave lead waits on its own background work: claude -p exits on its interim resultWave 1 of campaign #622 ran claude -p "/wave ...). Train train/622 in PR623PR623 (merged): Train 622: Campaign 2026-11-09 (V1-M3-network-floor, lane mac)Train of campaign #622.. To veto a pull request on the train, comment veto #<pr> on PR623PR623 (merged): Train 622: Campaign 2026-11-09 (V1-M3-network-floor, lane mac)Train of campaign #622..
In short
Section titled “In short”The train makes wb-proxyd forget a VM’s previous run when the VM starts fresh. It also designs how an image gets Xcode from the host, and gives the daemon that builds the Claude Code layer a VM slot of its own. A test fix at landing found a macOS race in passing sockets between processes.
wb-proxydclears a VM’s state at a fresh start, and its wildcard count at a new active period. Until now nothing toldwb-proxydabout either event, so it kept the last run’s names, wildcard count, and policy for the next run. A freshwb-netdthen had its first lookup at each reused address refused as a conflict. The control contract betweenwb-hostdandwb-proxydgains a field and a message kind, which needs your approval. 531 lines of Go and proto, two thirds of them tests.- An image gets full Xcode from the host’s own Xcode, on a read-only disk. Wraith Box checks Apple’s signature on the host’s Xcode and on simulator runtimes the user exported, copies them onto a disk image, and root installs them in a build VM with no network. It’s a design without code yet, and its measurements wait for a Mac with Xcode. Two one-way decisions in it wait for you.
wb-vmd-layerruns in alayerslot, apart from the installer’sbuildslot. With a shared slot, the layer build would have taken the provisioning options that create the guest admin user with a password. Now only thebuildslot accepts them. 112 lines of Swift. The new check isn’t called from a start request yet, because no request has provisioning options yet.- Tests keep a passed socket open until its receiver holds it. The proxy change’s new tests failed now and then at landing, and you held the train. On macOS, the kernel can flush a Unix socket passed to another process when its sender closes its copy too early. 31 lines of test code fix the tests. The daemons’ own senders have the same pattern and still need the fix, which fails closed meanwhile. You decide whether that fix rides this train.
What needs you
Section titled “What needs you”- Approve the control contract change.
HandoffSocketgains afreshfield, and the messages fromwb-hostdtowb-proxydgain a kind,ActivePeriodStart, which doesn’t hold a descriptor and isn’t acknowledged. The issue decided that you approve this contract change in review. Merging the train approves it, andveto #628on the train pull request removes it. (PR628PR628 (merged): feat(proxyd): a fresh hand-off socket and ActivePeriodStart clear a VM's statewb-proxyd keeps its own checked copy of each VM's DNS names, a count of the wildcard names it accepted, and the VM's policy., I573I573 (closed): wb-proxyd: no control message says a VM started fresh or a new active period beganS07-06-name-mapping, "Lifetime", says the copy of the name mapping is cleared only at a start that isn't a restore.) - Xcode image, the license. Option A: the build refuses with
xcode-license-not-acceptedunless the host’s record says you accepted the license of that exact Xcode build, and the guest then accepts it for the copy. You open Xcode once after each update. Option B: the guest accepts the license without looking at the host. The agent recommends A, with medium confidence. (B194-xcode-imageB194-xcode-image: How does an image get full Xcode and the simulator runtimes?From the host., 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.) - Xcode image, the runtimes. Option C: you export each simulator runtime on the host once, with
xcodebuild -downloadPlatform iOS -exportPath. The build puts it on the same read-only disk. Option D: the build VM gets a network and downloads runtimes, which needs pass mode for Apple’s hosts and weakens SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.. The agent recommends C, with high confidence. (B194-xcode-imageB194-xcode-image: How does an image get full Xcode and the simulator runtimes?From the host.) - Xcode image, the wording of the disk mount control. The host may format a blank disk image it made before any guest has run with it. The Xcode disk relies on that exception, as the data disk does, but its shim also fills the volume. The spec reads the exception as covering that and leaves the control’s text alone. The brief asks whether it should say “format and fill”. (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., B194-xcode-imageB194-xcode-image: How does an image get full Xcode and the simulator runtimes?From the host.)
- The harness defect that ended the campaign. When a wave lead ends a turn while its own background work runs, the dispatcher gets a
completednotification for it and ends its turn. Thenclaude -pexits and stops the lead. Wave 1 ended that way after 50 minutes and didn’t write a wave report, so this page comes from the pull requests and their reviews. The fix is in harness paths, so it goes tomainand waits for you. (I631I631 (closed): Campaign waves end when the wave lead waits on its own background work: claude -p exits on its interim resultWave 1 of campaign #622 ran claude -p "/wave ...) - Merges by the manager, not the wave. The wave merged nothing. After its session exited, the campaign manager merged the proxy change, the layer slot change and, at your request, the Xcode design into the train. The Xcode design was first rebased onto the train and got a third round of both reviews. For each, the manager checked the train merge check on GitHub: approved, re-checked head, checks green, mergeable, and no harness path changed. Veto them like any other pull request on the train. (PR628PR628 (merged): feat(proxyd): a fresh hand-off socket and ActivePeriodStart clear a VM's statewb-proxyd keeps its own checked copy of each VM's DNS names, a count of the wildcard names it accepted, and the VM's policy., PR625PR625 (merged): fix(swift): wb-vmd-layer gets a layer slot of its ownThe VM daemon that builds the Claude Code layer of an image used to share its slot with the daemon that installs macOS, so the daemon couldn't tell the two apart and a layer build would have taken the provisioning…, 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.)
- Whether the daemons’ socket fix rides this train.
wb-hostdandwb-netdclose a socket they pass before the receiver holds it, the pattern the test fix removed from the tests. It fails closed and nothing calls these senders in production yet, but it can leave a VM without network and record the wrong cause in the audit. Both reviews rate it a robustness bug. The security review says the train doesn’t have to wait for it. Until it’s merged, two tests flake under load. The options: hold this train for the fix, or merge the train and fix it on the next one. (I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633.) - Run CI once per train commit. Each train commit ran CI twice, on the push and as the train’s pull request. A harness change against
maindrops the push trigger on train branches, so it waits for you. (PR636PR636 (merged): ci: run CI once per train commit, as the train's pull requestEvery commit on a train ran CI twice.) - Close the old proxy flaky test? A connection reset in the proxy’s version record test has the same cause. The code review saw the failing line fail before the test fix and pass after it. The builder left closing the issue to you. (I586I586 (closed): wb-proxyd: TestVersionRecordFirst/a_name_report gets a connection reset on send (flaky on macOS)TestVersionRecordFirst/a_name_report (packages/wraithbox-go/internal/proxyd/handoff/receiver_darwin_test.go) failed on Go (xcode-27) in CI on #585, a pull request that doesn't change internal/proxyd/handoff or any…)
- Flaky tests outside the train’s changes.
TestStreamPolicyfailed on Windows and later on macOS (I632I632 (closed): Flaky: TestStreamPolicy reads stream-refused count 0 on WindowsTestStreamPolicy in internal/netd/stack failed once on windows-2025 in the train CI of campaign #622:).TestShellOpenHeldfailed on Linux, and a Swift send failure test failed once (I634I634 (closed): Flaky: TestShellOpenHeld reads kills = [] on LinuxTwo intermittent failures in the CI of train/622 (campaign #622), in code the train doesn't change:). The campaign skill files flaky tests with aflakylabel that the label file doesn’t define, so both are bugs whose titles start withFlaky:. Adding the label or changing the skill is a harness change formain. - The next campaign in this lane. The network floor milestone had one issue left that a wave could take, so two of the wave’s three issues came from the image build milestone. A next campaign here would take its issues from the image build milestone, unless the network floor gets more issues ready for agents. (V1-M3-network-floorV1-M3-network-floor: The network floorwb-netd and wb-proxyd in inspect mode with a static policy, the audit log, and the conformance cases for egress., V1-M7-image-buildV1-M7-image-build: Image buildwb image build downloads the restore image and the Command Line Tools, installs and provisions a VM over the build network, installs the minimal base layer, and installs Claude Code in its own top layer.)
- Attended: measure what the Xcode design assumes, on a Mac with Xcode installed and in a guest: the host export of a runtime, the signature checks on an App Store Xcode, a developer site Xcode and a runtime image, where the host records the license, and the offline guest steps. The design refuses the build until each is known. (I624I624 (closed): S06-14-xcode-image: measure the host export, signature checks and offline import of Xcode and runtimesFrom #194 (S06-14-xcode-image, the Xcode image variant).,
needs-vm,needs-host)
What changed where
Section titled “What changed where”The changes, largest first
Section titled “The changes, largest first”wb-proxyd forgets a VM’s previous run
Section titled “wb-proxyd forgets a VM’s previous run”Code and spec. Security: default deny (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.), project isolation (SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another.), and the control contract from wb-hostd to wb-proxyd. 531 lines of Go and proto added, 354 of them tests, and 46 removed. 35 lines of spec added and 4 removed. The generated proto code is left out.
The problem. For each VM, wb-proxyd keeps a checked copy of the name mapping, the wildcard names it accepted in the active period (the second layer of the wildcard budget), and the effective policy with its sequence number. Nothing told it when a VM started from scratch or when a new active period began. So it kept the last run’s names, count, and policy for the next run. A fresh wb-netd gives out addresses from the start again, and its first lookup at each address the previous run held was refused as a conflict. The wildcard count never reset.
What was built.
- A fresh hand-off socket.
wb-hostdsets a newfreshfield on eachHandoffSocketafter a start that cleared the VM’s state, untilwb-proxydacknowledges one. So a retry after a timeout is fresh too, and awb-netdrestart or a restore isn’t.wb-hostdsends it before the run’s first policy change.wb-proxydchecks it like any other message. Then it closes the VM’s old socket and every stream on it. It clears the copy and the wildcard names, and drops the policy and its sequence. Every report and stream is then refused until the run’s firstPolicyChange, which may start at sequence 1 again. - A new active period.
Proxyd.NewActivePeriodinwb-hostdclears its own set of the VM’s wildcard names, then sendsActivePeriodStart.wb-proxydclears its count and keeps the copy’s entries. CallingNewActivePeriodis left to the session wiring (I490I490 (open): wb-hostd: compute each VM's effective policy at session start and end, with modes, limits and conflicts over the unionPackage M3.3 of docs/implementation-plan.md, part 3 of 3 (M3.3c).). - A race fixed on the way. At any socket replacement, fresh or not, the old socket is now marked closed under the same lock that installs the new one. Before, a report on the old socket could land after the swap.
| Rule or check | Decision |
|---|---|
vm-fresh-start |
logged when a fresh socket cleared the VM’s state |
active-period-start |
logged when ActivePeriodStart cleared the wildcard count |
message-form |
wb-netd refuses a HandoffSocket with fresh set. wb-proxyd refuses an ActivePeriodStart with a descriptor or before its start message. Each refusal ends the channel. |
vm-slot |
ActivePeriodStart names neither work nor isolated |
control-channel-failed |
the ActivePeriodStart send failed. wb-hostd logs it as its own failure rather than a failed VM start, because the VM is running. |
The message checks are in internal/egressmsg and the receiver in internal/proxyd/handoff/receiver.go and socket.go. Tests cover a fresh start, a plain replacement that keeps the state, a fresh socket at an older generation, ActivePeriodStart accepted and refused, and the fresh flag through a retry, a restore and a stop and start in wb-hostd. The fuzz target for control messages has new seeds, and the security review ran it for 60 seconds, 7.4 million runs without a failure. The new messages come only from wb-hostd: the guest and a compromised wb-netd can’t send them, and the new code parses no guest bytes.
Choices made, which you can veto:
- A
freshfield on the existing message rather than a separate message, so the clear and the new socket land under one lock with no window between them. - A fresh start keeps the generation, and a fresh socket at the same generation passes as a replacement, so a retry after an acknowledgment timeout is accepted.
ActivePeriodStarthas no acknowledgment.wb-proxyddecides control messages in order, so the acknowledgment of a later message confirms it.wb-netdrefuses thefreshfield, because its own start clears its mapping.
Not covered yet. The session wiring that calls NewActivePeriod, keeps the fresh hand-off before the run’s first policy, and refuses a policy while a fresh hand-off is pending (I490I490 (open): wb-hostd: compute each VM's effective policy at session start and end, with modes, limits and conflicts over the unionPackage M3.3 of docs/implementation-plan.md, part 3 of 3 (M3.3c).). wb-netd has no message that starts a new active period. So a running wb-netd keeps its debited wildcard names until it restarts, though the DNS spec says a new period clears them, and fixing that is another contract change (I627I627 (closed): wb-netd: no control message starts a new active periodThis is a contract change to proto/wraithbox/egress/v1/control.proto (a HostdToNetd kind, its check in internal/egressmsg, a fuzz seed), so the maintainer approves it in review as for #573.). A failed policy send is still logged as a failed VM start. The new tests flaked at landing from a race in passing sockets, which the last change below fixes in the tests.
The Xcode image comes from the host’s own Xcode
Section titled “The Xcode image comes from the host’s own Xcode”Spec and brief, with no code. Security: the image build now trusts the host’s Xcode and exported runtimes as far as Apple’s signature accepts them (T00-indexT00-indexboundary 6 is the host terminal stream.), and the design rests on default deny and on the controls against host folder sharing and disk mounts (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable., SEC02-no-host-fs-shareSEC02-no-host-fs-share: No host filesystem sharingNo host directory is mounted into the guest, read-only or otherwise., 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.). A new 288-line spec page and a 146-line brief, and 94 lines added and 49 removed in nine other pages, the test plan included.
The question. An image with full Xcode needs Xcode and its simulator runtimes, and a runtime alone is about 8 GB. You decided on 2026-10-16 that Xcode comes from a read-only disk the host builds (I194I194 (closed): Xcode image variant: getting Xcode and simulator runtimes into the imageFrom the X06-guest-xcode result (#20).). This design says how (S06-14-xcode-imageS06-14-xcode-image: The Xcode ImageHow an image gets full Xcode and the simulator runtimes from the host, as a read-only disk the host builds, and who runs Xcode's first launch.).
The design.
wb-hostdclones the parent image into a new, empty build bundle, then starts a thirdwb-diskfmtentry,wb-diskfmt-xcode. It startswb-vmd-layerin that bundle only after the shim has exited, so no VM process can put a guest-written disk under the shim’s file name.- The shim resolves
/Applications/Xcode.appwithrealpathitself before it confines itself, and takes no path from the request or the environment. It checks Apple’s signature on Xcode and on each runtime image in the exported runtimes folder, checks the host’s license record, and copies both onto a new disk image,xcode.img.wb-hostdnever reads Xcode, the runtimes or the license record itself, and learns their versions and hashes only from the shim. - Xcode has to meet Apple’s App Store signature or Apple’s own Developer ID team,
59GAB85EFG, with the identifiercom.apple.dt.Xcode. A bareanchor apple genericis never accepted, because any developer’s Developer ID meets it. - The Xcode disk is a disk role of its own in
wb-vmd’s fixed device set: read-only, fromxcode.img, exactly once, and only in thelayerslot when the start call sets an Xcode flag, which never names a path.wb-vmdrefuses a start that sets the flag in any other slot before it creates a device, and never drops the flag to let a start go on. The build VM has no network device. - So the two guest admin inputs go to different slots:
buildaccepts provisioning options and refuses the Xcode flag,layeraccepts the flag and refuses provisioning options, andworkandisolatedrefuse both. - In the build VM, root copies Xcode to
/Applicationsasroot:wheel, checks its signature again, accepts the license, runs the first launch, and imports the runtimes. The image is sealed, the recipe’s own steps run on it, and their sealed result is the parent of the Claude Code layer. - Xcode’s version and build and each runtime’s hash join the inputs of the layer-only rebuild check, so a new Xcode on the host means a full rebuild at the next
wb image build. - Both copies leave out extended attributes and Xcode’s App Store receipt, which name the host’s purchase and device. An image with Xcode is never shared with another machine.
| Rule | Refused when |
|---|---|
xcode-not-found |
the source isn’t an .app directly in /Applications |
xcode-signature-invalid |
Xcode, or its copy, fails the code requirement |
xcode-runtime-signature-invalid |
a runtime image’s signature fails or can’t be checked |
xcode-license-not-accepted |
the host’s record doesn’t show the license accepted for that build |
xcode-too-new-for-guest |
Xcode needs a newer macOS than the parent image |
xcode-runtime-not-regular, xcode-runtime-name, xcode-runtime-too-many, xcode-runtime-too-large |
an entry in the runtimes folder breaks the form or the caps |
xcode-disk-no-space |
the host’s data directory has no room |
xcode-mnt-exists, xcode-mount-mismatch, xcode-mount-left |
the shim’s mount point exists already, isn’t the device it attached, or is still mounted from a killed run |
vmd-xcode-disk-refused |
a start call sets the Xcode flag in any slot but layer |
device-set-count, device-set-disk, device-set-file-outside-bundle |
the Xcode disk is in the device set without the flag, in another slot, twice, writable, on another file or outside the bundle, or missing when the flag is set |
Choices in the design, beyond the two decisions above: root runs the first launch in the build, because it writes /Library/Developer and no project user may. Each ditto and codesign run has a deadline in code. The shim mounts the volume on a fixed directory in the build bundle and checks it with statfs before any write.
Reviews. Each review took three rounds. The first code review asked for two changes: the page didn’t say where the Xcode step comes in the order of image layers, and the VM processes spec didn’t give wb-vmd-layer and wb-diskfmt the work the page gives them. The first security review found on the host that the code requirement then written, anchor apple, rejects an App Store Xcode, and warned that loosening it to anchor apple generic would accept any developer’s Developer ID. After the rebase onto this train, the third round found that the Xcode flag rule was keyed on the process entry and checked before any start call arrives, that the device set had no role or tests for the Xcode disk, that the bundle order was open, and that the spec didn’t say who resolves the Xcode path. All were fixed in one commit and re-checked before merge.
Not covered yet. The host export of a runtime, the signature checks on both kinds of Xcode install and on runtime images, the license record, and the offline steps in the guest are still to be measured. The design refuses the build until each is known (I624I624 (closed): S06-14-xcode-image: measure the host export, signature checks and offline import of Xcode and runtimesFrom #194 (S06-14-xcode-image, the Xcode image variant).). The wb-diskfmt code accepts only the work and isolated slots, wb-vmd has no Xcode flag yet, and the Xcode build itself is later image build work.
wb-vmd-layer gets a slot of its own
Section titled “wb-vmd-layer gets a slot of its own”Code and spec. Security: least privilege for the guest admin’s provisioning (SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts.). 112 lines of Swift added, 53 of them tests, and 14 removed. 24 lines of spec and test plan added and 20 removed, in five pages.
The problem. wb-vmd-layer boots a clone of the image to build the Claude Code layer. The VM processes spec gave it the same build slot as wb-vmd-install, which installs macOS. wb-vmd decides by its slot, so it couldn’t tell the two apart, and a layer build would have accepted the provisioning options that create the guest admin wbadmin with a password.
What was built. A slot layer in WraithBoxVM/DeviceSet.swift, which uses the build bundle and whose fixed device set has no network device. Only build accepts provisioning options. A new ProvisioningCheck in WraithBoxVMD refuses them in any other slot and logs the rule with the slot. Both build daemons are still to be built, so wb-vmd still refuses to start in either slot, each with its own rule.
| Rule | When |
|---|---|
vmd-slot-build-unsupported |
started in the build slot, until wb-vmd-install is built (unchanged) |
vmd-slot-layer-unsupported |
started in the layer slot, until wb-vmd-layer is built (new) |
vmd-provisioning-refused |
provisioning options in the work, isolated or layer slot, with gRPC code permission_denied (new) |
The specs for the VM processes, image layers, image build and guest admin, and the host daemons’ test plan, now name the layer slot. ProvisioningCheckTests covers the work, isolated, layer, and build slots, StartupTests and ProcessTests the start refusal in the built daemon, and the device set tests the layer slot. No Go code changed: the Go side knows only work and isolated, and starts only those entries.
Choices made, which you can veto: the layer slot’s start refusal has a rule of its own rather than the build slot’s. The refusal’s gRPC code is permission_denied. The check is a separate ProvisioningCheck, and its rule goes back in a VMRefusal like the other request refusals. The image build spec’s layer paragraph now points to the VM processes spec for the slot’s rules, to stay under its 300-line page limit.
Not covered yet. Only the tests call ProvisioningCheck, because no start request has provisioning options yet. When wb-vmd-install gets them, its start path has to call the check first (I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1.). Today the path can’t fail open, because both build slots refuse to start. The Xcode design above makes layer the only slot that takes its Xcode flag. The build and layer slots now share a bundle, so wb-vmd’s bundle check can’t keep them from running at once. The slot admission in wb-hostd does that (S06-07-slot-admissionS06-07-slot-admission: Slot AdmissionHow wb-hostd admits every macOS VM it starts against the limit of two, and lends the isolated VM's slot to a maintenance VM.).
Tests keep a passed socket open until its receiver holds it
Section titled “Tests keep a passed socket open until its receiver holds it”Test code only, in four Go test files: 31 lines added and 8 removed. Not a security change: in the daemons the race fails closed.
The problem. At landing, the proxy change’s new fresh start test failed now and then with fdchan: send: invalid argument, and the maintainer held the train (I633I633 (closed): TestFreshStartClears fails intermittently: fdchan send EINVAL on the train's fresh hand-offTestFreshStartClears (internal/proxyd/handoff/fresh_darwin_test.go), added by #628 for #573, fails intermittently with fdchan: send: invalid argument:). A hand-off test on main failed the same way under parallel load (I635I635 (closed): fdchan sends fail with EINVAL on macOS under parallel test load (TestReceiveNetwork on main)On the dedicated Mac, mise run go:test on main (Go code as on main at 28d76f3) failed twice in a row with:).
The cause, a macOS kernel race. A process passes a Unix socket to another and closes its own copy before the receiver holds it. The kernel’s collector of sockets in flight can then take the socket for garbage and flush it. The receiver reads an empty record, and sends to the socket fail with EINVAL, or with ECONNRESET once the receiver closes it. A standalone probe with no project code reproduced it: in the code review’s run under load, 57 of 200,000 sends failed when the sender closed at once, and 0 of 200,000 when it waited. The proxy’s own replacement path was ruled out, because no close of the socket ran before a failure.
The fix. The tests keep their copy until the receiver shows it holds the socket: wb-proxyd’s version record arrives, or Receive returns. One test now reads the acknowledgment before its bad first record, as production does. Each test waits on that signal, without retries or sleeps. In the code review’s runs under load, the proxy’s hand-off tests went from 284 failures to none, and the VM hand-off test from 1,628 to none. Both reviews approved in round 1. The security review looked for a path that fails open and didn’t find one.
What it means for the daemons. wb-hostd and wb-netd also close their copy at once (hostd/egress/proxyd.go, netd/handoff/stream.go). wb-proxyd starts reading a new socket before it sends its acknowledgment. Its notice that the socket closed can then come first, and wb-hostd drops it as stale. The VM loses its network until a daemon restarts, and the audit records the wrong cause. It fails closed, and nothing calls these senders in production yet (I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633.). The spike result that let wb-vmd close each passed descriptor at once, and the VM provider spec built on it, are wrong on macOS 27 (X18-vsock-handoffX18-vsock-handoff: Host-guest socket and descriptor hand-offCan wb-guestd, written in Go, open AFVSOCK sockets in a macOS guest?, S04-02-vm-providerS04-02-vm-provider: VM Provider and StreamsHow wb-vmd hands guest connections and the NIC endpoint to other processes, the fixed device set of a VM, and where wb-proxyd takes a stream's identity from.). The same cause explains an older flaky test (I586I586 (closed): wb-proxyd: TestVersionRecordFirst/a_name_report gets a connection reset on send (flaky on macOS)TestVersionRecordFirst/a_name_report (packages/wraithbox-go/internal/proxyd/handoff/receiver_darwin_test.go) failed on Go (xcode-27) in CI on #585, a pull request that doesn't change internal/proxyd/handoff or any…).
Review findings not resolved
Section titled “Review findings not resolved”The must-fix findings were fixed before merge. These remain, most serious first.
Security:
- The daemons close a passed socket too early. When the kernel race hits a hand-off,
wb-hostdcan dropwb-proxyd’s notice as stale and handwb-netda dead socket. The VM has no network until a daemon restarts, and the audit gets the wrong cause. The security review rates it medium, for availability and the audit, and not exploitable. The fix also restores a test that the acknowledgment comes before that notice, and corrects the spike result and the VM provider spec (I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633.). - A wildcard name in flight across a new active period is counted by
wb-proxydin the new period and bywb-hostdin the old one. After awb-proxydrestart, the second layer of the wildcard budget can admit one name past the budget for that period.wb-netd’s first layer still bounds it. Reasoned from the code, not reproduced (I630I630 (closed): wb-proxyd: a wildcard report in flight across ActivePeriodStart undercounts the second layer in wb-hostdFound in the review of #628 (#573): code review F2 and security review F1.). - A policy sent before the fresh hand-off is lost. If the session wiring sends the run’s first policy before the fresh socket,
wb-proxyddrops it,wb-hostdbelieves it applied, and every flow of the run is refused until the next policy change. It fails closed but silently. The proposed fix, refusing a policy while a fresh hand-off is pending, goes with the wiring (I490I490 (open): wb-hostd: compute each VM's effective policy at session start and end, with modes, limits and conflicts over the unionPackage M3.3 of docs/implementation-plan.md, part 3 of 3 (M3.3c).). - The provisioning check isn’t called. A builder who adds provisioning options to
wb-vmdwithout calling it would let a session or layer VM set the guest admin’s password without the refusal. That path doesn’t exist yet (I629I629 (closed): wb-vmd: call ProvisioningCheck where provisioning options reach a VMFound in the review of #625 (#463), code review F1.). - A developer site Xcode may fail the code requirement. If Apple signs it with its own software signing certificate rather than the Developer ID the requirement names, every build on such a host fails closed with
xcode-signature-invalid. Deferred until the measurements (I624I624 (closed): S06-14-xcode-image: measure the host export, signature checks and offline import of Xcode and runtimesFrom #194 (S06-14-xcode-image, the Xcode image variant).).
Code and docs, which reviewers marked as optional:
- A failed policy send to
wb-proxydis still logged as a failed VM start and returns a setup error. - The
vm-fresh-startandactive-period-startlog entries don’t say what they cleared. - The
buildandlayerslots share a bundle, so onlywb-hostd’s admission keeps them apart. A lock inwb-vmdcould follow when the two entries are built. - A test helper’s comment says it keeps the socket until the version record arrives. The code closes it when the function returns, right after that record.
vmd-provisioning-refusedis in a list of rules that start withvm-. The slot’s answer is in theWraithBoxVMlibrary and the check inWraithBoxVMD, and a test repeats the one-line predicate.- In the Xcode design, the guest doesn’t check runtimes against their recorded hashes, and any change to the host’s Xcode rebuilds every layer. The disks spec’s table of bundle files lacks
xcode.img. - The image layers spec doesn’t say where the Xcode step’s sealed result waits between the two steps, or when it’s removed. Deferred to the work on image recipes (I150I150 (closed): S06-vm-lifecycle: minimal base image and named derived images built from recipesS06-vm-lifecycle "Images" puts Homebrew, the Xcode command line tools and wb-guestd in the base image.).
Friction
Section titled “Friction”- The headless wave stopped after 50 minutes, while its wave lead waited on its own check watches (I631I631 (closed): Campaign waves end when the wave lead waits on its own background work: claude -p exits on its interim resultWave 1 of campaign #622 ran claude -p "/wave ...). The lead and its builders stopped with it, with all three pull requests approved and nothing merged. The wave didn’t write its report. Its findings, follow-ups, and reruns on this page come from GitHub. The campaign manager merged the pull requests afterward.
- CI runs failed four times on pull request branches, none on a test. In three runs GitHub abandoned jobs, among them change detection, so the summary job failed: on the proxy change’s first commit and on the review fix commits of the proxy change and the layer slot change. The last two were rerun during the wave and passed, and nobody recorded the reruns. One run on the Xcode design’s second commit failed before any job started, and a later push replaced it. No flaky test showed on them.
- CI ran twice per train commit, and one run was misread. Each train commit ran CI on the push and as the train’s pull request. The manager read only the pull request runs, which passed, and reported the train green. The push runs on two report commits had failed (PR636PR636 (merged): ci: run CI once per train commit, as the train's pull requestEvery commit on a train ran CI twice. drops the push trigger).
- Flaky tests under load, and a hold. On the train,
TestStreamPolicyfailed on Windows and then on macOS (I632I632 (closed): Flaky: TestStreamPolicy reads stream-refused count 0 on WindowsTestStreamPolicy in internal/netd/stack failed once on windows-2025 in the train CI of campaign #622:),TestShellOpenHeldon Linux and a Swift send failure test once (I634I634 (closed): Flaky: TestShellOpenHeld reads kills = [] on LinuxTwo intermittent failures in the CI of train/622 (campaign #622), in code the train doesn't change:), and the proxy change’sTestFreshStartClearson macOS (I633I633 (closed): TestFreshStartClears fails intermittently: fdchan send EINVAL on the train's fresh hand-offTestFreshStartClears (internal/proxyd/handoff/fresh_darwin_test.go), added by #628 for #573, fails intermittently with fdchan: send: invalid argument:). None of the first three is in code the train changes. The Windows failure passed on one rerun. The fresh start failure made the maintainer hold the train during landing, until the test fix found the kernel race and merged. Until the daemons’ fix is merged,TestMalformedReportEndsOneNetdandTestStreamEndsstill flake under load (I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633.). - A spec conflict and a rebase. The layer slot change and the Xcode design both edit the
wb-vmd-layertext of the VM processes spec. The Xcode design left the image build spec alone because the layer slot change edited it. It still changed the VM processes spec, and conflicted there once the layer slot change merged. The manager rebased it onto the train and kept both texts, and the reviews checked that nothing was lost. - Review rounds. 11 reviews and 5 re-checks for 4 pull requests. The proxy change, the layer slot change and the test fix were approved in round 1, and the first two had their fixes re-checked without a new round. The Xcode design took three rounds of each review. Rounds 1 and 2 dealt with two must-fix findings and ten security folds. Round 3, after the rebase, added five code findings and four security folds, which a fresh builder applied in one commit.
- Checks reviewers couldn’t run. The code reviews of the proxy change and the layer slot change skipped
prose:spell, and one alsodoc:buildanddoc:check, because the docs dependencies weren’t installed in their worktrees. CI ran them. - A thin milestone. The network floor milestone had one issue a wave could take, so the wave filled up from the image build milestone.
The run
Section titled “The run”Budget, pull requests, and waves
Campaign I622I622 (closed): Campaign 2026-11-09 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 3 --usd 300 --issues 30 --prs 30, started 2026-11-09 17:52 UTC. Rendered by scripts/campaign.mjs (docs/agents/campaigns.md), with the body above from the train-reporter agent.
| Limit | Spent | Of |
|---|---|---|
| Hours | 3.5 | 3 |
| Dollars | $32.11 | $300.00 |
| Issues | 0 | 30 |
| Pull requests | 4 | 30 |
- First code review approved: 3 of 4 pull requests.
- Code review rounds per reviewed pull request: 1.5.
- Follow-ups filed: 6.
- Flaky tests filed: I632I632 (closed): Flaky: TestStreamPolicy reads stream-refused count 0 on WindowsTestStreamPolicy in internal/netd/stack failed once on windows-2025 in the train CI of campaign #622:.
- The campaign manager’s own session isn’t metered. The 5 percent reserve of the dollar limit pays for it.
| Wave | Length | Cost | Issues | Pull requests | Session ended |
|---|---|---|---|---|---|
| 1 | 50 min | $32.11 | 0 | 0 | success |