Cells, containment, and placement¶
A reusable capability block's code, its third-party libraries and their native extensions are untrusted. The kernel runs them inside a cell: a running protection and lifecycle unit for one resolved runtime closure, one runtime provider, one containment backend and one epoch. A cell owns its identity, its read-only view of the closure, its private writable state and every live object the block creates. This section covers what a cell is, how it starts and stops, the containment applied before any block code runs, and how cells are placed.
The process cell¶
flowchart TB
subgraph NUC["KERNEL, TRUSTED"]
direction TB
CORE{{"Nucleus<br/>authority state machine"}}
HOST["Nucleus host<br/>processes, pidfds, timers"]
CORE -->|"effects"| HOST
HOST -->|"receipts"| CORE
end
subgraph CELL["CELL: ONE ID, ONE EPOCH"]
direction TB
MON["Cell monitor<br/>trusted"]
PROV["Runtime provider<br/>untrusted, runs block code"]
CLO[("Resolved runtime closure<br/>read-only mounts")]
TMP[("Private tmpfs<br/>writable state")]
RES[("Live objects<br/>stay in the cell")]
MON -->|"provider protocol"| PROV
PROV --> CLO
PROV --> TMP
PROV --> RES
end
HOST -->|"starts, supervises"| MON
MON -->|"registration, receipts"| HOST
The process cell is the correctness baseline. The nucleus owns authority, the
nucleus host performs operating-system work, a trusted cell monitor owns the
provider session, and an untrusted runtime provider executes the block. The
CELL box is one containment boundary: the provider reaches the closure
mounts, the private tmpfs and its own live objects, and reaches the rest of
the kernel only through the monitor.
Containment is applied from sealed control-plane facts and the admitted closure. A process, a registered monitor and a ready provider are three separate facts, and each is established by its own receipt. See Cells, epochs, and lifecycle.
Every other containment backend proves the same identity, isolation, revocation, failure and lifecycle behaviour as the process cell before it is certified. See Containment backends.
In this section¶
- Cells, epochs, and lifecycle: a cell's identity and epoch, its lifecycle states, and the receipt each transition waits for.
- Process lifecycle: the three processes of a cell, how they start, how they are supervised, and how they stop.
- Containment profiles: the named containment contract a grant requires.
- Process containment profiles: the Linux
controls of
ProductionProcessCell: namespaces, cgroups, descriptor policy and syscall filtering. - Filesystem views: the read-only closure mounts and the private tmpfs a cell sees.
- Resource limits: the memory, CPU, process and descriptor bounds of a cell.
- Fd hygiene: which file descriptors cross into a cell, and how the workload-API socket is kept out.
- Placement variants and pre-certified topologies: the topologies the scheduler selects among.
- Containment backends: process, sandbox, microVM and certified co-resident backends.
- Owner services: GPU and model residency.
- The three runtime axes: runtime provider, containment backend and owner service, and why they stay separate.