Fulfillment states that keep an order in the active kitchen queue.
The active set is defined once here instead of being repeated in every read, so a later
fulfillment task extends the list in a single place. Advancing Queued to Preparing
deliberately does not change membership: the order is still being worked on, so the queue
length, its queue-entry ordering, and its representation in the operator's view are all
unchanged by an advance. Delivery is the one operation that does change membership —
Delivered is absent from this list, so the order leaves the active queue read while its
durable record and its history stay exactly where they are. An order that leaves the
operator's view is not an order that was deleted.
Fulfillment states that keep an order in the active kitchen queue.
The active set is defined once here instead of being repeated in every read, so a later fulfillment task extends the list in a single place. Advancing
QueuedtoPreparingdeliberately does not change membership: the order is still being worked on, so the queue length, its queue-entry ordering, and its representation in the operator's view are all unchanged by an advance. Delivery is the one operation that does change membership —Deliveredis absent from this list, so the order leaves the active queue read while its durable record and its history stay exactly where they are. An order that leaves the operator's view is not an order that was deleted.