The design is close: the core approach is sound and right-sized for 2,000 orders a day, but I would fix four gaps in the document before building. Each is a few lines of design, not a rework, so starting tomorrow is realistic.

**What is already right:** the stock reservation as a conditional `UPDATE`, the payment call kept outside any transaction, the order id as the provider's idempotency key, and the reconciliation job for unknown outcomes.

## Fix before building

1. **An order can be settled twice, which restores stock twice.** The reconciliation job runs on both instances, and nothing says the move out of `PENDING` is guarded.
   - **Case:** both instances pick up the same declined order with quantity 1 at the same 5-minute tick. Each marks it `FAILED` and adds 1 back, so `available` rises by 2 and you can sell a unit you do not have.
   - **Fix:** make every transition `UPDATE orders SET status = ... WHERE id = :id AND status = 'PENDING'`, and restore stock or queue email only if that changed a row. This covers steps 4 and 5 and the job.

2. **The reconciliation job has no rule for "provider has never heard of this order".**
   - **Case:** the instance crashes after step 2 commits but before the charge call in step 3. The provider returns "not found", which is neither `PAID` nor `FAILED`, so the order stays `PENDING` and holds its stock indefinitely.
   - **Fix:** state that "no charge found" settles as `FAILED` with stock restored. This is safe because the request stops retrying well inside the 2-minute cutoff.

3. **The idempotency key is unique globally, not per customer.**
   - **Case:** customer B sends a key that customer A already used, and step 1 returns A's order to B.
   - **Fix:** make the constraint unique on `(customer_id, idempotency_key)`. Also say what happens when the same key arrives with a different cart; I would return `422`.

4. **A paid order can lose its confirmation email.**
   - **Case:** the instance crashes in step 4 after the `PAID` commit but before the email is queued. The customer is charged and hears nothing, and nothing retries it.
   - **Fix:** write an "email pending" row in the same transaction as `PAID`, and let a worker drain it.

## Add to the test plan

The current list covers the request path well, but the reconciliation job has no tests. Add these:

- Reconciliation settling a paid, a declined and a not-found order.
- Two reconciliation runs on the same order, proving stock is restored once.
- Two concurrent `POST /orders` with the same key.
- Two concurrent buyers for the last unit.
- A crash after step 2 and a crash after the `PAID` commit.

## Smaller points to decide as you build

- **Lock order:** update stock rows in sorted `sku` order. Otherwise two carts holding the same two items in opposite order can deadlock.
- **Price source:** state that `unit_price` and `total` are computed server-side, not taken from the client's cart. The design does not say where prices come from.
- **Client after `202`:** name the endpoint the client polls for the final status, presumably `GET /orders/{id}`.

VERDICT: READY WITH CHANGES
