No, it isn't ready to merge tomorrow. Two problems would cause real harm in production. If the export fails, the job hides it, so finance can silently miss a day's invoices. And it writes every customer's email address into the logs each night. Also, the docstring says `test_export_job.py` covers this job, but that file isn't in the directory, so I found no tests at all.

## What happens when a run fails

```mermaid
flowchart LR
    A[cron 02:00] --> B[query yesterday's PAID invoices]
    B --> C[write CSV]
    C --> D[POST to finance]
    B -- error --> E[log.error, exit code 0]
    C -- error --> E
    D -- error --> E
    E --> F[cron records success; finance gets nothing; that day is never retried]
```

## Problems, by severity

**High (must fix before merge)**

1. **Failures are hidden** (`export_job.py:56-57`). The `except Exception` block logs the error and returns normally, so the process exits with code 0. For example, if the finance endpoint returns a 500 error, cron and any alerting treat the run as a success, and no CSV reaches finance. Either re-raise after logging or `sys.exit(1)`, and use `log.exception` so the traceback is kept.
2. **Customer emails go into the logs** (`export_job.py:52`). `[row[1] for row in rows]` logs every `customer_email`, which is personal data, every night. Log only the count.
3. **No tests.** `test_export_job.py` doesn't exist. Even the "header and one row" test the docstring describes would only cover `write_csv`. At minimum, add tests for: a failed run exits non-zero; the amount format; the date window (`fetch_invoices` with a fake cursor); an upload error is raised. Right now importing the module crashes without `FINANCE_UPLOAD_URL` set (item 7), which also makes it hard to test.

**Medium (fix before merge, or create a ticket and record it as debt)**

4. **Money is converted to floats** (`:37`). `amount_cents / 100` produces floats, and it assumes every currency has 2 decimal places. For example, if JPY is stored as `500` (no minor unit), the export shows `5.0` when it should be `500`. Use `Decimal` with each currency's exponent, or send `amount_cents` as is and agree the format with finance.
5. **The day boundary depends on the server's time zone** (`:47`, `:28`). `date.today()` uses the host's time zone, and Postgres compares the date against `paid_at` using the session's time zone. If either one doesn't match the business day finance expects, invoices paid near midnight end up in the wrong file. Set the time zone explicitly (for example, UTC) and use it on both sides.
6. **No upload timeout** (`:42`). `requests.post` has no `timeout`, so if the endpoint stops responding, the job can hang forever. Combined with item 1, nobody would notice.
7. **There's no way to re-run a missed day.** The date is always "yesterday", so if Tuesday night's run fails you can't export Monday on Wednesday. Accept an optional date argument.

**Low (cleanup)**

8. **Environment variable read at import time** (`:16`). The module raises `KeyError` on import if `FINANCE_UPLOAD_URL` isn't set. Read it inside `run()` or pass it in.
9. **No logging setup** in `__main__`. INFO messages, including "export finished", are dropped because Python's default log level is WARNING.
10. **A failed write leaves a partial file in place.** If writing the CSV fails partway, a half-written `invoices-<day>.csv` stays behind and the next run overwrites it. Write to a temporary file and rename it when done.
11. **Export directory is hard-coded** (`:15`). `/var/exports` should come from config.

**Open question:** the upload sends no authentication. Is that correct for the finance endpoint, or is auth handled elsewhere?

## What it takes to merge

The high items are small changes, roughly an hour plus tests. If time is tight tomorrow, fix 1–3 and file tickets for 4–7. Item 4 (amounts) is the one I'd least want to defer, because it changes the figures finance receives.

VERDICT: NOT READY
