Order as canonical entity
In NexLog OS, Order (`orders`) is the entity that travels most between modules. It originates in any channel (DTC, marketplace, B2B, POS, social commerce), passes through approval (APPROVED), is allocated in WMS (PICKING/PACKED), delivered by TMS (DISPATCHED/IN_TRANSIT/DELIVERED) and finally completed (COMPLETED). The state machine is immutable and each transition generates a canonical event (`businessEvents`) with `correlationId`/`causationId`, enabling end-to-end traceability, audit, replay and predictive model training.