Repository navigation
A new crate is tested and audited by construction: source-hygiene reads the four crate lists (card 85138cb9) - #5463
Merged
Merged
Conversation
…ds 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
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
Contributor
Author
|
PASS for exact head d204a4b within this guard's stated scope. The warning audit now covers both MODULE_CRATES and SPLIT_CRATES, resolving my finding. Existing continuum-base/kernel warning gaps and unselected crates remain explicitly tracked exemptions, not completed coverage. Independently verified all selected exact-head checks passed; no remaining blocker from this review. The guard recognizes current core workspace/src-test and list formats; compiler execution and the tracked coverage backlog remain necessary. |
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.
Serves plan phase 2 (crates by the placement map): every cut is tested and audited by construction, so splitting the monolith can't quietly drop coverage.
Why
A crate cut from continuum-core has to be named in four lists, or part of it goes unwatched while CI stays green:
TESTED_CRATES(tools/scripts/ci-change-scope.cjs): otherwise CI never runs its tests.continuum-rust-tests.yml, either its ownmatrix.crate == '…'steps or the generic allowlist.source_hygiene::MODULE_CRATES/SPLIT_CRATES: otherwise every per-file ratchet stops seeing its files.scripts/ratchets/check-rust-warnings.sh: otherwise its warnings go uncounted.Review caught missing entries twice on 10-26. #5456 (dreaming) needed all four. #5450 (sentinel) has 122 tests in no CI job, and its two removed
loose_id_guardentries vanished because their files left the scan, not because the code changed.What
source_hygiene::crate_wiringreads the root manifest'score/members, the four lists and each crate's tests, and names every gap. Existing gaps are exemptions with stated reasons. An exemption whose gap has closed also fails, so the lists only shrink. It runs inside the existing source-hygiene job, which runs on every PR. No new CI job.What it found on canary 4dd84d1 (card 996e3537, mine)
~380 tests in 13 crates that no workflow runs (grep of
.github/andtools/scripts/finds no selection of them):continuum-kernel: about 13 warnings are not counted by the warning ratchet.
continuum-host: in no per-file ratchet.
The card adds each crate to CI, verified green first, since they have never run there. Each fix deletes its exemption.
Measured (IntelMac, base 4dd84d1)
cargo test -p source-hygiene --lib: 62 passed.continuum-dreamingfromTESTED_CRATESfails withcontinuum-dreaming has tests but is not in TESTED_CRATES (tools/scripts/ci-change-scope.cjs): CI never runs them.Added 1 file (~200 lines including 2 tests).
AUDITED_CRATEandSPLIT_CRATESbecomepub(crate).🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE