From ca003d5b62fbaec3e4e584854e2e2ee04e36945e Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Sun, 1 Nov 2026 01:43:38 -0600 Subject: [PATCH] docs(id): recommend partitioned shared-world residency --- ...01_investigation_shared_world_residency.md | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 doc/2026-11-01_investigation_shared_world_residency.md diff --git a/doc/2026-11-01_investigation_shared_world_residency.md b/doc/2026-11-01_investigation_shared_world_residency.md new file mode 100644 index 0000000000..858368d38b --- /dev/null +++ b/doc/2026-11-01_investigation_shared_world_residency.md @@ -0,0 +1,42 @@ +# Investigation: shared-world residency and federation + +**Status:** recommendation, not an implemented or legally approved promise. Issue [#2284](https://github.com/developing-today/code/issues/2284); parent [#2056](https://github.com/developing-today/code/issues/2056). This builds on the [DO jurisdiction investigation](2026-10-29T11-43-02Z_investigation_do_jurisdiction_pinning/2026-10-29T11-43-02Z_investigation_do_jurisdiction_pinning.md), particularly §§1–2, and the hosted design in #2044. Product and legal review and the deployment checks below remain necessary. + +## Decision: partition, not cross-jurisdiction membership + +Recommend **one hosted world per jurisdiction**, with membership, data and world-owned blobs confined to that partition. A user whose recorded jurisdiction differs cannot join, read, write or receive membership lists of that world. The same display name in EU and US identifies independent worlds, not replicas or an automatically shared namespace. Name resolution, invitations and authorization must carry the authoritative jurisdiction and world ID, not just a name; absence, mismatch or an unknown jurisdiction fails closed. No consent toggle silently converts a partition into a cross-border world. Explicit export of a copy outside the protected service is distinct from membership and does not preserve the residency claim for that copy. + +**Cost:** people in different partitions cannot collaborate in one hosted world; discovery and invitations need jurisdiction-aware UX, and separate world state and blob copies increase storage, operations and fragmentation. A jurisdiction move is a migration with deliberate handling of world membership, not an in-place flag flip. Shards and overflow (#2059) inherit the world partition; spilling to an uncontrolled native node is not a residency-preserving fallback. FedRAMP is not assumed available or equivalent to a consumer EU/US option. + +## 1–2. Membership and participant metadata + +Treat participant identity, membership, invitations, access logs and even the fact that someone joined as potentially personal or sensitive metadata. A world DO inevitably learns its participants: partitioning keeps its own durable membership record in the world jurisdiction, but does **not** guarantee every copy of that metadata stays there. The shared directory described in #2283 is a separate, potentially out-of-jurisdiction exception; pseudonymization or hashing does not automatically make identifiers non-personal. Do not put private membership in a global directory or public KV cache. Inspect discovery, billing, support, audit, logs and analytics separately; minimize and document what leaves. Cloudflare documents that DO IDs are logged outside the jurisdiction for billing and debugging. A partition is not an access-control system: every list, invitation and read/write requires authorization, and every shard and background job must enforce the same boundary. + +## 3. World blobs + +The world, not the uploader's personal store, owns each world blob reference: place its bytes in the R2 bucket for the **world's** jurisdiction. Authorize accesses through that world; knowing a content hash is not authorization. If a personal blob is added to a same-jurisdiction world, record an authorized reference and ensure the world copy remains available independently of the user's account. Deduplicate only inside that jurisdiction; track all references before garbage collection so removing an account or world cannot delete another's blob. Identical hashes in separate buckets are separate copies, not permission to read across regions. A user in another jurisdiction is denied world/blob access, including direct URLs, cache hits and cross-bucket fallback; a deliberate export is a separately disclosed copy and outside this claim. Signed URLs, caches, replication, backups and operational logging need their own enforcement and locality review. + +## 4. Native bridge + +An Iroh node's physical location and operator are not guaranteed by its identity, signatures or an EU user's DO. Once synchronized to an arbitrary native node, neither its storage nor later forwarding can be promised EU-only. For residency-scoped world content, disable native synchronization by default and reject it unless an independently verified, enforceable path/location policy is designed and approved; a peer's self-declaration is insufficient. An explicit export may allow the user to put a copy on a native node after clear disclosure, but it is not world federation and the provider cannot control or recall subsequent copies. Even a hosted EU DO can be accessed by a Worker elsewhere: DO jurisdiction alone does not localize traffic or processing. + +## 5. Federation and relay + +Apply the same rule to each hop, not just endpoints: discovery, federated replicas, proxies, transient relay queues, media, telemetry and hot-world overflow can process, store or reveal data and participation outside a boundary. For residency-scoped world content, deny unknown or noncompliant peers and relay paths; do not assume signatures, end-to-end encryption, a claimed region or an optional privacy relay prove location. Encryption can protect content from a relay while still exposing routing and timing metadata. A future enabled path needs verifiable placement and operational/contractual controls for every participating component, including retention and failure paths. #2036 must incorporate these constraints; #3398 owns their design. Explicitly exported copies and independent communications are outside the hosted world's residency claim. + +## Honest privacy-policy position and launch gates + +**Today:** these are proposed controls, not evidence of a deployed service or a present residency guarantee. Do not publish the text below as a current fact until implementation and operational/legal verification. + +**Conditional draft after verification:** “For a hosted world configured for a supported jurisdiction, we intend to store its hosted world state, membership records and world blobs in that jurisdiction, and restrict hosted membership to accounts assigned to it. Separate worlds with the same name in different jurisdictions are not automatically shared. Some service metadata, including Durable Object IDs used for billing and debugging, may be processed outside that jurisdiction; our shared account directory and public caches may also be located or served elsewhere. Network traffic and processing, support, and any copies you export or synchronize with independent devices or services can cross borders. We cannot control what those recipients do with their copies.” This is a limited architecture disclosure, not a blanket data-sovereignty, GDPR-compliance, country-specific, or metadata-residency promise. Specify actual directory location, vendors, data categories, purposes, retention, transfers and applicable legal mechanisms after legal review; do not characterize all public cache data as non-personal by default. + +Before offering the claim: verify routing and authorization across all ingress, shards, blob paths and jobs; inventory directories, caches, logs, backups, traffic and subprocessors; confirm deployments match policy; obtain the written Cloudflare clarification on SQLite followers/WAL and PITR in [#2285](https://github.com/developing-today/code/issues/2285); assess Regional Services / metadata-boundary coverage separately. Until those gates pass, do not represent even the conditional durable-storage wording as an operational guarantee. + +## Follow-up design + +- [#3397](https://github.com/developing-today/code/issues/3397): world admission, identity, partitioned blobs and lifecycle; coordinate with #2283 and #2059. +- [#3398](https://github.com/developing-today/code/issues/3398): bridge, federation, relay and export boundary; coordinate with #2035, #2036 and #2058. + +## Evidence and limits + +The parent investigation cites [Cloudflare DO data location](https://developers.cloudflare.com/durable-objects/reference/data-location/) for jurisdiction-specific IDs, local DO execution/storage, globally accessible Workers and out-of-region ID logging; [R2 data location](https://developers.cloudflare.com/r2/reference/data-location/) for immutable bucket jurisdictions; and [KV data location](https://developers.cloudflare.com/kv/reference/data-location/) for caches potentially outside the jurisdiction. Those are platform properties, not proof that this proposed whole-system policy exists. No live deployment, path trace, vendor confirmation or legal review was performed here.