Repository navigation
fix(lifecycle): deploy-verify can see the CLI, and the #194 guard is finally CI-covered (#422) - #2292
Merged
Merged
Conversation
…finally CI-covered (#422) Two defects, one root: deploy-verify only ever looked at the CORE, and the pure logic that decides its verdict was tested where CI does not look. ## It was half-blind `reboot` sets CONTINUUM_SKIP_SELF_BUILD and so never rebuilds the `continuum` CLI. That is deliberate — a running image cannot be replaced on Windows, and letting the start script build it failed the whole cargo invocation and skipped the CORE build (772s to that failure on BIGMAMA). The consequence was never written down: a fix that lives in the CLI cannot reach an operator through the documented deploy path, and deploy-verify printed its green checkmark anyway. Measured 2026-08-14, same machine, minutes apart: the installed CLI's `stop` reaped only the pidfile core and left pid 6453 alive and silent; the freshly-built CLI's `stop` then printed SPLIT BRAIN and reaped it. #2287 had merged and had NOT reached the installed CLI — while deploy-verify reported "✅ core is running build 1de9ceb". Every lifecycle fix shipped this week (#2287 stop-reaps-all, #2288 config.env, #2291 start reclaim-or-refuse) lives in the CLI; none was provably running. That is #194 one tier up. `cli_staleness_note` now rides alongside the core verdict on BOTH outcomes. It WARNS rather than failing: the core verdict is about whether the swap took, CLI staleness is a separate fact, and making it fatal would break deploy-verify for every operator whose CLI predates their core — today, all of them. Silence when it matches, so the note means something when it fires. Unjudgeable provenance (built outside a git tree) is stated, not swallowed, and never claims staleness it cannot prove. ## And its tests were unreachable `deploy_verdict` and `sha_matches` were pure and unit-tested — inside `bin/continuum.rs`. CI runs `cargo test -p continuum-core --lib`, which does not compile bin test mods, so the #194 guard was protected by tests nothing ran. Exactly the trap #2291 documented for the bind guard, sitting one function away the whole time. Moved to `runtime/deploy_provenance.rs` with their tests, plus new coverage for the CLI note and for sha_matches rejecting junk in both directions. The bin keeps everything impure (ping, git rev-parse, artifact resolution, process description) and delegates the verdicts. 4 tests, all under the --lib gate. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two defects, one root:
deploy-verifyonly ever looked at the core, and the pure logic behind its verdict was tested where CI does not look.1. It was half-blind
rebootsetsCONTINUUM_SKIP_SELF_BUILDand never rebuilds thecontinuumCLI — deliberate (a running image can't be replaced on Windows; letting the start script build it failed the whole cargo invocation and skipped the CORE build). The consequence was never written down: a fix living in the CLI cannot reach an operator through the documented deploy path, and deploy-verify printed its green checkmark anyway.Measured 2026-08-14, same machine, minutes apart: the installed CLI's
stopreaped only the pidfile core and left pid 6453 alive and silent; the freshly-built CLI'sstopthen printed SPLIT BRAIN and reaped it. #2287 had merged and had not reached the installed CLI — while deploy-verify reported✅ core is running build 1de9cebc5. Every lifecycle fix shipped this week (#2287, #2288, #2291) lives in the CLI; none was provably running. That's #194 one tier up.cli_staleness_notenow rides alongside the core verdict on both outcomes.It warns, it doesn't fail. The core verdict is about whether the swap took; CLI staleness is a separate fact, and making it fatal would break
deploy-verifyfor every operator whose CLI predates their core — today, all of them. Silent when it matches, so the note means something when it fires. Unjudgeable provenance (built outside a git tree) is stated, never swallowed, and never claims staleness it can't prove.Live positive control (HEAD moved one commit past the built CLI):
Both SHAs named; core verdict still leads.
2. And its tests were unreachable
deploy_verdictandsha_matcheswere pure and unit-tested — insidebin/continuum.rs. CI runscargo test -p continuum-core --lib, which doesn't compile bin test mods, so the #194 guard was protected by tests nothing ran. Exactly the trap #2291 documented for the bind guard, sitting one function away the whole time.Moved to
runtime/deploy_provenance.rswith their tests, plus new coverage for the CLI note and forsha_matchesrejecting junk in both directions. The bin keeps everything impure (ping,git rev-parse, artifact resolution, process description) and delegates the verdicts. 4 tests, all under the--libgate.Not in scope
Fixing the rebuild itself (#422 proper) — side-path build + atomic swap, or a
self-updateverb in the deploy loop. This is the visibility half, which is required regardless of which of those lands.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo