Docker Compose passes undeclared variables as empty strings
(CRON_SECRET="" etc.), which crashed env validation while loading the
instrumentation hook. A throwing register() made Next.js answer every
route with 500 while the process stayed alive.
- parse optional CRON_SECRET / AUTO_RULE_SYNC_INTERVAL_SECONDS via
plain preprocess helpers that map blank strings to unset (zod v4
does not accept preprocess-produced undefined through .optional())
- guard instrumentation register() so scheduler failures can never
break request handling