Repository navigation
continuum reboot builds dark: stop serving, build at full speed, start, verify; a failed build restarts the previous binary - #5358
Merged
Conversation
…ore the previous core on failure (card 4f7ad0c0, plan line 1) Joel, 2026-10-24: "No. Take down serving while building." The warm build beside a serving core shared one unified-memory pool with the residents' KV; a gate taken once at start could not follow either (2026-10-23: Metal OOM on the M5, engine wedged 10 min). - reboot captures the serving build first (the supervisor's untouched slot, or a copy of the direct core's own exe), stops gracefully, builds through start-server.sh's build-only pass at cargo's own job count and normal priority, stages, launches, and verifies the SHA. Any failure between stop and launch, or a direct launch failure, restarts the previous build and reports both (class preserved). - the dark window is printed per reboot: stop, build, start-to-answering. - Windows: the engine refresh/registration moves after the stop with the core build. Deleted: warm_build_allowed and its refusal, the --service "no artifact ... GiB beside the serving core" branch, warm_build_jobs_for_memory and the five WARM_BUILD_* constants (+ re-exports and tests), yield_to_serving (nice 19 / below-normal) and its test, available_memory_bytes in the CLI. Renamed: warm_build.rs -> dark_build.rs, WarmBuildReceipt -> BuildReceipt, warm_build_verdict -> source_build_verdict. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
… is red since #5358 (card 26395022) #5358 (3b36530) renamed two lines in start-server.sh: 'warm build complete' is now 'build-only pass complete' (:1047), and 'engine build failed in the warm pass' is now '... in the build-only pass' (:1017). start-server-build-only.test.sh still grepped the old text, so every 'lib tests continuum-core' job has failed in its first step since then (canary jobs 120789754578 at 3b36530, 120790262399 at 47ff490). The test's four greps now name the current lines. Verified on IntelMac (the test fakes cargo and every tool, so nothing builds): before the change it exits 1; after, it exits 0 with all 12 PASS lines. The step's other scripts (start-server-airc-recovery, install-llama-server-slots, test_ci_lib_test_artifact) also exit 0 on canary. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
…t on every platform (card 26395022) #5358's dark reboot (dark_build::PreviousCore::restore) calls restored_build_identity on every platform, but deploy_verify gated it to Windows and macOS. On Linux the `continuum` bin then fails to compile (E0425 at dark_build.rs:59), so the CLI installed-release handoff job fails (PR #5360's job 120792131008). The gate goes. binary_build_sha, running_core_build_sha and sha_matches are already ungated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 24, 2026
… is red since #5358 (card 26395022) (#5360) * The build-only test greps the start script's current messages; canary is red since #5358 (card 26395022) #5358 (3b36530) renamed two lines in start-server.sh: 'warm build complete' is now 'build-only pass complete' (:1047), and 'engine build failed in the warm pass' is now '... in the build-only pass' (:1017). start-server-build-only.test.sh still grepped the old text, so every 'lib tests continuum-core' job has failed in its first step since then (canary jobs 120789754578 at 3b36530, 120790262399 at 47ff490). The test's four greps now name the current lines. Verified on IntelMac (the test fakes cargo and every tool, so nothing builds): before the change it exits 1; after, it exits 0 with all 12 PASS lines. The step's other scripts (start-server-airc-recovery, install-llama-server-slots, test_ci_lib_test_artifact) also exit 0 on canary. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * The rollback's identity check builds on Linux too: dark_build calls it on every platform (card 26395022) #5358's dark reboot (dark_build::PreviousCore::restore) calls restored_build_identity on every platform, but deploy_verify gated it to Windows and macOS. On Linux the `continuum` bin then fails to compile (E0425 at dark_build.rs:59), so the CLI installed-release handoff job fails (PR #5360's job 120792131008). The gate goes. binary_build_sha, running_core_build_sha and sha_matches are already ungated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * Two honesty-guard entries named code that is gone (card 26395022) Hidden behind the build-only test break, which ended the core job before its tests ran. PR #5360's job 120795733877 then reported 2595 passed, 2 failed: - module_wiring_guard listed FaultRecorder as an unwired fixture; #5361 (a3e496d) deleted it, so the guard's own list is now its only reference. - loose_id_guard listed persona/projection.rs persona_id as a loose String; that file no longer exists. Both entries are deleted. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Joel, 2026-10-24: "take down serving while building"; "You need all system resources for building."
What a reboot does now
~/.continuum/state/reboot-previous-core/. If it can't keep one, the reboot refuses while the core is still serving.Windows: the engine build and its registration also moved after the stop.
Deleted
warm_build_allowed, its refusal and its test.--servicebranch that refused with "wants 10 GiB beside the serving core".warm_build_jobs_for_memory, the fiveWARM_BUILD_*constants and their test.yield_to_servingand its test, plus the CLI'savailable_memory_bytes.warm_build.rsis renameddark_build.rs.463 lines added and 499 removed.
Measured
cargo check -p continuum-core --features metal,accelerate --tests --bins: clean.reboot_testsandinstalled_releasefailures predate this change: they also fail on canary.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo