Repository navigation
Hotfix: core's non-test build resolves continuum_academy (card a581f5d1) - #5457
Conversation
#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. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Evidence at 1735933: in run job |
|
Source + selected CI PASS at 1735933. The normal continuum-academy dependency supplies the existing hf re-export to non-test builds. Independently verified all selected checks green and, specifically, the completed successful cargo-check-binaries step in job121443672062/run40284087889. This closes the demonstrated dev-dependency/non-test compile failure. Cleared for urgent owner integration; native lifecycle jobs were skipped, and this is not a deployment claim. Ongoing selection coverage for future re-export changes remains a follow-up. |
…dex 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
…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]>
Why (card a581f5d1; hotfix, canary broken since #5452)
#5452 (
c500e421f) madecore/continuum-core/src/commands/mod.rsdopub use continuum_academy::hf;. Butcontinuum-academywas only in core's[dev-dependencies]. So core's lib tests compiled, while every non-test build ofcontinuum-corefails with E0432: the server, the CLI and the hourly core-binaries publication, which the fleet deploys from. Codex found it via #5456's CLI job.Change
continuum-academyis now a normal dependency of core. It was already transitive throughcontinuum-mind, so nothing new is pulled, andcargo metadata --lockedconfirmsCargo.lockis unchanged.Proof
A change to core's
Cargo.tomlmakes PR CIcargo check --binevery binary core declares (#5431). Those are non-test builds of the core library, which is exactly the build that broke.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE