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 — 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

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 28, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Slice of #15481: tenancy modules served through the Worker entry point.

What

  • GET/POST /v1/tenant/* now routes through the same authenticated front door as the data plane (pkgs/id/hosted-worker/src/worker.ts), behind the existing central-registry edge.
  • The entry point mints the TenantOpsDO owner actor from the authenticated binding and strips all client-supplied actor headers (x-tenancy-actor-*); operator/platform roles are not minted here (auth story is impl(id): keyless-custody login — OIDC account-pointer binding and OPAQUE password login over a client-held ID key #13710), so out-of-scope writes fail closed in the DO role check.
  • Stub derivation honors the id: enforce restricted jurisdiction routing and object entry guards #3400 boundary via a new jurisdiction-restricted tenantOpsStub() in src/routing.ts — worker.ts never calls idFromName/.jurisdiction() itself (test/routing-boundary.test.ts enforces this).
  • Missing TENANT_OPS binding fails closed (503 tenant_ops_unavailable); unknown tenancy paths 404 (not_found) from the DO.

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.

All reactions
oc-code-08
id-hosted-worker: serve owner-scoped tenancy routes through the Worke…
d68191f
…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.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

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:

  • Trigger review
  • 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
All reactions

Sorry, something went wrong.

Uh oh!

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

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 28, 2026
id(hosted): serve the tenancy modules through a Worker entry point (from #9080) #15481
Open
3 tasks
@developing-today-fleet

developing-today-fleet Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@developing-today-fleet
developing-today-fleet Bot merged commit cd95dab into main Nov 28, 2026
2 checks passed

Uh oh!

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

@developing-today-fleet
developing-today-fleet Bot deleted the code-h/15481-tenancy-entry branch November 28, 2026 06:14
@developing-today-fleet

developing-today-fleet Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

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).

All reactions

Sorry, something went wrong.

Uh oh!

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

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.

0 participants

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.