ADR 0017: An empty DAILY_BRIEF_PATH_TARGETS list is a startup config error
Status
Accepted (decided 2026-10-06 on the 2026-10-05 audit findings). Refines ADR 0016 decision 3, which left an explicitly empty array selecting the built-in default. ADR 0016 is not edited; this record supersedes only that one sentence.
Context
ADR 0016 made a set-but-unparseable DAILY_BRIEF_PATH_TARGETS a startup
error but kept [] (and JSON null) silent: config.loadPathTargets returned
the built-in default target (WH1 / pick-zone-a). That leaves one
misconfiguration invisible. An operator who writes [] either made a mistake
(a templating step produced an empty list) or means "monitor nothing" — an
intent the daily brief cannot honour, because a brief that monitors no path
is useless, and quietly substituting the demo path would brief the wrong
building under a healthy-looking 200.
Decision
- Unset (or the empty string) uses the default target — unchanged. The
Helm chart's empty
config.dailyBriefPathTargetsdefault renders no variable at all, so it is unaffected. - Set to unparseable JSON is a config error naming the variable — unchanged (ADR 0016).
- Set to an empty array
[](ornull) is now also a config error.config.Loadreturns it,cmd/agentexits non-zero before serving. The message namesDAILY_BRIEF_PATH_TARGETSand says how to get the default: unset the variable, or list at least one target.
No new variable, no new default, no change to the PathTarget shape.
Consequences
Positive — fail fast: the mistake surfaces in the rollout, not in a brief about the wrong path. The rule is now uniform: the default is reachable only by not setting the variable.
Negative / contract notes — a deployment that currently carries
DAILY_BRIEF_PATH_TARGETS='[]' will crash on start until the variable is unset
or filled. This is intended and visible in the rollout. REST, MCP and event
contracts are unchanged (this service has no Kafka I/O).