The design is sound and you can start building tomorrow, with two small additions to the reconciliation job (step 6) before that code gets written. The core decisions are right:

- **Stock reservation:** the conditional `UPDATE` inside the order transaction prevents overselling.
- **Payment call:** it sits outside any transaction, so a slow provider never holds database locks.
- **Double charges:** using the order id as the provider idempotency key makes retries safe.
- **Unknown outcome:** the order stays `PENDING` and gets settled later, rather than the service guessing.

## Changes to make before building step 6

1. **Stock can be restored twice for one failed order.** You run two instances, so both will run the reconciliation job on the same 5-minute tick.
   - **Failing case:** an order for 1 unit of SKU A times out on every attempt, and the provider reports it declined. Both instances read it as `PENDING`, both mark it `FAILED`, and both add 1 back. `available` rises by 2 instead of 1, and you later sell a unit you don't have.
   - **Fix:** make every status change conditional (`UPDATE orders SET status = ... WHERE id = :id AND status = 'PENDING'`) and only restore stock or queue the email if that update changed a row. Apply the same guard in steps 4 and 5.

2. **Step 6 doesn't say what happens when the provider has no record of the charge.** This occurs if an instance crashes after step 2 commits but before the charge call in step 3.
   - **Failing case:** the order is `PENDING` with stock reserved, the provider answers "not found", and the job has no rule for it. The order stays `PENDING` and the stock stays locked until the 30-minute alert fires and someone fixes it by hand.
   - **Fix:** treat "not found" as `FAILED` and restore stock. Also state explicitly that the job restores stock whenever it settles an order as `FAILED`; step 5 says this, but step 6 doesn't.

3. **Add tests for both cases.** The test list covers the request path well but not the job. Add:
   - reconciliation settling a `PENDING` order as `PAID`, as `FAILED`, and as "not found";
   - two reconciliation runs on the same order restoring stock once;
   - two concurrent requests for the last unit, where one gets `409`.

## Smaller points to settle as you build

- **Idempotency key scope:** make the unique constraint `(customer_id, idempotency_key)` rather than the key alone, so one customer's key can never return another customer's order.
- **Price source:** the design doesn't say where `unit_price` comes from. If it comes from the client's cart, a customer can set their own price, so it needs to be looked up server-side.
- **Lock order:** update `stock` rows in sorted SKU order. Otherwise two orders containing the same two SKUs in opposite order can deadlock, and one fails with a 500.

VERDICT: READY WITH CHANGES
