**The design is sound and you can start building tomorrow, as long as three small gaps in the reconciliation job and the idempotency key are closed first.** None of them changes your approach; each is a sentence or two in the doc and a few lines of code.

The core is right:
- **No overselling:** the conditional `UPDATE stock ... WHERE available >= :qty` inside the order transaction prevents it without any locking machinery.
- **No double charges:** the payment call sits outside the transaction, and using the order id as the provider's idempotency key makes retries safe.
- **Unknown outcomes:** the `202` plus reconciliation path handles the case most designs miss.
- **Tests:** the list already covers the scenarios that matter.

## Changes to make before building

1. **Make every move out of `PENDING` conditional, so stock is restored exactly once.**
   - **Gap:** the doc doesn't say where the reconciliation job runs. With two instances, both may run it.
   - **Failing case:** order A holds 1 unit of SKU X and the provider reports it declined. Both instances pick it up, both mark it `FAILED`, and both add 1 back. `stock.available` is now 1 higher than the shelf, and the next customer buys a unit that doesn't exist. Expected: +1 once.
   - **Fix:** use `UPDATE orders SET status = 'FAILED' WHERE id = :id AND status = 'PENDING'`, and restore stock only if that changed a row. Apply the same guard in steps 4 and 5.

2. **Spell out two reconciliation outcomes that step 6 leaves open.**
   - **Stock on failure:** step 5 restores stock, but step 6 only says "settles as `FAILED`". Say that it restores stock too, or the units stay reserved forever.
   - **Provider has no record of the charge:** this happens if an instance crashes after step 2 commits but before the charge call. The order is neither paid nor failed at the provider, so as written it stays `PENDING` until the 30-minute alert. Treat "no record" on an order older than 2 minutes as `FAILED` and restore stock; this is safe because the retry window is well under 2 minutes.

3. **Scope the idempotency key to the customer.**
   - **Failing case:** the unique constraint is on `idempotency_key` alone. If customer B sends a key customer A already used, B gets A's order back. Expected: B gets their own new order.
   - **Fix:** make the constraint `(customer_id, idempotency_key)`.

## Worth adding as you build (not blockers)

- **Deadlocks:** update stock rows in sorted `sku` order. Otherwise two carts holding the same two items in opposite order can deadlock, and one customer gets an error.
- **Lost confirmation email:** a crash between the `PAID` commit and queueing the email in step 4 loses it. Have the reconciliation job also catch `PAID` orders with no email queued, or write the email request in the same transaction.
- **Tests:** add three to the integration list: the reconciliation job run twice on the same order, a crash before the charge call, and the same idempotency key from two customers.

VERDICT: READY WITH CHANGES
