Skip to content

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)..

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.

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.).

host, runs as the userinternetmacOS guest VMwb-hostdcode: stops reading an audit event sender that ignores its budget, 1,384 lineskeeps wb-proxyd’s end of a hand-off socket until wb-proxyd acknowledges it, 271 linesacknowledges each socket wb-vmd passes, 250 lines, all counts with testswb-vmdcode: keeps a passed socketuntil wb-hostd acknowledgesit, 5 s at most, 1,060 linesof Swift with testswb-netdcode: records, then resets,drops DNS over the rate,keeps a stream end 10 s,767 lines with testswb-proxydcode: acknowledges a socketbefore it reads, sends theClientHello while open only,390 lines with testsHTTP/1.1 readerin wb-proxyd, open besidethe train, not merged,1,613 lines with testsupstream hostsunchanged: get a passstream’s ClientHello onlywhile the stream is openguest processesunchanged: packets and DNS to wb-netd, connections to wb-vmdsockets passed,acknowledgments backaudit events, heldpast the budgethand-off socket,kept until acknowledgedstream ends, kept untilwb-proxyd’s first byteconnections over vsockpackets and DNScode changed on the trainopen beside the trainunchanged, for contexta flow the changes touch
The components the train touches. On the host, wb-hostd changed in code to hold back an audit event sender that ignores its budget and to keep a hand-off socket until wb-proxyd acknowledges it. It also acknowledges each socket wb-vmd passes, and wb-vmd keeps its copy until then, for 5 seconds at most. wb-netd records a refusal before the reset and drops DNS queries over the rate at once. It keeps a stream’s end until wb-proxyd’s first byte. wb-proxyd acknowledges a hand-off socket before it reads it and sends a ClientHello upstream only while its stream is open. A strict HTTP/1.1 request reader for wb-proxyd is open beside the train. The guest processes and the upstream hosts are unchanged.

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.

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/audit caps 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/events waits 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 with event-channel-blocked. A hold is logged once, then at most once a second.
  • At a VM stop, netdproc.Stop calls Stopping() 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. After wb-netd exits, SenderGone() wakes a waiting read and drains the rest, within the same allowance. The open runs that wb-netd flushes 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:

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.

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.

Test code only, four tests: 121 lines added and 34 removed in six test files. Not a security change.

The must-fix findings were fixed before merge. These remain.

Security, most serious first:

Code and docs, which reviewers marked as optional:

  • The held-query minimum leaves one entry of margin, and netd.Caps.Validate accepts 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.
  • TestDecideStreamDuringSend stays on the wall clock, and the shell test’s final read has no deadline.
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
Pull request Closes Title Where Rounds Specs and contracts Files
PR722PR722 (merged): fix(netd): record a refusal before the guest can see itWhen the network stack refused a guest connection, it sent the guest the reset first and counted and logged the refusal afterwards. I569I569 (closed): fix(netd): record a refusal before the reset reaches the guest (TestSyntheticPool flake)Main CI run 42081852685 (01d58e8) failed in Go (windows-2025): fix(netd): record a refusal before the guest can see it on the train 2 none 6
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… test(swift): wait for wb-hostd’s close before the hand-off send fails on the train 1 none 3
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). test(guestlink): wait through CONNECTING before the drop in TestDialerRefusesSecondCall on the train 1 none 1
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. I637I637 (closed): Descriptor senders close their copy before the receiver holds it (darwin socket GC)Found while fixing #633. fix(hostd): keep a passed hand-off socket until wb-proxyd holds it on the train 1 S04-02-vm-providerS04-02-vm-provider: VM Provider and StreamsHow wb-vmd hands guest connections and the NIC endpoint to other processes, the fixed device set of a VM, and where wb-proxyd takes a stream's identity from., 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., control.proto 14
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: test(netd): decide TestAnswerFails slow cases with a synctest clock on the train 1 none 1
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: test(hostd): TestShellOpenHeld waits for the handler’s end before the kills on the train 1 none 1
PR735PR735 (merged): fix(proxyd): refuse a GitLab project id with an empty segmentThe proxy reads the repository a GitLab API write names from the project id in its path, which spells each / as %2F. 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. fix(proxyd): refuse a GitLab project id with an empty segment on the train 1 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. 5
PR738PR738 (merged): fix(proxyd): check a pass stream's end in one step with its ClientHello sendA 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 still open and the write were two separate 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. fix(proxyd): check a pass stream’s end in one step with its ClientHello send on the train 1 none 8
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. I566I566 (closed): S07-04-dns-refusals: decide whether rate refusals are heldRaised in round 1 of #563 (#486). feat(netd): drop DNS queries over the rate at once, not held on the train 2 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., 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. 9
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. 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,… feat(hostd): hold back an event sender that ignores its budget on the train 4 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. 16
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. 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… fix(netd): keep a handed-off stream’s end open until wb-proxyd holds it on the train 2 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. 7
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… 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… fix(vmd): keep a passed descriptor until wb-hostd acknowledges it on the train 2 S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., 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., vmd.proto 23
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