The design is sound and you can start building tomorrow, provided you add two short rules to the doc first. Both are about the reconciliation job, and both are a few lines of text rather than a redesign.

The core is right: stock is reserved with a conditional update inside one transaction, the payment call sits outside any transaction, the order id is the provider idempotency key, and unknown results get a `202`. Those are the parts that are expensive to fix later.

## Changes to make before building

**1. Guard every status change so it can only happen once.**
The doc doesn't say that leaving `PENDING` is conditional, and with two instances the reconciliation job will run twice on the same order.

- **Failing case:** an order for 1 unit of SKU X is stuck `PENDING`. Both instances run the job at the same time, both hear "declined" from the provider, and both mark it `FAILED` and restore stock.
- **Wrong result:** `available` goes up by 2, so you later sell a unit you don't have.
- **Expected result:** `available` goes up by 1.
- **Same problem on success:** the confirmation email is queued twice.
- **Fix:** make each transition `UPDATE orders SET status = ... WHERE id = :id AND status = 'PENDING'`. Only restore stock or queue the email if that update changed a row. Use the same code path for the request handler (steps 4 and 5) and the job (step 6).

**2. Say what the job does when the provider has no record of the charge.**
Step 6 only allows `PAID` or `FAILED`, but there is a third answer.

- **Failing case:** the instance crashes after step 2 commits and before step 3 sends the charge. The job asks the provider about the order and gets "no such charge".
- **Wrong result:** as written, the order stays `PENDING` forever, its stock stays reserved, and the only signal is the 30-minute alert.
- **Expected result:** the order becomes `FAILED` and the stock is restored.
- **Fix:** treat "not found" on an order older than the 2-minute cutoff as `FAILED` with stock restore. The cutoff is safe because the request's retries finish in about 30 seconds.

## Tests to add to the plan

The test list covers the request path well but has nothing for the reconciliation job. Add:

- The job settles a `PENDING` order as `PAID`.
- The job settles a `PENDING` order as `FAILED` and restores stock.
- The job handles "charge not found".
- The job run twice on the same order restores stock once and queues one email.
- Two simultaneous `POST /orders` with the same key produce one order and one stock reservation.

## Smaller points you can settle while building

- **Lost email:** a crash between committing `PAID` and queuing the email means a paid customer gets no confirmation. This is rare at 2,000 orders a day; accept it knowingly, or have the job also sweep for `PAID` orders with no email queued.
- **Deadlocks:** two orders reserving the same SKUs in opposite order can deadlock. Updating in sorted SKU order avoids it.
- **Idempotency key scope:** make the key unique per `(customer_id, idempotency_key)` so one customer's key can't return another customer's order. Also decide what a repeated key with a different cart returns; `422` is the usual choice.
- **Retry after decline:** a declined order stays tied to its key, so the client needs a fresh key to try again. Worth one line in the API notes.
- **Keys:** the table doesn't mark primary keys. `order_items` needs `(order_id, sku)` and `stock` needs `sku`.

VERDICT: READY WITH CHANGES
