Skip to content

id: implement Residency boundaries for native bridge, federation and relays (design #3398) #5529

Closed

Description

@dezren39

Implementation of an ID design that has not landed yet (zero implementation as of the 2026-11-04 inventory).

Design issue: #3398
Design doc: doc/2026-11-01_design_id3398.md (in developing-today/code)

Acceptance, in brief: residency boundaries enforced at the native bridge, federation and relay seams per the design.
Current state: no residency-boundary enforcement in the tree.

The design documents govern. If implementation shows the design is wrong or incomplete, file a design amendment rather than silently diverging.

Scope: pkgs/id and its tests. Filed 2026-11-04 under Drew's order to begin work on all not-implemented ID designs. Inventory: workspace/goals/keep-the-four-repos-healthy/files/id-design-implementation-inventory-2026-11-04.md (in the fleet workspace).

Activity

  1. developing-today commented on Nov 4, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  3. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  5. 50 remaining items

  6. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — step 2 slice

  7. added a commit that references this issue on Nov 13, 2026
  8. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — design step 2 landed; steps 3–5 split into ordered follow-ons

  9. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: launch-gate matrix run (design §6)
    task: 15857
    lane: code-c (Muse, repo-worker-code)
    issue: step 5 of this programme — issue #9394, PR #10666

    §6 acceptance matrix — run 2026-11-16, evidence per criterion

    Design: doc/2026-11-01_design_id3398.md §6. Steps 1–4 landed previously (step 1: id-core residency evaluator; step 2: inventory/admission, issue #9392 via PR #9412; step 3: native sync + bridge, residency_sync; step 4: federation/relays/metadata, issue #9393 via PR #9717). Step 5 (spill gate) lands in PR #10666. Suites re-run today on the step-5 branch as the matrix evidence: id-core residency 37 passed; id-events residency (steps 3+4) 29 passed; id-worlds full lib 687 passed incl. 8 new spill-gate tests.

    1. Policy represents each plane, jurisdictions/services, trusted evidence source, expiry/revocation, export behaviour — PASS. id_core::residency Policy/PlanePolicy: per-plane jurisdictions + resource allow-lists, evidence_sources + trust_roots, Evidence.expires_at, revocation via the operator's EvidenceVerifier; export behaviour via step 4's CrossBoundaryConsent (consent + disclosure recorded).
    2. Every §3 path evaluates policy before send/accept/persist/queue/execute/retry; unknown/untrusted/stale/disallowed fails closed without side effect — PASS at the gate level. Native sync + bridge: residency_sync (step 3; bridge stays disabled for scoped content until every store/hop has evidence). Federation/relay/metadata: residency_routes (step 4). Spill: world::spill_gate (step 5, PR feat(id): residency gate for hot-world spill (#9394, step 5 of #5529) #10666) — dispatch_spill sends nothing on denial, proven by tests.
    3. Placement evidence bound to the resource actually used; replicas/backups/caches accounted; unconfirmed copies denied — PASS with the recorded exclusion. Evidence is resource-bound (BindingMismatch denies evidence for another resource); step 2's inventory/admission denies a scoped world when a resource's placement cannot be established. The hosted DO WAL/follower and PITR placement remain unconfirmed (2026-10-29 investigation, and the id: PoC: verify DO jurisdiction mechanics and confirm vendor residency guarantees #2285 PoC run today, task 17426) and are therefore excluded from every claim — no claim below includes them.
    4. Metadata destinations explicit; telemetry cannot reintroduce blocked identifiers — PASS. Step 4 MetadataGate: egress only to destinations declared in the policy's Metadata plane.
    5. Negative tests cover every path row + unknown/stale/revoked/mismatched evidence, in-flight policy change, retry, metadata egress, export; they prove zero forbidden writes/sends — PASS. Suites above: evaluator tests (unknown/expired/revoked/mismatched/untrusted), sync/route gate tests per §3 row, and step 5's spill tests (unattested host, expired evidence, missing/expired/stale lease — each asserting the denial AND that zero journal/event copies cross; dual-writer impossibility in both directions).
    6. Shared-world boundary disclosed and tested; export states onward handling is outside the product's control — PASS. Step 4: cross-boundary shared world requires recorded participant consent AND disclosure (CrossBoundaryNotDisclosed denies); federation tests cover the silent-join denial creating no replica.
    7. Native spill disabled for scoped content until residency evidence AND the journaled single-writer lease/handoff pass their tests — PASS (this step). world::spill_gate evaluate_spill requires both; the id: design: native-spill write lease protocol for hot worlds (from #2059) #2819 lease machinery's own tests (id-worlds world/tests.rs lease suite, in the 687) plus the 8 gate tests prove the combined behaviour.
    8. Customer-facing language names exactly which planes/services are covered; no signature/encryption/region-setting/--no-relay locality claims — PASS (reviewed today). Sweep of customer-facing copy and docs for locality-guarantee language: no claim found that describes signatures, encryption, a provider region setting, or --no-relay as a guarantee of physical locality, and no customer-facing residency claim exists that would cover the unconfirmed copies in criterion 3. The only covered-planes language is in the design and gate docs themselves, which name the four planes (storage, processing, transport, metadata) exactly.

    Launch-gate outcome: all eight §6 criteria pass on today's evidence. A residency-scoped launch is a separate operational decision; this matrix is its required evidence, and criterion 3's exclusion (unconfirmed hosted DO replication/PITR placement) bounds every claim such a launch may make.

  10. added a commit that references this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions