Skip to content

fix(serving): base-model swap on a ready lane needs a sustained streak (L10, #438 live) - #2320

Merged
joelteply merged 1 commit into
canaryfrom
fix/model-swap-needs-sustained-streak
Aug 15, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/model-swap-needs-sustained-streak

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

First post-L9 dispatch: bench-room citizens spoke 0.5B template salad — their response receipts name qwen2.5-0.5b while the plan's base model is the 27B. One bogus usable_bytes tick → nothing-fits arm names the smallest candidate → immediate swap of a ready lane → garbage as durable room speech poisoning every healthy citizen's perception. Window re-homes already had two-guard hysteresis; model swaps had none. Pure gate + table test; recovery paths (boot/wedge, genome page-in) untouched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… streak (round-killer L10, #438 live)

Live 2026-08-15 14:13, first post-L9 dispatch: two citizens in the bench
room spoke pure template-token salad ('assistantassistantassistant...',
'杀了assistantassistant') as durable messages — their responses stamped
model=continuum-ai/qwen2.5-0.5b-instruct-GGUF while the plan's base model
was Qwen3.8-27B. Chain, from source: a transiently bogus usable_bytes
sample (the incumbent's own load depresses free memory) made serving_plan's
nothing-fits arm name the SMALLEST candidate; the reconcile then swapped
the READY 27B lane on that single tick. A 9,344-token benchmark prompt
into a 0.5B produces exactly this salad, and it lands in the room as
durable speech every healthy citizen perceives as peer conversation —
the poison Joel predicted: 'something in their prompt brought them to
that confusion, a structural failure outside their personal mind.'

The asymmetry was the bug: growing a WINDOW (mild) already requires
REHOME_MIN_GAIN_PCT sustained for REHOME_SUSTAINED_TICKS plus a cooldown
(BigMama's two-guard spec), while swapping the BASE MODEL — a full
teardown that re-homes every persona to different weights — actuated
immediately.

Fix: model_change_gate, a pure function the reconcile consults before any
ready-lane model swap. The plan must name the SAME different model for
REHOME_SUSTAINED_TICKS consecutive ticks (one hysteresis constant, not
two, per this file's own doctrine); a target change restarts the count so
a flapping plan never accumulates; plan==live clears pending; boot and
wedge-recovery (no ready incumbent) commit immediately — recovery never
waits. Genome page-ins (same model, adapter change) are untouched.

Table test covers: one-tick bogus fallback (deferred, then cleared),
sustained disagreement (commits on Nth tick), flapping targets (never
commits), and the no-ready-incumbent recovery rows.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 138ad56 into canary Aug 15, 2026
5 checks passed
@joelteply
joelteply deleted the fix/model-swap-needs-sustained-streak branch August 15, 2026 19:38
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