Skip to content

id(hosted): one authoritative account and binding registry for the hosted ID worker (from #9080) #15480

Todo

Description

@dezren39

Gap from the #9080 gap analysis (component B of #9078).

What is missing

Three account/binding registries exist and are not reconciled:

HOSTED_DIRECTORY is not bound in wrangler.toml, so the shipped front door skips the directory check entirely.

Done when


Generated by Claude Code

Acceptance criteria

  • One authoritative account and binding registry exists for the hosted ID world; lookups no longer consult divergent sources.
  • Create/read/update of accounts and bindings go through the registry.
  • Covered by tests for the registry operations the sibling slices consume.

Activity

  1. added
    kind/feature
    app/id
    on Nov 26, 2026
  2. added
    priority/normal
    effort/m
    status/needs-triage
    meta/enriched
    on Nov 26, 2026
  3. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Intake review

    🤖 Agent note · handed off

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-11-26 02:14 CST
    • Found via: monitor reconciliation (intake enrichment, Duty 2)
    • Task: Intake enrichment — acceptance criteria appended, labels normalized, meta/enriched applied.
    • Expectation: Ready for triage/queue routing as labelled.
    • Links: n/a
  4. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Decided: The central tenancy DB's account and binding tables from #9083 are the authoritative persisted registry for hosted accounts and bindings. hosted_accounts remains a legacy routing projection during migration; HostedBindingService remains ceremony logic and does not own persisted identity state.
    Why: #9083's design record §0 and §2 names the central tenancy DB as the account and binding authority, and tenancy/migrations/0001_tenancy_baseline.sql implements those tables. The current front door's optional HOSTED_DIRECTORY path and the Rust in-memory service are separate from that schema, which is the gap #15480 needs to close.
    Undo: A superseding #9083 design decision changes the authoritative registry; otherwise follow-up slices migrate readers and writers toward these tables.
    By: agent-next-20-local

  5. added
    queue/claimed
    work/assigned
    status/in-progress
    and removed
    status/needs-triage
    on Nov 26, 2026
  6. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    The first registry reader slice, PR #15579, merged as d0c8216d3bcc230102feebfbf53ff1bc3858eef8. It routed TenantOps provisioning validation through the central account/binding tables and rejected suspended/closed accounts.

    The front-door reader slice, PR #15628, merged as 8fd0812a537ed4ae009de942e6b48a7925edc359. It makes TENANCY_DB a required read path before namespace access, uses the same central registry in TenantOps, and keeps the legacy directory only for migration routing; a legacy projection cannot authorize a binding without the central record.

    Evidence: Fleet run 45821113998 reproduced the original requested versus expected failed bug. Fleet run 45839740782 completed the front-door and TenantOps suites, TypeScript typecheck, and local D1 migration application; 42 selected tests passed. The D1 database used the local placeholder and was not deployed.

    Issue #15480 remains open for the writer path. Next slice: connect the verified Rust login-binding create/update flow to TENANCY_DB through an authenticated service boundary, and test duplicate/conflicting writes against the central registry.

  7. 26 remaining items

  8. added
    status/parked
    queue/parked
    on Nov 26, 2026
  9. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Triage refresh (lane oc-code-04, queue task 23853, 2026-11-26): valid and active, not complete. PRs #15579 and #15628 landed the central-registry readers; the remaining next slice is the authenticated Rust login-binding create/update writer through TENANCY_DB. The prior fallback claimant released the issue as free at 14:44Z, and the current fallback status is released/claimable; there is no live fallback hold. However, prerequisite #13710 remains open for authenticated server routes and CLI integration (latest note says those routes remain). Verdict: return to dependency-blocked queue state on #13710, then resume the writer slice. No duplicate reader work.

  10. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Cross-reference (lane xaltha, shepherd task 24395): Refs #15479 — PR #15567, the first #15479 slice, was closed as superseded by this issue's PR #15579, which merged the tenancy registry and re-based the hosted front door on it. The remaining #15479 work (authenticated caller at the front door) builds on the registry delivered here. Salvage note: #15567 (comment)

  11. added
    stray-work
    epic/id-program
    primary-parent/id-program
    epic/pm-stack
    primary-parent/pm-stack
    on Nov 26, 2026
  12. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census re-verification — CEN-C16 (2026-11-29; delivery completed in a follow-up pass — the original drafts were lost with the census poster scratch, this text is regenerated from the C16 findings record).

    Verdict: blocked

    Blocker: the remaining slice — the authenticated Rust login-binding writer through TENANCY_DB — is dependency-blocked on #13710 (authenticated server routes / CLI integration) per the 2026-11-26 triage refresh.

    Strengths: the authoritative-registry decision is recorded (decision:v1, 2026-11-26: central tenancy DB account/binding tables); reader slices landed and verified (PR #15579 TenantOps validation, PR #15628 front-door TENANCY_DB read path, 42 tests + typecheck + D1 migrations).
    Gaps: none in detail; the remaining slice is precisely named on the issue.
    Priority: priority/normal — unchanged.
    Label actions (census): none (labels already sane).

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The three divergent registries are named with file paths, the consequence of the unbound HOSTED_DIRECTORY is stated (the shipped front door skips the check entirely), and the decision the issue needed has been RECORDED on it (2026-11-26: the central tenancy DB's account/binding tables from #9083 are authoritative; hosted_accounts stays a legacy routing projection during migration). kind/feature + priority/normal already set.

    GAPS: The reader half has landed (PR #15579 TenantOps validation through the central tables; PR #15628 front-door central registry — both merged). The remainder is the writer half: authenticated Rust login-binding create/update through TENANCY_DB. status/parked reflects the queue state, not a design block.

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Nothing for Drewry (the registry decision is made and recorded). Ready for pickup: the Rust writer slice is the named next step.

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

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 recheck: body, labels and all comments re-read firsthand for this pass. Two full census verdicts from earlier today already stand on this issue (Felix and CEN-C15/C16 lanes) — their verdicts are not duplicated here; this note records only the residual check and any residual fix.

    Residual check (kind/feature; priority/normal; status: status/parked; acceptance criteria present): no residual gaps found — verified complete, no changes.

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

    @developing-today-fleet
    Contributor

    🤖 P3.1 reparenting — Felix lane 0640-WO, 2026-11-30 (Refs #17071). This issue's native parent #9080 is closed and has no parent or named successor epic of its own, so under the P0–P3 playbook's destination rule (successor epic or top-level) it is detached to top-level via the GraphQL removeSubIssue mutation. Verified post-move: parent is null. No state, labels, or priority band changed.

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/mepic/id-programepic/pm-stackkind/featuremeta/enrichedprimary-parent/id-programprimary-parent/pm-stackpriority/normalqueue/parkedqueue/queuedstatus/parkedstray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions