Optional ReadonlyauditReadonlyfailOR-5: fail-mode policy for a limiter-backend outage, read from
config.rateLimit.failMode — one policy for the product, not one per
router. "open" lets the request through; "closed" returns 503.
Optional ReadonlyheaderConfigured spec backing the RateLimit-Limit / RateLimit-Reset headers
when the decision does not carry limit / resetAt. Callers with a
documented per-endpoint spec (e.g. rateLimit.login) pass it here;
without it the guard only advertises what the adapter actually reported,
because a header value the caller invented is a limit no request is
measured against.
ReadonlylimiterThe shared limiter component the guarded route runs on.
Optional ReadonlyloggerOperator-visible outage channel. Defaults to consoleLogger.
ReadonlytagEndpoint tag: the key prefix (<tag>:ip:<ip>) by which an adapter
resolves this route's spec, and the tag field on the guard's log and
audit emissions. E.g. "token", "authorize", "introspect", "login".
Structured-pipeline outage channel: when present the guard emits a
rate_limit.unavailableaudit event alongside thelogger.errorcall (fire-and-forget viaemitAuditEvent).