capabilities.seed, capabilities.snapshot, capabilities.replay). They are REQUIRED by the sim profile.
- Seeding. If
seedis advertised,session.openandworld.resetMAY carryseed, which seeds every random source of the simulation and changes no other state. Two runs from the same state — afterworld.resetwith equalinitial_stateandseed, or after restoring one snapshot — with identical action sequences MUST produce identical observation sequences in lockstep mode.[AWP-REP-001] - Snapshot / restore.
world.snapshotreturns an opaque token;world.restorewith that token MUST return the world to the exact captured state, including its random sources and its tick (AWP-TIM-013). Tokens are valid at least for the lifetime of the world process;world.restorewith a token the world does not hold fails withAWP_PARAMS_INVALID.[AWP-REP-002] - Deterministic replay. If
replayis advertised, feeding a recorded replay bundle’s calls that change action state —action.submit,action.cancel,world.tick,world.reset,world.restore, andsession.close, in their recorded order — into a world restored from the bundle’s initial snapshot, with the session opened as recorded, MUST reproduce, for every frame, the logged SHA-256 payload hash, and MUST reproduce the logged sequence of action states peraction_id. The comparison excludests_mono_ns,ts_send_ns,received_ts_mono_ns,status_seq,seq, heartbeats,obs.report,session.telemetry,session.*messages, and all transport metadata; only frame payload hashes and the ordered(action_id, state, reason)sequence are compared.[AWP-REP-003]