Skip to content

The core refuses to boot without its one continuum home, instead of quietly switching features off (card e7c258a5) - #5430

Merged
joelteply merged 1 commit into
canaryfrom
e7c258a5/boot-refuses-without-a-home
Oct 25, 2026
Merged

joelteply merged 1 commit into
canaryfrom
e7c258a5/boot-refuses-without-a-home

Conversation

@joelteply

@joelteply joelteply commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Why (plan line 7, one owner per fact; card e7c258a5; follows #5420)

#5420 made continuum_home() refuse a retired $CONTINUUM_ROOT that names another tree. But the core still booted, and every later continuum_home().ok() read the refusal as "no home" and switched its feature off without a word. In main.rs alone that was:

  • the embedding cache's persistence across restarts;
  • every disk-tracked cache class, which then went untracked with nothing to evict.

A resident's memory and her disk safety shouldn't depend on an env var nobody notices.

Change

main resolves the home once: after config.env is applied (it may set CONTINUUM_HOME), and before tokio, tracing or any socket exists. Without a home it refuses the boot with continuum_home's own reason, for example: "$CONTINUUM_ROOT=… is no longer read … Set CONTINUUM_HOME=… to keep that tree, or unset CONTINUUM_ROOT". async_main takes that one path, and the two main.rs re-resolutions (with their silent-skip branches) are gone. The diff is +17 / −21.

Left on purpose: the other continuum_home().ok() sites are in library code that also runs in other processes and tests. In the core process they can no longer see a refusal, because the boot already refused it.

Deploy safety: on enrico, CONTINUUM_ROOT is set in no LaunchAgent plist, not in launchctl getenv, and not in config.env. A node that sets it equal to its home still passes, since retired_root only refuses a different path.

Measured

There is no runtime number: the boot path is unchanged when no CONTINUUM_ROOT is set. CI is the compile, since IntelMac serves.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

joelteply added a commit that referenced this pull request Oct 25, 2026
…d 67bf5d81) (#5431)

* PR CI compiles a declared binary whose own source the PR touches (card 67bf5d81)

Every crate job builds the lib or lib tests, so a PR editing core/continuum-core/src/main.rs
(continuum-core-server) or a src/bin file reached canary with no compile of that binary; the first
compile was the hourly core-binaries publication, after merge (found on #5430).

The selector (ci-change-scope.cjs, the one owner of check selection) now reads each crate's
[[bin]] targets and returns the touched ones per tested crate: the bin's file, and for
src/bin/<x>.rs its module directory. The crate's existing job then runs one cargo check with
those --bin flags. No new job; a PR that touches no binary runs nothing more. The CLI binary stays
with the handoff job, which already compiles it; pushes keep their full lib net, and the hourly
publication still compiles every bin.

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

* The bin check runs --locked, and a crate's Cargo.toml change checks every bin it declares (Codex on #5431)

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]>
…uietly switching features off (card e7c258a5)

continuum_home() refuses a retired $CONTINUUM_ROOT (#5420), but the core booted anyway, and each
later `continuum_home().ok()` read that refusal as "no home" and turned its feature off: in main
alone, the embedding cache's persistence and every disk-tracked cache class. main now resolves
the home once, after config.env is applied and before tokio starts, refuses the boot with the
reason, and hands that one path to async_main.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply force-pushed the e7c258a5/boot-refuses-without-a-home branch from 439e988 to 770249d Compare October 25, 2026 22:57
@joelteply

Copy link
Copy Markdown
Contributor Author

Binary compile receipt at 770249d (rebased onto #5431, a2e59ef):

  • Run 40242532223, job 121317274063 (lib tests continuum-core). Step "cargo check the binaries this change touches" succeeded, 23:03:41Z to 23:06:55Z.
    • Log: BINS: continuum-core-server, then cargo check --locked -p "$CRATE" --profile dev-fast …, then Checking continuum-core v0.1.0, then Finished dev-fast … in 3m 14s.
  • That is the first live run of PR CI compiles a declared binary whose own source the PR touches (card 67bf5d81) #5431's step: the selector chose continuum-core-server because this PR touches src/main.rs. It added 3 min 14 s on top of the lib test build.
  • All 8 non-skipped checks pass. There are no PR comments.

Still owed after deploy: the live refusal with a retired CONTINUUM_ROOT. I'll run it on enrico in a throwaway environment (start the binary with CONTINUUM_ROOT set to a different tree and read the boot error) once the build is installed, and post it here.

@joelteply

Copy link
Copy Markdown
Contributor Author

Source and selected-CI PASS at exact head 770249d. Rebased diff preserves the reviewed behavior: resolve continuum home after config.env, refuse invalid home before creating Tokio, then reuse that resolved path for embedding persistence and disk tracking.

Independently verified run 40242532223/job 121317274063: the new binary-check step succeeded 23:03:41–23:06:55Z, closing the main.rs compilation gap. Aggregate 121319464230, bindings 121319485612 and hygiene 121317215483 also succeeded. Native Windows lifecycle/custody and CLI handoff were skipped. Clear for owner integration; live invalid-CONTINUUM_ROOT refusal before serving and configured-home identity retention remain deployment acceptance, not established by CI.

@joelteply
joelteply merged commit 9e303fb into canary Oct 25, 2026
12 checks passed
@joelteply
joelteply deleted the e7c258a5/boot-refuses-without-a-home branch October 25, 2026 23:16
@joelteply

Copy link
Copy Markdown
Contributor Author

Live receipt on enrico, 9e303fb (handed off 2026-10-26T01:10:22Z, continuum ping buildSha 9e303fb):

  • Refusal. I ran a throwaway launch of the installed ~/.continuum/bin/continuum-core-server with CONTINUUM_HOME=<scratch>/home and CONTINUUM_ROOT=<scratch>/other. It exited 1 before Tokio:
    Error: "continuum-core: $CONTINUUM_ROOT=…/other is no longer read: the continuum home is $CONTINUUM_HOME, else ~/.continuum (…/home here). Set CONTINUUM_HOME=…/other to keep that tree, or unset CONTINUUM_ROOT; nothing was moved".
    Both scratch directories are still empty afterwards. The serving core was never touched.
  • Retention. Eitan, Paige, Delia and Iris each keep citizens/personas/<name>/airc/engrams.sqlite. There's no nested ~/.continuum/.continuum and no .continuum in the deploy tree. serving/status reads ready with degraded_reason null.
  • Found by this check (card f04a437f): the same launch printed applied 6 assignment(s) from config.env with an empty scratch home. continuum-base config_env::config_path() and secrets build ~/.continuum/config.env by hand, so config.env ignores CONTINUUM_HOME. The fix is for the home lookup to move down to continuum-base, with the kernel delegating to it.

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