Skip to main content
Adds to Core:
  • Both time models (lockstep for turn-based/testing, streaming for live play) — AWP-TIM-008
  • Multi-session support with entity visibility tagging — AWP-MA-001..004
  • Scene-graph channel — AWP-SCN-001..003
  • Spectator (observer) sessions — AWP-EMB-004
  • Snapshot/restore for match replays, when advertised (capabilities.snapshot) — AWP-REP-002
  • Device input through input_chunk, when offered — AWP-GAM-001..004

Device input

A world that takes device-level input (keyboard, mouse, gamepad) offers it as the reserved action type input_chunk: a timed sequence of device states, one per slot, in the trajectory-chunk idiom. Its params are defined by schemas/v0.1/profiles/input-chunk.schema.json. Mouse and scroll deltas are device counts, a documented exception to AWP-UNI-001.
  • Declaration. A world that declares input_chunk MUST declare it with duration: "extended", "replace" among its preemption policies, concurrency_group: "input", and the normative params schema narrowed only by fixing slot_ms to a const, lowering slots.maxItems, restricting the key-name enum to a subset, or removing the device fields (mouse_dx, mouse_dy, scroll_steps, sticks, triggers) its embodiment lacks. [AWP-GAM-001]
  • Slots. The world MUST execute each slot as the device state held for its duration: a listed key not held in the previous slot is pressed at the slot’s start, a held key not listed is released there, and a key listed in consecutive slots stays down with no new press or auto-repeat; stick and trigger values hold for the slot, an absent field meaning neutral; mouse and scroll deltas are delivered within the slot and sum to the requested values. In streaming, execution begins at the world’s first input update after admission and slot k starts k × slot_ms later on the world’s monotonic clock; in lockstep, each slot spans one advance and slot_ms equals the sim time of one advance, rounded to the millisecond. progress is completed slots over total slots (AWP-LIF-003). [AWP-GAM-002]
  • Replacement. A replace submission takes over at the running chunk’s next slot boundary, which is the safe transition of AWP-PRE-003. A key held in the interrupted slot and listed in the replacement’s first slot MUST stay down without a release, and the replaced action reports aborted_at_progress as completed slots over total slots. [AWP-GAM-003]
  • Release. When an input_chunk leaves executing with no replacement taking over, including on safe-state entry and e-stop, the world MUST release every held key and button and return sticks and triggers to neutral before sending the terminal status. Releasing is not injecting input under AWP-GUI-005. [AWP-GAM-004]