Repository navigation
fix(serving): the pressure mode holds through a flapping memory read — Eco is left only past a 12 GiB exit band, so the plan stops flipping 6 ↔ 7 lanes once a minute - #4163
Merged
joelteply merged 1 commit intoSep 17, 2026
Conversation
…— Eco is left only past a 12 GiB exit band, so the plan stops flipping 6 ↔ 7 lanes once a minute Measured 2026-09-17 09:47–10:10Z on the M5 (swap 94–96%): macOS's "available" wandered across the single 8 GiB line once a minute → serving mode Eco ↔ Comfort → usable_gb 20 ↔ 30 → the plan 6 ↔ 7 lanes with `warm-slot-oversubscribed` every other tick. Every flip reset the reconcile's sustain streak (a plan that grows is "not settled"), so no re-home could ever fire — the lane stayed at 8 × 51,712 whatever the plan said. `serving_mode_for_pressure_from(available, previous)`: from Eco, stay until available clears ECO_EXIT_BYTES (12 GiB); otherwise Eco below ECO_ENTER_BYTES (8 GiB), Comfort above. The daemon keeps the previous PRESSURE mode as the hysteresis state (a ludicrous override is not pressure history) and emits `serving.mode.transition` on a change. Pinned by `the_serving_mode_holds_through_a_flapping_read`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
deleted the
fix/the-serving-mode-holds-through-a-flapping-memory-read
branch
September 17, 2026 11:08
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.
What broke
09:47–10:10Z on the M5 (swap 94–96%): macOS's "available" wandered across the single 8 GiB line once a minute → mode Eco ↔ Comfort →
usable_gb20 ↔ 30 → the plan 6 ↔ 7 lanes,warm-slot-oversubscribedevery other tick. Every flip reset the reconcile's sustain streak (a growing plan is "not settled"), so no re-home could fire — the lane stayed at 8 × 51,712 whatever the plan said. This is the third leg under card 27ae209f (with #4159 file freshness and #4160 over-knee evidence).Fix
serving_mode_for_pressure_from(available, previous): from Eco, stay until available clearsECO_EXIT_BYTES(12 GiB); otherwise Eco belowECO_ENTER_BYTES(8 GiB), Comfort above. The daemon keeps the previous pressure mode as the hysteresis state (a ludicrous override is not pressure history) and emitsserving.mode.transitionon a change. The plainserving_mode_for_pressurekeeps its line for callers without history.Test
the_serving_mode_holds_through_a_flapping_read— model_catalog 9/9; serving_daemon tests green.Acceptance
serving.planrows stop alternating lanes minute to minute;serving.mode.transitionfires only on a real pressure move; the reconcile's streak reaches 3 andre-homingfires.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo