You can start tomorrow, but settle the first three items below first (about an hour of writing, no redesign). The core is sound. Reserving stock and recording the order in one transaction, charging outside any transaction, using the order id as the provider's idempotency key, and reconciling `PENDING` orders are all the right choices.

## Fix before building

**1. Stock can be restored twice (High).**
- *Evidence:* Step 5 restores stock when a charge is declined. Step 6 settles unknown orders as `FAILED` and doesn't say whether it restores stock. Two service instances both run the reconciliation job, and a slow request can still be in step 5 for the same order.
- *Failing case:* Both instances' jobs find order X `PENDING`, and both mark it `FAILED` and add its quantities back. Stock is now inflated, so you can oversell.
- *Fix:* Make every status change conditional (`UPDATE orders SET status='FAILED' WHERE id=:id AND status='PENDING'`). Restore stock only if that update changed a row. Apply the same rule to `PAID`. Say that reconciliation uses this path and queues the confirmation email when it settles `PAID`.

**2. A crash before the charge leaves a `PENDING` order with no charge at the provider (High).**
- *Evidence:* Step 2 commits the order, and step 3 charges afterward. If the instance dies in between, the provider has never heard of the order. Step 6 only says it "asks the provider for the charge status".
- *Failing case:* The reconciliation job asks about order X, and the provider answers "not found". The design doesn't say what happens next. Does the order become `FAILED` with stock restored, or does the job charge it? The customer's client is gone, so charging may be wrong.
- *Fix:* Decide this and write it down. I'd suggest "not found after the 2-minute threshold means `FAILED` and restore stock", with a test for it.

**3. The reconciliation job has no tests (High).**
- *Evidence:* The test list covers the request path only. Reconciliation is where the two items above live.
- *Fix:* Add tests for these cases:
  - `PENDING` order that the provider says was charged.
  - `PENDING` order that the provider says was declined.
  - `PENDING` order the provider doesn't know about.
  - The job running twice at once.
  - A decline restoring stock.

## Fix during the build (small, but write them in now)

- **Deadlocks when reserving stock (Medium).** Step 2 updates one stock row per item. If cart A is [X, Y] and cart B is [Y, X], they can deadlock. Sort items by `sku` before updating, and add a concurrent test.
- **No way for the client to see the outcome after a `202` (Medium).** Step 6 tells the client "202", but no `GET /orders/{id}` or similar is in the design. Add one, or say how clients learn the result.
- **Concurrent duplicate requests (Medium).** Two requests with the same `Idempotency-Key` can both pass the "key exists?" check. The loser hits the unique constraint and rolls back its stock reservation, which is safe. But the design should say it catches that error and returns the winner's order instead of a `500`. Add a concurrency test for it. Also say what happens if the same key arrives with a different cart.
- **Who sets the price (Medium).** The data model stores `unit_price` and `total`, but the flow never says where they come from. They must be computed server-side from a catalog, not taken from the cart the client sends. Please confirm.
- **Missing schema constraints (Low).** None of these are stated:
  - A primary key or unique constraint on `stock.sku`.
  - `CHECK (available >= 0)`.
  - A foreign key from `order_items` to `orders`.
  - An index on `orders(status, created_at)` for the reconciliation query.
  - A guard on which status changes are allowed.
- **Which payment errors get retried (Low).** Step 3 doesn't say. I'd retry timeouts and 5xx, and not retry 4xx or declines.
- **How long a request can run (Low).** Four attempts at 5 s each plus backoff means a request can hold open for 20 s or more. Check this against the client's and load balancer's timeouts.
- **Email can be lost (Low).** Step 4 commits `PAID` and then queues the email. A crash between the two loses the email, and nothing retries it. That's acceptable at 200 orders a day, but name it as known debt. The fix is an outbox table.

## Speculative (not supported by the document, just worth a thought)
- Whether the provider's idempotency window outlasts your longest `PENDING` period. If the provider forgets the key after 24 hours, a very late reconciliation could behave differently. Check the provider's docs.
- Whether "buying the last unit of stock" in the test list means two simultaneous buyers. It should.

## Not a concern
Scale is fine for two instances and one Postgres at 2,000 orders a day. The module boundaries, thin routes and logging plan match your standards.

VERDICT: READY WITH CHANGES
