Skip to content

fix(serving): slot_of normalizes the root too, so a verbatim engine path cannot keep the Windows core from starting (card 4e0b0f25) - #4497

Merged
joelteply merged 2 commits into
canaryfrom
fix/engine-slot-verbatim-root
Sep 28, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/engine-slot-verbatim-root

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

service_host derives the slot root from the descriptor's own engine path.
slot_of stripped the \?\ prefix from the binary only, so a verbatim
descriptor gave a verbatim root that never matched: register refused and
the core would not start. Latent today (registrations write plain paths);
both sides are normalized now, with the service-host's own derivation
pinned in the test.

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

…ath cannot keep the Windows core from starting (card 4e0b0f25)

service_host derives the slot root from the descriptor's own engine path.
slot_of stripped the \\?\ prefix from the binary only, so a verbatim
descriptor gave a verbatim root that never matched: register refused and
the core would not start. Latent today (registrations write plain paths);
both sides are normalized now, with the service-host's own derivation
pinned in the test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ngine pinned, never a core that stays down (card 4e0b0f25)

Fable on #4497: any register refusal (engine outside the slots, no stamp,
an unwritable pointer) kept the Windows core from starting, and on a
first-and-only machine that is a dark node. The service-host now degrades:
it launches the engine the installer registered and verified, pinned as
LLAMA_SERVER_BIN (the pre-slot behaviour), and says so loudly in the
service log; that node does not converge until the cause is fixed.

The derivation moves into engine_slots::register_service_engine, so it
is lib-tested: a slot engine registers idempotently, a foreign or
unstamped one is refused, and a refusal moves nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@github-actions github-actions Bot added size: M and removed size: S labels Sep 28, 2026
@joelteply
joelteply merged commit 094c474 into canary Sep 28, 2026
8 checks passed
@joelteply
joelteply deleted the fix/engine-slot-verbatim-root branch September 28, 2026 03:14
joelteply added a commit that referenced this pull request Sep 28, 2026
…e slot (card 0a3ea433) (#4499)

The Windows half of card 2c5d0ec0 (#4491 core, #4495 macOS/Linux).
Select-CoreEngineSlot picked a slot by reading llama-server processes, and
a lane the supervisor started runs in the service session, where its path
is unreadable from the operator's session: the picker then had to guess
it was the registered engine. It now asks `continuum engine idle-slot`,
which reads the lane records (each names the exe it launched), the one
implementation the bash installer uses too.

- Exit 3 (every slot current or run by a live lane) refuses, as before.
- An answer that is not engine-a/b/c under the install root refuses.
- A readable live engine inside the answered slot refuses (belt and
  braces against a stale record).
- A CLI that predates the verb keeps the process-table choice for that
  one deploy, with a warning; the next deploy asks the core.
- Native stderr under 'Stop' is terminating in Windows PowerShell 5.1,
  so the call reads exit codes under 'Continue'.

Promotion on Windows stays the service registration: #4491's service
host records the registered slot as current (and #4497 degrades a refusal
to the pinned engine).

Not run locally (no PowerShell on this node): windows-service.test.ps1
gains a case with a fake CLI, and CI's installer job runs it.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 <[email protected]>
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