Skip to main content
Draft revisions of 0.1 all negotiate "0.1" but are not wire-compatible with each other (before 1.0); each entry lists its wire-visible changes. Revisions are tagged spec-v0.1-draft.N in git.
0.1-draft.12
The game profile no longer requires snapshot/restore.Wire-visible changes. None.Clarifications
  • Snapshot in the game profile. The game profile no longer requires snapshot/restore. A world claims it when it advertises snapshot, and AWP-REP-002 binds those worlds as before. This lets game engines without exact restore claim the profile.
  • Chunk start. AWP-GAM-002 now starts a chunk at the world’s first input update after admission, since worlds apply input at discrete steps.
  • Trace. The replacing-device-input trace reports the replaced chunk at 4 of 6 slots, the slots completed by the boundary where it is preempted.
0.1-draft.11
Device-level input for game worlds.Wire-visible changes
  • Device input. The game profile reserves the action type input_chunk: keyboard, mouse, and gamepad state in fixed-length slots, with normative params in schemas/v0.1/profiles/input-chunk.schema.json. A world that declares it follows the declaration and narrowing, slot, replacement, and release rules (new AWP-GAM-001..004). A replacement takes over at the next slot boundary, and a chunk that ends without one releases everything, trading continuity for safety.
0.1-draft.10
Rules for worlds that bind several embodiments or several lockstep sessions, found by giving the reference world a second, shared embodiment, and requirement IDs for normative sentences that had none.Wire-visible changes
  • Barrier calls. Under tick_authority: "barrier", a world.tick records its session’s readiness for count advances. The world advances while every bound non-observer lockstep session, suspended ones included, has advances left, and answers each call after its last advance. A session has one pending call; another fails with AWP_BUSY. A pending call is discarded with a lost connection, fails with AWP_TICK_MISMATCH when a reset or restore moves the tick, and fails with AWP_SESSION_EXPIRED or AWP_TICK_NOT_AUTHORIZED when its session closes or becomes an observer (new AWP-TIM-014).
  • Multi-bind. A submission without embodiment_id in a multi-bind session fails with -32602, and one whose type the named embodiment does not offer with AWP_FORBIDDEN (AWP-EMB-005). A takeover names the one embodiment it takes; takeover with 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; it becomes an observer only when none is left (AWP-EMB-003).
  • Events about embodiments. e_stop_engaged, e_stop_released, envelope_violation, safe_state_entered, safe_state_exited, and embodiment_transferred name their embodiment in detail.embodiment, and an occurrence that concerns several embodiments is reported once per embodiment (new AWP-EVT-004). Safe-state entry leaves a shared embodiment that another session’s action is executing on to that session (AWP-SAF-004).
  • Tick grants. A world that may bind several lockstep sessions under any_session grants tick to at most one session at a time, as AWP-PRM-005 has it, rather than to exactly one (AWP-MA-005).
  • Reserved extension types. Senders MUST NOT emit types 0x00 or 0x04–0x7F, now under AWP-DAT-006.
Clarifications
  • New SHOULDs with IDs: a streaming action’s status carries stream at least once per second (AWP-CMD-009), and a robotics-profile world offers servo- or torque-level control on command channels (AWP-ROB-008).
  • The scene channel is optional; its rules apply to a world that offers one.
  • Approval requests go to the world’s approver connections on the control channel (AWP-APR-001).
0.1-draft.9
Standing approvals, and the answers to what the first independent implementation, a TypeScript agent written from the specification alone, found unclear.Wire-visible changes
  • Standing approvals. A world declares support with safety_policy.standing_approvals. An approver grants one alongside an approval, standing: { scope: { type, predicate }, expires_at_ns } — renamed from expires_at — scoped to the requesting session and its clock and ending with it. Submissions within it are admitted without approval, and their action.submit result carries the grant’s approval_id. A world refuses a standing approval with AWP_PARAMS_INVALID if it does not declare them, if the decision is deny, if the scope’s type is not the request’s, or if the predicate is not a JSON Schema (AWP-APR-004).
  • Out-of-range integers. The 2^53 − 1 bound applies to binary frames too. A receiver answers the request that carried a larger value with AWP_INTEGER_RANGE; a world closes the session with the new session.state reason protocol_error, and an agent sends session.close without awaiting its result. Either side then closes the connection with WebSocket close code 1002 and reason AWP_INTEGER_RANGE (AWP-CTL-009).
  • Malformed frames. A frame is malformed if its magic, version, or length is wrong, its extension block is inconsistent, a type repeats, or it carries resync without keyframe. The receiver drops it and, on a stream connection, closes the connection with close code 1002 and reason AWP_MALFORMED (new AWP-DAT-010, AWP-TRN-013). Extension types 0x00 and 0x04–0x7F are reserved. New vectors: an unknown version, trailing bytes, and resync without keyframe.
  • Lockstep resumption. After the replay, the world sends a resync keyframe carrying the current tick on every subscribed per-tick channel, latest-wins ones included, which also completes an advance whose frames were lost with the connection (AWP-TIM-009, AWP-TRN-008).
  • Transitions are reported once. A transition an action.cancel causes is reported in its result, every other one as an action.status notification (AWP-LIF-001); status_seq counts both (AWP-CTL-008).
  • Defaults. A submission that selects no preemption policy gets the first its type declares (AWP-PRE-001). After world.reset or world.restore, the fresh per-tick frames precede the initiating session’s result (AWP-PRM-006).
  • Schemas. Channel ids start at 1. session.state no longer lists negotiating, which is never sent. stream.clamped_count is required on streaming actions’ statuses. reconnect_window_ms and heartbeat_interval_ms in session.ready are required and have no default. The error message pattern admits JSON-RPC’s own Invalid Request.
Clarifications
  • Schema forms. The canonical schemas are in receiver form; x-awp-closed and x-awp-lint define the sender form every sent message must satisfy (AWP-VER-004).
  • A lost session. After AWP_SESSION_UNKNOWN the agent treats the session as closed and assumes nothing of it survives; opening a new session is how it continues, not an obligation (AWP-SES-008).
  • Resumption. An agent processes the replay through replay_to_status_seq before resubmitting an action whose admission it has not seen (AWP-AGT-007).
  • Retries. A resubmission retries a refused one when its type, params, and embodiment_id match, whatever its action_id (AWP-ERR-001).
  • Connections. The control connection’s WebSocket binding uses the awp subprotocol, one JSON-RPC message per text message (AWP-TRN-001). Neither side detects loss by silence before session.ready, or on a new connection before the session.resume result (AWP-SES-012). The agent clock is monotonic across the agent’s connections and sessions (AWP-CLK-006). A world never grants a reconnect_window_ms shorter than its watchdog_ms (AWP-SAF-003).
  • Channels. Per-tick channels are those a lockstep session is granted with rate_hz: null (AWP-TIM-003). Command channels are listed in granted.channels, and an endpoint without channels carries them too (AWP-CMD-002, AWP-TRN-012). While a lost stream connection is down its channels are sent in neither direction, not even inline, and one closed over a malformed frame is re-established like any lost one (AWP-TRN-010, AWP-DAT-010). An obs.report’s gaps leaves out the gap before a resync frame.
  • The inline frame schema’s flags description and the minimal vector’s payload length now match the text.
Requirement matrix. A row on both sides may give its agent side a separate test. The agent side of AWP-DAT-001 and AWP-DAT-009 is tested from the agent’s obs.report where it sends one, and needs manual evidence otherwise. AWP-OBS-007 is on both sides: worlds must accept the report, agents should send it. AWP-AGT-008 applies to streaming. New row AWP-DAT-010.
0.1-draft.8
Two rules the first conformance claim had to interpret, stated.Wire-visible changes. None.
  • Latest-wins in lockstep. The sender’s drop rule for latest-wins channels applies in streaming; in lockstep no frame is dropped, since every advance delivers its frame on every subscribed per-tick channel (AWP-DAT-002, AWP-TIM-003).
  • Milliseconds. _ms is a unit suffix, as the specification’s own fields (deadline_ms, watchdog_ms, and others) already use it (AWP-UNI-001).
Requirement matrix. AWP-DAT-002 applies to streaming.
0.1-draft.7
What a stream binding and the features beyond Core had to decide, found by implementing them in the reference world and testing them with the suite.Wire-visible changes
  • Moving a channel. A channel is delivered inline until a stream connection carrying it is established, then only there, starting with a resync keyframe; an endpoint without channels carries every channel of the session. A late inline frame is discarded by its receiver, not counted as loss (AWP-TRN-012).
  • Stream connections. On ws, one binary frame per message, the session token as the bearer credential, the awp subprotocol; a message that is not a valid frame closes the connection with AWP_MALFORMED (AWP-TRN-013). While a lost stream connection is down its channels are not delivered inline (AWP-TRN-010); suspension closes stream connections, and after resumption channels are inline until they are re-established (AWP-TRN-008).
  • Transfer. Transfer tokens are single-use and expire; a bad one fails AWP_EMBODIMENT_UNAVAILABLE and changes nothing. The previous holder continues as an observer and receives the new event embodiment_transferred (AWP-EMB-003, AWP-EVT-001).
  • Approvers. An approver is a control connection the deployment authorizes; it needs no session. safety.approval.respond from anyone else fails AWP_FORBIDDEN, and for an unknown or decided approval AWP_PARAMS_INVALID. expires_at_ns is on the requester’s session clock (AWP-APR-007).
  • Lockstep clock. The session clock counts advances and never moves backward; the tick is world state that reset and restore may move, carried as simulated time in ts_sim_ns once the two diverge (AWP-TIM-013). approval_timeout_ms is measured on the session clock.
  • Seeding and snapshots. seed seeds random sources and changes no other state; determinism holds for runs from the same state (AWP-REP-001). Restore brings back random sources and the tick; an unknown snapshot token fails AWP_PARAMS_INVALID (AWP-REP-002). Replay feeds every call that changes action state — including world.reset, world.restore, and session.close — in recorded order (AWP-REP-003).
  • Command frames. They travel inline as cmd.frame or on a stream connection; dropped and clamped frames count in stream.clamped_count (AWP-CMD-006).
Requirement matrix. AWP-SEC-003 applies to every session; AWP-SEC-004 applies whenever stream endpoints are offered; AWP-AUD-005 needs a recorded replay as evidence.Artifacts. The reference world implements the ws binding, task, approval, blend, transfer, seeding, snapshots, replay bundles, and a servo command channel; the conformance suite tests each.
0.1-draft.6
The conformance suite is published, and the claim rules say what its report must show.Wire-visible changes. None.Conformance. awp-conformance runs the matrix’s assertions against a world at a URL, or against an agent launched beside a harness world (AWP-CNF-004). “AWP-conformant” now requires a suite report for the named revision with no failure and nothing untested in scope, plus the evidence for every manual row; everything else is “self-assessed against 0.1-draft.N” (AWP-CNF-005).Requirement matrix. Rows the suite cannot observe on the wire are relabelled: transport backpressure (AWP-DAT-002, AWP-TRN-009), the frame test vectors, which exercise an implementation’s own decoder (AWP-DAT-008), and unit naming (AWP-UNI-001) need manual evidence; semver policy (AWP-VER-001) and artifact versions (AWP-VER-006) are process rules. AWP-SAF-005 is an agent requirement, and AWP-AUD-005 applies only with capability:replay.Artifacts. Conformance test suite, badges, and registry pages; the reference implementation’s pages.
0.1-draft.5
Choices a first implementation had to make on its own, now written into the text.Wire-visible changes
  • Lockstep clock. The session clock in lockstep is simulated time: it moves only with advances, by the same amount each time, and every timing bound on it measures simulated time (AWP-TIM-013). Clock synchronization applies to streaming sessions only (AWP-CLK-008/009).
  • Replace in lockstep. A replacing submission cancels the group’s pre-execution actions at admission; the executing action is preempted at the start of the next advance, not at admission (AWP-PRE-007).
  • Rate limits. max_action_rate_hz and retry_after_ms are measured on the session clock; in lockstep an agent clears the limit by advancing (AWP-ENV-004).
  • Closing. session.close is answered only after every action has ended and session.state: closed has been sent. While closing, new work, cancellation, subscription changes, advances, resets, and resumption fail with AWP_SESSION_EXPIRED; in lockstep the abort completes without an advance (AWP-SES-011).
  • Connections without a session. Worlds MAY close a silent connection that has no session, after at least 15 s; pongs on such a connection do not feed the clock estimate (AWP-SES-012).
Artifacts. New traces: close during motion, and replace in lockstep. Trace validation checks the closing rules. Fixed a broken link from preemption to the lifecycle terminal rules.
0.1-draft.4
Contradictions that blocked a first implementation resolved; traces checked for meaning, not only shape.Wire-visible changes
  • Unknown fields. The canonical schemas are now receiver schemas and accept unknown fields, as AWP-VER-003 always required; the stricter sender rules (only declared and x-<vendor>. fields, sender-only value constraints) are annotations (x-awp-closed, x-awp-lint) applied by CI. JSON-RPC reserved errors (e.g. -32601) MAY omit data (AWP-ERR-001).
  • Watchdog. Only messages the agent originates reset the watchdog; answering the world’s ping no longer does (AWP-SAF-003/005). A Core world that offers streaming runs the watchdog (Core profile). New max_duration_ms on extended action types bounds execution without fresh intent (AWP-ACT-008), required by the robotics profile (AWP-ROB-007).
  • Idempotency and replay. An idempotent action.submit reports the action’s current state, any state, with its latest status_seq and consumes none (AWP-ACT-001); “identical content” is defined (AWP-ACT-009); a submission rejected with a JSON-RPC error creates no action and its action_id may be retried (AWP-ACT-010). Transitions first reported in a result are replayed as action.status (AWP-CTL-008). session.resume results carry replay_to_status_seq; agents acknowledge delivery with last_status_seq on ping, and worlds retain what is unacknowledged (AWP-CTL-010). Receivers deduplicate on status_seq. Resuming a session whose old connection is still open replaces it (connection_replaced, AWP-SES-010).
  • Lifecycle. The normative transition table is spec/action-lifecycle.yaml. New edges accepted → rejected and cancelling → failed; new reasons abort_failed (AWP-LIF-010) and transferred (AWP-EMB-003); “coincide” defined for precedence, which now ranks reset, close, and transfer (AWP-LIF-008).
  • Credentials. Bearer credentials travel in Authorization or the awp.bearer.<token> WebSocket subprotocol, never in URLs (AWP-SEC-005/006); audit redaction covers the subprotocol.
  • Frames. The inline flags schema accepts reserved bits 4–7 as receivers must (AWP-DAT-005); senders are held to keyframe-with-resync by CI.
  • Tick authority. Under barrier, every non-observer lockstep session may tick without an admin grant; the tick grant is required only under any_session on a world that may bind several lockstep sessions (AWP-TIM-012, AWP-MA-005).
Versioning. Draft revisions and a pre-1.0 policy (AWP-VER-008/009); claims name the draft revision (AWP-CNF-005).Artifacts. schemas/v0.1/profiles/ is compiled and typed in CI. Trace validation checks every action against the transition table, idempotency and conflicts, replay from last_status_seq + 1, loss-class-aware frame sequences, and watchdog timing; CI also fails if the lifecycle diagram and table disagree. New traces: lost acknowledgement and resubmission, e-stop during a safe abort, approval, and a quiet agent on a live connection. Timestamps in the streaming, cancel, and disconnect traces corrected: several intervals were written in microseconds.
0.1-draft.3
One channel model, clock synchronization, and validated wire traces.Wire-visible changes
  • Channel model. The control/data-plane split is replaced by channels: channel 0 is the control channel (all JSON-RPC); channels ≥ 1 are observation and command channels with class reliable or latest-wins (AWP-TRN-005..011). Stream bindings are ws, grpc, webrtc, webtransport, shm, classified by independent flow control; endpoints MAY declare max_frame_bytes; a lost stream connection can reconnect while the control connection stays up. Pages renamed: Control plane → Control channel, Data plane → Frames.
  • Clock sync over the heartbeat. ping now carries { origin_ns } and its result — the pong — { origin_ns, receive_ns, transmit_ns } (was param-less). Agents keep a clock-offset estimate and map agent-originated session-clock values through it (AWP-CLK-006..009, AWP-AGT-008).
  • Frames. New extension 0x03 ts_send_ns, required on streaming observation frames (AWP-OBS-006). Flags bit 3 is resync; reserved bits are now 4–7 (AWP-DAT-005, AWP-DAT-009). Inline form gains ts_send_ns.
  • Telemetry. The awp.telemetry channel and telemetry-payload schema are removed; the world sends the session.telemetry notification on the control channel at ≥ 1 Hz (AWP-TIM-006). New agent notification obs.report (AWP-OBS-007).
  • Events. world.event travels only on the control channel; text/event+json observation channels MUST NOT carry registry events (AWP-EVT-003). data_plane_degraded renamed channel_degraded.
  • Actions. action.submit gains basis_ts_mono_ns and valid_until_ns (AWP-ACT-007); its result gains received_ts_mono_ns (AWP-LIF-002). safety_policy.max_basis_age_ms, reason stale_intent, and AWP_STALE_INTENT (3007) (AWP-SAF-013). Optional max_abort_ms per action type and AWP_ACTION_UNKNOWN (3008) (AWP-LIF-010). action.submit and action.cancel results consume status_seq from the shared sequence.
  • Lockstep. world.tick requires expected_tick; a mismatch fails with AWP_TICK_MISMATCH (3009) and nothing advances (AWP-TIM-011). Advance completion is defined per channel (AWP-TIM-003).
  • Session. session.ready carries session_id (AWP-SES-009). session.state is specified as { state, status_seq, ts_mono_ns, reason? } and shares status_seq (AWP-SES-007). session.transfer takes { expires_in_ms? }.
  • Subscriptions. obs.subscribe and obs.unsubscribe return the complete grant list; undeclared channels fail with AWP_CHANNEL_UNKNOWN (2007) (AWP-NEG-004).
  • Profiles. Robotics: max_basis_age_ms ≤ 500 and basis_ts_mono_ns on every submission (AWP-ROB-005); an independent-flow-control binding for every latest-wins channel (AWP-ROB-006). Core Agent: explicit world.tick, no implicit advancing (AWP-AGT-009).
Artifacts. Four wire traces (examples/v0.1/traces/*.jsonl: core lockstep, core streaming, cancel, disconnect), validated in CI and rendered at Wire traces. New schemas: ping, ping-result, obs-report, session-telemetry, session-state, tick, subscribe, unsubscribe, reset, restore, action-ref, and the result schemas they need.
0.1-draft.2
Lifecycle, liveness, and lockstep rules tightened; RFDs folded into the text; canonical schemas and the requirement matrix.Wire-visible changes
  • Action lifecycle. New states pending_approval, queued, cancelling. The action.submit result is the admission acknowledgement and reports the post-validation state (AWP-LIF-002). Terminal statuses carry a reason from the status reason registry; cause precedence and deadline origin are fixed (AWP-LIF-001..009). action_id resubmission is idempotent; conflicting content fails with AWP_ACTION_ID_CONFLICT (3004).
  • Delivery. Every action.status and world.event carries status_seq; session.resume carries last_status_seq and the world replays what follows (AWP-CTL-008). One session per connection (AWP_SESSION_EXISTS, 2004); AWP_SESSION_UNKNOWN (2005) after a world restart; 64-bit JSON integers bounded by 2^53 − 1 (AWP_INTEGER_RANGE, 2006).
  • Lockstep. tick_policy is on_tick only (on_action, on_both removed). Staging, initial observations, world.tick { count }, and tick_authority (any_session | barrier), with AWP_TICK_NOT_AUTHORIZED (3006) (AWP-TIM-002..012).
  • Liveness and safe state. session.ready declares heartbeat_interval_ms; three silent intervals is loss (AWP-SAF-001/002). safety_policy.safe_state { behavior, watchdog_ms } replaces safety_policy.on_disconnect (safe state). New events grant_expired, safe_state_entered, safe_state_exited, data_plane_degraded; per-channel stale_after_ms. e_stop_engaged cancels pre-execution actions; AWP_ESTOP_ACTIVE (3005).
  • Grants. Fourth grant class admin (snapshot, restore, reset, tick) requested in session.open and enumerated in session.ready; world_resetting and cross-session reset effects (AWP-PRM-005/006).
  • Frame extension block. Flags bit 2 has_extensions and a TLV block after the 28-byte header: 0x01 tick, 0x02 ts_sim_ns, 0x80–0xFF vendor. tick and ts_sim_ns never travel in the payload (AWP-DAT-005..008). The inline form is obs.frame / cmd.frame with named JSON fields.
  • Command channels and task (from RFD-002, RFD-003). Capability command_channels, manifest command_channels, duration: "streaming" action types with watchdog_ms, cmd.frame, modality servo/json, reason watchdog (command channels). Capability task, task on session.open, task.update, namespace task.* (task).
  • Manifest. tick_policy, tick_authority, initial_states, concurrency_group, max_queue, multi_bind_group (with embodiments in session.open and embodiment_id on submissions), envelope enforcement, safety_policy.audit.redact_paths; safety_policy is a concrete object, never a reference.
  • Telemetry. awp.telemetry payload given a schema (telemetry-payload).
  • Security. Plaintext permitted on loopback and stdio; authentication required on every non-loopback connection (AWP-SEC-001/002).
Other normative changes. Audit-log redaction and record classes (AWP-AUD-006/007); robotics conformance marked experimental with enforcement-mode claim wording (AWP-CNF-006, AWP-ROB-001..004); conformance claims labelled self-assessed (AWP-CNF-005). RFD-001 (relay transport) closed — internet rendezvous is out of scope — and RFD-005 (elicitation) withdrawn; RFD-004’s follow_trajectory remains an informative idiom. The RFD pages are removed.Artifacts. Canonical JSON Schemas in schemas/v0.1/; CI validation of examples/v0.1/*.json and of every json awp:<schema>-tagged block in the docs; frame test vectors (schemas/test-vectors/frames.json) and a reference codec; TypeScript types generated from the schemas; the requirement matrix generated from spec/requirements.yaml.
0.1-draft.1
Initial public draft of the Agent World Protocol: four-layer architecture, lockstep and streaming time models, action lifecycle, safety model (grants, envelopes, approval, audit log), six profiles, and error registry. Six draft RFDs published alongside it: brokered relay transport, command channels, first-class task instruction, follow_trajectory, generalized elicitation, and capabilities generalization.Reference-code license set to Apache-2.0 with a no-CLA contribution policy. ACP comparison added. Pages for unpublished software — SDKs, adapters, awp-sim, quickstarts, the conformance suite and registry, and the worlds and agents directories — reduced to “Not published yet” stubs the same day.