Daemon lifecycle and the reconcile loop¶
How a node starts, what one turn of its loop does, and what bounds the work in it. These pages are the mechanism behind a node's rhythm, which is what most "why is this node not doing anything" questions resolve to.
The daemon¶
flowchart LR
subgraph PROC["XRATUD PROCESS"]
direction TB
PRB["Probe server<br/>up for the whole lifetime"]
subgraph LOOP["RUN LOOP"]
direction TB
CY["One cycle<br/>five phases"]
SL["Sleep<br/>interval or backoff"]
CY --> SL --> CY
end
end
DISK[("Volume<br/>seed, identity, cursor")]
CP["Control plane"]
K["Kernels"]
DISK --- PROC
CY -->|"outbound only"| CP
CY -->|"dialled"| K
The probe server wraps the loop, and the loop is the only thing that reaches outward. What the process knows between restarts is on the disk beside it.
In this section¶
xratudstartup and bootstrap wiring covers the start sequence, the validated seed, and what the node is bound to.- The run loop covers the three cycle outcomes and why a transient control-plane error replaces the interval.
- Cycle orchestration covers the worker and flush budgets, and which of three limits is binding.
- The worker reconcile pipeline covers the ordered gates each assignment passes and how a block names its gate.
- Watch cursor and pull ingest covers the four revisions, identity binding, corruption, and why persistence never moves backwards.
- Component wiring covers what is built at startup and the one component whose failure leaves the node running.