Skip to content

feat(deploy): the engine builds into the idle slot and is promoted, never over a live lane (card 7a6a033a) - #4495

Merged
joelteply merged 1 commit into
canaryfrom
feat/engine-slots-installer
Sep 28, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/engine-slots-installer

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The installer half of #4491 for macOS and Linux. install-llama-server.sh
asks the core for the idle slot (continuum engine idle-slot), builds or
installs there, verifies and stamps as before, and only then promotes it
(continuum engine promote <slot> <commit:backend>). The core resolves
current at every launch and #4464's convergence relaunches lanes onto it.

  • Current slot already at the pin: a no-op, as the stamp check was.
  • A slot holding the pin whose promote failed: promoted, not rebuilt.
  • Migration: a pre-slot engine already verified at the pin is copied into
    the slot and promoted, with no rebuild (hours on a CPU-served node).
  • Exit 3 (no slot idle) skips the engine build this deploy and says so;
    any other idle-slot failure is fatal, never a guessed slot.
  • Version skew: a deployed CLI without the verbs installs the pre-slot
    way once, says so, and the next deploy uses the slots.
  • start-server takes the engine path from the installer's stdout, and the
    installer's placement lines now go to stderr (they polluted stdout).

Windows keeps its PowerShell slot arm; its move onto these verbs is the
other half.

Test: tools/scripts/tests/install-llama-server-slots.test.sh, 5 cases,
run in CI beside the warm-build test; mutation-checked (dropping the
promote and breaking exit 3 each fail it).

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

…ever over a live lane (card 7a6a033a)

The installer half of #4491 for macOS and Linux. install-llama-server.sh
asks the core for the idle slot (`continuum engine idle-slot`), builds or
installs there, verifies and stamps as before, and only then promotes it
(`continuum engine promote <slot> <commit:backend>`). The core resolves
current at every launch and #4464's convergence relaunches lanes onto it.

- Current slot already at the pin: a no-op, as the stamp check was.
- A slot holding the pin whose promote failed: promoted, not rebuilt.
- Migration: a pre-slot engine already verified at the pin is copied into
  the slot and promoted, with no rebuild (hours on a CPU-served node).
- Exit 3 (no slot idle) skips the engine build this deploy and says so;
  any other idle-slot failure is fatal, never a guessed slot.
- Version skew: a deployed CLI without the verbs installs the pre-slot
  way once, says so, and the next deploy uses the slots.
- start-server takes the engine path from the installer's stdout, and the
  installer's placement lines now go to stderr (they polluted stdout).

Windows keeps its PowerShell slot arm; its move onto these verbs is the
other half.

Test: tools/scripts/tests/install-llama-server-slots.test.sh, 5 cases,
run in CI beside the warm-build test; mutation-checked (dropping the
promote and breaking exit 3 each fail it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit a813760 into canary Sep 28, 2026
13 checks passed
@joelteply
joelteply deleted the feat/engine-slots-installer branch September 28, 2026 02:32
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