Sandbox execution and placement
Sandbox execution gives users an isolated place to run commands, change files, use a terminal, and keep a working state for a limited time. The control plane owns the API, access checks, records, and placement choice. A sandbox then runs either on the control plane or on one fixed worker node. This page gives the execution model behind the wider Sandbox platform.
Sandbox lifecycle
The sandbox lifecycle turns an authenticated create request into a running environment and then manages its use, pause, wake, and removal. The public sandbox ID is the API identity; the service keeps the internal record and the live provider handle aligned.
Sandbox API operations
The API exposes one resource model for creation, inspection, use, and removal. Every request checks sandbox access before it reaches the execution provider, so a worker never makes the authorization decision. The route and data shapes are also published through the unified OpenAPI document and keep compatibility with the @vercel/sandbox client contract.
| Operation group | Main capability | Important result |
|---|---|---|
| Create and list | Create a sandbox from an image, source, project, or snapshot. List owned sandboxes with lifecycle and project filters. | The response reports status, lifecycle, backend, and hosting node. |
| Lifecycle | Stop, pause, resume, restart, extend the idle deadline, resize supported disks, and destroy. | A destroy removes the sandbox from normal listings. A pause keeps its files for a later resume. |
| Source and preview | Seed or clone a Git repository or tarball. Declare ports and request preview domains. | Source URLs are checked against unsafe network targets before the sandbox fetches them. Worker sandboxes do not yet receive preview routes. |
| Activity history | Read the sandbox operation timeline. | The timeline records lifecycle actions, not shell output. |
| Runtime variables | Request project-scoped service variables for a sandbox attached to a project. | Values are issued for the selected environment and are treated as secrets. |
| Placement administration | Inspect nodes and their live sandboxes, change the allow-list, and evict worker sandboxes. | These operations are restricted to administrators. Eviction reports confirmed, unconfirmed, and failed cleanup separately. |
The API keeps native sandbox operations and the SDK-compatible command and file shapes on the same resource. Clients can use foreground or detached commands, job polling or streaming, binary-safe file access, preview URLs, and lifecycle events without changing the ownership and placement model.
The create request can choose an ephemeral or workspace lifecycle. It can also choose Docker, Firecracker, or the experimental microsandbox backend when the selected host supports it. Firecracker and microsandbox are control-plane options; worker placement currently supports Docker only. A snapshot restore cannot be combined with an image or a new source because the snapshot already supplies the starting state. A named node is a hard choice: if that node is not allowed or ready, creation fails instead of moving the sandbox elsewhere.
References: crates/…/mod.rs• L53-112 crates/…/sandboxes.rs• L1045-1147 crates/…/sandboxes.rs• L1350-1510 crates/…/placement.rs• L204-290 crates/…/sandbox_service.rs• L1678-1733 crates/…/vercel_compat.rs• L35-109
Ephemeral sandboxes
An ephemeral sandbox is the default short-lived environment. It may stop when its idle deadline passes, but a stopped ephemeral sandbox stays stopped until the caller explicitly resumes it. This keeps a caller's lifecycle choice visible instead of silently starting compute during a command or file request.
References: crates/…/sandbox_service.rs• L88-137 crates/…/sandbox_service.rs• L5010-5040
Workspace sandboxes
A workspace sandbox is a durable place for ongoing work. Idle compute may stop, but its files and home data are kept. The next command, file operation, or terminal attach wakes the workspace and gives it a new idle window. The platform does not destroy a workspace automatically.
References: crates/…/sandbox_service.rs• L88-137 crates/…/sandbox_service.rs• L5050-5136
Idle expiry
The timeout is an idle timeout, not a fixed lifetime. Create, command execution, file access, resume, wake, and terminal activity move the idle deadline forward. The expiry process can therefore reclaim unused compute without stopping a sandbox that is being used.
The platform accepts a timeout from 60 seconds to 24 hours. extendTimeout moves the current deadline farther forward. An activity update never moves an explicitly extended deadline backward. A terminal sends activity while it is attached because terminal input alone is not a normal command or file request.
flowchart LR
A[Create sandbox] --> B[Running]
B -->|Command, file access, or terminal activity| B
B -->|Idle deadline reached| C[Stopped]
C -->|Ephemeral: explicit resume| B
C -->|Workspace: next access| D[Wake]
D --> B
B -->|Explicit destroy| E[Destroyed]
References: crates/…/sandbox_service.rs• L820-833 crates/…/sandbox_service.rs• L4547-4647 crates/…/terminal.rs• L28-36
Lifecycle state protection
Lifecycle state is stored in the database and changed after provider work. Conditional updates make the write depend on the state or activity timestamp that the operation read. A late stop, wake, or liveness result therefore cannot overwrite a destroy or a newer resume.
References: crates/…/row_status.rs• L4-67 crates/…/sandbox_service.rs• L4832-4900
Command and file execution
Commands and file operations use the same sandbox identity and provider path. The service resolves ownership, wakes a workspace when needed, refreshes activity, and then asks the provider to act inside the sandbox.
Command execution
Foreground execution runs a command until it exits and returns its exit code, standard output, and standard error. A non-zero exit code is a command result, not an API failure. The caller decides whether that result means the task failed.
Detached execution starts a background job and returns a job ID. The caller can list jobs, read a job's status and bounded output, subscribe to live output, or stop the job. The job tracker keeps a bounded output tail so a noisy process cannot grow memory without limit.
The SDK-compatible /cmd surface adapts the same job flow to the command shape expected by @vercel/sandbox. A caller can receive an immediate command envelope or an NDJSON stream with the running and finished states.
sequenceDiagram
participant C as Client
participant A as Sandbox API
participant R as Sandbox registry
participant P as Sandbox provider
C->>A: exec or execDetached
A->>R: resolve live sandbox handle
R->>P: run command
P-->>A: exit code and output
A-->>C: result or job ID
P-->>A: streamed output for detached job
References: crates/…/exec.rs• L28-115 crates/…/exec.rs• L117-308 crates/…/sandboxes.rs• L1665-1824 crates/…/sandboxes.rs• L1866-2145
Filesystem operations
The file API reads and writes bytes, writes a batch of files, checks path state, lists directories, and creates directories. Paths must be absolute and cannot contain .. segments. This gives callers stable container paths and prevents a path request from escaping its intended tree.
File reads and writes preserve binary content through base64 at the HTTP boundary. SDK file uploads can also arrive as bounded gzipped tar data. Directory listings are paged and capped, and symlinks are reported without being followed. A batch write stops at the first failed file, so files written before that point remain in place. A missing path in stat is a normal result with exists: false.
References: crates/…/fs.rs• L21-94 crates/…/fs.rs• L133-357 crates/…/sandboxes.rs• L2263-2490
Interactive terminals
The terminal API bridges a WebSocket to a PTY session inside the sandbox. A tab name identifies a session, so reconnecting to the same tab can resume the program and replay recent scrollback instead of starting a second shell. Binary frames carry terminal bytes; JSON text frames carry resize and status events.
The terminal detaches when the client disconnects. It does not kill the program in the tab. A heartbeat keeps the sandbox active while the client is present, and dead connections close after missed liveness checks so they cannot prevent expiry forever. Terminals are available on supported control-plane backends when the guest PTY agent is ready; worker sandboxes remain unsupported, and the local backend has no terminal support. Attach limits also bound instance-wide and per-user sessions.
References: crates/…/terminal.rs• L4-35 crates/…/terminal.rs• L275-300 crates/…/terminal.rs• L342-451 crates/…/terminal.rs• L546-700 docs/…/048-multi-node-sandboxes.md• L325-341 docs/…/050-microsandbox-sandbox-backend.md• L123-131
Snapshots and restore
A snapshot is a reusable capture of sandbox state. It is different from pause: pause stops and starts the same container, while a snapshot creates an artifact from which a new sandbox can be made.
Snapshot capture
POST /v1/sandboxes/{id}/snapshots captures a running control-plane sandbox. The service scrubs the known credential file, stops the sandbox for a consistent capture, asks the provider to create the artifact, and starts the sandbox again. The snapshot record moves through creating, ready, or failed; the caller can read the record to see the final state. One snapshot per user may be in flight at a time so the quota check cannot be bypassed by concurrent captures.
Snapshots belong to the user and use a per-user storage quota of 10 GiB by default. The service uses the content digest as the artifact key. Equal captures share their stored artifact, while each snapshot remains a separate user-visible record. There is no automatic snapshot expiry or garbage collection; users remove snapshots when they no longer need them.
Worker sandboxes and microsandbox sandboxes cannot be snapshotted yet. These checks occur before credential scrubbing or stopping the sandbox.
References: crates/…/error.rs• L15-137 crates/…/snapshot_service.rs• L36-61 crates/…/snapshot_service.rs• L155-269 crates/…/snapshot_service.rs• L310-453
Snapshot restore
Creating a sandbox with from_snapshot restores a ready snapshot owned by the caller. Restore checks that the artifact exists, its digest and metadata are valid, and its backend matches the requested backend. Current Docker artifacts also require the recorded image and workspace companion data; older artifacts that lack this integrity data remain deletable but cannot restore safely. A Docker artifact cannot restore into Firecracker, and a worker or microsandbox sandbox cannot restore a snapshot in the current phase.
Artifact resolution stays protected through provider restore. This prevents a concurrent delete from removing a verified artifact before the new sandbox consumes it.
flowchart TD
A[Running control-plane sandbox] --> B[Scrub known runtime credential file]
B --> C[Stop sandbox]
C --> D[Capture content-addressed artifact]
D --> E{Capture result}
E -->|Ready| F[Restart source sandbox]
E -->|Failed| G[Keep failed record and clean unshared artifact]
H[Create with snapshot ID] --> I[Check ownership, status, digest, metadata, and backend]
I --> J[Create new sandbox from artifact]
References: crates/…/sandboxes.rs• L1224-1267 crates/…/snapshot_service.rs• L979-1097 crates/…/registry.rs• L184-197
Snapshot deletion
Snapshot deletion is a soft delete. The service removes the stored artifact only when no other ready snapshot uses the same digest. Capture, restore, and deletion share one artifact lifecycle boundary so a restore cannot read an artifact while a delete removes it.
References: crates/…/snapshot_service.rs• L827-921 crates/…/snapshot_service.rs• L145-153
Runtime registries
Registries connect durable records to live provider handles. They are in-memory caches, not the source of truth. After a process restart, a registry must recover a container by its sandbox identity before it performs a lifecycle action.
Standalone sandbox registry
The standalone registry serves API-created sandboxes. It maps the internal sandbox record to a provider handle, routes recovery to the node recorded on that row, and checks liveness before commands or file operations. Lifecycle actions can recover stopped containers; active operations require a running container.
The registry makes local and worker sandboxes look the same to the service. A missing cached handle is expected after restart. A missing container is a real not-found result, while an unreachable worker is reported as unavailable so the platform does not wake, destroy, or recreate a sandbox that may still exist on that worker.
References: crates/…/registry.rs• L4-24 crates/…/registry.rs• L328-400 crates/…/registry.rs• L425-530
Agent-run sandbox registry
The agent-run registry maps an agent run ID to its sandbox handle. It keeps one sandbox across analysis, fix, and pull-request phases, and it can recover active run sandboxes after a server restart. When the managed sandbox service is present, creation and release also maintain a first-class sandbox record; the agent run still owns the lifecycle.
This registry is separate from the standalone registry because agent-run sandboxes have a different owner and cleanup rule. Standalone expiry does not clean up an active agent-run sandbox. Terminal run completion or a terminal run record releases it instead.
References: crates/…/plugin.rs• L199-217 crates/…/sandbox_service.rs• L1487-1707
Runtime credential registry
The runtime credential provider issues project and environment service variables for a sandbox that has a project link. The sandbox row is the access boundary. The caller cannot name another project to obtain its variables. Values exist only for the operation that requests them and must not be logged or stored.
The service selects the production environment when present, otherwise the first active environment. It gathers linked services, issues each service's variables, and rejects conflicting variable names rather than choosing one value silently.
References: crates/…/sandbox_runtime.rs• L9-37 crates/…/sandbox_service.rs• L3118-3200 crates/…/sandboxes.rs• L2610-2678
Service restart behavior
Firecracker and microsandbox VMs run as children of the Temps service. On Linux, startup checks whether the service manager will kill those VMs during a restart and warns the operator when the unit needs a different KillMode; the registry then recovers surviving runtimes by sandbox identity rather than trusting the in-memory cache.
References: crates/…/plugin.rs• L162-196 crates/…/plugin.rs• L220-347 crates/…/service_manager.rs• L4-20 crates/…/service_manager.rs• L52-92
Node placement
Placement decides where a new sandbox will run before the service creates its database row and provider runtime. The control plane keeps the API, database, access checks, and node enrollment state. A worker only runs provider actions for sandboxes assigned to it.
Placement policy
The operator allow-list controls which nodes may receive new sandboxes. null allows every node. A list allows only those node IDs. An empty list prevents all new placements. The control plane is node 0 and is shown as control-plane.
The policy affects new placement only. Existing sandboxes stay on their current node. Draining or eviction is needed to remove work from a node. A worker marked temps.sh/role=dedicated remains eligible for a named request but is excluded from automatic placement.
References: crates/…/sandbox_service.rs• L1771-1826 crates/…/placement.rs• L27-91 docs/…/048-multi-node-sandboxes.md• L216-235
Node registration and health
Node registration creates the trusted identity and placement data that later routing uses. A worker proves enrollment with a short-lived token or an allowed legacy token, may complete a pairing, and can receive a per-node certificate for mutual TLS. The control plane validates the worker's addresses and refuses names or addresses that belong to the control plane or another node.
Registration also rate-limits join attempts and rejects unsafe or malformed node addresses before they become routing data. A pairing links the new node to that pairing as one operation. If the link cannot complete, a new registration is undone so the pairing can be retried. A live node cannot silently change its token, address, or WireGuard identity without proof of its current token.
Heartbeats keep node health current and carry capacity, labels, image architecture, and host Docker access grants. They can also report DNS and public-ingress health. Missing optional reports preserve the last known value. Architecture changes are recorded for audit because they affect image placement. A node's host Docker grant narrows placement only when the control plane has also declared that project; a worker cannot create a grant by reporting one.
References: crates/…/nodes.rs• L1155-1525 crates/…/nodes.rs• L1588-1747 crates/…/node_service.rs• L480-1000 crates/…/node_service.rs• L1002-1137
Placement selection
An explicit node request names the control plane, a worker ID, or a worker name. The named node must exist, be allowed, and be ready. An explicit request never falls back to another node. A dedicated worker can therefore serve a workload only when the request names it.
Without a node request, placement uses the control plane when the policy allows it. If the control plane is excluded, it ranks allowed active non-dedicated workers by live sandbox count and then by node ID. It asks candidates whether they can run sandboxes before use and tries at most three automatic candidates. The control plane needs no probe.
flowchart TD
A[Create request] --> B{Explicit node?}
B -->|Yes| C[Check exists, allow-list, and readiness]
C -->|Valid| D[Probe worker if needed]
C -->|Invalid| E[Return typed placement error]
D -->|Ready| F[Pin sandbox to named node]
D -->|Not ready| E
B -->|No| G{Control plane allowed?}
G -->|Yes| H[Use control plane]
G -->|No| I[Rank eligible non-dedicated workers by live sandbox count]
I --> J[Probe up to three workers]
J -->|First ready worker| K[Pin sandbox to worker]
J -->|None ready| E
References: crates/…/sandbox_service.rs• L1795-1826 crates/…/placement.rs• L238-413 crates/…/error.rs• L293-375
Worker eligibility
Only active workers can receive new sandboxes. A worker is also ineligible when it is build-only, has no recent heartbeat, uses a plain HTTP agent address, or is being evicted. A dedicated worker is not ineligible; it is simply reserved for explicit placement. Worker placement also rejects Firecracker and microsandbox requests because those backends are not available on worker nodes yet.
Worker calls use the node's authenticated HTTPS agent path. The control plane supplies the sandbox defaults and routes provider calls to the chosen node. This prevents a worker's local defaults from changing isolation or resource behavior.
References: crates/…/placement.rs• L118-225 crates/…/sandbox_service.rs• L2130-2167 crates/…/node_routing.rs• L35-83 docs/…/048-multi-node-sandboxes.md• L182-214
Node-pinned execution
The sandbox record stores node_id; a null value means the control plane. The routing provider stamps that node into the live handle at create or recovery time. Every handle-based action then follows the handle to its owner, including command execution, file access, stop, start, restart, and destroy.
After a restart, the standalone registry reads the sandbox's node before it tries recovery. Worker sandboxes recover lazily on first use. If the worker is unreachable, the API reports node unavailability instead of treating the sandbox as missing.
References: crates/…/sandbox_service.rs• L2212-2305 crates/…/registry.rs• L328-400 crates/…/node_routing.rs• L78-83 docs/…/048-multi-node-sandboxes.md• L158-180
Node administration
Operators can view placement state, set the allow-list, inspect live sandboxes on a node, and evict a worker's sandboxes. Placement changes and evictions are audited. The placement update must state its intent: null means every node, a list names allowed nodes, and [] blocks all new sandbox creation. Existing sandboxes are not moved by this setting.
The node view is an administrator-wide, paged view of live sandboxes. It includes ownership data while hiding private preview and source details from other users. Eviction is a sensitive administrator action. It blocks new placement on the node while it runs, destroys the rows for the node's sandboxes, and reports whether each container was confirmed removed.
If a worker does not answer, eviction can destroy the sandbox records while marking the containers as unconfirmed. The response includes a node cleanup command for those containers. Sandboxes that could not be destroyed remain retryable, and a later eviction retries only those failures. This lets an operator remove a dead worker from the platform without claiming that an unreachable container was removed.
Drain status reports both remaining deployment containers and live sandboxes. A node can be removed only after its deployment containers are gone and every non-destroyed sandbox has been evicted or destroyed. Removal also clears the node's internal DNS endpoints as part of the same protected operation.
While eviction runs, the node is closed to new placement. Existing sandboxes are not moved by a policy update or a drain; eviction is the explicit removal path.
References: crates/…/placement.rs• L27-143 crates/…/placement.rs• L204-465 crates/…/sandbox_service.rs• L1901-2024 crates/…/placement.rs• L204-465 crates/…/nodes.rs• L2786-3144 docs/…/048-multi-node-sandboxes.md• L343-431
Change checklist
When these files or sections are changed, remember to consider these:
- When the sandbox create or response contract changes, keep the handler DTO, service request, provider create config, snapshot restore path, and worker wire format aligned.
- When a backend is added or removed, update public backend validation, host capability checks, worker restrictions, response values, snapshot support, terminal support, and routing registration together.
- When node placement rules change, update explicit-node errors, automatic candidate ranking, dedicated-node handling, worker probes, placement status reasons, and the node allow-list endpoint together.
- When node enrollment or heartbeat fields change, keep enrollment-token use, certificate checks, address identity checks, architecture matching, and project host-Docker eligibility aligned.
- When a node drain or removal rule changes, keep deployment rescheduling, sandbox eviction, drain status, live-sandbox checks, and node DNS endpoint cleanup aligned.
- When eviction response fields change, keep confirmed destruction, unconfirmed containers, retryable failures, cleanup commands, audit records, and operator permissions aligned.
- When an operation can use a sandbox, decide whether it must wake a workspace and whether it must refresh the idle deadline. Terminal heartbeats are part of the expiry contract.
- When a provider gains or loses a feature, update local routing, worker capability errors, and the snapshot/backend checks so a request does not silently move to another backend or node.
- When handle recovery changes, preserve the
node_idcarried by the sandbox record and route cache misses to that node rather than the control plane. - When a VM backend's process lifetime changes, keep service restart advice, startup handle recovery, liveness reconciliation, and caller-facing recovery guidance aligned.
- When runtime variable issuance changes, keep project ownership, environment selection, name-conflict checks, and secret lifetime in the same contract.
- When snapshot metadata or deletion changes, keep digest checks, shared-artifact reference counts, restore validation, and source-sandbox nulling consistent.
- When API routes or SDK-shaped DTOs change, update the unified OpenAPI path list, native handlers, compatibility adapters, and the Vercel compatibility contract together.
- When a lifecycle result is written after provider work, keep the conditional row update tied to the expected status or activity timestamp so a late operation cannot resurrect a destroyed or resumed sandbox.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| An explicit node is missing, disallowed, offline, or not ready | Create fails with a typed placement error; it does not use another node | Validate the named node and probe it before create |
| The control plane is excluded and every eligible worker probe fails | Create fails after a bounded set of worker checks | Rank candidates and stop after three probes |
| Only dedicated workers are allowed and no request names one | Automatic create fails instead of using a reserved worker | Exclude dedicated workers from automatic ranking and return a dedicated-only placement reason |
| A caller requests Firecracker or microsandbox on a worker | Create fails instead of weakening isolation or moving the sandbox to the control plane | Reject unsupported worker backends before provider creation |
| A requested microsandbox runtime is unavailable on the control plane | Create fails with the host capability reason; it does not silently use Docker | Register only ready backends and check explicit backend support |
| No node reports the image architecture or host Docker grant that a project needs | Create fails with a compatibility or capability conflict instead of using an unsuitable host | Treat architecture and declared host-Docker grants as placement constraints |
| A worker registration uses an unsafe address, claims the control plane's host or mesh address, or claims another node's identity | Registration fails before the node can receive a trusted identity or routing address | Validate addresses and reserve control-plane and node identities |
| A live worker changes its identity without the current token, or a pairing token arrives from the wrong source | Registration fails instead of rebinding a live node or accepting a leaked pairing token | Require proof for live identity changes and bind pairing tokens to their reserved mesh source |
| A worker becomes unreachable during use | The API reports node unavailability instead of recreating or waking the sandbox locally | Keep node_id on the handle and record; route all handle calls to that node |
| A workspace reaches its idle deadline | Compute stops, but later access can wake it and retain its files | Treat workspace wake as part of command, file, and terminal resolution |
| A detached command produces unbounded output | Process output could exhaust control-plane memory | Keep a bounded output tail and stream live lines through the job channel |
| A snapshot is taken from a worker or microsandbox, or restored to a different backend | The operation is rejected before it can alter the sandbox | Check node support, snapshot status, digest, and backend match before scrubbing or restore |
| A Docker snapshot lacks current image or workspace integrity metadata | Restore is rejected as an unsupported legacy artifact instead of risking incomplete workspace state | Require the current companion metadata during restore and create a new snapshot when it is absent |
| A snapshot artifact is shared by more than one ready record | Deleting one record must not break the others | Remove artifacts only after the last ready reference is gone |
| A runtime variable name is issued by two linked services with different values | The request fails rather than returning an ambiguous environment | Reject variable-name conflicts |
| A server restarts with an empty handle cache | Lifecycle or execution calls could drift from the provider state | Recover by sandbox name on the recorded owning node |
| A service restart kills a Firecracker or microsandbox VM | The row may remain visible while its runtime is down until reconciliation or first access reports it | Warn when systemd uses a group-killing mode, then reconcile liveness and expose resume or retry guidance |
| An eviction cannot confirm container removal | The sandbox row is destroyed but its container may still run on the worker | Return an unconfirmed result and provide the node cleanup command |
| An eviction cannot destroy some sandbox rows | Node removal remains blocked until those rows are destroyed | Return retryable failures and run eviction again |
| An operator removes a node that still hosts a live sandbox | Removal fails with a typed conflict instead of re-homing the sandbox to the control plane | Clear node DNS endpoints and count non-destroyed sandboxes while holding the node removal transaction |
| Node removal races with an internal DNS route update | Removal could deadlock or leave a record for the removed node | Delete the node's DNS endpoints inside the removal transaction before deleting the node |
Key files
| File | Why to read it |
|---|---|
| crates/…/sandboxes.rs | Canonical HTTP surface for sandbox create, lifecycle, command, file, runtime, and preview operations. |
| crates/…/mod.rs | Route registration, unified OpenAPI publication, access state, and hiding of managed application workspaces. |
| crates/…/sandbox_service.rs | Main lifecycle rules, idle deadlines, workspace wake behavior, source setup, backend checks, eviction, and placement handoff. |
| crates/…/exec.rs | Foreground and detached command behavior and job output flow. |
| crates/…/fs.rs | File operation contract, directory listing, and path safety rules. |
| crates/…/terminal.rs | WebSocket terminal behavior, tab reattach, limits, and activity heartbeats. |
| crates/…/snapshot_service.rs | Snapshot capture, restore checks, quota, deduplication, integrity metadata, and artifact lifetime. |
| crates/…/registry.rs | Standalone handle cache, liveness checks, recovery, and node-aware provider access. |
| crates/…/row_status.rs | Conditional lifecycle writes that protect newer state from late operations. |
| crates/…/service_manager.rs | Restart warning for VM backends whose lifetime follows the Temps service process. |
| crates/…/placement.rs | Node policy, eligibility, dedicated-node rules, ranking, and worker probes. |
| crates/…/placement.rs | Operator placement API, node inspection, allow-list changes, and eviction behavior. |
| crates/…/nodes.rs | Worker enrollment, heartbeat, drain, node removal, and the node-facing API contract. |
| crates/…/node_service.rs | Node identity, health data, placement capabilities, sandbox-safe removal, and DNS cleanup. |
| crates/…/sandbox_runtime.rs | Provider-neutral contract for issuing project runtime variables. |
| crates/…/vercel_compat.rs | Compatibility guard for SDK routes, request shapes, response envelopes, and OpenAPI coverage. |
| docs/…/048-multi-node-sandboxes.md | Product and operating model for local and worker sandboxes. |
| docs/…/050-microsandbox-sandbox-backend.md | Product position, availability limits, and unsupported features for the experimental microsandbox backend. |
| docs/…/037-sandbox-snapshots.md | Product rules for snapshot capture, restore, storage, and secret scrubbing. |