AdmitMessage
Wire messages that implement the admit/identify handshake.
Framing: each AdmitMessage is CBOR-encoded and sent as a us.tractat.kuilt.core.Swatch payload. The receiver detects admit frames by a discriminator prefix tag (PREFIX_BYTE) that application frames must not start with — this avoids a separate channel or wrapper envelope.
Handshake flow, in its first form:
Joiner → Host : Hello(identity)
Host → Joiner : Welcome(assignedId, identity)
Host → all others : Welcome(assignedId, identity) [roster broadcast]If the host refuses the joiner (a version it cannot admit, a room it does not serve, a proof that fails, another device's key on a connected member's id):
Host → Joiner : Reject(reason, code)The host-side runs this passively for incoming Hellos. The joiner sends Hello immediately upon transport connection and waits for Welcome or Reject.
Since protocol v3 (#3210) every Hello and Welcome names a member's device key. Since v4 (#3211) the host admits only a joiner that proves it holds that key:
Joiner → Host : Hello(identity, key, joinerNonce)
Host → Joiner : Challenge(signed by the host's key, echoing joinerNonce)
Joiner → Host : Proof(signed by the joiner's key, over the challenge's hostNonce)
Host → Joiner : Welcome(…) or Reject(BadProof)Since v7 (#3215) a joiner's return after a dropped link is the same exchange: it says Hello again, and there is no separate resume frame. The direct Welcome and every Reject name the Hello they answer (Welcome.answers, Reject.answers), and the direct Welcome names the membership it admits (Welcome.membership). The rest of the admission burst — a Welcome per existing member, then the host's intro — names the same Hello, only to say which burst it belongs to (#3615):
Host → Joiner : Welcome(…, answers = joinerNonce, membership) or Reject(code, answers = joinerNonce)
Host → Joiner : Welcome(member…, answers = joinerNonce) …, Welcome(host, answers = joinerNonce)A roster copy to the other members names no Hello.
Inheritors
Types
Sent by a joiner to the host on a deliberate us.tractat.kuilt.session.Room.leave.
Sent by the host to a connected member: a fresh pass back in, renewing the one its direct Welcome carried (v8, #3221).
Sent by a joiner to the host immediately after transport connection.
Sent by the host to every other member when a member's link drops and its seat is being held open — the presence counterpart of Farewell's eviction (#1557).
Sent by the host to every other member when a paused member's link recovered inside its reconnect window, or it resumed there — the release counterpart of Paused (#1557, #2908).
Sent by the host to confirm admission.