Skip to main content

World events

Worlds emit world.event notifications for state changes not tied to a specific action: entity_appeared, entity_removed, collision, e_stop_engaged, e_stop_released, envelope_violation, grant_expired, safe_state_entered, safe_state_exited, channel_degraded, world_resetting, world_shutdown, embodiment_transferred. Events carry ts_mono_ns, status_seq, and structured detail. Custom events use x-<vendor>. names. [AWP-EVT-001] world.event notifications travel only on the control channel, where status_seq orders them against action statuses and resumption replays them. A text/event+json observation channel carries the world’s own structured samples — detections, scene deltas, game state — and MUST NOT carry the events of this registry. [AWP-EVT-003] e_stop_engaged, e_stop_released, envelope_violation, safe_state_entered, safe_state_exited, and embodiment_transferred concern an embodiment and MUST name it in detail.embodiment. An occurrence that concerns several embodiments, such as an e-stop that halts them all or safe-state entry of a multi-bind session, is reported as one event per embodiment. [AWP-EVT-004] e_stop_engaged MUST terminate every non-terminal action: executing actions → failed (reason e_stop); pending_approval, queued, and accepted actions → cancelled (reason e_stop). Action admission is suspended (AWP_ESTOP_ACTIVE) until e_stop_released. [AWP-EVT-002]

Status reasons

Terminal action.status notifications in rejected, failed, or cancelled carry a reason, and preempted MAY carry one, from this registry (AWP-LIF-004). Vendor reasons use x-<vendor>. names.

Error taxonomy

Errors surface as JSON-RPC error objects with AWP codes (see error codes): Every AWP error object (codes 1000–4999) marks retryable: true|false in data. JSON-RPC reserved errors (−32768 to −32000, e.g. -32601 for an unknown method, AWP-CTL-002) MAY omit data and are non-retryable unless data says otherwise. Agents MUST NOT retry a request refused with a non-retryable error with identical parameters; a submission retries a refused one when its type, params, and embodiment_id are the same, whatever its action_id. [AWP-ERR-001]