Repository navigation
A smoke decode never takes a slot holding a mind (the M5's cold misses) - #5405
Merged
Merged
Conversation
… once, in decode_smoke_ok, for every caller The guard against a synthetic decode replacing a resident's KV (card 9e3350bd) lived only in the health heartbeat. The reconciler re-proves decode on every ensure tick for an engine the core did not spawn, and since `stop --keep-engine` / reboot adoption every engine is one: on the M5 (2026-10-25 02:34Z, 02:36Z) the count-to-ten probe landed on a resident's slot right after each "re-homing" tick, so 6 of 19 generations re-prefilled from 0 (~830 s of 1,618 s prefill) and page saves captured the probe (24-byte checkpoint sidecars, a 158 MB slot for a 600 MB conversation). decode_smoke_ok now reads the server's own /slots and seats the probe on the scratch slot, or anywhere only when the server holds nothing; otherwise no synthetic decode (probe serving.smoke.deferred_to_delivery): the lane answered and her own deliveries prove decode. smoke_attempt's scratch lookup goes through the same scratch_slot_for. Local, M5 macOS, serving down, 2026-10-25: cargo test -p continuum-engine --lib --features metal -> 1331 passed, 0 failed, 5 ignored. Co-Authored-By: Claude Opus 5.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.
Why
This serves plan path step 1 (fast: median act under 60 s at four residents). On the M5, 6 of 19 generations re-prefilled from token 0. That was ~830 s of the window's 1,618 s of prefill, and it is the main reason residents there looked dead next to the 5090's.
The cause: the reconciler re-proves decode with the count-to-ten smoke prompt on every ensure tick, for any engine the core did not spawn itself. Since
stop --keep-engineand reboot adoption, every engine is one. With no scratch slot, the probe landed on a resident's slot and replaced her KV:cached 0;The guard written for the 5090's identical incident (card 9e3350bd) lived only in the health heartbeat.
What
decode_smoke_okdecides the seat once, for every caller: the heartbeat, the reconciler's adoption probe, and readiness./slots. Seat order: the scratch slot; any slot when the server holds nothing (a fresh spawn); otherwise no synthetic decode (serving.smoke.deferred_to_delivery). The lane answered, and her deliveries prove decode./slotsis never read as empty.smoke_attempt's duplicate scratch lookup now uses the samescratch_slot_for.Tests (local, M5 macOS, serving down, 2026-10-25)
cargo test -p continuum-engine --lib --features metal: 1331 passed, 0 failed, 5 ignored. This includesa_smoke_decode_never_takes_a_slot_holding_a_mind(scratch, fresh, resident, busy, unreadable).Measured after deploy (owner Fable)
A 15-minute read on the M5 against the 02:41Z baseline (19 generations, 52% reuse, 6 cold, 3,344 s). Pass criteria:
cached 0from a turn whose page restored;serving.smoke.deferred_to_deliveryfires where the probe used to run.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo