Design documents
These documents explain the implementation and its contracts for contributors and reviewers. They describe current behavior; earlier proposals and review rounds are in the Git history. To use marsh, read the manual.
Read in order:
- Local product contract: the user-visible contract
- Architecture: crates, data flow, trust boundaries
- TLA+ model: cross-component state, invariants, and where each action lives in the code
- Acceptance contract: black-box observations a release must pass
By topic:
| Document | Subject |
|---|---|
| processes.md | Nested jobs: lineage, admission, the job capability socket (acceptance) |
| workspaces.md | Daemon-owned splits and forks (acceptance) |
| stock-sbx-adapter.md | The only boundary to sbx: ownership map, mounts, workers |
| shell-attachments.md | Attaching a shell, interruption, cleanup evidence |
| command-registry.md | Command-to-Kit mappings and their rules |
| results.md | Job records behind marsh results, and scope configuration |
| bash-compatibility.md | Known Bash differences and the differential tests |
| mcp.md | The host MCP server and published-command export (test contract) |
| ACP acceptance | ACP sessions and their publication |
| services-policy.md | The services agent's Docker API policy: parsing, allowlist, pins, ledger |
| kit-publication.md | Building and publishing Kits |
| supply-chain.md | Build inputs, published images, notices |
| services.md | The per-project services VM: identity, mounts, disk size, lease and idle stop, readiness |
| test-breaks.md | MARSH_TEST_BREAK deliberate breaks for E2E tests (test builds only) |
| dev-install.md | make dev, the dev install and its Kit image cache |
| test-breaks.md | MARSH_TEST_BREAK deliberate breaks for E2E tests (test builds only) |
| Brush patch record | The upstream Brush revision and marsh's patch queue |
Cloud placement (session-origin slice shipped as a preview; the rest proposed):
- Cloud placement: shell-native remote commands, automatic delta return, nested placement, model obligations, and acceptance gates.
- Detached cloud work (implemented, v1 without nested calls): start cloud work, close the lid, and collect output and file changes later.
- Session-origin dispatch: what is implemented, where, and its live evidence.
- Live cloud feasibility findings: tested Kit v2 execution, two-policy sharing, limitations, and verified resource cleanup.
- Owned cloud lifecycle: implemented adapter, real-caller qualification, and cloud ownership model.
- Bring your own agent Kit.