Skip to content

pkgs/id crate split step 5c: extract id-worlds remainder — world_dev, world_doctor, world_ssh, world_replication_net (#4408) - #8772

Merged
dezren39 merged 1 commit into
mainfrom
crate-split-step5c-id-worlds-remainder
Nov 11, 2026
Merged

dezren39 merged 1 commit into
mainfrom
crate-split-step5c-id-worlds-remainder

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Step 5c of the pkgs/id crate split (#4408; 5a = #8762, 5b = #8768): move the last four world-family modules into id-worlds. After this PR the facade src/ contains no world-family files at all — the id-worlds extraction is structurally complete.

What moved (implementation exists only in pkgs/id/crates/id-worlds; the facade re-exports every historical id:: path):

  • world_dev (under id-worlds/sandbox, as the facade gated it), world_doctor, world_replication_net, and world_ssh (under the new id-worlds/ssh feature). Nothing that moved earlier names these; they name the moved core, which is why they come last.
  • The russh dependency moves inside id-worlds with world_ssh (design feature mapping: ssh = russh inside id-worlds); the facade ssh feature now forwards to id-worlds/ssh and the facade's own russh dependency is gone from its library graph. The facade keeps russh as a dev-only dependency: tests/cli_integration.rs drives an SSH client against the world SSH server (two PrivateKey::from_openssh call sites).
  • The facade's vt100 dev-dependency moves to id-worlds (dev) with world_ssh's tests, its only user.
  • Asset include_* paths in the moved files gained the two directory levels the files descended, as in 5b.

Verification (laptop, fresh CARGO_TARGET_DIRs; counting run = full workspace cargo test --no-fail-fast with tests/probe_attestation_sign.rs set aside, as in 5a/5b, plus the feature-gated dht_testnet):

  • Baselines: unmodified main at 850f2fce31 (step start): 73 suites, 3,719 passed / 1 failed / 33 ignored (the 1 failure is the known frames::tests::byte_refusal_…, pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620). After 5b: 75 suites, 3,719 / 1 / 33, exact redistribution.
  • After 5c: 75 suites, 3,735 passed / 1 failed (same test) / 33 ignored. Every delta vs the 5b run is named, and none is a move artefact: this branch's base main is newer (eeee505783) and main itself gained tests between the two runs — id-core +9 (fix(id): fuzz numeric invariants compare through f64 — integers above 2^53 lose precision and violated invariants can pass (PR #8635 review finding) #8752's exact-numeric property tests, the 9 #[test]s its diff adds), id-events +2 and the id-store store_traits target +1 (main-side additions in the same window, 3 added #[test]s across those trees). The move itself: facade lib 1,166 → 1,123 passed (−43: the dev/doctor/replication-net tests that ran there), id-worlds lib 796 → 843 (+47: the same tests as they exist on current main — main's world_dev.rs grew ~490 lines with 4 more tests in the window, which accounts for +47 vs −43 exactly). world_ssh's tests are ssh-gated and, as on main, compile under --features ssh (verified: cargo check --all-targets --features ssh is clean apart from the known probe failure) rather than running in the default-features counting run — same treatment as the baseline.
  • Fuel canary: (1) print_fuel_baseline output byte-identical — 72 lines, sha256 59cfad49c7553c8309a8b40b23405321399bb76bb741acaeb90f78570f45c32c; (2) the FUEL_BUDGETS table literal in crates/id-worlds/src/sandbox.rs diffed against unmodified main's — byte-identical (sandbox.rs is untouched by this PR); (3) the checked-in fuel tests pass (in the id-worlds suite).
  • Feature shapes: --no-default-features --features world (the id-lib shape) fails identically to main (2 errors, src/boards.rs:1998,2000); --no-default-features passes, as it has since 5b (named delta there; no shipped derivation uses that shape).
  • Completeness grep: ls pkgs/id/src | grep world is empty and no pub mod world* / sandbox / shell-contract / directory implementation remains in facade src/ — only re-export shims.
  • Nix: nix build ./pkgs/id#id-lib — result posted as a PR comment (expected parity: build phase passes, check phase fails only on the pre-existing probe compile error).
  • Bench canary: not run, consistent with steps 1–4.

🤖 Agent note — crate-split step 5c, issue #4408.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… world_doctor, world_ssh, world_replication_net (#4408)
@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 20:45
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e55b8f04-9ed8-4912-8d30-1d69b94adc4a
Commits

Reviewing files that changed from the base of the PR and between 066a0df and ceca8e0.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 8

  • pkgs/id/Cargo.toml
  • pkgs/id/crates/id-worlds/Cargo.toml
  • pkgs/id/crates/id-worlds/src/lib.rs
  • pkgs/id/crates/id-worlds/src/world_dev.rs
  • pkgs/id/crates/id-worlds/src/world_doctor.rs
  • pkgs/id/crates/id-worlds/src/world_replication_net.rs
  • pkgs/id/crates/id-worlds/src/world_ssh.rs
  • pkgs/id/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T20:49:56.512685Z ceca8e0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

Copy link
Copy Markdown
Member Author

Nix: nix build ./pkgs/id#id-lib on this branch — build phase passed; check phase failed only on the pre-existing tests/probe_attestation_sign.rs E0061 ×2 (from f998d27, present on unmodified main) — parity with main, as with steps 5a/5b. Full verification in the PR body. Merging with a merge commit per the step protocol.

@dezren39
dezren39 merged commit b9f7de9 into main Nov 11, 2026
1 check passed
@dezren39
dezren39 deleted the crate-split-step5c-id-worlds-remainder branch November 11, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant