Skip to main content
  • Binding occurs at session.open; a non-shared embodiment already bound elsewhere yields AWP_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.open with takeover: true and a transfer token minted by the current holder via session.transfer. The previous holder’s executing actions end preempted and its pre-execution actions cancelled, both with reason transferred (AWP-LIF-008); an abort already under way ends as it would have. A transfer token is single-use and expires after expires_in_ms; session.open with a token that is unknown, used, expired, or not the current holder’s fails with AWP_EMBODIMENT_UNAVAILABLE and changes nothing. The token belongs to the holder’s session: the receiving session.open names the embodiment it takes in embodiment, and a takeover naming embodiments fails with AWP_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 with AWP_FORBIDDEN (AWP-EMB-004). The world tells the holder with world.event: embodiment_transferred (detail.embodiment). A world without transfer answers session.transfer as an unknown method and takeover with AWP_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_group in the manifest; session.open then names them in embodiments (instead of embodiment) and every action submission carries embodiment_id. Binding embodiments from different groups in one session MUST be rejected with AWP_EMBODIMENT_UNAVAILABLE. In a multi-bind session, a submission without embodiment_id MUST fail with JSON-RPC -32602 (Invalid params), and one whose type the named embodiment does not offer with AWP_FORBIDDEN (AWP-ACT-003). [AWP-EMB-005]