- Binding occurs at
session.open; a non-shared embodiment already bound elsewhere yieldsAWP_EMBODIMENT_UNAVAILABLE.[AWP-EMB-001] - On session close or reconnect-window expiry, the world MUST release the embodiment after it has entered its declared safe state (
safety_policy.safe_state.behavior, e.g.hold,safe_stop,park). Safe-state entry itself is triggered earlier, by the watchdog (AWP-SAF-003/004), not by window expiry; release is the last step.[AWP-EMB-002] - Transfer. Worlds MAY support handoff: the receiving session calls
session.openwithtakeover: trueand a transfer token minted by the current holder viasession.transfer. The previous holder’s executing actions endpreemptedand its pre-execution actionscancelled, both with reasontransferred(AWP-LIF-008); an abort already under way ends as it would have. A transfer token is single-use and expires afterexpires_in_ms;session.openwith a token that is unknown, used, expired, or not the current holder’s fails withAWP_EMBODIMENT_UNAVAILABLEand changes nothing. The token belongs to the holder’s session: the receivingsession.opennames the embodiment it takes inembodiment, and a takeover namingembodimentsfails withAWP_EMBODIMENT_UNAVAILABLE. A holder bound to several embodiments keeps the others and loses the transferred one’s action types and channel grants; a holder left with none continues as an observer session, whose grants are unchanged but whose submissions fail withAWP_FORBIDDEN(AWP-EMB-004). The world tells the holder withworld.event: embodiment_transferred(detail.embodiment). A world without transfer answerssession.transferas an unknown method andtakeoverwithAWP_EMBODIMENT_UNAVAILABLE.[AWP-EMB-003] - Observer sessions. A session with no embodiment binds observation grants only; action submission returns
AWP_FORBIDDEN.[AWP-EMB-004] - Multiple embodiments per session are permitted when they share a
multi_bind_groupin the manifest;session.openthen names them inembodiments(instead ofembodiment) and every action submission carriesembodiment_id. Binding embodiments from different groups in one session MUST be rejected withAWP_EMBODIMENT_UNAVAILABLE. In a multi-bind session, a submission withoutembodiment_idMUST fail with JSON-RPC-32602(Invalid params), and one whose type the named embodiment does not offer withAWP_FORBIDDEN(AWP-ACT-003).[AWP-EMB-005]
Layer 1 — Session & capabilities
Embodiments
Binding, releasing, transferring, and observer sessions.