Skip to content

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 into
canaryfrom
fix/a-flapping-host-earns-a-longer-quarantine-each-trip
Sep 18, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/a-flapping-host-earns-a-longer-quarantine-each-trip

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

PeerBreaker had exactly one COLD_WINDOW regardless of history. A host that had
failed 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

cold_window_for(trips) = COLD_WINDOW << min(trips - 1, 6), clamped to MAX_COLD (30 min)
  • trips decays on 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. Deliberate: a flapping host answers between
    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_capped
    • repeated_trips_lengthen_the_cold_window_and_an_answer_does_not_forgive_them
  • inference::airc_remote — 44/44 green

Needs a peer word before merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… 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
joelteply force-pushed the fix/a-flapping-host-earns-a-longer-quarantine-each-trip branch from e7e7612 to 76cf444 Compare September 18, 2026 14:35
@github-actions github-actions Bot added size: L and removed size: M labels Sep 18, 2026
@joelteply
joelteply merged commit 2235fef into canary Sep 18, 2026
11 checks passed
@joelteply
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant