Skip to content

continuum reboot builds dark: stop serving, build at full speed, start, verify; a failed build restarts the previous binary - #5358

Merged
joelteply merged 1 commit into
canaryfrom
fable/reboot-builds-dark
Oct 24, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/reboot-builds-dark

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel, 2026-10-24: "take down serving while building"; "You need all system resources for building."

What a reboot does now

  1. Keeps a way back. That is the supervisor's slot, or for a direct core, a copy of the running binary in ~/.continuum/state/reboot-previous-core/. If it can't keep one, the reboot refuses while the core is still serving.
  2. Stops serving gracefully: drain, then pages saved.
  3. Builds at cargo's own job count and normal priority.
  4. Stages, launches and verifies the SHA, as before.
  5. If anything fails between the stop and the launch, it restarts the previous build and reports both outcomes.
  6. Prints the dark window: stop, build, and start-to-answering times.

Windows: the engine build and its registration also moved after the stop.

Deleted

  • warm_build_allowed, its refusal and its test.
  • The --service branch that refused with "wants 10 GiB beside the serving core".
  • warm_build_jobs_for_memory, the five WARM_BUILD_* constants and their test.
  • yield_to_serving and its test, plus the CLI's available_memory_bytes.
  • warm_build.rs is renamed dark_build.rs.

463 lines added and 499 removed.

Measured

  • cargo check -p continuum-core --features metal,accelerate --tests --bins: clean.
  • Dark-build tests pass, including a new one checking that the rollback copy is the running executable.
  • Ratchets pass, and several counts fell.
  • Two reboot_tests and installed_release failures predate this change: they also fail on canary.
  • Owner Fable: the dark-window receipt and a real failed-build rollback, on the first deploy with this CLI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…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
joelteply merged commit 3b36530 into canary Oct 24, 2026
4 of 5 checks passed
@joelteply
joelteply deleted the fable/reboot-builds-dark branch October 24, 2026 05:24
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]>
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