Skip to content

fix(serving): re-home evidence counts lanes — total token-space, not per-slot window - #2717

Merged
joelteply merged 1 commit into
canaryfrom
fix/rehome-guard-counts-lanes
Sep 1, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/rehome-guard-counts-lanes

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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_it never 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-set lanes: 4 against 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

…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
@joelteply
joelteply enabled auto-merge (squash) September 1, 2026 13:03
@joelteply
joelteply merged commit b70856a into canary Sep 1, 2026
4 checks passed
@joelteply
joelteply deleted the fix/rehome-guard-counts-lanes branch September 1, 2026 13:16
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