**The design is sound overall, but fix a few gaps before you build.** The structure is good: the charge happens outside the transaction, the provider call is idempotent, and reconciliation and the alert are covered. Items 1–3 below are real defects you'd hit while coding, so settle them first. The rest can be decided as you go.

**Fix before building**

1. **Reconciliation can double-restore stock.** The flow doesn't say what stops two actors from settling the same order.
   - Example: the request thread is still retrying, and on instance B the reconciler (which runs on every instance) finds the same order. Both see a decline and both run "restore stock". `available` goes up twice, so you oversell.
   - Fix: make every settle a conditional update, `UPDATE orders SET status=… WHERE id=:id AND status='PENDING'`. Restore stock only if that update changed a row. Also say whether the reconciler is single-run (advisory lock) or safe to run on both instances.
   - Step 6 also doesn't say that settling as `FAILED` restores stock. It should.

2. **A crash between steps 2 and 3 leaves an unresolved order.** The order is `PENDING`, stock is reserved, and no charge was ever made.
   - The reconciler asks the provider for the charge status and gets "not found". The design doesn't say what to do then.
   - Pick one and write it down: fail the order and release the stock after a grace period, or have the reconciler create the charge itself (safe because the order id is the idempotency key).
   - Also define the provider's "still processing" answer, so the reconciler doesn't settle too early.

3. **The module rule contradicts steps 2 and 5.** "No module reads another module's tables," yet step 2 reserves stock and inserts the order in one transaction, and step 5 flips status and restores stock in one transaction.
   - Decide how the modules share a transaction. For example, `OrderCheckout` owns the transaction and passes it into `inventory.reserve(tx, …)`.
   - Otherwise the rule gets broken on day one, or atomicity is lost.

**Should fix (small, but cheaper now)**

4. **Idempotency key scope.** A unique constraint on `idempotency_key` alone means two customers can collide. Make it unique on `(customer_id, idempotency_key)`. Also decide what happens when the same key arrives with a different cart. Return `422`, not the old order silently.
5. **Concurrent duplicate `POST`.** The second request hits the unique violation while the first is still in step 3. State that it returns the existing `PENDING` order (`202`) and does not charge again.
6. **Deadlocks on multi-item carts.** Two carts with SKUs A,B and B,A updated in opposite order will deadlock. Sort SKUs before the reservation updates.
7. **Missing schema details.** No primary keys, no foreign key from `order_items` to `orders`, and no `stock.sku` primary key. The reconciler also needs an index on `(status, created_at)`.
8. **Where price comes from.** The design doesn't say whether `unit_price` and `total` are computed server-side or taken from the cart. They must be computed server-side.
9. **Request latency.** 5 s × 4 attempts plus backoff is over 20 s inside an HTTP request. Most clients and load balancers time out first. Either shorten it (for example 2 retries and a 3 s timeout) or return `202` earlier and let the reconciler finish.
10. **Email can be lost.** If the process dies after the `PAID` commit and before queueing, no email is sent. At 2,000 orders a day this is acceptable. Name it as known debt, with a transactional outbox as the later fix.

**Test plan additions**
- Reconciler settles `PAID` and `FAILED`, including restoring stock.
- Reconciler and request thread race on the same order (stock restored exactly once).
- Decline restores stock.
- A `PENDING` order with no charge at the provider (item 2).
- Concurrent identical `POST`s.
- Email queue failure leaves the order `PAID`.
- Multi-item cart with opposite SKU order.

VERDICT: READY WITH CHANGES
