Title: design(id): residency & boundaries framework — opt-in evidence, sanctions, and intranet-mode capabilities · Issue #5683 · developing-today/code · GitHub
Open Graph Title: design(id): residency & boundaries framework — opt-in evidence, sanctions, and intranet-mode capabilities · Issue #5683 · developing-today/code
X Title: design(id): residency & boundaries framework — opt-in evidence, sanctions, and intranet-mode capabilities · Issue #5683 · developing-today/code
Description: Summary Build the framework that lets a server, a world, or a user declare and enforce residency and boundary rules — as opt-in capabilities that admins and users can ENABLE, never as defaults imposed on everyone. This extends and unifie...
Open Graph Description: Summary Build the framework that lets a server, a world, or a user declare and enforce residency and boundary rules — as opt-in capabilities that admins and users can ENABLE, never as defaults impo...
X Description: Summary Build the framework that lets a server, a world, or a user declare and enforce residency and boundary rules — as opt-in capabilities that admins and users can ENABLE, never as defaults impo...
Opengraph URL: https://github.com/developing-today/code/issues/5683
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"design(id): residency & boundaries framework — opt-in evidence, sanctions, and intranet-mode capabilities","articleBody":"## Summary\n\nBuild the **framework** that lets a server, a world, or a user declare and enforce residency and boundary rules — as opt-in capabilities that admins and users can ENABLE, never as defaults imposed on everyone.\n\nThis extends and unifies three existing threads: #2283 (jurisdiction-aware hosted stores), #3397 (jurisdiction-partitioned worlds / blobs), and #3398 (residency boundaries for bridge / federation / relays). Those issues each touch one surface. This issue is the shared framework underneath them: what counts as evidence of residency / citizenship, how a boundary is declared, how it is enforced at each surface, and how violations and edge cases behave.\n\nRelates to: #2283, #3397, #3398.\n\n## Priority and framing note (from Drew)\n\nWanted, but **framework-first and lower urgency**. Do NOT over-index on EU privacy / GDPR-style use cases — they are one possible use of the framework, not its reason to exist and not its design centre.\n\nTwo framing rules are hard requirements for every design produced from this issue:\n\n1. **Capabilities, never defaults.** Restrictions are capabilities a server admin or user can enable for their server / world / account. Nothing in this framework turns a restriction on by default, and no deployment inherits a boundary it did not choose.\n2. **Basic frameworks first.** Ship the declaration, evidence, and enforcement skeleton in its simplest useful form before any sophisticated policy language, automated classification, or jurisdiction-specific rule packs.\n\n## What the framework must cover\n\n### 1. Declared citizenship / residency as evidence\n\n- A user (or an org on a user's behalf) can declare citizenship and/or residency; the declaration is recorded as **evidence**, with provenance: who declared it, when, on what basis, and what (if anything) verified it.\n- Distinguish clearly: self-declaration, org-attested declaration, and document / provider-verified declaration. The framework stores the level of assurance, it does not pretend all declarations are equal.\n- Declarations are data with a lifetime: expiry, renewal, revocation, and what happens to access granted on the strength of an expired declaration.\n- Privacy of the declaration itself: who can see another user's declared citizenship / residency, in what form (exact value vs \"satisfies boundary X\" boolean), and how to avoid the evidence store becoming a sensitive dossier.\n\n### 2. Public IP as evidence\n\n- The public IP a connection arrives from as a residency signal: geolocation lookup, its known error modes (VPNs, CGNAT, corporate egress, mobile networks, satellite), and how it is recorded (raw IP vs derived country/region vs a yes/no boundary verdict, and for how long).\n- IP evidence is weak evidence: the design must state what decisions it may and may not drive alone, and how it combines with declared evidence (e.g. declaration admits, IP contradicts → what happens?).\n- Spoofing and proxy realities: X-Forwarded-For trust, relay / bridge connections where the visible IP is the relay's, and federation where the originating server asserts the evidence.\n\n### 3. Sanctions boundaries\n\n- Boundaries of the form: *this server / world does not interact with users, organisations, or counterparties in a specified set of countries / on a specified set of sanctions lists* — in particular the countries and organisations the United States prohibits interaction with.\n- Model the list as data, not code: who supplies / updates the list, how list updates propagate, effective dates, and what happens to existing accounts / worlds / federation links when a list entry appears or is removed.\n- Scope of \"interaction\": account creation, login, world membership, blob storage, bridge / federation traffic, relay transit — a sanctions boundary may apply to some and not others; the declaration must say which.\n- False positives and appeals: name collisions, dual citizens, residents vs citizens, travellers temporarily present — the framework needs a human review / exception path, not just a hard block with no recourse.\n\n### 4. Intranet-mode servers\n\n- A server mode where **generic user activity is only permitted from inside the boundary**: connections from outside the intranet boundary cannot perform ordinary user activity.\n- Boundary definition options: source IP ranges, VPN / overlay network membership, mTLS client identity, or an org IdP assertion — and how an admin declares which.\n- **2FA gates**: stepping up authentication at the boundary (entering from a new network, escalating privilege, admin actions) — which actions require the step-up and how long a step-up lasts.\n- **Org-escrowed credentials**: the organisation escrows user credentials and **proxies required details** to the server on the user's behalf, so the server can enforce its requirements (identity, residency attestation, group membership) without holding raw user data it does not need. Design: what is escrowed, what is proxied, in what form (assertions vs raw values), who can un-escrow, audit of every proxy use, and user visibility into what was shared about them.\n- Degraded behaviour: boundary unreachable, IdP down, VPN down — fail closed for generic activity? Any break-glass path, who holds it, and how its use is logged.\n\n### 5. Enforcement surfaces (the framework applied)\n\nFor each surface, state how a declared boundary is checked and what the user on the wrong side experiences:\n\n- Account signup and login (extends #2283 store routing: jurisdiction may also pin where a user's store / world data lives).\n- World membership and world blob storage (extends #3397 partitioning: a world may be partitioned or pinned by jurisdiction).\n- Bridge, federation, and relays (extends #3398: traffic crossing a boundary, evidence asserted by a peer server, relays that transit a jurisdiction they do not serve).\n- Capability grants and delegation: can a boundary restrict who a capability may be granted to, or where it may be exercised from?\n\n### 6. Declaration model (shared vocabulary)\n\n- One declaration format used by all surfaces: subject (user / org / server / world), boundary type (residency, citizenship, sanctions, network), evidence requirements, enforcement points, and failure behaviour (deny, warn, step-up, quarantine).\n- Composability: server boundary AND world boundary AND user preference — who wins on conflict, and is the result always the intersection?\n- Audit: every boundary decision that denies or step-ups is logged with the evidence used, in a form an admin can review and a user can appeal.\n\n## Non-goals\n\n- Turning any restriction on by default, for any deployment (see framing rules).\n- Building jurisdiction-specific rule packs (e.g. a full GDPR compliance suite) in this framework pass.\n- Legal advice or a legal determination of what any particular deployment must do — the framework provides capabilities; the operator's obligations are the operator's.\n- Replacing #2283 / #3397 / #3398 — those remain the surface-specific designs; this framework supplies their shared vocabulary and evidence model.\n\n## Acceptance criteria for the design deliverable\n\n- [ ] A framework document covering evidence types (declaration, IP, attestation) with assurance levels, the declaration model, and enforcement behaviour per surface, linked from this issue.\n- [ ] Every restriction described strictly as an opt-in capability, with its default state (off) stated.\n- [ ] Sanctions boundaries modelled as updatable data with propagation, grandfathering, and appeal behaviour specified.\n- [ ] Intranet mode specified including 2FA step-up points and the org-escrow / proxy model, with audit and user-visibility requirements.\n- [ ] Worked examples (at least: a sanctions-enabled public server; an intranet-mode org server; a jurisdiction-pinned world) showing declarations end-to-end.\n- [ ] Follow-on design tickets filed from the Decomposition sketch (or the sketch revised with reasons).\n\n## Decomposition sketch\n\nFollow-on design tickets to be filed from this issue (indicative; revise during the work):\n\n1. Design: residency evidence model — declarations, assurance levels, provenance, lifetime, and who can see what.\n2. Design: public-IP evidence — derivation, retention, error modes, and the decisions IP evidence may / may not drive.\n3. Design: sanctions boundary data model — list sourcing, updates, scope of interaction, grandfathering, and appeals.\n4. Design: intranet-mode servers — boundary definition, generic-activity gating, fail-closed behaviour, and break-glass.\n5. Design: 2FA step-up gates and org-escrowed credential proxying — escrow contents, proxied assertions, audit, and user visibility.\n6. Design: boundary enforcement across bridge / federation / relays — peer-asserted evidence and transit rules (feeds #3398).\n7. Design: boundary audit & appeals UX — decision logs, admin review, and the user-facing explanation / appeal flow.\n\n## Open questions\n\n- What is the minimum evidence a boundary may require and still be called the same capability — can a server enable a sanctions boundary on IP evidence alone, declaration alone, or must it declare its evidence mix?\n- When declared evidence and IP evidence disagree, is the default framework behaviour deny, step-up, or flag-for-review — and can the admin choose?\n- Who is authoritative for a sanctions list — a list shipped with the software, an operator-supplied list, an external feed — and how are disagreements between them resolved?\n- Does an org-escrowed credential proxy need the user's ongoing consent per use, standing consent, or org authority alone — and how does the user see/revoke it?\n- Can a user belong to worlds under contradictory boundaries (citizen of A, resident in B, server excludes B)? Is that the user's problem, the world's, or the framework's?\n- How long is boundary evidence retained after an account closes, and who can demand its deletion?\n- For federation: must a peer server's evidence assertions be trusted, verified, or treated as unverified claims — and what breaks in each choice?\n\n---\n\n*Framework extension of #2283, #3397, and #3398. Framing per Drew: opt-in capabilities only, framework-first, lower urgency; do not over-index on EU privacy.*\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-04T23:09:36Z","url":"https://github.com/developing-today/code/issues/5683"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4836a10-5714-db55-6942-731384c25a58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A862:11DCCF:219074:2C5311:6B06132D |
| html-safe-nonce | 63727927276c74cf0f042106f41b876761a1bfd5f6ba652218529b77dca37c7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODYyOjExRENDRjoyMTkwNzQ6MkM1MzExOjZCMDYxMzJEIiwidmlzaXRvcl9pZCI6IjEzOTc3ODQxODkwMTcxMzM4NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 87d8429d88cd0bad6a7943153cef23d28e84b9fb5ceb2c23a2bb75066ac9335a |
| hovercard-subject-tag | issue:6213152399 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5683/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3e9f2ec50926da2c0f5c3b7ebb655459654a547bb11bf3774467e487d8af51c/developing-today/code/issues/5683 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3e9f2ec50926da2c0f5c3b7ebb655459654a547bb11bf3774467e487d8af51c/developing-today/code/issues/5683 |
| og:image:alt | Summary Build the framework that lets a server, a world, or a user declare and enforce residency and boundary rules — as opt-in capabilities that admins and users can ENABLE, never as defaults impo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e58943f0186bb8d97b217393c2724a49ab47e4aefefc43595a90fa04699066c9 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 23517473abc6d5da019b4958bd421644e98a418b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width