Skip to content

pkgs/id crate split step 5a: create id-worlds — leaves, groups::worlds bridge (seam 6), FoldedWorlds (#4408) - #8762

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

dezren39 merged 1 commit into
mainfrom
crate-split-step5a-id-worlds-leaves

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Step 5a of the pkgs/id crate split (#4408; design doc/2026-11-01T16-53-00Z_design_id_crate_split/): create the id-worlds crate and move the first, leaf-most slice of the world family. The world core, sessions, sandbox and the rest of the family follow in later step-5 PRs, each merged before the next starts.

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

  • world_cache, world_line, world_terminal — the family leaves that name nothing above them. Three world_terminal items the facade's world_ssh/commands use across the new crate boundary (probe_local_tty, ProbeOutcome, its replay field) were widened from pub(crate) to pub; the facade re-export stays pub(crate).
  • groups/worlds.rs → id_worlds::groups::worlds — seam 6: the groups→worlds bridge is the consumer side of the relationship, so it lives in the worlds crate, over a groups module that re-exports the id-events group model (the same re-exports id_groups::groups carries).
  • blob_gate::FoldedWorlds → id_worlds::blob_gate (with its 4 folded tests) — step 4 parked this adapter in the facade to move together with worlds.rs. It cannot live in id-groups: that crate is below id-worlds and must not name world types; it is blob-gate logic over world state, so it lands here as the consumer.

id-worlds deps this PR: id-events, id-groups (per the design map; the full map — id-core/id-caps/id-store/id-sync — arrives with the core move), plus the extern crates the moved files already used. No behaviour changes; no fuel-relevant code moved.

Verification (laptop, fresh CARGO_TARGET_DIRs — the cargo-target-broker is broken fleet-wide; counting run = full workspace cargo test --no-fail-fast with tests/probe_attestation_sign.rs set aside, exactly as step 4 enumerated around the pre-existing probe compile breakage from f998d27, plus the feature-gated dht_testnet):

  • Baseline on unmodified main (850f2fce31): 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: 75 suites, 3,719 passed / 1 failed (same test) / 33 ignored — an exact redistribution: facade lib 1,965 → 1,918 passed, new id-worlds lib suite 47 passed / 0 ignored; every other suite identical.
  • Fuel canary (adapted for this step — the numbers are the invariant, not the file): (1) print_fuel_baseline output byte-identical, 72 lines, sha256 59cfad49c7553c8309a8b40b23405321399bb76bb741acaeb90f78570f45c32c before and after; (2) the FUEL_BUDGETS table literal is untouched (sandbox.rs does not move in this PR; file sha256 still db88ec8d…); (3) the checked-in fuel tests pass (in the facade lib suite, 0 failures there).
  • Feature shapes: cargo check --no-default-features fails with the identical 28 error locations on main and this branch; --no-default-features --features world fails identically (2 errors, both src/boards.rs) on both — pre-existing shapes, unchanged.
  • Completeness grep: no FoldedWorlds/Worlds/Isolation/world-cache implementation remains in facade src/ (only re-export shims); src/groups/ now holds only the shim mod.rs.
  • Nix: nix build ./pkgs/id#id-lib — see the PR comment thread for the result (build phase / check phase parity with main, whose check phase fails on the same probe compile error).

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


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

@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 19:16
@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 58 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: 18dc9eec-3822-4fc2-81ca-cdef073e798f
Commits

Reviewing files that changed from the base of the PR and between 50d73cc and 229bdcc.

Files ignored due to path filters: 1

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

  • pkgs/id/Cargo.toml
  • pkgs/id/crates/id-groups/src/groups/mod.rs
  • pkgs/id/crates/id-worlds/Cargo.toml
  • pkgs/id/crates/id-worlds/src/blob_gate.rs
  • pkgs/id/crates/id-worlds/src/groups/mod.rs
  • pkgs/id/crates/id-worlds/src/groups/worlds.rs
  • pkgs/id/crates/id-worlds/src/lib.rs
  • pkgs/id/crates/id-worlds/src/world_cache.rs
  • pkgs/id/crates/id-worlds/src/world_line.rs
  • pkgs/id/crates/id-worlds/src/world_terminal.rs
  • pkgs/id/src/blob_gate.rs
  • pkgs/id/src/groups/mod.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-11T19:20:10.405109Z 229bdcc 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

Verification complete (full numbers in the PR body): tests at exact parity with unmodified main (3,719 passed / 1 known frames failure / 33 ignored, redistribution facade 1,965→1,918 + id-worlds 47), fuel canary byte-identical (72 lines, sha256 59cfad49…32c; FUEL_BUDGETS untouched), feature shapes identical to main, completeness grep clean.

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) — the same failure shape as main, i.e. parity. Merging with a merge commit per the step protocol.

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