Detecting a kernel link break¶
The kernel link distinguishes a refusal from a failure, and treats them oppositely. A refusal is an answer that will not change; a failure is the absence of one. This page is that split and the closed set of answers behind it.
The rule¶
flowchart TB
A["Call to the kernel"]
B["An answer came back"]
C["No answer"]
D["Is the reason terminal?"]
E["Stop. No retry, no reconnect"]
F["Retry with backoff"]
A --> B
A --> C
B --> D
D -->|yes| E
D -->|no| F
C --> F
Where the classification happens¶
flowchart LR
subgraph XD["XRATUD"]
direction TB
GC["gRPC client"]
CL{{"Classifier<br/>terminal or retryable"}}
BO["Backoff<br/>0.1 s to 30 s"]
GC --> CL
CL -->|"retryable, or no answer"| BO
BO --> GC
end
subgraph K["KERNEL"]
direction TB
AD{{"Admission<br/>answers one of nine reasons"}}
end
GC -->|"runtime.* call"| AD
AD -->|"reason"| CL
CL -.->|"terminal"| STOP["Stop: no retry,<br/>no reconnect"]
The kernel only answers; the node decides what the answer means. A reason and a missing answer both reach the same classifier, and only a terminal reason leaves the retry loop.
The nine answers¶
| Reason | Means |
|---|---|
accepted |
The command was admitted |
malformed_request |
The request did not parse against the contract |
peer_identity_rejected |
The verified certificate is not the expected identity |
protocol_mismatch |
The two sides disagree on the control protocol version |
ownership_rejected |
The caller is not the current owner, as non_owner or stale_fence |
unsupported_operator_command |
The command is outside the allowlist |
unsupported_on_operator_lane |
The command is in the run. namespace |
startup_not_ready |
The kernel has not finished starting |
startup_evidence_incomplete |
Startup evidence is not yet complete |
Both sides read one published projection of this vocabulary, so a reason code
is behaviour rather than message text. The node branches on stale_fence and
the kernel emits that same string from the same source.
Seven are terminal¶
stale_fence runtime_session_non_owner
runtime_session_not_found peer_identity_rejected
unsupported_on_operator_lane unsupported_operator_command
trust_bundle_digest mismatch
A terminal answer stops the node immediately, whatever retry budget remains, and it also stops the reconnect. Re-establishing a fenced session is how two nodes come to believe they both own one runtime, so the connection attempt ends with the call.
Everything else is retried and reconnected¶
Failures and non-terminal refusals are retried with a delay starting at 0.1 seconds, doubling per consecutive attempt, capped at 30 seconds. The connection is re-established too, because a kernel that vanished is usually coming back: rescheduled, restarted, or drained onto another node.
The two startup reasons are the clearest case. A kernel that is still starting will answer differently shortly, so retrying is the correct response and treating it as a break would be wrong.
Ownership failures are classified¶
An ownership rejection carries which kind it is, and the node reacts differently:
A foreign node and a displaced former owner are different situations. Both are terminal, and the distinction is there for whoever reads the event afterwards.
Why a mutation is never retried after a refusal¶
Retrying a mutation after a handover risks acting on a runtime another node now controls. The refusal is not a transient condition to wait out; it is the system telling this node that its authority ended.
See Ownership handover across a break and Recovering the kernel link.