The design is sound and can be built from tomorrow, provided you add three things to it first: two gaps in the reconciliation job and one unstated source for prices. The core flow needs no rework: the stock reservation, charging outside the transaction, the provider idempotency key and the `202` path are all right for 2,000 orders a day.

## Fix before building

**1. High: reconciliation has no rule for an order the provider has never heard of.**
- **Case:** an instance crashes after step 2 commits but before the charge call in step 3. The order is `PENDING` with stock reserved, and the provider answers "no such charge".
- **Problem:** step 6 only allows `PAID` or `FAILED`, so this order stays `PENDING` forever, holds its stock, and fires the 30-minute alert each time.
- **Fix:** define "not found" as mark `FAILED` and restore stock. If the provider supports it, also cancel the charge under that idempotency key so a late-arriving one cannot land.

**2. High: nothing stops an order being settled twice.**
- **Case:** both instances run the 5-minute job and both see order A as `PENDING` and declined. Each marks it `FAILED` and restores stock, so a 1-unit order adds 2 units back and you oversell. The same race on `PAID` sends two confirmation emails.
- **Fix:** make every status change conditional (`UPDATE orders SET status = ... WHERE id = :id AND status = 'PENDING'`). Restore stock or queue the email only if that update changed a row. Apply the same rule in steps 4 and 5.

**3. High if prices come from the client, otherwise a one-line clarification: the design does not say where `unit_price` and `total` come from.**
- **Case:** no table holds prices, and step 1 says the client sends "the cart". If the cart carries prices, a customer can post `unit_price: 0.01`.
- **Fix:** state that the server looks up prices and computes the total, and name the source.

## Fix during the build

- **Medium: the idempotency key is unique globally, not per customer.** If customer B sends a key customer A has used, B gets A's order back. Make the constraint `(customer_id, idempotency_key)`, and return `422` when the same key arrives with a different cart.
- **Medium: the client has no stated way to learn the outcome after a `202`.** Add `GET /orders/{id}` or state what the client polls.
- **Medium: the test plan misses the riskiest paths.** Add tests for:
  - the reconciliation job settling to paid, to declined and on "not found";
  - the job running twice on the same order;
  - two concurrent `POST`s with the same key;
  - two concurrent buyers for the last unit;
  - stock being restored after a decline.
- **Low: multi-item orders can deadlock.** Order 1 locks SKU X then Y while order 2 locks Y then X; Postgres aborts one and it surfaces as a `500`. Update stock rows in sorted SKU order.
- **Low: the confirmation email can be lost.** A crash between the `PAID` commit and queueing the email in step 4 means it is never sent. Write the email job in the same transaction as the status change, or accept and document the loss.
- **Low: the worst-case request may outlast the load balancer.** Four 5-second attempts plus backoff is roughly 27 seconds or more. Confirm the load balancer's timeout is longer, or cut the retries.
- **Low: the data model omits keys and constraints.** Add:
  - primary keys;
  - `CHECK (available >= 0)` on `stock`;
  - `CHECK (quantity > 0)` on `order_items`;
  - a column for the provider's charge id;
  - an index on `orders(status, created_at)` for the job.
- **Low: retrying after a decline needs a new `Idempotency-Key`.** Otherwise the client gets the `FAILED` order back. Document this for client developers.
- **Low: the design does not say how `customer_id` is authenticated.** State that it comes from the session and not the request body.

VERDICT: READY WITH CHANGES
