Repository navigation
pkgs/id crate split step 6a: WorldScopes -> id-caps, hex_encode -> id-core (#4409) - #9153
Conversation
…-core (#4409) Prep for step 6 (id-directory): the directory modules name exactly two things from the worlds crate, WorldScopes (the ceiling surface) and world::hex_encode. Design seam 10 says id-directory must not depend on id-worlds, so both move down first, following the step 1-2 precedent of shared vocabulary moving into the caps/kernel crates. - WorldScopes moves to a new id_caps::world_scopes module. Its only outward reference, world_caps::PROVIDER_REGISTRY in allows_effect, resolves inside id-caps unchanged. id-worlds re-exports it at world::WorldScopes, so every existing path compiles as before. all_recognized becomes pub (it was pub(crate)); a named EMPTY constant replaces direct tuple construction at the two core.rs sites that used it, and test code that built sets from raw fields now uses bits()/union()/from_bits(). - hex_encode moves to a new id_core::hex module; world::util re-exports it, keeping crate::world::hex_encode valid for directory, directory_auth and directory_mail. Behaviour-preserving throughout. Verification on the laptop at 6741fc5 baseline: id-caps 87 passed (baseline 87), id-core 386 passed + the pre-existing #8354 frames failure (identical at baseline), id-worlds 721 passed (baseline 721), facade 1704 passed / 0 failed / 19 ignored (identical to baseline). FUEL_BUDGETS in crates/id-worlds/src/sandbox.rs is byte-identical to the baseline snapshot (diff empty); sandbox.rs is untouched by this change.
|
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 31 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. |
|
Nix gate note: |
Step 6 prep for #4409 (umbrella #3447). The directory modules name exactly two things from the worlds crate —
WorldScopes(the ceiling surface) andworld::hex_encode. Design seam 10: id-directory must not depend on id-worlds, so both move down first, per the step 1–2 precedent.WorldScopes→ newid_caps::world_scopesmodule;id-worldsre-exports it atworld::WorldScopes.allows_effects registry reference resolves inside id-caps unchanged.all_recognizedbecomespub; newWorldScopes::EMPTYconst replaces two direct tuple constructions inworld/core.rs; test sites that built sets from raw fields now usebits()/union()/from_bits().hex_encode→ newid_core::hexmodule;world::utilre-exports it, keepingcrate::world::hex_encodevalid for directory/directory_auth/directory_mail.Behaviour-preserving; no call site outside the moved definitions changed meaning.
Verification (laptop, baseline at
6741fc50a4)cargo test -p id: 1704 passed / 0 failed / 19 ignored — identical to baseline.FUEL_BUDGETSdiff against the baseline snapshot is empty (sandbox.rs untouched).-p id --features web,sshdoes not compile: 9 web-seam visibility sites left by step 5). That is step 6c charter and is fixed there, not here; this PR does not touch it.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.