Skip to content

serving: the engine binary a launch runs is named and its capabilities are re-asked (f3ba3b56 items 11 and 13) - #5213

Merged
joelteply merged 3 commits into
canaryfrom
6080a28f/a-launch-with-no-owned-engine-takes-llam
Oct 21, 2026
Merged

joelteply merged 3 commits into
canaryfrom
6080a28f/a-launch-with-no-owned-engine-takes-llam

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

server_bin() resolves an operator override, the current engine slot, the pre-slot owned
install, and finally a bare 'llama-server' from PATH. Resolved::Path's doc said it
'fails loud at spawn', true only when PATH holds nothing. A stock build found there runs,
without the fork's routes (slot save-size, /train, MTP), and paging and training degrade
with no cause named.

prepare_local_launch now calls engine_slots::note_unowned_launch, which probes
serving.engine.unslotted when the resolved engine is a bare PATH name that no operator
override chose. An absolute path is an owned slot or install; an override is the
operator's choice. Resolved::Path's doc says what actually happens.

llama_server.rs is net zero (the comment above the call is tightened);
engine_slots.rs 954 -> 966. source-hygiene 37/37 on IntelMac. Core compile is CI's.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply joelteply changed the title serving: a launch that takes llama-server from PATH says so (card 6080a28f, f3ba3b56 item 13) serving: the engine binary a launch runs is named and its capabilities are re-asked (f3ba3b56 items 11 and 13) Oct 20, 2026
@github-actions github-actions Bot added size: M and removed size: S labels Oct 20, 2026
@joelteply
joelteply force-pushed the 6080a28f/a-launch-with-no-owned-engine-takes-llam branch 2 times, most recently from 61f1c8d to 7fb503a Compare October 20, 2026 03:33
@joelteply

Copy link
Copy Markdown
Contributor Author

[P1] Keep capability values and the answered binary in one coherent cache

At7fb503a710853b0e45291b2949d83a5fa7c16e88, ensure_engine_kv_support_recorded leaves ANSWERED_BY unchanged on a failed probe while overwriting the shared KV support with None and train-dir with false. Sequence: A answers successfully; launch B times out; resolve A again on rollback. ANSWERED_BY still says A, so A returns early, but its capability values were erased by B. This can disable supported in-engine training and make KV selection use unknown support after rollback, indefinitely until another binary answers.

Invalidate the cached identity whenever its associated values are replaced, or store binary identity and the complete capability result together and restore that result on a cache hit. Add an A-success/B-failure/A-retry fixture. Also cover A-success/B-success/A so that the cache's identity/result relationship is explicit. This is source review, not a runtime reproduction; no build performed on a serving node. Reapply this repair in the owner module after the planned llama_server split, per the current roadmap.

…s are re-asked (card 6080a28f, f3ba3b56 items 11 and 13)

Re-applied onto canary 445ae4b after #5245 split llama_server.rs (prepare.rs,
kv_support.rs, genome.rs) and #5249 moved the probe macro to continuum_base.

Item 13: server_bin() falls through to a bare 'llama-server' from PATH when no
override, slot or legacy install resolves. A stock build there runs without the fork's
routes (slot save-size, /train, MTP). prepare_local_launch now calls
engine_slots::note_unowned_launch, which probes serving.engine.unslotted when the
engine is a bare PATH name no operator override chose. Resolved::Path's doc says what
actually happens.

Item 11: ensure_engine_kv_support_recorded latched once per process before probing, so
a failed or timed-out --help probe left /train off and KV to the backend table for the
core's life, and an engine promote kept the old binary's answers. The latch is now the
binary that answered; a failure is asked again at the next launch, a promoted binary
afresh, and a failure resets ENGINE_TRAIN_DIR and ENGINE_QUANTIZED_KV to unknown.

source-hygiene 43/43 on IntelMac. Core compile is CI's.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply force-pushed the 6080a28f/a-launch-with-no-owned-engine-takes-llam branch from 7fb503a to 91a2f61 Compare October 21, 2026 17:00
joelteply and others added 2 commits October 21, 2026 12:16
…rd 6080a28f)

The re-port onto the split llama_server/ called engine_override() unqualified;
it lives in llama_server/engine_install.rs and llama_server.rs re-exports it, so
the child prepare.rs names it super::engine_override (CI E0425, job 119360256492).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…e-export is windows-only (card 6080a28f)

llama_server.rs re-exports engine_override only under #[cfg(windows)], so
super::engine_override failed on the Linux lib test (job 119369995569). The
child module reaches its parent's private engine_install directly.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply joelteply left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS #5213 at 37ada56, Fable. Source read, not built.

Claim verified: a promoted binary is asked afresh, and a previous binary's answer cannot outlive it. I read kv_support.rs ensure_engine_kv_support_recorded:

  • ANSWERED_BY is keyed by the bin path, and engine slots resolve to distinct paths per slot, so a promote changes the key and re-asks.
  • record_engine_quantized_kv_support(support) now writes None on an unanswered probe instead of keeping the last value.
  • A failed or timed-out probe sets ENGINE_TRAIN_DIR false and does not mark the bin answered, so the next launch asks again.

note_unowned_launch fires only for a relative bin that no operator override chose, which is exactly the bare PATH case.

One non-blocking note: a Legacy install replaced in place at the same path keeps its old answer until the core restarts. That's rare (installs move to slots), so I'm not carding it unless you've seen it.

@joelteply
joelteply merged commit 3baa8f2 into canary Oct 21, 2026
8 checks passed
@joelteply
joelteply deleted the 6080a28f/a-launch-with-no-owned-engine-takes-llam branch October 21, 2026 20:39
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