**The design is sound and you can start building tomorrow, provided you settle the two reconciliation gaps (items 1 and 2) first.** The core is right: stock reservation is atomic, the charge sits outside the transaction, the provider call is idempotent, and unknown outcomes have a recovery path. Nothing below needs a restructure; each is a rule or constraint to add.

## Should fix before or during the first days of build

1. **A failed order's stock can be restored twice.** Steps 5 and 6 don't say the status change is conditional, and the design doesn't say whether the reconciliation job runs on one instance or both.
   - Example: an order for 2 units takes `available` from 5 to 3. Both instances' jobs see it `PENDING`, both learn it was declined, and both restore, giving 7 instead of 5. You then oversell.
   - Fix: make every transition `UPDATE orders SET status = … WHERE id = … AND status = 'PENDING'`, and restore stock or queue the email only if that changed a row. This also covers a slow request racing the job.

2. **Reconciliation has no rule for "provider has no record of this charge".** If an instance crashes after step 2 commits but before the charge call goes out, the provider knows nothing about the order. Step 6 only allows `PAID` or `FAILED`, so the order stays `PENDING` and holds stock until someone answers the 30-minute alert. Decide the rule: mark it `FAILED` and restore stock, or re-attempt the charge.

3. **The idempotency key is unique globally, not per customer.** If two customers send the same key, the second gets the first customer's order back. Make the constraint `(customer_id, idempotency_key)`. Also decide what happens when the same key arrives with a different cart; rejecting with `422` is the usual choice.

4. **The source of prices is not stated.** The design doesn't say where `unit_price` and `total` come from. If they come from the client's cart, a customer can set their own price. State that the service looks prices up server-side and computes the charge amount itself.

5. **Reconciliation has no tests listed.** It is the path that decides money and stock when things go wrong. Add integration tests for:
   - a pending order settling as paid;
   - a pending order settling as declined, with stock restored;
   - the provider having no record;
   - the job running twice on the same order.

## Minor

6. **Concurrent multi-item orders can deadlock.** Two orders touching the same SKUs in opposite order will have one aborted by Postgres with a `500`. Update stock in sorted SKU order.
7. **Orders settled by reconciliation never get a confirmation email.** Step 6 doesn't mention queueing it when the job marks an order `PAID`.
8. **A crash between the `PAID` commit and the email queue loses the email.** Nothing picks it up later, because the order is no longer `PENDING`. An `email_sent_at` column swept by the same job would close this.
9. **The schema omits keys and constraints.** Add primary keys on `orders.id`, `stock.sku` and `order_items (order_id, sku)`, the foreign key, `CHECK (available >= 0)`, `CHECK (quantity > 0)`, and a `CHECK` on `status`.
10. **The worst-case request time is about 30 seconds.** That is four attempts at 5 s plus backoff. Confirm the load balancer and client timeouts exceed it, or the client will see a gateway error instead of the `202`.
11. **The retry condition is not stated.** Say explicitly that only timeouts and provider 5xx responses are retried, never declines.
12. **Two tests are missing from the list.** Add two simultaneous buyers for the last unit (the listed test reads as a single buyer), and a check that a decline restores stock.
13. **The provider's charge id is not stored.** A `payment_reference` column on `orders` would make support and refund lookups easier.

VERDICT: READY WITH CHANGES
