S08 - Workspace and Git Round Trip
Purpose: How code gets into the guest and how the agent’s work gets back out, without sharing the host filesystem.
Requirements: FR02-any-repoFR02-any-repo: Any git repositoryWorks in any git repository. to FR05-parallel-sessionsFR05-parallel-sessions: Parallel sessionsSeveral sessions can run at once, in the same project and across projects., SEC02-no-host-fs-shareSEC02-no-host-fs-share: No host filesystem sharingNo host directory is mounted into the guest, read-only or otherwise., SEC03-no-host-execSEC03-no-host-exec: No host code execution via returned workNothing the agent produces executes on the host without an explicit user action; returned changes to files the host may later execute are flagged., SEC04-no-guest-secretsSEC04-no-guest-secrets: No secrets in the guestThis includes the model credential., 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., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter., SEC13-bounded-resourcesSEC13-bounded-resources: Bounded resourcesCPU, memory and disk of each VM are capped., NFR01-startupNFR01-startup: StartupGoals: a warm VM reaches the Claude prompt in about 4 s and a suspended VM in about 7 s, and no start takes more than 10 s (p95), excluding first-time project setup and the first boot after a host restart., NFR02-fs-speedNFR02-fs-speed: FilesystemThe workspace is on guest-native storage..
Briefs: B21-git-round-tripB21-git-round-trip: Does the git round trip work, and what keeps the guest's pushes on its own branches?Yes, with conditions., B41-git-data-scopeB41-git-data-scope: Which git data may reach the guest, and how far does the host trust its own git?Serve the guest from a host-side export repository holding only the session's branch, scan carried-in files, clean remote URLs, and require a minimum git version., B74-pre-receive-checkB74-pre-receive-check: Can Wraith Box refuse a bad push before any of it reaches the landing repository, and before it uses up the host's memory?Yes, with conditions., B102-git-alloc-limitB102-git-alloc-limit: Can git itself refuse a push that asks for too much memory, so the pack scanner gets simpler?Yes, with conditions.
Design
Section titled “Design”Code goes into the guest, and the agent’s work comes back out, only as git objects over the host-guest socket. Each project has two repositories of its own on the host, next to the user’s:
| Repository | Written by | Read by |
|---|---|---|
| The user’s repository | the user, and wb land |
wb, for the export update and the carry-in |
<data>/projects/<id>/export.git |
wb only |
the guest, through upload-pack |
<data>/projects/<id>/landing.git |
the guest’s pushes, through receive-pack |
wb land and wb diff |
Other transfers
Section titled “Other transfers”Files copied out of the guest by any means other than git, such as a
future wb cp, carry the platform’s downloaded-file marker
(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.). That is the quarantine attribute on macOS, and Mark of
the Web on Windows.
Out of scope
Section titled “Out of scope”- Git LFS objects, submodules, and very large repositories are not covered in v1. They are listed in V1-initialV1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there..
Status: Draft