**Mostly, but not quite: the happy path, decline path and payment idempotency are sound. The reconciliation job (step 6) is under-specified in ways that can oversell stock, so fix that before you build it.** The other items are small enough to settle in the first hour.

Severity key: **High** means wrong behavior in production. **Medium** means a real gap that's cheap to close now and costly later. **Low** means handle it while building.

## Must settle before building

1. **High: reconciliation doesn't restore stock or send email.** Step 6 says orders are settled as `PAID` or `FAILED`, but only step 5 restores stock and only step 4 queues the email.
   - Case: the provider times out, the order goes `PENDING`, and reconciliation later finds the charge declined. The order becomes `FAILED` and the reserved stock is never returned.
   - Fix: make settlement one shared code path (`settle(order, result)`) used by steps 4, 5 and 6.

2. **High: two instances can settle the same order twice.** Both instances run the 5-minute job, and the design has no guard.
   - Case: both read the same `PENDING` order as declined, and both restore stock. Stock is now overstated by that order's quantity.
   - Fix: make every status change conditional (`UPDATE ... WHERE status = 'PENDING'`) and only restore stock if a row changed. Also use `FOR UPDATE SKIP LOCKED` when selecting orders to reconcile.

3. **High: no rule for "the provider has no charge for this order".** If the process crashes after step 2 commits but before the charge is sent, the order is `PENDING` with no charge. The design doesn't say what reconciliation does when the provider returns "not found" or "still processing". Pick one rule for each, for example not found after N minutes means `FAILED` plus stock restore, and processing means leave it.

4. **Medium: the module rule conflicts with the transaction in step 2.** "No module reads another module's tables" conflicts with reserving stock (inventory) and inserting the order (orders) in one transaction. Decide who owns the transaction. I'd recommend `OrderCheckout` opens it and passes it to both modules' repositories. Same issue in step 5.

5. **Medium: where prices come from isn't stated.** `order_items.unit_price` and `total` exist, but the request carries "the cart". If the client sends prices, anyone can order at any price. State that the server looks prices up and ignores client-supplied ones. There's also no catalog or price table in the model yet.

6. **Medium: the tests skip the riskiest part.** The list has no reconciliation test, no test for stock restore after a decline, and no concurrent test (two simultaneous identical `POST`s, or two buyers of the last unit). Add these before writing the job, per your tests-first standard.

## Fix while building

7. **Medium: possible deadlock in step 2.** Two orders reserving the same SKUs in different order can deadlock. Sort items by SKU before updating.
8. **Medium: the confirmation email can be lost.** If the process dies between committing `PAID` and queueing the email, the email never goes out. At 2,000 orders a day, writing an outbox row in the `PAID` transaction is cheap. The alternative is to accept the loss and write that down.
9. **Medium: schema constraints aren't listed.** The data model has no primary keys, foreign keys, or index on `(status, created_at)` for the job. It also has no `CHECK (available >= 0)` on stock. The unique constraint on `idempotency_key` is described in the flow but not in the model.
10. **Low: a concurrent duplicate `POST` needs handling.** The second request blocks on the unique index, then fails with a violation once the first commits. Catch that and return the existing order. Also decide what happens when a key is reused with a different cart (suggest `422`).
11. **Low: the client may wait about 25 s.** Four attempts at a 5 s timeout, plus backoff, all happen inside the request. That's acceptable at this volume, but confirm the client and load balancer timeouts allow it.
12. **Low: no authentication or `customer_id` source.** It isn't stated where `customer_id` comes from. It should come from the auth token, not the request body.
13. **Low: refunds and cancellations are out of scope.** Fine for v1, but say so explicitly.

## Next step
Write items 1 to 3 into design.md as a short "settlement" section (one function, conditional updates, a rule for each provider answer). Then start building with the reconciliation tests.

VERDICT: READY WITH CHANGES
