Resource authority¶
A runtime provider may create a live resource, but the provider's report is a proposal. The cell monitor validates that proposal against the prepared kernel capability interface, and the nucleus decides whether it becomes usable kernel authority. This page covers the promotion from provider-local resource to active resource lineage.
Promotion path¶
flowchart TB
subgraph OWNER["OWNER CELL"]
direction TB
PROV["Runtime provider<br/>live object and provider id"]
MON{{"Owner monitor<br/>interface and epoch validation"}}
PEND[("Pending owner slot")]
PROV -->|"resource proposal"| MON --> PEND
end
subgraph NUC["NUCLEUS"]
direction TB
JOIN{{"Cell, grant, channel and rights admission"}}
RREC[("Resource record<br/>installing")]
HREC[("Source handle record<br/>installing")]
JOIN --> RREC
JOIN --> HREC
end
PEND -->|"validated proposal"| JOIN
RREC -->|"InstallResourceAuthority effect"| PEND
PEND -.->|"installation receipt"| RREC
RREC --> ACTIVE[("Active resource and source handle")]
The provider-local id stays in Pending owner slot. The monitor emits a
validation digest that binds that id to the provider epoch, cell epoch,
interface hash, resource ordinal, resource generation, exported rights,
concurrency mode and reentrant-depth bound. The nucleus receives only the bound
facts and the digest.
Admission joins¶
The nucleus admits the proposal only when all of these facts agree:
- the owner cell is
readyat the quoted cell epoch; - the cell and proposal use the same active grant handle;
- one active channel names the owner cell, interface id and interface hash;
- the channel grants the method ordinal that produced the resource;
- the declared method returns a handle reference;
- the concurrency declaration matches the compiled interface;
- the rights intersection retains
invoke.
Successful admission reserves a nucleus resource slot and a source local
handle as one state transition. Both records remain installing while the host
delivers the installation effect to the exact owner monitor.
Installation receipt¶
The monitor matches the effect to its pending proposal, installs the owner resource slot and source handle in one local-table commit, and returns a typed receipt. The receipt carries the resource slot and generation, owner cell and epoch, validation digest, handle slot and generation, and attenuated rights.
The nucleus compares every receipt field with its reserved authority before it activates either record. A missing, changed or replayed receipt leaves the resource unavailable and produces a failed effect outcome. See Effect receipts and effect retry.
Evidence¶
Promotion records resource_export_authorized when nucleus authority is
reserved and resource_authority_installed after the matching monitor receipt
is admitted. Both records carry the resource and handle generation needed to
trace the result to one owner-cell lifetime; the installation record also
carries the admitted effect-receipt digest. See
Evidence effects.
Continue with Handle authority for caller-visible local identity and Resource slot table for owner-monitor storage.