The identity token is the only carrier of a session’s name. The hub mints
signed tokens (issHUB_ISSUER, EdDSA, verified by the relay against
the hub’s JWKS); a client that cannot reach the hub mints the same shape
unsigned (issSELF_ISSUER, algUNSIGNED_ALG, empty signature)
and the relay treats the name as unverified. Keep the claim shape in sync
with manabrew-hub/src/auth/token.rs.
Typed envelope carried inside ClientMessage::BroadcastState.state /
ServerMessage::StateUpdate.state. One discriminator (kind) plus the
payload for that variant. Constructed and parsed in every layer that
touches the relay (engine, bot, host, web/Tauri UI) — anything that needs
to handcraft json!({"kind": "..."}) belongs here instead.