Resource slot table¶
The owner monitor keeps the only mapping from kernel resource authority to the provider-local resource id. This confines the live object to its provider and owner cell while allowing the nucleus to govern lineage with stable slots and generations. This page covers pending proposals, active owner slots and the installation check between them.
Table structure¶
flowchart TB
subgraph PROV["RUNTIME PROVIDER"]
direction TB
OBJ[("Live resource object")]
PID["Provider-local resource id"]
OBJ --> PID
end
subgraph MON["OWNER MONITOR"]
direction TB
PEND[("Pending proposal<br/>validation digest to provider id")]
ACTIVE[("Active owner slots<br/>resource slot to provider id")]
ADMIT{{"Exact installation authority"}}
PEND --> ADMIT --> ACTIVE
end
subgraph NUC["NUCLEUS"]
direction TB
LIN[("Resource lineage<br/>slot and generation")]
end
PID --> PEND
PEND -->|"validated facts and digest"| LIN
LIN -->|"installation effect"| ADMIT
The pending table is keyed by the validation digest. Its value contains the provider-local id and the monitor-validated proposal. The active table is keyed by the nucleus resource slot and retains the provider epoch, interface id, resource generation, concurrency mode and reentrant-depth bound needed for later owner-side dispatch.
Proposal validation¶
The monitor opens the compiled kernel capability interface prepared for the cell and verifies:
- the exporting method ordinal exists and declares a handle-reference result;
- the resource ordinal exists in the interface;
- the provider epoch matches the current provider session;
- the provider's declared interface id and resource ordinal match the sealed declaration;
- the concurrency mode and reentrant-depth bound match the sealed resource declaration.
The monitor allocates the resource generation and derives the exported rights from the declaration's ownership mode. It then records the provider-local id in the pending table and sends only the validated proposal and binding digest to the nucleus host.
Activation¶
An installation effect must match the pending owner cell, cell epoch, interface id, resource ordinal, resource generation and validation digest. Its handle rights must be a subset of the rights validated from the interface. After those checks, the monitor validates the provider slot against the current provider epoch, moves it into the active table and removes the pending entry.
The source local handle is installed in the same monitor transaction. A failed handle installation leaves both tables unchanged. The installation receipt is emitted after the pair commits. See Handle import and export and Resource authority.