You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403
Follow-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.
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.
Decided: Keep hosted production signup and migration disabled until a production deployment/provisioning surface can validate an explicitly configured jurisdiction, supported runtime/types, and the actual jurisdiction of each provisioned bucket; do not treat an R2 binding jurisdiction field as an isolation control. Why:#2285 Half 1 results (2026-11-16; #2285 (comment)) confirm DO jurisdiction mechanics 1–4, but show a plain Worker binding can access the EU bucket and Wrangler 4.147.0 silently created a default bucket despite --jurisdiction eu. The current pkgs/id/hosted-worker/wrangler.toml is explicitly local-only and no production signup/migration enablement path exists to validate. #2283's design says the canary must validate the actual account/runtime and exact resource configuration, while not implying a vendor residency guarantee. Undo: Add the production enablement/provisioning path only with a validator and tests that fail closed for missing/unsupported jurisdiction, runtime/types, or mismatched/unverified bucket metadata, and use verified API provisioning rather than trusting the Wrangler flag or binding field. By: repo-worker-code (OpenChamber scheduled lane; task 5798)
Gate moved: dependency #2285 closed as completed 2026-11-22 (reconciliation: #2285 (comment)). Its Half 1 evidence is settled — DO mechanics 1–4 confirmed, R2 mechanic 5 mixed (binding jurisdiction field refuted as an isolation control; wrangler --jurisdiction flag silently ignored; API header route required) — and Half 2 (vendor residency ask) is void by Drew's 2026-11-16 decision, not forthcoming. This gate can now consume the settled evidence per its existing decision record.
🤖 Agent note · picked up — Lane HP (sandbox fix lane, archer)
Fresh premise check 2026-11-23T06:17Z: #3403 OPEN, no live claim (last notes are the 2026-11-22 decision record and Lane CA's 2026-11-23 gate-moved note). The historic blocker is gone: dependency #2285 is CLOSED/completed with settled Half 1 evidence, and the 2026-11-22 decision record names the landable work — a fail-closed validator + configuration tests for any production signup/migration enablement (missing/unsupported jurisdiction, unsupported runtime/types, mismatched/unverified bucket metadata; no unrestricted fallback; verified API provisioning over the Wrangler flag / binding field).
Slice for this lane: the validator core + its configuration tests in the hosted-worker surface, one PR. Will post a progress note when the PR is open.
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.
PR #12985merged (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.
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.
🤖 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.
PR #13162merged (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:
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.
Activity
developing-today commentedon Nov 1, 2026
CODE-1298
dezren39 commentedon 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)
137 remaining items
dezren39 commentedon Nov 22, 2026
Decided: Keep hosted production signup and migration disabled until a production deployment/provisioning surface can validate an explicitly configured jurisdiction, supported runtime/types, and the actual jurisdiction of each provisioned bucket; do not treat an R2 binding
jurisdictionfield as an isolation control.Why: #2285 Half 1 results (2026-11-16; #2285 (comment)) confirm DO jurisdiction mechanics 1–4, but show a plain Worker binding can access the EU bucket and Wrangler 4.147.0 silently created a default bucket despite
--jurisdiction eu. The currentpkgs/id/hosted-worker/wrangler.tomlis explicitly local-only and no production signup/migration enablement path exists to validate. #2283's design says the canary must validate the actual account/runtime and exact resource configuration, while not implying a vendor residency guarantee.Undo: Add the production enablement/provisioning path only with a validator and tests that fail closed for missing/unsupported jurisdiction, runtime/types, or mismatched/unverified bucket metadata, and use verified API provisioning rather than trusting the Wrangler flag or binding field.
By: repo-worker-code (OpenChamber scheduled lane; task 5798)
dezren39 commentedon Nov 23, 2026
Gate moved: dependency #2285 closed as completed 2026-11-22 (reconciliation: #2285 (comment)). Its Half 1 evidence is settled — DO mechanics 1–4 confirmed, R2 mechanic 5 mixed (binding
jurisdictionfield refuted as an isolation control; wrangler--jurisdictionflag silently ignored; API header route required) — and Half 2 (vendor residency ask) is void by Drew's 2026-11-16 decision, not forthcoming. This gate can now consume the settled evidence per its existing decision record.dezren39 commentedon Nov 23, 2026
🤖 Agent note · picked up — Lane HP (sandbox fix lane, archer)
Fresh premise check 2026-11-23T06:17Z: #3403 OPEN, no live claim (last notes are the 2026-11-22 decision record and Lane CA's 2026-11-23 gate-moved note). The historic blocker is gone: dependency #2285 is CLOSED/completed with settled Half 1 evidence, and the 2026-11-22 decision record names the landable work — a fail-closed validator + configuration tests for any production signup/migration enablement (missing/unsupported jurisdiction, unsupported runtime/types, mismatched/unverified bucket metadata; no unrestricted fallback; verified API provisioning over the Wrangler flag / binding field).
Slice for this lane: the validator core + its configuration tests in the hosted-worker surface, one PR. Will post a progress note when the PR is open.
dezren39 commentedon 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 declaredjurisdictionfield 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 --noEmitclean.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.
Merge pull request #12985 from developing-today/lane-hp/3403-provisio…
dezren39 commentedon Nov 23, 2026
🤖 Agent note · slice landed — Lane HP
PR #12985 merged (
662beb71ed7f, head-SHA guarded at2279dc933f6). Verified present on main:src/provisioning.ts(8,182 B) andtest/provisioning.test.ts(7,057 B).tsc --noEmitclean.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 bindingjurisdictionfield 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 commentedon 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 commentedon 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.
Merge pull request #13162 from developing-today/lane-ps-3403
dezren39 commentedon Nov 23, 2026
🤖 Agent note · slice landed — Lane PS
PR #13162 merged (
8fec59474d96, head-SHA guarded atab86cf50ca7b). Verified present on main:src/provisioning-surface.ts(10,421 B) +test/provisioning-surface.test.ts;package.jsontest 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:
cf-r2-jurisdictionheader (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).default, an unverifiable one as null — the gate fails closed on both.unverified; unsupported jurisdictions dropped);provisionAndValidateinvokes the gate and returns its plan or itsFailClosedrefusal, and creates nothing under an unsupported jurisdiction.Verification: new tests 14 passed / 0 failed; full hosted-worker suite 116 passed / 0 failed;
tsc --noEmitclean. 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.