Global durable
Root manifests, CAS objects, node graph, logical agent state, policies, evaluator versions, trajectories, audit records
State plane
The graph is the product-level source of history; execution attempts are disposable projections. LayerStack preserves workspace identity while OCI/Linux and WASI provide different ways to run it.
Architecture decision
A SandboxNode is an immutable checkpoint reference plus logical state and provenance. It does not permanently own a container, mount, process, or worker. The scheduler activates only the frontier required by current work.
Reference architecture
The orchestration plane owns graph semantics. The state plane owns durable identity. Executors consume leases and return sealed results; they never become the source of checkpoint truth.
Workload controllers
Orchestration plane
Durable state plane
Bounded worker pool
Sealed result
Checkpoint · logs · patch · evaluation · provenance
Checkpoint graph
Nodes share immutable roots and content identities. Activation allocates an execution attempt with a private delta; suspension seals that delta and releases the runtime slot.
root / N0
durable
candidate A
sealed
candidate B
active attempt
candidate C
sealed
B / child 1
active attempt
B / child 2
prunable
Durable delta storage
Stable content identities sit beneath logical tree manifests and immutable B/L/S deltas. The capture path can reuse unchanged content and pack metadata without moving CAS reconstruction into commands, PTY, or stdin.
Lifecycle protocol
The critical path is expressed as a recoverable state machine so a crash can resume or abort without inventing a partially published node.
Create child NodeId referencing an immutable parent RootId.
Pin root and reserve one bounded execution slot.
Build the backend view and allocate a private writable delta.
Run commands or a rollout; stream evidence to attempt storage.
Stop admissions, drain command/PTY work, and freeze the delta boundary.
Publish manifest, logical state, provenance, and attempt result atomically.
Run versioned tests or reward logic against the sealed root.
Promote, merge, backpropagate, retain, or prune idempotently.
State ownership
Root manifests, CAS objects, node graph, logical agent state, policies, evaluator versions, trajectories, audit records
State plane
Hydrated immutable roots, verified native extents, reusable image/runtime materialization
Worker cache manager
Mount namespace, private upperdir, workdir, PID/cgroup state, live PTY buffers
Executor lease
OCI/Linux projection
A worker hydrates or reuses an immutable native lower root, then composes a private writable view inside the sandbox mount namespace. The target image supplies no helper binary and never owns durable workspace truth.
Immutable lower root
Worker-local, verified, shared read-only
Private upper + work
Attempt-local writable delta
Overlay workspace
Mounted inside executor namespace
Command / PTY
Ordinary native file access