Skip to content

id: add immutable jurisdiction and migration metadata to hosted directory #3399

Open

Description

@dezren39

Follow-up to #2283. Implement jurisdiction-aware account directory/signup: atomic default policy creation before object derivation, unique subject mapping, validated jurisdiction, routing epoch and migration state, restricted mutation via guarded state transitions, and legacy inventory without silently relabelling existing stores.

Acceptance: duplicate signup preserves record; absent/invalid jurisdiction fails closed; profile updates cannot change jurisdiction; atomic transitions and concurrent signup have tests. Deployment depends on provisioning evidence #2285 and the #2283 design.

Activity

  1. developing-today commented on Nov 1, 2026

    @developing-today
    Contributor
  2. added
    kind/infrastructureInfrastructure / host-portability work
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    source/humanFiled directly by a human
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 1, 2026
  3. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: #2283 (parent design), #2285 (provisioning evidence — deployment dependency), siblings #3400–#3404 (the jurisdiction set).

    Notes: Body already carries an inline Acceptance section (duplicate signup, fail-closed jurisdiction, immutable jurisdiction on profile update, atomic-transition tests). This is the foundation item of the set — #3400's routing guards depend on the directory semantics defined here. Priority/high for sequencing, not urgency.

    Risks: Legacy inventory must not silently relabel existing stores — call that out in the implementation PR description.

    Suggested approach: Land directory/signup + guarded transitions first; keep migration-state fields minimal until #3404's control plane consumes them.

    — fleet monitor intake (2026-11-01)

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  5. 212 remaining items

  6. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    state: gate-moved
    task: 6817
    lane: any-d
    re: dependency on #2285 (tasks 5798, 5801, 5800)

    Gate-moved notice for the #2285 dependency (posted from triage task 6817, lane any-d, 2026-11-16):

  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Decided: The owner gate on this issue is discharged. Implementation proceeds once its real dependencies (#2285 evidence, #3403) clear, and its acceptance must not wait on, or claim, a Cloudflare residency answer — none is coming, by Drew's direct decision.
    Why: Drew answered the chain's one owner question on 2026-11-16 (pending-decisions item cloudflare-scratch-poc-2285): the residency ask is not to be sent and the premise of a residency commitment is rejected; the PoC half of #2285 is unblocked with a verified fleet token (follow-on task 17426). This is recorded on this issue's own thread (gate-moved notice, task 6817). The design work is done (design PRs #3406/#3843 merged); what remains is dependency sequencing, which the queue's dependency mechanism already manages. FDR-0013 rule 1.
    Undo: Drew posts a different direction here; implementation re-scopes on that comment.
    By: archer (lane S, #12234 owner-parks sweep, under FDR-0013)

    user/escalated, status/blocked and queue/blocked are removed. The queue task's dependency block on #2285/#3403 is the queue's own mechanism and is untouched.

  9. added
    queue/claimedQueue worker lifecycle state
    and removed
    user/escalatedRequires a Drew decision or access
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    state: picked_up
    task: 5800
    lane: code-g (openchamber scheduled lane, worker repo-worker-code)
    stage: claimed -> revalidating

    Fresh revalidation this pass (2026-11-23 ~03:12Z): #3399 OPEN, no held/Drew-owned labels. Gate movement since last checkpoint (2026-11-17): #2285 is now CLOSED (2026-11-23T03:04Z reconciliation; Half 1 PoC evidence settled, Half 2 vendor ask void per Drew 2026-11-16). #3403 remains OPEN with a 2026-11-22 decision record (fail-closed provisioning validation) and a gate-moved note pointing at the settled #2285 evidence. Design PRs #3406/#3843 recorded MERGED 2026-11-17.
    Next: ground #3399 scope against current main (hosted directory state, existing jurisdiction code), then decide implement vs park with a fresh resume brief.

  11. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 23, 2026
  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    state: blocked (dependency)
    task: 5800
    lane: code-g (openchamber scheduled lane, worker repo-worker-code)
    stage: verified -> dep-blocked on #3403

    Fresh revalidation (2026-11-23 ~03:12-03:25Z): #3399 OPEN, no held/Drew-owned labels. Gate movement: #2285 CLOSED 2026-11-23T03:04Z (Half-1 PoC evidence settled; Half-2 vendor ask void per Drew 2026-11-16) — that leg is cleared. #3403 remains OPEN (needs-triage): phase-0 fail-closed provisioning validation not implemented; the 2026-11-22 decision on #3403 keeps production signup disabled until it lands, and the 2026-11-22 decision on this issue says implementation proceeds once #2285 evidence and #3403 clear. No PR implements #3399 or #3403. Grounding on origin/main 09d665f: hosted-worker carries jurisdiction only in comments/tests; no jurisdiction_pending/migration_id/routing_epoch fields; design PRs #3406/#3843 merged.
    Action: no branch, worktree, or source changes. Queue task dep-blocked on #3403 (broker rechecks, 3-day TTL); broker auto-returns it when #3403 closes.
    Resume: when #3403 closes, revalidate #3399 state/labels, create worktree from main, implement per packet + doc/2026-11-01_jurisdiction_aware_user_store_design.md without enabling production signup.

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/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workepic/id-programReprioritization program epic (2026-11-12)kind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivequeue/blockedQueue or user escalation statesource/humanFiled directly by a humanstatus/blockedQueue or user escalation statework/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions