null falls back to "api".
null falls back to "unknown", which is what the panel displays.
null only for a process deliberately not individually toggleable: it
stays gated by the global flag but never appears in the admin panel.
StaticinstanceThe process gate for kind, from the process keys MAINTENANCE_SERVICE_ID
and AWS_REGION, which describe the process and so are never namespaced.
Throttled (>=30s), best-effort, non-blocking refresh of this runner.
Effective gate state: the global flag OR this service's own flag.
The global read happens even when serviceId is unset. A process with no
MAINTENANCE_SERVICE_ID has no per-service flag to check and no registry
entry for an operator to toggle — it is exactly the process the global
switch exists for, so it must not short-circuit to false.
Both reads share one 5s cache window and one round trip.
A stale cache races the refresh against GATE_MAX_BLOCK_MS rather
than awaiting it outright — see that constant for why a gate on the
onRequest path must not be allowed to block without a ceiling.
Admin read of the global kill-switch. Uncached — operators need truth.
written is false when no client or an open breaker skipped the write.
written is false when no client or an open breaker skipped the write.
Every field is required but nullable rather than optional: the caller has to state each one, and
nullis the deliberate "not set here" answer. An optional key lets a composition root forget it silently, which is how this service came to readMAINTENANCE_SERVICE_IDoffprocess.envand warn at runtime instead of being handed it.