Skip to content

Private fabric

A fabric route is the control plane's last resort for a model binding. The locality planner uses it when a project and the model it calls cannot be brought together: they share no node or cluster namespace, the project's node cannot host the model, and the model's node cannot host the project. Only then, and only when both nodes advertise the managed private fabric, xratu_managed_private_fabric, does the control plane send each node a route assignment; otherwise the binding is rejected.

The two ends of a route are enrolled nodes, and the identity each presents is rooted in its enrollment. This page is how a route's identity is formed from the assignment, what a route assignment must carry, and the order in which a route earns route_ready, so a route stuck in route_pending can be placed at one step. For the planner's order, see Binding routing and locality.

For the fabric agent, its ports and the peer authorization lists, see The private fabric and The fabric agent.

An example: a project on AWS, its model on GCP

The names below are examples. The project orders runs on node dp-aws-1 in pool aws-eu-west1, and it binds its summariser alias to the model llm-small, which is served on node dp-gcp-1 in pool gcp-europe-west4, the pool with the GPUs.

flowchart TB
  subgraph CP["CONTROL PLANE"]
    direction LR
    PL{{"Locality planner"}}
    IMP[("Import assignment<br/>for dp-aws-1")]
    EXP[("Export assignment<br/>for dp-gcp-1")]
    PL --> IMP
    PL --> EXP
  end
  subgraph AWS["AWS, pool aws-eu-west1"]
    direction TB
    P["orders<br/>project runtime"]
    S["mbind-token Service<br/>orders namespace"]
    FA["Fabric agent<br/>import gateway"]
    XA["xratud dp-aws-1"]
    P -->|"calls"| S --> FA
    XA -->|"7443"| FA
  end
  subgraph GCP["GCP, pool gcp-europe-west4"]
    direction TB
    FG["Fabric agent<br/>export gateway"]
    M["llm-small<br/>model runtime"]
    XG["xratud dp-gcp-1"]
    FG --> M
    XG -->|"7443"| FG
  end
  IMP -->|"pulled"| XA
  EXP -->|"pulled"| XG
  FA <==>|"51820, mTLS, private"| FG

The binding is planned when it is made, and the planner works through its options in order:

  1. The two placements share no pool and node, and no cluster and namespace, so the binding is not local.
  2. dp-aws-1 has no approved model runtime namespace, so the model cannot be expanded onto it.
  3. dp-gcp-1 has no approved project runtime namespace, so the project cannot be relocated to it.
  4. Both nodes advertise xratu_managed_private_fabric, so a fabric route is planned.

The plan is recorded with its reason:

contract_version  model.binding_locality.plan.v1
kind              approved_private_cross_dp_fabric_route
decision          allow
reason            private_fabric_route_assignments_required
route_class       xratu-managed-private-fabric

The control plane then sends two assignments. dp-aws-1 pulls the import half, model.binding_route.import.v1, and brings up the mbind-<token> Service in the orders namespace and the import gateway behind it. dp-gcp-1 pulls the export half, model.binding_route.export.v1, and brings up the export gateway in front of llm-small. Each node reconciles its half through its own fabric agent, and the two agents connect on 51820.

Each node reports its route route_pending until its peer is connected, the private handshake has completed, the peer's identity is authenticated and the gateway probe is healthy, and then reports readiness evidence. Once that evidence carries the mTLS identity and the handshake time, the planner's reason for the same binding reads private_fabric_route_ready.

orders calls the mbind-<token> Service in its own namespace, the same way it would call a model beside it. The model's endpoint on GCP is reachable only through the export gateway, and the route carries public_exposure: false.

Had dp-gcp-1 approved a project runtime namespace, step 3 would have ended the search: the plan would have been project_relocation, orders would have run beside llm-small on GCP, and no fabric route would have been assigned.

A route

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    EX[("Export assignment<br/>model.binding_route.export.v1")]
    IM[("Import assignment<br/>model.binding_route.import.v1")]
  end
  subgraph MN["MODEL NODE, enrolled"]
    direction TB
    XM["xratud"]
    FM["Fabric agent"]
    XM -->|"7443"| FM
  end
  subgraph PN["PROJECT NODE, enrolled"]
    direction TB
    XP["xratud"]
    FP["Fabric agent"]
    XP -->|"7443"| FP
  end
  EX -->|"pulled"| XM
  IM -->|"pulled"| XP
  FP <==>|"51820, private,<br/>peer identity authenticated"| FM

Each node receives its own half of the route and reconciles it through its own fabric agent. The one edge between the nodes runs agent to agent, and both of its ends are identities the same organization enrolled.

A route assignment names both ends

A route assignment is accepted only with the route class xratu_managed_private_fabric and these fields present:

binding_id
source_dataplane_node_id, destination_dataplane_node_id
mtls_identity_reference
lease_id, fence_epoch
policy_digest

A teardown assignment, model.binding_route.revoke.v1, carries the pair, binding_id, fence_epoch, a revoke_generation and a teardown_deadline, so a route is removed by assignment. Both kinds carry a fence epoch.

The route's identity comes from enrollment

The node forms the route's identity from the assignment rather than choosing one:

mtls_identity_reference   named by the assignment
trust_chain               bootstrap_enrollment
identity_revision         carried by the assignment, pending until issued
rotation_required         true

bootstrap_enrollment is the trust chain for every route. A peer is acceptable only if it enrolled into the same organization under its bootstrap authority, and the peer authorization lists on the assignment narrow that further to the pair the control plane planned. The route identity is recorded with rotation_required: true and the revision the assignment named.

How a route earns route_ready

The node evaluates a route's observed state in a fixed order and reports the first condition that is unmet:

Order Condition Reported while unmet
1 No public exposure is detected route_blocked, public_exposure_detected
2 The peer is connected route_pending, wireguard_peer_not_connected
3 A private handshake has completed route_pending, private_handshake_pending
4 The peer's identity is authenticated route_pending, authenticated_peer_identity_missing
5 The gateway probe is healthy route_pending, gateway_probe_not_healthy

A route that passes all five is route_ready, and the node reports readiness evidence under model.binding_route.ready_evidence.v1. Public exposure is the one condition that blocks rather than waits, because it is the one the route exists to prevent. A completed teardown is reported under model.binding_route.teardown_evidence.v1.

The failure reason names the step, so a route that stays pending is read from its reason: a disconnected peer is a network path, a missing authenticated identity is an enrollment or trust problem, and an unhealthy probe is the model side of the route.