**The design is mostly sound and you could start tomorrow, but settle five gaps first.** The core flow is good: the stock reserve is atomic, the charge runs outside a transaction with an idempotency key, and a reconciliation job handles unknown results. Each gap below can be fixed in the doc in about an hour. I only read `design.md`; there is no code yet.

## Must fix before building

1. **An order can be settled twice.**
   - A request that times out can be settled by the reconciliation job while the original request is still retrying.
   - Example: the job marks the order `FAILED` and restores 2 units, then the request's late success marks it `PAID`. Or both paths mark it `FAILED` and restore the stock twice, so stock goes up by 4 instead of 2.
   - Fix: write every transition as `UPDATE orders SET status=… WHERE id=… AND status='PENDING'`. Restore stock only if that update changed a row. Add this rule to steps 4–6.

2. **Step 6 doesn't say what to do when the provider has no record of the charge.**
   - If an instance crashes after step 2 commits but before the charge call, the order is `PENDING` with stock reserved and nothing charged.
   - When the job asks the provider about it, the answer is "not found".
   - As written, that order stays `PENDING` until the 30-minute alert fires, and the stock stays locked meanwhile.
   - Decide one of two things: mark it `FAILED` and restore stock, or charge it. I'd pick `FAILED`, for orders older than some threshold.

3. **The reconciliation job runs on both instances.** The two instances will each run it every 5 minutes and process the same orders. Item 1's guard makes that safe, but you should still choose a single runner, such as a Postgres advisory lock, or accept the duplicate work on purpose.

4. **The confirmation email queue is undefined.**
   - The Context section lists only Postgres and two instances, with no queue.
   - "Commit, then queue" can also lose the email if the process dies between the two.
   - Simplest fix: an `email_outbox` table written in the same transaction that marks the order `PAID`, drained by a worker.

5. **The idempotency handling is incomplete.**
   - The unique key is global, not per customer. Make it unique on `(customer_id, idempotency_key)`.
   - Two simultaneous requests with the same key: the loser hits a unique violation, which rolls back its stock reservation. That is correct, but the design must say to catch that error and return the winner's order instead of a 500.
   - Say whether a reused key with a different cart is rejected, for example with `422`.

## Smaller changes (can be done during the build)

- **Schema constraints are missing.**
  - There are no primary keys, foreign keys or indexes: add a PK on `stock.sku`, an FK from `order_items`, and an index on `orders(status, created_at)` for the job.
  - Add a `CHECK` on `status`.
  - Add `CHECK (available >= 0)` as a backstop.
- **Reserve stock in sorted `sku` order.** Two carts holding the same items in different order can deadlock.
- **Prices:** say that `unit_price` and `total` come from a server-side source, not from the client's cart.
- **Store the provider's charge id** on the order, or at least log it, to make support and reconciliation easier.
- **Add tests for the new rules:** a settlement race, a provider "not found", a concurrent duplicate key, and a crash after commit. The current six integration cases are good but don't cover these.

## What's good

- The stock update is conditional, so overselling is impossible.
- The charge is never held inside a database transaction.
- The module boundaries and the test list match your engineering standards.
- The load is small (2,000 orders a day), so the synchronous retry flow and a single database are fine.

VERDICT: READY WITH CHANGES
