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.
In short
Section titled “In short”The train adds one host control in code and answers three design questions with measurements in a VM.
wbrefuses a project whose.gitreaches 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-guestdis down. A second root daemon on its own privileged vsock port answered in every state ofwb-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.
What needs you
Section titled “What needs you”- Approve the installer exception (B262-installer-trustB262-installer-trust: Does the macOS installer refuse a changed restore image?Yes, with conditions.). The installer’s check works only through those requests. The brief has one option. Approving amends the decision “Only
wb-downloadfetches” from I49I49 (closed): S10-tech-stack: installation, restore image download, upgrades and migrationsS10-tech-stack "Packaging and signing" gives the shape of the macOS app bundle.. - Full Disk Access for the admin shell (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.). The spec now takes the stricter option, none. Without it the shell can’t delete a user record or read TCC’s files, and you’d use
sudoover SSH for those. - The open proxy change (PR613PR613 (merged): feat(proxyd): strict HTTP/1.1 request head, request form and stepsPart of #498.) targets
train/604. Merge it later with the connection loop, or retarget it tomainafter the train is merged.
What changed where
Section titled “What changed where”The changes, largest first
Section titled “The changes, largest first”wb refuses a .git that links out of itself
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
hooksdirectory is skipped.wbruns git withcore.hooksPathset 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-parsestill runs before the walk and reads.git/config. That gives git no new reach, because a.gitfile 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
zshwithwb-guestdrunning, booted out, stopped withSIGSTOP, and killed in a loop (44 of 44 tries). - A standard user’s
bindof port 1022 failed withEACCESabout 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-guestdandwb-guestrootcan 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 withguestd-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:
- a 64 KiB head cap (
431), andCONNECTor a non-WebSocketUpgraderefused as a tunnel (403); - origin or absolute form only, with
Hostand the target’s host bound to the stream’s name and port; - the path canonicalized with the same function the policy matches on, so the path that’s checked is the path that goes upstream;
- a strict chunked decoder;
- the seven request steps of 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. run in order, and the request is refused if the credential removal or policy step is missing.
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).).
Review findings not resolved
Section titled “Review findings not resolved”The must-fix findings were fixed before merge. These remain, most serious first.
Security:
- Guest kernel panic on a self-CID vsock connect, reachable from toolchain steps. A VM-wide denial of service, and memory corruption in the guest kernel (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.).
.gitfile contents can still point into another project, throughalternatesor a configinclude(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.).- A
Connectionheader can drop a credential header before the audited credential removal step sees it. The credential never goes upstream, but the audit log misses the removal. In the open proxy change, for 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).. - An older Apple-signed restore image passes the installer’s check (I618I618 (closed): X33-restore-downgrade: Restore image downgrade by a compromised wb-downloadFollow-up from #262 (X30-installer-trust).).
- The admin path has no limit on concurrent admin sessions, and doesn’t say how sessions end when
wb-guestdis wedged. The sealed image also holds a stale Full Disk Access grant forsshd-keygen-wrapper(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.). - Windows junctions inside
.gitwould pass the link walk, once Windows resolves projects (I617I617 (open): Project resolution on Windows: junctions inside .git pass the link walkFound in the code review of #612 (#388), finding 5.).
Code and docs, which reviewers marked as optional:
- The downloads spec still opens with “Only
wb-downloadfetches what an image build needs” before it names the exception, and its diagram doesn’t show the signing server traffic. - The
testmanagerddecision is recorded in two specs with slightly different rejected options. gitlinks.gorepeats the “equal or under” path test ofresolve.go.- The admin channel brief calls the
ssh localhostroute inferred in its prose but not in its evidence list.
Friction
Section titled “Friction”- Flaky tests, both known. Go
TestStreamPolicy(I551I551 (closed): netd/stack: TestStreamPolicy can read the refusal count before refuse() records itTestStreamPolicy (internal/netd/stack/stack_test.go) failed once on Go (windows-2025) in the CI run of #550, a pull request that doesn't touch netd:) failed once on CI and passed on rerun. The SwiftConnectGuestsend failure test (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…) failed on the train’s CI, although the train doesn’t change Swift code, and passed on rerun. - VM instability. The guest kernel panic above rebooted the spike VM twice. The conformance suite is expected to trigger it on macOS 27.2 until 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. gates those tests.
- The headless wave stopped after 10 minutes.
claude -pended the background wave lead and its builders (I609I609 (closed): Campaign waves end after 10 minutes: claude -p stops the background wave-leadWave 1 of campaign #604 ran claude -p "/wave --campaign 604 ..." through scripts/campaign.mjs., fixed onmainby PR610PR610 (merged): fix(scripts): a headless campaign wave waits for its background leadscripts/campaign.mjs starts each headless wave with CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 (waveEnv, with a test).). The work was finished by hand in the same worktrees. - Generated indexes conflict on every rebase. One rebase dropped the 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… answer from the spike index, which the builder restored by hand.
- Review rounds. 13 reviews for 5 pull requests. The admin channel and the proxy change each took 3 code review rounds, over spec wording that contradicted other specs or the code.
The run
Section titled “The run”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.
This page was written by hand. scripts/campaign.mjs renders a page ordered by pull request, which this one replaces.