Skip to content

docs(id): design record for boundary enforcement inputs (#8851) - #11412

Merged
dezren39 merged 1 commit into
mainfrom
queue/20223-8851-declaration-residence
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20223-8851-declaration-residence

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Closes part 1 of #8851 (design note). Plumbing is listed in §7 and remains to land; call-site wiring stays with #7787 parts 2-4 (queue task 15074).

What this decides

The three inputs boundary_surfaces::check_surface consumes, which today nothing outside id-core can produce (verified at b4b6a1b16b: git grep BoundaryDeclaration -- pkgs/id returns only crates/id-core/src/):

  1. Declaration residence — operator ServerConfig [[boundaries]] (server_config/mod.rs:178), content-addressed by BoundaryDeclaration::id, resolved per scope through existing ScopeRef (boundary.rs:71) and intersected by boundary::effective (boundary.rs:468). No second operator artifact.
  2. Evidence sources — self-signed per-hop evidence from the component that performs the hop (account store, serving connection, world blob store, turn host, federation peer/relay), with peer claims built through peer_asserted_claim (boundary_surfaces.rs:267) and one trust_roots list (residency.rs:90) serving both peer trust and issuer trust. Follows the landed design(id): peer trust classes + signed-data acceptance rule #9141 acceptance rule.
  3. Verifier — one app-side EvidenceVerifier (residency.rs:159), ed25519 verify_strict on the existing sync path (artifact.rs:531) plus B31 revocation; decides signature/revocation only, never policy, so it can fail closed but cannot widen a boundary.

The record names every location it relies on at b4b6a1b16b, records four rejected alternatives with reasons, and states the open points (per-hop key custody, relay trust) rather than deciding them.

Not in this PR

Calling check_surface from Directory::sign_up/sign_up_keyed/authenticate, world membership/blob paths, or federation ingress/egress — that is #7787 parts 2-4, queue task 15074, which this record exists to unblock.

Part of #8851. Parent #5683.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Decides the three inputs #7787 parts 2-4 need before any surface can be
wired: declaration residence (operator ServerConfig [[boundaries]],
content-addressed, scope-resolved via ScopeRef + effective()), evidence
sources (self-signed per-hop evidence from the component performing the
hop, peer claims capped by peer_asserted_claim, one trust_roots list),
and the app-side EvidenceVerifier (ed25519 verify_strict + B31
revocation, no policy decisions).

Plumbing steps and the explicit out-of-scope call-site wiring (task
15074) are listed in §7.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 21:44
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 21550e17-14de-4fd6-a46c-26886f29a7af
Commits

Reviewing files that changed from the base of the PR and between c913c08 and 0ee275e.

Files selected for processing: 1

  • doc/2026-11-17T21-55-00Z_design_id8851_boundary_inputs.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T21:47:50.095654Z 0ee275e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ee275ed0f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +114 to +115
1. local hops the process performed itself (a, b, c) — `ProviderVerified` when
the local issuer is a trust root;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve assurance grades independently of issuer trust

For a local hop backed only by the component's own signed location claim, this rule assigns ProviderVerified merely because the issuer is a trust root. That conflates issuer trust with independent verification: residency.rs explicitly says assurance is stored, never inferred or auto-promoted, and the referenced framework's §3.2 reserves ProviderVerified for a fact verified by a trusted third party. A claims-builder following this decision would let self-reported placement satisfy a boundary requiring provider verification. Preserve the claim's established assurance and provenance, applying trust-root membership as a separate acceptance check.

Useful? React with 👍 / 👎.

Comment on lines +143 to +146
- `revoked` consults the revocation state the key lifecycle already maintains:
slice B31's per-peer `PeerPolicy::policy_version`
(`b31_peer_classes.rs`) for peer issuers, and the key-revocation record for
local issuers. Revocation is checked per call, not cached across a session,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Consult actual revocation records for peer issuers

When a peer key is revoked or a peer is emergency-disabled without changing its B31 policy snapshot, consulting PeerPolicy::policy_version cannot detect the revocation: that field versions policy changes, rather than recording key or issuer revocations. The existing B02 RevocationRegistry provides is_key_blocked_at and is_peer_blocked_at for precisely these cases (pkgs/id/crates/id-sync/src/federation/slices/b02_key_revocation.rs). Specify those current revocation checks for peer issuers as well as local issuers; otherwise a verifier implemented as prescribed can continue accepting evidence from a revoked peer despite checking on every call.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant