Skip to content

Fabric capabilities

When a project and the model it calls cannot be placed together, because they share no node or cluster namespace and neither node can host the other's side, the control plane assigns a private fabric route between their nodes, provided both nodes advertise the managed private fabric, xratu_managed_private_fabric. The data plane establishes the route under that assignment. Two service capabilities are involved: the fabric itself, and the model binding that consumes it.

The fabric is assigned, not chosen

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    LP{{"Locality plan"}}
    EX[("Export assignment")]
    IM[("Import assignment")]
    LP --> EX
    LP --> IM
  end
  subgraph N1["PROJECT NODE"]
    direction TB
    X1["xratud"]
    F1["Fabric agent"]
    PR["Project runtime"]
    X1 -->|"7443"| F1
    PR -->|"local Service"| F1
  end
  subgraph N2["MODEL NODE"]
    direction TB
    X2["xratud"]
    F2["Fabric agent"]
    MR["Model runtime"]
    X2 -->|"7443"| F2
    F2 --> MR
  end
  IM -->|"pulled"| X1
  EX -->|"pulled"| X2
  F1 <==>|"51820, private,<br/>peer identity authenticated"| F2

Each node pulls its own half of the route and reconciles it through its own fabric agent on port 7443. The thick edge runs agent to agent on 51820, exists only between two nodes the control plane paired, and each end checks that the other is the peer its assignment names.

A route exists because the control plane's locality plan resolved to one and produced the two assignments. See Binding routing and locality.

Route states

route_pending     being established
route_ready       usable
route_blocked     cannot be established under current conditions
teardown_ready    torn down

route_blocked is a state rather than an error, so a binding waiting on a route is readable as a condition with a reason instead of a failure that has to be inferred.

Two ports, two purposes

7443    the fabric's gRPC control surface
51820   the WireGuard data path

Neither is a public endpoint. The route is private between nodes, and the model endpoint is not exposed publicly to make it reachable.

What the fabric service capability owns

Concern Owns
Route lifecycle Reconcile, health, and teardown of a route
Peer authorisation Which peer may establish a route, and on what identity
Tunnel The transport that carries traffic once the route is ready
Evidence What the route produced, reported upward
Collection Removing routes that are no longer assigned

Peer authorisation is the part worth knowing: a route is not established because a peer asked, but because the control plane assigned it and the peer's identity matches what was assigned.

Binding fabric consumes it

The model binding fabric is a separate service capability that processes binding route control tasks and keeps its own reconcile state. The split is between having a route and using one: the fabric establishes and maintains connectivity, and the binding fabric is what a model call travels over.

What a blocked route means upstream

A run whose model binding has no ready route is held rather than failed, by the control plane's dispatch guard, and released when the route resolves. So a route_blocked on a node and a held run in the control plane are two views of one condition. See Dispatch guard.

Teardown is reconciled too

A route that is no longer assigned is torn down through its own contract rather than left to expire. Teardown has its own ready state, so the node can report that a route is gone rather than only stopping to report that it is there.