Repository navigation
Description
Follow-up C from the Durable Object jurisdiction investigation on #2061
(doc: doc/2026-10-29T11-43-02Z_investigation_do_jurisdiction_pinning/, §5 and §1.5).
Parent epic: #2056. Context: #2044.
Needs a Cloudflare account to deploy a scratch Worker — not doable from a repo-only worker session. Two halves: code mechanics (small PoC) and a written vendor ask (not code).
Half 1 — PoC (one deployed scratch Worker, no user data)
idFromName(name)vsjurisdiction("eu").idFromName(name)produce different IDs in this account (docs assert it; confirm).ctx.id.jurisdictionreads backeuinside the object, including from an alarm; confirm bothundefinedcases (unrestricted namespace; alarm scheduled before 2026-03-15).- A mismatched namespace/ID pair throws; an unrestricted namespace silently accepts a foreign ID (the failure mode the design guards against).
- Export from an
euobject, import into ausobject: signatures still verify (migration path). - R2: create an
eu-jurisdiction bucket, confirm the Worker binding needs thejurisdictionfield and that the S3 jurisdiction endpoint cannot reach outside the jurisdiction.
Half 2 — the written ask to Cloudflare (blocks any DPA that claims EU residency)
The docs guarantee the object "only run[s] and store[s] data within a region" and that it is never migrated out of the jurisdiction's data-centre list. They do not say that DO SQLite's storage replication path stays inside the jurisdiction:
- SQLite commits are forwarded to five follower machines, each in a different physical data center, and WAL batches/snapshots go to object storage (blog). No jurisdiction statement appears in that post.
- Point-in-time recovery / bookmark retention: jurisdiction-confined? Not documented either way.
- Does
fedrampjurisdiction for Durable Objects require a separate entitlement (R2's FedRAMP jurisdiction explicitly does; DO's docs say nothing)?
Ask Cloudflare support/account team in writing and record the answer on this issue. A negative or evasive answer changes the hosted edition's residency claim, so this is not optional polish.
Acceptance
- PoC results recorded as a comment (or short doc) with what was observed, including failures.
- The vendor answer, or the exact question as sent plus the date, recorded here.
- Any gap the answer exposes filed as an issue.
Acceptance criteria
- PoC results recorded here (or in a short doc): all five Half-1 mechanics confirmed or the failure recorded, including both ctx.id.jurisdiction undefined cases
- The Cloudflare written ask (Half 2) sent verbatim and dated on this issue; the vendor answer recorded when it arrives
- Any residency gap the answer exposes is filed as its own issue
Activity
developing-today commentedon Oct 29, 2026
CODE-1143
dezren39 commentedon Oct 29, 2026
Intake review
Related: #2061 (jurisdiction investigation, §5/§1.5), #2044, #2283/#2284 (sibling follow-ups A/B), epic #2056
Notes: Two halves: a small deployed-Worker PoC and a vendor ask. Needs a Cloudflare account — not doable from a repo-only session, per the body.
Risks: An evasive vendor answer changes the hosted edition's residency claim — treat Half 2 as blocking for any EU-residency DPA language.
Suggested approach: Half 1 via a scratch Worker on Drew's Cloudflare account; Half 2 via support/account team in writing.
🤖 Agent note · filed
meta/enrichedapplied. Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found; where a queue triage task owns verification, it is named in the notes.dezren39 commentedon Nov 3, 2026
Unblock read from task 5800 (queue triage of the #2285 → #3403 → #3399 chain). Posting here because #3399 Phase 1 is gated on this issue's evidence and has now parked twice (tasks 5798, 5800) without progress.
Correction to the "not doable from a repo-only worker session" premise. The OpenChamber execution host has
wrangleron PATH andCLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_IDpresent in the environment (names checked only — no values read). So Half 1's scratch-Worker PoC appears executable from here, not account-inaccessible. What is missing is not access but authorization: deploying a scratch Worker and aneu-jurisdiction R2 bucket creates billable/side-effecting resources on Drew's Cloudflare account.Decision required (Drew): authorize one scratch deployment under the
jurisdictionPoC (no user data), i.e. may an agent run #2285 Half 1 non-interactively on that account?Unblocks on yes: #2285 Half 1 evidence → #3403 phase 0 → #3399 phase 1 (this chain, 3 tasks). Half 2 (written vendor/residency ask) remains Drew's regardless — it is correspondence, not code, and it is the part that gates EU-residency DPA language.
Meanwhile: #3399 task 5800 is being blocked
escalated-to-user(not parked again) so the chain stops burning a 30-minute park cycle on an unchanged gate. Nothing in the repo was edited.developing-today commentedon Nov 3, 2026
agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 6817 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03
29 remaining items
dezren39 commentedon Nov 16, 2026
agent-note:v1
state: done (Half 1 PoC)
task: 17426
lane: code-c (Muse, repo-worker-code)
stage: claimed -> results recorded
Half 1 PoC results — task 17426, 2026-11-16
Scratch Worker
poc-2285-jurisdiction(one Durable Object classPocObject, SQLite migration) deployed to the fleet Cloudflare account with the account-wide token from fleet secrets; no user data. All times 2026-11-16 ~09:12–09:20Z.Mechanic 1 — jurisdiction IDs differ: CONFIRMED. For name
alpha: unrestrictedidFromName= d775bc86…,jurisdiction("eu").idFromName= ebd60838…,jurisdiction("us").idFromName= 8a7cb6c3… — all three pairwise different.Mechanic 2 —
ctx.id.jurisdictionreadback: CONFIRMED, one case untestable by construction. Inside the eu object it readseu, both infetchand in thealarm()handler (alarm armed +1.5s, jurisdiction recorded from inside the alarm:eu). Inside an unrestricted object it isundefined, again in bothfetchandalarm(). The second documented undefined case — an alarm scheduled before 2026-03-15 — cannot be exercised: alarms can only be scheduled in the future, so no alarm created today predates the cutoff. Recorded as not-testable rather than confirmed.Mechanic 3 — mismatched pair throws, unrestricted accepts: CONFIRMED. Presenting the eu ID to the
usjurisdictional subnamespace throwsTypeError: idFromString called on jurisdictional subnamespace with an ID from a different jurisdiction. Presenting the same eu ID to the unrestricted namespace silently succeeds and reaches the eu object (itswhoamireports jurisdictioneu) — the failure mode the design guards against is real.Mechanic 4 — eu export → us import, signatures verify: CONFIRMED. The eu object generated an ECDSA P-256 keypair, signed a payload in-object, and exported
{payload, signature, publicKeyJwk}; the us object imported the key andcrypto.subtle.verifyreturnedverified: true(signedInJurisdictioneu, verifiedInJurisdictionus).Mechanic 5 — R2 jurisdiction: MIXED — S3 endpoint isolation confirmed; the Worker-binding claim is REFUTED in this account, and wrangler bucket creation silently ignored the jurisdiction flag.
wrangler r2 bucket create poc-2285-eu --jurisdiction eu(wrangler 4.147.0) created a default bucket (location ENAM, no jurisdiction) with no warning. The EU bucket used for the real test,poc-2285-eu2, was created via the API with headercf-r2-jurisdiction: euand verified in the create response:jurisdiction: "eu", location EEUR. (A jurisdiction-less API GET of an eu bucket also returns "does not exist" unless thecf-r2-jurisdiction: euheader is sent.)jurisdiction = "eu"put/get/deleted fine — and so did a binding without any jurisdiction field. The claim "the Worker binding needs the jurisdiction field" does not hold on the current runtime (compat date 2025-09-01): a plain binding reached the eu-jurisdiction bucket. Any design that relies on a plain binding being unable to touch an eu bucket is unsafe today.Half 2 (the written vendor ask) is out of scope for this task — cancelled by Drew 2026-11-16 (ledger cloudflare-scratch-poc-2285: "Don't send it"); nothing was sent.
Cleanup: scratch Worker, DO, and both R2 buckets are being deleted in the same pass; a confirmation follows this comment.
dezren39 commentedon Nov 16, 2026
agent-note:v1
state: done (Half 1 PoC cleanup)
task: 17426
lane: code-c (Muse, repo-worker-code)
Cleanup confirmed: scratch Worker
poc-2285-jurisdictiondeleted (workers.dev URL now 404); R2 bucketspoc-2285-eu2(eu) andpoc-2285-defaultdeleted — DELETE returned success for both, and a jurisdiction-headed GET of poc-2285-eu2 now returns 10006 "does not exist" (the bucket LIST view still shows the name minutes later; that is the same list-propagation lag observed during creation, the headed GET is authoritative). Local scratch dir removed. Nothing retained.Half 1 of issue #2285 is complete: mechanics 1–4 confirmed, mechanic 5 mixed (S3 jurisdiction-endpoint isolation confirmed; the Worker binding jurisdiction-field claim refuted on the current runtime; wrangler's
--jurisdiction eubucket-create flag silently produced a default bucket — API header route required). Half 2 remains cancelled by Drew (ledger cloudflare-scratch-poc-2285) and the issue stays open for its remaining tracking purpose; the dependent tasks (5798, 5800, 5801 / issue #3399) can now consume these results.dezren39 commentedon Nov 23, 2026
Reconciliation + close — Lane CA, 2026-11-22
Picked up via
fleet agent next(archer, shortlist rank 5; Lane BN's dep-order audit listed #2285 as a chain head gating dep-blocked tasks). Fresh revalidation this pass: issue OPEN, no live claim by another worker in its recent history, no open PR. Verdict: every acceptance line is substantively discharged; the issue stays open only as a stale chain head, and downstream #3403 is explicitly waiting on this issue closing (its 2026-11-16 note: "the broker returns it when #2285 closes").Acceptance disposition
PoC results recorded — MET. Half 1 results posted 2026-11-16 (task 17426): mechanics 1–4 confirmed (jurisdiction IDs pairwise differ;
ctx.id.jurisdictionreadseuin fetch and alarm,undefinedin an unrestricted object in both; mismatched jurisdictional pair throws while an unrestricted namespace silently accepts a foreign ID; eu export → us import signatures verify). Mechanic 5 recorded as MIXED: S3 jurisdiction-endpoint isolation confirmed; the Worker-binding jurisdiction-field claim refuted on the current runtime; wrangler 4.147.0--jurisdiction eusilently created a default bucket (APIcf-r2-jurisdictionheader route required). The one unconfirmed sub-case — an alarm scheduled before 2026-03-15 readingundefined— is recorded as not-testable by construction (alarms can only be scheduled in the future). Cleanup confirmed the same day: scratch Worker and both R2 buckets deleted, nothing retained.Vendor ask sent + answer recorded — VOID by Drew, recorded. Drew answered pending-decisions item
cloudflare-scratch-poc-2285on 2026-11-16: "Don't send it", rejecting the premise of seeking a residency commitment. Nothing was sent, and no hosted-edition residency claim may cite a Cloudflare commitment that was never obtained. The literal "sent verbatim" line is therefore void, not pending.Residency gaps filed as their own issue — MET via id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403 (with id: add immutable jurisdiction and migration metadata to hosted directory #3399). The gaps the PoC exposed are carried by id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403, the pre-filed follow-up that consumes this issue's evidence, including its decision record: keep hosted production signup/migration disabled until a provisioning surface validates the actual jurisdiction of each bucket; do not treat an R2 binding
jurisdictionfield as an isolation control; use verified API provisioning rather than trusting the wrangler flag. The residency-claim consequence is recorded on id: add immutable jurisdiction and migration metadata to hosted directory #3399 (gate-moved notice, 2026-11-16: acceptance must not wait on or claim a Cloudflare residency answer). A fresh search this pass found no other gap issue, and none is needed — id: gate hosted jurisdiction provisioning on verified DO and R2 support #3403 is the named home.Closing as completed so the dep chain (#3403 → #3399 and the tasks gated behind them) can move. Reopen if a vendor residency answer is ever actually sought.