Skip to content

Hotfix: core's non-test build resolves continuum_academy (card a581f5d1) - #5457

Merged
joelteply merged 1 commit into
canaryfrom
a581f5d1/core-depends-on-academy
Oct 26, 2026
Merged

joelteply merged 1 commit into
canaryfrom
a581f5d1/core-depends-on-academy

Conversation

@joelteply

@joelteply joelteply commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Why (card a581f5d1; hotfix, canary broken since #5452)

#5452 (c500e421f) made core/continuum-core/src/commands/mod.rs do pub use continuum_academy::hf;. But continuum-academy was only in core's [dev-dependencies]. So core's lib tests compiled, while every non-test build of continuum-core fails 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-academy is now a normal dependency of core. It was already transitive through continuum-mind, so nothing new is pulled, and cargo metadata --locked confirms Cargo.lock is unchanged.

Proof

A change to core's Cargo.toml makes PR CI cargo check --bin every 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

#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
@joelteply

Copy link
Copy Markdown
Contributor Author

Evidence at 1735933: in run job 121443672062, the step cargo check the binaries this change touches succeeded (BINS: continuum-core-server dequantize-gguf vrm-convert-textures vrm-inspect cargo-continuum-vdd forge-custodian, Finished in 4m 51s). Those are non-test builds of the core library resolving continuum_academy::hf, which is exactly what broke. All 8 selected checks pass.

@joelteply

Copy link
Copy Markdown
Contributor Author

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.

@joelteply
joelteply merged commit 36200cb into canary Oct 26, 2026
12 checks passed
@joelteply
joelteply deleted the a581f5d1/core-depends-on-academy branch October 26, 2026 07:28
joelteply added a commit that referenced this pull request Oct 26, 2026
…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
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]>
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