duration: "streaming"; the action is the channel’s anchor — grants, envelopes, lifecycle, preemption, and audit all apply through it. The action is best read as a mode switch (“enter servo control”), and the frames as data within that mode.
A manifest fragment declaring one command channel and its anchoring action (full example: examples/v0.1/world-manifest-servo.json):
-
Command channels are gated on the
command_channelscapability, declared in the manifest’s top-levelcommand_channelslist using the standard channel schema, and available only in the streaming time model.[AWP-CMD-001] -
Every action schema naming a
command_channelMUST declareduration: "streaming"and reference a declared command channel; a granted streaming action type implies access to its bound channel, whichsession.readylists ingranted.channelswith itschannel_idand rate like any other channel.[AWP-CMD-002] -
Frames are accepted on a command channel only while exactly one bound action is
executing; worlds MUST discard frames received outside such a binding.[AWP-CMD-003] -
A streaming action never completes on its own: it remains
executingwhile the stream is live and reaches a terminal state only viaaction.cancel(safe abort per AWP-LIF-005, thencancelled, closing the channel), preemption, failure, or deadline.deadline_ms, when given, bounds the total stream lifetime and is binding.[AWP-CMD-004] -
Streaming action types MUST declare
watchdog_ms. If no valid frame arrives withinwatchdog_mswhile the action isexecuting, the world MUST apply the type’s safe-abort behavior and fail the action with reasonwatchdog.[AWP-CMD-005] -
Every inbound frame MUST be envelope-checked world-side before actuation (AWP-ENV-001):
clampexecutes at the limit;rejectdrops the frame. Either way the frame counts in the status’sstream.clamped_count. Persistent violations MAY fail the action with reasonenvelope. Command frames travel ascmd.framenotifications on the inline binding or as binary frames on a stream connection that carries the channel (AWP-TRN-013).[AWP-CMD-006] -
Frames carry the standard frame envelope with per-channel monotonically increasing
seqandts_mono_nsas the setpoint’s issue time on the session clock (AWP-CLK-009); worlds MUST apply frames inseqorder and, onlatest-winschannels, MUST drop a frame older than the last applied one.[AWP-CMD-007] -
The audit log records inbound frames — payload or SHA-256 hash plus header — exactly as observation frames.
[AWP-CMD-008] -
During
executing,progressis not meaningful and MAY be omitted. Status updates instead carry astreamobject ({ frames_applied, last_seq, clamped_count }, see action.status), and the world SHOULD send one at least once per second while the stream is live.[AWP-CMD-009]
replace submission preempts the running stream and closes its channel.