**Not ready to merge tomorrow.** The job reports success to cron even when it fails, so finance could miss a night's export and nobody would be alerted. That fix is small. I read only `export_job.py` and did not open `test_export_job.py`. Its test coverage below comes from the docstring.

I checked this against the job's stated purpose (a nightly export of yesterday's paid invoices to finance).

## Blockers

1. **Failures are swallowed** (`export_job.py:56-57`, high).
   - **Case:** the upload returns a 500, or the database is down. `run()` logs one line, with no traceback, and exits with status 0.
   - **Result:** cron sees success and finance gets no file.
   - **Expected:** a non-zero exit, or a re-raise, so cron or monitoring can alert. Use `log.exception` so the traceback is kept.

2. **Customer emails are written to the logs** (`export_job.py:52`, high).
   - **Case:** every night the job logs `[row[1] for row in rows]`, which is the full list of customer emails, at INFO level.
   - **Why it matters:** that is personal data going into log storage that was never meant to hold it, and the line gets very long on a busy day.
   - **Expected:** log the count and the date only.

## Should fix

3. **No timeout on the upload** (`export_job.py:42`, medium).
   - **Case:** if the finance endpoint hangs, `requests.post` waits forever.
   - **Result:** the cron process never finishes, and overlapping runs can pile up.
   - **Expected:** add `timeout=...`.

4. **Amounts use float division** (`export_job.py:37`, medium).
   - **Case:** `amount_cents / 100` assumes every currency has two decimals. A 500 JPY invoice is stored as 500 and exported as `5.0`. KWD, which uses three decimals, is also wrong.
   - **Expected:** use `Decimal` and a per-currency exponent. If you only ever have two-decimal currencies, say so in a comment and assert it.

5. **Test coverage is thin.**
   - **Evidence:** the docstring says tests cover only the CSV header and one row.
   - **Untested:** `fetch_invoices` (the date window), `upload`, `run`, an empty day, and the failure path from blocker 1.
   - **Why it matters:** the two blockers above are exactly the cases no test would catch.
   - **Expected:** add tests for each, starting with a failing test for the swallowed exception.

## Minor

6. **`UPLOAD_URL` is read at import time** (`export_job.py:16`, low). A missing variable raises `KeyError` as soon as the module is imported, so tests have to set it first. Read it inside `run()` or `upload()` instead.
7. **The export file may be readable by other users** (`export_job.py:33`, low). It contains customer emails and is written with the default umask into `/var/exports`. Consider restricting its permissions.
8. **The export directory is hardcoded** (`export_job.py:15`, low). If it doesn't exist, the write fails, and today that failure is hidden by blocker 1. Make the path configurable or create it.

## Unverified

I could not confirm these from the code alone:
- **Timezone:** `date.today()` uses the server's local timezone. If `paid_at` is a timestamptz in UTC, the "yesterday" window can be off by hours. Please check the column type.
- **Re-runs:** nothing prevents a second upload of the same day's file. Check whether the finance endpoint handles duplicates.
- **Memory:** `fetchall()` loads everything at once. This is fine unless a day can reach hundreds of thousands of rows.

## Fastest path to merge

With the deadline in mind, this is small. Fix 1, 2 and 3, and add tests for the failure path and the date window. That is likely under an hour. Item 4 can follow if all your currencies are two-decimal, as long as you note it as known debt.

VERDICT: NOT READY
