GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(id): read hosted binding status from tenancy registry by dezren39 · Pull Request #15579 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

  • Add TenancyRegistry as the hosted worker's account/binding read contract over the central tenancy DB.
  • Route TenantOpsDO provisioning validation through it, so a suspended or closed account cannot start tenant provisioning even when its binding remains active.
  • Bring the hosted-worker test inventory in sync with the package test script, including tenant-ops.test.ts.

Evidence

  • Before: Fleet run developing-today-forks/fleet#45821113998 ran the new test against the pre-change branch and failed as expected: actual state requested, expected failed for a suspended account.
  • After current-main merge commit b68aef06e2906503c9badc980150ad54fd9c058a: Fleet run developing-today-forks/fleet#45828065965 completed successfully. Its command ran the full tenant-ops.test.ts file and package typecheck in a Node 22 container.
  • git diff --check passed. The hosted-worker paths in .github/test-suite-registry.json match the package test script.
  • The broader check-suite-registry.sh still reports 23 pre-existing unmapped suites outside hosted-worker; this PR adds the tenant-ops path to its existing hosted-worker suite row.

Merge Danger

This slice routes tenant-operations reads through the central registry. The front door still uses the legacy optional directory path; that migration is the next slice, so this PR does not complete issue #15480.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dezren39 added 2 commits November 26, 2026 06:34
@dezren39
test(id): require active tenancy account for hosted tenant
4dd9775
@dezren39
feat(id): read hosted binding status from tenancy registry
d301f52
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
id(hosted): one authoritative account and binding registry for the hosted ID worker (from #9080) #15480
Open
3 tasks
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The hosted-worker routing suite now registers additional tests. Tenant provisioning checks binding and account status through TenancyRegistry. A test covers the failed state and journal reason for a suspended account.

Changes: Routing test registration

Layer / File(s) Summary
Register routing tests
.github/test-suite-registry.json
The hosted-worker routing suite adds seven test files to its registered paths and invocation.

Tenant provisioning checks

Layer / File(s) Summary
Check binding and account status
pkgs/id/hosted-worker/src/tenancy-registry.ts, pkgs/id/hosted-worker/src/tenant-ops.ts, pkgs/id/hosted-worker/test/tenant-ops.test.ts
TenancyRegistry returns a block reason for a missing binding, inactive binding, or inactive account. TenantOpsDO uses a non-null reason in its existing failure handling. A test checks the failed state and account_not_active journal reason for a suspended account.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related issues

  • Issue 15480: This adds TenancyRegistry as a binding and account status read contract, but does not update the front door’s legacy optional directory path.
  • Issue 15538: This checks account and binding state before tenant provisioning, but does not check database state or include the D1 rehome work.

Suggested reviewers: claude

Merge Risk: Minimal · up to d301f

This change makes tenant provisioning requests fail for suspended or closed accounts, using a central registry read. It is consistent with the documented design and intent, and no actionable merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(id): read hosted binding status from tenancy registry" matches the main change. The PR adds TenancyRegistry, which reads binding and account state, and TenantOpsDO now uses it to block…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "feat(id): read hosted binding status from tenancy registry" matches the main change. The PR adds TenancyRegistry, which reads binding and account state, and TenantOpsDO now uses it to block provisioning for suspended or closed accounts. The title is specific and follows a conventional commit style. It does not cover the test-inventory update, but that is expected.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e2edae0-38e0-4067-902d-ecb12c4aa468
Commits

Reviewing files that changed from the base of the PR and between 764d745 and d301f52.

Files selected for processing: 4

  • .github/test-suite-registry.json
  • pkgs/id/hosted-worker/src/tenancy-registry.ts
  • pkgs/id/hosted-worker/src/tenant-ops.ts
  • pkgs/id/hosted-worker/test/tenant-ops.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
Merge current main into tenancy registry slice
b68aef0
@dezren39
dezren39 merged commit d0c8216 into main Nov 26, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the agent-next-20-local/15480-tenancy-registry branch November 26, 2026 13:33
This was referenced Nov 26, 2026
id(hosted-worker): refuse client binding context at public edge (#15479) #15567
Closed
id(hosted): authenticate callers at the ID front door instead of trusting X-Binding-Id (from #9080) #15479
Open
@developing-today developing-today Bot mentioned this pull request Nov 27, 2026
id: partition-scoped world routing, names, and admission (from #3397 Phase 2) #3898
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.