Repository navigation
Converge Windows engine receipts through continuum install - #4382
Merged
Merged
Conversation
joelteply
marked this pull request as ready for review
September 24, 2026 09:24
joelteply
added a commit
that referenced
this pull request
Sep 27, 2026
… consumer aligns submodules (P0: a lagging engine would not start) (#4446) * fix(serving): --train-dir only to an engine whose own --help lists it — an older engine refuses the flag and the lane does not start #4438 passes --train-dir to every lane. An engine older than the flag rejects it, and the lane does not start. On the 5090 the core deployed while the engine stayed at b10765-965d38a90 (the consumer converges the core, not the engine), so only a wedged dirty check kept #4438 off her. The once-per-process --help probe (the one that reads the engine's KV cache types) now also records whether the engine LISTS --train-dir (a line starting with it: the real help prints "--train-dir DIR ..."; 965d38a90 prints nothing for it). The lane gets the flag only then; unknown (no probe, no answer) is no — in-engine training is never worth a lane. The probe row carries train_dir. Test: train_dir_is_accepted_only_when_the_engines_help_lists_it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(deploy): the consumer aligns submodules to the tip it checks out, and a stale submodule pointer is not "uncommitted work" `git checkout --detach <tip>` moves gitlinks, not submodule trees: #4437's deploy left core/vendor/llama.cpp at 965d38a90 under a tip pinning 66035e261, and the mismatch then read as dirty, so the consumer refused every later tip (NothingOwed/RefuseDirty with dirty=true). After its checkout the consumer runs `git submodule update --recursive` (initialized submodules only: a deploy never starts a fresh clone; local changes inside a submodule fail it loudly instead of losing them), and its dirty check ignores submodule pointers (aligning them is its own job now). Engine convergence itself still needs the elevated registration (#4382: `continuum install`); the lane-side gate in the previous commit keeps a lagging engine safe. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 27, 2026
…ce, and its failure never fails the deploy (card 7c5f139d) start-server-build-only.test.sh forbade install-llama-server.sh in every warm build, the invariant this PR deliberately changes. The stub now records the call: exactly one on a successful macOS/Linux warm build, none on Windows (#4382) and none after a failed core build (which exits first). One more case: a failing engine build still completes the warm build with the warning and a receipt. Mutation: dropping Linux from the case arm fails the test. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Sep 27, 2026
…ld installs the pinned llama-server on macOS/Linux, and a lane on an older engine than the installed one is relaunched (card 7c5f139d) (#4464) * fix(serving,deploy): a deploy converges the ENGINE too — the warm build installs the pinned llama-server on macOS/Linux, and a lane on an older engine than the installed one is relaunched (card 7c5f139d) The M5 and the IntelMac served llama-server b10765-965d38a90 (no /train) a day after the pin reached 9733aca6c, so the M5 could not dream whatever S3-S5 landed. Two holes: 1. Build: a deploy's warm build runs start-server.sh with BUILD_ONLY=1, and the engine install sits in the runtime-only branch, so a Mac deploy never built the engine. `continuum install` has an engine arm only on Windows (#4382). 2. Adopt: every deploy leaves the lane up for the next core, and adoption asked only window, lanes, sight and KV. An adopted lane kept running the binary it was launched from. Now: - start-server.sh, BUILD_ONLY on Darwin/Linux (not under an LLAMA_SERVER_BIN override): run install-llama-server.sh in the warm pass. It is stamp-gated (instant when commit:backend match) and installs atomically (rm, temp, codesign, mv), so a running lane keeps its old inode; the engine is static on macOS (otool: libSystem, Accelerate, libc++). It inherits nice 19 (#4449). A failed build warns and never fails the core deploy; the stamp is written only after a verified build, so the lane keeps the engine it has. - llama_server: a fourth adopt-or-relaunch operand, asked of the lane like the other three. `/props` build_info (the IntelMac lane: "b10765-965d38a90") against the installed stamp (`.llama-server.stamp` beside the resolved server_bin: "965d38a90:cpu"). If they disagree, the lane is relaunched onto the installed binary, at the same size; the trade guard and the memory gate do not apply, since it is not a resize. Unknown on either side (a probe error, no field, an operator override, no stamp) is "engine OK": never a spurious relaunch. - Probe: serving.engine.converged {from, to}. - Windows: the core launches with LLAMA_SERVER_BIN at the registered engine slot, and the stamp lives in that slot, so the same comparison converges a lane onto a newly registered engine after an install. No platform code. Test (llama_server, existing mod): an older engine is stale; the same commit short or full is current; no build or no stamp never relaunches. Not compiled on the IntelMac: its deploy build holds the machine. CI is the compile. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(serving): the engine comparison uses deploy_provenance::sha_matches, and the hour's health line carries engine_stale (BigMama on 7c5f139d) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(serving): an engine relaunch happens once per from->to, and a lane that still reports the old build after it is reported, never relaunched again (Fable on #4464) A relaunched lane whose build_info was not regenerated (a local merge, a gitdir-file submodule) would otherwise relaunch onto the same binary every tick: a dark lane on a loop. The second sighting of the same pair probes serving.engine.converge_failed and leaves engine_stale on the health line. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * test(deploy): a warm build runs the engine install on macOS/Linux, once, and its failure never fails the deploy (card 7c5f139d) start-server-build-only.test.sh forbade install-llama-server.sh in every warm build, the invariant this PR deliberately changes. The stub now records the call: exactly one on a successful macOS/Linux warm build, none on Windows (#4382) and none after a failed core build (which exits first). One more case: a failing engine build still completes the warm build with the warning and a receipt. Mutation: dropping Linux from the case arm fails the test. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
continuum installpreviously reported convergence when Core matched HEAD even if its registered inference engine had only a legacy stamp. The command now treats missing or invalid Windows engine receipts as drift, prepares a verified engine in an inactive slot through the existing installer, and uses the normal reboot handoff. Matching verified receipts are reused; legacy bytes are never retroactively certified.The installer and reboot share the existing exclusive installation lease. The handoff binds the complete service descriptor, rejects older CLIs without the lease protocol, pins the selected CLI/Core files, and revalidates the selected release before refreshing the public CLI. Ordinary legacy engine launch remains supported.
Validation:
windows-service.test.ps1passed, including the new receipt-selection, inactive-slot, cold-query, and lease-transfer fixtures.No live installation was performed. The change does not prove model readiness or retroactive prepared-launch authority, and preserves the existing foreground installer's limitation around abrupt process-tree termination. Explicit runtime engine overrides remain separate from convergence of the registered engine.