**Not ready to merge tomorrow as written.** The job reports success to cron when the export fails, so finance could miss a night's file and nobody would be told. That fix is small. I read only `export_job.py`; I did not run it, and I haven't seen `test_export_job.py`. I judged it against its docstring, since there is no other requirements document.

## Must fix before merge

1. **Failures are swallowed (high).** `run()` catches every `Exception` at `export_job.py:56-57`, logs one line, and exits 0.
   - **Failing case:** the finance endpoint returns a 500 at 02:00. `raise_for_status()` raises and the handler logs "export failed". The process exits 0, cron sees nothing wrong, and finance gets no file.
   - **Expected:** a non-zero exit, or an alert.
   - **Fix:** use `log.exception(...)` and re-raise, or call `sys.exit(1)`.
   - **Related:** `psycopg2.connect` (line 49) sits outside the `try`, so a database outage does fail loudly. Only the later failures are hidden.

2. **Customer emails are written to the logs (high).** Line 52 logs `[row[1] for row in rows]`, which is every customer email for the day. Logs usually have wider access and longer retention than the finance upload. Log the count and the date only.

3. **The tests are too thin for the job's main risks (medium-high).** The docstring says the tests cover the CSV header and one row. Nothing covers these cases:
   - a failed upload
   - a failed query
   - a day with no invoices
   - the date window
   - the exit code

   Your standards say a fix isn't done without failure-path tests. The test for item 1 should assert that `run()` fails when `upload` raises.

## Should fix (small)

4. **`requests.post` has no timeout (medium, line 42).** If the endpoint hangs, the job hangs forever. Add something like `timeout=30`.

5. **Amounts are computed with float division (medium, line 37).** `amount_cents / 100` is wrong for currencies without cents.
   - **Failing case:** 500 JPY is stored as `500` and exports as `5.0`.
   - **Expected:** `500`.
   - **Check first:** if you only invoice in USD or EUR, this is cosmetic. Either way, use `Decimal` and a per-currency exponent, or document that only two-decimal currencies are supported.

6. **`UPLOAD_URL` is read at import time (low, line 16).** Importing the module without `FINANCE_UPLOAD_URL` set raises `KeyError`, so tests need the variable set before they import anything. `DATABASE_URL` is read inside `run()`, so the two are inconsistent. Read both inside `run()`.

## Minor

7. **The CSV files stay on disk (low).** Each file in `/var/exports` contains customer emails and is never deleted, and `EXPORT_DIR` is hardcoded. Decide on retention, or make the directory configurable.

8. **A day with no invoices uploads a header-only file (low).** That may be what finance wants, but the code doesn't say it is intentional.

## Speculative (not blocking, worth a quick check)

- **Timezone.** `date.today()` uses the server's local time, and `paid_at` is compared against a bare date in the database session's timezone. If the server and database zones differ, an invoice paid near midnight could land in the wrong day's file, or in two. I can't tell from this file what `paid_at`'s type or zone is.
- **CSV formula injection.** An email starting with `=` or `+` would be read as a formula if finance opens the file in Excel. This only matters if the file is opened in a spreadsheet.
- **No retry, and no check for a duplicate upload.** A re-run overwrites the local file and re-posts it. Whether finance's endpoint tolerates that depends on a system I can't see.

## Suggested path

Items 1, 2 and 4 are a few lines of code. Item 3 is one new test, and the other missing tests can follow. That is realistic for a day, and I'd re-review after it.

VERDICT: NOT READY
