**Not ready to build as written, but about an hour of edits to the design fixes it.** The flow in steps 3–6 can charge a customer twice or charge them and lose the order. The module layout and the scale assumptions are fine.

## Must fix before coding

**1. Retrying the charge can double-charge (step 4).**
- **Failing case:** the charge succeeds at the provider but the response takes more than 5 s. We time out and retry, and the customer is charged twice. A timeout doesn't mean the charge failed.
- **Fix:** send an idempotency key on every charge call, for example the order id. Most providers support one. Then a retry returns the original result.
- **Add:** a path that asks the provider "did this charge happen?" when all retries time out.

**2. The order can fail after the customer has been charged (steps 3–6).**
- **Failing case:** the charge succeeds, then the commit fails or the process crashes. Step 6 rolls back, so there is no order and the money is gone.
- **Failing case:** all three attempts time out and we roll back, but one of them actually went through.
- **Fix:**
  - Commit the `PENDING` order first, then call the provider outside any open transaction.
  - Record the result in a second step.
  - Add a small reconciliation job that resolves stale `PENDING` orders against the provider.
- **Side benefit:** this also stops the transaction holding a database connection for up to 15 s of retries.

**3. The stock check doesn't reserve anything (step 2).**
- **Failing case:** the cache shows 1 unit left. Ten orders arrive within the 5-minute refresh window and all pass.
- You accepted the cache for being stale, but a stale cache that is never decremented is a different problem.
- **Decide one of these and write it down:**
  - Decrement the cache locally on each order.
  - Accept overselling and define the backorder or refund path.
- Either is fine at 200–2,000 orders a day. It just has to be a stated decision.

**4. Duplicate orders from client retries.** If the client retries `POST /orders` after a network blip, it creates a second order. Require a client-supplied idempotency key on the endpoint, stored with a unique constraint.

## Should fix

- **Confirmation email (step 5):** the design doesn't say what happens if sending fails. It shouldn't affect the order. Send it after the commit, and treat a failure as "log it and retry later", not as an error to the client.
- **Backups:** with nightly backups on a single instance, a crash can lose up to a day of paid orders. Turn on WAL archiving (point-in-time recovery) or a replica. It's cheap to add now and hard to retrofit.
- **Tests:** "unit tests plus one happy-path integration test" doesn't cover the risky parts. Before building, list the failure tests the flow needs. Write them first, per your TDD standard:
  - a charge timeout followed by a successful retry, which must produce exactly one charge
  - a card decline
  - a crash between charge and commit, resolved by reconciliation
  - a duplicate `POST /orders`
  - a stock shortfall
- **Error responses (step 6):** distinguish a declined card from an unknown payment state ("we're confirming your payment"). The client should handle them differently.

## What's already good
The size of the system (single Postgres, one team, 2,000 orders a day) doesn't need anything more elaborate. The module boundaries, thin routes, the `OrderCheckout` class and logging by order id are all sound.

VERDICT: READY WITH CHANGES
