Skip to content

Re-handshake

A node holds two links, and each one has a handshake that must hold before work flows over it. After a break the node re-establishes both: it registers with the control plane again, and it handshakes with each project kernel it owns. The two are independent and they fail differently.

This page covers each handshake's trigger, what it establishes, and how the return lane resumes once the kernel handshake completes.

The two handshakes

Link Triggered by Establishes
Node to control plane A registry flag that is false, or a missing registration identifier Registration, the node's advertised capabilities list, its lease TTL, and protocol compatibility
Node to project kernel A dropped stream, or a session recorded again after reconciliation The same workload identity and fence epoch, and the return lane's opening sequence

Registering with the control plane again

Registration is checked at the start of every cycle and performed when either the registry says the node is not registered or the client holds no registration identifier. The payload carries the node's label, its capabilities list, its identity claims and the control-plane identity values it was issued under, with a lease TTL of twice the heartbeat interval and a floor of five seconds.

A registration the control plane no longer recognises is recovered explicitly: the node clears its local registration, logs the loss, and registers again.

{
  "message": "agent registration lost; re-registering",
  "details": { "reason": "agent_not_found" }
}

Protocol compatibility is checked fail-closed on the same path. A control plane answering with an incompatible protocol version or assignment schema version suppresses intake with a reason code and leaves the node's position unchanged:

{
  "items": [],
  "next_revision": 812,
  "suppressed": true,
  "reason": "incompatible_protocol",
  "reason_code": "PROTOCOL_VERSION_INCOMPATIBLE"
}

A node in that state keeps its position, keeps reporting, and takes no new work, until an upgrade brings the versions back into range. See Protocol handshake and compatibility gating.

Handshaking with a kernel again

flowchart TB
  subgraph NODE["DATA PLANE NODE"]
    direction TB
    EP["Re-resolve Service and EndpointSlice"]
    HS["Handshake with the same<br/>identity and fence epoch"]
    LANE["Open the return lane<br/>at the position held"]
    EP --> HS --> LANE
  end
  subgraph POD["PROJECT RUNTIME POD"]
    direction TB
    ADM{{"Identity, protocol,<br/>trust bundle, ownership"}}
    STORE[("Continuity store")]
  end
  HS --> ADM
  ADM -->|"admitted"| STORE
  STORE -->|"envelopes from the opening sequence"| LANE

Identity, protocol, trust bundle, ownership is re-evaluated per request, so a handshake holds only while the conditions it was granted under hold. The node offers the same workload identity and the same fence epoch it held, because a changed value describes a different session.

The return lane resumes last

The handshake ends with the lane opening at the position the node holds, and the position governs what the kernel sends. Nothing is replayed until the handshake has been admitted, so an envelope never arrives on a connection whose ownership has not been established.

within one process     the lane opens at the last acknowledged sequence
after a restart        the lane opens at zero and the kernel replays what it holds
after a handover       the new owner's lane opens at its own position

See Cumulative acks.