Skip to content

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