I reviewed `design.md`. The context and code-structure sections are fine, and the load is small: 2,000 orders a day is low for a single Postgres instance. The problem is the checkout flow itself. As written, it can charge a customer twice, or take their money and keep no order record. You'd be building the main payment path on that, so fix the flow before you start coding.

## Blockers

**1. Retrying the charge can bill a customer twice (`design.md:14-15`).**
A timeout doesn't mean the charge failed. The provider may have processed it and the reply never arrived. Retrying up to 3 times without an idempotency key can charge the customer up to 4 times.
- **Fix:** Send an idempotency key with every charge call, such as the order id. Retries then reuse the same charge instead of creating new ones. Check that your payment provider supports this.

**2. The database transaction stays open during the payment call (`design.md:13-18`).**
- **The order isn't saved before the charge.** The `PENDING` insert isn't committed until after the charge succeeds. If the process crashes, the commit fails, or the request runs out of time, the rollback deletes the order. The customer has been charged and you have no record of it.
- **Connections can run out.** Each checkout can hold a database connection and row locks for up to about 20 s (4 × 5 s). Under load that empties the connection pool.
- **Fix:** Split the work into separate steps:
  1. Commit the order as `PENDING`.
  2. Call the payment provider outside any transaction.
  3. In a new transaction, set the order to `PAID` or `FAILED`.

**3. When the result is unknown, the design treats it as a failure (`design.md:18`).**
After 3 timeouts, step 6 rolls back and tells the client the order failed, but the charge may have gone through.
- **Fix:** Leave the order `PENDING`, or add a status such as `PAYMENT_UNKNOWN`. Add a reconciliation job that asks the provider for the real outcome, or listens for its webhooks, and settles stuck orders.

**4. Stock is checked but never reserved (`design.md:10-12`).**
The check reads a cache that can be up to 5 minutes old, and nothing reserves or decrements stock. Two buyers can both pass the check for the last unit, so you will oversell.
- **Fix:** Using the cache is a reasonable trade-off for the first check. Then reserve or decrement stock as part of the order step, in the inventory module's own table, and decide what happens when a paid order turns out to be out of stock (refund, backorder?). The design should also say how the inventory module records stock changes, because right now it only reads.

## Should fix

5. **Duplicate orders from client retries.** If the client resends `POST /orders` after a network error, a second order gets created. Accept an `Idempotency-Key` header on that endpoint.
6. **Confirmation email.** Send it after the commit, from a background job or an outbox table, so a failing email service can't break or slow down checkout.
7. **Tests.** The single integration test covers only the happy path, but the risk is in the failure paths. Add integration tests for:
   - a payment timeout followed by a successful retry
   - a timeout where the charge actually succeeded
   - a crash between the charge and the commit
   - two buyers competing for the last unit of stock
8. **Backups.** With nightly backups only, a failure can lose up to a day of paid orders. Turn on WAL archiving or point-in-time recovery for the database.

## What's good
- Clear module boundaries, with no module reading another module's tables.
- Thin routes, with the flow in one `OrderCheckout` class.
- Structured logs that include the order id on every line.
- Choosing the cache over 800 ms warehouse calls is a reasonable trade-off.

Fixing items 1–4 is about half a day of design work: idempotency keys, separate transactions around the payment call, a reconciliation job, and stock reservation. Once the flow section is rewritten with those, it's ready to build.

VERDICT: NOT READY
