The design is sound and you can start tomorrow, provided you write down three things in the reconciliation path (step 6) first. The core flow holds up: the stock reservation is atomic, the charge sits outside any transaction, the order id is the provider idempotency key, and unknown outcomes get settled later.

## Fix before building

1. **Settling an order twice restores its stock twice.** Nothing says the `PENDING` → `FAILED` change is conditional, or that only one copy of the reconciliation job runs.
   - **Failing case:** both instances run the job at the same tick and both see order A (1 unit of SKU X) as `PENDING` with a declined charge. Each marks it `FAILED` and adds 1 back, so `stock.available` goes up by 2 instead of 1 and you later sell a unit you don't have.
   - **Fix:** make every settlement `UPDATE orders SET status = … WHERE id = :id AND status = 'PENDING'`, and restore stock or queue the email only if that changed a row. This applies to steps 4 and 5 as well as to the job.

2. **The job has no rule for "the provider has no record of this charge".** This happens when an instance dies or is redeployed after step 2 commits but before step 3 calls the provider. The order is `PENDING` and holding stock, and the provider answers "not found", which is neither `PAID` nor `FAILED`. As written, the order sits until the 30-minute alert fires. State the rule: not found after 2 minutes means `FAILED`, with stock restored.

3. **Orders settled by the job never get a confirmation email, and never visibly restore stock.** Step 4 queues the email and step 5 restores stock, but step 6 only says "settles them". Say that the job runs the same settlement code as steps 4 and 5, ideally one `settle(order, outcome)` method in `OrderCheckout` used by both paths.

## Smaller gaps

- **Deadlocks on multi-item carts:** two orders reserving SKUs X,Y and Y,X can deadlock in step 2. Update the SKUs in sorted order.
- **Concurrent duplicate `POST`:** two requests with the same key can both pass the "does it exist" check. The loser must catch the unique violation, roll back its stock reservation and return the existing order.
- **Email lost on crash:** if the instance dies between the `PAID` commit and queueing the email in step 4, the customer pays and hears nothing. Either accept this and say so, or write the email job in the same transaction as the `PAID` update.
- **Client after `202`:** the design has no `GET /orders/{id}` or other way for the client to learn the final result.
- **Prices:** say that `unit_price` and `total` are computed server-side, not taken from the cart.
- **Keys:** `order_items` and `stock` have no stated primary keys, and it is not stated whether `idempotency_key` is unique globally or per customer.

## Tests to add

The test list covers the request path well but not the reconciliation job. Add:

- The job settling a `PENDING` order as `PAID` (email queued).
- The job settling one as `FAILED` (stock restored once).
- The provider returning "not found".
- Two job runs settling the same order at once.
- Two concurrent `POST`s with the same key.
- Two orders with overlapping SKUs in opposite order.

VERDICT: READY WITH CHANGES
