Introducing a new way to review your PRs.

Read the announcement

superradcompany / microsandbox

🧱 easy, fast, programmable and local-first microVM runtime and library

View on GitHub

27 documents · Updated Nov 23, 2026

docs / sandbox-lifecycle

Sandbox lifecycle

A Microsandbox sandbox is a durable workload that is created from a validated configuration, runs in an isolated guest, accepts work and live changes, and then reaches a terminal state. The lifecycle separates the durable sandbox from each runtime run, so a persistent sandbox can start again while an ephemeral sandbox can be removed safely. See runtime execution for VM orchestration, guest-agent session handling for guest communication, and managed jobs for detached guest processes.

Lifecycle model

The lifecycle model separates the sandbox identity and desired state from the run that temporarily owns the guest. A sandbox record can survive a normal stop, while a run records one boot and its result.

flowchart LR
    A[Configuration] --> B[Create or start]
    B --> C[Ready guest]
    C --> D[Execute and mutate]
    D --> C
    C --> E[Pause or checkpoint]
    E --> C
    C --> F[Drain or stop]
    F --> G[Stopped]
    C --> H[Crashed]
    G --> I{Ephemeral policy}
    H --> I
    I -->|Persistent| J[Retain durable state]
    I -->|Ephemeral| K[Remove runtime state]
    J --> B
StatusMeaning
CreatedThe sandbox exists but has not started.
StartingA start is in progress and the guest is not ready.
RunningA live run owns the sandbox.
DrainingShutdown has started.
PausedThe VM is resident but suspended.
StoppedThe run ended normally or after a requested stop. The sandbox can start again.
CrashedThe run ended after an unexpected failure. Durable state can still be inspected or started when valid.

The runtime also uses control states for host-owned transitions. Running admits normal work. Quiescing and Quiesced establish a safe boundary for pause or capture. Retiring prevents new work while the run closes. A sandbox handle keeps a backend-qualified identity and a status snapshot. A connect-or-start operation connects to a running sandbox, waits for a start in progress, or starts a terminal sandbox. It does not guess how to resume a draining or paused sandbox.

References: crates/…/launch.rs• L456-525 crates/…/control.rs• L383-437 crates/…/executor.rs• L58-68 crates/…/vm.rs• L117-213 sdk/…/handle.rs• L187-240 sdk/…/handle.rs• L566-622

Configuration and creation

Configuration defines the durable workload rather than one command. It selects the guest root, resources, mounts, network behavior, lifetime limits, metrics, startup command, and whether the run is a fresh boot or a restore.

Creation follows this contract:

  1. Validate the configuration and resolve backend-owned values.
  2. Prepare protected sandbox state and any restore inputs.
  3. Reserve the sandbox identity and persist launch state.
  4. Start the runtime and wait for guest-agent readiness.
  5. Publish the usable running state only after activation checks succeed.

The launch contract has explicit Boot and Restore intent. A restore must name a complete recognized source. It cannot silently become a fresh boot or run a new startup command. Compatibility decoding selects an older launch format only when the payload has no explicit modern intent. The legacy launcher remains boot-only and rejects explicit execution, restore, or checkpoint disk-chain requests.

Launch preparation can use private staging space for archive inputs. Abandoned preparation directories are reclaimed only after ownership checks. Existing sandbox storage is admitted through a protected layout record, and incomplete migration or untrusted path state blocks activation instead of being adopted as valid state.

Fresh runs may receive in-process filesystem backends. They belong to the live VM for that run. Full checkpoint restore rejects them because their state is not portable.

References: crates/…/launch.rs• L162-249 crates/…/launch.rs• L226-251 crates/…/launch_staging.rs• L27-95 crates/…/layout.rs• L97-210 crates/…/custom_backends.rs• L41-142

Runtime ownership

One runtime process owns the active run and its host resources. Lifecycle ownership prevents a start, replacement, checkpoint, or cleanup action from changing the same sandbox at the same time.

Each sandbox has an exclusive lifecycle guard for its active runtime generation. The child runtime can inherit that ownership, so closing the launcher does not release it before the runtime exits. Separate ownership boundaries protect transitions and checkpoint publication when those operations outlive the normal runtime owner.

The runtime exposes separate guest and host paths. The guest path carries agent sessions and workload data. The host control path carries lifecycle-sensitive changes such as pause, checkpoint, resource changes, disk changes, secret changes, label changes, and managed-job admission. Restore keeps public paths closed until the captured guest identity and workload cross their activation boundary.

Host mutations use one runtime-owned control authority. Versioned requests identify the runtime boot, can require a known revision, and can be retried by request ID without applying a command twice. A request for an old boot or unexpected revision is refused instead of changing a successor run. Resize observations also belong to the runtime generation and are reported as unknown when host and guest evidence do not match.

The relay keeps client traffic bounded and ordered. It uses client incarnations so a reused client slot cannot receive old traffic. Execution admission and input flow stay under limits so one blocked execution does not stop unrelated lifecycle work.

Public handles also fence operations to the persisted sandbox identity. Refresh reads the current record and rejects a name that now refers to a replacement, so a stale handle cannot silently follow a delete-and-recreate cycle.

References: crates/…/ipc.rs• L78-171 crates/…/control.rs• L34-181 crates/…/executor.rs• L39-68 crates/…/executor.rs• L200-281 crates/…/resize.rs• L16-168 crates/…/relay.rs• L205-244 sdk/…/handle.rs• L421-437 sdk/…/handle.rs• L1056-1117

Execution and mutation

After readiness, the sandbox accepts guest commands, file and stream traffic, host-side changes, resource resizing, and optional detached jobs. These actions affect the current run unless the change plan saves them for the next start or requires a restart. See the runtime execution, guest-agent session handling, and managed jobs pages for focused flows.

Live changes use the same lifecycle authority as start and stop. A label change updates the active configuration only when it still belongs to the expected runtime. A resource change reports both the accepted host target and later guest convergence; missing evidence does not become a false success. A memory decrease is refused when the guest does not report enough free memory for the requested change.

The public modification handle refreshes state before it plans a change and remains bound to the sandbox identity. Resize status and operation waits therefore describe the selected runtime generation rather than an unrelated sandbox that reused the same name.

Startup workload

An optional startup workload begins after the guest agent reports ready. The runtime treats it as complete only after the guest reports an exit or spawn failure. A stream that ends first is a runtime failure, not a successful startup.

If the startup workload fails or a lifetime limit ends the sandbox, the runtime requests guest shutdown and records the matching terminal reason. Idle policy observes guest activity and active sessions rather than heartbeat freshness alone. A missing heartbeat means that the guest has not reported activity yet; it does not by itself stop a busy or still-booting sandbox. The readiness wait owns the separate boot-failure timeout.

The run can retain a bounded host-side exec.log for the primary execution session. It records session output and lifecycle markers for guest start, restore activation, and stop. This capture is best effort, so an unavailable log does not block boot or shutdown.

References: crates/…/startup.rs• L18-119 crates/…/heartbeat.rs• L121-181 crates/…/vm.rs• L1490-1647 crates/…/exec_log.rs• L31-137 crates/…/relay.rs• L113-134

Managed jobs

Managed jobs are detached guest processes that remain addressable after the request that starts them ends. The sandbox keeps job identity, state, exit data, and bounded output history so clients can inspect, read, attach to input, resize a terminal, or send a signal without owning the guest process.

The job lifecycle moves through admission, guest acknowledgement, active I/O, and a terminal result. Admission is tied to the current runtime boot and a command fingerprint. If the guest transport ends without a terminal result, the job becomes Lost. A later runtime marks an active old job as Lost and does not start it again. Completed output remains available from retained history, while active output has a bounded live view. An active attachment can keep the sandbox resident, but it does not change ownership of the current runtime.

The runtime serializes job admission with pause and full capture. Active jobs therefore block a full checkpoint or branch until they finish or stop. If durable output capture fails, the job keeps running and reports the capture cutoff. Later output may remain live-only instead of being presented as durable history.

sequenceDiagram
    participant C as Client
    participant R as Runtime
    participant G as Guest agent
    participant H as Job history
    C->>R: Admit job
    R->>H: Save starting record
    R->>G: Start process
    G-->>R: Started, output, and terminal event
    R->>H: Save state and output
    C->>R: Inspect or control
    R-->>C: State or output page

References: crates/…/jobs.rs• L22-168 crates/…/jobs.rs• L177-257 crates/…/executor.rs• L80-118 crates/…/relay.rs• L237-244

Execution admission

Execution admission protects the shared guest channel before client data reaches it. The runtime reserves a slot for each controlled execution, limits input until the guest confirms delivery, and limits output until the client acknowledges consumption.

The runtime queues input per execution and schedules ready executions in turn. Signals, resize requests, and disconnect cleanup use paths that do not depend on a blocked stdin queue. A terminal guest event releases the execution slot. A disconnect keeps it reserved until guest cleanup is acknowledged. Lifecycle fences and trusted control traffic keep shutdown and other protected work ahead of ordinary payload.

References: crates/…/exec_admission.rs• L92-205 crates/…/exec_admission.rs• L208-260 crates/…/relay.rs• L172-178 crates/…/dispatch.rs• L95-185

Runtime metrics

Runtime metrics provide run-scoped observability without changing durable sandbox state. When enabled, the runtime activates a reserved shared-memory slot and starts sampling after guest-agent readiness. The sampler publishes guest resource and network counters for observers, while lifecycle rows continue through the normal database path.

The sampler follows the live run. It omits host-residency data while the VM is paused and rejects unreliable CPU windows instead of publishing a false rate. Resource resize confirmation and metric publication share an ordering boundary, so an old memory observation cannot overwrite a newer allocation. Exit cleanup releases the slot while preserving the last sample. Setup or VM-entry failure frees the slot instead.

References: crates/…/metrics.rs• L100-242 crates/…/metrics.rs• L286-319 crates/…/metrics_memory.rs• L12-75 crates/…/vm.rs• L915-933

Pause, checkpoint, and branch

Resident pause suspends the same VM and its processes. Resume returns to that VM without creating a new sandbox. A checkpoint captures a durable restore point, while a local branch creates an independent child from captured live state.

The capture boundary quiesces guest work before it publishes state. It captures guest execution, device, memory, disk, mounted-storage, and selected configuration evidence from the same boundary. Publication is root-last, so a visible checkpoint root represents a complete generation. The source resumes only after recovery is safe.

Restore validates the complete checkpoint closure before entering the VM. It checks captured geometry and required network identity, reconstructs host-owned resources, and keeps endpoints unpublished until activation completes. A captured gateway identity must be retained for a networked restore. A captured TLS interception identity must match the destination proxy; host-managed credentials can be sealed for an authorized portable capture but custom credentials are not copied implicitly.

Checkpoint disk state is durable and forward-moving. Root-disk growth records an unfinished target until the guest filesystem and disk state confirm completion. Sealed disk generations can be compacted without changing the guest device identity. A failed rebind keeps the source paused or retains the old chain rather than deleting uncertain data.

sequenceDiagram
    participant C as Client
    participant R as Runtime
    participant G as Guest
    participant S as Durable state
    C->>R: Pause, checkpoint, or branch
    R->>G: Freeze or quiesce
    G-->>R: Acknowledge guest state
    R->>S: Capture and publish state
    R-->>C: Operation result
    R->>G: Resume source when safe

References: crates/…/control.rs• L34-181 crates/…/executor.rs• L316-360 crates/…/coordinator.rs• L184-246 crates/…/restore.rs• L208-300 crates/…/disk.rs• L147-211 crates/…/network.rs• L9-75 crates/…/tls_receipt.rs• L122-170

Configuration evidence

Configuration evidence records what a runtime actually activated or observed. It is separate from desired configuration, because desired values can change while a run is active and cannot prove what the guest used.

The runtime keeps host-private retention records tied to the catalog, sandbox, run, and runtime boot. A start is unconfirmed until guest activation succeeds. A live mutation is unconfirmed until its effect is published. Checkpoint capture selects confirmed evidence under runtime ownership and rechecks it before publication. Missing or conflicting evidence stays unknown rather than becoming a default.

Sandbox handles expose the stored configuration separately from the active configuration snapshot. Local handles can report the persisted configuration and, when recorded, the configuration used by the active VM. Cloud handles preserve the service's inspection JSON and rebuild execution settings from that projection; they do not pretend that the cloud response is a local SandboxConfig.

Checkpoint receipts can include selected startup information, mounted-storage observations, script backing, execution limits, and resource capacity when the caller and runtime negotiated that evidence. Portable export must project this private evidence through saved-configuration rules. Raw host paths, credentials, and unverified desired values do not cross that boundary.

Restored command bindings and execution limits are destination-owned admission guards. They are installed with the destination reservation and must be admitted by a runtime that can enforce them before a new run is created. This prevents an older or incomplete runtime from starting a restored workload with weaker behavior.

References: crates/…/retention.rs• L46-140 crates/…/init.rs• L36-84 crates/…/live.rs• L35-190 crates/…/capture.rs• L40-113 crates/…/command_bindings.rs• L13-72 crates/…/restored_exec_limits.rs• L10-64 sdk/…/handle.rs• L252-300 sdk/…/handle.rs• L724-757

Shutdown and terminal state

Shutdown moves a running sandbox through draining before it becomes stopped or crashed. Graceful shutdown asks the guest to close work and flush state. Force shutdown uses the host runtime path and then observes the terminal result.

The SDK separates requesting shutdown from waiting for convergence. A graceful stop can wait without a built-in deadline or use a caller-supplied budget; expiry does not force termination. A kill requests force termination and can wait for observed stopped state. Restart first converges an active run to a terminal state, then starts the same sandbox again. Paused sandboxes are not silently treated as restartable.

The runtime records the run outcome separately from the durable sandbox. Before it publishes a restartable terminal state, it removes runtime endpoints and releases host resource ownership. It records structured startup or relay failures before the process exits, so callers receive a cause instead of only a generic process failure. The execution log receives a final stop marker during this transition.

The exit observer performs the final run update and triggers ephemeral cleanup. It also releases CPU placement, writeback pressure, metrics ownership, and host-owned credentials. If the runtime dies before the observer completes, startup maintenance reconciles the stale active row and retries cleanup. Endpoint cleanup covers current and historical compatibility endpoints. If a liveness probe cannot decide within its short budget, maintenance keeps the artifacts and status for a later retry rather than treating uncertainty as proof that the runtime is dead.

References: crates/…/vm.rs• L903-1100 crates/…/vm.rs• L1360-1555 crates/…/ipc.rs• L359-435 crates/…/maintenance.rs• L175-300 crates/…/tls_storage.rs• L17-40 sdk/…/handle.rs• L805-925

Durable state and cleanup

Persistent sandboxes keep their configuration and storage after a run ends. A later start reuses that durable state. Removal is a separate operation for a terminal sandbox.

Ephemeral sandboxes are eligible for removal after a terminal run. Cleanup removes runtime artifacts and the sandbox directory before it conditionally removes the database row. It rechecks terminal state and lifecycle ownership so stale cleanup cannot remove a successor run. Missing files or rows count as already complete. Runtime endpoint removal is ownership-aware and avoids replacing or following unrelated filesystem entries.

The public remove operation requires a sandbox to be stopped first. Destroy combines stop or kill convergence with removal, while a local ephemeral sandbox that disappears during shutdown is treated as already removed. A wait for stopped state also treats that expected ephemeral disappearance as successful, but a replacement identity remains an error.

Protected layout migration and archive preparation are crash-resumable. A failed migration remains identifiable as incomplete. A failed archive preparation is reclaimed only when its owner is gone. Memory cache pruning removes only recognized published RAM files after ownership revalidation; it does not remove staging data, sandbox disks, or durable snapshot objects.

Managed-job history follows the sandbox directory but remains outside the guest-visible runtime area. It uses durable metadata and bounded rotating output, so an incomplete job record does not start a new job by accident. A history read failure disables managed jobs for that run but does not prevent the ordinary sandbox from booting.

Startup maintenance is best effort and bounded. A short database lease lets one runtime sweep stale active rows and terminal ephemeral rows, while other runtimes skip the sweep. A failed directory removal leaves the row for a later retry.

References: crates/…/maintenance.rs• L222-300 crates/…/maintenance.rs• L343-474 crates/…/cache_storage.rs• L93-184 crates/…/launch_staging.rs• L27-95 crates/…/jobs.rs• L177-231 crates/…/jobs.rs• L48-167 sdk/…/handle.rs• L928-1025 sdk/…/handle.rs• L953-979

Backend lifecycle differences

The lifecycle model is shared across backends, but ownership differs. A local backend owns a runtime process, host files, and local endpoints. A cloud backend delegates the active run and destruction to its service.

Lifecycle concernLocal backendCloud backend
Active runOwned by a local runtime process.Owned by a cloud worker.
StartReuses local durable state and storage.Sends a request to the cloud service.
Stop and cleanupRemoves local runtime artifacts and eligible records.Uses cloud lifecycle and destroy requests.
Pause and branchUses local support when available.Requires a cloud equivalent.
In-process filesystem backendsValid for a fresh local run while the VM owns them.Not part of the portable restore contract.

The handle follows these ownership boundaries. Local connect performs an eager agent handshake and rechecks the runtime generation after the handshake. Cloud connect rebuilds a backend-bound live handle without opening an agent WebSocket until an operation needs one.

References: crates/…/launch.rs• L162-249 crates/…/maintenance.rs• L343-474 crates/…/vm.rs• L123-221 crates/…/custom_backends.rs• L119-142 sdk/…/handle.rs• L624-759

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep explicit boot and restore intent aligned across launch encoding, compatibility decoding, protected-layout admission, and runtime validation. Unsupported restore input must fail rather than become a fresh boot.
  • Keep launch staging, migration records, storage ownership, and cleanup aligned. A crash must leave state that the next operation can classify and safely resume or remove.
  • Keep lifecycle locks, transition ownership, snapshot-lineage ownership, and terminal cleanup aligned. A new runtime or capture publisher must not overlap a live owner or be reaped as abandoned.
  • Keep canonical, compatibility, and historical endpoint paths aligned across publication, liveness checks, and cleanup. A client must not connect to an old path that cleanup removed too early, and cleanup must not replace a live endpoint.
  • Keep runtime boot identity, request deduplication, expected revision checks, resize generations, and lifecycle transitions aligned. A retry must not apply a command to a successor process or hide a conflicting command.
  • Keep readiness, activation evidence, endpoint publication, startup completion, and terminal failure reporting aligned. A caller must not use a guest before it is ready or treat unconfirmed configuration as active evidence.
  • Keep execution admission, input queues, output acknowledgements, and disconnect cleanup aligned. A blocked execution must not consume another execution's allowance or keep a retired client slot alive.
  • Keep managed-job boot fencing, command fingerprints, admission history, and active-job ownership aligned. A job must not replay into a new run or enter an unsafe capture.
  • Keep checkpoint quiescing, root-last publication, disk-chain journals, restore geometry, and network identity checks aligned. A visible checkpoint must be complete and a restore must recreate the captured guest identity.
  • Keep host-managed TLS identity, checkpoint sealing, import authorization, and terminal credential cleanup aligned. A custom or mismatched signer must not be copied into a restored sandbox.
  • Keep command-binding and restored-execution-limit guards in the same destination reservation and run-admission transaction. A downgrade must not start a workload without the required enforcement.
  • Keep endpoint removal and host lease release ahead of terminal-state publication. A restartable row must not still point to resources owned by the old run.
  • Keep ephemeral cleanup conditional on terminal state and lifecycle ownership. Maintenance must not remove a replacement sandbox.
  • Keep custom filesystem ownership and restore admission aligned. A backend that cannot be recreated from captured state must fail before restore begins and remain owned by the live VM on a fresh run.
  • Keep job metadata publication and bounded output rotation recoverable. A partial write must remain readable without allowing a resumed writer to create a sequence gap.
  • Keep metrics-slot reservation, activation, readiness, sampling, resize confirmation, and release aligned. A failed start must not leave a reserved slot unavailable, and a later run must not inherit an old run's active sampler.
  • Keep execution-log session selection, lifecycle markers, JSON Lines fields, and rotation limits aligned. A log change must not change which session is captured or turn capture failure into a sandbox lifecycle failure.
  • Keep handle identity checks, status refresh, connect behavior, and stop or destroy convergence aligned. A stale handle must not follow a replacement, and a timeout must not be mistaken for a cancelled lifecycle request.

Important failure modes

TriggerConsequenceGuard
Restore intent or its source is incompleteThe runtime could start a different workload.Launch validation requires matching explicit intent and restore data.
Protected layout migration is incomplete or its host binding changedThe runtime could adopt the wrong disk or guest-visible state.Layout admission keeps a durable preparation record and refuses mismatched state.
A second lifecycle owner starts while another runtime generation is liveTwo processes could mutate or clean the same sandbox.The per-sandbox lifecycle guard is exclusive and can be inherited by the child runtime.
A control request names an old runtime boot or revisionA caller could mutate a successor run or overwrite a newer lifecycle decision.The control executor fences boot identity and expected revision before execution.
Guest readiness or activation evidence ends with a failureThe caller could use an unready guest or receive false active configuration.Readiness and retention confirmation are separate gates before publication.
Startup output ends before exit or spawn failureAn incomplete startup command could look successful.The startup session requires a terminal guest event.
A runtime endpoint is busy, malformed, or not reachableCleanup could remove a live runtime or retain stale artifacts forever.Endpoint probes cover known paths and retain uncertain ownership after the bounded probe.
Controlled execution exceeds input or output allowanceThe shared guest channel could be exhausted.Admission tracks per-execution limits and replenishes them only on acknowledgements.
Client disconnects before guest cleanup acknowledgementA reused client slot could receive old execution traffic.Client incarnations and disconnect acknowledgement quarantine the slot.
Managed job history is active when a runtime restartsThe job could remain falsely active or run again.Recovered active records become Lost; launch history prevents silent replay.
A full capture starts while a managed job is activeThe restored process could lose its host-side input or control owner.The runtime refuses checkpoint and branch admission until active jobs end.
Checkpoint publication or disk rollover fails after quiescingThe source or its durable chain could be left in an unsafe state.The coordinator publishes root-last and records whether the source must stay paused.
A restored network or TLS identity does not match the captureThe guest could use a different virtual gateway or trusted signer.Restore validates captured network evidence and the destination proxy identity.
A restored sandbox has unadmitted command bindings or execution limitsAn older runtime could start it without required controls.Destination-owned run guards allow admission only after the runtime opens the required permits.
Metrics activation fails after a slot is reservedThe sandbox loses live metrics and the slot could remain unavailable to other sandboxes.Runtime releases the reservation immediately and does not start the sampler.
Runtime dies before exit cleanupActive rows or ephemeral files could remain.Bounded startup maintenance reconciles stale rows and retries cleanup.
Cleanup sees a live owner or successor transitionThe successor sandbox could lose its files or endpoints.Cleanup acquires lifecycle ownership and rechecks terminal state before deletion.
A custom backend is supplied during full restoreThe restored VM could lack a filesystem that the source used.VM validation rejects custom backends before checkpoint restore.
Job output write fails during an append or rotationLater output could create a gap or corrupt retained history.The writer closes permanently and readers keep the valid retained prefix.
Execution-log storage cannot be opened or writtenSession output or lifecycle markers are missing, but the sandbox can still run and stop.Log capture is best effort and uses bounded rotating storage.
A stale handle refreshes after the sandbox name is reusedAn operation could target a replacement sandbox.Backend-qualified identity checks return SandboxReplaced instead of rebinding the handle.
Graceful stop reaches its wait budgetThe caller may report a timeout while the delivered shutdown continues.Timeout bounds observation and does not force termination or undo the request.
Connect or start sees draining or paused stateThe caller could attach to an unsafe transition or misread a paused VM as stopped.Lifecycle actions reject those states until an explicit supported transition occurs.

Key files

FileWhy to read it
crates/…/launch.rsDefines the SDK-to-runtime launch contract and the boot-versus-restore boundary.
crates/…/launch.rsDefines current and previous launch decoding and the boot-only legacy entry-point boundary.
crates/…/ipc.rsDefines per-sandbox runtime ownership, endpoint publication, liveness checks, and cleanup of current and historical IPC paths.
crates/…/control.rsDefines the host control contract for pause, checkpoint, branch, resize, disk, secret, and label changes.
crates/…/executor.rsShows serialized host mutations, runtime fencing, deduplication, pause state, and capture admission.
crates/…/coordinator.rsExplains the same-epoch capture boundary and durable checkpoint publication.
crates/…/restore.rsShows checkpoint validation and the activation boundary for a restored guest.
crates/…/layout.rsDefines protected sandbox storage admission and crash-resumable layout preparation.
crates/…/disk.rsDefines durable root-disk chains, growth, rollover, and compaction.
crates/…/network.rsDefines captured guest network identity required for safe restore.
crates/…/tls_identity.rsDefines host-owned sandbox TLS identity creation and authorized child inheritance.
crates/…/tls_receipt.rsDefines sealed TLS credentials for authenticated checkpoint capture and import.
crates/…/retention.rsDefines private last-active evidence and ownership across start, mutation, capture, and stop.
crates/…/capture.rsDefines checkpoint configuration receipts and evidence from the capture boundary.
crates/…/command_bindings.rsDefines destination guards for deferred command values during restored runs.
crates/…/restored_exec_limits.rsDefines destination guards for retained execution limits.
crates/…/vm.rsShows run startup, guest readiness, endpoint publication, resource ownership, exit recording, and cleanup.
crates/…/relay.rsExplains guest-agent relay ownership, restore activation, client cleanup, and bounded transport.
crates/…/exec_admission.rsDefines execution limits and fair input admission on the shared guest channel.
crates/…/jobs.rsDefines managed-job admission, detached I/O, attachment leases, and terminal recovery.
crates/…/jobs.rsDefines durable managed-job metadata and bounded output history.
crates/…/metrics.rsShows run-scoped metric sampling and pause-aware publication.
crates/…/maintenance.rsDefines stale-run repair, ephemeral cleanup, and retry-safe maintenance.
sdk/…/handle.rsDefines the public sandbox handle, identity fencing, connect-or-start behavior, and stop, restart, and destroy convergence.