Campaign 720: network floor, lane mac
Ended 2026-11-10: The maintainer ended the campaign after wave 4, with the budget left: 7.8 of 12 hours and 119 of 240 dollars. Train train/720 in PR721PR721 (merged): Train 720: Campaign 2026-11-10 (V1-M3-network-floor, lane mac)Train of campaign #720 (docs/agents/campaigns.md).. To veto a pull request on the train, comment veto #<pr> on PR721PR721 (merged): Train 720: Campaign 2026-11-10 (V1-M3-network-floor, lane mac)Train of campaign #720 (docs/agents/campaigns.md)..
In short
Section titled “In short”The train fixes a macOS 27 race in passing sockets on every hand-off between the host daemons and holds back an audit event sender that ignores its budget, with smaller fixes to four refusals and four flaky tests.
wb-vmdkeeps each socket it passes untilwb-hostdacknowledges it. On macOS 27 the kernel can collect a socket in flight once its sender has closed its copy, so a guest connection or the VM’s network link could reachwb-hostddead.wb-hostdnow answers each hand-off record with a short acknowledgment, andwb-vmdchecks it as untrusted input and closes its copy then, or after 5 s. It builds your decision on I648I648 (closed): wb-vmd: keep a passed descriptor open until wb-hostd holds it (macOS socket GC)wb-vmd hands descriptors to wb-hostd and closes its copy at once: VMSupervisor.swift (the handoff.send(record, descriptor: transport.hostEnd) call, around line 219) and GuestConnector.swift (send(:descriptor:), which…, and it hasn’t run with a real VM yet.wb-hostdstops reading an audit event sender that ignores its budget. A compromisedwb-netdcould send well-formed records without limit, andwb-hostdqueued them all in memory. Now the sender’s writes fail and it refuses new work, whilewb-hostdkeeps every record it sent. The audit spec names one exception at a VM stop, which waits for your veto. Your decision on I741I741 (closed): Audit event holds: one VM's budget can hold the shared wb-proxyd channel for every VMFollow-up from the reviews of #740 (#541): code review F3, security review F1. later replaces the budget hold with a stop of the VM.wb-netdkeeps a handed-off stream’s end untilwb-proxydholds it. The same race on the stream path:wb-netdkeeps its copy untilwb-proxyd’s first byte or a reset, for 10 s at most. A stream thatwb-proxydcloses without a byte gives the guest its FIN up to 10 s late. Resets after a failed guest write, a guest write timeout or a failed read fromwb-proxydnow log a rule.- The hand-off spec states the rule, and
wb-hostdandwb-proxydfollow it. A process that passes a socket keeps its copy until the receiver shows it holds it.wb-proxydacknowledges a new hand-off socket before it reads it, and an early “socket closed” notice fails the VM’s start instead of leaving the VM without a network. Your decisions on I728I728 (closed): Hand-off socket contract of S07-20: socket number, HandoffSocketHeld, states, close reports, and a VM's endBuilds the hand-off socket contract of S07-20-handoff-sockets and the end exchange of S07-21-vm-end (#754, PR #758) in one change, before #480. and I729I729 (closed): wb-netd can't acknowledge that it holds its end of the hand-off socketFollow-up from the security review of #727 (F2), for #637. make the next contract change. wb-proxydsends a pass stream’s ClientHello only while the stream is open. The check and the write were two steps, so a reset between them could let the ClientHello out. The raw TCP relay keeps the same window, and no issue tracks it.wb-netddrops a DNS query over the rate at once. Held rate refusals let a flood fill the table of held queries and push out names that should ask you for approval. It builds your decision on I566I566 (closed): S07-04-dns-refusals: decide whether rate refusals are heldRaised in round 1 of #563 (#486)..wb-netdrecords a refusal before the guest sees it, at seven places that reset first and logged after.wb-proxydrefuses a GitLab project id with an empty segment. A trailing%2Fwas trimmed, and the write matched a project in the set.- Flaky tests are fixed, four of them, each by waiting for the event the test needs.
Not merged: wb-proxyd’s strict HTTP/1.1 request reader from campaign 604, approved on 8 November, is open against the train, and no wave picked it again (PR613PR613 (merged): feat(proxyd): strict HTTP/1.1 request head, request form and stepsPart of #498.).
What needs you
Section titled “What needs you”- Merge the train, or veto parts of it. The manager merged the last three changes after wave 4, under the run’s standing approval: the stream end, the audit holds and the
wb-vmdacknowledgment. Thewb-vmdchange was rebased onto the train after the merge ofmainand got a new code and security review. The audit holds’ last two commits change only their new test and the host daemons’ test plan, and got code review rounds 3 and 4 but no security re-check: its security approval names the commit before them. Veto any of them like the others. (PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy., PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory., PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…) - The one lost record the audit spec now allows. Once a VM’s stop begins,
wb-hostdreads itswb-netd’s channel past the holds for 8,192 records at most. A sender that keeps sending after that has the rest left unread, logged withevent-stop-allowanceinwb-hostd’s own log, and the audit spec names this as the one exception to “never drop records”. Options: accept it, which the security review supports because such a sender can leave out any record anyway, or veto it and keep reading at a stop without a bound. The security review also recommends thatwb-hostdwrite its own Detection Finding when this happens, in the next audit issue, which isn’t filed. (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., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter., PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.) - Build I741I741 (closed): Audit event holds: one VM's budget can hold the shared wb-proxyd channel for every VMFollow-up from the reviews of #740 (#541): code review F3, security review F1. next. You decided to count the audit margin per sender and stop the VM whose sender overruns it. The issue is ready for an agent and unblocked, and
wb-proxyd’s start waits on it. Until then, the threat model’s shared proxy entry describes the coupling the train leaves. Awb-netdthat ignores its budget can holdwb-proxyd’s event channel until its budget turns, and with it the network of every VM. That sentence states the coupling ahead of your decision and isn’t your acceptance.wb-proxyd’s event channel isn’t attached yet. (T14-shared-proxydT14-shared-proxyd: One proxy process serves both VMsOne wb-proxyd serves the work VM and the isolated VM (S04-architecture, "Processes")., I741I741 (closed): Audit event holds: one VM's budget can hold the shared wb-proxyd channel for every VMFollow-up from the reviews of #740 (#541): code review F3, security review F1., I512I512 (closed): wb-proxyd: the program, its confinement and start, hand-off sockets per VM, and restartsPackage M3.12 of docs/implementation-plan.md, part 3 of 4 (M3.12c).) - The HTTP/1.1 request reader beside the train. Both reviews approved it and its checks passed on 8 November, against campaign 604’s train. The manager changed its base to this train. Wave 3 picked from a snapshot taken before that change to I498I498 (closed): wb-proxyd: HTTP/1.1 on inspected streams: the request form, caps, transfer coding, tunnels and the request stepsPackage M3.6 of docs/implementation-plan.md, part 2 of 4 (M3.6b)., and no later wave picked it. Options: rebase it onto the train, where the one conflict is in the generated
github-refs.json, and merge it after fresh checks and a re-check, or change its base tomainafter the train merges. (PR613PR613 (merged): feat(proxyd): strict HTTP/1.1 request head, request form and stepsPart of #498., I498I498 (closed): wb-proxyd: HTTP/1.1 on inspected streams: the request form, caps, transfer coding, tunnels and the request stepsPackage M3.6 of docs/implementation-plan.md, part 2 of 4 (M3.6b).) - A real VM run for the
wb-vmdacknowledgment. Both reviews of thewb-vmdchange note that keeping the copy until the acknowledgment hasn’t run against the macOS 27 socket collector with a real VM, and no issue hasneeds-vmfor it. Options: file aneeds-vmcheck for the dedicated Mac, or rely on the unit tests until the next issue that boots a VM. (PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…) - A bisect gap in the
wb-vmdchange. After the rebase, its commits before the last one don’t build the Swift test target, because only the last adds theprovisioning:argument that the mergedInstallwork requires. A bisect that stops on one of them gets a compile error. The code review rates it drop, and fixing it means rewriting the train’s history. (PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…) - Triage is due for I723I723 (closed): ci: Go jobs fetch every module from proxy.golang.org on each run, and a fetch timeout failed go:lintFollow-up of #547 (flaky CI runs of the week of 2026-10-26)., I724I724 (closed): ci: a fuzz smoke shard hung for 26 minutes, and neither the job nor fuzzsmoke has a deadlineFollow-up of #547 (flaky CI runs of the week of 2026-10-26)., I731I731 (closed): wb-netd TestChildServes: the test's handoff() closes its copy of the passed socket at once (flaky on macOS 27)Fix the test helper that breaks S04-12-descriptor-passing's keep rule (#754, PR #758)., I742I742 (closed): datadisk: TestProcessShimKilled can fail under load with child.pid holds ""Seen in the round 2 code review of #740 (#541). and 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)..
- Attended, on your second Mac, against
main, not the train. The planned queue: I504I504 (closed): wb-credset and wb cred: write, delete and list binding secrets through the helper, with the value on its standard input onlyPackage M3.8 of docs/implementation-plan.md, part 2 of 3 (M3.8b)., I505I505 (closed): platform: Keychain item calls in the cgo shim, run in a team-signed test bundle and through wb cred on the maintainer's MacPackage M3.8 of docs/implementation-plan.md, part 3 of 3 (M3.8c). and I654I654 (closed): wb-vmd-install: the build slot, the install rules, the restore image check, the Install call and the provisioning inputPackage IMG.2 of docs/implementation-plan.md, part 1 of 5 (IMG.2a). in parallel, I504I504 (closed): wb-credset and wb cred: write, delete and list binding secrets through the helper, with the value on its standard input onlyPackage M3.8 of docs/implementation-plan.md, part 2 of 3 (M3.8b). merging first so I505I505 (closed): platform: Keychain item calls in the cgo shim, run in a team-signed test bundle and through wb cred on the maintainer's MacPackage M3.8 of docs/implementation-plan.md, part 3 of 3 (M3.8c). rebases onto it, because both edit S15-02-secret-storeS15-02-secret-store: The Secret StoreWhere credentials are held: the secret store, its backends, and the guarantees a backend must give.. Then I509I509 (closed): platform: Secure Enclave CA key kept as its wrapped form, with the CA item round trip on the maintainer's MacPackage M3.9 of docs/implementation-plan.md, part 4 of 5 (M3.9d). after I505I505 (closed): platform: Keychain item calls in the cgo shim, run in a team-signed test bundle and through wb cred on the maintainer's MacPackage M3.8 of docs/implementation-plan.md, part 3 of 3 (M3.8c)., and I624I624 (closed): S06-14-xcode-image: measure the host export, signature checks and offline import of Xcode and runtimesFrom #194 (S06-14-xcode-image, the Xcode image variant). after I654I654 (closed): wb-vmd-install: the build slot, the install rules, the restore image check, the Install call and the provisioning inputPackage IMG.2 of docs/implementation-plan.md, part 1 of 5 (IMG.2a)., for that Mac’s one VM slot. I504I504 (closed): wb-credset and wb cred: write, delete and list binding secrets through the helper, with the value on its standard input onlyPackage M3.8 of docs/implementation-plan.md, part 2 of 3 (M3.8b)., I505I505 (closed): platform: Keychain item calls in the cgo shim, run in a team-signed test bundle and through wb cred on the maintainer's MacPackage M3.8 of docs/implementation-plan.md, part 3 of 3 (M3.8c). and I654I654 (closed): wb-vmd-install: the build slot, the install rules, the restore image check, the Install call and the provisioning inputPackage IMG.2 of docs/implementation-plan.md, part 1 of 5 (IMG.2a). are merged intomain(PR744PR744 (merged): feat(wb): wb cred set, list and rm through wb-credsetwb cred set, wb cred list and wb cred rm now manage the binding secrets in the store., PR743PR743 (merged): feat(go): Keychain item calls in the secret store's cgo shimThe macOS secret store can now really write, read, update, delete and list items in the Keychain, where until now every call stopped before it reached it., PR745PR745 (merged): feat(vmd): serve the build slot with the install rules, Install and the build password pipewb-vmd can now run in the build slot and install macOS from the restore image into the build bundle.). I509I509 (closed): platform: Secure Enclave CA key kept as its wrapped form, with the CA item round trip on the maintainer's MacPackage M3.9 of docs/implementation-plan.md, part 4 of 5 (M3.9d). and I624I624 (closed): S06-14-xcode-image: measure the host export, signature checks and offline import of Xcode and runtimesFrom #194 (S06-14-xcode-image, the Xcode image variant). are open againstmain(PR749PR749 (merged): feat(go): Secure Enclave CA key kept as its wrapped form, with host testsOn a Mac, the inspection CA's private key is now made inside the Secure Enclave and never leaves it., PR748PR748 (merged): docs(spec): measure the Xcode export, signatures and offline importThe Xcode image design held back the build until a real Mac showed how Xcode and its simulator runtimes are exported, signed, licensed and imported.).
What changed where
Section titled “What changed where”The changes, largest first
Section titled “The changes, largest first”wb-proxyd reads HTTP/1.1 request heads strictly, not merged
Section titled “wb-proxyd reads HTTP/1.1 request heads strictly, not merged”Code and spec, open beside the train. Security: a new parser of guest bytes in wb-proxyd, for default deny, repository writes and bounded resources (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable., SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM., SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped.). 1,613 lines of Go added, 719 of them tests. 48 lines of spec and test plan added and 4 removed. Generated references left out.
The question. Inspected streams need a reader of HTTP/1.1 request heads that every policy step can trust, and the parts every HTTP version shares (I498I498 (closed): wb-proxyd: HTTP/1.1 on inspected streams: the request form, caps, transfer coding, tunnels and the request stepsPackage M3.6 of docs/implementation-plan.md, part 2 of 4 (M3.6b).).
What was built. A new package, internal/proxyd/httpreq. ReadRequest reads a head under a 64 KiB cap and takes no byte past it. It checks the request form: origin or absolute form, userinfo dropped, and Host bound to the stream’s name and port. Canonicalize reuses match.CanonicalPath. The path the rules match is then the path that goes upstream. A strict chunked decoder reads trailers within the cap and drops them. Steps.Run runs the seven request steps in the order the requests spec gives (S07-08-requests-and-credentialsS07-08-requests-and-credentials: Requests and CredentialsThe form of each request wb-proxyd sends upstream, and how it removes the guest's credentials and injects bound ones.).
| Rule | Refused when |
|---|---|
http-request-form, 400 |
two Content-Length fields even when they agree, an Expect other than one 100-continue, a query with # or bytes outside visible ASCII, malformed userinfo, a field value with a byte over 0x7E |
http-header-size, 431 |
the head passes 64 KiB |
http-tunnel, 403 |
CONNECT in any case, or an Upgrade other than WebSocket, before any step runs |
http-transfer-coding |
any coding but one chunked, Transfer-Encoding with Content-Length or on HTTP/1.0, a chunk framing error |
http-path-form |
a path the canonical form refuses |
http-step-missing, 500 |
the credential removal step or the HTTP policy step is missing |
FuzzHTTP1RequestHead, FuzzChunkedReader and FuzzCanonicalPath cover it. The first two compare against Go’s own HTTP reader and chunked decoder, and found a userinfo divergence that is now refused. In the second security round they ran 15.2 million and 3.0 million inputs with no failure, at 97.3 percent coverage.
Choices made, which you can veto: path refusals use the existing http-path-form, as the spec says, and not http-request-form, as the issue said. A refusal’s detail never repeats guest bytes or header names. Expect on HTTP/1.0 is ignored. The policy step is a plain step until the connection loop exists to test it against.
Not covered yet. The connection loop that serves inspected streams, so nothing calls the reader yet: the header deadline, refusal answers, the upstream connection and keep-alive, the response step and WebSocket relay, body caps, and Host written upstream from the binding (I498I498 (closed): wb-proxyd: HTTP/1.1 on inspected streams: the request form, caps, transfer coding, tunnels and the request stepsPackage M3.6 of docs/implementation-plan.md, part 2 of 4 (M3.6b).). The second security review found that the reader deletes the fields a Connection header names before the audited credential step. So Connection: Authorization drops a credential with no removal log line. The credential never goes upstream, and the hardening goes with I500I500 (closed): wb-proxyd: remove guest credentials from requests and credential headers from responses on inspected hostsPackage M3.6 of docs/implementation-plan.md, part 4 of 4 (M3.6d)..
wb-vmd keeps a passed socket until wb-hostd acknowledges it
Section titled “wb-vmd keeps a passed socket until wb-hostd acknowledges it”Code, spec and contract. Security: the hand-off channel between wb-vmd and wb-hostd, a trust boundary between host processes, which becomes two-way, for least privilege and bounded resources (SEC12-least-privilegeSEC12-least-privilege: Least privilege on the hostNo root or administrator rights at run time and no extra host user accounts., SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped.). 1,174 lines of Swift and Go added, 588 of them tests, and 129 removed. 90 lines of proto added and 16 removed. 51 lines of spec and test plan added and 30 removed. 380 lines of generated code left out.
The problem. On macOS 27, the kernel’s collector of sockets in flight can take a passed socket whose sender closed its copy, and the receiver gets it dead (I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633.). wb-vmd closed its copy of each guest connection and of the VM’s network link right after it passed them to wb-hostd. The hand-off channel was one-way, so wb-vmd had no sign that wb-hostd held the socket. On 10 November you chose an acknowledgment on the same channel over a new call or field (I648I648 (closed): wb-vmd: keep a passed descriptor open until wb-hostd holds it (macOS socket GC)wb-vmd hands descriptors to wb-hostd and closes its copy at once: VMSupervisor.swift (the handoff.send(record, descriptor: transport.hostEnd) call, around line 219) and GuestConnector.swift (send(:descriptor:), which…).
What was built.
vmd.protogainsHandoffAck: request ID, generation, kind, and whether the record was accepted, at most 256 bytes and never with a descriptor.HandoffMessage’s comment no longer calls the channel one-way, and lists each refusal with its rule.wb-hostd’s receiver ininternal/platform/vmhandoffanswers each record it can decode, accepted or refused, afterrecvmsgreturns and outside its lock, in one send that doesn’t wait. A record that doesn’t decode names nothing to answer, and its copy closes at the deadline.wb-vmdsends through a newHandoffKeeper.swift, with the socket calls moved intoHandoffChannel.swift. It keeps each copy until the matching acknowledgment or the 5 s connect timeout, keyed by kind, request ID and generation, and closes any descriptor that arrives on the channel.- A passed connection holds its place under
wb-vmd’s connect cap of 8 until its copy closes. The cap then also bounds the copies kept (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., 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.).
| Rule | Process | When |
|---|---|---|
handoff-ack-malformed |
wb-vmd |
an acknowledgment of the wrong form, or one with a descriptor |
handoff-ack-unexpected |
wb-vmd |
an acknowledgment for a copy it doesn’t keep |
handoff-ack-timeout |
wb-vmd |
5 s passed with no acknowledgment, and the copy closes |
handoff-ack-channel-ended |
wb-vmd |
the channel can’t be read any more, and kept copies close at their deadlines |
handoff-ack-send-failed |
wb-hostd |
the acknowledgment couldn’t be sent |
Go tests: TestAckAccepted, TestAckRefused and TestAckSendFailed, and FuzzHandoffMessage now also builds and decodes the answer. Swift HandoffKeeperTests covers the keep, the deadline, a late answer, 13 refused forms, and the walk over control data that closes stray descriptors. The security re-review flooded a scratch build with 4,000 bad acknowledgments: no kept copy closed early, and every passed descriptor was closed. The full Swift suite of 116 tests passed after the rebase.
Choices made, which you can veto: either answer, accepted or refused, closes the copy, and accepted is only logged. A kept copy can close up to 5 s after its VM’s run ends. Copies kept under one key close in the order they were sent. On darwin, closing only the other end of a pair of datagram sockets doesn’t wake a read source, so handoff-ack-channel-ended is logged on a later failed receive, and the copies close at their deadlines meanwhile. The stream hand-off spec wasn’t edited, because it already asks for the keep.
Reviews. The first code review asked for one change: the VM provider spec said HandoffAck’s comment listed rules that it didn’t. The code review approved in round 2, and the security review in round 1, with a re-check of its fixes. After main was merged into the train with the Install call (I654I654 (closed): wb-vmd-install: the build slot, the install rules, the restore image check, the Install call and the provisioning inputPackage IMG.2 of docs/implementation-plan.md, part 1 of 5 (IMG.2a).), the change conflicted in vmd.proto and the wb-vmd sources. The manager rebased it, and both reviews checked again that the provisioning and install paths pass no descriptor.
Not covered yet. No run with a real VM and the real wb-hostd and wb-vmd pair. One malformed acknowledgment or one failed receive stops the reader until wb-vmd restarts, and every later hand-off then holds its cap place for 5 s (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).). The Go stand-in for wb-vmd that the Go tests use, vmdfake, still closes its copy right after the send.
wb-hostd stops reading an audit event sender that ignores its budget
Section titled “wb-hostd stops reading an audit event sender that ignores its budget”Code and spec. Security: bounded resources and the audit, on the event channel from wb-netd into wb-hostd (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.), and a new sentence in the threat model’s shared proxy entry (T14-shared-proxydT14-shared-proxyd: One proxy process serves both VMsOne wb-proxyd serves the work VM and the isolated VM (S04-architecture, "Processes").). 1,347 lines of Go added, 952 of them tests, and 37 removed. 64 lines of spec and test plan added and 2 removed.
The problem. A compromised wb-netd could send well-formed audit records as fast as it liked and ignore every budget notice, and wb-hostd queued them all in memory (I541I541 (closed): Audit event channel: bound the receiver and the writer queue against a sender that ignores its budgetThe event channel receiver of #540 (#477) reads records as fast as a sender writes them, and the audit writer appends each one to a queue with no cap (internal/hostd/events/events.go:148-161,210,…). You chose backpressure.
What was built.
- The audit writer in
internal/hostd/auditcaps the records it holds, queued or written but not yet synced, at 4,096, and syncs once it reaches the cap.Room()tells receivers when the writer is below the cap. Its own records, of VMs, sessions and approvals, never wait. - The event receiver in
internal/hostd/eventswaits before each read while the writer holds its cap (event-queue-full), and while the last record’s VM is past its records per minute plus 4,096, or its bytes per day plus 32 MiB (event-budget-ignored). The sender’s writes then fail, and it refuses new work withevent-channel-blocked. A hold is logged once, then at most once a second. - At a VM stop,
netdproc.StopcallsStopping()before it closes the control channel. The receiver then reads past both holds for an allowance of 8,192 records, one sender queue and as many again for the socket buffer. Afterwb-netdexits,SenderGone()wakes a waiting read and drains the rest, within the same allowance. The open runs thatwb-netdflushes when it closes then go into the stop record, and a stop doesn’t hang on a held channel.
In total the writer holds at most the cap, one record per receiver, and the allowance of each VM that is stopping (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., 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.).
Choices made, which you can veto:
- The one lost record. Records a sender sends past the stop allowance are left unread and logged with
event-stop-allowance. The audit spec now names this as the one exception to “never drop records” (“What needs you”). - The budget hold applies past the margin even when the notice didn’t reach the sender. A sender can’t escape it by leaving its notices unread.
- The margins are one full sender queue of records and twice its bytes, room for the work admitted before the notice.
- The queue hold ends once the writer has room, without a low-water mark, and the budget hold checks again once a second.
Tests. TestFloodHeldBack, on a real socket pair: with the audit file taking no writes, the queue stays at its cap, and with it open, the receiver stops at exactly the test’s budget plus the 4,096 margin. Every record sent ends up in the day file. TestStopReadsPastAFullQueue uses a stand-in wb-netd in testdata/flood-netd that fills its queue. Stop returns the open run in about 1 s, under its 2 s stop timeout, and fails without the Stopping call. TestStopBoundsASenderThatIgnoresIt runs the stand-in in a mode that ignores the stop and checks the drop is logged. The flood tests run on darwin only, because the socket pair has no Linux or Windows build yet, and hold_test.go covers the holds on every OS.
Reviews. The first code review found that a stop on a held channel lost the open runs wb-netd flushes at its close, which the stop allowance fixed. The second round’s new test failed on CI’s macOS runner, because it relied on the drain racing the sender past the allowance. You chose one more fix round over dropping the commit: the test now kills the stand-in once it has written past the allowance, and passed 60 runs under the race detector. It took four code rounds and two security rounds.
Not covered yet. A VM’s budget counts the records of all its senders. A wb-netd that ignores its budget can then hold wb-proxyd’s channel until the budget turns, and with it the network of every VM. Stopping that VM can then end wb-proxyd, when a queued record names the stopped VM. Neither is reachable until wb-proxyd’s event channel is attached, and your decision on I741I741 (closed): Audit event holds: one VM's budget can hold the shared wb-proxyd channel for every VMFollow-up from the reviews of #740 (#541): code review F3, security review F1. replaces the budget hold with a stop of the VM. wb-hostd doesn’t write a Detection Finding of its own when it leaves records unread or starts a budget hold. The accounting reader at a stop has no bound.
wb-netd keeps a handed-off stream’s end until wb-proxyd holds it
Section titled “wb-netd keeps a handed-off stream’s end until wb-proxyd holds it”Code and spec. Security: the stream hand-off between wb-netd and wb-proxyd, bounded resources and the audit (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.). 331 lines of Go added, 181 of them tests, and 34 removed. 22 lines of spec added and 22 removed.
The problem. The same race on the stream path: wb-netd closed its copy of each stream’s socket right after it passed it to wb-proxyd (I647I647 (closed): wb-netd: keep a handed-off stream's end open until wb-proxyd holds it (macOS socket GC)wb-netd closes the stream end it hands to wb-proxyd right after the send: internal/netd/handoff/stream.go:98 (defer theirs.Close()), as the comment on StreamPair (internal/platform/fdchan/fdchan_darwin.go, around line…).
What was built. In internal/netd/handoff/stream.go, a stream keeps its copy after the send and releases it once: on wb-proxyd’s first byte, on a StreamReset for the stream, at a 10 s deadline, or when the hand-off returns. The deadline is logged as a routine note, stream-hold-expired with decision=release-copy, and no contract changes. The resets after a failed guest write, a guest write timeout and a failed read from wb-proxyd weren’t recorded before and get new rules, and each of the four reset rules is recorded once and before the guest sees it, so only the path that resets a stream first logs it:
| Rule | Reset when |
|---|---|
stream-reset |
wb-proxyd sent a StreamReset for the stream |
proxyd-stream-read-failed |
a read from wb-proxyd’s side fails, and no StreamReset came first |
guest-write-timeout |
the guest takes no bytes for 60 s |
guest-write-failed |
a write to the guest fails |
Choices made, which you can veto:
- The deadline is 10 s, like
wb-hostd’s wait forwb-proxyd’s acknowledgment, counted from when the send returned. - At the deadline
wb-netdonly closes its copy. A reset would break streams where the client speaks first and the upstream answers slowly. So a stream thatwb-proxydcloses without a byte, or drops for a full descriptor table, gives the guest its FIN up to 10 s late. - A held stream costs two descriptors instead of one, at most 2,048 under the cap of 1,024 streams.
- To keep the stream hand-off spec under 300 lines, two older paragraphs of “Transport” were shortened, and the ordering test’s queue depths are now only in the host daemons’ test plan. Both reviewers checked that nothing the spec must state was lost. The
wb-vmdchange was to edit this section, and the wave lead moved the edit here at both reviewers’ request (S07-05-stream-hand-offS07-05-stream-hand-off: Stream Hand-offHow wb-netd hands each stream to wb-proxyd, and the checks that keep a compromised wb-netd from widening what a stream may reach., C11-host-daemonsC11-host-daemons: Host Daemons, Audit, and DisksThe test cases for the host daemons' own checks: wb-vmd's device set and slots, the image build bundle, supervision, the accounting and event channels, the daemon log pipes, the audit writer, free space, and the data…).
Reviews. The first security review found that guest-write-timeout never fired in production, because gVisor’s network stack returns a timeout error of its own type, and reproduced it with a real connection. The first code review asked for the deadline in the spec. Both were fixed, and both second rounds approved.
Not covered yet. The stream rules go through the hand-off sender’s recorder, which has no audit events, so they reach wb-netd’s log and counts but not the audit log (I730I730 (closed): wb-netd's hand-off refusals never reach the audit log (Sender has no Events)Builds S07-20-handoff-sockets, "Audit", for wb-netd (#754, PR #758).). The timeout test uses a copy of gVisor’s error type, so a gVisor update that changes it could send timeouts back to guest-write-failed with the test still passing. No run against the macOS 27 collector itself or a real wb-proxyd.
The hand-off spec states the keep, and wb-hostd and wb-proxyd follow it
Section titled “The hand-off spec states the keep, and wb-hostd and wb-proxyd follow it”Code, spec and contract comments. Security: the control channel between wb-hostd and wb-proxyd, project isolation and the audit (SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter.). 275 lines of Go added, 128 of them tests, and 34 removed. 8 lines of proto comments added and 4 removed. 29 lines of spec added and 23 removed.
The problem. wb-hostd closed its copy of wb-proxyd’s end of each hand-off socket at once. wb-proxyd started reading a new socket before it acknowledged it, so its “socket closed” notice could come before the acknowledgment. wb-hostd dropped such a notice as stale. The VM was left without a network, and the audit blamed an honest wb-netd (I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633.).
What was built.
- The stream hand-off spec’s “Transport” now says that a process that passes a socket in a message keeps its copy until an acknowledgment, or the receiver’s first record or byte on the socket, shows the receiver holds it. Pipes and descriptors inherited at spawn are exempt. The VM provider spec and a dated note under the spike’s condition 4 drop “close at once” for
wb-vmd(S07-05-stream-hand-offS07-05-stream-hand-off: Stream Hand-offHow wb-netd hands each stream to wb-proxyd, and the checks that keep a compromised wb-netd from widening what a stream may reach., 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., X18-vsock-handoffX18-vsock-handoff: Host-guest socket and descriptor hand-offCan wb-guestd, written in Go, open AFVSOCK sockets in a macOS guest?). Proxyd.Handoffinwb-hostdkeepswb-proxyd’s end until the acknowledgment or the end of its 10 s wait.wb-proxydsendsHandoffSocketAckbefore it reads the socket.- A notice for a socket a
Handoffwaits on fails that wait withproxyd-setup-failed, checkhandoff-closed. A notice while nowb-netdruns marks the socket ended, logged asname-report-malformedwithdecision=mark-ended, and a newProxyd.Confirmthen fails the start.Confirmrefuses with the checksvm-not-started,handoff-not-servedandhandoff-closed.
Choices made, which you can veto: the rule is stated as a property, so each later hop could pick its own sign, as the stream and wb-vmd changes did. An early notice fails the start but doesn’t end wb-proxyd, so it costs no other VM its network. A notice for a generation that a Handoff waits on is taken as the new socket’s, the strict reading, until a per-socket number exists.
Not covered yet. Only tests call Confirm until the session wiring (I490I490 (open): wb-hostd: compute each VM's effective policy at session start and end, with modes, limits and conflicts over the unionPackage M3.3 of docs/implementation-plan.md, part 3 of 3 (M3.3c).). The security review’s two medium findings became your decisions of 10 November, to be built as one control.proto change: a per-socket number, so an old socket’s notice can’t be taken for its replacement’s, and an acknowledgment from wb-netd for its end (I728I728 (closed): Hand-off socket contract of S07-20: socket number, HandoffSocketHeld, states, close reports, and a VM's endBuilds the hand-off socket contract of S07-20-handoff-sockets and the end exchange of S07-21-vm-end (#754, PR #758) in one change, before #480., with I729I729 (closed): wb-netd can't acknowledge that it holds its end of the hand-off socketFollow-up from the security review of #727 (F2), for #637.). Daemon restarts, the session wiring and wb-proxyd’s start wait on that issue, which is ready for an agent (I480I480 (open): wb-hostd daemon supervision: control channels, restarts with backoff, giving up, and process healthPackage M3.11 of docs/implementation-plan.md, part 3 of 3 (M3.11c)., I490I490 (open): wb-hostd: compute each VM's effective policy at session start and end, with modes, limits and conflicts over the unionPackage M3.3 of docs/implementation-plan.md, part 3 of 3 (M3.3c)., I512I512 (closed): wb-proxyd: the program, its confinement and start, hand-off sockets per VM, and restartsPackage M3.12 of docs/implementation-plan.md, part 3 of 4 (M3.12c).).
wb-proxyd sends a pass stream’s ClientHello only while the stream is open
Section titled “wb-proxyd sends a pass stream’s ClientHello only while the stream is open”Code and test plan. Security: default deny on the hand-off boundary into wb-proxyd (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.). 315 lines of Go added, 216 of them tests, and 17 removed. 7 lines of test plan added and 1 removed.
The problem. A pass stream that the policy reset just after its upstream connection opened could still send its ClientHello upstream, because the check that the stream was open and the write were two steps (I598I598 (closed): wb-proxyd: a reset between the post-dial check and the ClientHello send still lets the ClientHello outS07-15 says a connection opened after a stream reset is closed before any byte goes upstream.).
What was built. handoff.Stream.SendWhileOpen runs the send under the lock that ends a stream. A reset comes either before the check, and nothing is sent or logged as allowed, or after the write returns. pass-allowed is logged in the same step. Every end of the stream now waits for that write, so a new FirstSendTimeout of 5 s bounds it, and a write that hits it ends the relay with end=first-send-timeout. TestC02ResetBeforeHelloSend hits the window with no timing, and the security review saw it fail 3 times of 3 against the old order. TestC02FirstSendTimeout sees the deadline fire (C02-streams-and-tlsC02-streams-and-tls: Streams, TLS, and the Inspection CAThe test cases for the streams wb-proxyd takes over: the hand-off from wb-netd, the first-byte and TLS checks, upstream addresses, the HTTP request form, and the inspection CA's leaves, rotation, and keys.).
Choices made, which you can veto: the lock is in handoff.Stream, because a lock in the stream package couldn’t order the send against a reset from a policy recompute or a closed socket.
Not covered yet. The raw TCP relay still logs raw-tcp-allowed and can forward guest bytes it already read after a reset that comes past the dial check, with no issue. The inspect path has no upstream send yet, and the same rule goes to it (I498I498 (closed): wb-proxyd: HTTP/1.1 on inspected streams: the request form, caps, transfer coding, tunnels and the request stepsPackage M3.6 of docs/implementation-plan.md, part 2 of 4 (M3.6b).). The 5 s bound is per stream, and ends run one after another.
wb-netd drops a DNS query over the rate at once
Section titled “wb-netd drops a DNS query over the rate at once”Code and spec. Security: bounded resources on the DNS path from the guest, with a spec decision (SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped., T11-shared-vm-grantsT11-shared-vm-grants: Projects in one VM share network grantsThe host sees one guest address per VM, and can't tell which project user, session or program opened a connection.). 160 lines of Go added, 132 of them tests, and 22 removed. 74 lines of spec and test plan added and 20 removed, in four pages.
The question. Should the refusal of a query over the rate be held for 4 s like the others? Held rate refusals let a flood fill the table of held queries, and the queries that didn’t fit were dropped, names that should ask you for approval among them. You chose to drop a query over the rate at once (I566I566 (closed): S07-04-dns-refusals: decide whether rate refusals are heldRaised in round 1 of #563 (#486).).
What was built. Decide returns SendNever with dns-query-rate before anything that can debit, so the query is dropped, counted in runs per rule, and never held or raised as an event. dns.New refuses a held-query cap below 601: the burst of 200, plus 100 a second for the 4 s hold, plus one. TestRateFloodLeavesHoldRoom sends 20 times the rate for a whole hold at that smallest cap. The table never reaches dns-hold-full, and a name that isn’t allowed still raises an approval event afterwards. It and TestRateDrops fail against the old code. The DNS refusals spec gains “Over the rate” and the decision, and the packet path spec counts the drops in runs per rule (S07-04-dns-refusalsS07-04-dns-refusals: DNS RefusalsHow wb-netd refuses a name: approval events, the hold before each refusal, quiet refusals, and the answer that is the same for every reason., S07-02-packet-pathS07-02-packet-path: Packet PathHow wb-netd carries the guest's frames: the packet transport, the stack, the link filter, its caps, addressing, the MTU and connections., S07-03-dnsS07-03-dns: DNSHow wb-netd answers the guest's DNS queries: synthetic addresses, the name form, negative answers and the wildcard budget.).
Choices made, which you can veto: over DNS over TCP, which isn’t built, a rate drop closes the connection only when the connection has no query held. A rate drop then never evicts a held query (I487I487 (open): wb-netd: DNS over TCP on the gateway, with its connection cap and the close on a full hold tablePackage M3.2 of docs/implementation-plan.md, part 4 of 4 (M3.2d).). The guest can tell a rate drop from the other refusals, which shows it only its own query rate. A rerun of a held query over the rate keeps its bytes and its timer.
Not covered yet. The minimum cap leaves one entry of margin, and assumes the hold timers fire on time. netd.Caps.Validate still accepts a cap from 1 to 600, and the configured cap isn’t passed to the resolver. No configuration sets the cap yet, and the reviews leave both to the issue that wires it, which isn’t filed.
wb-netd records a refusal before the guest sees it
Section titled “wb-netd records a refusal before the guest sees it”Code. Security: the audit (SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter.). 113 lines of Go added, 78 of them tests, and 14 removed.
In seven places, wb-netd sent the guest a reset or a close first and recorded the decision after. A test that read the count once the guest saw the refusal could read it too early, which made TestSyntheticPool and others flaky (I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025):). Each place now records first: the SYN refusals, tcp-handshake-failed, the tcp-cap abort, handoff-send-failed, handoff-socket-ended, the closes of unmapped synthetic addresses, and the refusal of a hand-off socket on the control channel. The first code review found that the end of a hand-off socket set its flag before the note, so a stream could reset its guest first, and a stream’s reset now waits for the note. TestHandshakeFailed checks the order on one path. Choices you can veto: the reset sent to a SYN after the stop began isn’t recorded, as part of shutdown, and the DNS resolver still records a held refusal after it adds the query to the hold.
wb-proxyd refuses a GitLab project id with an empty segment
Section titled “wb-proxyd refuses a GitLab project id with an empty segment”Code and spec. Security: repository writes, on request paths from the guest (SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM.). 26 lines of Go added, 20 of them tests, and 1 removed. 3 lines of spec added and 1 removed.
The proxy reads which repository a GitLab API write names from the project id, which spells each / as %2F. A trailing %2F was trimmed, so the write matched a project in the set, and the fuzz test’s oracle saw another project (I577I577 (closed): httppolicy: FuzzHTTPDecision fails on main for a GitLab project id with a trailing %2FFuzzHTTPDecision (internal/proxyd/httppolicy/fuzz_test.go) fails on main at 5adc7c3.). Now an id with any empty segment, leading, trailing or doubled, doesn’t name a repository, and the write is refused with git-write-outside-project-set, as the requests spec now says (S07-19-request-decisionsS07-19-request-decisions: Request DecisionsHow wb-proxyd decides a request on an inspected host: the order of the steps, their rule names, what a git hosting write is, and what audit relaxes.). Test rows cover nine forms, and the fuzz input is a seed. Choice you can veto: . and .. segments are left alone, since they can’t match a key of the project set.
The flaky tests
Section titled “The flaky tests”Test code only, four tests: 121 lines added and 34 removed in six test files. Not a security change.
TestAnswerFails, onwb-netd’s address pool, now runs on a simulated clock, so the pool’s 100 ms timeout always fires first. A newTestReleaseSlowcovers a release acknowledged too late (PR733PR733 (merged): test(netd): decide TestAnswerFails slow cases with a synctest clockA test that checks the address pool refuses a name when the proxy or host answers too slowly sometimes passed the answer through on a busy CI machine., I589I589 (closed): wb-netd: TestAnswerFails/report_slow answers instead of timing out (flaky on macOS)TestAnswerFails/report_slow (packages/wraithbox-go/internal/netd/synth/pool_test.go:161) failed on Go (xcode-27) in CI on #588, a pull request that doesn't change internal/netd or any package its tests build:).TestShellOpenHeld, onwb-hostd’s debug shell, closed the shell registry before the handler’s end started the kill. It now reads the stream to its end and checks the code it ends with. The server’s order stays, because no spec asks for the kill before the failure frame (PR734PR734 (merged): test(hostd): TestShellOpenHeld waits for the handler's end before the killsTestShellOpenHeld sometimes failed on Linux with kills = []., I634I634 (closed): Flaky: TestShellOpenHeld reads kills = [] on LinuxTwo intermittent failures in the CI of train/622 (campaign #622), in code the train doesn't change:).- Two
wb-vmdtests of a failed send closedwb-hostd’s end and expected the next send to fail, but a process spawned in parallel briefly holds a copy of every descriptor. They now wait until the close shows (PR725PR725 (merged): test(swift): wait for wb-hostd's close before the hand-off send failsTwo wb-vmd tests check that a hand-off send to a wb-hostd that is gone is refused., I580I580 (closed): wb-vmd: ConnectGuest sendFailed test is flaky in CIThe Swift test "a send that fails is refused with handoff-send-failed, and the connection is closed" (packages/wraithbox-swift/Tests/WraithBoxVMDTests/ConnectGuestTests.swift, sendFailed) failed in CI on #579, a pull…). TestDialerRefusesSecondCall, on the guest link, took gRPC’s connecting state for the drop it waited for, and now waits through it. The investigation behind it sorted the 15 flaky runs of the week of 26 October by cause and filed the rest (PR726PR726 (merged): test(guestlink): wait through CONNECTING before the drop in TestDialerRefusesSecondCallOne of the fifteen flaky CI runs in the week of 2026-10-26 came from a test of the guest link's dialer that has no issue of its own., I547I547 (closed): Investigate the flaky CI runs of the week of 2026-10-26 (7.4%)Follow-up of X32-project-metrics (#543)., I723I723 (closed): ci: Go jobs fetch every module from proxy.golang.org on each run, and a fetch timeout failed go:lintFollow-up of #547 (flaky CI runs of the week of 2026-10-26)., I724I724 (closed): ci: a fuzz smoke shard hung for 26 minutes, and neither the job nor fuzzsmoke has a deadlineFollow-up of #547 (flaky CI runs of the week of 2026-10-26).).
Review findings not resolved
Section titled “Review findings not resolved”The must-fix findings were fixed before merge. These remain.
Security, most serious first:
- Hand-off notices can’t tell a replacement socket from the one it replaces. After a
wb-netdrestart, the old socket’s notice can fail the replacement’s start or end the newwb-netd, and one malformed record from a compromisedwb-netdcan fail every later restart of that VM. Medium, fails closed, and not reachable until daemon restarts exist (I728I728 (closed): Hand-off socket contract of S07-20: socket number, HandoffSocketHeld, states, close reports, and a VM's endBuilds the hand-off socket contract of S07-20-handoff-sockets and the end exchange of S07-21-vm-end (#754, PR #758) in one change, before #480.). wb-netdcan’t acknowledge its end of the hand-off socket, so “start the VM only afterwb-netdholds its end” has no sign to wait for, and a sender that closes that end at once would bring the race back on that leg. Medium (I728I728 (closed): Hand-off socket contract of S07-20: socket number, HandoffSocketHeld, states, close reports, and a VM's endBuilds the hand-off socket contract of S07-20-handoff-sockets and the end exchange of S07-21-vm-end (#754, PR #758) in one change, before #480., with I729I729 (closed): wb-netd can't acknowledge that it holds its end of the hand-off socketFollow-up from the security review of #727 (F2), for #637.).- One VM’s audit budget can hold
wb-proxyd’s shared event channel until the minute or the day turns, and with it the network of every VM. Stopping that VM can endwb-proxyd. Medium, not reachable untilwb-proxyd’s event channel is attached (I741I741 (closed): Audit event holds: one VM's budget can hold the shared wb-proxyd channel for every VMFollow-up from the reviews of #740 (#541): code review F3, security review F1.). - The hand-off sender’s refusals never reach the audit log.
handoff-send-failed,stream-resetand the stream rules of this train reach onlywb-netd’s log and counts. A guest that opens connections faster thanwb-proxydreads them gets resets the audit never shows. Medium (I730I730 (closed): wb-netd's hand-off refusals never reach the audit log (Sender has no Events)Builds S07-20-handoff-sockets, "Audit", for wb-netd (#754, PR #758).). - The raw TCP relay can forward guest bytes after a late reset and still log
raw-tcp-allowed, the window the train closed for pass streams. From the code review, with no issue. - No audit mark where a sender showed itself compromised.
wb-hostddoesn’t write a Detection Finding when it leaves records unread past the stop allowance or starts a budget hold, so the audit log has an unmarked gap. Low, with no issue. - The accounting reader can hang a VM stop. It reads to end of file, unbounded and with nothing to wake it, so a process that still holds
wb-netd’s accounting socket after the kill hangs the stop. Low, and not reachable whilewb-netd’s sandbox profile denies fork, which no test checks. No issue tracks it. - One bad acknowledgment stops
wb-vmd’s reader until it restarts, and every later hand-off then holds a connect cap place for 5 s, which caps the VM’s connection rate, and the stop isn’t logged. The comment onconnectGueststill describes the old order and invites the race back. Low (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).). - A late call can count as on time. Four
wb-netdplaces decide lateness from the context after the call, so a write that returns after its 100 ms bound, before the timer fires, passes. Low (I736I736 (closed): wb-netd: Pool.within misses a call that returns after the deadline before the timer firesPool.within (packages/wraithbox-go/internal/netd/synth/pool.go:390) decides whether an accounting write or a name report was late by reading ctx.Err() after the call returns.). - The inspect path’s first upstream send needs the same one-step check once built, or a reset between the dial and the TLS handshake lets
wb-proxyd’s own ClientHello out. Low, commented on I498I498 (closed): wb-proxyd: HTTP/1.1 on inspected streams: the request form, caps, transfer coding, tunnels and the request stepsPackage M3.6 of docs/implementation-plan.md, part 2 of 4 (M3.6b).. repoKeytrims repository paths from requests as it does policy input, so a later request parser could match the project set through a trailing/or.git/. Low, because today every parser refuses those forms first (I737I737 (open): httppolicy: repoKey trims request-derived repository paths like policy inputrepoKey (packages/wraithbox-go/internal/proxyd/httppolicy/hosts.go:170 and :174) trims a trailing / and .git.).- The
guest-write-timeouttest uses a copy of gVisor’s error type, so a gVisor update could route timeouts toguest-write-failedunnoticed. Low, with no issue. - An established relay forwards bytes already in flight for microseconds after its stream ends. No spec promises otherwise. The security review rated it drop and leaves it to you: closing the upstream when the stream ends would need a spec sentence.
Code and docs, which reviewers marked as optional:
- The held-query minimum leaves one entry of margin, and
netd.Caps.Validateaccepts caps the resolver refuses. Both are for the issue that wires the cap. - The audit holds’ stand-in repeats the test’s allowance and slack, so changing one alone could make the test flaky again. Go’s tools skip
testdata/, so the stand-in isn’t linted. The kill at the stop timeout is no longer tested with a sender still writing, and a failure message prints the allowance without the slack. - The stream hold’s timer stays armed after an early release, and its callback then does nothing. The spec’s “only the path that resets first logs it” can read as if every reset is logged.
- Only one of the seven places that now record first has a test of the order.
TestDecideStreamDuringSendstays on the wall clock, and the shell test’s final read has no deadline.
Friction
Section titled “Friction”- The report page broke the train’s Docs check twice. The manager’s report commit
2dbafa66hadxcodein lower case, fixed ine8582f2e, and a short plural of “acknowledgment” that cspell rejects, fixed in36e01d9e. Wave 4’s two pull requests were approved and mergeable but failed Docs on that page, so wave 4 merged nothing. mainbroke the train’s checks twice. The train’s run at36e01d9efailed Docs onmain’s S04-03-self-sandboxingS04-03-self-sandboxing: Self-SandboxingHow each host daemon confines itself at startup, and the wb-launcher that starts confined programs on macOS. at 304 lines, over the 300-line limit, from your attended run. Then theInstallcall onmainmade buf’s breaking check fail every train pull request, until the manager mergedmaininto the train ateda987c9.- Closes and reopens for fresh checks. A rerun reuses the old merge ref, so each open pull request needed a close and reopen for fresh checks: three for PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. and two each for PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy. and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…. Nine CI runs on those three failed on causes outside them.
- A rebase after the merge of
main. PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… conflicted with I654I654 (closed): wb-vmd-install: the build slot, the install rules, the restore image check, the Install call and the provisioning inputPackage IMG.2 of docs/implementation-plan.md, part 1 of 5 (IMG.2a).’s changes, and the manager rebased it onto the train at876675c3, with one more commit to add theprovisioning:argument to the keeper tests. It got a new code and security review, and the bisect gap comes from it. - PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. ran out of rounds. Its second round’s new test depended on timing and failed on CI’s macOS runner (run 42853548938), so the wave left it open, and you chose one more fix round.
- Hand work outside the waves. PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory.’s fix round (
58cbad59,738557c8) with code review rounds 3 and 4, and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already…’s rebase with its two reviews, ran in the manager’s session. The ledger’s $118.60 for the four waves leaves out their spend. The manager also merged PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy., PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… after wave 4. - Security reviews skipped, then run. In wave 2 the manager’s prompt to the lead wrongly said test-only changes could skip the security review, so PR733PR733 (merged): test(netd): decide TestAnswerFails slow cases with a synctest clockA test that checks the address pool refuses a name when the proxy or host answers too slowly sometimes passed the answer through on a busy CI machine. and PR734PR734 (merged): test(hostd): TestShellOpenHeld waits for the handler's end before the killsTestShellOpenHeld sometimes failed on Linux with kills = []. first went up for merge without one. Both were reviewed before they merged.
- A stale pick. Wave 3 picked from a snapshot taken before the manager’s changes to I498I498 (closed): wb-proxyd: HTTP/1.1 on inspected streams: the request form, caps, transfer coding, tunnels and the request stepsPackage M3.6 of docs/implementation-plan.md, part 2 of 4 (M3.6b). and I648I648 (closed): wb-vmd: keep a passed descriptor open until wb-hostd holds it (macOS socket GC)wb-vmd hands descriptors to wb-hostd and closes its copy at once: VMSupervisor.swift (the handoff.send(record, descriptor: transport.hostEnd) call, around line 219) and GuestConnector.swift (send(:descriptor:), which… between waves, so it skipped I648I648 (closed): wb-vmd: keep a passed descriptor open until wb-hostd holds it (macOS socket GC)wb-vmd hands descriptors to wb-hostd and closes its copy at once: VMSupervisor.swift (the handoff.send(record, descriptor: transport.hostEnd) call, around line 219) and GuestConnector.swift (send(:descriptor:), which… as undecided and didn’t pick PR613PR613 (merged): feat(proxyd): strict HTTP/1.1 request head, request form and stepsPart of #498.. Wave 4 built I648I648 (closed): wb-vmd: keep a passed descriptor open until wb-hostd holds it (macOS socket GC)wb-vmd hands descriptors to wb-hostd and closes its copy at once: VMSupervisor.swift (the handoff.send(record, descriptor: transport.hostEnd) call, around line 219) and GuestConnector.swift (send(:descriptor:), which….
- Flaky tests and reruns. In wave 1, two jobs on PR727PR727 (merged): fix(hostd): keep a passed hand-off socket until wb-proxyd holds itOn macOS, a socket that one process passes to another and closes at once can arrive dead: the kernel's cleanup of sockets in flight flushes it, and the receiver reads an empty record. were rerun and passed:
TestShellOpenHeldon macOS (I634I634 (closed): Flaky: TestShellOpenHeld reads kills = [] on LinuxTwo intermittent failures in the CI of train/622 (campaign #622), in code the train doesn't change:, fixed by PR734PR734 (merged): test(hostd): TestShellOpenHeld waits for the handler's end before the killsTestShellOpenHeld sometimes failed on Linux with kills = [].) andTestSyntheticPoolon Windows (I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025):, fixed by PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards.). There were no unrecorded reruns on the train or its pull requests. The campaign filed flaky test issues:TestChildServesfails with a connection reset (I731I731 (closed): wb-netd TestChildServes: the test's handoff() closes its copy of the passed socket at once (flaky on macOS 27)Fix the test helper that breaks S04-12-descriptor-passing's keep rule (#754, PR #758).), a Go module download timed out ingo:lint(I723I723 (closed): ci: Go jobs fetch every module from proxy.golang.org on each run, and a fetch timeout failed go:lintFollow-up of #547 (flaky CI runs of the week of 2026-10-26).), a fuzz smoke shard hung for 26 minutes with no deadline (I724I724 (closed): ci: a fuzz smoke shard hung for 26 minutes, and neither the job nor fuzzsmoke has a deadlineFollow-up of #547 (flaky CI runs of the week of 2026-10-26).), andTestProcessShimKilledfails under load (I742I742 (closed): datadisk: TestProcessShimKilled can fail under load with child.pid holds ""Seen in the round 2 code review of #740 (#541).). - Review rounds. 20 code reviews, 13 security reviews and 10 re-checks for 12 pull requests, with 7 must-fix findings, all fixed. The first code review approved 7 of the 12. PR740PR740 (merged): feat(hostd): hold back an event sender that ignores its budgetA compromised network daemon could send well-formed audit records as fast as it liked and ignore every budget notice, and the host daemon would queue them all in memory. took four code rounds, PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards., PR739PR739 (merged): feat(netd): drop DNS queries over the rate at once, not heldA DNS query over the VM's query rate is now dropped at once, with no answer, instead of being held for 4 seconds like the other refusals. and PR746PR746 (merged): fix(netd): keep a handed-off stream's end open until wb-proxyd holds itThe network daemon used to close its own copy of each connection's socket the moment it passed that socket to the proxy. two each, and PR747PR747 (merged): fix(vmd): keep a passed descriptor until wb-hostd acknowledges itOn the newest macOS the kernel can throw away a socket that is in transit between two processes once the sender has closed its copy, so a guest connection or the VM's network link could reach the host daemon already… two and a review of its rebase.
The run
Section titled “The run”Budget, pull requests, and waves
Campaign I720I720 (closed): Campaign 2026-11-10 (V1-M3-network-floor, lane mac)/campaign --lane mac --vm-slots 2, started 2026-11-10 12:34 UTC. Rendered by scripts/campaign.mjs (docs/agents/campaigns.md), with the body above from the train-reporter agent.
| Limit | Spent | Of |
|---|---|---|
| Hours | 8.1 | 12 |
| Dollars | $118.60 | $240.00 |
| Issues | 12 | 50 |
| Pull requests | 12 | 50 |
- First code review approved: 7 of 12 pull requests.
- Code review rounds per reviewed pull request: 1.6.
- Follow-ups filed: 8.
- Flaky tests filed: I731I731 (closed): wb-netd TestChildServes: the test's handoff() closes its copy of the passed socket at once (flaky on macOS 27)Fix the test helper that breaks S04-12-descriptor-passing's keep rule (#754, PR #758)., I723I723 (closed): ci: Go jobs fetch every module from proxy.golang.org on each run, and a fetch timeout failed go:lintFollow-up of #547 (flaky CI runs of the week of 2026-10-26)., I724I724 (closed): ci: a fuzz smoke shard hung for 26 minutes, and neither the job nor fuzzsmoke has a deadlineFollow-up of #547 (flaky CI runs of the week of 2026-10-26)., I742I742 (closed): datadisk: TestProcessShimKilled can fail under load with child.pid holds ""Seen in the round 2 code review of #740 (#541)..
- 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 | 76 min | $27.04 | 4 | 4 | success |
| 2 | 74 min | $19.31 | 4 | 3 | success |
| 3 | 121 min | $42.80 | 3 | 3 | success |
| 4 | 72 min | $29.46 | 2 | 2 | success |