Skip to content

Campaign 604: network floor, lane mac

Ended 2026-11-08. Train train/604, which PR605PR605 (merged): Train 604: Campaign 2026-11-08 (V1-M3-network-floor, lane mac)Train of campaign #604 (docs/agents/campaigns.md). merges into main. Decisions wait for you below, and an approved proxy change is open beside the train.

The train adds one host control in code and answers three design questions with measurements in a VM.

  • wb refuses a project whose .git reaches into another project. When a symbolic link inside a project’s git directory resolves outside it, every command that resolves a project refuses to run. A downloaded repository could otherwise read another project’s objects and remotes. It’s the only code on the train: 391 lines of Go, about half of them tests.
  • The macOS installer refuses a tampered restore image, but only by asking Apple. On every install, Apple’s installation service sends the image’s digests to Apple’s signing server. That traffic leaves the host outside wb-download, and Wraith Box neither bounds nor audits it. The specs now name it as the one exception. It needs your approval.
  • A root admin shell in the guest can work while wb-guestd is down. A second root daemon on its own privileged vsock port answered in every state of wb-guestd, and no standard user could take its port. The spike also found a guest kernel panic. You decide whether the admin shell gets Full Disk Access.
  • Claude Code in the guest learns why Xcode UI tests fail from a managed CLAUDE.md. The host no longer plans to rewrite the error.

Beside the train, an approved change of 1,709 lines gives wb-proxyd a strict HTTP/1.1 request reader. It isn’t merged, because the connection loop that uses it isn’t built yet.

host, runs as the usermacOS guest VMinternetwbcode: refuses a .git whoselinks resolve outside it,391 lines of Gowb-hostdspec: passes tool output onunparsed, opens the adminportwb-downloadspec: no longer the onlyprocess that fetches foran image buildwb-proxydopen, not on the train:strict HTTP/1.1 requestreader, 1,709 lineswb-vmd-installunchanged: starts theinstall, no network, itsprofile heldApple installation svcspec: asks Apple to signevery install, unbounded,unauditedwb-guestdspec: installs the managedCLAUDE.md, updates at bootwb-guestroot (new)designed: root shell on port1022 when wb-guestd is downClaude Codespec: managed CLAUDE.mdexplains Xcode test failureskernel, macOS 27.2found: panics on a vsockconnect to its own CIDApple CDNrestore images,catalogApple signingserver (TSS)declined everychanged imageport 1023port 1022,adminHTTPS, bounded and auditedTSS requests: chip identity and image digestscode changed on the trainspec changed, no code yetnew component, designedapproved, open beside the traindefect found, not fixedtraffic outside wb-download, newly in the specunchanged, shown for context
The components the campaign touched. On the host, wb changed in code to refuse a .git that links out of itself. wb-proxyd has an approved change that isn’t on the train. The specs now say Apple’s installation service contacts Apple’s signing server on every install, outside wb-download. In the guest, wb-guestroot is a new component designed for the admin shell, Claude Code gets a managed CLAUDE.md, and the guest kernel of macOS 27.2 panics on a vsock connect to its own CID.
Section titled “wb refuses a .git that links out of itself”

Code and spec. Security: project isolation (SEC08-proj-isolationSEC08-proj-isolation: Per-project isolationEach project has its own guest user, state and history, and one project cannot persist into another.). 447 lines added, 391 of them Go.

The threat. A project’s .git can come from an archive or a clone the user didn’t inspect. If its objects, refs or config is a symbolic link into ~/other-project/.git, git follows it. A Claude session in that project would then read the other project’s objects and remotes. wb already refused a .git that is itself a link and checked core.worktree, but it didn’t look inside the directory.

What wb does now. Before git touches the repository, wb walks the git directory, or a .git file’s common directory, and resolves each link it finds. A link must resolve inside the directory, or the command is refused:

Rule When
project-git-dir-link-outside a link resolves outside the git directory
project-git-dir-link-unresolved a link dangles or loops
project-git-dir-walk-incomplete over 500,000 entries, or the walk passes the 10 s git timeout

This applies to every command that resolves a project: wb claude, wb trust, wb untrust, wb land, wb diff, wb project and wb shell. Each refusal is logged with its rule. Tests on macOS cover each rule, a link loop and a directory that can’t be read. The code is in internal/project/gitlinks.go.

Choices made, which you can veto:

  • The top-level hooks directory is skipped. wb runs git with core.hooksPath set to /dev/null, so git doesn’t read it, and hooks linked to scripts in the working tree are common.
  • Paths are compared as strings after resolving. A link that reaches back into the directory through another letter case or another mount is refused, which is the strict side.
  • A dangling link anywhere refuses the project, even in an unrelated old worktrees/ entry. Also strict.
  • git rev-parse still runs before the walk and reads .git/config. That gives git no new reach, because a .git file can name any git directory already.

Not covered yet. The walk checks links, not file contents. objects/info/alternates and an [include] path = in config can still point into another project (I616I616 (closed): Project resolution: alternates and config includes in a .git that point into another projectFound in the code review of #612 (#388), finding 1., I606I606 (closed): Project resolution: objects/info/alternates that names another project's objectsFound while building #388.). On Windows, a junction looks like an irregular file to Go and the walk skips it (I617I617 (open): Project resolution on Windows: junctions inside .git pass the link walkFound in the code review of #612 (#388), finding 5.). Windows can’t hit that today, because project resolution refuses on Windows.

Image builds trust Apple’s signing server

Section titled “Image builds trust Apple’s signing server”

Spec change from spike X30-installer-trustX30-installer-trust: Installer refusal of a changed restore imageDoes the Virtualization framework's macOS installer, run by wb-vmd-install, refuse a restore image that Apple didn't sign, or one with a changed or replaced component, and does the install contact Apple while wb-vmd-i…. Security: changes the internet inputs of an image build. 346 lines of docs.

The question. wb-download fetches the restore image, and wb-hostd checks its hash against a catalog that wb-download fetches too. Does Apple’s installer catch an image that isn’t Apple’s?

What the spike measured.

  • A changed kernel cache: the installer hashed it and sent the digest to Apple’s signing server (TSS). The server declined it, and the install failed. Making the build manifest match didn’t help, because the installer computes the digest itself.
  • One flipped byte in the middle of the system volume: the restore OS in the VM checks the volume while copying it, and the install failed.
  • The other boot components (boot loaders, ramdisk, device tree, trust caches) go in the same request but weren’t changed. An unreachable signing server is assumed to fail the install, untested.

What it means. Apple’s installation service, not wb-vmd-install, sends those requests. Apple’s own process, outside wb-vmd-install’s sandbox profile, sends them over the host’s network on every install. Each request holds the VM’s chip identity and the components’ digests. wb-vmd-install itself still has no network, and the spike’s probe confirmed its profile holds, so no SEC* control is weaker. These specs stated that only wb-download reaches the internet, and each now names the exception: the downloads spec (S17-03-downloadsS17-03-downloads: DownloadsHow wb-download fetches what an image build needs from the internet.), restore and release (S17-04-restore-and-releaseS17-04-restore-and-release: Restore Image and ReleaseThe steps by which wb-download and wb-hostd fetch and check a macOS restore image and a Claude Code release.), the table of internet inputs (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.), and the platform table (S12-01-platform-interfacesS12-01-platform-interfaces: Platform InterfacesHow platform-specific code is isolated behind interfaces, and what each host OS uses for each.).

Gap. An older build that Apple still signs passes both the installer’s check and the hash check. The version floor relies on the catalog, which comes from wb-download (I618I618 (closed): X33-restore-downgrade: Restore image downgrade by a compromised wb-downloadFollow-up from #262 (X30-installer-trust)., needs a VM).

A root admin shell that doesn’t depend on wb-guestd

Section titled “A root admin shell that doesn’t depend on wb-guestd”

Spec change from spike X31-admin-channelX31-admin-channel: A root shell from a second guest daemonCan wb-guestroot, a root LaunchDaemon apart from wb-guestd on a vsock port of its own below 1024, give the host a root shell on a PTY while wb-guestd is dead, stopped or restarting?. Security: a new root entry point into the guest. 402 lines of docs.

The design. wb vm admin gives the person at the keyboard a root shell in the guest for repair (S15-05-admin-pathS15-05-admin-path: The Admin PathHow the person at the host's terminal gets a root shell in their own guest, on a path that no agent, session, or guest process can start or reach.). It must work when wb-guestd is wedged. The plan is a second root daemon, wb-guestroot, on its own vsock port below 1024. The host opens the connection, as it does for wb-guestd.

What the spike measured, with a stand-in daemon on port 1022:

  • It served a root zsh with wb-guestd running, booted out, stopped with SIGSTOP, and killed in a loop (44 of 44 tries).
  • A standard user’s bind of port 1022 failed with EACCES about 12,600 times, with a listener, without one, and across a restart. Root bound it on the first try. launchd restarted the daemon within 0.5 s.
  • wb-guestd and wb-guestroot can update at one boot without a lock, because each renames only its own files. On a fresh install directory, two at once can fail closed with guestd-install-dir-failed (146 of 200 tries).

Full Disk Access, the open choice. TCC holds the shell to what a root LaunchDaemon may do, so it has no Full Disk Access by default. That isn’t a boundary: root can probably reach it through ssh localhost, since Remote Login holds the grant. The spike inferred that route and didn’t try it. The spec states “no Full Disk Access”, and B448-admin-channelB448-admin-channel: Does a second guest daemon give the admin path a root shell while wb-guestd is down?Yes, with conditions. asks you.

Found on the way: a guest kernel panic. On macOS 27.2, a standard user’s vsock connect to the guest’s own CID panicked the kernel, “corrupt list around element”, 2 of 2 times. The guest rebooted. The session profile’s AF_VSOCK deny keeps project users off this path. Processes outside the profile aren’t covered, such as a Homebrew formula’s post_install during a toolchain step. One bad formula would then reboot the VM for every project in it. The panic contradicts what X27-vsock-confinementX27-vsock-confinement: vsock confinement of project usersCan a non-root process in a macOS guest open AFVSOCK, and bind or listen on wb-guestd's port while wb-guestd is running or being restarted? found on 27.0.1 and 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. states, and two conformance tests (TestGuestdPortRefused, TestSelfCIDFlood) are expected to panic a 27.2 test VM (I615I615 (open): Guest kernel panic found in X31-admin-channel: narrow it down and gate the conformance casesFound in #448 (X31-admin-channel), by chance.).

Building the admin path is I614I614 (closed): Build the admin path: wb-guestroot, the admin service and wb vm adminFollow-up of #448 (X31-admin-channel), as the triage of #448 asked: no issue exists yet for building the admin path of S15-05-admin-path..

Guest instructions explain Xcode UI test failures

Section titled “Guest instructions explain Xcode UI test failures”

Spec only. 115 lines of docs. Not security-relevant.

An xcodebuild test of a macOS target fails in the guest with a testmanagerd error, because the guest has no GUI login session. The spec said wb would rewrite that error. That would make the host parse output from the guest, and the host passes the terminal stream through as opaque frames without reading the error.

Now the image installs a managed CLAUDE.md at /Library/Application Support/ClaudeCode/CLAUDE.md, owned by root with mode 644, from text compiled into internal/agent/claude. It says that xcodebuild tests and macOS app launches fail while swift test works. Claude Code should tell the user instead of working around it. The file is guidance, not a control: a project’s CLAUDE.md loads later and can contradict it. Rejected: a wrapper whose output wb-hostd parses, and writing into the project user’s own ~/.claude/CLAUDE.md. I607I607 (closed): Claude Code layer: install the managed guest instructions CLAUDE.md (S14-04 Guest instructions)S14-04-commands-and-endpoints, "Guest instructions" (#224) specifies a managed CLAUDE.md that the Claude Code layer installs at /Library/Application Support/ClaudeCode/CLAUDE.md in a macOS guest: owned by root, mode… builds it, and I611I611 (closed): User docs: list the V1 limits, starting with the GUI-session limit of S06-04Found in the code review of #608 (#224). adds a user docs page of V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there. limits.

Beside the train: strict HTTP/1.1 requests in wb-proxyd

Section titled “Beside the train: strict HTTP/1.1 requests in wb-proxyd”

Code, approved, not merged. Security: parses guest bytes on the egress path. 1,709 lines, 16 files.

A new package, internal/proxyd/httpreq, reads an HTTP/1.1 request head from the guest and refuses anything ambiguous before a policy step runs:

Choices stricter than the issue asked: field values with bytes over 0x7E, malformed userinfo in an absolute-form target, and two Content-Length fields even when they agree are all refused. A fuzz target compares the reader with Go’s net/http: in 15 million runs the two didn’t diverge.

The connection loop that serves these requests is still to build: deadlines, refusal answers and their logging, keep-alive upstream, the WebSocket relay, and body size caps (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 must-fix findings were fixed before merge. These remain, most serious first.

Security:

Code and docs, which reviewers marked as optional:

  • The downloads spec still opens with “Only wb-download fetches what an image build needs” before it names the exception, and its diagram doesn’t show the signing server traffic.
  • The testmanagerd decision is recorded in two specs with slightly different rejected options.
  • gitlinks.go repeats the “equal or under” path test of resolve.go.
  • The admin channel brief calls the ssh localhost route inferred in its prose but not in its evidence list.
Budget, timeline, and pull requests

Cost: $63.87 against a $50 limit. The headless wave cost $11.89 on the ledger. The resume ran in the manager’s interactive session, which cost $51.98 by the maintainer’s count. The ledger doesn’t see an interactive session, so the manager couldn’t stop at the limit.

Limit Spent Of
Hours 2.3 2.31
Dollars $63.87 $50.00
Issues filed 8 10
Pull requests 5 10

Timeline. The campaign started 2026-11-08 19:53 UTC on the dedicated Mac, in V1-M3-network-floorV1-M3-network-floor: The network floorwb-netd and wb-proxyd in inspect mode with a static policy, the audit log, and the conformance cases for egress.. Wave 1 picked five issues. Its headless session ended after 10 minutes with nothing on the train. After the harness fix, the maintainer had the campaign resumed for 90 minutes, only to finish those issues. The manager acted as wave lead in its own session.

Pull request Change Where Code review rounds Security reviews
PR612PR612 (merged): feat(wb): refuse a git directory that holds a link resolving outside itThe project resolver refuses a project whose git directory holds a symbolic link that resolves outside it, as the decision of 2026-10-26 on #388 says. wb refuses a .git that links out of itself (I388I388 (closed): Project resolution: symbolic links inside a .git directory that point into another projectFound during the security review of #387 (#374).) on the train 1 none required
PR620PR620 (merged): docs(spikes): X30 result, the installer refuses a changed restore imageResult of spike X30-installer-trust: yes, with conditions. Image builds trust Apple’s signing server (I262I262 (closed): X30-installer-trust: Installer refusal of a changed restore imageS17-install-and-upgrade (#49) checks a downloaded macOS restore image against the SHA-1 that Apple's catalog (mesu.apple.com) lists, the only hash it lists., X30-installer-trustX30-installer-trust: Installer refusal of a changed restore imageDoes the Virtualization framework's macOS installer, run by wb-vmd-install, refuse a restore image that Apple didn't sign, or one with a changed or replaced component, and does the install contact Apple while wb-vmd-i…) on the train 2 none required
PR619PR619 (merged): docs(spikes): X31-admin-channel answered yes, with conditionsX31-admin-channel answered yes, with conditions. Root admin shell (I448I448 (closed): X31-admin-channel: a root shell from a second guest daemon while wb-guestd is downCan a second root LaunchDaemon in a macOS guest, wb-guestroot, give the host a root shell on a PTY over its own vsock port below 1024, while wb-guestd is dead, wedged or restarting?, X31-admin-channelX31-admin-channel: A root shell from a second guest daemonCan wb-guestroot, a root LaunchDaemon apart from wb-guestd on a vsock port of its own below 1024, give the host a root shell on a PTY while wb-guestd is dead, stopped or restarting?) on the train 3 1
PR608PR608 (merged): docs(spec): explain the testmanagerd failure in the guest instructions, not on the hostSettles how the testmanagerd failure of an xcodebuild test in the guest is explained (B20 decision 1A, #20), as the maintainer's triage on #224 directed: no host parsing. Guest instructions for Xcode failures (I224I224 (closed): S06-vm-lifecycle: which process explains the testmanagerd failure in the guest (B20 decision 1A)S06-vm-lifecycle, "No GUI login session" (B20-guest-xcode decision 1A, #20, PR #221) says wb replaces the testmanagerd error from xcodebuild with a message that names the v1 limit (NFR06-explained-refusals).) on the train 1 none required
PR613PR613 (merged): feat(proxyd): strict HTTP/1.1 request head, request form and stepsPart of #498. Strict HTTP/1.1 requests in wb-proxyd (part of 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).) open 3 2

This page was written by hand. scripts/campaign.mjs renders a page ordered by pull request, which this one replaces.