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): fail-closed provisioning gate for hosted enablement (#3403) by dezren39 · Pull Request #12985 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

What

The #3403 provisioning gate: pkgs/id/hosted-worker/src/provisioning.ts — a pure, fail-closed validator that is now the only route to a hosted production signup/migration enablement plan. It validates a deployment configuration against deployed-account evidence (the #2285 canary results + Cloudflare API read-backs), per the #2283 design's provisioning-gate step and the 2026-11-22 decision record on #3403.

Refusals (explicit FailClosed diagnostics, one per acceptance failure mode):

  • missing_jurisdiction / unsupported_jurisdiction — the jurisdiction must be explicitly configured and supported; the design's policy constant is not a silent default.
  • unrestricted_fallback_forbidden — enablement exists only on the jurisdiction-restricted DO namespace.
  • jurisdiction_unverified / jurisdiction_unavailable — evidence must prove restricted DO support on the actual account; the acceptance-required unavailable US case refuses as jurisdiction_unavailable.
  • unsupported_runtime_types / runtime_types_unverified — deployed runtime + generated types must be proven to support the restriction.
  • bucket_missing / bucket_unverified / bucket_jurisdiction_mismatch — the bucket's actual jurisdiction, read back from the R2 API, must match. A binding's declared jurisdiction field is checked only for consistency and is never accepted as verification — the id: PoC: verify DO jurisdiction mechanics and confirm vendor residency guarantees #2285 Half 1 lesson (a plain binding reached the EU bucket; wrangler's --jurisdiction flag was silently ignored).

On success it returns the exact plan: jurisdiction, DO binding, and the one verified bucket.

Evidence

  • test/provisioning.test.ts: 17 passed / 0 failed — both happy paths (us, eu) and every refusal above, including the id: PoC: verify DO jurisdiction mechanics and confirm vendor residency guarantees #2285 mixed-R2 scenario and "declared field agrees but no API read-back" still refusing.
  • Full hosted-worker suite and tsc --noEmit: run on the branch (results in the PR thread / issue note).

Scope

The validator consumes evidence only — it probes no account, provisions nothing, and authorizes no deployment by itself. Wiring it into an actual provisioning/deployment surface (and the API provisioning that produces the evidence) is the named next slice on #3403; this PR deliberately does not close the issue.


Run Proof on this PR
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.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dezren39
feat(id): fail-closed provisioning gate for hosted enablement (#3403)
2279dc9
Add src/provisioning.ts to pkgs/id/hosted-worker: a pure validator
that grants a production signup/migration enablement plan only when
the deployment configuration is validated against deployed-account
evidence (the #2285 canary results and R2 API read-backs):

- jurisdiction must be explicitly configured and supported — the
  design's policy constant is not a silent default;
- enablement requires the jurisdiction-restricted Durable Object
  namespace — no unrestricted fallback;
- evidence must prove restricted DO support and runtime/types
  support on the actual account ("unavailable US" refuses with
  jurisdiction_unavailable; anything unproven refuses as
  unverified);
- the bucket's ACTUAL jurisdiction, read back from the R2 API, must
  match the configured jurisdiction — a binding's declared
  jurisdiction field is checked only for consistency and is never
  accepted as verification (the #2285 Half 1 lesson: a plain binding
  reached the EU bucket, and wrangler's --jurisdiction flag was
  silently ignored).

17 configuration tests cover every acceptance failure mode. The
validator consumes evidence only; it probes no account and authorizes
no deployment by itself.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: c2735a29-4872-4171-8248-3baacabe6f69
Commits

Reviewing files that changed from the base of the PR and between 39446aa and 2279dc9.

Files selected for processing: 3

  • pkgs/id/hosted-worker/package.json
  • pkgs/id/hosted-worker/src/provisioning.ts
  • pkgs/id/hosted-worker/test/provisioning.test.ts
  • 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.

@dezren39 dezren39 mentioned this pull request Nov 23, 2026
id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403
Closed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T06:26:07.278593Z 2279dc9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39
dezren39 merged commit 662beb7 into main Nov 23, 2026
2 checks passed

Uh oh!

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

@dezren39
dezren39 deleted the lane-hp/3403-provisioning-gate branch November 23, 2026 06:25
This was referenced Nov 23, 2026
feat(id): provisioning surface producing the #3403 gate's evidence #13162
Merged
id: enforce restricted jurisdiction routing and object entry guards #3400
Closed
id: isolate hosted blobs by jurisdiction and minimize shared directory #3401
Closed
id: implement Jurisdiction-partitioned hosted worlds and world blobs (design #3397) #5528
Open
@dezren39 dezren39 added the audit:partial PR partially implemented; gap filed label Nov 25, 2026
This was referenced Nov 26, 2026
id: implement ID serverless edition v1 on Cloudflare Workers (design #2046) #5524
Closed
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
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

audit:partial PR partially implemented; gap filed

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.