Skip to content

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

In review

Description

@dezren39

World-specific implementation follow-on from the #3397 design (doc/2026-11-01_design_id3397.md, PR #3853), Phase 2 of its phased plan.

Scope: partition-scoped world lookup (jurisdiction, name) with no cross-partition existence oracle; fail-closed admission guards for reads/writes/invites/WebSocket/background/admin operations against the world's stored jurisdiction; participant-list and membership-metadata authorization equal to world reads; shard/coordinator jurisdiction inheritance (creation rejects a different jurisdiction); the explicit guest-grant seam, disabled until Drew settles the guest-membership policy (open question 1 on #3397).

Not this issue: #3400 covers account/user-store routing and object entry guards — this issue is the world-specific routing/admission layer that #3400 does not fully represent (per the #3397 doc, Phase 2 note).

Authority boundary: #3397 is design-only and is not an implementation authorization. Implementation ordering follows the doc: this phase depends on Phase 0 (#3403 provisioning gate evidence via #2285) and Phase 1 (#3399 authoritative jurisdiction records), and on #3400's routing foundation.

Acceptance: negative tests from the #3397 doc's matrix pass for this slice — wrong-jurisdiction read/write/invite uniformly denied with no existence signal; foreign account with no/expired/revoked guest grant denied incl. participant metadata; same-name world in another partition indistinguishable from nonexistent; shard assignment naming a different jurisdiction rejected.

Acceptance criteria

Activity

  1. added
    app/id
    source/queue-worker
    priority/normal
    effort/l
    status/needs-triage
    meta/enriched
    on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: design code issue #3397 (PR #3853) Phase 2; depends on #3403/#2285 (Phase 0 provisioning gate evidence), #3399 (Phase 1 jurisdiction records), and #3400 (account routing foundation — adjacent, not a substitute).

    Notes: The issue body already carries this slice's acceptance in prose (the #3397 doc's negative-test matrix); the appended section restates it as the canonical checklist. The guest-grant seam ships disabled: the guest-membership policy is open question 1 on code issue #3397, which sits in Drew's lane — nothing in this slice should guess it.

    Risks: The no-existence-oracle requirement is subtle: uniform denial must be indistinguishable across read/write/invite/WebSocket/background/admin paths, including participant metadata — one leaky path defeats the partition boundary.

    Suggested approach: Build after Phase 0/1 land; implement admission as a single fail-closed guard consumed by every operation path, and write the wrong-jurisdiction tests against each path separately.

    — fleet monitor intake enrichment, 2026-11-01 run (protocol §5). Acceptance criteria appended to the body where missing; labels normalized.

  3. added
    queue/queued
    task/triage
    on Nov 3, 2026
  4. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  5. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  6. added
    work/assigned
    and removed
    status/needs-triage
    on Nov 3, 2026
  7. 124 remaining items

  8. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Lane 8 progress, all merged to main:

    Against the acceptance list:

    • Same-name world in another partition indistinguishable from nonexistent: met at the guard core and at the serve layer.
    • Shard jurisdiction mismatch rejected: met in the guard core; not yet called from shard or coordinator creation.
    • Guest-grant seam disabled: met.
    • Foreign account denied incl. participant metadata: guard core only; the live session path does not yet know the caller's home jurisdiction.

    Still open: supplying the caller's home jurisdiction from the #3399 directory to the session path, partition-keyed hub slots for a server serving more than one partition, and calling the shard check from coordinator creation.


    Generated by Claude Code

  9. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Xaltha lane (hourly work-loop, 2026-11-26) drew task 13810 via fleet agent next and revalidated fresh — the dependency picture in the task packet is stale, and the earlier parks are superseded:

    Landed: prerequisites #2285, #3403, #3399, #3400 are all CLOSED. Phase 2 slices 1–4 are MERGED to main today (2026-11-26, Lane 8): #15441 (partition guard core: wrong partition resolves like a missing name, guest-grant seam disabled, check_shard_partition), #15460 (durable journal fence), #15466 (open_world_in_partition / world_bound_to_partition), #15476 (id serve --world-partition single-partition serving: exists/list/admin-create all partition-scoped).

    Claim check: no open PR references #3898. Adjacent in-flight work: PR #15567 (oc-code-04, #15479) is changing the hosted-worker front-door binding-context surface — the same surface a caller-home-jurisdiction bridge would touch.

    Remaining acceptance items, and why none is a safe independent slice right now:

    1. Caller home jurisdiction → live session path: no TS-directory (id: add immutable jurisdiction and migration metadata to hosted directory #3399) → Rust session bridge exists in-tree, and the front-door context surface it would build on is under active change in id(hosted-worker): refuse client binding context at public edge (#15479) #15567. Do not infer jurisdiction from a client header, name, or filesystem path.
    2. Shard check called from coordinator creation: check_shard_partition has zero production callers and there is no shard/coordinator creation path in the Rust crates to call it from (the id-worlds Coordinator is the id: implement: journaled region-seam export/import #3870 region-handoff machine, not shard creation). Wiring it requires a new creation API, not a call-site fix.
    3. Partition-keyed hub slots for multi-partition serving: world storage is name-keyed (worlds/<name>, one immutable journal partition binding per name), so a single server cannot yet hold the same name in two partitions; this needs a partition-scoped storage-layout decision before hub keying means anything.

    No code changed this run; no owner decision is awaited (the guest-membership policy is already settled: seam ships disabled). Resume when #15567 lands (for item 1) or a storage-layout / shard-creation design is recorded (items 2–3), then scope the next slice against the remaining criteria above.

  10. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Queue Lane FI (Muse sandbox seat, hourly work-loop) drew task 13810 via fleet agent next and revalidated fresh — premise and ownership check passed (issue OPEN, no held/user/do-not labels, no open PR references #3898, no competing claim on this issue), but no safe independent slice exists this run. One fact changed since the Xaltha park at 16:45Z:

    Changed: PR #15567 (oc-code-04, #15479 front-door binding-context) is now CLOSED unmerged (closed 2026-11-26T21:46:38Z, merged=false, no merge commit). Its issue #15479 remains OPEN (updated 22:14Z). So the resume trigger named in the last park — "#15567 lands" — did not happen; the front-door caller-auth surface is still unsettled, not landed.

    Remaining acceptance items (unchanged, verified against the last two evidence comments 7186549521 and 7198060653):

    1. Caller home jurisdiction → live session path: no TS-directory (id: add immutable jurisdiction and migration metadata to hosted directory #3399) → Rust session bridge exists in-tree, and the front-door surface it would build on is still in flux via id(hosted): authenticate callers at the ID front door instead of trusting X-Binding-Id (from #9080) #15479. Jurisdiction must not be inferred from a client header, name, or filesystem path.
    2. Shard check from coordinator creation: check_shard_partition has no production creation path to call it from; wiring it requires a new creation API, not a call-site fix.
    3. Partition-keyed hub slots for multi-partition serving: world storage is name-keyed with one immutable journal partition binding per name; this needs a partition-scoped storage-layout design recorded first.

    Slices 1–4 remain merged (#15441, #15460, #15466, #15476); prerequisites #2285/#3403/#3399/#3400 all CLOSED; guest-grant seam ships disabled (policy settled, no Drew decision awaited). No code changed this run.

    Park condition (non-person): resume task 13810 when a PR for #15479 merges to main (front-door caller-auth surface landed), OR a partition-scoped storage-layout / shard-creation design is recorded on this issue — then scope the next slice against the remaining criteria above.

  11. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    Revalidation — queue task 13810 (2026-11-27, code-f): #3898 remains open and active. The four independent implementation slices are merged: #15441, #15460, #15466 and #15476. No open PR currently references #3898.

    The remaining caller-home-jurisdiction/session criterion overlaps #15479, still open; #15567 was closed as superseded after registry slice #15579 merged, and task 24165 is the parked follow-up for authenticated-caller wiring against the registry-authoritative front door. I will not infer jurisdiction from a client header, world name or filesystem path. The shard/coordinator criterion still has no production creation API to call the existing partition check from. Multi-partition same-name serving still needs a partition-scoped storage-layout decision because world storage is name-keyed.

    No production-safe independent slice is available without duplicating #15479’s caller-auth work or inventing a new API/storage contract. Task 13810 is parked for recheck after the authenticated-caller slice lands or a shard-creation/storage-layout design is recorded; then the next non-overlapping criterion will be scoped. No owner decision is awaited.

  12. removed
    queue/claimed
    priority/normal
    on Nov 28, 2026
  13. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · census 2026-11-29 (lane CEN-C03)

    Label fix: this issue carried two priority labels (priority/high and priority/normal). Removed priority/normal; priority/high stands (in-progress, security-sensitive admission slice). Acceptance is complete. One sub-piece is Drew-gated by design: the guest-grant seam stays disabled until Drew settles the guest-membership policy (open question 1 on #3397) — the rest of the slice is not gated.

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue (body, all 40 comments, labels, dependency edges).

    STRENGTHS: Strong body — scope, an explicit "not this issue" boundary (#3400), the authority boundary with the dependency ordering, and acceptance criteria drawn from the #3397 negative-test matrix. The comment trail documents the dependency chain honestly at every stage, including the long claimant-handoff loop and each revalidation.

    GAPS: (1) The issue carried TWO priority labels at once (priority/high and priority/normal) — a cold reader could not tell which band governs. (2) It also carried two status labels (status/in-progress and status/in-review) although no PR for this issue is currently open. (3) The body text names dependencies (#3403 via #2285, #3399, #3400) but no native blocked_by edges were ever recorded; that gap is now moot — all four prerequisites are CLOSED (verified in the 2026-11-25/26 revalidations on this issue). (4) The acceptance checklist's "Dependencies hold" criterion is in fact now satisfied, and Phase 2 slices 1-4 are MERGED to main (2026-11-26: #15441 partition guard core, #15460 durable journal fence, #15466 partition-bound open API, #15476) — the body's checkboxes do not reflect that progress.

    FIXES I APPLIED: Removed priority/normal (priority/high stands — this phase unblocks #3899 and is actively landing) and removed the stale status/in-review, leaving status/in-progress as the single status. No edges added: the named dependencies are all closed, so a blocked_by edge would misstate the graph.

    REMAINS: One acceptance thread is still open — the caller-home-jurisdiction/session criterion, which overlaps #15479 (still open); its wiring follow-up is queue task 24165 (parked, registry-authoritative front door). When that lands, this issue's criteria should be re-audited end-to-end and the issue closed with the slice list above as evidence. Nothing needs Drewry.

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: none material. (The enumeration snapshot showed two priority labels; the live set now carries only priority/high — already resolved before this pass.)
    Strengths: exact scope with an explicit "Not this issue" boundary (#3400), authority boundary stated (#3397 is design-only), implementation ordering and dependencies named in the body (Phase 0 #3403 via #2285, Phase 1 #3399, #3400 routing foundation), ## Acceptance criteria present, labels complete (kind/enhancement, priority/high, status/in-progress, work/assigned, effort/l, app/id).
    Actions: Verified complete — no changes needed.

  16. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · stale-claim takeover — lane 2007-G (charlie ADVANCE 2026-11-30 20:07 CST)

    Claim-scan firsthand this lane: body + all 43 comments re-read live. The claim history is a long handoff loop (queue task 13810 parked/revalidated by oc-code-08, felix, xaltha, lane FI and code-f between 2026-11-25 and 2026-11-27); last activity 2026-11-29T15:08:33Z is census-only (>24h, no live lane, no open PR referencing this issue). Lane 2007-G takes over ownership of the record.

    State confirmed: Phase 2 slices 1–4 merged 2026-11-26 (PR #15441 partition guard core, #15460 durable journal fence, #15466 partition-bound open API, #15476); all named prerequisites (#2285, #3403, #3399, #3400) CLOSED. One acceptance thread remains open — the caller-home-jurisdiction/session criterion, which overlaps #15479 (still open); its wiring follow-up is queue task 24165 (parked, registry-authoritative front door). The guest-grant seam stays disabled by design until Drew settles the guest-membership policy (open question 1 on #3397) — that sub-piece is Drew-gated and is not part of this takeover's work.

    Wake (machine-checkable): #15479 lands / task 24165 unparks and completes the authenticated-caller wiring — then this issue's criteria are re-audited end-to-end and it closes with the slice list above as evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/ideffort/lepic/id-programkind/enhancementmeta/enrichedpriority/highsource/queue-workerstatus/in-progresstask/triagetriage/real-and-currentwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions