Skip to content

feat(id): partition-scoped world routing guard core (#3898 slice 1) - #15441

Merged
dezren39 merged 2 commits into
mainfrom
claude/project-thread-mnx9mn
Nov 26, 2026
Merged

dezren39 merged 2 commits into
mainfrom
claude/project-thread-mnx9mn

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Refs #3898

Before: the partition-scoped world routing guard core sat in #14560, which had conflicted with main for a day and a half, so the #3397 Phase 2 chain (#3898, then #9935 and #3899) could not move.

After: the same guard core lands on current main. A wrong-partition lookup resolves exactly like a missing name, a foreign account is refused while the guest-grant seam stays disabled, and a shard naming another jurisdiction than its world is rejected.

How: the two commits from #14560 cherry-picked onto main, with the one conflict in pkgs/id/src/lib.rs resolved by adding only the new module line (main already re-exports idset and input_framing). Original work by lane code-j in #14560; this supersedes it.


Generated by Claude Code


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

Pure decision core for partition-scoped world lookup (jurisdiction,
name) with no cross-partition existence oracle: wrong-partition and
absent names both resolve to NotFound; the guest-grant seam ships
disabled (fail-closed); shard creation naming a different
jurisdiction than the world is rejected.

7 tests (6 example + 1 proptest invariant); storage, account lookup
and live admission wiring are follow-on slices.
@coderabbitai

coderabbitai Bot commented Nov 26, 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 37 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: 61db08c0-5c8a-404c-afda-b7bf80a8d2ea
Commits

Reviewing files that changed from the base of the PR and between 08e8cb5 and 4e49289.

Files selected for processing: 3

  • pkgs/id/proptest-regressions/hosted_world_partition.txt
  • pkgs/id/src/hosted_world_partition.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

@dezren39
dezren39 marked this pull request as ready for review November 26, 2026 07:56
@dezren39
dezren39 merged commit d0815d8 into main Nov 26, 2026
2 checks passed
@dezren39
dezren39 deleted the claude/project-thread-mnx9mn branch November 26, 2026 07:56
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