**Not ready.** Steps 3 to 6 have flaws that lose money or orders, and they are cheap to fix in the design but expensive to fix after you've built on them. The scale (2,000 orders a day) and the module layout are fine.

## Blockers

1. **Charge retries can double-charge customers (step 4).** A timeout doesn't mean the charge failed. The provider may have charged the card and answered too slowly. Retrying without an idempotency key charges again. Pass a stable idempotency key per order (the order id) on every attempt. Most providers support this.

2. **A rollback can leave a customer charged with no order (steps 4 and 6).** If all retries time out, you roll back and return an error, but the charge may have gone through. The same happens if the process crashes after the charge and before the commit. The `PENDING` row disappears with the rollback, so nothing records that a charge may exist. Fix:
   - Commit `PENDING` before calling the provider.
   - After the call, record the outcome in a separate transaction.
   - Add a state for "payment unknown", plus a reconciliation job that asks the provider about stale `PENDING` orders.
   - Consider a provider webhook as the source of truth.

3. **The database transaction stays open during the payment call (steps 3 to 5).** With 3 retries of 5 s each, a transaction can hold a connection and row locks for 15 s or more. At today's volume that is survivable, but a slow provider will exhaust your connection pool and take down the whole service, including reads. Don't hold a transaction across a network call. Blocker 2 fixes this too.

4. **A client retry creates a duplicate order (step 1).** If the client times out and retries `POST /orders`, nothing deduplicates it. Require a client-supplied idempotency key and put a unique constraint on it.

## Serious gaps

5. **Overselling has no handling (step 2).** I accept the cache decision, since 800 ms is a real cost. But a 5-minute-stale cache that nothing decrements means two buyers can both get the last item. The design never says what happens when the warehouse later reports it can't fulfil an order. Define it: cancel and refund, or backorder. You also need an `order → refund/cancel` path. Right now the only states are `PENDING` and `PAID`.

6. **Email is sent inline after commit (step 5).** If the send fails or the process dies, there's no retry and no record. Write the email to an outbox row, or set a `confirmation_sent` flag, and send it from a worker.

7. **The test plan skips the dangerous paths.** One happy-path integration test won't catch blockers 1 to 4. Add tests for:
   - provider timeout then success on retry
   - all retries failing
   - a crash between charge and commit
   - a duplicate request with the same idempotency key

8. **Nightly backups on a single instance mean up to 24 hours of paid orders can be lost.** That is a business decision, but it should be a stated one. Payment records are the thing you can't recreate, so consider WAL archiving or point-in-time recovery. Managed Postgres usually gives you that cheaply.

## Smaller points

- Worst-case request latency is over 15 s. Say what the client sees and whether it should poll an order status instead.
- Log the provider request and response ids alongside the order id, because you'll need them for reconciliation.
- The module boundaries and the `OrderCheckout` class are fine. Don't add more structure for this scale.

## What to do before tomorrow

The fixes are a revision of the flow, not a rewrite. Redraw steps 3 to 6 as: commit `PENDING` with an idempotency key, call the provider with that key, record the result in a second transaction, and run a reconciliation job and an email outbox. Add the failure-path tests. That is about an hour of design work, and you can start building after it.

VERDICT: NOT READY
