ADR 0013 — The eval cell: a pod that holds against a hostile agent with guest root
- Status: accepted (2026-10-08). Proposed 2026-10-07 with milestone M0 (#3332); the owner approved it on 2026-10-08. The incident table below records what answers each class as of acceptance; rows marked NOT YET carry the milestone that owns them.
- Tracks: milestone M0 of the eval-cell programme. M1–M6 are the milestones the table below names for each answer that is not yet in place.
- Rests on: ADR 0007 (rule ids cited below), ADR 0011 (the node’s measured boot and quote), ADR 0012 (the TPM as the root of the node’s own authority).
- Applies to:
nucleus-spec(isolation_profile,tier2_artifacts),nucleus-node(eval_cell,workspace_scan,net,net::confinement,main.rs’s create path),portcullis(git_exec),nucleus-tool-proxy(declassify),nucleus-cli(run --isolation-profile).
Context
The agent escapes reported through 2026 were, almost all of them, failures of the infrastructure around the agent rather than of the agent’s own policy. Described by class, without naming the products involved:
- evaluation sandboxes left with live internet access;
- a zero-day in a supporting service (a package-registry proxy) that the sandboxed agent could reach over the network;
- an unauthenticated control API on localhost, which an agent used to grant itself full access;
- configuration carried in the repository (git settings, hooks) that executed code before any approval prompt was shown;
- credentials readable from inside the sandbox;
- escapes from sealed evaluation environments run by several model developers, the class of which a VMM escape is the strongest form.
Nucleus has most of the parts an answer needs. Its weakness is where it decides: the
fine-grained decision point (the IFC kernel, the flow graph, the budget, the egress
allowlist) runs inside the guest, in the tool-proxy, and the host’s copy of it is a
shadow that enforces nothing (nucleus-node/src/host_decide.rs). Against an agent that
holds root in its guest, everything the guest enforces is something the agent can turn
off. The pod is only as strong as what the host enforces around it.
Decision
The threat model
The adversary is the agent, with root in its guest. It controls the guest kernel’s userspace, can kill or replace the tool-proxy and guest-init, can read anything the guest was given, and can open any socket the guest kernel lets it open. It does not control the host, the VMM’s process outside the guest, the host’s network namespace rules, or the TPM.
An eval cell is a pod in which such an adversary causes zero contract-forbidden effects: no egress to a destination it was not given, no credential value it was not given, no authority beyond its certificate, no write outside its scratch, no code run on the host.
What this record does not claim: availability (the agent can always crash its own guest), timing and microarchitectural channels, and anything about the agent’s behaviour. Those exclusions are the North Star’s own.
The trusted computing base
| In the TCB | Why it must hold |
|---|---|
The host nucleus-node | It admits the pod, builds every host-side channel, withholds credentials, and is the only party that may decide (after M3). |
| Firecracker and the jailer | The VM boundary, the chroot, the cgroup placement, the non-root uid, and the VMM’s own seccomp filter. |
| The host egress path | The per-pod network namespace and its default-deny chain, and the host-side performer of credentialed egress. Under guest root this is the only egress control. |
| The TPM (ADR 0012) | The node’s own authority: the federation key and the node evidence a stranger checks. |
Not in the TCB, and therefore defence in depth only: the guest kernel, guest-init,
the in-guest tool-proxy and its kernel, the workload’s Landlock ruleset, the syscall
filter derived from the lattice, and every verdict the guest prints on its console. A
compromised guest’s console is never independent evidence (cred_split.rs already says
so). The eval cell still requires the in-guest layers, because a guest root reached by an
exploit chain is harder to reach through them; it never relies on them.
The eval-cell isolation profile
A pod asks for it with the label isolation.coproduct.one/profile: eval-cell
(nucleus_spec::isolation_profile), or nucleus run --isolation-profile eval-cell. It is
a label and not a spec field because the pinned guest parses the spec with
deny_unknown_fields; the label map is IN the program identity whole, so a profile
change is a program change.
The node refuses the pod at create, by name, unless all of the following hold
(nucleus-node/src/eval_cell.rs, one decider called unconditionally from
create_pod_internal before the isolation clamp):
-
Firecracker only. The container, local and Apple VZ tiers are refused naming the tier (
isolation_backend(driver).name, the name the clamp writes). Apple VZ is refused until its isolation is reviewed against this threat model.nucleus run --localand--hookare refused by the CLI, which is the only party that sees those tiers. -
The host controls are on.
--firecracker-seccomp-verify(a VMM whose filter is not confirmed active is not launched),--firecracker-jailer, no--allow-workload-without-landlock, and enforcing host-spec credential delivery (cred_split: the guest receives the admitted spec with every credential value withheld). The spec may not ask for a disabled or custom VMM seccomp filter, in any build. -
Egress is what the cell lists, host by host.
network.allowis empty unless the spec lists destinations, and every listed entry names exactly one host (a bare address,/32or/128). Ranges are refused whether public or private: a reachable private range is how an agent finds a supporting service it was never meant to reach. A policy that grantsweb_fetchorweb_searchwhile the spec lists nothing is refused rather than left to fail at the fence. -
The guest confines its children.
GuestCapability::WorkloadLandlockandWorkloadSyscallPolicyareDemand::When(GuestUse::EvalCell): required for an eval cell, optional for every other pod, so the global guest floor does not move. The CLI refuses a guest without them: the one the node reports booting (#3223), or the one a--guest-releasestates when the node cannot say. The report is the releasenucleus setuprecorded for the rootfs’s digest, not read off the image, so at boot the node still requires the guest’s ownenforcedLandlock verdict and fails the boot otherwise (eval_cell::require_confined_children). The derived syscall filter has no console verdict yet; for it, the release table is the only check. -
A child stays an eval cell. A pod an eval cell creates must carry the profile too; omitting the label is refused, never read as standard.
-
No third-party credential is served to the guest. A spec naming an
audit_sinkis refused by the sink’s name: the audit uploader runs in the guest, so its cloud credential would be served overFETCH_AUDIT_CREDENTIALSto whoever holds guest root, and it signs from anywhere until it expires. Served once is still served. An eval cell’s receipts reach the host overSHIP_RECEIPT. -
Every disk is pinned, and only the scanned bytes boot. An eval cell’s
image.scratch_pathandimage.data_patheach need their digest (image.scratch_digest,image.data_digest). A disk without one is refused, and the refusal names the missing field. The scan copies the disk into a file the node owns, holds that copy to the pin with the function the boot check uses, and reads the tree from the copy (workspace_scan::read_pinned_disk). The verdict therefore covers only the pinned bytes. At boot,image_identity::verifyholds the disk placed in the jail to the same pin, so a disk rewritten between create and boot does not boot. The disk checked there is a copy the node owns, never a link to the caller’s file (jail_placement::Placement::NodeCopyGuestWrites; the data disk is a root-owned read-only copy). A write to the caller’s file after the check cannot reach the guest. The guest’s writes reach the caller through one path: at pod exit, after the VMM has stopped, the node copies its disk over the caller’simage.scratch_path(scratch_export). The signed receipt carries the digest of what the node exported (scratch_export), ornot exported: <why>. A standard pod’s disks are still linked. -
The guest holds no governor key, so an eval cell cannot declassify. The keys that verify a declassification token, or cosign a memory declassification, are the guest tool-proxy’s
NUCLEUS_DECLASSIFY_TRUSTED_KEYS(and its threshold,NUCLEUS_DECLASSIFY_THRESHOLD; both declared once asisolation_profile::GOVERNOR_KEY_ENV). A key the guest holds is a key guest root holds: it can replace the trusted set and sign its own tokens (ADR 0014 §3). Owner decision 2026-10-08: until the host verifies declassifications, an eval cell’s guest receives none. The paths a key could take to a guest, and what closes each:- node environment inherited by the tool-proxy: the local tier only, refused by rule 1;
- container environment: written explicitly by the node, never inherited, and the container tier is refused by rule 1;
- the kernel command line: built by the node, which writes no governor key, and a
spec may add only
quiet,loglevel=and a dotted canary (nucleus_spec::boot_args), so no undotted token reaches PID 1’s environment; - the workload API: no command serves one;
- the spec’s
credentials.env: refused by the key’s name (EvalCellRefused::GuestHeldGovernorKey).spec_posturealready refuses the wholeNUCLEUS_namespace for every pod; this refusal is the eval-cell rule, kept if that namespace rule ever widens.
In the guest, the tool-proxy decides once at startup from the profile label (
declassify::GovernorKeys::for_pod): an eval cell’s guest holds no key whatever its environment carries, and the token and memory endpoints refuse every declassification by name before reading a signature. An unknown profile label is read as an eval cell there (B-3). A standard pod with no key already refused every declassification (Kernel::verify_declassification,nucleus_provenance_memory::declassify), so this rule changes nothing for standard pods.
ADR 0007 B applies throughout: an unknown profile name is refused (B-3); the absent
label is the standard profile, which is the admission every pod already receives and
grants nothing more (rule 5 closes the one place absence could shed a requirement);
IsolationProfile has no Default (B-1); every decision over a profile or a driver is
an exhaustive match with no _ arm (E-2), and the node posture is destructured whole
(E-1), so a new driver, profile or posture field does not compile until someone says
what an eval cell needs of it.
The 2026 incident classes, and what answers each today
| Incident class | The nucleus control that answers it | Status |
|---|---|---|
| Evaluation sandbox with live internet | Every pod sits in a host network namespace with a default-deny chain the guest cannot reach, and the node refuses a pod whose guest cannot prove the fence drops traffic (net::confinement, egress attestation). An eval cell’s allowlist names hosts one by one, never a range, and a network capability with nothing listed is refused (eval_cell::admit_egress). | Answered at admission (M0). The live probe that pins it under guest root is M2. |
| Zero-day in a reachable supporting proxy | An eval cell cannot list a range, so a supporting service is reachable only if listed by address. The host-side listeners the guest reaches over vsock (workload API, broker, decision channel) are reachable from guest root. They are one inventoried type, HostListener in nucleus-ifc-kernel, bound only through guest_socket::bind_guest_listener and held equal to the table in docs/architecture/mediated-set.md (#3331). | Inventoried (M1, #3331); NOT YET → M1 for in-guest probes that reach each listener, M4 (one mediated egress proxy; DNS answered by it). |
| Unauthenticated localhost or control API used for self-escalation | The node API is mTLS-only; approvals are Ed25519 signatures by a key the guest never holds; the tool-proxy’s shared-secret tier carries no authority (#2446 step 2). But the deciding kernel is in the guest, so guest root can bypass the in-guest decision entirely. | NOT YET → M3 (the host decides; the guest proxy becomes a thin client). |
| Repository-borne exec config before approval | One list of what a repository can make git execute (portcullis::git_exec: non-sample hooks, and every .git/config key git’s manual documents as running a program), read by two deciders. nucleus/src/consume_guard.rs reverts a shell command that adds one during a run. nucleus-node/src/workspace_scan.rs reads what enters the pod before any driver runs: an eval cell’s scratch and data disks are copied out as written (a journal needing recovery is refused, not replayed) and scanned, and an eval cell carrying any finding, or a disk that could not be scanned, is refused naming each path and key. A standard pod is admitted with its findings in the node-owned workspace.coproduct.one/exec-config label, which the signed receipt’s manifest hash covers. No host-side agent config enters a pod: the node copies nothing but the disks the spec names, and nucleus run hands a pod only the agent’s program, its arguments and an inline MCP document (run/pod_agent.rs). | Answered at admission (M1). The create-to-boot window is closed by rule 7: an eval cell’s disks are pinned, the scan reads only the pinned bytes, and image_identity::verify holds the placed disk to the same pin at boot. The caller-side window is closed too: the guest boots a node-owned copy of each disk, so nothing written to the caller’s file after the boot check reaches it, and the guest’s writes come back only through the node’s export at exit, whose digest the signed receipt carries. |
| Credential theft | Enforcing host-spec delivery withholds every credential value from the guest’s spec (cred_split), and credentialed egress is performed by the host, so the guest never holds the token; an eval cell is refused on a node without it. The broker capability is served to the guest once per pod, and guest root can always hold it (it can read the proxy that fetched it), so it is not treated as a secret. What it grants is fixed by the host: it is bound to this pod (minted per pod, verified only by this pod’s listener on this VM’s vsock socket, WrongPod otherwise), the broker never returns a credential (BrokerResponse cannot carry one), and every perform is authorized by the host’s own pod policy (authorize_effect) against upstreams admission resolved. The signing seed behind FETCH_MEDIATION_KEY is never served. The audit uploader’s cloud credential was the one third-party credential still served; an eval cell naming an audit_sink is now refused (rule 6). | Answered for spec credentials (M0) and for every value the workload API serves (M1). The broker capability lets guest root skip the in-guest taint checks on the way to an admitted upstream: that is the deciding-kernel row (M3), not a credential leak. The SVID key and the caller token are this pod’s own identity, usable away from the pod only through egress the cell lists. |
| VMM escape | Firecracker under the jailer (chroot, cgroups, a uid that cannot be root), the VMM’s seccomp filter verified active and fail-closed, both required of an eval cell; the node’s boot measured and quoted by the TPM (ADRs 0011, 0012). | Answered at admission (M0); the VMM runs as pid 1 of its own PID namespace, is held through a pidfd, and runs under the jailer’s file-size and open-file limits (M1, #3329, closes #2571). In the guest, as defence in depth, the workload runs in a PID namespace of its own with its own /proc, so it has no pid for the tool-proxy or guest-init, and its launch receipt records pids=own (#3344, KB-GUEST-WORKLOAD-PIDNS). Guest root can leave that namespace, so the host relies on none of it. An eval cell will require it once a release carries it (GuestCapability::WorkloadPidNamespace); until then the receipt records it and the node does not demand it. |
Consequences
- An eval cell admitted today is held by the host controls in the table’s “answered” rows and by nothing it does not list. It is not yet held against an agent that uses guest root to bypass the in-guest decision; that is M3, and the escape lane of M2 is where the gap is measured rather than asserted. The North Star frontier ledger carries the eval cell as a NOT-YET row whose falsifier is that lane.
- No pod that does not ask for the profile changes behaviour. The standard profile is admitted exactly as before, on every tier, and the guest floor is unchanged: 2.5.0 and 2.6.0 guests still serve standard pods.
- An eval cell cannot boot on a guest that predates Landlock confinement, and the CLI refuses one on a release without the derived syscall filter.
- Leftovers, owned by later milestones: the node knows a Firecracker rootfs’s release
only from the record
nucleus setupwrites beside it (#3223), so the derived-filter requirement is a release-table check only; the profile is per pod, and a node that serves only eval cells is a later, separate flag.