Token counting, model quotas, and sliding window rate limiter
Find a file
Snider db958f293a test: expand race coverage and benchmarks
Add 4 concurrent race tests: multi-model (5 models), Persist+Load
filesystem race, AllStats+RecordUsage, WaitForCapacity+RecordUsage.
Add 4 benchmarks: CanSendWithPrune, Stats, AllStats, Persist.
Total: 80 tests, 7 benchmarks, all pass under go test -race.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-20 04:30:54 +00:00
CLAUDE.md feat: extract go-ratelimit from core/go pkg/ratelimit 2026-02-19 16:09:13 +00:00
FINDINGS.md feat(ratelimit): generalise beyond Gemini with provider profiles and push coverage to 95% 2026-02-20 01:07:57 +00:00
go.mod feat(ratelimit): generalise beyond Gemini with provider profiles and push coverage to 95% 2026-02-20 01:07:57 +00:00
go.sum feat(ratelimit): generalise beyond Gemini with provider profiles and push coverage to 95% 2026-02-20 01:07:57 +00:00
ratelimit.go feat(ratelimit): generalise beyond Gemini with provider profiles and push coverage to 95% 2026-02-20 01:07:57 +00:00
ratelimit_test.go test: expand race coverage and benchmarks 2026-02-20 04:30:54 +00:00
TODO.md test: expand race coverage and benchmarks 2026-02-20 04:30:54 +00:00