Repository navigation
Done
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)status/triagedTriaged and routed (see agent note)stray-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
pkgs/id/hosted-worker/src/worker.ts routes only to UserDO. These modules are built and tested as libraries but nothing serves them: TenantOpsDO (tenant-ops.ts, E2 #12797), credentials.ts (E4 #12799), identity-link.ts (H2), provisioning-surface.ts, enablement.ts, admission-gate.ts, migration-control.ts. The TENANT_OPS binding comment says it is "driven by the tenancy Worker", which does not exist.
E3 #12798 and E5 #12800 own sync ingress and the public plane, not this entry point.
Done when
- A tenancy Worker entry point (or routes on the existing worker, behind the authenticated edge from the sibling gap) exposes provisioning, credentials and identity-link operations by calling the existing modules.
- Each route has a test through the Worker fetch handler, not just the module.
Generated by Claude Code
Acceptance criteria
- The tenancy modules are served through a Worker entry point.
- Requests route to the correct tenant modules; unknown routes fail explicitly.
- Covered by tests hitting the Worker entry point.
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)status/triagedTriaged and routed (see agent note)stray-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
dezren39 commentedon Nov 26, 2026
Triage — tenancy routes depend on the authoritative registry
The gap is real: current
pkgs/id/hosted-worker/src/worker.tsroutes the public Worker toUserDOand has only an optionalHOSTED_DIRECTORYcheck; it does not serveTenantOpsDO, credentials, identity-link, provisioning, or enablement routes. The relevant tenancy modules exist in the package, but the issue's requested tenant lookup cannot safely be wired until one account/binding registry is authoritative.That prerequisite is issue #15480, and its queue task #23853 is currently claimed by
agent-next-20-local. I found no independent web/Worker slice that can expose the requested operations without choosing a registry or inventing a temporary identity route. I’m keeping #15481 open and blocking its task on #15480; resume when that registry contract lands, then route modules through it and test the fetch handler.developing-today-fleet commentedon Nov 26, 2026
agent-note:v1 — graph hygiene audit slice N2 under #14863 (queue-lane-SC, 2026-11-26)
Verified-blocked + edge added. The triage verdict of record on this issue (2026-11-26T12:14Z, agent-next-26-local) states this work is blocked on #15480 (one authoritative account/binding registry; its queue task is claimed and the issue is OPEN/in-progress), but the block existed only in prose: no native edge, and the labels still read status/needs-triage with no blocked label. I added the native blocked_by edge #15481 → #15480 and verified it via the dependencies API (readback: 15480). Labels left for the owning lane to align (status/blocked + queue/blocked would match the recorded verdict). Refs #14863
4 remaining items
Merge pull request #16443 from developing-today/code-h/15481-tenancy-…
dezren39 commentedon Nov 29, 2026
🤖 Agent note · claim — Xaltha lane 0647-L18, 2026-11-29
Taking the #15481 remainder as one bounded slice. State of record as I find it: PR #16443 (lane code-h, 2026-11-28) landed owner-scoped tenancy routes (
/v1/tenant/*) through the Worker entry point behind the authenticated registry edge, serving TenantOpsDO. The issue's "Done when" also names credentials and identity-link operations exposed by calling the existing modules, each route tested through the Worker fetch handler.Slice (this lane): scope from current main which of the named modules (credentials, identity-link, provisioning-surface, enablement, admission-gate, migration-control) are still unserved through the entry point, and serve the next bounded set — target credentials + identity-link — following #16443's authenticated-edge pattern, with fetch-handler tests. Whatever remains unserved after this slice gets named here as the follow-on remainder. Refs #15481 (no close unless the full Done-when is met).
feat(id-hosted): serve E4 credentials + H2 identity links through Ten…
Merge pull request #16814 from developing-today/xaltha/15481-tenancy-…
dezren39 commentedon Nov 29, 2026
Slice landed by lane 0647-L18 — PR #16814, merged (merge commit
17c0ed1f0).Now served through the entry point (owner-scoped routes on
TenantOpsDO, behind the #15479 authenticated edge + registry gate, under the object's serialisation gate):credentials.ts) —POST /v1/tenant/credentials(issue: session minted from the authenticated owner actor, account resolved from thebindingrow, signer behind the newTENANT_TOKEN_ISSUERseam failing closed at 503 when unbound) andPOST /v1/tenant/credentials/revoke(own credentials only; a foreign id answers as an unknown id).identity-link.ts) —GET /v1/tenant/identity-links,POST /v1/tenant/identity-links,POST /v1/tenant/identity-links/unlink, served under the tenancy object's gate — the serialisation that module's header names.Tests through the Worker fetch handler per the Done-when:
test/tenancy-services-entry.test.ts(6 tests; full package suite 451/451 at the PR head).Remainder (this issue stays open):
provisioning-surface.ts,enablement.ts, andadmission-gate.tsare still unserved. They front the operator/platform side rather than the owner edge, so each needs its own serving decision. (The migration control surface is already served by the migration-operator routes.) Production binding of a realTenantTokenIssuer(the Turso platform signer) is a deployment step alongside gate #2285, not a code slice.dezren39 commentedon Nov 29, 2026
Premise note from lane 0647-L18 on the remainder named above (
provisioning-surface.ts,enablement.ts,admission-gate.ts): all three were read firsthand, and none of them is a request-served module, so none takes the route treatment the rest of this issue's list got:enablement.tsis the provisioning gate's in-process decision point — its values are consumed by identity insideprovisioning.ts; there is no caller-facing request shape to expose.admission-gate.tsis the in-process admission pipeline (the TS mirror ofcrates/id-core's gate) that admission paths call before state transitions; it is a library seam with an injected authorization callback, not an endpoint.provisioning-surface.tsis the deployment-side evidence prober for the id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403 gate (Cloudflare API probes); it runs at provisioning time, not at request time.So the request-served set this issue named is now fully served (tenant operations #16443; publications; credentials + identity-link in PR #16814). What remains is a design decision — whether these three libraries get an operator-facing surface at all, and if so on which edge — rather than a bounded serving slice. Leaving the issue open for that decision with the served set recorded.
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 (on a design decision, not code)
Blocker: a design decision — whether provisioning-surface.ts, enablement.ts, admission-gate.ts get an operator-facing surface at all, and on which edge. No code blocker; production TenantTokenIssuer binding is a deployment step alongside #2285.
Strengths: the request-served set named in the body is now fully served — TenantOpsDO routes via PR #16443, credentials + identity-link via PR #16814 (merged today, full suite 451/451) — and the remaining three modules are in-process libraries with no request shape.
Gaps: stale
status/needs-triagelabel; the issue's remaining question is a decision, not a slice.Priority: priority/normal — unchanged.
Label actions (census): swapped status/needs-triage → status/triaged.
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).
STRENGTHS: The gap is inventoried module by module with their owning slices (E2 #12797, E4 #12799, H2), the 'Done when' is testable (routes through the Worker fetch handler, not just module tests), and the native blocked_by edge to the registry slice #15480 EXISTS and is correct. kind/feature + priority/normal already set.
GAPS: Closing fast. PR #16443 served owner-scoped /v1/tenant/* routes through the entry point; PR #16814 (merged today, lane 0647-L18) served the target-credentials routes. The same lane's premise note reads the three remaining named modules firsthand — provisioning-surface.ts, enablement.ts, admission-gate.ts are not request-served modules, so they do not take the route treatment; that disposition should be the closing evidence for the module list. What remains is to tick the acceptance boxes against the two landed PRs and close, or name any route still unserved.
FIXES I APPLIED: None — labels, priority, and the blocker edge verified correct.
REMAINS: Nothing for Drewry. One verification pass from closing.
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/triaged; acceptance criteria present): no residual gaps found — verified complete, no changes.
developing-today-fleet commentedon Nov 29, 2026
Claim — Felix lane 0640-EE, 2026-11-29. Taking #15481: serve the tenancy modules (provisioning, credentials, identity-link) through the hosted-worker entry point, with fetch-handler tests and explicit failure on unknown routes, per the issue's Done-when. Premise re-read today: no live claim on this issue (census notes only); E3 #12798 / E5 #12800 own sync ingress and the public plane, not this entry point. Priority validation: priority/normal concurred (bounded feature gap, no time pressure on record).
developing-today-fleet commentedon Nov 29, 2026
Premise update — Felix lane 0640-EE, 2026-11-29 (supersedes my claim note above): the build already landed; converting this pickup to a verify-close.
Firsthand on current main: commit
d68191f6f1"id-hosted-worker: serve owner-scoped tenancy routes through the Worker entry point (#15481)". The Worker front door (src/worker.ts) authenticates the caller (#15479), gates on the central registry, and routes/v1/tenant/*to the caller's TenantOpsDO with an owner actor minted from the authenticated binding;TenantOpsDO.fetchdispatches provisioning (request/provision/activate/suspend/resume/export-only/delete/state), credentials (issue/revoke viacredentials.ts), and identity-links (list/link/unlink viaidentity-link.ts), with an explicit404 not_founddefault. Entry-point tests exist and are wired into the package test script:test/tenancy-entry.test.ts,test/tenancy-services-entry.test.ts.Running the package suite remotely now as the verification of record; verdict + close follow from its executed counts.
developing-today-fleet commentedon Nov 29, 2026
Verdict — Felix lane 0640-EE, 2026-11-29: #15481 is COMPLETE; closing.
Acceptance criteria, each verified firsthand on current main:
d68191f6f1"serve owner-scoped tenancy routes through the Worker entry point (id(hosted): serve the tenancy modules through a Worker entry point (from #9080) #15481)":src/worker.tsauthenticates the caller (id(hosted): authenticate callers at the ID front door instead of trusting X-Binding-Id (from #9080) #15479), gates on the central tenancy registry, and routes/v1/tenant/*to the caller's ownTenantOpsDOwith an owner actor minted from the authenticated binding (operator/platform roles are not minted at this door; control-plane writes beyond owner scope fail closed in the DO's role check).TenantOpsDO.fetchdispatches provisioning (request/provision/bootstrap-observed/activate/suspend/resume/export-only/delete/statevia the provisioning surface), credentials (POST /v1/tenant/credentials,/credentials/revokeviacredentials.ts), and identity-link (GET/POST /v1/tenant/identity-links,/identity-links/unlinkviaidentity-link.ts); the switch default answers an explicit404 {error: "not_found"}.test/tenancy-entry.test.tsandtest/tenancy-services-entry.test.tsdrive the worker fetch handler and are wired into the package test script.Executed verification of record: fleet-command run 46316471426 (developing-today/fleet, ref=main,
npm install --legacy-peer-deps && npm testin pkgs/id/hosted-worker under nodejs_22) — full suite 470 tests, 470 pass, 0 fail, 0 skipped, with both tenancy entry test files in the executed command line (log read firsthand). Priority validation: priority/normal concurred; unchanged.