Skip to content

Campaign 954: network floor, lane mac, third run

Ended 2026-12-02: All eight picked bugs merged into the train after wave 4, as the maintainer asked. Train train/954 in PR955PR955 (open): Train 954: Campaign 2026-12-01 (V1-M3-network-floor, lane mac)Train of campaign #954 (V1-M3-network-floor, lane mac).. To veto a pull request on the train, comment veto #<pr> on PR955PR955 (open): Train 954: Campaign 2026-12-01 (V1-M3-network-floor, lane mac)Train of campaign #954 (V1-M3-network-floor, lane mac)..

The train makes wb-proxyd see wb-netd’s close of a stream and stale bytes on a kept upstream connection, bounds and orders the VM stop in wb-hostd, lets the VM tests run under a test data root of their own, runs the Windows Go leg on pull requests into a train, and fixes seven flaky tests.

  • wb-proxyd notices when wb-netd closes a stream’s socket, whenever it comes. Before, any end of the socket read as the guest’s half-close, and a close after a half-close wasn’t seen at all, so a stream whose upstream sent nothing more held its place under the stream cap with no time limit. Now a close at the first end closes upstream, and a raw or pass relay also waits for a later close without reading. On Windows every raw or pass relay is reset at once, which you can veto. A close while a relay’s write upstream blocks after upstream ended is still unseen, and so is one on an inspected host’s WebSocket relay (I980I980 (open): wb-proxyd: bound a relay's write upstream once its stream socket's writes are shutIn that state, if the guest has filled the relay toward an upstream that doesn't read, the relay blocks in its write upstream, and wb-netd's close of the socket isn't seen.).
  • wb-proxyd counts a kept upstream connection’s unread socket bytes before it sends the next request. A stalled 1 ms probe could time out without reading, and stale bytes became the next answer. Now the kernel’s count of unread bytes decides, below TLS, and bytes that stay or a count that fails give the request a 502. On Windows, a connection that once got a TCP urgent byte is refused from then on, which you can veto.
  • The VM tests of wb-hostd run under a test data root of their own. Test builds of wb-vmd and wb-diskfmt take a data folder fixed at link time, and the bundle check refuses any program that is a test build. The VM test passed on the dedicated Mac. Its unit test failed on Windows, ended the campaign after wave 2, and is fixed.
  • A compromised wb-netd can no longer make a VM stop wait forever. It could pass a copy of its end of the accounting channel into a socket nobody reads and exit. The stop then waited without a bound, and its record wasn’t written. Once wb-netd has exited, wb-hostd reads what is queued, up to a bound, and stops.
  • wb-vmd’s hand-off ack reader skips a failed receive instead of stopping. One failed receive made every later hand-off hold its descriptor copy and connect-cap place for the full 5 s.
  • A pull request into a train runs the Windows Go leg. A Windows-only failure now fails the builder’s pull request, not the train. This is a harness change that rode as a pick, and AGENTS.md needs a matching line against main.
  • wb-hostd records a VM’s stop before the slot reads stopped. A stop followed at once by a start could put the record of the new run’s start before that of the old run’s stop. A stop of a run that is already ending is now refused. The gap showed first as a flaky test on macOS and Windows.
  • CI compiles the test builds of the test data root. A harness change that rode as a pick. It adds about 1.2 GB to the Swift build cache, and Swift runs build from scratch until a push to main saves the new cache.
  • The other flaky tests are fixed in the tests themselves. They are in wb-hostd, wb-netd and wb-guestd, and in each the product did what the spec says, and the test read too early or its stand-in was wrong.

Not merged: the risky-path flagger (PR966PR966 (open): feat(go): add the risky-path flagger with its S08-09 matching rulesReturned work can change files that the host or CI runs on its own, so wb diff and the session summary will flag those paths for the user to read first.) is out of review rounds against the train, and a check that fails app:bundle on a bad tools disk (PR958PR958 (open): fix(app): fail app:bundle where the tools disk goes wrongThe app bundle build could put a guest tools disk into the app that the final check then found empty: no guest agent, no root helper, no version stamp.) waits against main for your approval.

host, runs as the userinternetbuild and CImacOS guest VMwb-hostdstop records its end first,accounting read boundedonce wb-netd exits,1,034 lines with testswb-netdtests only: two tests waitfor the child’s messageand the running try,123 lineswb-proxydsees wb-netd’s close of astream, counts unreadbytes below TLS,2,834 lines with testswb-vmda failed ack receive isskipped, test builds geta test data root,468 lines with testswb-diskfmttest builds get a testdata root, its Windowstest fixed (I970),100 lines with testswb-proxyd relaysfound: a write upstreamthat blocks, or a WebSocketrelay, misses the close(I980)wb-hostd recordsfound: a stop record canfollow the next start(I983), a hard stop leavesa session row live (I700)risky-path flaggernew package for wb diff,not merged: its limitsdon’t hold yet,2,352 lines with testswb-guestdtests only: the kill-selfprogram waits for itsown signal, 43 linesreturned commitsunchanged: what theflagger is to read forwb diff (I697)guest TCP streamsunchanged: their closenow frees the stream’splace under the capupstream hostsunchanged: stale bytes ona kept connection getthe next request a 502app:bundleagainst main, not merged:reads the tools disk back,110 lines with testsbundle checkrefuses a test build withthe rule test-build,130 lines with testsCI and mise tasksWindows leg on train pullrequests, test buildscompiled, 224 lineshand-off acksaccountingguest streamsgit changescode changed on the trainopen beside the traindefect foundunchanged, for contexta flow the changes touch
The components the train touches. On the host, wb-proxyd changed in code: it sees wb-netd’s close of a stream’s socket at any time, and counts a kept upstream connection’s unread bytes below TLS. wb-hostd changed in code: the VM stop writes its record before the slot reads stopped, and the read of wb-netd’s accounting channel is bounded once wb-netd exits. wb-vmd changed in code: a failed hand-off ack receive is skipped, and test builds get a test data root, as wb-diskfmt’s do. wb-netd changed in tests only. Defects were found in wb-proxyd’s relays, which miss a close while a write upstream blocks, and in wb-hostd’s stop and shutdown records. The risky-path flagger is open beside the train. In build and CI, the workflow runs the Windows leg on train pull requests and compiles the test builds, the bundle check refuses a test build, and the app:bundle tools disk check is open against main. In the guest, wb-guestd changed in tests only. Upstream hosts on the internet are unchanged.

Code and spec, not merged, out of review rounds. Security: every path, link target and manifest returned from the guest, read as adversarial bytes (SEC03-no-host-execSEC03-no-host-exec: No host code execution via returned workNothing the agent produces executes on the host without an explicit user action; returned changes to files the host may later execute are flagged., SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped.). 1,345 lines of Go and 1,007 of tests. 137 lines of spec.

The problem. wb diff and the session summary are to flag returned changes to files the host or CI runs on its own, and the risky changes spec listed the kinds of files without the rules for matching them (I696I696 (open): Risky-path flagger: the matching rules in S08-09 and the Go flagger, with fuzz propertiesPackage M4.5 of docs/implementation-plan.md, part 1 of 3 (M4.5a)., S08-09-risky-changesS08-09-risky-changes: Flagging Risky ChangesThe changed paths that wb diff and the session summary flag, because the host or CI may run them (SEC03-no-host-exec).).

What was built. A pure Go package, internal/riskpath, with no caller yet: wb diff adds it later (I697I697 (open): wb diff and wb land: the landing checks, the checked fetch, the scratch repository, and the returned-work record in wb-hostdPackage M4.5 of docs/implementation-plan.md, part 2 of 3 (M4.5b).). Check takes the changes, the paths of the tip’s tree and a capped blob reader, and returns flags grouped by rule. The spec now holds the full table of named files under ten rules, from hooks to lockfile, and seven rules from modes, links and the tree: executable, submodule, link-target, collision, mode, unparseable-path and unchecked. A path is matched in a form at least as broad as APFS, HFS+ and NTFS compare names: fully case folded, so Makefile with the ligature is Makefile, NFC, without the code points HFS+ ignores, and without trailing dots and spaces. Links are followed, including an unchanged link whose target can’t be resolved. FuzzRiskPath checks order independence, fail-closed reads, and that one more tree entry never removes a flag.

Choices made, which you can veto:

  • The input also takes the paths of the tip’s tree, because a change below an unchanged link and a collision with an unchanged path can’t be seen from the change list. A check without the tree is flagged unchecked.
  • NTFS forms, a backslash, a colon or a tilde before a digit as in GITMOD~1, are flagged unparseable-path rather than mapped to the names they stand for.
  • A link at the first part of a two-part name, such as .github, .cargo, .config or mise, gets that name’s rule whatever its target holds.
  • Every link of the tree whose target can’t be resolved or read is flagged link-target in every check, even when it didn’t change.
  • Limits, with the values in code: 100,000 changes, 1,000,000 tree entries, 10,000 links, 4,096 path bytes and 128 components. Over a count limit, the check returns one unchecked flag and nothing else.
  • golang.org/x/text moves from an indirect to a direct dependency.

Reviews. Round 1 found 3 must-fix findings in the code review and 6 in the security review, among them a Rakefile spelled with a ligature, which rake ran as Rakefile on this Mac’s APFS volume with no flag, and a postinstall script reached through a link at package.json, also with no flag. All were fixed in round 2. Round 2 then found that the new limits don’t bound the work. 2,000 case spellings of one unresolvable link and 2,000 changed links to it gave 4,002,000 flags and 3.2 GB (code F8). Alias keys have no size cap, so one deep link to an ancestor costs 54 to 409 ms per change, 1.5 to 11 hours at the change limit (security F13). Flag details have no size cap, and a manifest is read again for each change (security F14).

Not covered yet. The caller, which reads git’s output, filters the terminal output of each path and detail, and logs each flag (I697I697 (open): wb diff and wb land: the landing checks, the checked fetch, the scratch repository, and the returned-work record in wb-hostdPackage M4.5 of docs/implementation-plan.md, part 2 of 3 (M4.5b).). NTFS and HFS+ volumes weren’t tested.

wb-proxyd notices wb-netd’s close of a stream’s socket

Section titled “wb-proxyd notices wb-netd’s close of a stream’s socket”

Code and spec. Security: the stream sockets from wb-netd into wb-proxyd, and the per-VM stream cap (SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped.), with a new refusal in the audit log (SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter.). 519 lines of Go changed and 1,280 of tests. 94 lines of spec and test plan. The close at the first end and the wait for a later close came in separate pull requests (PR963PR963 (merged): fix(proxyd): close upstream when wb-netd closes a stream's socket outrightWhen wb-netd closes a stream's socket outright, for example when it resets the guest's connection, wb-proxyd now closes the upstream connection and frees the stream's place under the stream cap., PR981PR981 (merged): fix(proxyd): wait for wb-netd's close of a stream's socket after its half-closeA raw or encrypted pass-through stream reads the guest side's socket only until its first end of file.).

The problem. The hand-off sockets spec says wb-proxyd closes upstream when a stream’s socket ends. A full close and a half-close both read as end of file, so wb-proxyd took every end for the guest’s FIN, half-closed upstream and waited for its answer. Once a relay had read that end, it never read the socket again, so a later close wasn’t seen either. Either way, a stream whose upstream sent nothing more, or stopped reading, held its place under the cap until upstream sent, read or closed (I807I807 (closed): wb-proxyd: close upstream when wb-netd closes a stream's socket outrightS07-20-handoff-sockets, "Stream bounds", says: when a stream's socket ends, wb-proxyd closes the upstream connection., I962I962 (closed): wb-proxyd: detect wb-netd's close of a stream's socket after its half-closeThe fix for #807 checks once, at the socket's end of file, whether wb-netd closed a stream's socket outright., S07-20-handoff-socketsS07-20-handoff-sockets: Hand-off SocketsThe life of one VM's hand-off socket: its identity, the acknowledgments of both ends, how it closes, who a failure is charged to, what each restart does to it, and which of its decisions reach the audit log.).

What was built. A new platform package, internal/platform/sockhangup, with two calls on the stream’s socket. The first polls for POLLOUT with no wait at end of file, where POLLHUP means the peer closed, not only shut down its writes. Of I807I807 (closed): wb-proxyd: close upstream when wb-netd closes a stream's socket outrightS07-20-handoff-sockets, "Stream bounds", says: when a stream's socket ends, wb-proxyd closes the upstream connection.’s two fixes, you asked for this one over a change to the hand-off contract. The second, Wait, blocks on a duplicate of the descriptor in Go’s network poller and asks the same on each readable wake, without reading the socket. Each raw or pass relay runs Wait beside its copy loops, and the stream’s place is freed only after the wait has returned and its duplicate is closed. handoff.ErrPeerClosed wraps io.EOF, so readers that only look for the end keep working. The platform interfaces spec has a row for the calls (S12-01-platform-interfacesS12-01-platform-interfaces: Platform InterfacesHow platform-specific code is isolated behind interfaces, and what each host OS uses for each.).

What happens to the stream’s socket Before the train Now
wb-netd shuts down its writes, the guest’s FIN half-close upstream, wait for its answer the same, and a raw or pass relay waits for a later close
wb-netd closes it outright half-close upstream, hold the place while upstream is silent close upstream, free the place, log stream-peer-closed
wb-netd closes it after an earlier half-close not seen the wait sees it: close upstream, drop bytes not yet relayed
wb-netd closes it while the relay’s write upstream blocks not seen the wait sees it, unless upstream already ended (I980I980 (open): wb-proxyd: bound a relay's write upstream once its stream socket's writes are shutIn that state, if the guest has filled the relay toward an upstream that doesn't read, the relay blocks in its write upstream, and wb-netd's close of the socket isn't seen.)
wb-netd resets it, or a socket error is pending half-close upstream counts as a close
The wait fails: a full descriptor table, a failed poll, or a Windows host not asked reset the stream, refusal stream-hangup-wait-failed with check hangup-wait

Choices made, which you can veto:

  • On Windows both calls refuse with errors.ErrUnsupported. The first end counts as a close, and every raw or pass relay is reset at once with stream-hangup-wait-failed, until Windows hosts hand off streams.
  • A stream costs three descriptors in wb-proxyd, one more than before, named handoff.DescriptorsPerStream for the descriptor limit that I888I888 (open): wb-proxyd: the program shell: start descriptors, descriptor limit, compiled-in profile and control loop (M3.12c, part 1 of 6)Split from #512 (maintainer, 2026-11-30). builds.
  • The bytes not yet relayed upstream are dropped on a close, and wb-netd closes outright only when the guest aborts.
  • stream-peer-closed goes only to the daemon log, because it decides nothing about a guest’s traffic. A failed wait isn’t blamed on wb-netd: it goes to the audit log as a refusal, because neither side ended the stream.
  • Once wb-proxyd has shut down its own writes, the wait stops and an end of file stays a plain end. Linux can’t then tell a half-close from a close, and macOS reports POLLHUP for our own shutdown too.
  • Inspected HTTP streams don’t wait, because their own timeouts bound them.
  • Rejected: a read on the original descriptor, which races the relay’s reads, a ticker poll per stream, and a shared kqueue.

Reviews. On the first end check, the code review’s round 1 found that the spec claimed every end closes upstream, while the check ran once. The spec named the gap, which became I962I962 (closed): wb-proxyd: detect wb-netd's close of a stream's socket after its half-closeThe fix for #807 checks once, at the socket's end of file, whether wb-netd closed a stream's socket outright. and the second pull request. The security review found 4 low folds, all fixed, and round 2 approved. On the wait, both reviews approved round 1 with folds. The security review reproduced 61 duplicates alive beyond a cap of 64, because the place was freed before the wait ended. It also found that a failed wait closed the stream as if wb-netd had, and that an inspected host’s WebSocket relay has no write bound upstream. One commit fixed these three and the descriptor count’s missing constant, and round 2 measured 0 duplicates beyond the cap. TestHungUpConfined shows the calls work under a deny-all Seatbelt profile. One more test-only commit fixed TestDescriptorsPerStream, which failed on Ubuntu in a full CI run.

Not covered yet. A close while a relay’s write upstream blocks after upstream already ended, and a close on an inspected host’s WebSocket relay toward an upstream that doesn’t read (I980I980 (open): wb-proxyd: bound a relay's write upstream once its stream socket's writes are shutIn that state, if the guest has filled the relay toward an upstream that doesn't read, the relay blocks in its write upstream, and wb-netd's close of the socket isn't seen.). The place is freed microseconds before the stream’s own socket closes, which matters once the descriptor limit is built (I888I888 (open): wb-proxyd: the program shell: start descriptors, descriptor limit, compiled-in profile and control loop (M3.12c, part 1 of 6)Split from #512 (maintainer, 2026-11-30).). The wait ran on Linux only in CI.

wb-proxyd counts a kept connection’s unread bytes below TLS

Section titled “wb-proxyd counts a kept connection’s unread bytes below TLS”

Code and spec. Security: wb-proxyd’s kept connection to an upstream on the internet, which now fails closed in one more case (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.). 246 lines of Go changed and 821 of tests. 29 lines of spec and test plan.

The problem. Before a later request goes on a kept upstream connection, wb-proxyd reads it for 1 ms to catch bytes the server sent unasked. A goroutine that stalled past that deadline got a timeout without the socket being read, and the stale bytes became the next request’s answer. The check on main refused a read that began with too little time left, and it still missed a stall after the check (I950I950 (closed): wb-proxyd: a probe below TLS that a stalled goroutine can't skip, for the kept-connection checkMeasured in #949 under heavy CPU load: about 1 in 3 skipped reads on TLS and about 1 in 17 on plain still pass as quiet., S07-15-non-http-streamsS07-15-non-http-streams: Non-HTTP StreamsHow wb-proxyd checks the protocol of each stream, and what it does with SSH, other protocols and raw TCP.).

What was built.

  • A new platform package, internal/platform/sockunread, with one call that counts the bytes waiting to be read from a socket: getsockopt(SO_NREAD) on macOS, ioctl(SIOCINQ) on Linux and WSAIoctl(FIONREAD) on Windows, each behind RawConn.Control. The platform interfaces spec has a row for it (S12-01-platform-interfacesS12-01-platform-interfaces: Platform InterfacesHow platform-specific code is isolated behind interfaces, and what each host OS uses for each.).
  • After a probe read times out, checkIdle asks for the count. Zero lets the request go. More than zero makes the probe again, 3 tries in all. Bytes left after the last try give a 502 with upstream-request-failed and the detail “unread bytes in the kept connection’s socket”. A failed count, or a connection without the count, gives the same 502 with the OS error text.
  • Both upstream connections of the TLS terminator count the dialed socket, never the stream from wb-netd.
  • The timing check from main and its test are gone.
  • New tests: TestC02HTTP1ProbeStall, plain and TLS, TestC02HTTP1ProbeRecordWithoutData, TestC02HTTP1ProbeUnreadFails, TestC02UpstreamUnread, TestUnreadUrgent on each OS, and TestUnreadConfined on macOS.

Choices made, which you can veto:

  • On Linux and Windows the code asks SIOCATMARK first and reports 1 when urgent data waits, and only then asks for the count. Linux’s count stops at the urgent mark, so a server could hide stale bytes behind one urgent byte. On Windows, Go never reads urgent data, so after one urgent byte every later count is at least 1 and every later request on that kept connection gets a 502. That fails closed.
  • A close with no data during a stalled probe counts 0, and the request ends as upstream-idle-close, as a close just after the probe does.
  • The stall leaves the list of windows the spec accepts. The 1 ms wait stays.
  • The late TLS session ticket case is tested with a scripted count, because Go’s TLS server doesn’t send a ticket on demand.

Reviews. The code review approved round 1. The security review asked for changes. On Linux, SIOCINQ returns 0 when an urgent byte is first in the queue, while a read skips that byte and returns the bytes after it. An origin could still use the stall window that way (F1, from kernel source). The fuzz target’s upstream had no count either, and without it no second request went upstream in fuzzing, which undid a fix from PR879PR879 (merged): feat(proxyd): watch a kept upstream connection while an inspected stream is idleBetween two requests on an inspected HTTP/1.1 stream, wb-proxyd now reads the server's kept connection. (F2). Both were fixed. Round 2 asked to put SIOCATMARK before the count, because the two calls aren’t atomic (F4). That fix used the second round.

Not covered yet. The rest of a TLS record that crypto/tls already holds is still an accepted window. Nobody has seen the Linux test fail without the fix.

The VM tests run under a test data root of their own

Section titled “The VM tests run under a test data root of their own”

Code and spec. Security: where test builds of wb-vmd and wb-diskfmt take their data folder, and a new rule in the bundle check (S17-01-bundleS17-01-bundle: The BundleWhat a Wraith Box bundle holds, and how mise run build builds and signs it.). SEC02-no-host-fs-shareSEC02-no-host-fs-share: No host filesystem sharingNo host directory is mounted into the guest, read-only or otherwise. and 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. are unchanged. 221 lines of Go and Swift changed and 494 of tests. 82 lines of spec, test plan, and implementation plan. The root and the fix of its Windows test came in separate pull requests (PR967PR967 (merged): feat(vmd): give the needs-vm tests a test data root of their ownThe needs-vm tests of wb-hostd used to boot their VM under the real Wraith Box data folder of the Mac they ran on, so they could only run on a Mac with no Wraith Box data, and only with the maintainer present., PR976PR976 (merged): fix(diskfmt): take the accepted test data root from t.TempDirThe disk formatter's test of its test data root accepted a fixed Unix-style path, which Windows doesn't treat as absolute, so the check refused it there and the Windows test leg failed every time.).

The problem. The VM tests of wb-hostd booted their VMs under the real data folder of Wraith Box, so they ran only on a Mac where Wraith Box had no data, with the maintainer present (I413I413 (closed): wb-vmd: a test-only bundle root, so needs-vm tests run without the real Wraith Box datawb-vmd boots only bundles under the real ~/Library/Application Support/WraithBox.).

What was built. The disks spec gets a section on the test data root (S06-05-disksS06-05-disks: DisksA VM's system disk and data disk: how the data disk keeps what the guest flushes, and how the guest mounts it.).

  • A wb-vmd built with the Swift condition WB_TEST_DATA_ROOT takes its data folder from the section __TEXT,__wb_test_data, which the test links in, and has the marker section __DATA,__wb_test_build. A missing or malformed root is refused with vmd-test-data-invalid.
  • A wb-diskfmt built with the Go tag wbtestdataroot takes its data folder from main.testDataRoot, set with -ldflags -X, and refuses to start without an absolute one.
  • The bundle check gets the rule test-build, which refuses a program with either section in any segment, and a Go program built with the tag.
  • The test builds both programs into an APFS clone of the built app in .scratch/go-test-vm/test-app, signed ad hoc, and fails unless the bundle check reads both back as test builds. It fails if the real data folder appears, goes, or changes its inode or modification time.

A test build stays out of a release because its code is behind the condition and the tag, app:bundle sets neither, and the bundle check refuses one built with either. The security review built a release wb-vmd with the test section linked in and a root in its environment, and it still opened only the real data folder.

Choices made, which you can veto:

  • The root is fixed when the program is linked, not passed at run time. wb-hostd gives wb-vmd only its slot variable, so the shipped wb-hostd doesn’t need a test path.
  • The root is a fresh os.MkdirTemp directory, because the test’s own temporary path pushes the socket path past the 104 bytes macOS allows. One //nolint:usetesting names that reason.
  • The test builds wb-vmd in release for the bundle’s target, as app:bundle does, so the condition and the data section are the only differences. Its first run compiles the package in a scratch directory for a few minutes.

VM run. On the dedicated Mac, with the spike fixture guest: TestC11HostdVM passed in 525 s with the release build, the first build included. Start to hello took 26.7 s and the stop 30.7 s. After a kill -9 of wb-hostd, a new start went through after 32.1 s. The real data folder didn’t exist before or after.

Reviews. Both approved round 1 with folds, all done in one fix round: build the test wb-vmd as the bundle does, move wb-diskfmt’s decision into an untagged function so CI covers it, check both programs read as test builds, and say in the test plan what the test compares. The new unit test of that function took /scratch/data as an absolute root, which it isn’t on Windows. The Windows leg of the train failed on it after wave 2 and ended the campaign (I970I970 (closed): wb-diskfmt: TestTestDataDir fails on Windows, /scratch/data is not an absolute path thereTestTestDataDir (packages/wraithbox-go/cmd/wb-diskfmt/testrootcheck_test.go), added by #967 (#413), fails on Windows.). The fix takes the root from t.TempDir, decodes the JSON log record instead of matching its text, and adds a Windows-only test that /scratch/data, \scratch\data and C:data are refused. The check itself is unchanged. The fix was approved in round 1 with no findings.

Not covered yet. A run killed with kill -9 leaves its VM running, and the next run deletes the bundle it runs from, with no issue. CI now compiles the test-only code, a change of its own below.

A VM stop no longer waits on a held accounting channel

Section titled “A VM stop no longer waits on a held accounting channel”

Code and spec. Security: the accounting channel from wb-netd into wb-hostd, a trust boundary, and the VM stop record (SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter.). 178 lines of Go changed and 266 of tests and their stand-in program. 34 lines of spec and test plan.

The problem. When a VM stops, wb-hostd waits for wb-netd to exit and then for its reader of wb-netd’s accounting channel to end. The reader ended only once every copy of wb-netd’s end was closed. A compromised wb-netd could send a copy of its end over another socket that nobody reads, exit, and leave the stop waiting forever. The stop record was then never written, and the transport wasn’t closed. The security review of the stop test fix below found and reproduced it (I968I968 (closed): wb-hostd: netdproc Stop waits without a bound for the accounting reader when wb-netd's end is still in flightFollow-up from #874 (security review of #965, F2).).

What was built. Once wb-netd has exited, the stop calls SenderGone on the reader. The reader then reads what is queued without waiting, checks and keeps each record as before, and stops when the queue is empty. A drain that someone keeps filling stops after DrainMax, 131,072 records. Records past it, and every write after the stop, are refused unread. Each stop of the read after the exit is logged with a new rule, accounting-sender-gone, with decision stop or, at the bound, refuse. A new interface, egress.AccountingConn, gives the reader its non-blocking receive without widening the channel type that wb-proxyd’s control channel also uses. The darwin test runs a stand-in wb-netd mode, accounting-in-flight, that sends its accounting end over a socket the test holds unread, and it fails with Stop blocked when the SenderGone call is removed.

Choices made, which you can veto:

Measured by the security review. On a real socket pair with a silent held copy, the reader ended 174 µs after SenderGone. With 4 writer threads on a held copy, the drain reached the bound in 1.37 s. That is about the most the bound adds to a stop. A repeated debit drained dry after 71,039 records in 0.61 s. Each fuzz target of the accounting records ran 15 to 20 s with no failure.

Reviews. The code review’s round 1 had one must-fix: the records and bounds spec still promised the read goes on until the socket is empty (F1). It also asked to log a sender’s close with the rule (F2). The security review approved with two low folds: the spec wording, and a test that a write after the stop fails. One commit fixed these findings of both reviews, and round 2 approved.

Not covered yet. No VM run: whether the Virtualization framework can hold a copy of the end is from code reading. When wb-proxyd’s own accounting reader is wired, its supervisor needs the same call.

wb-vmd’s hand-off ack reader skips a failed receive

Section titled “wb-vmd’s hand-off ack reader skips a failed receive”

Code, spec, and contract comments. Security: wb-vmd reads wb-hostd’s acknowledgments as input, and no control changes. 107 lines of Swift and 24 lines of proto comments changed, and 197 of tests. 12 lines of spec and test plan. 48 lines of generated code left out.

The problem. One failed recvmsg ended the reader of hand-off acks until wb-vmd restarted. From then on, every hand-off kept wb-vmd’s copy of the descriptor and its connect-cap place for the full 5 s deadline (I751I751 (closed): wb-vmd: a bad hand-off ack or failed receive is skipped, not the end of the ack readerBuilds S04-12-descriptor-passing, "Acknowledgments are input", in wb-vmd's acknowledgment reader (#754, PR #758)., S04-12-descriptor-passingS04-12-descriptor-passing: Passing DescriptorsHow one host process passes an open socket to another: who holds it when, how the receiver shows it holds it, when the sender closes its copy, and what a lost or bad acknowledgment does.).

What was built. A failed receive is logged as handoff-ack-receive-failed and skipped. The reader ends with handoff-ack-channel-ended only when wb-hostd’s end is closed, on cut control data, or after 16 failed receives in a row. A receive that doesn’t fail resets the count. HandoffReaderTests covers each case on a real socket pair and checks that a kept copy still closes at its deadline. The proto changed in comments only, with no wire change.

Choices made, which you can veto: the bound of 16, and EAGAIN counting as a receive that doesn’t fail. After a failure the reader reads on in the same wake, so an error that never clears reaches the bound at once. The code review noted that a receive error lasting about a millisecond then uses up the 16 tries and ends the reader. The fix round reworded the comment to say so and kept the behavior. No security review ran, since the issue’s component, wb-vmd, doesn’t call for one.

A pull request into a train runs the Windows Go leg

Section titled “A pull request into a train runs the Windows Go leg”

Harness, spec and docs, rode the train as a pick. No SEC* control changes. 76 lines of workflow and script changed, 55 of tests, and 39 of spec and docs.

The problem. A pull request skipped the Windows Go leg unless it went into main, so the pull request of a builder into a train never ran it. The first Windows run was the push to the train after the merge, and a Windows-only failure turned the train red and ended the campaign, here with I970I970 (closed): wb-diskfmt: TestTestDataDir fails on Windows, /scratch/data is not an absolute path thereTestTestDataDir (packages/wraithbox-go/cmd/wb-diskfmt/testrootcheck_test.go), added by #967 (#413), fails on Windows. and before on train 792 (I971I971 (closed): ci: run the Windows Go leg on pull requests into a trainA builder's pull request into train/ skips the Windows leg of the Go job (#753, S02-02-ci, "The fuzz smoke and the Windows leg").).

What was built. scripts/ci-changes.mjs has a new output, windows, which is true wherever full is and for a pull request whose base starts with train/. The Go job’s matrix reads it to keep or drop the Windows leg. full now gates only the fuzz smoke, which still runs on the train’s own pull request into main. The CI spec, the verification spec, the languages spec, docs/github-settings.md and the campaigns page state the rule (S02-02-ciS02-02-ci: CIHow the CI workflow runs the checks, which jobs a pull request or push skips, and the Go and Swift caches., S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq…, S12-02-languages-and-ciS12-02-languages-and-ci: Languages and CIThe language used on each platform, and how CI builds each platform.).

Choices made, which you can veto: the new output starts from full, so the two can’t drift. A base counts when it starts with train/, including a train stacked on a train. It costs one more Windows runner for each Go pull request in a campaign.

Reviews. The code review approved round 1 and asked for the AGENTS.md line in its own issue (F1, I982I982 (open): AGENTS.md: say that a pull request into a train runs the Windows Go legFollow-up of #971 (code review of #977, F1).). Its own first run showed the rule working: it ran the Windows leg and hit I970I970 (closed): wb-diskfmt: TestTestDataDir fails on Windows, /scratch/data is not an absolute path thereTestTestDataDir (packages/wraithbox-go/cmd/wb-diskfmt/testrootcheck_test.go), added by #967 (#413), fails on Windows.. The manager merged the train into the branch after the fix, as “What needs you” says.

wb-hostd’s stop test had a broken stand-in

Section titled “wb-hostd’s stop test had a broken stand-in”

Tests. 123 lines of tests and their stand-in program. Security: the review found the stop defect fixed above (SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped.).

TestStopBoundsASenderThatIgnoresIt sometimes waited a full minute. Its stand-in wb-netd never sent its version record on the accounting channel, so wb-hostd killed it 5 s after the start, without a line in the stand-in’s log. Runs take 1.5 to 3.5 s, so only a slowed run failed. The stand-in now sends the record, any early exit fails the test at once, and a failure prints a grouped goroutine dump short enough for the rate limit of the log. The bound the test proves is unchanged (I874I874 (closed): wb-hostd: TestStopBoundsASenderThatIgnoresIt waits a minute for flood-netd past the allowance, flakyTestStopBoundsASenderThatIgnoresIt (packages/wraithbox-go/internal/hostd/netdproc/netdproc_darwin_test.go) failed twice while building #853 on fix/853-netdproc-stop-flake: once in a local mise run ci while swift:test…). Its security review found the held accounting channel that the change above fixes (I968I968 (closed): wb-hostd: netdproc Stop waits without a bound for the accounting reader when wb-netd's end is still in flightFollow-up from #874 (security review of #965, F2).).

wb-hostd records a VM’s stop before the slot reads stopped

Section titled “wb-hostd records a VM’s stop before the slot reads stopped”

Code. Security: the order of the audit log (SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter., S09-11-auditS09-11-audit: AuditWhat the audit log records, the budgets that bound it, and what happens when the log can't be written.). 28 lines of Go changed and 75 of tests. 4 lines of test plan.

The problem. TestC11StoppedUnexpectedly failed now and then on macOS and Windows (I815I815 (closed): wb-hostd: TestC11StoppedUnexpectedly reads the log before the stop is loggedTestC11StoppedUnexpectedly (packages/wraithbox-go/internal/hostd/vm/vm_test.go:554) failed on train/792 at 0f9b2314, job Go (windows-2025) of run 46213043888:). When a VM stopped, wb-hostd marked the slot stopped and only then logged the stop and queued its vm stopped record, so a test that saw the slot stopped could read the log without the line. The same gap is a product defect. A stop followed at once by a start could put the new run’s vm start record before the old run’s vm stopped.

What was built. The run’s end now logs the stop and hands the audit writer its record first, then sets the slot stopped and wakes waiters. The writer returns at once and keeps the order it accepts records in. A stop request for a run that is already ending is refused with vm-stopping, and it doesn’t write a record. A new test holds the stop record in the fake audit and checks that, meanwhile, the slot doesn’t read stopped and a stop is refused. It fails on the old code every run. With a 20 ms sleep injected before the log, the old code failed TestC11StoppedUnexpectedly on every run and the new code passed 50 of 50.

Choices made, which you can veto: a stop of an ending run is refused rather than made to wait for the end, as starting an active period already does. The fix is in the product, and the test’s assertion is unchanged.

Reviews. In round 1 the code review found a must-fix in the window that the change itself widened. A stop that arrived while the run was ending was accepted. Its vm stop record came after vm stopped, and it called stop on a closed instance (F1). Fixed, and round 2 approved. The security review, which the manager ran after the wave, approved and found two low gaps that are on main too, outside the diff: the record of a stop request can land after the next run’s start, and a failed start gives its slot back before its stop record (I983I983 (open): hostd: record a VM's stop before giving its slot back in abortStart and StopTwo low-severity audit ordering gaps in internal/hostd/vm, found by the security review of #978 (#815).).

app:bundle checks the tools disk it builds, not merged

Section titled “app:bundle checks the tools disk it builds, not merged”

Build script and tests, against main, not merged. 84 lines of script, 26 of tests, and 6 lines of spec and agent docs.

A bundle build on CI put a tools disk into the app that the final check found empty, though the log shows both guest programs signed into its source folder (I952I952 (open): app:bundle: the tools disk was built without wb-guestd, wb-guestroot and its version stampThe Swift job's mise run app:bundle step failed on #886 (run 46654045820, job 142665725008).). The cause is one of two unchecked steps: making the image, or attaching it for the check. Now the build attaches the new image and compares every file with cmp, and every attach fails unless hdiutil attach -plist names one mounted volume at the asked place on its own device. The cleanup detaches by device. A new test pins that the bundle check rejects an empty disk. It fails the build rather than retrying. The next failure then names the step. This is in “What needs you” (PR958PR958 (open): fix(app): fail app:bundle where the tools disk goes wrongThe app bundle build could put a guest tools disk into the app that the final check then found empty: no guest agent, no root helper, no version stamp.).

A wb-netd child test waits for the child’s first message

Section titled “A wb-netd child test waits for the child’s first message”

Tests. 96 lines.

TestChildHandoffAudit gave the child wb-netd 1 s to send its version record, while wb-hostd allows 10 s for the same record. The tests now wait for the record or the child’s exit, with a 10 s bound for a hung child only, and share one version check through nt.Peer.ReadVersionWithin (I953I953 (closed): wb-netd: TestChildHandoffAudit gets no message from the child within 1s on a loaded runnerTestChildHandoffAudit (packages/wraithbox-go/cmd/wb-netd/child_darwin_test.go) failed on #886 in the Go (xcode-27) job of run 46746362358 (job 142997246160).).

CI compiles the test builds of the test data root

Section titled “CI compiles the test builds of the test data root”

Harness and spec, rode the train as a pick. No SEC* control changes. 86 lines of workflow, mise tasks and lint config, 7 of tests, and 5 of spec.

Only the attended VM test compiled the test-only code of the test data root, so a refactor could break it and pass CI until the next VM run (I969I969 (closed): ci: build and lint the test data root code of wb-vmd and wb-diskfmt, and update go:test-vm's descriptionFollow-up from #413 (reviews of #967: code F1, F2, F3 and security F2, F5).). Now .golangci.yml lints with the tag wbtestdataroot on every OS, go:test also runs wb-diskfmt’s tests with the tag on every leg, and a new task, swift:build-test-data-root, compiles wb-vmd with WB_TEST_DATA_ROOT. The task is part of build, so mise run ci runs it, and the CI workflow runs it as a step between the Swift tests and the build. go:test-vm’s description now says the test uses its own data root and leaves the real one alone. You can veto the build’s form: debug, in its own build directory, .build/test-data-root, and cached with the rest, at about 1.2 GB more per entry, and a cold build of 83 s on a Mac. The cache cost is in “What needs you”. The code review approved round 1 and found that the new directory would never reach the cache, because the key didn’t change and a hit skips the save. The fix versioned the key and made a push to main that misses the cache always build it. The release bundle builds from the default build directory, never this one.

A wb-guestd test program waits for its own signal

Section titled “A wb-guestd test program waits for its own signal”

Tests. 43 lines.

TestExit/kill-self saw exit code 2 instead of signal 9. The test program’s kill of itself returned before the signal took effect, because the kernel delivered it on another thread, and the program went on to its last line, return 2. The security reviewer reproduced this 2,853 times in 3,000 runs with the kill from a second thread. The program now waits after the kill and exits 4 if the signal never comes, and the stop test waits for SIGCONT the same way (I951I951 (closed): wb-guestd: TestExit/kill-self reports exit code 2 instead of signal 9TestExit/kill-self_interactive=false (packages/wraithbox-go/internal/guestd/shell/shell_unix_test.go) failed on #885 in the Go (xcode-27) job of run 46702809875 (job 142841212537).).

A margin test turns its clock’s minute after the count

Section titled “A margin test turns its clock’s minute after the count”

Tests. 33 lines.

TestRecordsMarginPerMinuteUnderBytes stopped its VM about once in 2,000 runs. wb-hostd’s event receiver writes a record to the audit log and then counts it toward the minute’s margin, and the test moved its fake clock once the log showed the second record. When the count came after the move, the next minute held three records. The clock now turns the minute on its third read, one read per counted record, and the test also checks the stop’s log line. It passed 3,000 runs. The code review noted that the spec doesn’t say which instant decides a record’s minute, and left it (I961I961 (closed): wb-hostd: TestRecordsMarginPerMinuteUnderBytes fails once with event-budget-ignored on ubuntu CITestRecordsMarginPerMinuteUnderBytes in internal/hostd/events failed once on the Go (ubuntu-26.04) leg of PR #957, whose diff changes no Go code (one Swift doc comment on top of the #751 work):, S09-13-event-sendersS09-13-event-senders: Event SendersHow wb-hostd tells the senders of event records about the audit budgets, what it holds back, and when it stops a VM for its records.).

The host service’s test servers wait for their handlers

Section titled “The host service’s test servers wait for their handlers”

Tests. 32 lines.

TestPlaceRefusedWithSession failed now and then when its temporary directory couldn’t be removed. The test’s gRPC servers stopped without waiting for their handlers, so a session handler still recording its session’s end wrote a journal file next to the state database while the cleanup removed the directory. Every test server of the host service now waits for its handlers on stop. It failed 4 of 3,000 runs before and 0 of 3,000 after (I972I972 (closed): wb-hostd: TestPlaceRefusedWithSession fails TempDir cleanup, a fixture goroutine outlives the testTestPlaceRefusedWithSession (packages/wraithbox-go/internal/hostd/hostservice/session_unix_test.go:631) failed once on the Go (ubuntu-26.04) leg of #865 (#676), and a rerun passed:). The code review found the same defect in wb-hostd itself. After its 5 s stop allowance it stops its server without waiting, and the session handlers then find the database closed. The session’s row is left live, and wb project place is refused for its project until a sweep at the start of wb-hostd, which isn’t built yet, marks it lost. That went to the issue on wb-hostd restarts as a comment (I700I700 (open): wb-hostd sessions: link drops, the reconnect list and its answers, the pause limit, deadlines, lost sessions and recoveryPackage M4.6 of docs/implementation-plan.md, part 2 of 3 (M4.6b).).

A test of wb-netd’s build connect waits for the running try

Section titled “A test of wb-netd’s build connect waits for the running try”

Tests. 27 lines.

TestBuildConnectRefused read the try count before the first connect’s goroutine had started its try. It now waits for the try. A second count after the service stops also catches a refused connect that starts a try late (I870I870 (closed): wb-netd: TestBuildConnectRefused/a_connect_runs fails with 0 tries on a loaded runnerTestBuildConnectRefused/a_connect_runs (packages/wraithbox-go/internal/netd/hostlink/build_darwin_test.go) failed once on train/849 at d768caf7, in the Go (xcode-27) job of run 46294772001:).

Security, most serious first. The findings on PR966PR966 (open): feat(go): add the risky-path flagger with its S08-09 matching rulesReturned work can change files that the host or CI runs on its own, so wb diff and the session summary will flag those paths for the user to read first. are on the open pull request, not on the train.

Code and docs, left as optional:

Change What can go wrong Tracked
Windows leg AGENTS.md contradicts the CI spec once the train merges I982I982 (open): AGENTS.md: say that a pull request into a train runs the Windows Go legFollow-up of #971 (code review of #977, F1).
Host service tests wb-hostd’s hard stop leaves a session’s row live and refuses wb project place for its project comment on I700I700 (open): wb-hostd sessions: link drops, the reconnect list and its answers, the pause limit, deadlines, lost sessions and recoveryPackage M4.6 of docs/implementation-plan.md, part 2 of 3 (M4.6b).
Test data root A killed run leaves its VM running, and the next run deletes the bundle it runs from none
Test data root The check on the real data folder fails if anything else of Wraith Box runs on the Mac during the test drop
Test data root in CI No test checks what the tagged init installs, CI builds debug for the host while the VM test builds release for the oldest supported macOS, and the first run in a warm checkout fetches the Swift dependencies again drop
Stream close A TLS record cut by wb-netd’s close reads as a clean end, a failed CloseWrite turns off the check, an end=error record doesn’t log its error, and each chunk wb-netd writes costs one more poll drop
Accounting drain A close by a sender still running is logged as accounting-sender-gone, and a version timeout at the instant of the exit is logged as a clean stop drop
Stop record order The Stop doc comment doesn’t list vm-stopping, and the new test hangs instead of failing if the refusal is removed drop
Hand-off ack reader A receive error lasting about a millisecond ends the reader after 16 tries in one wake, with 15 identical log lines, and the architecture page lost a section name comment reworded, drop
Unread count The tests ignore a failed count in setup, script the late TLS ticket, and could flake under heavy load drop
Margin test The fake clock assumes one clock read per counted record, and the spec doesn’t say which instant decides a record’s minute drop
Host service tests A fifth stream in a future test would hang a fake guest, and other test servers with a state database still stop without waiting drop
Risky-path flagger Links sharing a key and target aren’t collapsed, about 35 s at the change limit, and a rewritten link counts twice toward the limit open, PR966PR966 (open): feat(go): add the risky-path flagger with its S08-09 matching rulesReturned work can change files that the host or CI runs on its own, so wb diff and the session summary will flag those paths for the user to read first.
wb-guestd test The test program’s stop mode waits for SIGCONT with no bound, and a comment states the inferred cause as fact drop
app:bundle A double detach on SIGINT, and a window before the traps are set drop, PR958PR958 (open): fix(app): fail app:bundle where the tools disk goes wrongThe app bundle build could put a guest tools disk into the app that the final check then found empty: no guest agent, no root helper, no version stamp.

Issues the maintainer picked for this campaign: I815I815 (closed): wb-hostd: TestC11StoppedUnexpectedly reads the log before the stop is loggedTestC11StoppedUnexpectedly (packages/wraithbox-go/internal/hostd/vm/vm_test.go:554) failed on train/792 at 0f9b2314, job Go (windows-2025) of run 46213043888: (2026-12-02 04:54 UTC), I961I961 (closed): wb-hostd: TestRecordsMarginPerMinuteUnderBytes fails once with event-budget-ignored on ubuntu CITestRecordsMarginPerMinuteUnderBytes in internal/hostd/events failed once on the Go (ubuntu-26.04) leg of PR #957, whose diff changes no Go code (one Swift doc comment on top of the #751 work): (2026-12-02 04:54 UTC), I962I962 (closed): wb-proxyd: detect wb-netd's close of a stream's socket after its half-closeThe fix for #807 checks once, at the socket's end of file, whether wb-netd closed a stream's socket outright. (2026-12-02 04:54 UTC), I968I968 (closed): wb-hostd: netdproc Stop waits without a bound for the accounting reader when wb-netd's end is still in flightFollow-up from #874 (security review of #965, F2). (2026-12-02 04:54 UTC), I969I969 (closed): ci: build and lint the test data root code of wb-vmd and wb-diskfmt, and update go:test-vm's descriptionFollow-up from #413 (reviews of #967: code F1, F2, F3 and security F2, F5). (2026-12-02 04:54 UTC), I970I970 (closed): wb-diskfmt: TestTestDataDir fails on Windows, /scratch/data is not an absolute path thereTestTestDataDir (packages/wraithbox-go/cmd/wb-diskfmt/testrootcheck_test.go), added by #967 (#413), fails on Windows. (2026-12-02 04:54 UTC), I971I971 (closed): ci: run the Windows Go leg on pull requests into a trainA builder's pull request into train/ skips the Windows leg of the Go job (#753, S02-02-ci, "The fuzz smoke and the Windows leg"). (2026-12-02 04:54 UTC), I972I972 (closed): wb-hostd: TestPlaceRefusedWithSession fails TempDir cleanup, a fixture goroutine outlives the testTestPlaceRefusedWithSession (packages/wraithbox-go/internal/hostd/hostservice/session_unix_test.go:631) failed once on the Go (ubuntu-26.04) leg of #865 (#676), and a rerun passed: (2026-12-02 04:54 UTC).

Pull requests on the train that change a harness path or a dependency manifest:

Budget, pull requests, and waves

Campaign I954I954 (open): Campaign 2026-12-01 (V1-M3-network-floor, lane mac)/campaign 5 --lane mac --vm-slots 2 --hours 10 --usd 300 --issues 40 --prs 40, started 2026-12-01 21:58 UTC. Rendered by scripts/campaign.mjs (docs/agents/campaigns.md), with the body above from the train-reporter agent.

Limit Spent Of
Hours since resumed 2026-12-02 04:54 UTC 4.2 10
Dollars $172.32 $300.00
Issues 18 40
Pull requests 18 40
  • Resumed 2026-12-02 04:54 UTC: limits 10 hours, $300.00, 40 issues, 40 pull requests before, 10 hours, $300.00, 40 issues, 40 pull requests after.
Pull request Closes Title Where Rounds Specs and contracts Files
PR956PR956 (merged): test(netd): wait for the running connect's try before counting itA test of the build network's connect checks failed once on a busy CI runner. I870I870 (closed): wb-netd: TestBuildConnectRefused/a_connect_runs fails with 0 tries on a loaded runnerTestBuildConnectRefused/a_connect_runs (packages/wraithbox-go/internal/netd/hostlink/build_darwin_test.go) failed once on train/849 at d768caf7, in the Go (xcode-27) job of run 46294772001: test(netd): wait for the running connect’s try before counting it on the train 1 none 1
PR957PR957 (merged): fix(swift): skip a failed hand-off ack receive instead of ending the readerwb-vmd reads wb-hostd's hand-off acknowledgments on one socket. I751I751 (closed): wb-vmd: a bad hand-off ack or failed receive is skipped, not the end of the ack readerBuilds S04-12-descriptor-passing, "Acknowledgments are input", in wb-vmd's acknowledgment reader (#754, PR #758). fix(swift): skip a failed hand-off ack receive instead of ending the reader on the train 1 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., vmd.proto 9
PR958PR958 (open): fix(app): fail app:bundle where the tools disk goes wrongThe app bundle build could put a guest tools disk into the app that the final check then found empty: no guest agent, no root helper, no version stamp. none fix(app): fail app:bundle where the tools disk goes wrong waiting for you (against main) 1 S17-01-bundleS17-01-bundle: The BundleWhat a Wraith Box bundle holds, and how mise run build builds and signs it. 4
PR959PR959 (merged): fix(proxyd): count the kept connection's unread socket bytes after a probe times outBefore a later request goes on a kept upstream connection, wb-proxyd reads the connection for 1 ms to catch stale bytes the server sent after its last response. I950I950 (closed): wb-proxyd: a probe below TLS that a stalled goroutine can't skip, for the kept-connection checkMeasured in #949 under heavy CPU load: about 1 in 3 skipped reads on TLS and about 1 in 17 on plain still pass as quiet. fix(proxyd): count the kept connection’s unread socket bytes after a probe times out on the train 1 S07-15-non-http-streamsS07-15-non-http-streams: Non-HTTP StreamsHow wb-proxyd checks the protocol of each stream, and what it does with SSH, other protocols and raw TCP., S12-01-platform-interfacesS12-01-platform-interfaces: Platform InterfacesHow platform-specific code is isolated behind interfaces, and what each host OS uses for each. 20
PR960PR960 (merged): fix(guestd): wait for the test program's own SIGKILL and SIGSTOPA shell test sometimes saw a program that killed itself reported as exiting with code 2 instead of dying by signal 9. I951I951 (closed): wb-guestd: TestExit/kill-self reports exit code 2 instead of signal 9TestExit/kill-self_interactive=false (packages/wraithbox-go/internal/guestd/shell/shell_unix_test.go) failed on #885 in the Go (xcode-27) job of run 46702809875 (job 142841212537). fix(guestd): wait for the test program’s own SIGKILL and SIGSTOP on the train 1 none 1
PR963PR963 (merged): fix(proxyd): close upstream when wb-netd closes a stream's socket outrightWhen wb-netd closes a stream's socket outright, for example when it resets the guest's connection, wb-proxyd now closes the upstream connection and frees the stream's place under the stream cap. I807I807 (closed): wb-proxyd: close upstream when wb-netd closes a stream's socket outrightS07-20-handoff-sockets, "Stream bounds", says: when a stream's socket ends, wb-proxyd closes the upstream connection. fix(proxyd): close upstream when wb-netd closes a stream’s socket outright on the train 2 S07-20-handoff-socketsS07-20-handoff-sockets: Hand-off SocketsThe life of one VM's hand-off socket: its identity, the acknowledgments of both ends, how it closes, who a failure is charged to, what each restart does to it, and which of its decisions reach the audit log., S12-01-platform-interfacesS12-01-platform-interfaces: Platform InterfacesHow platform-specific code is isolated behind interfaces, and what each host OS uses for each. 21
PR964PR964 (merged): test(netd): wait for the child's version record, not a fixed secondThe tests that run wb-netd as a child process gave the child one second to send its first message, and on a busy CI runner it sometimes needed longer. I953I953 (closed): wb-netd: TestChildHandoffAudit gets no message from the child within 1s on a loaded runnerTestChildHandoffAudit (packages/wraithbox-go/cmd/wb-netd/child_darwin_test.go) failed on #886 in the Go (xcode-27) job of run 46746362358 (job 142997246160). test(netd): wait for the child’s version record, not a fixed second on the train 1 none 4
PR965PR965 (merged): test(hostd): show both sides when the stop allowance test stallsA test proves that a network daemon that ignores its stop gets only a bounded allowance of event records past the hold. I874I874 (closed): wb-hostd: TestStopBoundsASenderThatIgnoresIt waits a minute for flood-netd past the allowance, flakyTestStopBoundsASenderThatIgnoresIt (packages/wraithbox-go/internal/hostd/netdproc/netdproc_darwin_test.go) failed twice while building #853 on fix/853-netdproc-stop-flake: once in a local mise run ci while swift:test… test(hostd): show both sides when the stop allowance test stalls on the train 2 none 3
PR966PR966 (open): feat(go): add the risky-path flagger with its S08-09 matching rulesReturned work can change files that the host or CI runs on its own, so wb diff and the session summary will flag those paths for the user to read first. I696I696 (open): Risky-path flagger: the matching rules in S08-09 and the Go flagger, with fuzz propertiesPackage M4.5 of docs/implementation-plan.md, part 1 of 3 (M4.5a). feat(go): add the risky-path flagger with its S08-09-risky-changesS08-09-risky-changes: Flagging Risky ChangesThe changed paths that wb diff and the session summary flag, because the host or CI may run them (SEC03-no-host-exec). matching rules open 2 S08-09-risky-changesS08-09-risky-changes: Flagging Risky ChangesThe changed paths that wb diff and the session summary flag, because the host or CI may run them (SEC03-no-host-exec)., go.mod 14
PR967PR967 (merged): feat(vmd): give the needs-vm tests a test data root of their ownThe needs-vm tests of wb-hostd used to boot their VM under the real Wraith Box data folder of the Mac they ran on, so they could only run on a Mac with no Wraith Box data, and only with the maintainer present. I413I413 (closed): wb-vmd: a test-only bundle root, so needs-vm tests run without the real Wraith Box datawb-vmd boots only bundles under the real ~/Library/Application Support/WraithBox. feat(vmd): give the needs-vm tests a test data root of their own on the train 1 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., S06-05-disksS06-05-disks: DisksA VM's system disk and data disk: how the data disk keeps what the guest flushes, and how the guest mounts it., S17-01-bundleS17-01-bundle: The BundleWhat a Wraith Box bundle holds, and how mise run build builds and signs it. 28
PR976PR976 (merged): fix(diskfmt): take the accepted test data root from t.TempDirThe disk formatter's test of its test data root accepted a fixed Unix-style path, which Windows doesn't treat as absolute, so the check refused it there and the Windows test leg failed every time. I970I970 (closed): wb-diskfmt: TestTestDataDir fails on Windows, /scratch/data is not an absolute path thereTestTestDataDir (packages/wraithbox-go/cmd/wb-diskfmt/testrootcheck_test.go), added by #967 (#413), fails on Windows. fix(diskfmt): take the accepted test data root from t.TempDir on the train 1 none 2
PR977PR977 (merged): Run the Windows Go leg on pull requests into a trainA builder's pull request into a campaign train now runs the Go tests on Windows when it changes Go. I971I971 (closed): ci: run the Windows Go leg on pull requests into a trainA builder's pull request into train/ skips the Windows leg of the Go job (#753, S02-02-ci, "The fuzz smoke and the Windows leg"). Run the Windows Go leg on pull requests into a train on the train 1 S02-02-ciS02-02-ci: CIHow the CI workflow runs the checks, which jobs a pull request or push skips, and the Go and Swift caches., S11-verification-and-spikesS11-verification-and-spikesthe filter's fuzz properties, including one that replays the filtered output and the exit reset into a headless emulator and checks it is back in its initial state, and a conformance case that prints every dropped seq…, S12-02-languages-and-ciS12-02-languages-and-ci: Languages and CIThe language used on each platform, and how CI builds each platform. 8
PR978PR978 (merged): fix(hostd): log and record a VM's stop before its slot reads stoppedWhen a VM stopped, the host daemon marked its slot stopped and only afterwards logged the stop and queued the stop's audit record. I815I815 (closed): wb-hostd: TestC11StoppedUnexpectedly reads the log before the stop is loggedTestC11StoppedUnexpectedly (packages/wraithbox-go/internal/hostd/vm/vm_test.go:554) failed on train/792 at 0f9b2314, job Go (windows-2025) of run 46213043888: fix(hostd): log and record a VM’s stop before its slot reads stopped on the train 2 none 5
PR979PR979 (merged): fix(hostd): bound the accounting drain once wb-netd exitsWhen a VM stops, wb-hostd waits for wb-netd to exit and then for its reader of wb-netd's accounting channel to finish. I968I968 (closed): wb-hostd: netdproc Stop waits without a bound for the accounting reader when wb-netd's end is still in flightFollow-up from #874 (security review of #965, F2). fix(hostd): bound the accounting drain once wb-netd exits on the train 2 S04-08-records-and-boundsS04-08-records-and-bounds: Records, Versions and BoundsThe records daemons send wb-hostd, the build version rules between processes, the bounds on host work a guest can cause, and logs., S07-06-name-mappingS07-06-name-mapping: Name MappingHow wb-proxyd keeps its own checked copy of the names wb-netd gave synthetic addresses: name reports, releases, replay, lifetime, the second count of the wildcard budget, and the copy wb-hostd keeps. 11
PR981PR981 (merged): fix(proxyd): wait for wb-netd's close of a stream's socket after its half-closeA raw or encrypted pass-through stream reads the guest side's socket only until its first end of file. I962I962 (closed): wb-proxyd: detect wb-netd's close of a stream's socket after its half-closeThe fix for #807 checks once, at the socket's end of file, whether wb-netd closed a stream's socket outright. fix(proxyd): wait for wb-netd’s close of a stream’s socket after its half-close on the train 1 S07-20-handoff-socketsS07-20-handoff-sockets: Hand-off SocketsThe life of one VM's hand-off socket: its identity, the acknowledgments of both ends, how it closes, who a failure is charged to, what each restart does to it, and which of its decisions reach the audit log., S12-01-platform-interfacesS12-01-platform-interfaces: Platform InterfacesHow platform-specific code is isolated behind interfaces, and what each host OS uses for each. 21
PR984PR984 (merged): test(hostd): turn the margin test's minute after the count, not the writeA test of the audit margin failed now and then because it moved its fake clock a moment too early. I961I961 (closed): wb-hostd: TestRecordsMarginPerMinuteUnderBytes fails once with event-budget-ignored on ubuntu CITestRecordsMarginPerMinuteUnderBytes in internal/hostd/events failed once on the Go (ubuntu-26.04) leg of PR #957, whose diff changes no Go code (one Swift doc comment on top of the #751 work): test(hostd): turn the margin test’s minute after the count, not the write on the train 1 none 1
PR985PR985 (merged): Build and lint the test data root code in CIThe test-only builds that let the VM test run under a data root of its own were compiled only by that attended VM test, so a refactor could break them and stay green until the next VM run. I969I969 (closed): ci: build and lint the test data root code of wb-vmd and wb-diskfmt, and update go:test-vm's descriptionFollow-up from #413 (reviews of #967: code F1, F2, F3 and security F2, F5). Build and lint the test data root code in CI on the train 1 S02-02-ciS02-02-ci: CIHow the CI workflow runs the checks, which jobs a pull request or push skips, and the Go and Swift caches. 6
PR986PR986 (merged): fix(go): wait for hostservice test handlers before cleanupA host-service test sometimes failed after its checks passed, because removing the test's temporary directory found a file that had just appeared in it. I972I972 (closed): wb-hostd: TestPlaceRefusedWithSession fails TempDir cleanup, a fixture goroutine outlives the testTestPlaceRefusedWithSession (packages/wraithbox-go/internal/hostd/hostservice/session_unix_test.go:631) failed once on the Go (ubuntu-26.04) leg of #865 (#676), and a rerun passed: fix(go): wait for hostservice test handlers before cleanup on the train 1 none 5
Wave Length Cost Issues Pull requests Session ended
1 98 min $37.96 5 5 success
2 127 min $74.89 5 5 success
3 108 min $48.39 5 5 success
4 101 min $11.09 3 3 success