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)..
In short
Section titled “In short”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-proxydnotices whenwb-netdcloses 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-proxydcounts 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-hostdrun under a test data root of their own. Test builds ofwb-vmdandwb-diskfmttake 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-netdcan 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. Oncewb-netdhas exited,wb-hostdreads 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.mdneeds a matching line againstmain. wb-hostdrecords 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
mainsaves the new cache. - The other flaky tests are fixed in the tests themselves. They are in
wb-hostd,wb-netdandwb-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.
What needs you
Section titled “What needs you”- A third review round for the risky-path flagger, or a merge without one. Both reviewers still ask for changes after round 2: the “Limits” section that the pull request wrote into the risky changes spec says the flagger bounds its time and memory, and it doesn’t (code F8, security F13 and F14, below). The pull request is green and mergeable, and its worktree is kept. Options: a third round, or merge and file the three findings as a high-priority issue. The wave lead recommends a third round, because the control is false as written. (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)., 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).)
- Whether the flagger’s reviews become issues. Beyond its issue’s scope, the flagger doesn’t flag an embedded bare repository, and a git command run inside
vendor/x/takescore.fsmonitorand aliases from itsconfig(security F7). Both reviews list things the host runs that the flagger doesn’t flag:binding.gyp, thepackageManagerand dependency keys ofpackage.json, a content change to a file that is already executable, and names such asPodfile,pom.xmlandrequirements.txt(code F5, security F9). Options: an issue on the risky changes spec for each, one issue for all, or none. (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.) - Approve 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. into
main, or not. Its change toscripts/app-bundle.sh, a harness path, keeps it off the train. The build reads the new tools disk image back and fails unless every file it wrote is there byte for byte, and every attach of the disk fails unless exactly one volume is mounted where asked. It doesn’t find the cause. Its body saysRefs, and merging it leaves 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). open. The code review approved it and its checks passed. Its worktree is kept. (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., 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)., S17-01-bundleS17-01-bundle: The BundleWhat a Wraith Box bundle holds, and how mise run build builds and signs it.) - The
AGENTS.mdline on the Windows leg. Once the train merges,AGENTS.mdstill says a pull request runs the Windows Go leg only on the way intomain, which contradicts the CI spec.AGENTS.mdis one of the agents’ own controls, so it can’t ride the train. The issue holds the wording: “the fuzz smoke only on the way intomain, and the Windows Go leg on the way intomainor a train”. Options: an agent opens a pull request againstmainwith or after the train, which waits for your approval, or you edit it. (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)., 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., 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.) - The Swift CI cache after the train merges. Building
wb-vmdwith the test data root adds about 1.2 GB, uncompressed, to each Swift cache entry, and the cache key’s new prefixswift-build-v2-makes every Swift run miss until a push tomainsaves an entry. Until then each run builds the Swift dependencies from source, which needs the network. A push tomainthat misses the cache builds it even when only Go changed. Every saved entry then holds it. Options: accept, as the builder chose, or skip the build on such pushes and accept entries without it. (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).) - The manager’s security review and merges of 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. and 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.. The wave 3 lead left 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. with a code review only, though its issue is
comp:wb-hostd, which needs a security review before it rides. After the wave the manager ran the security review itself (approve, two low findings on the base, filed as 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).) and merged it. It also merged the train into 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.’s branch withgh pr update-branchand checked that the patch was unchanged from the reviewed head 3a9c88d6. After one rerun of the macOS Go job for a known flaky test (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:), it merged 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.. Options: accept, or ask for a fresh security review of 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., since the session that ran the campaign also reviewed it. (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., 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., 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:, 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").) - The Linux and confinement evidence for the unread count. The Linux fix for a TCP urgent byte is checked against kernel source and passed the ubuntu leg, but nobody has seen
TestUnreadUrgentfail on Linux without it.wb-proxydhas no Seatbelt profile yet, soSO_NREADwas checked only in a child confined with(deny default). Options: accept these, or ask for a Linux run before Linux hosts are built. (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.) - No VM run for the bounded accounting read. Nobody checked whether the Virtualization framework can hold a copy of
wb-netd’s accounting end and delay its close. The fix makes the stop independent of that. Options: accept, or aneeds-vmcheck. (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).) - Triage of the follow-ups. A stream that still holds its place when a relay’s write upstream blocks, or on an inspected host’s WebSocket relay, is
needs-triagewithout a priority, and its security reviewer suggests medium (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 audit ordering gaps inwb-hostd’s stop areneeds-triageat low priority (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).), and so are the hardening findings left from the last review round of the picks feature (I975I975 (open): Campaign script: refuse ledger wave edits during a wave, and a restart of a campaign with pull requestsTwo low-severity hardening findings from the round-4 security review of #974 (campaign picks), left out of that pull request by the maintainer's choice ("good enough for now"):). No issue tracks a test gap inwb-netd’s build connect: with the two refusal checks swapped, the tests still pass (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.). A defect inwb-hostd’s shutdown that leaves a session’s row live went to 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). as a comment (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., code F3). - The report table and pull request titles. The report script copies pull request titles into its table as written, so a title that starts with
ci:fails Vale.Terms. 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. and 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. were retitled after they merged. No issue is filed. Options: an issue for the script to quote titles, or keep retitling. - For the record, a spell failure on the train. The report commit after wave 1 failed
prose:spellonFIONREAD, because the manager pushed it without a spell check. The wave 2 pull requests added the word tocspell-words.txt, which now holds it once. Nothing to decide.
What changed where
Section titled “What changed where”The changes, largest first
Section titled “The changes, largest first”The risky-path flagger, not merged
Section titled “The risky-path flagger, not merged”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 flaggedunparseable-pathrather than mapped to the names they stand for. - A link at the first part of a two-part name, such as
.github,.cargo,.configormise, 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-targetin 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
uncheckedflag and nothing else. golang.org/x/textmoves 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 withstream-hangup-wait-failed, until Windows hosts hand off streams. - A stream costs three descriptors in
wb-proxyd, one more than before, namedhandoff.DescriptorsPerStreamfor 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-netdcloses outright only when the guest aborts. stream-peer-closedgoes only to the daemon log, because it decides nothing about a guest’s traffic. A failed wait isn’t blamed onwb-netd: it goes to the audit log as a refusal, because neither side ended the stream.- Once
wb-proxydhas 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 reportsPOLLHUPfor 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 andWSAIoctl(FIONREAD)on Windows, each behindRawConn.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,
checkIdleasks 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 withupstream-request-failedand 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
mainand its test are gone. - New tests:
TestC02HTTP1ProbeStall, plain and TLS,TestC02HTTP1ProbeRecordWithoutData,TestC02HTTP1ProbeUnreadFails,TestC02UpstreamUnread,TestUnreadUrgenton each OS, andTestUnreadConfinedon macOS.
Choices made, which you can veto:
- On Linux and Windows the code asks
SIOCATMARKfirst 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-vmdbuilt with the Swift conditionWB_TEST_DATA_ROOTtakes 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 withvmd-test-data-invalid. - A
wb-diskfmtbuilt with the Go tagwbtestdataroottakes its data folder frommain.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-hostdgiveswb-vmdonly its slot variable, so the shippedwb-hostddoesn’t need a test path. - The root is a fresh
os.MkdirTempdirectory, because the test’s own temporary path pushes the socket path past the 104 bytes macOS allows. One//nolint:usetestingnames that reason. - The test builds
wb-vmdin release for the bundle’s target, asapp:bundledoes, 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:
- The drain has a bound, though the issue asked to drain until the queue is empty, because a writer holding a copy could keep it from emptying. 131,072 is above what the receive buffer of 81,920 bytes can hold, since each queued record takes at least one byte, so an exited
wb-netdcan’t reach it. - The specs state the property and the number stays in code. The records and bounds spec names this read as the one exception to “nothing drops accounting records”, and the name mapping spec holds the rule (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.).
- A sender’s close of its end is logged with the same rule, so each stop after the exit is logged with it, whatever its timing.
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:).
Review findings not resolved
Section titled “Review findings not resolved”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.
- Medium, the flagger’s limits don’t hold (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.). A guest’s push can make
wb diffrun for hours or out of memory. Alias keys have no size cap (security F13). Flag details have no size cap either, and manifests are read again per change (security F14). Case spellings of one link gave 4 million flags (code F8). A user who interrupts the hang lands without flags. Must-fix, left with the pull request out of rounds. - Medium, an input over a limit hides the files a rule names (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., security F15). 10,001 links next to a changed
.envrcandMakefilereturn only oneuncheckedflag that names neither. The review rated it a fold, and the finding stays on the pull request. - Medium, an embedded bare repository and unlisted names (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., security F7 and F9, code F5). The flagger doesn’t flag some files the host runs. They wait on your decision in “What needs you”.
- Low, a stream still holds its place in two cases. A raw or pass relay’s write upstream that blocks after upstream ended doesn’t see
wb-netd’s close, and an inspected host’s WebSocket relay has no write bound upstream at all. One VM could already fill its stream cap with idle streams. (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., security F3, 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.) - Low, two audit records can land out of order. A
vm stoprecord is accepted outside the lock, so after a VM stops and restarts on its own it can follow the next run’svm start. A failed start gives its slot back before itsvm stoppedrecord. The records hold their generation, so none is lost or misread. (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., security F1 and F2, 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).) - Low, an untested refusal check in
wb-netd’s build connect. With the two refusal checks swapped, the tests still pass, so the audit could record the wrong check. 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.’s body names it for the next issue of the component, and no issue tracks it. (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., security F2) - Low, left as drops with no issue. A stream’s place is freed microseconds before its own socket closes, which the descriptor limit has to allow for (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., F5, 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).). At the drain bound the reader logs that records are left without checking (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., F3), and on Windows the unread count doesn’t check that
WSAIoctlwrote its 4 bytes (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., F3). A later relay that forgets theErrPeerClosedcheck regresses with no test failing (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., F5). The test VM shares the graphics cache channel of T21-shared-graphics-cacheT21-shared-graphics-cache: The VMs share a graphics cacheThe graphics device, keyboard and pointer stay in the device set for now (S06-06-devices-and-warm-start, "The graphics device"). with real VMs, a fourth VM inside the accepted risk (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., F6). The test clone with an ad hoc signedwb-vmdthat holds the virtualization entitlement stays in.scratchafter a run (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., F7).TestChildExitEndsWaitwould fail on a runner five times slower than the one that failed 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). (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., F2).
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. |
Friction
Section titled “Friction”- The train failed on Windows after wave 2, on a test that always fails there.
TestTestDataDir, which 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. added in its fix round, took/scratch/dataas absolute. A pull request into the train didn’t run the Windows leg then, so the train’s own run at 123596fd was the first to run it, and it 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 same test failed the two train runs that followed, on the report commit 5789da93 and on the merge ofmainat 330e555e, as expected. 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. fixed it in wave 3, and 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. makes the pull request run the leg. - Full CI runs by hand to reach Windows. Before 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. merged, the wave 3 lead dispatched full runs with the Windows leg on 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., 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., 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. and 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., five in all. Each failed only on 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., except 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.’s, which passed. 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.’s first full run also failed
TestDescriptorsPerStream, its own new test, on Ubuntu, and a test-only commit fixed it. - A spell failure spread to five pull requests. The report commit after wave 1 (027073fe) failed
prose:spellonFIONREADon the train. Every wave 2 pull request branched from it, so the first CI run of 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., 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., 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., 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., and 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. failed the Docs check. Each added the word tocspell-words.txton the same line, and 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. and 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. needed one more commit each to move it there. - Flaky tests.
TestExit/kill-selffailed on 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.’s macOS leg before 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. fixed it (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).).TestRecordsMarginPerMinuteUnderBytesfailed once on 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.’s ubuntu leg (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):).TestC11StoppedUnexpectedlyfailed once on 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.’s macOS leg (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:).TestPlaceRefusedWithSessionfailed on the macOS leg of 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.’s first run and of 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.’s run after the branch update, and the manager reran 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.’s job once (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 train has the fix for each. The repository has noflakylabel, so 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): was filed asbug, and the campaign pages assume one. - A network timeout on the train. Wave 4’s first train run failed in the Swift bundle job, because downloading Go modules from proxy.golang.org timed out, and the rerun passed (run 46838908986). That and 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.’s are the only reruns on the campaign’s branches in waves 3 and 4.
- A skipped security review. The wave 3 lead left 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. without the security review its
comp:wb-hostdissue needs, and the manager ran it after the wave. The wave 4 lead’s report calls it wave 5. - Picks were new. The maintainer’s picks (I973I973 (closed): campaign: the maintainer picks issues for a wave and the trainThe maintainer can't point a campaign at specific issues.) merged into
mainas PR974PR974 (merged): feat(scripts): campaign picks, wave --only, and resumeThe maintainer can now point a campaign at specific issues. after four review rounds in the manager’s session, and reached the train in a merge commit before wave 3. The hardening findings its last round left are in I975I975 (open): Campaign script: refuse ledger wave edits during a wave, and a restart of a campaign with pull requestsTwo low-severity hardening findings from the round-4 security review of #974 (campaign picks), left out of that pull request by the maintainer's choice ("good enough for now"):. - Long review rounds. 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. used both revision rounds and is out of rounds: round 1 had 9 must-fix findings, and round 2 found 3 more in the limits round 1 added. 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. used both revision rounds. 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., 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., 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. and 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. each took a second code review round, 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. and 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. for a must-fix. 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. took a second security round for four folds. Wave 4’s three pull requests were approved in round 1.
- No Linux host for the reviewers. The Linux claims of 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., 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. and 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. rest on kernel source and the ubuntu CI leg. 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.’s code reviewer found the Docker daemon down.
- The worktree guard refused the test files of a reviewer. 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.’s security reviewer tried about a dozen times to write Go test files to
.scratchby heredoc, and the guard refused each as too complex to check. Its findings on the late close and on confinement are from reading, not from runs. - A title changed after the merge. 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.’s title started with
ci:, which failed Vale.Terms in the report’s table, so the manager retitled it after the merge, and 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. for the same reason. - Hand work and spend. Every wave ran headless. The manager’s own session ran 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.’s security review, 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.’s branch update and both merges, and the reviews of PR974PR974 (merged): feat(scripts): campaign picks, wave --only, and resumeThe maintainer can now point a campaign at specific issues., and that spend isn’t in the ledger. The manager didn’t report a refused command.
Picks and harness changes
Section titled “Picks and harness changes”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:
- 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. (open, closes 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).):
packages/wraithbox-go/go.mod - 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. (on the train, closes 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").):
.github/workflows/ci.yml,scripts/ci-changes.mjs,scripts/ci-changes.test.mjs - 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. (on the train, closes 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).):
.github/workflows/ci.yml,.golangci.yml,.mise.toml,scripts/ci-changes.test.mjs
The run
Section titled “The run”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.
- First code review approved: 13 of 18 pull requests.
- Code review rounds per reviewed pull request: 1.3.
- Follow-ups filed: 7.
- Flaky tests filed: 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):.
- 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 | 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 |