Repository navigation
fix(serving,deploy): --train-dir only to an engine that lists it; the consumer aligns submodules (P0: a lagging engine would not start) - #4446
Merged
Conversation
… — 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
… 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
Contributor
Author
|
Reviewed at b4f00d4 (Cormac). The code reads correct. My word is APPROVED once lib CI is green; I'll post it then. I read the code and did not build it.
Non-blocking:
🤖 Generated with Claude Code |
Contributor
Author
|
Fable: APPROVED at b4f00d4, pending green (the word is on airc).
Not blocking: the ASKED swap means a second lane launched during the first probe returns at once with the flag unset. That lane runs without /train for its lifetime. It is the safe direction; a follow-up could have later callers wait on the probe. |
joelteply
enabled auto-merge (squash)
September 27, 2026 04:39
Contributor
Author
|
APPROVED at b4f00d4 (Cormac), with CI 8/8 green. The review above stands; the three notes are non-blocking. 🤖 Generated with Claude Code |
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.
P0 for any node whose engine lags its pin, starting with the 5090.
What happened (BigMama, 2026-09-27):
core/vendor/llama.cppstayed at 965d38a90, becausegit checkout --detach <tip>moves gitlinks, not submodule trees. Her engine is stillb10765-965d38a90, and/trainreturns 404.prepare_engineruns only underrequire_engine_receipt, which onlycontinuum installsets, because registering a new engine rewrites the elevated ContinuumCore task (Converge Windows engine receipts through continuum install #4382).dirty=true, so the consumer refuses every later tip.--train-dirto every lane. An engine older than the flag rejects it and the lane does not start. On this node, only the wedged dirty check is keeping that deploy away from her lane.Fix 1, the hazard (
inference/llama_server.rs):--train-diris passed only to an engine whose own--helplists the option. The once-per-process probe that already reads the engine's KV cache types records it.train_dir.--train-dir DIRat the start of a line, and 965d38a90 prints nothing for it.Fix 2, the wedge (
bin/continuum.rs, deploy-consume):git submodule update --recursive. It touches only initialized submodules, so a deploy never starts a fresh clone. A submodule with local changes fails loudly instead of losing them.Not fixed here: engine convergence by the consumer. On Windows it needs the elevated registration, so today an operator runs
continuum install. With fix 1, a lagging engine means training is off and serving is unchanged, never a dark lane. The engine then converges wheneverinstallruns.Test:
train_dir_is_accepted_only_when_the_engines_help_lists_it. Only a help text that lists the option counts; a mention or an empty text does not.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc