Where does a new project run, and what makes it the same project later?
Decided 2026-10-04: B. New projects start in the work VM. The decision and its reasons are in the I42I42 (closed): S05-cli, S06-vm-lifecycle, S09-policy-credentials-audit: separate configuration trust from VM placement; project identityThe specs use "trusted" for two different things and do not give a default: comment that starts Decision (2026-10-04):. Source: I42I42 (closed): S05-cli, S06-vm-lifecycle, S09-policy-credentials-audit: separate configuration trust from VM placement; project identityThe specs use "trusted" for two different things and do not give a default:, related to I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing"). and I41I41 (closed): S08-workspace-and-git: which git data reaches the guest, and host git as a parserS08-workspace-and-git says how bytes move, but not which data the guest may get or how much the host trusts its own git when it parses guest data:. Affects T00-indexT00-indexboundary 6 is the host terminal stream., S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command., S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. and S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded..
The problem
Section titled “The problem”Figure 1. On first run, wb claude registers the repository as a project and has to put it in a VM. In the work VM, the new project shares one network address with your projects, and the host can’t tell their connections apart (I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing").). In the isolated VM it shares a VM only with other repositories nobody vouched for.
Sub-decisions
Section titled “Sub-decisions”The issue raises four points. Point 1 hides the one real fork, the default VM, with options below.
| Point | Recommendation | Source |
|---|---|---|
| Meanings of “trusted” | Separate, named project settings. config_trust (set by wb trust) decides whether .wraithbox/ in the repository is read (SEC09-host-policySEC09-host-policy: Policy is held on the hostThe guest cannot read or change policy.). placement (work or isolated) decides the VM. --isolated overrides it for one session. The word “trusted” alone leaves the specs. |
issue |
| 1. Default VM for a new project | A below: isolated, until the user runs wb project place work. |
this brief |
| 2. Untrusted projects share one VM | A new accepted threat in T00-indexT00-indexboundary 6 is the host terminal stream. next to T05-cross-proj-clonesT05-cross-proj-clones: Other projects' clones after guest rootAfter a guest root escalation inside the shared work VM, read or write access to other projects' guest clones (code only; no secrets are present; changes still return only as reviewable branches).: after guest root, one isolated project can read and write another’s clone. | issue, but in T00-indexT00-indexboundary 6 is the host terminal stream. |
| 3. Learn mode | Needs placement = work, the setting that says the user vouches for the repository. config_trust is about reading .wraithbox/ and says nothing about the content the agent reads. Whether learn mode stays at all is I40I40 (closed): S03-requirements, S07-egress-gateway: record learn mode and pass mode as SEC05-default-deny exceptionsSEC05-default-deny is "default-deny egress", and AGENTS.md says an S control is never weakened.. |
this brief |
| 4. Project identity | Key on the host realm and the path of the repository’s git directory (git rev-parse --git-common-dir), so every git worktree of one repository is one project. Record the cleaned remote URL. If it changes, stop and ask the user to confirm with wb project. wb project show/move/rename handle moves explicitly. |
issue, amended |
Options for the default VM
Section titled “Options for the default VM”Impact
Section titled “Impact”Evidence
Section titled “Evidence”- verified S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. sends “untrusted repositories” to the isolated VM, by
--isolatedor “a project marked untrusted” (“VMs”). S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command. haswb trustandwb untrustfor repository configuration only, and no command that marks a project untrusted (“Management commands”). - verified
--learnis “refused unless the project is trusted” (S05-01-agent-commandsS05-01-agent-commands: Agent CommandsHow wb claude passes its arguments to Claude Code, how it runs interactive and non-interactive sessions, and what a session does., “Session flags”), and FR10-learn-modeFR10-learn-mode: Learn modeA learn mode, available only to projects whose placement is work (S05-cli), records the destinations a project needs and proposes an allowlist. says “trusted repositories”, without saying which trust. - verified S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. already lists the VM slot (work or isolated) among the project settings (“Settings contents”).
- verified T05-cross-proj-clonesT05-cross-proj-clones: Other projects' clones after guest rootAfter a guest root escalation inside the shared work VM, read or write access to other projects' guest clones (code only; no secrets are present; changes still return only as reviewable branches). accepts cross-project access in the work VM because “untrusted repositories use the isolated VM”, and says nothing about projects sharing the isolated VM (T00-indexT00-indexboundary 6 is the host terminal stream.).
- verified Project identity is a hash of the repository’s location and the URL of its first remote (S05-04-namingS05-04-naming: NamingHow wb identifies a project, a session and its branch, and how projects are registered, checked, moved and removed.).
git remotelists remotes alphabetically (local test, git 2.56.0). - verified In a
git worktree,git rev-parse --git-common-dirreturns the main repository’s.gitdirectory, while--show-toplevelreturns the worktree’s own path (local test). - inferred So today each worktree of one repository is its own project, and keying on the common directory makes them one.
- assumed That I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing"). is decided as its brief recommends (B36-flow-attributionB36-flow-attribution: Can projects sharing the work VM keep their network grants apart?Not as the specs are written.). The case for A over B rests on it.
- assumed That the isolated VM can host more than one project user at once, as the work VM does. S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. implies it, and X06-guest-xcodeX06-guest-xcode: Guest users and XcodeCan builds and simulators run for a guest user without a GUI login? and I43I43 (closed): S06-vm-lifecycle: VM slot admission for image builds, updates and GUI work (NFR05-two-macos-vms)NFR05-two-macos-vms allows two running macOS guests per host, and S06-vm-lifecycle uses both: the work VM and the isolated VM. may give that slot other work too.
What this unblocks
Section titled “What this unblocks”- The spec pull request:
config_trustandplacementin S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command., S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does. and S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded., thewb projectcommands in S05-cliS05-cli: Command Line InterfaceSpecify wb, the single user-facing command., and the shared isolated VM in T00-indexT00-indexboundary 6 is the host terminal stream.. - I52I52 (closed): S04-architecture, S09-policy-credentials-audit, S10-tech-stack: first .proto contracts and settings schemaS04-architecture says all IPC is protobuf over gRPC and S10-tech-stack adds proto/ "with the first RPC"., whose settings schema needs the two setting names.
- Waits on: nothing for points 2 to 4. The choice between A and B is cleaner once I36I36 (closed): S07-egress-gateway: attribute network flows to projects in the shared work VMThe work VM hosts every trusted project, and its wb-netd sees one guest MAC and one leased IPv4 address (S07-egress-gateway "Addressing"). is decided.
Details and glossary
The default decides for most repositories. Few users pass --isolated by habit. The default then places nearly every repository, including the ones cloned to try out once. Those are the likeliest to contain a prompt injection.
Moving a project. wb project move points a project at a new directory, keeping its id, Claude Code state (FR13-claude-stateFR13-claude-state: Claude Code state per projectClaude Code's conversation history, and the state it keeps only in the guest, persist per project, so --resume/--continue work within a project.), approvals and policy. wb project place moves it between VMs. Moving between VMs copies the project user’s home, which needs the data-disk design of I44I44 (closed): S06-vm-lifecycle: data disk durability, and never mount a guest-written diskS06-vm-lifecycle says the data disk "can be rebuilt from host state plus git, so it may use relaxed write-through settings for speed"..
Glossary
- Project: a repository that Wraith Box knows, with its own guest user, state, policy and landing repository.
- Work VM / isolated VM: the two VM slots per guest OS (S06-vm-lifecycleS06-vm-lifecycle: VM Lifecycle, Images and the Guest AgentHow guest images are built, how VMs are kept warm, how projects and sessions map onto guests, and what wb-guestd does.).
- Configuration trust: reading the repository’s own
.wraithbox/settings, which can add hosts but never credentials (SEC09-host-policySEC09-host-policy: Policy is held on the hostThe guest cannot read or change policy.). - Placement: which of the two VMs a project runs in.
- Host realm: the native host, or a WSL distribution on Windows (S12-platformsS12-platforms: PlatformsWhich host and guest operating systems Wraith Box targets, how platform-specific code is isolated, what each platform uses, and how wb works inside WSL.).
- Git common directory: the
.gitdirectory that all worktrees of one repository share. - Learn mode: a session that allows every destination and records them as a suggested allowlist (FR10-learn-modeFR10-learn-mode: Learn modeA learn mode, available only to projects whose placement is work (S05-cli), records the destinations a project needs and proposes an allowlist.).