Capability vocabulary qualified by ownership¶
Kernel records, contracts and errors use the word "capability" in seven unrelated senses. Every use is qualified by its owner: a reusable capability block is user code, a kernel capability interface is the typed surface the kernel dispatches, and a Linux capability is an operating-system privilege. This page covers the seven qualified terms, where each appears on the kernel's surface, and which identity the kernel dispatches on.
The seven terms¶
| Term | Owner | Meaning | Where it appears |
|---|---|---|---|
| Reusable capability block | The block's author | User-authored reusable code, carried through generation, bake and publish | reusable_capability_block_id in an assignment's resolver snapshot and in evidence |
| Kernel capability interface | The kernel | The typed ABI surface the kernel admits and dispatches | capability.invoke, interface_id, the interface hash, export and method ordinals |
| Kernel authority | The nucleus core | An attenuable grant or local handle authorising use of an interface or resource | Grants, rights, generations, leases, revocation |
| Provider capability fact | The runtime provider | A feature advertised during provider negotiation | ProviderCapabilities.supports_streams, interruption modes, supported value-plane versions |
| Linux capability | The operating system | A privilege bit removed or constrained by containment | Removed by a cell's containment profile, for example CAP_SYS_ADMIN |
| Service capability | The repository | An ownership boundary inside Xratu's own code | The component a fault record names |
| Runtime Foundation | The foundation build | The execution substrate, independent of every block | foundation_digest in a resolved runtime closure |
A literal name keeps its own meaning: capability.invoke is the kernel
interface verb, and ProviderCapabilities is the provider's feature set.
Neither refers to a reusable capability block.
The identity the kernel dispatches on¶
A reusable capability block's identity is lineage. Once a call reaches the
typed kernel ABI, the kernel dispatches by interface identity and ordinal: the
interface_id with its export ordinal, and the method ordinal for a method.
The block id travels beside the selector as lineage and is recorded in
evidence, and the selector alone chooses what runs.
An assignment shows both, and they must agree:
invocation
interface_id orders.Lookup
export_ordinal 0
resolver_snapshot
reusable_capability_block
reusable_capability_block_id orders
interface_id orders.Lookup
selected_export
interface_id orders.Lookup
export_ordinal 0
Example values. The resolver snapshot's block and selected export must carry
the same interface_id as the invocation, and the selected export the same
export_ordinal. The node refuses an assignment where they differ, before it
reaches the kernel.
Lineage across the planes¶
flowchart TB
subgraph CP["CONTROL PLANE"]
direction TB
REL[("Release<br/>capsule records")]
ORC{{"Orchestration and policy<br/>resolve the authored target"}}
end
subgraph NODE["DATA PLANE NODE"]
direction TB
RECN["Reconcile and hand off"]
end
subgraph XCK["KERNEL"]
direction TB
VER{{"Verify the admitted closure"}}
DSP["Dispatch by interface<br/>and export ordinal"]
EVD[("Evidence<br/>block id as lineage")]
end
REL --> ORC
ORC -->|"1. block id, interface, export ordinal"| RECN
RECN -->|"2. handoff: lineage and admitted closure"| VER
VER -->|"3."| DSP
DSP -->|"4. records"| EVD
Orchestration and policy resolves an authored target into a block id, an
interface and an export ordinal, and the node hands them to the kernel
unchanged. Dispatch by interface and export ordinal runs the call, and the
block id reaches Evidence as lineage.
Related¶
- One owner per decision for how a fault names its owner.
- Interface model for interface identity and ordinals.
- Provider handshake and capability negotiation for provider capability facts.