Introducing a new way to review your PRs.

Read the announcement

arcboxlabs / arcbox

Run AI agents on real and isolated machines — own kernel, filesystem, and network — with <100ms boot. Local first, OCI compatible, pure Rust.

View on GitHub

32 documents · Updated Nov 6, 2026

docs / engine-orchestration

Engine orchestration

The ArcBox engine orchestration layer turns workload requests into managed Linux environments. It coordinates the host VM, guest agent, workload runtime, virtual machines, images, snapshots, storage, and network state so callers can use one lifecycle instead of managing each resource alone.

System boundary

The arcbox-engine crate is an embeddable, daemon-free coordination layer. It owns machine and VM state, guest-agent access, persistence, lifecycle events, and the System VM lifecycle. A higher layer supplies product policy and connects the engine to container and API services. engine/…/README.md• L1-19, engine/…/lib.rs• L1-30

Host and guest roles

The host runs a System VM that provides the guest environment for container work. The guest agent is the control boundary: host code uses it to check readiness and request guest services, while the guest-side runtime manages isolated workload environments inside the System VM. engine/…/agent_client.rs• L1-9, engine/…/agent_client.rs• L599-674

The boundary keeps host VM lifecycle separate from workload lifecycle. The host first proves that the System VM and its agent are usable. It then uses agent operations for runtime readiness, workload control, filesystem access, port forwarding, Kubernetes, and image or container filesystem lookup. engine/…/agent_client.rs• L1040-1120, engine/…/agent_client.rs• L1246-1413

References: engine/…/agent_client.rs• L1-9 engine/…/agent_client.rs• L599-674 engine/…/agent_client.rs• L1040-1120

Error contract

The engine exposes one error boundary for host, VMM, snapshot, image, network, persistence, guest-agent, and transport failures. Higher layers can preserve common error meaning while mapping guest status codes and platform failures to their own API contract. engine/…/error.rs• L1-109

Platform support is a distinct outcome from a temporary boot failure. The lifecycle can retry recoverable start errors, but it reports missing host virtualization support without delaying the caller with retries. engine/…/error.rs• L101-109, engine/…/boot.rs• L330-395

References: engine/…/error.rs• L15-73 engine/…/error.rs• L101-125 engine/…/boot.rs• L351-395

Orchestration composition

The composing runtime joins the engine with the network, image, snapshot, and computer-runtime subsystems. The engine supplies a ready guest and stable control paths. The runtime and guest services turn that foundation into workload operations. app/…/runtime.rs• L166-299, computer/…/sandbox.rs• L96-224

The main workload path crosses two VM layers.

flowchart LR
    Request[Workload request] --> Core[Core runtime]
    Core --> Ready[System VM readiness]
    Ready --> Machine[Machine manager]
    Machine --> HostVMM[Host VMM]
    HostVMM --> Guest[Linux guest]
    Core --> Agent[Guest-agent control]
    Agent --> Runtime[Guest workload runtime]
    Runtime --> Workload[Isolated workload VM]
    Runtime --> State[Images and snapshots]

References: app/…/runtime.rs• L211-299 engine/…/machine.rs• L632-877 computer/…/sandbox.rs• L96-224

Subsystem relationships

The orchestration layer assigns a clear role to each subsystem. Core chooses and exposes the service path. The engine manages the host machine. The guest runtime manages workloads. Virtualization provides execution. Images provide boot input. Snapshots provide reusable state.

Core coordination

arcbox-core is the product composition point above the engine. It applies user settings to the System VM lifecycle and connects the guest agent to container, image, network, Kubernetes, and port services. This keeps product policy outside the platform-neutral engine. app/…/runtime.rs• L166-299, app/…/runtime.rs• L394-440

Core-facing operations use a named machine or the System VM lifecycle as their owner. That ownership lets readiness, guest connections, routes, and cleanup follow the VM that created them. app/…/runtime.rs• L663-755, app/…/sandbox_host.rs• L11-78

References: app/…/runtime.rs• L166-299 app/…/runtime.rs• L394-440 app/…/sandbox_host.rs• L11-78

Runtime coordination

The computer runtime is the guest-side workload coordinator. It gives each workload one managed scope for its VM, network identity, writable rootfs state, lifecycle record, snapshot state, and events. Callers use the manager's lifecycle contract instead of coordinating those resources directly. computer/…/sandbox.rs• L79-124, computer/…/lifecycle.rs• L27-52

The guest manager uses the engine's agent client for create, run, checkpoint, pause, resume, stop, remove, file, and execution actions. The engine does not decide workload policy; it provides the transport and the host VM guarantees that make those actions possible. engine/…/agent_client.rs• L1246-1413, engine/…/agent_client.rs• L1449-1909

References: computer/…/sandbox.rs• L79-124 computer/…/lifecycle.rs• L27-52 engine/…/agent_client.rs• L1246-1413

Virtualization layers

The host VM manager turns a machine configuration into a live VMM run. It attaches boot devices, shared directories, networking, vsock, and optional nested virtualization. The machine manager adds names, addresses, persistence, readiness, and host ownership around that VM. engine/…/vm.rs• L25-48, engine/…/vm.rs• L183-312, engine/…/machine.rs• L437-563

The selected backend is part of machine configuration and takes effect on the next start. The lifecycle can choose the backend that the host can run, including a QEMU fallback on hosts without the required hardware support. Backend-specific features are applied only when the selected backend supports them. engine/…/vm.rs• L120-159, engine/…/actor.rs• L194-205, engine/…/boot.rs• L330-349

The System VM is allowed to host nested workload VMs. The guest runtime receives the workload VM capability through its environment, so the workload flow stays the same while the concrete virtualization backend can vary. engine/…/vm.rs• L205-248, computer/…/environment.rs• L24-57

Each start creates a VmIncarnation, which means one physical run of a VM entry. Operations that connect, publish addresses, stop, remove, or transfer VM-owned resources must use the expected incarnation. This prevents a late result from an old run from changing a replacement run. engine/…/incarnation.rs• L5-45, engine/…/incarnation.rs• L75-197

References: engine/…/vm.rs• L25-48 engine/…/vm.rs• L251-348 engine/…/incarnation.rs• L5-45 engine/…/incarnation.rs• L103-197

Agent control

The agent client is the host-to-guest control plane. It admits a connection only after a protocol handshake, maps framed requests to guest actions, and supports both short requests and long-lived streams. The wire format carries a trace identifier so one host operation can be followed across the boundary. engine/…/agent_client.rs• L89-99, engine/…/agent_client.rs• L244-315, engine/…/wire.rs• L7-77

The client rejects an agent below the minimum supported protocol. A newer agent is allowed when the protocol remains additive. This makes readiness a compatibility check as well as a transport check. engine/…/agent_client.rs• L408-485

Long operations use a dedicated connection and a cancellation token. Cancellation closes the connection and waits for blocking work to finish before the owner can retire the VM. This rule applies to readiness watches, storage checks, Kubernetes polling, web-service queries, trust updates, and similar guest work. engine/…/cancellation.rs• L27-129, engine/…/retained_session.rs• L18-117

References: engine/…/agent_client.rs• L89-99 engine/…/agent_client.rs• L408-485 engine/…/cancellation.rs• L27-129 engine/…/wire.rs• L7-77

Guest-owned sessions

Some guest services need an exclusive, retained connection rather than one request at a time. The machine web and instance authority sessions open that connection, admit the guest protocol, send ordered full replacements, and require an acknowledgement for the exact revision sent. Their coordinators observe idle connection failure and join their transport workers during shutdown. engine/…/machine_web.rs• L25-86, engine/…/machine_web.rs• L89-147, engine/…/instance_authority.rs• L25-80, engine/…/instance_authority.rs• L84-140

Instance authority is available only after a compatible handshake and exclusive open. Each replacement waits for the guest acknowledgement with the same authority revision. The session closes on an unexpected frame, malformed response, wrong revision, timeout, peer EOF, or cancellation, and its coordinator joins both transport workers before it completes. engine/…/instance_authority.rs• L32-80, engine/…/instance_authority.rs• L84-140, engine/…/retained_session.rs• L90-115

Guest trust and guest web observation use dedicated cancellable requests. The host reports success only for the requested trust action or a valid response from the guest. A configuration acknowledgement means the guest accepted the policy; it does not by itself prove that host routes are installed. engine/…/guest_trust.rs• L14-64, engine/…/web_services.rs• L14-83, engine/…/machine_web.rs• L42-51

References: engine/…/machine_web.rs• L25-147 engine/…/instance_authority.rs• L25-140 engine/…/tests.rs• L80-135 engine/…/guest_trust.rs• L14-64

System VM lifecycle

The System VM lifecycle hides create, boot, readiness, idle, stop, restart, and recovery work from workload callers. Its facade sends commands to one actor. The actor publishes state through a watch channel and runs slow VM or agent work in separate tasks so force stop can preempt it. engine/…/mod.rs• L16-29, engine/…/mod.rs• L124-280, engine/…/actor.rs• L338-472

Readiness sequence

ensure_ready is the main entry point for container operations. It checks storage admission, creates or starts the System VM when needed, waits for a compatible guest agent, and returns the guest CID. Boot also aligns the machine with the desired boot assets, starts host route reconciliation, and records guest time and bridge address before readiness is published. engine/…/mod.rs• L333-347, engine/…/actor.rs• L676-715, engine/…/boot.rs• L222-291

Agent readiness is distinct from a live VM process. The boot path performs a protocol ping and readiness watch, while guest runtime readiness remains a later contract. engine/…/boot.rs• L659-859, engine/…/agent_client.rs• L660-774

The readiness sequence is shown below.

sequenceDiagram
    participant Caller
    participant Lifecycle as System VM lifecycle
    participant Machine as Machine manager
    participant Agent as Guest agent
    participant Runtime as Guest runtime

    Caller->>Lifecycle: ensure_ready()
    Lifecycle->>Machine: Check storage and create or start VM
    Machine-->>Lifecycle: Physical run started
    Lifecycle->>Agent: Protocol ping and readiness watch
    Agent-->>Lifecycle: Compatible and ready
    Lifecycle-->>Caller: Guest CID
    Caller->>Agent: Ensure guest runtime
    Agent->>Runtime: Start or check services
    Runtime-->>Caller: Workload path available

References: engine/…/mod.rs• L333-347 engine/…/boot.rs• L222-291 engine/…/boot.rs• L687-859 engine/…/agent_client.rs• L660-774

Lifecycle states

The lifecycle state describes whether the System VM can serve work. Running and Idle are ready states. Creating, Starting, Stopping, and Failed are transition or blocked states. Callers can observe these states without waiting for the actor. engine/…/types.rs• L12-69, engine/…/mod.rs• L310-330

Activity keeps a ready VM active. Short requests refresh the activity time. Long requests hold the VM active until they finish. Kubernetes can also hold the VM active. The lifecycle therefore does not reclaim a guest while a request or cluster depends on it. engine/…/mod.rs• L421-480, engine/…/actor.rs• L876-890

References: engine/…/types.rs• L12-69 engine/…/mod.rs• L421-480 engine/…/actor.rs• L876-890

Stop ownership

Stopping is one owned operation for one physical VM run. A graceful stop can move to one forced takeover, but concurrent callers cannot stop different runs under the same name. If the run remains alive after a failed stop, the engine restores admission and publishes the cancellation outcome. engine/…/stop_owner.rs• L5-28, engine/…/stop_owner.rs• L30-185, engine/…/machine.rs• L1587-1642

Before teardown, the engine waits for host work to release its HostHold. This protects host operations such as machine-root exports from losing their guest while they still hold resources. The wait is bounded; a timeout fails the stop before VM teardown. engine/…/host_hold.rs• L1-13, engine/…/machine.rs• L587-621, engine/…/machine.rs• L1587-1626

References: engine/…/stop_owner.rs• L30-185 engine/…/host_hold.rs• L38-89 engine/…/machine.rs• L1587-1642

Recovery and restart

Boot retries use a bounded recovery policy. A guest-requested reset reboots the VM in place and then repeats agent readiness. A failed start rolls the machine back to a retryable state, while a guest that stops before readiness produces a boot failure instead of a long wait. engine/…/boot.rs• L330-395, engine/…/boot.rs• L659-859, engine/…/actor.rs• L893-919

The actor tags each boot, stop, reboot, or removal task with an epoch. Force stop can abort the current task, and the actor ignores any completion from that superseded task. This keeps an old completion from changing the state of a later boot. engine/…/actor.rs• L94-107, engine/…/actor.rs• L762-840

Machine records survive process restarts. A record that was last saved as running is treated as interrupted because its old physical run no longer exists. The manager reloads it as stopped and rebuilds a live VM entry before the next start. engine/…/persistence.rs• L86-135, engine/…/machine.rs• L478-546

References: engine/…/boot.rs• L183-219 engine/…/boot.rs• L330-395 engine/…/actor.rs• L762-840 engine/…/actor.rs• L893-919 engine/…/persistence.rs• L86-135

Storage protection

Storage maintenance reserves the System VM and blocks normal lifecycle mutations. The reservation remains active while the data and metadata disk pair is preserved, checked, or repaired. A durable hold remains after a failed recovery so a restart cannot boot against storage that still needs verification. engine/…/maintenance.rs• L9-25, engine/…/maintenance.rs• L79-149, engine/…/boot.rs• L412-435

The recovery flow checks admission, stops or waits for the System VM, preserves its configuration, and starts it again only after the recovery owner is ready. The engine coordinates this order but does not itself repair filesystems or decide whether a storage check passed. engine/…/storage.rs• L13-106, engine/…/storage.rs• L7-54, engine/…/storage_check.rs• L19-105

References: engine/…/maintenance.rs• L79-169 engine/…/storage.rs• L13-106 engine/…/boot.rs• L412-435 engine/…/storage_check.rs• L19-105

Workload lifecycle

Workload lifecycle operations run in the guest after the System VM is ready. The guest manager uses the agent to coordinate workload VM, network, rootfs, snapshot, and record state while the engine protects the host-side VM boundary.

Workload creation

Creating a workload reserves its identity and durable cleanup state before boot. The caller can receive a creation result before the guest finishes booting. Later state and events report whether the workload became usable or failed. computer/…/lifecycle.rs• L40-52, computer/…/lifecycle.rs• L94-139

The boot path prepares the nested VM, rootfs, network, and readiness channel in an order that leaves a cleanup path for each owned resource. The guest agent must answer before the workload is usable. computer/…/boot.rs• L45-166

References: computer/…/lifecycle.rs• L40-52 computer/…/lifecycle.rs• L94-139 computer/…/boot.rs• L45-166

Workload execution

Once a workload is ready, the agent provides process execution, file access, directory watch, and port-wait operations. A process can exit without ending the workload scope. The workload remains available until an explicit stop, removal, or lifetime rule ends it. engine/…/agent_client.rs• L1449-1826, computer/…/lifecycle.rs• L16-31

Host networking and guest networking share the workload identity. Host DNS and port state are removed with the matching cleanup generation so an old workload cannot affect a new incarnation with the same name. app/…/sandbox_host.rs• L11-78, engine/…/agent_client.rs• L1264-1296

References: engine/…/agent_client.rs• L1449-1826 app/…/sandbox_host.rs• L11-78 computer/…/lifecycle.rs• L16-31

Workload suspension

Pausing preserves workload state while releasing live VM and network resources. A checkpoint captures the guest state before release. Resume rebuilds the live workload around the retained state and returns the network information needed for host re-registration. engine/…/agent_client.rs• L1316-1357, computer/…/checkpoint.rs• L112-156, computer/…/pause.rs• L39-51, computer/…/resume.rs• L31-52

References: engine/…/agent_client.rs• L1316-1357 computer/…/checkpoint.rs• L112-156 computer/…/resume.rs• L31-52

Workload termination

Stopping releases live workload resources while keeping durable state for inspection or later removal. Removal also deletes retained pause data and the workload directory. Cleanup tickets and generation checks keep host-side cleanup aligned with guest-side cleanup. engine/…/agent_client.rs• L1376-1413, engine/…/agent_client.rs• L1828-1844, computer/…/release.rs• L31-69

References: engine/…/agent_client.rs• L1376-1413 engine/…/agent_client.rs• L1828-1844 computer/…/release.rs• L31-69

Image and snapshot roles

Images describe bootable input. Snapshots preserve workload state. The orchestration layer connects them so a workload can cold-boot from an image, resume from a checkpoint, or use a matching warm state.

Machine images

The image subsystem resolves a distribution and release to a published version and verifies the downloaded rootfs before publication. The machine manager then uses that trusted rootfs as a read-only boot input. engine/…/machine_image.rs• L61-124, engine/…/machine_image.rs• L268-331, engine/…/machine.rs• L632-747

System VM boot assets are separate from workload images. They provide the kernel, guest rootfs, and runtime inputs needed to make the System VM usable. The lifecycle resolves those assets for both creation and drift checks, so a changed desired boot does not silently reuse an old machine record. engine/…/boot.rs• L222-291, engine/…/boot.rs• L436-657, engine/…/types.rs• L213-252

References: engine/…/machine_image.rs• L61-124 engine/…/machine.rs• L632-747 engine/…/boot.rs• L222-291 engine/…/boot.rs• L436-657

Snapshot lineage

The snapshot subsystem records ownership, VM shape, rootfs source, and network restore data with each saved state. Publication is complete before a snapshot becomes visible, so readers see a usable snapshot or no snapshot. engine/…/snapshot.rs• L34-80, engine/…/snapshot.rs• L206-217

Snapshot lineage also protects the source image used by restore. That relationship prevents cache cleanup from replacing image bytes that saved guest state still needs. engine/…/snapshot.rs• L459-490

References: engine/…/snapshot.rs• L34-80 engine/…/snapshot.rs• L206-217 engine/…/snapshot.rs• L459-490

Warm starts

The workload runtime can restore a matching snapshot instead of booting from zero. Matching uses the effective boot shape and input content. A mismatch falls back to a cold boot. A successful cold boot can publish a state for later reuse. computer/…/warm.rs• L1-15, computer/…/lifecycle.rs• L197-275

Templates make warm reuse durable. A template version can point to a rootfs and an optional pre-warmed snapshot. The runtime uses that state only when its boot assumptions match the new workload. engine/…/template_catalog.rs• L1-16, computer/…/templates.rs• L151-228

References: computer/…/warm.rs• L1-15 computer/…/lifecycle.rs• L197-275 engine/…/template_catalog.rs• L1-16

Persistence and transfer

Persistence gives the engine a durable record of machine ownership and configuration. Transfer and cloning reuse that record with a stopped data disk while keeping the boot image shared and read-only.

Machine records

The persistence layer stores machine configuration, state, addresses, mounts, backend choice, and web policy. Writes are serialized and replaced as a unit so concurrent field updates do not silently overwrite each other. engine/…/persistence.rs• L15-79, engine/…/persistence.rs• L195-235, engine/…/persistence.rs• L293-323

On reload, the manager rebuilds VM entries from those records. A previously running record becomes stopped because the old process is gone. This gives lifecycle recovery a safe starting point. engine/…/persistence.rs• L86-135, engine/…/machine.rs• L478-546

References: engine/…/persistence.rs• L15-79 engine/…/persistence.rs• L86-135 engine/…/persistence.rs• L195-235

Machine cloning

A stopped distro machine can be cloned from its writable data disk. The rootfs remains shared, while the clone receives a new machine identity, hostname, VM identity, and record. A running machine cannot be cloned because its guest may still have unwritten state. engine/…/clone.rs• L1-15, engine/…/clone.rs• L29-82

References: engine/…/clone.rs• L1-15 engine/…/clone.rs• L29-82 engine/…/clone.rs• L86-158

Machine archives

An archive carries machine settings, the published image manifest, and a sparse copy of the stopped data disk. Import resolves the named image in the local registry before registering the machine. The image itself is not duplicated in the archive. engine/…/mod.rs• L1-49, engine/…/transfer.rs• L30-95

References: engine/…/mod.rs• L1-49 engine/…/transfer.rs• L30-95

Web policy

Machine web policy records the selected HTTP and HTTPS backend as Auto, Off, or an explicit port. The setting is durable and follows clones and archives. Saving it does not install routes; route application is a separate host and guest operation. engine/…/web_ports.rs• L16-27, engine/…/web_ports.rs• L67-115, engine/…/wire.rs• L7-55

References: engine/…/web_ports.rs• L16-27 engine/…/web_ports.rs• L67-115 engine/…/machine_web.rs• L42-51

Change checklist

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

  • Changes to protocol admission or wire framing must preserve compatibility checks, trace propagation, and error mapping at the host-agent boundary.
  • Changes to cancellable agent work must close dedicated connections and join blocking workers before VM stop or removal.
  • Changes to machine web or instance authority sessions must preserve ordered revisions, exact acknowledgements, idle failure detection, and coordinator joins.
  • Changes to trust requests must keep the requested operation and acknowledged operation aligned with the expected guest VM run.
  • Changes to VmIncarnation checks must cover connection, address publication, listener transfer, stop, removal, and completion publication.
  • Changes to host holds or stop ownership must preserve the bounded drain before teardown and the single-owner rule for one physical run.
  • Changes to System VM storage recovery must preserve both the in-memory reservation and the durable hold after failed verification.
  • Changes to boot inputs, backend selection, or lifecycle drift checks must keep the desired kernel, command line, disk pair, nested virtualization, and effective backend aligned.
  • Changes to lifecycle task cancellation or completion handling must preserve epoch checks so an aborted boot or stop cannot update a later run.
  • Changes to machine readiness must keep agent compatibility, settled guest initialization, routable addresses, clock sync, and bridge-address publication in the intended order.
  • Changes to web policy serialization must preserve omitted-field updates and inherited clone or archive settings. Saved policy must remain separate from installed routes.

Important failure modes

TriggerConsequenceGuard
The guest agent uses an unsupported protocolReadiness or business requests fail against an incompatible guestRequire the minimum protocol during handshake before admitting requests.
A blocking agent operation is cancelled without joining its workerVM teardown can race guest I/O that still owns the connectionClose the dedicated socket and await the worker before retiring the VM.
A late result targets a replaced VM runOld addresses, listeners, or stop results can change the new runCapture and validate the expected VmIncarnation through the operation.
A lifecycle task finishes after force stop has started a new taskA stale boot or stop result can clobber the new lifecycle stateTag task completions with the current epoch and discard old epochs.
Host work still holds a running machine during stopGuest exports or other host requests lose their serverDrain HostHold values before teardown and fail on timeout.
A graceful stop and forced stop both complete independentlyOne caller can publish a result for the wrong stop phaseKeep one stop owner and allow only one forced takeover.
Storage verification fails or is interruptedNormal boot can use a damaged or unverified disk pairRetain the durable storage hold until recovery verifies the pair and writes.
The data and metadata storage pair is missing or unpairedThe System VM is refused before its process startsVerify the pair before start, reboot, or recovery boot.
A platform cannot provide the selected virtualization supportRetries delay a failure that cannot changeClassify platform-unsupported errors as non-retryable.
A warm snapshot does not match the requested boot shapeRestore can use state that does not fit the new workloadCheck warm eligibility and use a cold boot on mismatch.
A machine web acknowledgement has the wrong source revisionHost policy state can diverge from guest policy stateRequire strictly increasing source revisions and the exact acknowledgement.
An instance authority session receives a malformed, unexpected, or unsolicited frameThe authority channel can accept an invalid state or remain unsafeReject the frame and close the retained session; accept only the expected response for the active exchange.
An instance authority acknowledgement has a different revisionThe host can report a replacement as committed when the guest applied another revisionRequire the acknowledgement revision to equal the sent revision.
A snapshot source image is removed or replacedRestore can combine saved guest state with different disk bytesKeep the snapshot's rootfs source protected from image cleanup.

Key files

FileWhy to read it
engine/…/README.mdStates the engine's lifecycle ownership and shutdown contracts.
engine/…/lib.rsShows the platform-neutral public boundary and virtualization vocabulary exposed to composing layers.
engine/…/error.rsDefines the error boundary between engine subsystems and higher layers.
engine/…/machine.rsShows how named machines own VM runs, readiness, addresses, holds, resource changes, and transfer operations.
engine/…/vm.rsShows how VM records become live VMM runs and how VM snapshots are exposed.
engine/…/incarnation.rsDefines the run identity that fences stale lifecycle work.
engine/…/agent_client.rsDefines the host-to-guest control surface for readiness, workload, storage, and service operations.
engine/…/cancellation.rsDefines safe cancellation for dedicated guest operations.
engine/…/retained_session.rsDefines the worker ownership model for long-lived guest sessions.
engine/…/machine_web.rsShows acknowledged machine web policy sessions.
engine/…/instance_authority.rsShows exclusive guest authority replacement.
engine/…/tests.rsVerifies authority-session admission, revision acknowledgement, cancellation, timeout, EOF, malformed-frame, and worker-join behavior.
engine/…/mod.rsDefines the public System VM lifecycle facade, readiness contract, activity holds, and restart signals.
engine/…/actor.rsShows actor coordination, preemption, epoch checks, activity, restart handling, and state publication.
engine/…/boot.rsShows storage preparation, boot-asset drift checks, backend selection, agent readiness, retry, reboot, and route coordination.
engine/…/actor.rs• L950-951Points to the lifecycle actor test module for transition and completion behavior.
engine/…/tests.rsVerifies storage admission, readiness gates, hostname ownership, resource changes, and stale stop protection.
engine/…/tests.rsVerifies backend-dependent VM configuration, start rollback, and incarnation fencing.
engine/…/maintenance.rsDefines storage reservations and durable recovery protection.
engine/…/persistence.rsDefines durable machine records and restart recovery.
engine/…/clone.rsExplains stopped-machine cloning and identity separation.
engine/…/transfer.rsExplains machine export and import boundaries.
engine/…/machine_image.rsExplains how published rootfs images become boot inputs.
engine/…/snapshot.rsDefines snapshot publication and image lineage.
computer/…/sandbox.rsDefines the guest-side workload manager and its shared services.
computer/…/lifecycle.rsShows the high-level workload lifecycle.

See Workload engine, Images and snapshots, Computer runtime, and Storage recovery for adjacent concepts.