**The design is close, but it isn't ready to build as written.** The happy path and the retry-safe charge are sound. The gaps are in settlement: what happens when an order's final outcome is unclear or two code paths try to settle it. That is where money and stock go wrong, so fix those before you build.

**Must fix before building**

1. **The reconciliation job has no rule for "provider has never heard of this order".**
   - Case: the service commits `PENDING`, then crashes before calling the provider. After 2 minutes the job asks the provider about the order and gets "not found". The design says it settles as `PAID` or `FAILED`, but this is neither.
   - There is a worse case: the provider reports the charge as still in progress. If the job marks the order `FAILED` and restores stock, and the charge then succeeds, the customer is charged for an order you show as failed.
   - Decide this explicitly:
     - "Not found" after N minutes means retry the charge (it's safe, because you send the order id as the idempotency key) or mark `FAILED`.
     - "In progress" means leave it `PENDING`.
     - A charge that succeeds after the order was marked `FAILED` needs a refund path or an alert.

2. **Two code paths can settle the same order.**
   - Case: the request path gets a decline at the same moment the reconciliation job marks the order `FAILED`. Both restore stock, so `available` goes up by 2× the quantity. Stock is now overstated and you can oversell.
   - Fix: make every settlement `UPDATE orders SET status=… WHERE id=… AND status='PENDING'`, and restore stock only if that update changed a row. Add a test for it.
   - You run two instances, so both will run the job. Have it claim rows with `FOR UPDATE SKIP LOCKED`, or run it on a single instance.

3. **A `202` response gives the client no way to learn the outcome.** There is no `GET /orders/{id}` and no webhook. Add the endpoint, with an ownership check so a customer can only read their own order. The doc also never mentions authentication.

4. **Where prices come from is unstated.** If `unit_price` or `total` comes from the client's cart, the client sets its own price. Say that the server looks up prices and computes the total. The tables also don't store the provider's charge id or a payment reference, which reconciliation and refunds will need.

5. **The tests skip the riskiest part.**
   - Reconciliation has no test at all.
   - Also missing: a concurrent settle (item 2), a crash between commit and charge, a decline restoring stock, and a multi-item cart that rolls back when one item is short.
   - Add these to the test list. Per your TDD standard, write them first.

**Fix soon (small, but cheaper now)**

- **Deadlocks on multi-item carts:** two orders with items A and B in opposite order will deadlock on the stock updates. Sort items by `sku` before reserving.
- **Lost confirmation email:** a crash between the `PAID` commit and the enqueue loses the email for good. Write an outbox row in the same transaction as the `PAID` update. Also, no queue is listed in Context, so name the one you'll use.
- **Idempotency key edge cases:**
  - The key is unique across all customers. Scope it to `(customer_id, key)`.
  - A concurrent duplicate hits the unique constraint mid-transaction. Catch that error and return the existing order.
  - The same key sent with a different cart should return an error, not the old order.
- **Schema basics:** `stock` and `order_items` have no primary keys, foreign keys or indexes. Reconciliation needs an index on `(status, created_at)`. Add a `CHECK (available >= 0)` as a backstop.
- **Error classification:** list which provider responses count as a decline, which as a retryable error, and which as unknown. A 5xx must never be treated as a decline.
- **Request length:** 4 attempts at 5 s plus backoff can hold the HTTP request open for about 30 s. Check that against your load balancer timeout.
- **Out of scope:** cancellation and refunds are not covered. That's fine, but say so in the doc.

**What's good:** charging outside the database transaction, the provider-side idempotency key, a reconciliation job as the safety net, the `PENDING` alert, and the module boundaries. The scale (2,000 orders a day) doesn't need anything fancier than Postgres.

**Tradeoff:** you can start tomorrow on the parts that don't depend on the open questions. Those are the schema, the `POST /orders` reservation transaction, and the charge client. Items 1 and 2 shape the settlement code, so settle them in the doc before writing that part.

VERDICT: READY WITH CHANGES
