Skip to content

The continuum home has one owner: continuum_root delegates to continuum_home, and CONTINUUM_ROOT is gone (card 2002434d, line 7) - #5420

Merged
joelteply merged 4 commits into
canaryfrom
2002434d/one-continuum-home-owner
Oct 25, 2026
Merged

joelteply merged 4 commits into
canaryfrom
2002434d/one-continuum-home-owner

Conversation

@joelteply

@joelteply joelteply commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Why (plan: STOP ADDING TO THE SLOP; order of work line 7, "duplicates to one owner: hand-built ~/.continuum paths (correctness)"; card 2002434d)

Canary had two owners of the continuum home:

  • paths::continuum_home() honours $CONTINUUM_HOME and, in any test build, a per-process temp home. That's the guard written after the 2026-09-20 M5 incident, when a cargo test saved a fixture model into the live served-window state.
  • paths::continuum_root() (39 callers) read $CONTINUUM_ROOT and then the real home. Its callers' tests could therefore write the operator's state, which is the same incident shape.

Change

  • continuum_root() returns continuum_home(), keeping its infallible signature with the same justified expect.
  • CONTINUUM_ROOT is gone from Rust: the logger's own read of it now goes through the owner, the pin store's never-resolve list drops it, and a doc that named it is corrected. The variable lives on only inside the legacy start-workers.sh.
  • The test that pinned the env var is replaced by the_root_is_the_one_continuum_home.

The hand-built-path ratchet already exists (hand_built_homes, card 5e3a3e75). Per-crate migrations of the hand-built join(".continuum") sites onto the owner come next, as separate PRs: core and kernel mine, cognition/mind for Fable's review, engine for Codex's.

Risk

Under test, the callers of continuum_root() now resolve the per-process test home instead of the real one. That's the point of the change. A test that silently read real operator files through it would now show up in CI, and that would be a defect to fix, not to work around.

Measured

No runtime number: this is a resolution change. In production both owners already resolved ~/.continuum unless an env var was set. CI is the compile, since no cargo runs beside enrico's live lanes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…um_home, and CONTINUUM_ROOT is gone (card 2002434d, line 7)

continuum_root() read $CONTINUUM_ROOT and then the real home, ignoring $CONTINUUM_HOME and the
per-process test home continuum_home() honours, so its 39 callers' tests could write the
operator's state (the 2026-09-20 served-window incident's shape). It now returns
continuum_home(), keeping its infallible signature. The logger's own CONTINUUM_ROOT read goes
through it; the env var (read nowhere else in Rust) is gone, with the pin store's reach list and
a doc that named it. The test that pinned the env var is replaced by one asserting the root IS
the home.

The hand-built-path ratchet (hand_built_homes, card 5e3a3e75) already holds; per-crate migrations
onto the owner follow.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…sed with the setting that keeps it; scripts and docs move to CONTINUUM_HOME (Codex on #5420)

Ignoring $CONTINUUM_ROOT would silently open another state tree for an operator who set it.
continuum_home() now refuses when it names anything but the home this process resolved, naming
CONTINUUM_HOME=<that path> as the one setting that keeps their tree; nothing is moved.
tools/scripts/system-stop.sh (which removes sockets, signals and locks under the home) and the
legacy core/start-workers.sh resolve CONTINUUM_HOME with the same refusal. CHECKPOINT-RECOVERY and
PATH-OWNERSHIP name CONTINUUM_HOME and how a CONTINUUM_ROOT tree is kept. The pin store's
forbidden-string guard keeps CONTINUUM_ROOT. New tests: the root follows a test's native home
override; a retired root naming another tree is refused, equal or absent passes.

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 25, 2026 10:57
…pts read it (Codex on #5420)

Rust read an empty CONTINUUM_HOME as the path "" and an empty CONTINUUM_ROOT as set, while
system-stop.sh and start-workers.sh (${VAR:-default}, [ -n ]) read both as unset, so the core and
its cleanup could resolve different homes from one environment. continuum_home() filters both
through set(): empty is unset. Fixture: empty and absent are unset, a value passes.

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

continuum_root() returns a PathBuf, and the logger's writer passed it on to write_and_latch,
write_log_message and resolve_log_path, which took &str: E0308 at three call sites. They take
&Path now, so the root is never rendered to text and parsed back; the tests hand in the temp
dir's path directly.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit e53d95e into canary Oct 25, 2026
26 checks passed
@joelteply
joelteply deleted the 2002434d/one-continuum-home-owner branch October 25, 2026 16:16
joelteply added a commit that referenced this pull request Oct 25, 2026
…no hard-coded root ahead of the home, the resolver's own error kept (card 293d9645)

- closing_modules: the grid dir no longer falls back to ./.continuum on a resolver error, which
  would hide #5420's retired-root refusal behind a second grid state; boot stops with the home's
  own error (justified expect at boot registration).
- tailscale: the status file is read under the one continuum home only; the hard-coded
  /root/.continuum entry (a container whose home is /root already resolves there) no longer
  outranks a configured home, and a resolver error is NotReady instead of a relative path.
- avatar, desktop, capture: the resolver's error is carried in the message instead of replaced
  with no-home text.
(1) the VDD reader/writer agreement is #5423, which integrates with this.

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 25, 2026
…e owner (card 293d9645, line 7 slice 2) (#5421)

* continuum-core's hand-built ~/.continuum paths resolve through the one owner (card 293d9645, line 7 slice 2)

19 production sites joined .continuum onto dirs::home_dir() / $HOME by hand, bypassing
$CONTINUUM_HOME and the per-process test home. Each now resolves through
crate::paths::continuum_home() (or the ContinuumLayout accessor naming the same subpath:
progress(), genome_models()), keeping its own error handling: avatar, cognition/observe, desktop,
interface/capture, plasticity/compress, positron_presence, closing_modules (grid dir),
pressure_broker_wiring (probe pool), main (embedding cache), auth (config.env x2), floor_fetch,
forge_module (adapter_out), genome_fitness_sentinel (its local dirs_home() helper deleted),
tailscale, sentinel checkpoint and global_sentinel, vdd. plasticity/compress refuses with no home
instead of writing into a /tmp fallback.

Left on purpose: the CLI binary's install/deploy/service paths (bin/continuum, its own home_dir()
for the Windows SID and envelope checks, a security boundary), airc's scope home in
daemon_supervisor, and a test helper's foreign user_home. The VDD writer in continuum-mind is
card 15590135 (the mind slice).

Mechanical edits by a Sonnet subagent, each site reviewed here; not compiled locally (CI).

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

* Hand-built home fixes take Codex's #5421 findings: no fallback tree, no hard-coded root ahead of the home, the resolver's own error kept (card 293d9645)

- closing_modules: the grid dir no longer falls back to ./.continuum on a resolver error, which
  would hide #5420's retired-root refusal behind a second grid state; boot stops with the home's
  own error (justified expect at boot registration).
- tailscale: the status file is read under the one continuum home only; the hard-coded
  /root/.continuum entry (a container whose home is /root already resolves there) no longer
  outranks a configured home, and a resolver error is NotReady instead of a relative path.
- avatar, desktop, capture: the resolver's error is carried in the message instead of replaced
  with no-home text.
(1) the VDD reader/writer agreement is #5423, which integrates with this.

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]>
joelteply added a commit that referenced this pull request Oct 25, 2026
…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 added a commit that referenced this pull request Oct 25, 2026
…uietly switching features off (card e7c258a5) (#5430)

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.


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