Preparation Queue
Load the latest confirmed acceptance order. KDS only projects preparation work and must not alter payment or order totals.
- Load the latest canonical order whose payment remains confirmed.
- Record total/payment baseline.
- Ensure one preparation ticket and confirm status queued.
- Retry the exact same ensure request and confirm idempotent replay is true with the same ticket ID.
- Move queued โ preparing โ ready โ fulfilled.
- Confirm item quantities match the canonical order snapshot.
- Confirm commerce invariant remains true: total and payment status never change.