Skip to content

fix: launch the verified warm-build artifact directly - #4090

Merged
joelteply merged 6 commits into
canaryfrom
fix/warm-build-artifact-handoff
Sep 16, 2026
Merged

joelteply merged 6 commits into
canaryfrom
fix/warm-build-artifact-handoff

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

After a successful warm build, reboot discarded the candidate and stopped the core before rerunning the full source launcher. That repeated engine reconciliation and Cargo work while the node was down. A failed warm build also fell back to stopping the live core.

The build definition now reports its actual artifact path after successful build/freshness checks. The CLI owns a unique, bounded receipt, validates the candidate through PrebuiltCore::prepare before teardown, and uses the existing direct prebuilt launch and SHA verification. Failed attempted builds, missing/malformed receipts, or invalid candidates return before stopping the core. The existing no-headroom stop-first path remains unchanged.

Windows paths are native absolute paths with the executable suffix; the CLI does not reconstruct target directory, profile, or feature choices. Existing CLI-refresh reporting is preserved.

Validation: six isolated actual-launcher cases pass in Git Bash, simulating Windows/Linux/macOS platform detection and successful/failed builds. They cover native Windows receipt paths, spaces/Unicode, and no receipt on failure. Bash syntax, rustfmt, and diff checks pass. Added Rust regression covers bounded malformed receipts, cleanup, failed command, missing receipt, and unusable reported artifact. Rust tests/checks have NOT run because the shared Cargo slot belongs to the learning validation lane. No live operations.

Stacked on #4089; source-only draft pending independent review and Rust validation. AIRC card 571d6e0b-b84e-43aa-998c-0a2cd30ddaab.

@joelteply

Copy link
Copy Markdown
Contributor Author

Source review of exact head 0cd23f6: approved pending executable validation.

The receipt is invocation-owned and bounded, the launcher reports the exact native artifact only after its checks, and PrebuiltCore validates its build identity before any teardown. A failed attempted warm build returns without falling through to stop-and-rebuild. Successful warm builds select the existing direct-artifact launch and SHA verification path; source-build CLI freshness semantics remain intact.

Six shell branch fixtures passed as reported by the author. The new Rust test has not yet run: the learning repair owns the machine's single Cargo slot. Keep this draft until that test and normal CI pass. This is source approval, not a deployed-behavior or Rust-test receipt.

@github-actions github-actions Bot added size: M and removed size: L labels Sep 15, 2026
@joelteply
joelteply marked this pull request as ready for review September 16, 2026 00:54
@joelteply
joelteply merged commit 15731d3 into canary Sep 16, 2026
6 checks passed
@joelteply
joelteply deleted the fix/warm-build-artifact-handoff branch September 16, 2026 00:54
joelteply added a commit that referenced this pull request Sep 16, 2026
…h in prebuilt mode — the bare direct launch (#4090) started the M5 with no desktop and no power assertion (#4107)

* fix(deploy): a verified prebuilt core launches THROUGH start-server.sh in prebuilt mode — the bare direct launch (#4090) started the M5 with no desktop and no power assertion

The first warm-build reboot on the M5 (04:36Z) took #4090's direct-launch path: the
artifact ran bare, so CONTINUUM_UI_DIST was unset (desktop.dm.unconfigured — :8975
dark, the eye could not open a live call), no caffeinate sleep assertion (the M5
sleeps unattended: 9/7), no llama-server PATH, no derived airc room, no models dir,
no daemon ensure, no background desktop rebuild. Two start paths had drifted.

Now there is one: `CONTINUUM_PREBUILT_CORE=<artifact>` puts start-server.sh in
prebuilt mode — every `cargo build` is a no-op (a shell function shadows it), the
stale check is off, CORE_BIN is the artifact, everything else the script does for the
core still runs. The CLI's Prebuilt plan invokes the script with that variable; the
bare launch remains only for an installed-only box with no source tree.

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

* fix(deploy): the Prebuilt plan keeps the start script — it is how the artifact gets its launch environment (first live run: 'no start script', still bare)

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

* fix(deploy): prebuilt mode skips ONLY the core-server build — the MCP bin, the CLI, forge-custodian and the livekit-bridge still build, so a swept or fresh cache never launches green without its voice path (Cormac's review of #4107)

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

---------

Co-authored-by: Claude Opus 5 (1M context) <[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