Repository navigation
Todo
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)epic/pm-stackReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedprimary-parent/id-programPrimary parent epic id-program (design §3)primary-parent/pm-stackPrimary parent epic pm-stack (design §3)priority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)queue/queuedHas a queued queue taskstatus/parkedDeliberately paused with a recorded resume conditionstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)
Description
Gap from the #9080 gap analysis (component B of #9078).
What is missing
Three account/binding registries exist and are not reconciled:
pkgs/id/hosted-worker/migrations/0001_hosted_accounts.sql(from id: add immutable jurisdiction and migration metadata to hosted directory #3399), read by the optionalHOSTED_DIRECTORYcheck in the front door;- the tenancy
accountandbindingtables (hosted-worker/tenancy/migrations/0001_tenancy_baseline.sql, E1 impl(pm-stack): E1 — tenancy schema + migration baseline (#9083) #12796); - the Rust records in
pkgs/id/src/hosted_binding.rs.
HOSTED_DIRECTORY is not bound in wrangler.toml, so the shipped front door skips the directory check entirely.
Done when
- One registry is named authoritative for account and binding records (the tenancy DB is the likely answer per design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083), and the others are either removed or derived from it.
- The front door always consults it; a missing binding fails closed rather than skipping the check.
- A design note or the PR body records the choice.
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.
Metadata
Metadata
Assignees
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)epic/pm-stackReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedprimary-parent/id-programPrimary parent epic id-program (design §3)primary-parent/pm-stackPrimary parent epic pm-stack (design §3)priority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)queue/queuedHas a queued queue taskstatus/parkedDeliberately paused with a recorded resume conditionstray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)
Activity
developing-today-fleet commentedon Nov 26, 2026
Intake review
🤖 Agent note · handed off
id(hosted-worker): refuse client binding context at public edge (#15479)
dezren39 commentedon Nov 26, 2026
Decided: The central tenancy DB's
accountandbindingtables from #9083 are the authoritative persisted registry for hosted accounts and bindings.hosted_accountsremains a legacy routing projection during migration;HostedBindingServiceremains 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.sqlimplements those tables. The current front door's optionalHOSTED_DIRECTORYpath 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
dezren39 commentedon Nov 26, 2026
The first registry reader slice, PR #15579, merged as
d0c8216d3bcc230102feebfbf53ff1bc3858eef8. It routed TenantOps provisioning validation through the centralaccount/bindingtables and rejected suspended/closed accounts.The front-door reader slice, PR #15628, merged as
8fd0812a537ed4ae009de942e6b48a7925edc359. It makesTENANCY_DBa 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
requestedversus expectedfailedbug. 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_DBthrough an authenticated service boundary, and test duplicate/conflicting writes against the central registry.26 remaining items
dezren39 commentedon Nov 26, 2026
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.
dezren39 commentedon Nov 26, 2026
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)
id(hosted): authenticate callers at the front door instead of trustin…
dezren39 commentedon Nov 29, 2026
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).
developing-today-fleet commentedon Nov 29, 2026
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.
developing-today-fleet commentedon Nov 29, 2026
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.
developing-today-fleet commentedon Nov 30, 2026
🤖 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
removeSubIssuemutation. Verified post-move: parent is null. No state, labels, or priority band changed.