Used as the server-route pattern for the daily handler, with injectable dependencies for listing invoices and sending and marking reminders. Code handled both framework event and plain request shapes and checked a cron secret. Never executed inside a real framework runtime in the record.
- What worked
- Route convention kept billing logic in the domain module and made reminder selection and once-per-day dedupe testable without external services.