Deadline and cancellation forwarding¶
The cell monitor turns an admitted task deadline into a bounded interruption sequence for one exact attempt. The nucleus owns the cancellation decision and the resulting task state. The monitor owns the facts observed at the provider boundary: dispatch progress, interruption receipts, accepted completions and process exit.
The cancellation path¶
flowchart TB
subgraph NUC["NUCLEUS AND HOST"]
direction TB
AUTH[("Installed interruption authority")]
TASK[("Task, call and attempt state")]
SETTLE{{"Settle one terminal outcome"}}
AUTH --> TASK --> SETTLE
end
subgraph MON["CELL MONITOR"]
direction TB
DEAD["Observe the attempt deadline"]
INT["Send interrupt for the exact attempt"]
GRACE["Observe interruption and completion<br/>during the grace interval"]
DEAD --> INT --> GRACE
end
subgraph CELL["PROCESS CELL"]
direction TB
TERM["Terminate the provider process"]
FENCE["Invalidate the owner cell epoch"]
TERM --> FENCE
end
PROV["Runtime provider"]
TASK --> DEAD
INT --> PROV
PROV -.->|"interruption receipt"| GRACE
PROV -.->|"late completion"| GRACE
GRACE -->|"settled within grace"| SETTLE
GRACE -->|"grace expires"| TERM
FENCE --> SETTLE
Every dispatch carries a finite relative deadline. When it elapses, the monitor sends an interrupt request carrying the original attempt identity. It then observes both the interruption response and any completion already in flight until the containment profile's graceful-shutdown interval expires.
The preferred provider-assisted mode is cooperative interruption. A certified provider-specific mechanism is eligible only when the installed authority contains its exact certification record, mechanism identity and evidence digest. Process termination remains a host action and is never sent as a provider protocol mode.
Effective interruption authority¶
Usable interruption modes are the intersection of four inputs:
- the modes allowed by the installed grant;
- the exact mechanisms admitted by sealed compatibility evidence;
- the modes allowed by the containment profile;
- the modes the running provider advertises during negotiation.
Provider negotiation can narrow this set. It cannot add a mode. A generic claim of certified interruption cannot satisfy authority for a different mechanism or evidence digest.
Completion races¶
The nucleus classifies a completion that races cancellation from trusted attempt facts:
| Observed facts | Task treatment |
|---|---|
| The provider reports that the attempt had already completed and the monitor admits that completion | Accept the typed completion |
| Cooperative or certified interruption is delivered and a completion also arrives within grace | Preserve the completion as evidence and return the cancellation fault |
| The provider reports an unknown attempt while a completion arrives | Report ambiguous completion |
| No admissible completion arrives before grace expires | Terminate the provider, invalidate the owner epoch and report ambiguity |
| Cancellation settles without a completion or ambiguity | Discard any later result |
A completion retained as evidence cannot become the caller's result. An accepted completion passes through the same type and method-result admission as an ordinary completion.
Evidence and failure boundary¶
Cancellation evidence binds the task and attempt identities, reason, interruption disposition, late-completion disposition, process-termination fact and owner-epoch invalidation fact. The kernel returns the typed terminal outcome directly to the kernel-local caller. It writes the cancellation and terminal-task evidence to the sequenced return lane so the supervising data plane can drain it and the control plane can retain an admitted operational record.
Grace expiry fences the entire provider-owned epoch. Handles and resources from that epoch become unusable through their normal authority owners; the monitor cannot preserve one provider-local object across the fence. See Cells, epochs, and lifecycle and Provider frame validation and supervision.