Repository navigation
pkgs/id crate split step 5a: create id-worlds — leaves, groups::worlds bridge (seam 6), FoldedWorlds (#4408) - #8762
Conversation
…s bridge (seam 6), FoldedWorlds (#4408)
|
Warning Review limit reachedYou'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. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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: |
Step 5a of the pkgs/id crate split (#4408; design
doc/2026-11-01T16-53-00Z_design_id_crate_split/): create theid-worldscrate 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 historicalid::path):world_cache,world_line,world_terminal— the family leaves that name nothing above them. Threeworld_terminalitems the facade'sworld_ssh/commandsuse across the new crate boundary (probe_local_tty,ProbeOutcome, itsreplayfield) were widened frompub(crate)topub; the facade re-export stayspub(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 agroupsmodule that re-exports theid-eventsgroup model (the same re-exportsid_groups::groupscarries).blob_gate::FoldedWorlds→id_worlds::blob_gate(with its 4 folded tests) — step 4 parked this adapter in the facade to move together withworlds.rs. It cannot live inid-groups: that crate is belowid-worldsand must not name world types; it is blob-gate logic over world state, so it lands here as the consumer.id-worldsdeps 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 workspacecargo test --no-fail-fastwithtests/probe_attestation_sign.rsset aside, exactly as step 4 enumerated around the pre-existing probe compile breakage from f998d27, plus the feature-gateddht_testnet):850f2fce31): 73 suites, 3,719 passed / 1 failed / 33 ignored. The 1 failure is the knownframes::tests::byte_refusal_…(pkgs/id: frames byte_refusal test fails deterministically on main (RequestTooLarge vs BudgetExhausted) #8620).id-worldslib suite 47 passed / 0 ignored; every other suite identical.print_fuel_baselineoutput byte-identical, 72 lines, sha25659cfad49c7553c8309a8b40b23405321399bb76bb741acaeb90f78570f45c32cbefore and after; (2) theFUEL_BUDGETStable literal is untouched (sandbox.rs does not move in this PR; file sha256 stilldb88ec8d…); (3) the checked-in fuel tests pass (in the facade lib suite, 0 failures there).cargo check --no-default-featuresfails with the identical 28 error locations on main and this branch;--no-default-features --features worldfails identically (2 errors, bothsrc/boards.rs) on both — pre-existing shapes, unchanged.FoldedWorlds/Worlds/Isolation/world-cache implementation remains in facadesrc/(only re-export shims);src/groups/now holds only the shimmod.rs.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.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.