GeezerVison is showing github.com — feat(id): read hosted binding status from tenancy registry by dezren39 · Pull Request #15579 · developing-today/code
Conversation
dezren39
commented
Nov 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
coderabbitai
Bot
commented
Nov 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

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: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
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 |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description Check |
 |
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
-
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|