Binding fabric¶
When a project and the model it binds to run on different nodes, the control plane plans a private fabric route and sends each node one half of it. The binding fabric is the node's model-side handling of that half. On the model's node it puts an export gateway in front of the model's Service; on the project's node it puts a local binding Service in the project's namespace and an import gateway behind it. The project's kernel calls the local Service exactly as it would call a model beside it, and the fabric carries the call to the model over an mTLS tunnel between the two nodes. This page covers the three route assignments, what the node creates for each half, the evidence it reports, and teardown.
For how the planner chooses a fabric route, see
Binding routing and locality.
For the tunnel, the route identity and the order in which a route earns
route_ready, see
Private fabric.
The two halves of one route¶
flowchart TB
subgraph CP["CONTROL PLANE"]
direction LR
IMP[("model.binding_route.import.v1<br/>for the project's node")]
EXP[("model.binding_route.export.v1<br/>for the model's node")]
end
subgraph PN["PROJECT NODE"]
direction TB
K["Project kernel"]
LS["Local binding Service<br/>ClusterIP, project namespace"]
IG["Import gateway<br/>system/private_fabric"]
K -->|"inference call"| LS --> IG
end
subgraph MN["MODEL NODE"]
direction TB
EG["Export gateway<br/>system/private_fabric"]
MS["Model Service<br/>internal scope"]
MR["Model runtime"]
EG --> MS --> MR
end
IMP -->|"pulled"| LS
EXP -->|"pulled"| EG
IG <==>|"private tunnel, mTLS"| EG
The only edge between the nodes is the tunnel, and both of its ends are
identities enrolled into the same organization. Neither half is reachable from
outside the cluster: every object the binding fabric creates is a ClusterIP
Service with public_exposure: false.
The route assignments¶
Every route assignment carries binding_id and the route class
xratu_managed_private_fabric; an assignment with any other class is refused.
Each kind then requires its own fields:
| Assignment | Required fields |
|---|---|
model.binding_route.export.v1 |
workspace_uuid, project_name, project_version, model_name, model_version, model_digest, source_dataplane_node_id, source_model_namespace, source_model_service_ref, export_gateway_service_ref, mtls_identity_reference, lease_id, fence_epoch, policy_digest, and a non-empty allowed_destination_dataplane_identities |
model.binding_route.import.v1 |
workspace_uuid, project_name, project_version, destination_dataplane_node_id, project_runtime_namespace, local_binding_service_ref, destination_gateway_service_ref, source_export_gateway_identity, mtls_identity_reference, lease_id, fence_epoch, policy_digest, and a non-empty allowed_source_dataplane_identities |
model.binding_route.revoke.v1 |
source_dataplane_node_id, destination_dataplane_node_id, revoke_generation, fence_epoch, teardown_deadline, and non-empty expected_binding_artifacts and expected_route_artifacts |
The allowed identity lists name the one peer each half accepts, so the export gateway admits only the project's node and the import gateway reaches only the model's node. The model digest pins the route to one model version.
What the node creates¶
On the model's node, the export half renders the export gateway:
mode export
upstream source_model_namespace / source_model_service_ref, scope internal
network policy allow from system/private_fabric
allow to the model Service only
binding identity mtls_identity_reference
service type ClusterIP, public_exposure false
On the project's node, the import half renders the local binding Service and the import gateway it forwards to:
service local_binding_service_ref in project_runtime_namespace
allowed callers project-runtime-kernel
network policy allow from project-runtime-kernel
allow to system/private_fabric
target destination_gateway_service_ref
service type ClusterIP, public_exposure false
The local Service accepts calls from the project's kernel and nothing else, and it forwards only into the fabric. The kernel always calls a local Service, whether the model is beside it or on another node, so a binding moving onto the fabric changes nothing in the project.
Each half then asks the private fabric for the route's state: the peer connection, the private handshake, the authenticated peer identity and the gateway probe.
Reporting a route¶
The node reports each route assignment through the ordinary status lifecycle:
ackwith statusaccepted, thebinding_idand the contract version.progresscarrying the route's state: status, evidence, route health, the gateway and the local Service it rendered.completeonce the route reachesroute_ready,route_blockedorteardown_ready. A route that is stillroute_pendingstays open until it reaches one of the three.
A route that is ready reports model.binding_route.ready_evidence.v1:
| Field | Holds |
|---|---|
binding_id, source_dp_node_id, destination_dp_node_id |
The route and its two ends |
model_name, model_version, model_digest |
The model version the route serves |
local_binding_service_ref, export_gateway_ref |
The two Services at its ends |
private_route_class |
xratu_managed_private_fabric |
mtls_identity, identity_revision, authenticated_peer_identity |
The identity the route presented and the peer it authenticated |
network_policy_digest |
SHA-256 of the route assignment the policy was rendered from |
last_private_handshake_timestamp, gateway_probe_healthy, health_status |
The route's health when reported |
failure_reason |
The first unmet readiness condition, empty when ready |
The node also keeps each live route in its fabric state and reports the set in its heartbeat, so the control plane sees the routes a node holds without waiting for an assignment.
A route assignment that fails validation completes as failed with
MODEL_BINDING_ROUTE_RECONCILE_FAILED, a model.binding_route.failed event
and an error log with the reason.
Teardown¶
A route is removed only by a revoke assignment. The
revoke carries a revoke_generation, the fence_epoch and a
teardown_deadline, and lists the binding and route artifacts the node is
expected to remove.
flowchart TB
RV[("model.binding_route.revoke.v1")]
FT["Private fabric removes<br/>the route artifacts"]
RC{{"Gateway still referenced<br/>by another binding?"}}
KEEP["Keep the shared gateway<br/>and tunnel"]
DROP["Remove the shared gateway"]
EV[("model.binding_route.teardown_evidence.v1<br/>teardown_ready")]
RV --> FT --> RC
RC -->|"yes"| KEEP --> EV
RC -->|"no"| DROP --> EV
The local binding Service and the route's policy and identity artifacts belong to one binding and are always removed. A gateway and a tunnel can serve several bindings between the same two nodes, so they are reference counted and removed only when the last binding using them is revoked. The teardown evidence lists what was removed:
removed_local_service_refs
removed_gateway_refs
removed_route_artifacts
removed_policy_artifacts
removed_identity_artifacts
shared_resource_reference_counts shared_gateway, shared_tunnel
teardown_status
When the route reports teardown_ready, the node drops it from its fabric
state and its heartbeat.