Cells¶
A cell is the kernel's running unit for one closure. It holds one resolved runtime closure, the provider process running it, the filesystem that closure's views describe, and every live object the block creates while it runs. Each cell is its own failure domain: a crash or a fault in one cell stays in that cell.
A cell and a reusable capability block are different things. The block is published code with a typed interface. A cell is a running instance of one closure built from that block, and a block used by three projects, or under two containment profiles, runs in separate cells.
What a cell holds¶
- One closure. The foundation, capsule, provider and dependency bindings are fixed when the cell starts, and stay fixed for its life.
- Its own processes. The baseline cell is a process cell with two processes: the kernel's cell monitor, which is trusted and validates everything entering or leaving the cell, and an untrusted provider process that runs the guest runtime, such as CPython.
- Its own filesystem. Read-only mounts for the foundation, the capsule and each selected component, and one private tmpfs, which is the cell's only writable filesystem. See Cell environment view.
- Its own live state. Python objects, open connections, loaded models and native handles live in the cell that created them.
What crosses between cells¶
flowchart TB
subgraph K["Xratu kernel"]
direction TB
PA["Cell A: provider process<br/>library v1, live objects"]
MA["Cell A: cell monitor"]
N["Nucleus<br/>grants and handles"]
MB["Cell B: cell monitor"]
PB["Cell B: provider process<br/>library v2, live objects"]
PA -->|"typed value"| MA
MA --> N
N --> MB
MB -->|"typed value"| PB
end
Data crosses as typed values, streams, buffers, artifacts and handles, each defined by the block's interface. The provider hands a value to its cell's monitor, which validates it. The nucleus holds the grants and handles that authorise the crossing, and the receiving cell's monitor validates it again before its provider sees it. A live object stays in the cell that owns it; another cell reaches it through a handle, and the call executes in the owner cell.
A Python object, a pickle or a framework object therefore stays in its cell. Two cells loading different versions of one library exchange data in the interface's typed form, which neither library version has to understand. See Version coexistence.
Containment profiles¶
A cell runs under one containment profile. ProductionProcessCell is the
stronger, and DevelopmentProcessCell is for local work. A production cell
satisfies a requirement for development; a development cell is refused wherever
production is required:
DevelopmentProcessCell does not satisfy a grant requiring ProductionProcessCell;
a development profile is never accepted where production is required
The control plane selects the profile from
document.governance.build.process_containment_profile in the project's
effective policy and persists that closed profile with the project build. The
assignment carries the selected profile as minimum_containment_profile, so the
requirement is fixed before the work reaches a host. Reconciliation refuses a
handoff minimum that differs from the selected closure profile. The profile is
part of the closure and part of the cell reuse key.
Cells and closures change together¶
A cell runs one closure for its whole life. A new closure starts new cells, and a running cell keeps its closure until it is drained, revoked or its epoch ends. See Cell reuse keys and Closure reconciliation and upgrade.
Lifecycle, epochs and process containment are covered in Architecture: Cells, epochs, and lifecycle and Process containment profiles.