fix(retry): carry fractional tokens across refill ticks

The refill loop dropped the fractional part of each tick. At 15 tokens per second and 100 ms ticks, it added 10 tokens per second instead of 15. The clock now advances only by the time the added tokens pay for.
This commit is contained in:
2026-11-02 23:57:46 +00:00
parent a0a8283b52
commit ab63f924a9
3 changed files with 77 additions and 19 deletions
+3
View File
@@ -5,3 +5,6 @@ dist/
coverage.out
CLAUDE.md
graphql-monitoring-proxy
# Lean proofs: local only, never committed
theorems/