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: implement Residency boundaries for native bridge, federation and relays (design #3398) #5529
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).
Expectation: the claimant binds and launches the bound opencode session this cycle; it implements the residency boundaries in pkgs/id per the design doc and drives task 9596 to a terminal state.
Found via: atomic claim, fleet queue claim --lane code-a --filter 'repo = code'; lane assignment direct
Fresh evidence: issue id: implement Residency boundaries for native bridge, federation and relays (design #3398) #5529 OPEN, no hard-stop labels, no open implementation PR. Step 1 of design doc/2026-11-01_design_id3398.md §7 is merged (PR id: residency policy vocabulary and evaluator (#3398 step 1) #5629: residency vocabulary + pure evaluator in id-core). The packet was rewritten by the 2026-11-13 steer: implement per the issue's current spec, issue wins over the old packet. The design itself makes steps 1–5 separately reviewable packets, so this task takes the next ordered step — step 2 — and steps 3–5 get ordered follow-on packets; that is the split the earlier packet_defect blocks asked for, executed instead of re-blocked.
Plan (step 2): new residency_inventory module in id-core: deployment configuration (resource records for journal, blob store, replicas, backups, caches, outbox, telemetry store, execution hosts), resource-bound evidence, and admission evaluation for world create/open/restore and managed work submission on top of the step-1 evaluator. A category neither recorded nor explicitly declared absent is unsupported and denies a scoped world; unscoped behavior unchanged.
What landed (step 2 — storage/processing inventory/admission): new residency_inventory module in id-core: deployment configuration (journal, blob store, replicas, backups, caches, outbox, telemetry stores, execution hosts), resource-bound evidence, and admission for world create/open/restore plus managed work submission on top of the step-1 evaluator. A resource class neither recorded nor declared absent is unsupported and denies a scoped world; unscoped behavior unchanged. 13 new tests; cargo test -p id-core residency 37 passed, 0 failed on the laptop.
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.
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).
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.
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.
Metadata destinations explicit; telemetry cannot reintroduce blocked identifiers — PASS. Step 4 MetadataGate: egress only to destinations declared in the policy's Metadata plane.
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).
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.
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.
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.
Activity
developing-today commentedon Nov 4, 2026
CODE-1356
dezren39 commentedon Nov 4, 2026
🤖 Agent note · handed off
opencode, so this lane does not work it directly; handing off to the laptop opencode-claimant, which launches a bound session for the task.dezren39 commentedon Nov 4, 2026
🤖 Agent note · handed off
opencode; handing back to the laptop opencode-claimant.50 remaining items
dezren39 commentedon Nov 13, 2026
🤖 Agent note · picked up — step 2 slice
fleet queue claim --lane code-a --filter 'repo = code'; lane assignment directresidencyvocabulary + pure evaluator in id-core). The packet was rewritten by the 2026-11-13 steer: implement per the issue's current spec, issue wins over the old packet. The design itself makes steps 1–5 separately reviewable packets, so this task takes the next ordered step — step 2 — and steps 3–5 get ordered follow-on packets; that is the split the earlier packet_defect blocks asked for, executed instead of re-blocked.residency_inventorymodule in id-core: deployment configuration (resource records for journal, blob store, replicas, backups, caches, outbox, telemetry store, execution hosts), resource-bound evidence, and admission evaluation for world create/open/restore and managed work submission on top of the step-1 evaluator. A category neither recorded nor explicitly declared absent is unsupported and denies a scoped world; unscoped behavior unchanged.Merge pull request #9391 from developing-today/queue/9596-5529-reside…
dezren39 commentedon Nov 13, 2026
🤖 Agent note · done — design step 2 landed; steps 3–5 split into ordered follow-ons
residency_inventorymodule in id-core: deployment configuration (journal, blob store, replicas, backups, caches, outbox, telemetry stores, execution hosts), resource-bound evidence, and admission for world create/open/restore plus managed work submission on top of the step-1 evaluator. A resource class neither recorded nor declared absent is unsupported and denies a scoped world; unscoped behavior unchanged. 13 new tests;cargo test -p id-core residency37 passed, 0 failed on the laptop.feat(id): residency policy checks for native sync and the outbox (#5529…
feat(id): residency policy checks for native sync and the outbox (#5529…
id-events: residency route policy for federation, relays and metadata (…
dezren39 commentedon Nov 16, 2026
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.
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.
Merge pull request #10666 from developing-today/queue/15857-9394-spil…