`export_job.py` is not ready to merge tomorrow: when a night's export fails, the job reports success and that day's invoices are never sent to finance. I reviewed by reading the file only; nothing was run, and `test_export_job.py` (named in the docstring) is not in this folder, so I could not check the tests.

## Blockers

1. **Failures are silent (critical).** `run()` catches every exception, logs one line and exits with code 0 (`export_job.py:56-57`). For example, if the finance endpoint returns a 500 at 02:00, cron sees a successful run and nobody is alerted. Fix: log with `log.exception` and re-raise, or exit non-zero.

2. **A failed day is never recovered (high).** The date is hardcoded to "yesterday" (`export_job.py:47`) and there is no retry. If the 14 Nov run fails, the 15 Nov run exports only 14 Nov's invoices, and 13 Nov's are never sent. Fix: accept the date as an argument so a day can be re-run, and retry the upload.

3. **Customer emails are written to the logs (high, privacy).** Line 52 logs the full list of `customer_email` values for every run. Fix: log only the count.

4. **The upload can hang forever (high).** `requests.post` has no timeout (`export_job.py:42`). If the finance endpoint stops responding, the job never ends and stuck runs pile up night after night. Fix: add `timeout=`.

5. **Logging is never configured (high).** The script never calls `logging.basicConfig`, so both "exporting…" and "export finished" lines are dropped when it runs from cron. Only the bare error message reaches stderr, with no traceback. This makes blocker 1 worse.

## Should fix, can follow the merge if tracked

6. **Day boundary depends on the server's timezone (medium, needs checking).** `date.today()` uses the server's local time, and the query compares that date against `paid_at`. If `paid_at` is stored in UTC and the server or finance works in another zone, invoices paid near midnight land in the wrong day's file. I can't confirm without the column type and server settings.

7. **Test coverage is too thin (medium).** By the docstring, tests cover only the CSV header and one row. Nothing covers the date window, an upload failure, or `run()`'s failure behaviour, which is where the blockers are.

8. **Export files with customer emails stay on disk indefinitely (medium).** Files in `/var/exports` are never deleted and are created with default permissions. A failed run also leaves a partial file behind.

9. **Amounts are formatted inconsistently (medium).** `amount_cents / 100` writes 1000 cents as `10.0` and 1999 cents as `19.99`. It also assumes every currency has two decimal places, which is wrong for JPY if amounts are stored in minor units. Fix: use `Decimal` and format per currency.

10. **Re-running a day uploads the same file twice (medium).** Whether finance gets duplicates depends on their endpoint; worth confirming before adding the re-run option from blocker 2.

## Minor

11. **Import-time environment lookup (low).** `FINANCE_UPLOAD_URL` is read at import (`export_job.py:16`), so importing the module in a test without that variable raises `KeyError`.
12. **No file encoding set (low).** `open()` at line 33 uses the cron locale's encoding, so a non-ASCII email address can crash the write.
13. **All rows loaded into memory (low).** `fetchall()` is fine at today's volume but grows with invoice count.
14. **Spreadsheet formula injection (low).** An email value starting with `=` or `+` is executed as a formula if finance opens the CSV in Excel.
15. **Empty days upload a header-only file (low).** Confirm finance expects that rather than no file.

Blockers 1, 3, 4 and 5 are each a few lines. Blocker 2 is the largest, and a date argument alone, with retries left for later, would be enough to merge.

VERDICT: NOT READY
