Add request and request-native modes. They build the middleware through New() against a local OpenAI-shaped upstream and time ServeHTTP for chat, stream and models requests. They also time each pipeline stage on its own. The upstream runs in a child process so its allocations stay out of the numbers.
The decision breaker covered every provider id but a decider only queries its own router provider.
The breaker now covers the sorted, de-duplicated decision providers.
This cuts the refresh key count and the Redis read per tick.
Add -mode refresh and -mode refresh-native, with -redis and -samples.
The refresh modes register the four shared-state primitives as
wireSharedState does and time refresh, keys, getMulti, apply and flush.
Add smart routers: virtual models that score each request and route it to admin-defined model tiers. A retryable failure moves the request to a higher tier. The classifier v2 extracts prose, finds the original ask in long tool loops, adds an uncertainty margin and reads tool-output failures. Sessions, outcome signals, bounded calibration, adaptive selection within a tier, gated saturation downgrade, a first-byte timeout and an opt-in timeout fallback are included. Every new feature is off by default.
Add per-member group limits, a tokensPerMinute window that counts uncached input and output, rate-limit headers in three dialects, soft pacing before the hard limit, and a limitExemptKinds list so embedding and reranking traffic never counts toward or hits a limit.
Fix yaegi named-result state that made smartContentSize grow between calls.