adopt
Adopt an already-woven seam into a Room with an explicit role — no re-weave.
Unlike host/join (which each weave through the loom), adopt takes ownership of a seam the caller wove, so the calling layer can weave the mesh once and decide role afterward (the host-election lobby, #1439). The returned Room owns the seam's lifetime from here: Room.leave closes it — correct, because the seam is handed over exactly once.
role is fixed for the room's lifetime. A host's role carries what only a host needs: the AdoptRole.Host.admission it decides newcomers with, and the room's identity (AdoptRole.Host.roomId) when the caller supplies one. A joiner learns the room's id from the host's Welcome, and decides nothing, so AdoptRole.Joiner carries neither. roomKey is the admit-gate key (us.tractat.kuilt.core.Pattern.roomKey); memberName is this peer's own roster label (null → peer-id-derived).
reweave threads resume-after-tear into the adopted room (#1618). When null (the default) a joiner whose host link tears goes terminal (MembershipEvent.HostLost) — the pre-#1618 behaviour, correct for a seam that cannot heal. When the adopted seam self-heals in place (a fabric that re-forms Woven → Weaving → Woven on peer loss rather than latching us.tractat.kuilt.core.SeamState.Torn — e.g. a redialing radio loom), pass reweave = { seam } so a transient blip runs the JoinerResumeMachine reconnect (wait for Woven, say Hello again) instead of going straight to terminal. See the SeamRoom reweave KDoc for the same-instance-heal contract this must satisfy.
A host's room id does not make a host restart resumable — see Room.roomId: a restarted host holds no seats.
deviceId travels in this peer's Hello when it joins, and the host records it as the member's MemberIdentity.deviceId. Null, the default, sends none. A host sends no Hello, so a host adopt ignores it.