GeezerVison is showing github.com — id: gate hosted jurisdiction provisioning on verified DO and R2 support · Issue #3403 · developing-today/code
id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403DescriptionFollow-up to #2283. Implement fail-closed hosted signup/deployment configuration validation for configured jurisdiction and its restricted Durable Object namespace and R2 bucket. Consume deployed-account evidence from #2285; do not duplicate that PoC or imply a probe proves vendor residency guarantees.
Acceptance: production cannot enable signup or migration with missing/unverified jurisdiction, unsupported runtime/types, or missing mismatched bucket; explicit diagnostics and configuration tests cover unavailable US and no unrestricted fallback. Coordinate with the design doc on the #2283 branch. Activitydeveloping-today commented on Nov 1, 2026 added effort/mMedium: expected under 1 day of work app/idPackage/app: id (pkgs/ or apps/ in this repo) meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 1, 2026dezren39 commented on Nov 1, 2026 Intake review
Related: #2283 (parent, design doc on its branch), #2285 (deployed-account evidence — consumed, not duplicated), siblings #3399–#3402, #3404.
Notes: Inline Acceptance present (production cannot enable signup/migration with missing/unverified jurisdiction, unsupported runtime/types, or missing/mismatched bucket; diagnostics + config tests incl. unavailable-US and no unrestricted fallback). This is the gate that makes the rest of the set safe to ship — priority/high for sequencing.
Risks: Do not let the validation imply vendor residency guarantees beyond what #2285's PoC actually proves — the filing is explicit about that boundary.
Suggested approach: Config validation with explicit diagnostics per failure class; tests enumerated from the acceptance list one-to-one.
— fleet monitor intake (2026-11-01) dezren39 commented on Nov 23, 2026
🤖 Agent note · progress — Lane HP
PR open: #12985 — the fail-closed provisioning gate (pkgs/id/hosted-worker/src/provisioning.ts + 17 configuration tests).
The validator grants a production signup/migration enablement plan only when the deployment configuration checks out against deployed-account evidence (#2285 canary + R2 API read-backs): explicit supported jurisdiction (no silent policy default), restricted DO namespace required (no unrestricted fallback), proven DO + runtime/types support on the actual account (unavailable US refuses as jurisdiction_unavailable), and the bucket's actual API-reported jurisdiction matching — a binding's declared jurisdiction field is consistency-checked only, never accepted as verification (the #2285 Half 1 lesson).
Verification on the branch: new tests 17 passed / 0 failed; full hosted-worker suite 94 passed / 0 failed; tsc --noEmit clean.
Deliberately not closing #3403 with this PR: the validator consumes evidence only. Next slice: wire it into the provisioning/deployment surface — the API provisioning path that produces the evidence (bucket creation via the API route #2285 established, read-back of actual jurisdiction, canary result capture) and calls this gate before any production enablement. dezren39 commented on Nov 23, 2026
🤖 Agent note · slice landed — Lane HP
PR #12985 merged (662beb71ed7f, head-SHA guarded at 2279dc933f6). Verified present on main: src/provisioning.ts (8,182 B) and test/provisioning.test.ts (7,057 B).
- New tests: 17 passed / 0 failed; full hosted-worker suite: 94 passed / 0 failed;
tsc --noEmit clean.
- Acceptance coverage now in tree: missing/unverified jurisdiction, unsupported jurisdiction, unavailable US (
jurisdiction_unavailable), unsupported/unverified runtime/types, missing DO binding, missing bucket, bucket jurisdiction mismatch by API read-back, and no unrestricted fallback — each refuses with an explicit diagnostic, and a declared binding jurisdiction field never substitutes for the API read-back.
#3403 stays open. Next slice (unchanged from the progress note): the provisioning/deployment surface that produces the evidence — API-route bucket provisioning + actual-jurisdiction read-back + canary result capture — calling this gate before any production signup/migration enablement. The gate itself authorizes no deployment and makes no residency claim. dezren39 commented on Nov 23, 2026 🤖 Agent note · parked (scheduled lane code-g)
Fresh recheck after claim: prerequisite #2285 is now CLOSED with reconciled PoC evidence (DO mechanics 1–4 confirmed; R2 binding jurisdiction is not an isolation control; Wrangler jurisdiction flag was ignored; API provisioning/read-back is required; vendor-residency ask was explicitly voided). The fail-closed validator slice has already landed as PR #12985 and is present on main (17 targeted tests; 94 hosted-worker tests; TypeScript check clean).
No duplicate validator work started. The remaining slice is the API provisioning/deployment surface: create the bucket through the verified API route, read back actual bucket jurisdiction, capture the DO/runtime canary evidence, and invoke the gate before any production signup/migration enablement. The deployment surface is currently local-only per the #3403 decision record; this is the next distinct implementation slice, not a reason to enable production or make a residency claim. Resume with that exact scope. dezren39 commented on Nov 23, 2026
🤖 Agent note · picked up — Lane PS (sandbox fix lane, archer)
Fresh premise check 2026-11-23 ~03:24Z: #3403 OPEN, no live claim on the remaining slice (Lane HP's validator slice landed via PR #12985; the code-g note parked the task naming this exact remainder as the resume scope). Taking the named next slice: the provisioning/deployment surface that produces the gate's evidence — API-route bucket provisioning + actual-jurisdiction read-back + canary result capture — invoking the landed gate before any production signup/migration enablement. Code + tests only; no live deployment, no production enablement, no residency claim. Will post a progress note when the PR is open. dezren39 commented on Nov 23, 2026
🤖 Agent note · slice landed — Lane PS
PR #13162 merged (8fec59474d96, head-SHA guarded at ab86cf50ca7b). Verified present on main: src/provisioning-surface.ts (10,421 B) + test/provisioning-surface.test.ts; package.json test script now runs the new file.
This is the provisioning/deployment surface both prior records named as the remainder — the evidence-producing half of the gate from PR #12985:
- Buckets are provisioned only through the Cloudflare API route with the
cf-r2-jurisdiction header (never wrangler, whose flag id: PoC: verify DO jurisdiction mechanics and confirm vendor residency guarantees #2285 showed can be silently ignored); creation is idempotent (409 → read-back).
- A bucket's jurisdiction comes only from the API read-back: jurisdiction-less probe first (sees default buckets only), then one header-scoped probe per supported jurisdiction; a default bucket records as
default, an unverifiable one as null — the gate fails closed on both.
- Canary results are captured into the gate's evidence shape verbatim (undetermined →
unverified; unsupported jurisdictions dropped); provisionAndValidate invokes the gate and returns its plan or its FailClosed refusal, and creates nothing under an unsupported jurisdiction.
Verification: new tests 14 passed / 0 failed; full hosted-worker suite 116 passed / 0 failed; tsc --noEmit clean. A remote dispatch of the two provisioning test files was attempted (run 45147697038) — the fleet-build container has no Node.js (node: command not found, exit 127), so that leg is environmental, not a test result.
#3403 stays open. Remaining: run this surface against the real account — the live provisioning/canary evidence run that feeds the gate for an actual enablement decision. That is a production action (creates a real bucket on the fleet account) and is outside this slice; the gate still authorizes no deployment and this surface makes no residency claim. Unblocking note for the chain: with the validator (PR #12985) and now the evidence surface both on main, #3399's recorded gate narrows to that live evidence run plus its own directory implementation. dezren39 commented on Nov 23, 2026 🤖 Agent note · triage verdict — lane code-f (queue task 18261, 2026-11-23)
Fresh state this run: #3403 OPEN, no hold labels (held / user/owned / do-not-merge / do-not-auto-edit absent); prerequisite #2285 CLOSED (completed). Both named slices are on current main (ab82a4d76c0) — no duplicate work started:
- Validator (acceptance half 1):
src/provisioning.ts (validateEnablement) from PR feat(id): fail-closed provisioning gate for hosted enablement (#3403) #12985 / 662beb71ed7f — explicit supported jurisdiction, restricted namespace required, no unrestricted fallback, diagnostics per refusal.
- Evidence-producing surface (acceptance half 2):
src/provisioning-surface.ts (provisionAndValidate, provisionAndValidate API-route bucket provisioning + actual-jurisdiction read-back + canary capture) from PR feat(id): provisioning surface producing the #3403 gate's evidence #13162 / 8fec59474d96.
- Re-verified this run on main:
node --experimental-transform-types --test test/provisioning.test.ts test/provisioning-surface.test.ts → 31 tests, 31 pass, 0 fail (covers missing/unverified jurisdiction, unavailable US, unsupported runtime/types, missing DO binding, missing bucket, API-read-back mismatch, declared-jurisdiction-not-verification, no unrestricted fallback).
Remaining gap, stated plainly: nothing in the worker calls provisionAndValidate/validateEnablement today — there is no production signup/migration enablement surface to gate (the deployment surface is local-only per the decision record in this issue's first comment). So the criterion "production cannot enable signup or migration …" holds vacuously today and is not yet proven through a real enablement path.
Routing: no runnable code slice exists until such a surface is added; a follow-on packet now would be phantom work. The queue task is parked with the exact resume condition: when a hosted-worker production signup/migration enablement surface lands, it must call provisionAndValidate before enabling, and this issue is revisited then. Issue stays open as the design/decision record. dezren39 commented on Nov 23, 2026 🤖 Agent note · progress — OpenChamber scheduled lane oc-code-05
PR open: #13753 (branch queue/3403-production-enablement, head 1fb1f4f64ee).
Slice: the production enablement point. src/enablement.ts creates enablement only from a plan issued by validateEnablement, and requireProductionEnablement gates the signup and migration modes. Forged look-alike plans and absent enablement both refuse with explicit codes.
Evidence: laptop run of the hosted-worker suite, 134 pass / 0 fail, and typecheck clean. Not built in CI.
Still open for #3403: the live provisioning evidence run against the real account, and the first production signup/migration caller that must call requireProductionEnablement. Issue stays open.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|