**Not ready to merge tomorrow.** `export_job.py` has two problems that need fixing first. If the upload fails, the job reports success, so finance would silently get no file. It also writes every exported customer's email address into the logs. Both fixes are small. I read only `export_job.py`, not `test_export_job.py`, so the test notes below come from the docstring. I also haven't seen the requirements, so I judged readiness on what the code does.

## Must fix before merge

1. **High: failures are swallowed, so the job always exits 0** (`export_job.py:56-57`).
   - The `except Exception` block logs one line and returns. Cron sees success.
   - Example: finance's endpoint returns a 500 at 02:00. `raise_for_status()` raises, the error is logged, and the process exits 0. No alert fires, and finance finds out when the file is missing.
   - Expected: the job exits non-zero, with the traceback logged (`log.exception`).
   - Fix: re-raise, or call `sys.exit(1)`, after logging.

2. **High: customer emails are written to the logs** (`export_job.py:52`).
   - `[row[1] for row in rows]` logs every exported customer's email address on every run. That is personal data in log storage, and it is almost certainly not what you want.
   - Fix: log only the count and the day.

## Should fix (medium)

3. **No timeout on the upload** (`export_job.py:42`).
   - `requests.post` has no `timeout`, so a stalled endpoint hangs the cron job indefinitely.
   - Fix: add `timeout=30` or similar.

4. **Amounts are formatted with float division** (`export_job.py:37`).
   - `amount_cents / 100` writes 1000 cents as `10.0`, not `10.00`.
   - It also assumes every currency has two decimal places. JPY has none and KWD has three, so those amounts would be wrong by a factor of 10 or 100.
   - I don't know what format finance expects. Check that, and consider `Decimal` or a per-currency exponent.

5. **Test coverage is thin.**
   - The docstring says the tests cover only the CSV header and one row.
   - Nothing covers the failure path, which is issue 1, the empty-day case, the day boundaries in the query, or the upload.
   - Fixing issue 1 should come with a test that a failed upload makes the job fail. This matches your TDD standard.

## Minor

6. **Environment read at import time** (`export_job.py:16`). `os.environ["FINANCE_UPLOAD_URL"]` raises `KeyError` when the module is imported without that variable set, which will bite tests. Read it inside `run()` instead.
7. **Connection errors behave differently from other failures** (`export_job.py:49`). `psycopg2.connect` sits outside the `try`, so a database failure crashes the job while every other failure is swallowed. Once issue 1 is fixed, this inconsistency goes away.
8. **Possible spreadsheet formula injection.** An email starting with `=`, `+`, `-` or `@` would be treated as a formula if finance opens the CSV in Excel. This is unlikely for emails.
9. **No handling for a missing export directory.** `EXPORT_DIR` is hardcoded to `/var/exports` and never checked, and old files are never cleaned up.

## Speculative (needs your confirmation)

- **Timezone:** `date.today()` uses the cron host's local time, and the query compares against `paid_at`. If `paid_at` is a UTC `timestamptz` and the server or database session isn't UTC, the "yesterday" window could be shifted by hours, so some invoices would be missed or exported twice. Check the column type and the server timezone.
- **Re-runs:** if the job is re-run for the same day, it re-uploads the same file. I don't know whether the finance endpoint deduplicates.
- **Empty days:** a day with no paid invoices still uploads a header-only file. That may be intended.

Items 1 and 2 are each about a one-line change, so merging tomorrow is realistic if you fix those and add the failure-path test.

VERDICT: NOT READY
