The design is sound and you can start building tomorrow, provided you settle five gaps first. Each is a decision or a one-line addition to the doc, and none changes the structure.

The core is right: stock is reserved atomically, the payment call sits outside any transaction, the order id is the provider idempotency key, and unknown results go to a reconciliation job with an alert behind it.

## Fix before building

1. **Stock can be restored twice.** Nothing says a status change only applies if the order is still `PENDING`, and both instances will run the reconciliation job.
   - Failing case: order A holds 1 unit of a SKU with `available = 0`. Both instances see the charge as declined, and each marks A `FAILED` and restores stock. `available` becomes 2 when it should be 1, so you oversell.
   - Fix: make every transition `UPDATE orders SET status = … WHERE id = … AND status = 'PENDING'`, and restore stock or queue the email only if that update changed a row.

2. **Reconciliation has no rule for "provider has no record of this charge".** Step 6 only covers `PAID` or `FAILED`.
   - Failing case: the instance crashes after step 2 commits and before step 3 sends the charge. The order stays `PENDING` with stock held forever, and the only signal is the 30-minute alert.
   - Fix: treat "no record" as `FAILED`.
   - Also state that a reconciled `FAILED` restores stock and a reconciled `PAID` queues the confirmation email. Step 6 currently says neither.

3. **The source of prices is not stated.** There is no price table, and step 1 says the client sends the cart. If `unit_price` and `total` come from the request, a client can submit a cart with `unit_price: 0.01` and be charged that. Say where the server looks prices up and that `total` is computed server-side.

4. **The idempotency key is unique globally, not per customer.**
   - Failing case: customer B sends a key customer A already used and gets A's order back.
   - Fix: make the constraint `(customer_id, idempotency_key)`.
   - Also decide what a repeated key with a different cart returns; I'd return `422` rather than silently returning the old order.

5. **Concurrent multi-item orders can deadlock.**
   - Failing case: order 1 updates stock for SKU X then Y while order 2 updates Y then X. Postgres aborts one, and the customer gets a 500 instead of an order.
   - Fix: update stock rows in sorted SKU order.

## Tests to add

- Crash after reservation and before the charge: reconciliation fails the order and restores stock.
- Reconciliation run twice on the same declined order: stock is restored once.
- Reconciliation settles an order as `PAID`: the email is queued once.
- Same idempotency key from a different customer, and same key with a different cart.
- Two concurrent orders for the same two SKUs in opposite order.
- A request with a tampered price.

## Worth knowing, not blocking

In the worst case `POST /orders` holds the connection for over 20 seconds (four 5 s attempts plus backoff) before returning `202`. Check that the load balancer timeout is longer than that. A client that gives up and retries is safe thanks to the idempotency key.

VERDICT: READY WITH CHANGES
