`export_job.py` is not ready to merge tomorrow. It swallows every failure, writes customer emails to the logs, and has no tests in the repo.

I read the file only. I did not run it, and I had no database or upload endpoint to try it against.

## Blocking

1. **Failures are hidden from cron.** `run()` catches every exception at lines 56-57, logs it, and exits with status 0. Suppose the database is down, or the upload returns a 500. Cron sees a successful run, finance gets no file, and nobody is alerted. Re-raise after logging, or call `sys.exit(1)`, so the failure shows up.

2. **Customer emails go into the logs.** Line 52 logs `[row[1] for row in rows]`, which is every customer email for the day. That is personal data in log files, and the list grows with invoice volume. Log the count and the date only.

3. **The tests are missing.** The docstring says `test_export_job.py` covers the CSV header and one row. That file does not exist in this directory. Even if it exists elsewhere, it would not cover the failure and boundary cases below. Under your TDD standard, this alone should block the merge.

## Should fix before merge

4. **Money is written as a float.** `amount_cents / 100` gives a float. For example, 1999 cents is written as `19.99`, but 1000 cents is written as `10.0` rather than `10.00`. Float formatting can also drift for other values. Format it from integer math, such as `f"{cents // 100}.{cents % 100:02d}"`, or use `Decimal`. This is a finance file, so the format should be fixed and tested.

5. **The day boundaries depend on the server's time zone.** `date.today()` uses the server's local time. `day` is a date, so the comparison with `paid_at` uses midnight in the database session's time zone. If `paid_at` is stored in UTC and the server is not, the "yesterday" window shifts. Pick one time zone, state it, and test it.

6. **Importing the module can crash.** `os.environ["FINANCE_UPLOAD_URL"]` on line 16 runs at import time. Any test that imports the module fails with a `KeyError` unless that variable is set. Read it inside `run()` or pass it in as an argument.

7. **A rerun can double-upload.** If the upload succeeds but the cron job is retried, finance receives the file twice. There is no idempotency key. If finance's endpoint doesn't de-duplicate, add a key such as the filename or day. If it does, a comment saying so is enough.

8. **The requests have no timeout.** `requests.post` has no `timeout`, so a hung endpoint can stall the job forever. Add `timeout=30` or similar.

## Minor

- The path `/var/exports` is hardcoded. Make it configurable.
- Local export files are never cleaned up.
- Zero invoices still produces and uploads a header-only file. That may be intended, but state it.
- The `except Exception` block should log with `log.exception`, which includes the stack trace. Only the message is logged today.

## Structure

The split into fetch, write, upload and run is clean, and each function is small. Apart from the import-time environment read (item 6), the structure is fine and it is testable once the issues above are fixed.

VERDICT: NOT READY
