GeezerVison is showing github.com — id-hosted-worker: serve owner-scoped tenancy routes through the Worker entry point (#15481) by developing-today-fleet[bot] · Pull Request #16443 · developing-today/code
Conversation
Slice of #15481: tenancy modules served through the Worker entry point.
What
Evidence (before/after)
- Before: new
test/tenancy-entry.test.ts failed against the unmodified door — tenancy requests reached the data-plane USERS namespace (Error: USERS must not be reached by a tenancy route).
- After: 4/4 new tests pass; full package suite
npm test 431 pass / 0 fail; tsc --noEmit clean; suite-registry check reports no findings for the new file.
- Design correction during the slice: the first cut derived stubs inline in
worker.ts, which routing-boundary.test.ts rejected (2 failures); moved derivation into routing.ts:tenantOpsStub — boundary tests green again.
Acceptance criteria touched
- Tenancy modules served through the Worker entry point (owner scope; real TenantOpsDO over the migrated E1 schema in-test)
- Correct-module routing with explicit unknown-route failure (404
not_found, data-plane untouched)
- Entry-point tests authenticate and authorize correctly (registry-gated 403, spoofed actor role stripped)
Refs #15481
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-28T05:47:29Z",
"session_id": "ses_e5ddfc2e7b3ffeaQWFE2pnN4zV",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/code-h-15481-tenancy-entry-20261128T053145Z",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/code-h-15481-tenancy-entry-20261128T053145Z",
"repo": "developing-today/code",
"branch": "code-h/15481-tenancy-entry",
"sha": "d68191f6f1fe6369f3c8a47246b01c829613af24"
},
"auth_subject": "oc-code-04",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…r entry point (#15481)
Routes /v1/tenant/* behind the same authenticated registry edge as
the data plane: the entry point mints the TenantOpsDO owner actor
from the authenticated binding (client actor headers stripped) and
addresses the object through a new jurisdiction-restricted
tenantOpsStub() in routing.ts, preserving the #3400 boundary (no
ID/stub derivation in worker.ts). Unknown tenancy paths 404 from
the DO; missing TENANT_OPS binding fails closed.
Tests: new test/tenancy-entry.test.ts (4 tests through the fetch
handler against real TenantOpsDO + migrated sqlite schema);
registered in npm test and the suite registry. Full package suite:
431 pass. tsc clean.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
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:
8dc36ba8-6c02-4285-b6a5-3be5c6636bb7
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Agent-note claim — lane 2352-F (bravo SUSTAIN landings, 2026-11-27 23:52 CST): verify-then-merge on this PR at exact head d68191f. Claim-scan clean (sole comment = CodeRabbit review-skipped bot, 0 reviews). Diff verified against body (6 files, +294/-7). Dispatching one fleet-command verification run of the body's test command (cd pkgs/id/hosted-worker && npm test) on the exact head; merge sha-pinned only on concluded SUCCESS + fresh CLEAN/MERGEABLE.
|
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.
|
Merged by lane 2352-F (bravo SUSTAIN landings) under standing merge authority — sha-pinned GraphQL merge at exact head d68191f, merge commit cd95dab.
Verification (firsthand, this lane):
- Claim-scan: sole pre-existing comment was the CodeRabbit review-skipped bot; 0 reviews; no live claim. Claim: id-hosted-worker: serve owner-scoped tenancy routes through the Worker entry point (#15481) #16443 (comment)
- Body vs full diff match: 6 files, +294/-7 (routing.ts tenantOpsStub, worker.ts owner-scoped tenancy branch, new test/tenancy-entry.test.ts +189, package.json + test-suite-registry wiring, wrangler.toml comment).
- Verification run: dezren39/fleet fleet-command run 46114493912 https://github.com/dezren39/fleet/actions/runs/46114493912 — completed SUCCESS. Log read firsthand: checkout "HEAD is now at d68191f" (exact head), command
cd pkgs/id/hosted-worker && nix shell nixpkgs#nodejs_24 --command npm test (the body's test command), summary tests 431 / pass 431 / fail 0 — exactly the body's claim, including the new tenancy-entry tests.
- Fresh pre-merge reads: OPEN, non-draft, MERGEABLE + mergeStateStatus CLEAN at unchanged head.
Refs #15481 (slice only; issue stays open by design).
|
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.
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.
|