Skip to content

id: implement Jurisdiction-aware per-user hosted stores (design #2283) #5523

Open

Description

@dezren39

Implementation of an ID design that has not landed yet (zero implementation as of the 2026-11-04 inventory).

Design issue: #2283
Design doc: doc/2026-11-01_design_id2283.md (in developing-today/code)

Acceptance, in brief: per-user hosted stores selected and scoped by jurisdiction per the design.
Current state: no jurisdiction logic anywhere in pkgs/id.

The design documents govern. If implementation shows the design is wrong or incomplete, file a design amendment rather than silently diverging.

Scope: pkgs/id and its tests. Filed 2026-11-04 under Drew's order to begin work on all not-implemented ID designs. Inventory: workspace/goals/keep-the-four-repos-healthy/files/id-design-implementation-inventory-2026-11-04.md (in the fleet workspace).

Acceptance criteria

Activity

  1. developing-today commented on Nov 4, 2026

    @developing-today
    Contributor
  2. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 4, 2026
  3. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Picked up by repo queue worker lane code-u for task 9590: implementing issue #5523 (jurisdiction-aware per-user hosted stores, design #2283) in pkgs/id. Revalidating against the design doc, then branch + PR per queue protocol.

  4. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Scoping findings for task 9590 (lane code-u) — blocking as packet_defect:

    The packet's premise is stale: it states "no jurisdiction logic anywhere in pkgs/id", but the hosted data-plane scaffold for #5199 merged in PR #5286 already implements a large part of design #2283 in pkgs/id/hosted-worker:

    • src/routing.ts: single routing module owning the raw USERS namespace; ID + stub derived only from ns.jurisdiction(jurisdiction) restricted namespace; fail-closed parseJurisdiction/parseBindingId (missing/invalid = error, no default-to-us, no unrestricted fallback); tests in test/routing.test.ts.
    • src/user-do.ts: per-user DO binds (binding_id, jurisdiction) immutably on first routed request; guard checks routed context, runtime state.id.jurisdiction mismatch, and persisted identity before any read/write.
    • src/worker.ts: front door strips client-supplied internal headers and routes only via the restricted namespace.

    What remains of the design is its own phased program, already tracked by open follow-ons — not one 45-minute small_fix:

    Two further packet defects: (1) its test scope names only cargo test for pkgs/id, but the jurisdiction surface is TypeScript in hosted-worker (the design itself says local Rust tests cannot establish these facts); (2) it prescribes the design doc's userObjectId(sub, jurisdiction) contract, while the merged #5199 implementation deliberately uses binding_id per the #2258/#3811 reconciliation and explicitly rejects google:<sub> derivation — that conflict must be resolved on #3400/#3399, not silently by a worker.

    Action: task 9590 blocked, reason class packet_defect. Issue #5523 stays open as the umbrella; the phase follow-ons above are the actionable units.

  5. added
    queue/blocked
    status/blocked
    and removed
    status/in-progress
    queue/claimed
    on Nov 4, 2026
  6. added
    epic/id-program
    queue/queued
    and removed
    queue/blocked
    status/blocked
    on Nov 12, 2026
  7. 20 remaining items

  8. removed
    work/assigned
    on Nov 17, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  10. removed their assignment
    on Nov 20, 2026
  11. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · verdict: already triaged, no new packet (second pass, lane code-j, task 21822)

    • Fresh state (2026-11-24): issue id: implement Jurisdiction-aware per-user hosted stores (design #2283) #5523 OPEN, label epic/id-program, last updated 2026-11-20. Its prior verdicts (tasks 15192, 18313, 19844) recorded the umbrella as already triaged and its follow-on packet as already_done.
    • Verdict: no new follow-on packet. Creating one would repeat the already-rejected umbrella shape.
    • Kept open: the issue stays open as the epic umbrella for the id program.
  12. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — oc-code-07 second-pass (queue task 22844, pass 3, 2026-11-24). Fresh state: #5523 OPEN, umbrella (epic/id-program). Prior triage verdicts (tasks 15192, 18313, 19844, 21822) stand: an umbrella with partial implementation, not a single small_fix. Verdict: already triaged, no new follow-on packet routed (would duplicate the scoped children). Tracking: #14158

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

    @developing-today-fleet
    Contributor

    🤖 Agent note · verify-and-route verdict (queue task 24871, lane code-h, 2026-11-27)

    Fresh state verified this pass:

    • id: implement Jurisdiction-aware per-user hosted stores (design #2283) #5523 is OPEN, umbrella (epic/id-program), updated 2026-11-24. No hold labels.
    • Prior verdicts of record stand: tasks 15192 (full triage 2026-11-14), 16716 (duplicate same day), 18313 (already_done 2026-11-17), 19844 (follow-on already_done 2026-11-17), 21822 (second pass 2026-11-24), 22844 (pass 3, 2026-11-24).

    Verdict: already triaged — no new packet. #5523 is an umbrella whose premise ("no jurisdiction logic anywhere in pkgs/id") is stale (data plane landed via #5199); remaining work is the phased program (#3399–#3404, #9935), each carrying its own issue/queue state. Re-enqueuing it as a single small_fix would repeat the already-rejected shape. Issue stays open as the umbrella.

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

    @developing-today-fleet
    Contributor

    Triage verdict: already triaged, no new packet.

    Fresh check 2026-11-28: #5523 OPEN, umbrella (epic/id-program), unchanged since the verdict of record (task 24871 + full triage 15192). Premise stale — jurisdiction-aware hosted data plane landed via #5199; remaining work is the phased program (#3399-3404, #9935) with its own queue state. No code, no follow-on packet. Issue stays open as the umbrella.

  15. added
    app/id
    priority/normal
    on Nov 29, 2026
  16. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

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

    Labels: added app/id, kind/enhancement, priority/normal — the issue carried only epic/id-program. Gap (recorded): acceptance is stated 'in brief' only. The design doc (#2283, doc/2026-11-01_design_id2283.md) governs, but a pickup lane must first extract concrete, testable acceptance criteria from it — that extraction is step 1 for whoever takes this. Blocker: none named in the body.

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  18. added
    status/triaged
    effort/l
    on Nov 29, 2026
  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: no lifecycle label (no status//queue//work/), no effort/ label, and acceptance existed only as a one-line "Acceptance, in brief" — not checkable criteria. (Snapshot labels showed only epic/id-program; the live set has since gained kind/enhancement, priority/normal and app/id.)
    Strengths: design doc, current state (zero implementation; no jurisdiction logic anywhere in pkgs/id), scope and the amendment-over-divergence rule are all stated in a short body.
    Actions: added labels status/triaged and effort/l; appended a ## Acceptance criteria section derived from the body's own ask (original text untouched). Priority unchanged (normal).

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/enhancementpriority/normalstatus/triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions