**The design is sound and you can start building tomorrow, provided you write two rules into it first, both about the reconciliation job.** Everything else (stock reservation, charging outside the transaction, using the order id as the provider idempotency key, the 202 path) holds up and is appropriately simple for 2,000 orders a day.

## Fix before building

**1. Nothing stops an order being settled twice, which restores its stock twice.**
- **Case:** an order holds the last unit of a SKU, so `available` is 0, and the charge result is unknown. If the job runs on both instances, both see "declined" in the same 5-minute tick, and both mark the order `FAILED` and restore stock.
- **Result:** `available` becomes 2 when it should be 1, and you sell a unit you don't have.
- **Fix:** make every status change conditional (`UPDATE orders SET status = ... WHERE id = :id AND status = 'PENDING'`) and restore stock only if that update changed a row. Also say where the job runs: one instance, or behind a Postgres advisory lock.

**2. The job has no rule for "the provider has never heard of this order".**
- **Case:** an instance crashes after step 2 commits but before the charge call in step 3. The order is `PENDING` with stock held, and the provider has no charge for it.
- **Result:** step 6 only allows `PAID` or `FAILED`, so as written the order stays `PENDING` forever, the stock stays reserved, and the 30-minute alert fires.
- **Fix:** state that "no charge found" settles as `FAILED` and restores stock. The 2-minute age threshold is safe for this, since the request path gives up after roughly 27 seconds.

## Add while building

- **Deadlocks on multi-item orders:** two orders reserving the same two SKUs in opposite order can deadlock in step 2. Update stock rows in sorted `sku` order.
- **Price source:** the design does not say where `unit_price` and `total` come from. If they come from the client's cart, a customer can set their own price; the server must look them up.
- **Idempotency key details:** make the key unique per customer, not globally. Decide what a repeated key with a different cart returns (I'd return `422`).
- **Missing tests:** the list has no test for the reconciliation job. Add:
  - the job settling an order as paid, as declined, and as "no charge found";
  - the job running twice on the same order;
  - two concurrent buyers for the last unit (the listed test reads as a single buyer);
  - a multi-item order where the second item is out of stock, confirming the first is rolled back.
- **Data model constraints:** add primary keys, a foreign key on `order_items.order_id`, `CHECK (available >= 0)` on `stock`, and an index on `orders (status, created_at)` for the job's query.
- **Client behaviour after `202`:** say how the client learns the outcome (presumably by polling `GET /orders/:id`). Also check that the load balancer timeout exceeds the roughly 27-second worst-case request.

## Accepted risk to write down

If an instance crashes between marking an order `PAID` and queueing the email in step 4, that confirmation email is never sent. That is acceptable at this volume, but note it in the design as a known gap.

VERDICT: READY WITH CHANGES
