Repository navigation
fix(serving): re-home evidence counts lanes — total token-space, not per-slot window - #2717
Merged
Merged
Conversation
…per-slot window Found live 2026-09-01 hunting 'what's so slow': the plan moved to 4 lanes x 47,426 while the running server held 2 x 57,600. Total space +65%, two more warm slots — but the guard's gain was window-only, so per-slot SHRANK, gain went negative, worth_it never fired, and the 4-lane plan sat unactuated forever. Five residents thrashed two slots at hit_rate 0.0 (21-28k tokens re-prefilled per act, decode starved to 2-7 t/s, acts at 77-230s) until an operator cycled the server by hand. rehome_gain_evidence() is the extracted pure seam: currency is window x lanes; BigMama's two-guard structure (sustained delta + cooldown) untouched. lane_under_plan fixtures now hold lanes equal to the plan's so the window tests keep isolating their dimension; the lanes dimension has its own regression test. serving_daemon tests 44/44. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
The unactuated plan
Hunting tonight's act latency (77–230s/act, hit_rate 0.0 on every turn): the planner had moved to 4 lanes × 47,426 while the live server held 2 × 57,600. +65% total token-space, +2 warm slots — never actuated. The re-home guard's evidence was the per-slot window alone; per-slot shrank, gain went negative,
worth_itnever fired. Five residents thrashed two slots; every act re-prefilled 21–28k tokens; concurrent prefill starved all decodes to 2–7 t/s.Fix
rehome_gain_evidence()— extracted pure seam; the currency is window × lanes. The two-guard structure (sustained delta + cooldown, BigMama's spec) is untouched. Fixtures that hand-setlanes: 4against 1-lane plans now hold lanes equal to the plan's, so window tests keep isolating their dimension; lanes get their own regression test with the live incident's exact numbers.44/44 serving_daemon tests.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo