Skip to content

Rootfs and the component store

A foundation holds two surfaces with different reach. The exported system baseline is what every cell receives. The remaining component store is a set of resolver candidates.

flowchart TB
  F["Runtime foundation"]
  F --> RB["Exported system baseline<br/>signed subset"]
  F --> CS["Component store<br/>everything else"]
  RB -->|"mounted in every cell"| C["Cell"]
  CS -->|"selected only when a block declares it"| C
Surface Reaches a cell
Exported system baseline Always, for every closure using this foundation
Component store When a block's declaration selects a component
Rootfs files outside both Never

The rootfs

The root filesystem is pinned by digest and mounted read-only. It carries the operating system, the provider runtime, and the paths the baseline exports from.

Fact Field
Where the image comes from rootfs_reference, digest-pinned
What it is rootfs_digest
What it runs on platform, os_release, libc_abi
Which Python ABI it provides python_abi

CPython and its standard library arrive here as provider-runtime ABI, so a block imports json without declaring it.

The component store

The store holds content-addressed components, each with an id, a digest, a kind and its own dependency list. Components are candidates for the resolver.

A block declaring torch>=2.4 may have its requirement satisfied by a component already in this store. A block that declares nothing receives nothing from it, whatever it contains.

Store fact Consequence
A compatible component exists The resolver may select it rather than building one
Component ids and digests are distinct One component is one set of bytes
A component's dependencies name foundation components The dependency closure is reachable

The store is never exposed as a collective site-packages directory. The cell's Python view holds only the distributions selected for that block's declared requirements. See Cell environment view.

Reachability

A file that sits in the rootfs or the component store, and is named by neither the exported baseline nor any selected binding, stays unreachable to the cell.

The guarantee is by construction: the cell's mounts and import roots are generated from the resolved closure, so reachability follows selection rather than layout.

Question Answered by
Is it in the image? The inventory
Does every cell get it? The exported baseline
Does this cell get it? The resolved closure's bindings
Can this block import it? The block's own @xratu declaration

Related: Exported system baseline covers the first surface, and Closure-local dependency components covers what happens when the store holds no match.