Repository navigation
pkgs/id crate split step 1: extract id-caps (#4403) - #8611
Merged
Merged
Conversation
Move world_caps and world_limits out of id-core and world_manifest out of the facade package into the new crates/id-caps workspace member. id-caps depends on id-core for json_unique only (one-way, no cycle: no id-core module referenced the caps modules). The facade re-exports id_caps::world_caps, id_caps::world_limits and id_caps::world_manifest at the historical id:: paths, so main.rs, tests/ and benches/ are untouched. The test-provider feature moves to id-caps with world_caps; the facade dev-dependency enables it there for the provider registry exit proof. SandboxLimits forwarding: facade sandbox feature now also enables id-caps/sandbox.
|
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 26 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. |
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 1 of the pkgs/id crate split (#3447 umbrella): extract
id-caps.What moved
crates/id-core/src/world_caps.rs->crates/id-caps/src/world_caps.rs(git rename, 99%)crates/id-core/src/world_limits.rs->crates/id-caps/src/world_limits.rs(git rename, 100%)src/world_manifest.rs->crates/id-caps/src/world_manifest.rs(git rename, 100%)crates/id-caps/{Cargo.toml,src/lib.rs}; packageid-caps, edition/rust-version matching id-core. Deps: anyhow, serde, serde_json, toml, and id-core (all already in the lock; Cargo.lock only gains the id-caps package entry).Seams
world_caps/world_limits(checkedworld_presentationand the whole crate). The only cross reference isworld_caps->crate::json_unique, which becomesid_core::json_unique(id-caps depends on id-core, one way, per design seams 1-2).world_manifest'scrate::world_caps/crate::world_limitsreferences now resolve inside id-caps unchanged.src/lib.rs:pub use id_caps::world_caps;,pub use id_caps::world_limits;,pub use id_caps::world_manifest;at the historicalid::paths -main.rs,tests/,benches/untouched.test-providerfeature moves to id-caps withworld_caps; the facade dev-dependency enablesid-caps/test-providerfor the provider-registry exit proof (which passes).sandboxfeature now also forwardsid-caps/sandbox;id-capsadded to workspace members and default-members.Verification (laptop, cargo target broker, base 415b511)
cargo test --no-fail-faston this branch: 61 suites, 3604 passed, 1 failed, 33 ignored. The single failure isframes::tests::byte_refusal_does_not_spend_a_frame_token_or_increment_counters(src/frames.rs:404, RequestTooLarge vs BudgetExhausted), which fails identically on unmodified main at the same base commit (baseline lib suite: 2676 passed / 1 failed / 6 ignored) - pre-existing on main, in a module this change does not touch.pkgs/id/src/sandbox.rsuntouched - sha256 db88ec8d52e961702353c97a407b77badadef1bd7e0a610a6075267e175d80b5 before and after. The checked-in fuel budget tests in the lib suite pass.grep -rn "pub mod world_caps|pub mod world_limits|pub mod world_manifest" pkgs/id/crates/id-core/src pkgs/id/srcreturns nothing; the implementation exists only in id-caps.Closes the step-1 work tracked in #4403 (comment + close happen there after merge).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.