Skip to content

continuum-dreaming: the genome domain leaves continuum-core with its commands (card 2a69e6ba) - #5456

Merged
joelteply merged 6 commits into
canaryfrom
2a69e6ba/continuum-dreaming
Oct 26, 2026
Merged

joelteply merged 6 commits into
canaryfrom
2a69e6ba/continuum-dreaming

Conversation

@joelteply

@joelteply joelteply commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Why (card 2a69e6ba; plan phase 2)

Joel: "crates are still gigantic", and "a domain's service and its commands are ONE crate". Dreaming (MODULE-ARCHITECTURE §9.2, gene training on the served weights) leaves continuum-core, with its commands, for a new continuum-dreaming crate above continuum-mind.

Integration base: canary d8ee2b3d1 (#5454).

What moves (pure move)

modules training_trigger (+ durable/), genome, dataset (+ dataset/), gene_examiner, genome_fitness_sentinel
commands training_trigger, genome (+ teach, job_*), genome_recall, genome_share, dataset
  • 57 renames. 56 are byte-identical (R100). genome_share.rs is R099: one doc link named core's forge.
  • Core re-exports every moved module at its old path (modules::{…}, commands::{…}), so no caller changes.
  • The new crate re-exports continuum_mind::*, so the moved code's crate:: paths resolve, and commands::hf re-exports the academy's (genome sharing's search).
  • Features. Core forwards metal, cuda, vulkan, stress-tests and test-fixtures.
  • Cargo.lock only adds the new package (via cargo metadata, no other change).

The core ties, cut first (each its own PR)

PR tie cut
#5445 owner-only trust via the executor's policy (policy_recover)
#5446 serving_pool_kind to the engine
#5448 six DataModule downcasts → ModuleContext::storage
#5449 teach's teacher window → TeacherServing
#5451 recall replay trust, fail-closed
#5452 hf/* to the academy
#5453 the citizen dir resolver to the persona crate
#5454 genome/push stays with core's forge

grep for crate::(modules|commands|ipc|http|forge|…):: outside the moved set in the new crate finds nothing.

Tested

  • Moved-test inventory: 144 #[test]/#[tokio::test] in these files at canary d8ee2b3d1, 144 after.
  • The cfg(test) trap: no core code uses a moved #[cfg(test)] helper.
  • No include_str! across the seam, in either direction.
  • CI is the compile. A local build needs the vendored llama.cpp, which this worktree doesn't carry. The combined move is what CI builds; the seams' separate greens don't substitute for it.

Size

continuum-core loses about 19,800 lines; continuum-dreaming checks without core.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

joelteply added a commit that referenced this pull request Oct 26, 2026
…run in CI (CI and Codex on #5456)

- The moved teach bridge stamps env!("CONTINUUM_BUILD_GIT_SHA"); the crate now uses
  build = "../continuum-core/build.rs", core's script being that identity's one owner, as
  cognition does.
- The CI selector lists continuum-dreaming in TESTED_CRATES (test-fixtures) and the generic
  crate-test step's allowlist, so its moved tests run instead of being selected into nothing. The
  selector tests expect it wherever a change selects the mind it builds on.

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 26, 2026
…hey are pub (CI on #5456)

lesson_tasks (benchmark_import), GridPeerAdapter and on_grid and GenomeModule::with_teacher_serving
(ai_genome_modules boot), GenomeModule::trains_base_here (grid_capacity). They were pub(crate) while
both sides lived in core; no signature names a private type.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply and others added 4 commits October 26, 2026 02:28
…commands (card 2a69e6ba)

Plan phase 2 (Joel: "crates are still gigantic"; a domain's service and its commands are one
crate). Dreaming (MODULE-ARCHITECTURE section 9.2) moves out of continuum-core into a new crate
above continuum-mind:

- modules: training_trigger (+ durable/), genome, dataset (+ dataset/), gene_examiner,
  genome_fitness_sentinel
- commands: training_trigger, genome (+ teach, job_*), genome_recall, genome_share, dataset

Pure move: 57 renames (56 byte-identical; genome_share.rs differs by one doc link that named core's
forge). continuum-core re-exports every moved module at its old path
(modules::{...}, commands::{...}), so no caller changes. The crate re-exports continuum_mind::* so
the moved code's crate:: paths resolve, and commands::hf re-exports the academy's (genome_share's
search). Core forwards metal/cuda/vulkan/stress-tests/test-fixtures to it.

The core ties were cut first, each its own PR: #5445 (owner trust via the executor), #5446
(serving_pool_kind to the engine), #5448 (ModuleContext::storage), #5449 (TeacherServing), #5451
(recall replay trust), #5452 (hf to the academy), #5453 (citizen dir to the persona crate), #5454
(genome/push stays with core's forge). Remaining crate:: references to core-only modules: none.

Tests: 144 #[test]/#[tokio::test] in the moved files at canary d8ee2b3, 144 after. No core code
uses a moved #[cfg(test)] helper, and no file include_str!s across the seam.

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

- The moved teach bridge stamps env!("CONTINUUM_BUILD_GIT_SHA"); the crate now uses
  build = "../continuum-core/build.rs", core's script being that identity's one owner, as
  cognition does.
- The CI selector lists continuum-dreaming in TESTED_CRATES (test-fixtures) and the generic
  crate-test step's allowlist, so its moved tests run instead of being selected into nothing. The
  selector tests expect it wherever a change selects the mind it builds on.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…hey are pub (CI on #5456)

lesson_tasks (benchmark_import), GridPeerAdapter and on_grid and GenomeModule::with_teacher_serving
(ai_genome_modules boot), GenomeModule::trains_base_here (grid_capacity). They were pub(crate) while
both sides lived in core; no signature names a private type.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply force-pushed the 2a69e6ba/continuum-dreaming branch from 8438643 to 7a5afe9 Compare October 26, 2026 07:29
joelteply and others added 2 commits October 26, 2026 02:42
…ing ratchet's crate list (CI and Codex on #5456)

loose_id_guard::no_declaration_outlives_its_defect failed because modules/dataset/dataset_manifest.rs
(room_id, a declared loose id) left the tree core's guards walk. MODULE_CRATES is the one list those
guards and every source-hygiene ratchet read ('a new cut is one line here'); the crate keeps core's
module paths, so the declaration lines up again rather than being erased. The rustc warning ratchet
counts continuum-dreaming too, so the moved files' warnings stay counted.

Receipt (local, IntelMac, -j 2): cargo test -p source-hygiene 55/55; ratchets vs origin/canary
36200cb: every count identical (unjustified_unwraps 1977 -> 1977, upward_imports 33 -> 33,
lines_over 269 -> 269, ...).

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

In core's lib-test build the test counted as its use; as a non-test dependency of core the
crate-level const was dead_code, lifting the warning count to 14 against the baseline 13. It is the
test's bound on a full chunk's encoded size, so it moves into the tests module; MAX_ARTIFACT_CHUNK's
doc still states the frame and envelope budget.

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

Copy link
Copy Markdown
Contributor Author

Review of exact head 031baf6: the previously identified crate-test selection, shared source-hygiene coverage, warning coverage, and moved test-only constant issues are addressed. Independently read CI logs: continuum-core 2241 passed, 0 failed, 11 ignored, 4 filtered; warning count 13 against baseline 13. continuum-dreaming 216 passed, 0 failed. Selected library checks, CLI installed-release handoff and binding drift checks are green.

No remaining source-review blocker from my review. Three platform core-binary jobs are still running; this is not a platform artifact or deployment attestation. Preserve those integration gates.

@joelteply
joelteply merged commit 4dd84d1 into canary Oct 26, 2026
34 checks passed
@joelteply
joelteply deleted the 2a69e6ba/continuum-dreaming branch October 26, 2026 09:23
joelteply added a commit that referenced this pull request Oct 26, 2026
…ds the four crate lists (card 85138cb9) (#5463)

* A new crate is tested and audited by construction: source-hygiene reads the four crate lists (card 85138cb9)

A crate cut from continuum-core must be in TESTED_CRATES (ci-change-scope.cjs), have a job in
continuum-rust-tests.yml, be in MODULE_CRATES/SPLIT_CRATES, and be counted by
check-rust-warnings.sh, or part of it goes unwatched while CI stays green. Review caught it
twice on 10-26: #5456 (dreaming) and #5450 (sentinel: 122 tests in no CI job; two loose_id
entries vanished because their files left the scan, not because the code changed).

crate_wiring reads the workspace members, the four lists and each crate's tests, and names every
gap. Existing gaps are explicit exemptions with reasons, and an exemption whose gap is closed
fails too, so the lists only shrink. The audit itself found a backlog (card 996e3537):
- ~380 tests in 13 crates that no workflow runs, including continuum-context (the context
  codec, 24 tests), continuum-positron (89), continuum-text-analysis (104) and
  continuum-tool-protocol (60);
- continuum-kernel's ~13 uncounted warnings;
- continuum-host in no per-file ratchet.

Mutation: dropping continuum-dreaming from TESTED_CRATES fails with "continuum-dreaming has
tests but is not in TESTED_CRATES". source-hygiene 62/62. The workflow runs on every PR.

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

* crate_wiring: the warning check covers SPLIT_CRATES too (Codex on #5463)

continuum-base is a split crate outside the warning count; it joins the shrinking exemptions
under card 996e3537. Mutation: dropping that exemption fails with 'continuum-base is audited
but not counted by scripts/ratchets/check-rust-warnings.sh'. source-hygiene 62/62.

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