50. Lockstep for small deterministic games
Status: partly implemented. The relay and
lockroom.coaximplement lockstep for small seeded games. The shared network profile distinguishes lockstep from authority; a general Metaverse Engine lockstep session is still work.
Lockstep sends orders instead of authoritative state. Each peer waits for commits, applies orders in the same sequence and compares state hashes. `lockroom.coax` supplies commits, orders, hash checks and snapshot repair; Belt 2200 uses it through `belt-lockstep.coax`. The guarantee needs the same seed, inputs and execution profile. It is not a cross-build or cross-architecture determinism guarantee.
Choose a trust profile
`metaverse-engine/net/profile.coax` names presence, lockstep and server authority separately. Lockstep has neither authoritative durability nor clock-earned server steps. It suits a small deterministic game whose peers can wait for each other. Hidden information, persistent progression and shared combat need a different contract.
For Everglade and Orbit League, follow the server path in chapter 86. Everglade shares its movement step between server and client (chapter 87), predicts local movement (chapter 90) and applies authoritative state (chapter 91). Its offline mode runs the same server in a worker (chapter 95); it does not switch to lockstep or trust a client's progression.
Sessions beyond the socket
The checked contracts in metaverse-engine/session/ cover `party.coax`, `travel.coax`, `lifecycle.coax` and `ledger.coax`. They distinguish membership, owner transfer, command recovery and durable item mutation. They do not supply the planned generalized lockstep input log or a universal snapshot codec. Chapter 5 teaches replay; use it with the exact execution profile a lockstep game actually qualifies.