GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(id): partition-scoped world routing guard core (#3898 slice 1) by dezren39 · Pull Request #14560 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

Pure decision core for #3898 (partition-scoped world routing, names, admission), Phase 2 slice 1. New module pkgs/id/src/hosted_world_partition.rs (+1 pub mod line in lib.rs):

  • WorldPartitionKey — validated (jurisdiction, name) lookup key (jurisdiction rule mirrors hosted_migration, name rule mirrors id-worlds::validate_world_name).
  • resolve_world — wrong-partition and absent names both yield NotFound, so a same-name world in another partition is indistinguishable from nonexistent.
  • GuestPolicy::Disabled + check_guest — the explicit guest-grant seam, shipped disabled (fail-closed) per the id: design: jurisdiction-partitioned hosted worlds and world blobs #3397 open-question-1 decision; absent/expired/revoked/valid grants all refused.
  • check_shard_partition — shard creation naming a different jurisdiction than the world is rejected with PartitionMismatch.

Deliberately no storage, account lookup, or live admission wiring: persisting the world's jurisdiction (host.rs schema) and the TypeScript-to-Rust home-jurisdiction seam are the follow-on slices. Does not close #3898 on its own.

Evidence

  • cargo test -p id --lib hosted_world_partition (laptop, via ~/tools/fleet-build-lock, at 87a2a5d): 7 passed, 0 failed (6 example tests + 1 proptest invariant wrong_partition_equals_absent).
  • Failing-first: with the partition check temporarily removed (permissive body), exactly the two no-existence-signal tests go red (same_name_other_partition_is_indistinguishable_from_nonexistent, wrong_partition_equals_absent) — the tests fail for the reason the slice fixes, then pass with the guard in place.
  • .github/scripts/check-suite-registry.sh prints nothing for the new file (inline unit tests under the existing crate suite; no new suite to register).
  • Proptest regression seed committed (pkgs/id/proptest-regressions/hosted_world_partition.txt).

Refs #3898. Closes none of its criteria alone; next slice wires resolve_world into the world lookup path once the world's stored jurisdiction lands.

Merge Danger

Low. Additive only: one new file + one pub mod line. No existing code path is touched, so a revert (delete file + mod line) cannot break what was there before.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T19:20:15Z",
    "session_id": "ses_e5df1244452ffeti0q4xBf6tRq",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/.local/share/opencode/tmp/opencode/code-j-3898-partition",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/.local/share/opencode/tmp/opencode/code-j-3898-partition",
      "repo": "developing-today/code",
      "branch": "lane-code-j/3898-partition-guard-core",
      "sha": "87a2a5d3fcde3c0ad5034a1b41108ff7b485cfbe"
    },
    "auth_subject": "oc-code-05",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dezren39 added 2 commits November 24, 2026 13:17
@dezren39
feat(id): add partition-scoped world routing guard core (#3898 slice 1)
7866aff
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.
@dezren39
test(id): persist proptest regression seed for partition guard (#3898)
87a2a5d
@coderabbitai

coderabbitai Bot commented Nov 24, 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 44 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: 1d3a81f9-de28-47ca-a179-4a659ea278f9
Commits

Reviewing files that changed from the base of the PR and between 0795b64 and 87a2a5d.

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 24, 2026
id: partition-scoped world routing, names, and admission (from #3397 Phase 2) #3898
Open
feat(id): persist and enforce durable world partition binding (#3898 slice) #14658
Closed
This was referenced Nov 25, 2026
audit: open-issue graph hygiene — blockers, children, labels, splits #14863
Open
id: implement Jurisdiction-partitioned hosted worlds and world blobs (design #3397) #5528
Open
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
feat(id): partition-scoped world routing guard core (#3898 slice 1) #15441
Merged
@dezren39 Claude

dezren39 commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Landed on main as #15441 (same two commits, rebased past the lib.rs conflict). Closing as superseded.


Generated by Claude Code

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 closed this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

id: partition-scoped world routing, names, and admission (from #3397 Phase 2)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.