Loading
refactor(rate_limit): treat variadic callables as zero-arity and document rule_context key contract
Tighten resolve_value so only arity >= 1 opts into rule_context. Variadic
lambdas (->(*args)) previously fell into the one-arg branch and silently
received [rule_context], so callers' overrides would never reach the
rule's lookup and the fallback default would fire with no error.
Also document on Limiter#check that the rule_context key contract is
owned by the rule's callable - a typo in the caller's hash falls through
to the callable's default branch without warning.
Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>