Skip to content

continuum-genome: the genome is its own crate (a genome edit checks in ~1 s) - #5340

Merged
joelteply merged 1 commit into
canaryfrom
fable/genome-crate
Oct 24, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/genome-crate

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

This is the sixth crate cut, for the Dreaming/learning module (Cormac's area). It follows the genome peel in #5328.

What moved

  • core/continuum-mind/src/genome moved into core/continuum-genome as 69 renames: 65 .rs files plus the CUDA trainer's Python files.
  • The mind re-exports continuum_genome::genome, so crate::genome paths and core's re-exports are unchanged.

Visibility and gating

  • No visibility changes and no new gating were needed. The peel had already done that work.
  • Features are forwarded the same way the mind forwards them.

Wiring

  • Added to the workspace members, MODULE_CRATES, CUT_CRATES and the warnings ratchet targets.
  • CUT_CRATES also gets the missing continuum-perception (left out by Cut perception + rag out of continuum-mind into continuum-perception (card 2f5b275b) #5331), so core's source guards now read perception's files.
  • CI gains one line, cargo test -p continuum-genome --lib, and the repointed CUDA-trainer Python test path.
  • The mind's manifest drops deps only genome used, plus two it no longer used at all.

Measured

M5, 2026-10-23, serving down.

  • Tests: mind 2,542 + genome 410 = 2,952, the same as the base. Core test_env 120. Nothing failed.
  • Ratchets: unchanged vs canary.
  • Warnings: zero under continuum-genome/src and continuum-mind/src.
  • Incremental check: genome 1.0-1.2 s; mind after a genome change, 5.5 s.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…n ~1 s)

Plan phase 2, crates by the placement map (MODULE-ARCHITECTURE.md section 9.2,
the Dreaming/learning module). The genome peel (#5328) left genome naming
nothing above it; this is the cut.

Pure moves: continuum-mind/src/genome -> continuum-genome/src/genome (69 git
renames: 65 .rs, plus the CUDA trainer's three Python files and its
requirements, which include_str! reads from beside its adapters). The new
crate re-exports continuum_engine::* (genome reaches only engine and kernel
modules), so every crate:: path inside it resolves unchanged; the mind
re-exports `pub use continuum_genome::genome`, so its callers and core's
re-export keep their paths. No visibility widened, nothing newly gated: every
item the mind names was already pub.

Wiring:
- continuum-kernel is a direct dependency: the ORM derive resolves it by
  manifest name (RecallDecision).
- Features forward as in the mind: metal/cuda/vulkan to engine and kernel,
  stress-tests (the local manager's gated test) to the kernel, test-fixtures
  to base/kernel/engine plus the job board's optional tempfile. The mind's
  features forward to the genome. Dev-deps enable the lower layers'
  test-fixtures, so a plain `cargo test -p continuum-genome` builds.
- The mind drops deps only genome used (candle-core, candle-nn, axum, and its
  optional tempfile for the job board's test storage) and two it no longer
  used at all (rayon, safetensors).
- Workspace member; source-hygiene MODULE_CRATES; the warnings ratchet's
  counted targets; test_env CUT_CRATES (continuum-perception added too: #5331
  left it out, so core's source guards did not walk perception's files).
- CI: `cargo test -p continuum-genome --lib` beside the perception line; the
  CUDA trainer's Python unittest repointed to the new path.

Tests (M5, metal,test-fixtures): mind lib on canary 2,952 (410 under
genome::); now genome 410 (409 + 1 ignored) + mind 2,542 (2,533 + 9 ignored)
= 2,952. core test_env 120 -> 120. Ratchets vs origin/canary: every count
unchanged. Zero warnings under continuum-genome/src (lib, --tests,
test-fixtures, stress-tests) and continuum-mind/src.

Measured: incremental `cargo check -p continuum-genome --features metal`
after touching its lib.rs: 1.05-1.17 s (3 runs); a leaf genome file 1.03 s;
the mind on top of a genome change 5.5 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 709f1d5 into canary Oct 24, 2026
5 checks passed
@joelteply
joelteply deleted the fable/genome-crate branch October 24, 2026 00:07
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