Repository navigation
controller: remember last latency in patience_s and clarify cooldown draining cap - #141
Merged
Merged
Conversation
Merged
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.
Fixes
Auto.patience_signoring rememberedstate.latency_swhen silent ticks reportobs.latency_s=None(consistent withsettle()), and clarifies the cooldown draining-cap wording in docstrings anddocs/design.md:saturate/controller.py:patience_s(self, obs, latency_s=None)falls back tolatency_swhenobs.latency_s is None;_observe(Settling draining cap) andstalled()passstate.latency_s.saturate/controller.py&docs/design.md: clarify that the extra draining hold (oldest_s > age) is what is capped at stall patience, keeping the 2–3 tick minimum cooldown floor explicit even whenstall_ticks < 3.tests/test_controller.py: add regression tests covering remembered latency in bothcut:stallandSettlingdraining.Verification & perf smoke tests
ruff check .,ruff format --check .,ty check saturate tests,blacken-docs --check docs/design.md: passedpytest tests/test_controller.py tests/test_controller_properties.py tests/test_controller_perf.py -q: 158 passedbench/controller_sim.py origin/main .: identical across all 44 scenarios (mean 98% / 85% / 4.2x / 0.3% / 15,worst best 75%,median ramp 7)bench/ab.py --base origin/main --head . --suite smoke --reps 2: no regression (peak_rss_mib1.003x / 0.998x,rows_per_swithin normal local noise floor)