Skip to content

fix(serving): a lane over its decode knee re-homes DOWN — fewer, wider lanes is re-home evidence whatever the token-space says - #4160

Merged
joelteply merged 1 commit into
canaryfrom
fix/a-lane-over-its-knee-re-homes-down
Sep 17, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/a-lane-over-its-knee-re-homes-down

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What broke

The knee read 7 (then walked toward 4) while the M5's live lane stayed at 8 × 51,712 with 7.9 t/s per stream. Re-home evidence is token-space (window × lanes); a plan that trades lanes for width is a wash (+14% for 7 × 67,340, under REHOME_MIN_GAIN_PCT) or a loss (4 × 67,340), so every tick declined on the margin and the knee clamp — correctly in the plan — never reached the lane. Only a reboot applied it, and the boot path has its own bug (#4159). The knee was serving-side inert.

Fix

lane_over_its_knee: plan lanes < live lanes AND plan window ≥ live window = the knee clamping the roster → counts as evidence beside the space margin. Fewer-and-narrower is still a pressure shrink (not this arm); same/more lanes still need the margin. Streak (3 ticks) + cooldown unchanged. The declined probe carries over_knee.

Test

a_lane_over_its_knee_is_rehome_evidence_whatever_the_token_space_says (+ the existing evidence test still green).

Acceptance

On the M5 within ~3 ticks + cooldown of deploy: serving.reconcile.window decision=re-homing … live_lanes 8 plan_lanes ≤7 over_knee=true, then serving/status lanes = the knee and decode p50 above 10 t/s.

Card 27ae209f. Independent of #4159 (different file), lands in any order.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…r lanes is evidence whatever the token-space says; the knee only ever applied at boot

Measured 2026-09-17 on the M5: the knee read 7, then walked toward 4, while the live
lane stayed at 8 × 51,712 with 7.9 t/s per stream. The reconcile's re-home evidence is
token-space (window × lanes) and a plan that trades lanes for width is a wash (+14% for
7 × 67,340) or a loss (4 × 67,340) — so every tick declined on the margin and the knee
clamp, computed correctly into the plan, never reached the lane. Only a reboot applied
it, and the boot has its own bug (#4159: the file went stale) — the whole knee mechanism
was serving-side inert.

`lane_over_its_knee(live_window, live_lanes, plan_window, plan_lanes)`: plan lanes
fewer than live AND plan window at least as wide = the knee clamping the roster; it
counts as re-home evidence beside the space margin. Fewer-and-narrower stays a
pressure shrink (not this arm); same or more lanes still need the margin. The sustain
streak (3 ticks) and the cooldown still gate the relaunch; the declined probe carries
`over_knee`.

Card 27ae209f.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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