Skip to content

feat(deploy): the consumer deploys the core CI built instead of compiling it (card 50ca737e) - #4702

Merged
joelteply merged 3 commits into
canaryfrom
feat/deploy-downloads-ci-core
Oct 4, 2026
Merged

joelteply merged 3 commits into
canaryfrom
feat/deploy-downloads-ci-core

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Slice 2 of 30a8b3ac, part 2: the IO, in the deploy consumer.

  • ci_core_for: on a platform CI builds (macOS arm64 and x86_64 today), fetch
    canary-/continuum-core-.json; on 404, WAIT in this
    detached consumer (60 s tokio interval) while CI is inside its budget,
    because the actuator only re-launches a stranded request after 1.5x the last
    deploy time; then compile and say why. Other platforms compile at once.
  • fetch_ci_core: manifest_verdict against this node's select_core_features
    output (the one mapping CI builds with), then stream the archive to
    ~/.continuum/cache/artifacts/ while hashing; refuse a sha256
    mismatch or a non-plain archive name; extract with tar.
  • install_ci_companions: what the warm build did besides the core. The CLI on
    PATH follows the core (install_cli::copy_with_retry), and the stamp-gated
    install-llama-server.sh rebuilds the engine only when the fork moved.
  • reboot gets prebuilt + stage_prebuilt: launchd execs only its slot
    (PreparedCoreService::prepare refuses any other path), so the downloaded
    core is staged after the stop, exactly like a warm build's artifact, and
    verified by the existing Implement GAN-style Adversarial Training Loop #194 sha check.
  • The cache is registered: TrackedDir core-artifacts, with an eviction
    decision (bounded by its writer to the newest three; re-downloadable).

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

joelteply and others added 2 commits October 3, 2026 20:36
…builds on root Cargo changes (card 50ca737e)

Slice 2 of 30a8b3ac, part 1: the verdicts, in continuum-cli-lifecycle so they
run everywhere (the same split as deploy_provenance).

- platform_key / release_tag / manifest_url: where this node's build lives
  (canary-<sha12>/continuum-core-<platform>.json).
- manifest_verdict: accept only THE build for this tip on this node, with
  the same full sha, platform and feature set (another GPU flavor's build is
  another program), a real sha256 and all four sibling bins.
- touches_build_inputs + BUILD_INPUTS: a tip that changes no build input is
  not a deploy, which saves CI's build and every node's rebuild (found on the
  first publish: docs-only tips have no artifact, and nodes recompiled for them).
- when_artifact_missing: wait while CI can still deliver (180 min budget
  against measured 58/73 min cold builds), then compile; a platform with no
  CI leg compiles at once.

Fix in core-binaries.yml: push.paths lacked the ROOT Cargo.toml, Cargo.lock
and rust-toolchain.toml, so a dependency bump built no artifact. A test now
pins the workflow's paths to BUILD_INPUTS (mutation-checked: dropping
Cargo.lock fails it).

Tests: 4 pass on macOS (cargo test -p continuum-cli-lifecycle --lib).

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

Slice 2 of 30a8b3ac, part 2: the IO, in the deploy consumer.

- ci_core_for: on a platform CI builds (macOS arm64 and x86_64 today), fetch
  canary-<sha12>/continuum-core-<platform>.json; on 404, WAIT in this
  detached consumer (60 s tokio interval) while CI is inside its budget,
  because the actuator only re-launches a stranded request after 1.5x the last
  deploy time; then compile and say why. Other platforms compile at once.
- fetch_ci_core: manifest_verdict against this node's select_core_features
  output (the one mapping CI builds with), then stream the archive to
  ~/.continuum/cache/artifacts/<sha12> while hashing; refuse a sha256
  mismatch or a non-plain archive name; extract with tar.
- install_ci_companions: what the warm build did besides the core. The CLI on
  PATH follows the core (install_cli::copy_with_retry), and the stamp-gated
  install-llama-server.sh rebuilds the engine only when the fork moved.
- reboot gets prebuilt + stage_prebuilt: launchd execs only its slot
  (PreparedCoreService::prepare refuses any other path), so the downloaded
  core is staged after the stop, exactly like a warm build's artifact, and
  verified by the existing #194 sha check.
- The cache is registered: TrackedDir `core-artifacts`, with an eviction
  decision (bounded by its writer to the newest three; re-downloadable).

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

Copy link
Copy Markdown
Contributor Author

Local verification on the IntelMac (Darwin x86_64), head 4dc76f4:

  • cargo check -p continuum-core --bin continuum --no-default-features --features livekit-webrtc,llama/mac-cpu-only: clean in 11 min, with 0 warnings in the changed files (bin/continuum.rs, disk_reporters.rs, disk_eviction.rs). The warnings printed are pre-existing, elsewhere.
  • cargo test -p continuum-cli-lifecycle --lib prebuilt_artifact: 4/4 pass. The CI-trigger drift test is mutation-checked: dropping Cargo.lock from the workflow fails it.
  • The artifact this consumes is real: canary-54cbe937f3e2 (macos-x86_64) downloaded in 4 s (128 MB) over plain HTTPS. Its sha256 matches the manifest, all four bins are present, and continuum --version reports 54cbe93.
    Not yet exercised: the full consumer run on a node. That's the acceptance in card 50ca737e, the first deploy after merge.

…kout through the CI wait (Fable's #4702 review)

The CI wait can run for hours, and only reboot wrote the claim, after it, so
nothing marked the deploy in flight: the actuator's stranded re-launch (1.5x
the last deploy time; minutes on the M5) would start a second consumer that
checked the tree out under the first and rebooted alongside it.

- Take DeployClaimGuard at the top of the attempt, before fetch/checkout;
  reboot re-takes the same claim for this pid and releases it at handoff.
- Each wait tick renews the claim with working=true: waiting on CI is
  progress, so the claim never reads Stalled for a healthy wait.

Verified: cargo check --bin continuum (IntelMac features) clean; a deliberate
type error injected at the new line is caught (the check sees this code).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit e545f64 into canary Oct 4, 2026
10 checks passed
@joelteply
joelteply deleted the feat/deploy-downloads-ci-core branch October 4, 2026 02:36
joelteply added a commit that referenced this pull request Oct 4, 2026
…verdict (#4706)

* fix(deploy): core-binaries is an artifact publisher, never the tip's verdict

Since #4691 every canary push runs core-binaries.yml (44-73 min per macOS leg, cancel-in-
progress on the branch), and the tracker counted its check-runs in the tip's verdict. On
2026-10-04 the M5 sat at ChecksPending from 01:36Z to 04:00Z across five merges and
deployed nothing: no tip was green before the next merge cancelled its run. The same
verdict holds every node that reads it.

core-binaries.yml joins NON_DEPLOY_WORKFLOW_PATHS beside promote-main: it publishes the
tip's prebuilt core and judges no code; the deploy consumer waits for that artifact on its
own budget (#4702). A tip whose own suites are green is deployable the moment they are.
Test pins: in-flight = green, cancelled = green, core-binaries as the only suite = unknown.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix(promote-main): core-binaries is excluded from the promote verdict too (Cormac on #4706)

promote-main.yml carries its own copy of the verdict rule and treats cancelled as a hard
fail; a core-binaries run superseded by the next push would have blocked the daily
canary -> main promotion the same way it held the deploy tracker.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Fable 5.1 <[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