Semantic equivalence¶
A call between two cells can travel over more than one transport, and the result must not depend on which one carried it. Every transport implements one channel interface, and the cell control channel is the reference that defines its behaviour. A faster transport is admitted only when it produces the same observable outcome as the reference for the same inputs, including under failure, and it is selected only when it also meets the product's absolute performance targets. This page covers what a transport must reproduce, when a call takes each path, and how performance enters the selection.
Two transports between the same monitors¶
flowchart TB
subgraph NUC["NUCLEUS"]
direction TB
GRANT[("Delegated channel grant<br/>admitted channel epoch")]
end
subgraph CALLER["CALLER CELL"]
direction TB
CMON["Caller monitor"]
end
subgraph OWNER["OWNER CELL"]
direction TB
OMON{{"Owner monitor<br/>validates grant, handle, payload"}}
PROV["Runtime provider"]
end
subgraph REF["REFERENCE: CELL CONTROL CHANNEL"]
direction TB
CTL["Authenticated control lane"]
end
subgraph FAST["FAST: CELL SHARED-MEMORY CHANNEL"]
direction TB
CALLR[("Call ring")]
COMPR[("Completion ring")]
end
GRANT -->|"installs"| CMON
GRANT -->|"installs"| OMON
CMON -->|"call"| CTL
CMON -->|"call bytes"| CALLR
CTL --> OMON
CALLR --> OMON
OMON --> PROV
OMON -->|"typed outcome"| COMPR
OMON -->|"typed outcome"| CTL
COMPR --> CMON
Both transports connect Caller monitor to Owner monitor, and both run under
the same Delegated channel grant the nucleus installed. Authority stays with
Owner monitor, which validates the grant, the target handle and the typed
payload whichever transport delivered them. The transport carries bytes and
correlation.
What a transport must reproduce¶
For the same calls, including calls that fail, a transport is equivalent to the reference when every one of these matches, once transport-local identifiers are set aside:
accepted call and completion counts
the exact attempt trace and payload digest
attachment count, byte extent and ordered descriptor-set digest
cancellation outcomes
fault and peer-closure classifications
pending and observed correlations still held
When a call takes each path¶
The caller session selects shared memory once caller authority and both endpoint mappings match the admitted channel epoch. The authenticated control lane then carries sealed dispatch metadata, the call ring carries argument bytes, and the completion ring carries the typed outcome.
A call takes the reference path for one of five named reasons:
| Reason | Condition |
|---|---|
| Reference backend | The channel is configured to use the reference path only |
| No shared-memory channel | No shared-memory channel is installed between the two cells |
| Payload outside the inline bound | The arguments are larger than the ring carries inline |
| Deadline below the wait granularity | The deadline is shorter than the ring's one-millisecond wait granularity |
| Target generation outside the compact frame | The target handle's generation does not fit the compact frame header |
The outcome is routed separately. An outcome that carries a provider-owned resource, stream or buffer returns over the authenticated control lane even when the call went through shared memory.
The evidence of each completed attempt records which combination it used: the authenticated reference path, a shared call with reference completion, or a full shared call and completion.
What a shared-memory frame carries¶
Call frames cross one kernel syscall channel. The compact header carries an operation family from a closed set, and each family keeps its own ordinals:
Run and Session ordinals come from the application syscall catalog and stay
distinct from capability.invoke ordinals. Every call carries one recognised
family, and every completion carries empty call-routing fields. A frame of any
other shape fails closed.
Streams move in sealed batches¶
Stream data travels in bounded sealed batches. Each batch binds a contiguous run of item sequences, their encoded ranges and their digests to one stream generation, with an optional terminal declaration.
flowchart TB
subgraph PCELL["PRODUCER CELL"]
direction TB
PRV["Runtime provider"]
MAP[("One writable mapping<br/>sealed before handoff")]
end
subgraph CCELL["CONSUMER CELL"]
direction TB
CMON{{"Consumer monitor<br/>verifies extent, ranges, digests"}}
end
subgraph NUC["NUCLEUS"]
direction TB
REC[("Stream item records")]
end
PRV -->|"writes each typed value"| MAP
MAP -->|"sealed descriptor"| CMON
CMON -->|"whole batch admitted"| REC
The provider writes each typed value directly into One writable mapping and
seals the extent before the descriptor is handed over. Consumer monitor
admits the whole batch before the nucleus commits its item records in one
transaction. The batch keeps the reference path's ordering, credit and terminal
behaviour and removes one cross-process round trip per item.
Bulk content is hashed once¶
Bulk content is hashed once, inside the trusted host or the producer monitor, before its authenticated descriptor is issued. The receiving monitor verifies the descriptor identity, the exact extent, the Linux seals and the read-only rights, and then maps the admitted bytes with no second full-extent hash and no copy.
Performance targets¶
A transport that is equivalent is selected for a channel when it also meets the
product's absolute performance targets for the declared x86_64 hardware class
and the xck_v1 Linux runtime contract. Every target is a fixed limit, and the
targets cover:
call latency at p50, p99 and p99.9
calls per second per core
monitor mediation and codec overhead
cell activation
buffer transfer and stream throughput
cancellation, revocation and owner death
memory and evidence cost
Transports compared¶
| Transport | Role |
|---|---|
| Cell control channel | The typed reference path and correctness baseline |
| Cell shared-memory channel | The fast path between process cells |
| Same-cell adapter dispatch | A call that stays inside one cell |
Related¶
- Cell control channel for the reference path.
- Cell shared-memory channel for the fast path.
- Call completion ring for the rings the fast path uses.