**The design is sound at its core and you can start building tomorrow, provided you settle four gaps in the doc first.** Each is a short addition to the doc, not a rework.

The parts I would not change are the conditional stock decrement, the payment call outside any transaction, the order id as the provider idempotency key, and the reconciliation job for unknown results.

## Fix before writing code

1. **Stock can be restored twice.** Nothing says a status change only applies if the order is still `PENDING`, or that the reconciliation job runs on only one of the two instances.
   - **Failing case:** an order for 3 units ends with an unknown result, and the provider later reports it declined. The job on both instances picks it up, each marks it `FAILED` and each adds 3 back.
   - **Result:** `stock.available` is 3 too high and you oversell; it should be restored once.
   - **Fix:** make every transition `UPDATE orders SET status = … WHERE id = … AND status = 'PENDING'`, and restore stock only if that changed a row.

2. **Reconciliation has no rule for "the provider has never heard of this order".** Step 6 only settles as `PAID` or `FAILED`.
   - **Failing case:** an instance crashes after step 2 commits and before the charge call in step 3. The order is `PENDING` with stock reserved, and the provider returns "not found".
   - **Result:** the order stays `PENDING` forever with stock held, and only the 30-minute alert catches it.
   - **Fix:** treat "not found" on an order older than 2 minutes as `FAILED` and restore stock. The longest in-flight attempt is about 30 seconds, so this is safe.

3. **The idempotency key is globally unique rather than per customer.**
   - **Failing case:** customer B sends a key that customer A already used, and gets A's order back.
   - **Fix:** make the constraint unique on `(customer_id, idempotency_key)`.
   - **Also decide:** what a repeated key with a different cart returns (I suggest `422`), and that retrying a `FAILED` order needs a new key.

4. **The doc does not say where `unit_price` and `total` come from.** The client sends the cart and there is no price table or catalog call. State that prices are looked up server-side and never taken from the request, and name the source.

## Smaller additions, can land during the build

- **Lost confirmation email:** step 4 commits `PAID` and then queues the email. A crash between the two loses it, and nothing retries because reconciliation only looks at `PENDING`. Write the email job in the same transaction as the `PAID` update.
- **Deadlocks:** two carts holding the same two SKUs in opposite order can deadlock in step 2. Update stock rows in sorted SKU order.
- **Module boundary:** "no module reads another module's tables" conflicts with steps 2 and 5, which change `stock` and `orders` in one transaction. Say how: `OrderCheckout` owns the transaction and passes it into the inventory and orders modules.
- **After a `202`:** the client has no stated way to learn the outcome. Add `GET /orders/{id}`.
- **Schema:** add primary keys (`stock.sku`, `order_items (order_id, sku)`), a `CHECK (available >= 0)`, and an index on `orders (status, created_at)` for the job.
- **Scope:** say that refunds and cancellations are out of scope, since the three statuses cannot represent them.

## Test plan gaps

The integration list has no reconciliation tests and no concurrency tests. Add these:

- Reconciliation with each provider answer: paid, declined and not found.
- Reconciliation run twice on the same order, asserting stock is restored once.
- Two simultaneous buyers for the last unit, asserting one `409`.
- Two simultaneous `POST /orders` with the same key, asserting one order and one charge.
- The same key with a different cart.
- A crash between `PAID` and the email.

VERDICT: READY WITH CHANGES
