**It's close but not ready to build from as written.** The core approach holds up: the stock reservation is atomic, the charge call sits outside the transaction, and the payment idempotency key is the order id. Six gaps could cause wrong behaviour or force a rework mid-build, so settle them first. Most are small decisions that take a paragraph each.

## Fix before building

1. **The reconciler's `FAILED` path doesn't say it restores stock.**
   - Step 5 restores stock on a decline. Step 6 only says the job "settles as PAID or FAILED".
   - Case: the charge times out on every attempt, so the order stays `PENDING`. The job later finds the provider declined it and marks the order `FAILED`. If stock isn't restored, that unit is lost until someone fixes it by hand.
   - Say that both paths run the same "fail and restore" operation.
   - Make every status change conditional (`UPDATE ... WHERE status = 'PENDING'`) and restore stock only if that update changed a row. Otherwise a retry or a second job instance restores the stock twice.

2. **The reconciler isn't safe with two instances, and "not found" is undefined.**
   - Both service instances will run the 5-minute job. Nothing says only one runs it, or that a request still retrying can't collide with it.
   - Use `SELECT ... FOR UPDATE SKIP LOCKED` or an advisory lock.
   - Define what the provider returns for a charge that doesn't exist. This happens if the service crashes between the step 2 commit and the charge call.
   - My suggestion is that "not found" after 2 minutes means `FAILED` plus restore. Confirm that the provider's idempotency window makes this safe, so a late charge can't still land.

3. **The module rule contradicts step 2.**
   - The doc says "no module reads another module's tables". Step 2 decrements `stock` (inventory) and inserts into `orders` (orders) in one transaction.
   - Pick one:
     - `OrderCheckout` opens the transaction and passes it to both modules' repositories. This is the simpler choice at your scale.
     - Or inventory becomes a separate reservation step with its own compensation.
   - Write the choice down, because it shapes the module interfaces.

4. **Where prices come from isn't stated.** `order_items.unit_price` and `total` exist, but the request is "the cart" and no catalog or price table is described. The server must compute the price. If it trusts client-supplied prices, a client can order at any price. Add the price source, or state that the cart carries SKU and quantity only.

5. **The API contract is missing.**
   - `202` tells the client to wait, but there's no `GET /orders/{id}` to poll.
   - Request and response shapes aren't given.
   - The `409` doesn't say which SKU was short.
   - Say what happens when the same key arrives with a different cart. I'd return `422`.

6. **The test plan skips the riskiest parts.** Add these:
   - The reconciler: settles `PAID`, settles `FAILED` and restores stock, runs twice without double-restoring, and handles a charge the provider doesn't know.
   - A real concurrent case: two buyers racing for one unit, and two simultaneous requests with the same key.
   - A decline restoring stock.
   - A failed email leaving the order `PAID`.

## Smaller items (fix in the first PR)

- **Deadlock risk:** a cart with SKUs A and B racing a cart with B and A can deadlock on the `stock` updates. Sort SKUs before updating.
- **Duplicate key race:** the second concurrent insert hits the unique constraint. Catch it and return the existing order rather than a `500`.
- **Lost confirmation email:** a crash between the `PAID` commit and queueing loses the email. At 2,000 orders a day, either write an outbox row in the same transaction or accept the loss and note it.
- **Schema gaps:**
  - Add primary keys on `stock(sku)` and `order_items`.
  - Add a status check constraint.
  - Add an index on `orders(status, created_at)` for the reconciler.
  - Store the provider's charge id.
- **Retry rules:** say which provider errors are retried (timeouts and 5xx, not 4xx).
- **Request time limit:** worst case is about 4 attempts at 5 s each plus backoff, so confirm the load balancer timeout is longer.
- **Reconciler alert:** add one for the job itself failing, not only for old `PENDING` orders.

VERDICT: READY WITH CHANGES
