Skip to content

A new crate is tested and audited by construction: source-hygiene reads the four crate lists (card 85138cb9) - #5463

Merged
joelteply merged 2 commits into
canaryfrom
85138cb9/crate-wiring
Oct 26, 2026
Merged

joelteply merged 2 commits into
canaryfrom
85138cb9/crate-wiring

Conversation

@joelteply

@joelteply joelteply commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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:

  1. TESTED_CRATES (tools/scripts/ci-change-scope.cjs): otherwise CI never runs its tests.
  2. A job in continuum-rust-tests.yml, either its own matrix.crate == '…' steps or the generic allowlist.
  3. source_hygiene::MODULE_CRATES / SPLIT_CRATES: otherwise every per-file ratchet stops seeing its files.
  4. 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_guard entries vanished because their files left the scan, not because the code changed.

What

source_hygiene::crate_wiring reads the root manifest's core/ 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/ and tools/scripts/ finds no selection of them):

    Crate Tests
    continuum-text-analysis 104
    continuum-positron 89
    continuum-tool-protocol 60
    continuum-airc-protocol 25
    expert-pager-policy 25
    continuum-context (the mind's context codec) 24
    inference-grpc 14
    tool-working-set 12
    serving-replay 8
    llama 7
    livekit-protocol 4
    continuum-orm-derive 2
    airc-test-fixtures 2
  • 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.
  • Mutation: dropping continuum-dreaming from TESTED_CRATES fails with continuum-dreaming has tests but is not in TESTED_CRATES (tools/scripts/ci-change-scope.cjs): CI never runs them.
  • A parser fixture pins each list's shape. A list that reads empty fails loudly rather than passing.
  • With this merged, Sentinel moves out of continuum-core into its own crate (pure move, plan phase 2) #5450 as it stands fails here on all four sentinel entries.

Added 1 file (~200 lines including 2 tests). AUDITED_CRATE and SPLIT_CRATES become pub(crate).

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

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

Copy link
Copy Markdown
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.

@joelteply
joelteply merged commit 0eeceda into canary Oct 26, 2026
24 checks passed
@joelteply
joelteply deleted the 85138cb9/crate-wiring branch October 26, 2026 10:28
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