Repository navigation
fix(placement): a flapping host earns a longer quarantine each trip — one brief beacon must not reclaim a whole roster - #4193
Merged
joelteply merged 1 commit intoSep 18, 2026
Conversation
… one brief beacon must not reclaim a whole roster Measured live on the fleet 2026-09-18: the 5090 seat took Soren, Sigurd, Saoirse, Iris, SmokeProbe, Eitan, Paige and Delia home on "breaker cold: three deadline misses in a row", then reclaimed all eight minutes later on "the seat beacons again" — a full round trip of the roster while the box was still unhealthy. The underlying hardware fault is real (HYPERVISOR_ERROR x4 + 116 PCIe AER WHEA errors), so the seat will keep beaconing between resets. A fixed cold window means every flap costs the whole roster two migrations. The breaker had one COLD_WINDOW regardless of history, so a host that had failed ten times was trusted exactly as fast as one that had failed once. Evidence of repeated failure existed and was discarded. Now the window doubles per trip and is capped: cold_window_for(trips) = COLD_WINDOW << min(trips-1, 6), clamped to MAX_COLD (30 min) with trips decayed by TRIP_DECAY (1 h) so a host that genuinely recovers earns its way back to the short window instead of being punished forever. An ANSWER does not forgive a trip — that is deliberate: a flapping host answers between flaps, which is exactly how it kept reclaiming the roster. Only TIME forgives. Two tests pin it, both named for the behaviour they catch: a_flapping_host_earns_a_longer_quarantine_each_trip_and_is_capped repeated_trips_lengthen_the_cold_window_and_an_answer_does_not_forgive_them Whole-file sign-off, not a filter: 6/6 in peer_breaker.rs, 44/44 across inference::airc_remote. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
fix/a-flapping-host-earns-a-longer-quarantine-each-trip
branch
from
September 18, 2026 14:35
e7e7612 to
76cf444
Compare
joelteply
deleted the
fix/a-flapping-host-earns-a-longer-quarantine-each-trip
branch
September 18, 2026 15:07
joelteply
added a commit
that referenced
this pull request
Sep 18, 2026
…ction is a ratchet until its mirror ships (#4201) Cormac, 2026-09-18, after the fourth one-direction defect of the day: "four one-direction ratchets found and fixed today by three of us … same shape each time — a measurement or a state that could only move one way — and each time the fix was the mirror rule and a test with both directions in it. Worth a doctrine line somewhere the next person will read before they write the fifth." This is that line, in the list the next person reads: the mirror ships in the same commit as the mover, keyed on the same number; the test is a round trip. #4195 #4190 #4193 #4199 #4200. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5.1 <[email protected]>
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 this fixes
Measured live on the fleet today: the 5090 seat took all eight citizens home
(Soren, Sigurd, Saoirse, Iris, SmokeProbe, Eitan, Paige, Delia) on "breaker cold:
three deadline misses in a row" — then reclaimed all eight minutes later on
"the seat beacons again", while the box was still unhealthy.
The hardware fault behind it is real and not going away on its own (HYPERVISOR_ERROR
x4 plus 116 PCIe AER WHEA errors), so that seat will keep beaconing between resets.
With a fixed cold window, every flap costs the whole roster two migrations.
Root cause
PeerBreakerhad exactly oneCOLD_WINDOWregardless of history. A host that hadfailed ten times was re-trusted exactly as fast as one that had failed once. The
evidence of repeated failure existed and was thrown away.
The change
tripsdecays onTRIP_DECAY(1 h), so a host that genuinely recovers earns itsway back to the short window instead of being punished forever.
flaps — that is precisely how it kept reclaiming the roster. Only time forgives.
Verification
Whole-file sign-off, not a filter (per
[[a-test-filter-excludes-the-only-assertion-that-can-contradict-you]]):peer_breaker.rs— 6/6 green, including two new tests named for what they catch:a_flapping_host_earns_a_longer_quarantine_each_trip_and_is_cappedrepeated_trips_lengthen_the_cold_window_and_an_answer_does_not_forgive_theminference::airc_remote— 44/44 greenNeeds a peer word before merge.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo