Build records, validate them against reference rules, and generate a CSV in one flow.
API routes: /health and /api/generate-csv
/health
/api/generate-csv