Skip to content

The three lanes and their lifetimes

The link between a node and a kernel is three lanes with three different channel lifetimes. The difference is deliberate: each lane's lifetime follows from what it carries.

The three lanes

Lane Direction Channel Carries
Command Node to kernel Opened per call Ten runtime.* operator commands
Continuity Node to kernel Held The cursor exchange behind the return stream
Return Kernel to node Held, pushed Sequenced status, log, audit, evidence and fault envelopes
flowchart LR
  subgraph XD["XRATUD, runtime handle"]
    direction TB
    CMD["Command client<br/>new channel per call"]
    CUR[("Return cursor")]
  end
  subgraph K["KERNEL"]
    direction TB
    ADM{{"Admission per request<br/>identity, protocol, trust, ownership"}}
    CS[("Continuity store<br/>one file")]
    EM["Return emitter"]
    CS --> EM
  end
  CMD -.->|"command, opened per call"| ADM
  CUR <-->|"continuity, held"| CS
  EM ==>|"return, held, pushed"| CUR

The dashed lane is the only one that closes between uses, and it lands on an admission check every time. The two held lanes join the two stores that hold the position: the node's cursor and the kernel's continuity file.

Why the command lane opens per call

A command is a discrete authenticated act. Holding a channel between commands would keep a session alive across an ownership handover, so a displaced node could still be connected when it should not be.

Opening per call means acceptance is re-evaluated every time: identity, protocol compatibility, trust bundle agreement and ownership, all four, per request rather than once per session.

Why the return lane is held

The kernel pushes evidence and heartbeats as they occur. Reopening a channel per envelope would be polling wearing a stream's clothes, and an envelope would wait on average half an interval while the kernel answered a stream of empty questions.

The held channel is keyed by runtime instance and closed when ownership moves, so a fenced connection cannot outlive the session that owned it.

The run. namespace is not on any of them

Execution syscalls are kernel-native and application-facing. The operator lane refuses the namespace by name:

runtime.*   accepted on the command lane
run.*       unsupported_on_operator_lane

The refusal has its own reason code rather than being a missing route, so a caller can tell a boundary from a fault. A node's credentials on the operator lane grant supervision of a runtime and nothing about what it executes.

The kernel's continuity store

Behind the return lane the kernel keeps one append-only file at the path the data plane declares, holding the envelopes and the lane cursor together.

One file rather than two is a deliberate choice: two would invite the state where one is stale and nothing on disk says which is authoritative.

The continuity document reports the lane's position, and its own invariants hold:

return_envelope_count   how many envelopes exist
last_acked_seq          the consumer's confirmed position
terminal_seq            the terminal envelope, if one exists
max_seq                 the highest sequence written
store_path              where the store lives
fault_summary           faults observed on the lane

last_acked_seq is never greater than max_seq, and a terminal sequence is never beyond it either. A document violating those is refused rather than recorded.

What the lifetimes mean for a break

A command lane failure affects one call. A return lane failure affects delivery, and the kernel keeps appending to its store while the consumer is away. Neither loses position, because position lives in the store rather than in the channel.

See What the kernel does while the link is down.