llm.decide and feed_back stand for your model calls. The wire traces are the normative reference for the messages each call stands for.
1
Render the manifest as capabilities
Turn each granted action schema into a tool-like description the model can select from, and each channel into a described percept source. This mirrors how MCP clients render tools.
2
Loop: observe, decide, submit, tick, read
advance() the record never becomes terminal (AWP-TIM-002). Extended actions may need several ticks. In streaming mode drop the advance() loop and await client.wait_terminal(record.action_id) instead: the world advances on its own and statuses arrive as they happen.3
Handle the lifecycle honestly
Feed
failed and preempted statuses, and statuses marked clamped: true, back into context — they are the world teaching the model its limits. Never retry non-retryable errors with identical params (AWP-ERR-001).basis_ts_mono_ns of the observation it was based on (basis= in the SDK, AWP-ACT-007), and send heartbeats from the decision loop rather than a separate timer (AsyncClient(heartbeat=False) and await client.ping()), so a stalled policy trips the world’s watchdog (AWP-SAF-005).