Project-wide system availability¶
document.dependencies.apt installs system packages, with their dependencies,
on top of the project's foundation, so every cell in the project has them. It
works on the same foundation: the packages are added to what every cell
receives, and the foundation's base image and foundation_digest stay as they
are.
It is for a system package that several blocks in a project need. Instead of changing the base image the foundation is built from, which means a new image with a new inventory, SBOM, provenance and signature, and a control-plane policy entry for it, the project lists the package here and it reaches every cell from the next build.
A block importing python-magic declares that Python requirement through
@xratu and finds libmagic.so.1 already loadable.
Why the system half is shareable¶
A native library is ABI-level: it exposes symbols, and a project agreeing on one version couples nothing about program behaviour. A Python distribution version carries program semantics, so it stays a per-block declaration.
This is the same split the foundation makes between its exported baseline and its component store. See Three declaration scopes.
Blocks receive it without declaring it¶
The project's system requirements are injected into every block's closure
resolution, scoped project_wide:
for text in admitted_request.get("project_system_requirements", []):
name = system_requirement_name(text)
if name in scopes:
continue
requirements[name].append(text)
scopes[name] = "project_wide"
A block that declares the same package keeps its own reusable_block binding,
which is what the continue protects: the project declaration is what every
other block receives, and it never reclassifies one that asked for itself.
The injection is unconditional, so every closure in the project carries every
project-wide system requirement, including blocks that never use it. A
block-scoped @xratu(apt=[...]) reaches only the blocks that declare it.
Python packages work the other way. A block imports a Python package only when
its own @xratu declares it, even when the foundation or runtime.xratu
already holds a compatible version; the declaration then reuses those bytes. See
Presence versus import authority.
From declaration to every closure¶
flowchart LR
A["runtime.xratu<br/>apt list"]
A --> I["operating_system_requirements<br/>in the sealed intent"]
I --> D["project_system_dependency_intent_digest"]
I --> R["Resolution"]
R --> B["project_system_bindings<br/>in the admitted result"]
B --> S["project_system_binding_set_digest"]
D --> C["Every project closure"]
S --> C
Both digests are bound into every resolved closure. A block's closure therefore carries the project's system set whether or not that block mentions it, and a change to the set changes every closure.
What an admitted binding records¶
{
"requirement_spec": "libmagic1",
"selected_version": "1:5.45-3",
"component_digest": "sha256:4d71...",
"component_inventory_digest": "sha256:9c02...",
"provenance_digest": "sha256:e15a..."
}
| Field | Meaning |
|---|---|
requirement_spec |
The requirement as declared |
selected_version |
The version resolution chose |
component_digest |
The exact bytes bound |
component_inventory_digest |
The component's own inventory |
provenance_digest |
How those bytes were produced |
One requirement resolves once:
Completeness in both directions¶
Every declared requirement is accounted for, and nothing appears that was never declared:
project_system_bindings does not account for declared ['sqlite3']; the system
binding set is bound into every closure, so an unbound declaration silently
removes a library every block was promised
A declaration that resolved to nothing would fail much later, inside a block, for want of a library the project said it had. It fails at admission instead.
Where a cell sees it¶
Project-wide system bindings arrive through the native loader view, under the
project_wide root scope, alongside the foundation's exported baseline.
| Root scope | Source |
|---|---|
system_baseline |
The foundation's exported baseline |
project_wide |
The project's admitted apt bindings |
reusable_block |
A block's own system declaration |
They stay out of the Python import view: a system binding makes a library loadable, and importing a Python package is a separate declaration. See Native loader view.
Choosing the scope¶
A library every project on this substrate needs belongs in the foundation's
exported baseline, and putting it there is a foundation build. One that several
blocks in a single project need belongs in runtime.xratu apt, which needs no
foundation change. One that a single block needs belongs in that block's
@xratu(apt=[...]), which keeps it out of every other closure.
See Dependency and environment declaration.
Next: Preparing a shared Python component covers the other half of the document, which behaves differently.