Conversation
Evaluation of how #223 could be built on top of #222's scheduled-limits machinery. Records twelve settled decisions with rejected alternatives: aggregator required for adaptive only, sensor/controller split, a separate per-limit adaptive factor on bucket items instead of rewriting the base, band + AIMD control, blind-never-loosens stale handling, pluggable fair-share policies per (resource, limit), and cascade counting. Not scheduled; open questions are left for an implementation plan. Refs #223 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019J8sTVc3atEwMyWhfrdznc
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #520 +/- ##
==========================================
- Coverage 93.83% 90.63% -3.21%
==========================================
Files 49 49
Lines 10127 11178 +1051
==========================================
+ Hits 9503 10131 +628
- Misses 624 1047 +423
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/plans/2026-09-14-adaptive-limits-design.md, an evaluation of how ✨ Support utilization-based adaptive rate limits #223 (utilization-adaptive limits) could be built on top of the ✨ Support time-based dynamic rate limits with scheduling #222 scheduled-limits machineryfactor = min(current, 1x)1 / utilizationmax_scalemultiplier onLimit.min_scaleis designed but not shippedafand is never written intocp/ra. It is written only when it changes. Bucket creators stamp it and the aggregator repairs itdocs/plans/is excluded from the MkDocs build (exclude_docs)Test plan
af) do not conflict with the existing writer table in CLAUDE.mdRefs #223
🤖 Generated with Claude Code
https://claude.ai/code/session_019J8sTVc3atEwMyWhfrdznc