Skip to content

fix(serving): a re-home fires at the best of its evidence span, not the streak's all-time high (card 5bac4968) - #5062

Merged
joelteply merged 1 commit into
canaryfrom
5bac4968/re-home-guard-s-rehome-plan-high-only-ra
Oct 15, 2026
Merged

joelteply merged 1 commit into
canaryfrom
5bac4968/re-home-guard-s-rehome-plan-high-only-ra

Conversation

@joelteply

@joelteply joelteply commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

The re-home guard fired only on a tick whose plan reached rehome_plan_high,
the highest plan seen since the streak began. Nothing lowered it while the
plan stayed at or below it. Kimi's node, 2026-10-15 (Fable, 78d2c37f): the
plan read 109,768 at the post-deploy relaunch tick while memory was still
being freed, then settled at 33k-87k. The streak kept counting (streak=3,
cooling=0), but the fire tick could never reach 109,768, so her lane served
a 6,144 window until an operator relaunched it.

The fire condition now takes the high over the last REHOME_SUSTAINED_TICKS
plans, the evidence span the streak itself requires
(at_recent_plan_high). BigMama's #4851 intent is kept: the relaunch takes
the fire tick's plan, at the best the sustained evidence saw, never a low
tick of an alternating plan; in a two-value alternation the high is always
inside the span. The streak's all-time high is unchanged for climb
detection, so the boot staircase still coalesces into one re-home at its
top. A transient high now ages out with the evidence it came from.

Tests: a_transient_plan_spike_does_not_strand_the_lane_below_the_settled_plan
(fires at tick 3 after the spike; under the old rule it never fires), plus
the pure rule pinned on Fable's numbers. The alternating, staircase and
jitter tests are unchanged.

Measured

  • Before (the defect): Fable's receipt 78d2c37f, Kimi's node, engine b10946-5b8500ee2, core 6227 d7bfaf8, 2026-10-15. serving.reconcile.window logged 'declined' every minute from 11:59:50Z: live 6,144 against a plan of 33k-87k, streak=3, cooling=0, a 109,768 high recorded at the relaunch tick. It recovered only by operator relaunch (ready 13:59:35Z at 2 x 65,408).
  • Source: a_transient_plan_spike_does_not_strand_the_lane_below_the_settled_plan fires at tick 3 after the spike. The old at_high (plan >= all-time high) never fires on that sequence; that's the mutation the test catches. The pure rule is pinned on Fable's numbers. The alternating (fix(serving): a lane far below a plan that alternates under its high re-homes; a climb still coalesces #4851), staircase and jitter tests are unchanged and must stay green. CI at this head is pending; IntelMac does not compile the core.
  • After deploy (owner Cormac, deadline: the next deploy relaunch on a loaded host, Kimi's node or the M5): a lane relaunched under a transient plan high re-homes to the settled plan within REHOME_SUSTAINED_TICKS ticks of the high leaving the window, with no operator action. The receipt is the serving.reconcile.window fire probe plus the new served window. Card 5bac4968 stays open until it's posted.

Not changed: REHOME_SUSTAINED_TICKS (its measured jitter provenance stands), the 2x/min-gain bar, the cooldown, the paging refusal, or climb detection (the streak's all-time high still resets on a climb, so the staircase still coalesces).

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…he streak's all-time high (card 5bac4968)

The re-home guard fired only on a tick whose plan reached rehome_plan_high,
the highest plan seen since the streak began. Nothing lowered it while the
plan stayed at or below it. Kimi's node, 2026-10-15 (Fable, 78d2c37f): the
plan read 109,768 at the post-deploy relaunch tick while memory was still
being freed, then settled at 33k-87k. The streak kept counting (streak=3,
cooling=0), but the fire tick could never reach 109,768, so her lane served
a 6,144 window until an operator relaunched it.

The fire condition now takes the high over the last REHOME_SUSTAINED_TICKS
plans, the evidence span the streak itself requires
(at_recent_plan_high). BigMama's #4851 intent is kept: the relaunch takes
the fire tick's plan, at the best the sustained evidence saw, never a low
tick of an alternating plan; in a two-value alternation the high is always
inside the span. The streak's all-time high is unchanged for climb
detection, so the boot staircase still coalesces into one re-home at its
top. A transient high now ages out with the evidence it came from.

Tests: a_transient_plan_spike_does_not_strand_the_lane_below_the_settled_plan
(fires at tick 3 after the spike; under the old rule it never fires), plus
the pure rule pinned on Fable's numbers. The alternating, staircase and
jitter tests are unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Oct 15, 2026
…ugh the release's recheck, not asserted gone at the first snapshot (card fb166622) (#5063)

* test(git_bridge): a cancelled git's survivors are confirmed gone through the release's recheck, not asserted gone at the first snapshot (card fb166622)

#5062's CI (run 38750082018, 2026-10-15 14:32Z, base eeb7a32) failed
a_git_ends_with_its_waiter_and_says_how_it_ended at git_bridge.rs:1103:
Lingering { processes: [pid 15439] }. lane_process::end_tree kills the
cancelled git's descendants and then takes ONE still_present snapshot, so a
descendant still dying is reported. That is conservative custody, not a
leak; the test asserted the snapshot empty. It's the same race #5053 fixed
for the hook pid (card 0d18171d).

The test now runs the release as code/release-hands does: close, then
recheck the reported processes (kill again while the pid still names it)
and retain_processes until confirmed, within the existing 10 s deadline.
No tree may be unknown, and a second close must report nothing. No timeout
was raised and no report is cleared: a process the recheck never confirms
still fails the test.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* test(git_bridge): say what the CI log showed (pid 15439 unconfirmed at the snapshot), not why (helper on #5063)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@joelteply
joelteply merged commit 3d4a202 into canary Oct 15, 2026
8 of 10 checks passed
@joelteply
joelteply deleted the 5bac4968/re-home-guard-s-rehome-plan-high-only-ra branch October 15, 2026 16:41
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