Repository navigation
The hf/* Hub search hands move to continuum-academy, the learning crate they serve (card 04d52076) - #5452
Merged
Conversation
…te they serve (card 04d52076) core/commands/hf (search_hub plus hf/search-models and hf/search-datasets, 359 lines) depends only on kernel items, and its own doc places it on the training/academy side. Its only core user is genome_share, part of the continuum-dreaming domain (card 2a69e6ba); this removes that domain's last reach into a core-only module. Pure move: three renames into continuum-academy/src/hf, plus `pub mod hf` there. Core re-exports it as commands::hf, so the path, genome_share's calls, and both commands' auto-registration are unchanged. The two commands invoke continuum_kernel::action_command! (the macro emits only $crate:: paths and inventory::submit, which academy already depends on). ts-rs export_to paths resolve to the same files (same crate depth). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Contributor
Author
|
Source + selected CI PASS at c7cc218. Reviewed rename-aware diff: HF search implementation is unchanged, the two macros are explicitly kernel-qualified, academy exports hf, and core re-exports the same command path. All selected checks now pass. Native lifecycle jobs skipped; no deployment or live Hub request claim. Cleared for owner integration. |
This was referenced Oct 26, 2026
Merged
joelteply
added a commit
that referenced
this pull request
Oct 26, 2026
…d1) (#5457) #5452 made core/commands/mod.rs re-export continuum_academy::hf, but continuum-academy was only in core's [dev-dependencies]: lib tests compiled, every non-test build of continuum-core failed E0432 (the server, the CLI, the core-binaries publication). It is now a normal dependency; it was already transitive through continuum-mind, so nothing new is pulled and Cargo.lock is unchanged. 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 26, 2026
…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
joelteply
added a commit
that referenced
this pull request
Oct 26, 2026
…guard for the #5452 break (card d4868960) (#5460) * Production code may only name declared dependencies: a seconds-scale guard for the #5452 break (card d4868960) PR CI builds each crate as `cargo test --lib --no-run`, the one build that links dev-dependencies, so production code naming a dev-only crate passed and broke every non-test build after merge (#5452 -> #5457). source-hygiene now reads every workspace manifest under core/ and apps/, takes the dev-only crates, and fails on any production line naming one. Test code is read the way cargo gates it: #![cfg(test)] files, any cfg naming test (all(test, ...), any(test, test-fixtures)) at any indent, and whole modules declared behind such a gate. Proven by mutation: dropping core's normal academy dependency (undoing #5457) fails the guard on commands/mod.rs:45 `pub use continuum_academy::hf;` in 2.5 s; restored, source-hygiene 59/59 pass. Zero dependencies kept. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * dev_only_deps: a gate must imply test, and ::krate:: is the crate (Codex on #5460) `any(test, unix)` compiles in every Unix build, so only a predicate that IMPLIES test (test; all(.., test); any(..) whose every arm implies test; the fixtures feature) gates code out; not(..) never does. A leading `::krate::` is an absolute path to the crate, told from `a::krate::` and `<T as X>::krate`. The attribute's own end is parsed, so an item on the gate's line (`#[cfg(test)] dir: T,`) is read as gated. Regressions for each; source-hygiene 60/60; the #5457 mutation still fails on commands/mod.rs:45. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * dev_only_deps: name the guard's bound and the compiler follow-up (card 58b6026f; Codex on #5460) 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 26, 2026
…commands (card 2a69e6ba) (#5456) * continuum-dreaming: the genome domain leaves continuum-core with its 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 * continuum-dreaming builds with core's build script and its 144 tests 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 * Core calls five continuum-dreaming items across the new crate seam: they 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 * GenomeModule::lease_executor is pub: core's boot hands it to GridPeerAdapter::on_grid (CI on #5456) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * continuum-dreaming stays audited: it joins MODULE_CRATES and the warning 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 * ARTIFACT_CHUNK_FRAME_BUDGET lives in lease.rs's tests, the only reader (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 --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why (card 04d52076; the continuum-dreaming domain's last core tie, 2a69e6ba)
genome_sharecallscommands::hf::search_hub.core/commands/hf(search_hubplushf/search-modelsandhf/search-datasets, 359 lines) depends only on kernel items, and its own doc places it on the training/academy side.continuum-academyis the learning crate.Change
Pure move: three renames into
continuum-academy/src/hf, andpub mod hfthere.commands::hf. The path,genome_share's calls, and both commands' auto-registration are unchanged.continuum_kernel::action_command!. Its expansion emits only$crate::(kernel) paths andinventory::submit, which academy already depends on.export_topaths (../../../protocol/typescript/hf/…) resolve to the same files, at the same crate depth.CI is the compile; core's registry conformance tests cover the two commands still registering.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE