GeezerVison is showing github.com — docs(id): design federated query fan-out (#9144) by dezren39 · Pull Request #11411 · developing-today/code
Conversation
dezren39
commented
Nov 17, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Design record for #9144 (epic #9108, program #9106, section 1): federated query fan-out for ID servers.
Lands doc/2026-11-17T15-40-00Z_design_id_federated_query_fanout/.
Covers, per the issue acceptance:
- local store first, then a prioritized remote list in configured order, with the ordering and configuration surface stated (list shape,
priority, eligibility, negative-answer semantics);
- trusted-relay recursion with relay permission as a peer-class property,
max_hops default 3 / ceiling 8, signed grant-chain path for loop and duplicate detection, breadth × depth bounded by a per-query reserve vector;
- signature and validation at every hop, with the existing
relay_gate.rs gate sequence cited as the precedent;
- end-to-end responder signature plus per-hop provenance (
ProvenanceEntry with status, path, receipts) and its requester-facing presentation;
- deadline, timeout and partial-answer behaviour (
complete/partial, unanswered_peers[], truncation honesty inherited from v1 §8);
- compatibility: empty remote list is the v1 local path, new answer fields are additive;
- open questions Q1–Q6 with the default chosen for each, and what this record does not decide.
Relationship to existing records: it extends doc/2026-11-08T06-45-00Z_design_id_query_local_remote_v1/ and the Part B V3 query contract in doc/2026-11-13T03-40-00Z_design_id_atlas-summit/part-b/versioned-design.md, contradicting neither.
Statement coverage: every S1.47–S1.63 statement maps to a filed sub-issue (#10229 S1.47–S1.53, #10263 S1.54–S1.57 + S1.61, #10249 S1.58–S1.62, #10264 S1.63, #10250 the V2 receipt schema). Three scopes the analysis found uncovered are recorded as proposed follow-on scopes rather than filed here, per the dispatch rule against filing unrequested issues: the fan-out config keys (owner #9111), deadline/timeout/completeness semantics, and requester-facing provenance presentation.
Docs-only; no code, no build.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Adds a dated design record for S1.47-S1.63: local-first answering,
prioritized remotes in configured order, trusted-relay recursion with a
max-hops bound, per-hop signature validation and provenance, deadline
and partial-answer semantics, the config surface #9111 must own, and
open questions with chosen defaults.
Extends the v1 local/remote query contract and the Part B V3 query
contract without changing either. Maps every statement to the filed
sub-issues (#10229, #10249, #10250, #10263, #10264) and records the
three uncovered scopes as follow-on proposals.
coderabbitai
Bot
commented
Nov 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 58 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:
5eee99fc-28b5-41f3-8fcd-614601bd870d
Commits
-
Reviewing files that changed from the base of the PR and between b4b6a1b and a8a90f4.
Files selected for processing: 1
-
doc/2026-11-17T15-40-00Z_design_id_federated_query_fanout/2026-11-17T15-40-00Z_design_id_federated_query_fanout.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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:52:07.981870Z |
a8a90f4 |
New commits |
ℹ️ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
B16 is the trusted-relay/max-hop slice (#10263) and B17 the signature and
provenance slice (#10249); the earlier table had those two swapped. Also
records that S1.64-S1.72 duplicate/loop statements and slices B20-B22 are
owned by #9145, not this design.
There was a problem hiding this comment.
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: af783b68c5
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+238
to
+240
|
|
- `complete` — every eligible remote in the list answered, or the limit was
|
|
|
reached before the list was exhausted (with `stop_at_limit`). This is an
|
|
|
explicit claim, scoped to the eligible remotes at the time of the query.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve partial completeness when stopping at the result limit
When stop_at_limit stops the query before all eligible remotes are queried, this rule marks the response complete even though additional matches may remain within the claimed scope. That contradicts §7.2’s requirement to return partial whenever an eligible remote was not asked to completion, as well as §7.4 and the retained v1 §8 prohibition on presenting limit-truncated results as complete. Keep this case partial/truncated, or introduce a separate limit-satisfied indicator instead of asserting completeness.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
A relay's outbound work is an invocation under the cooperative timeout
contract, and the fan-out answer keeps finished peers rather than
discarding them. Completeness claims are qualified by the federated-search
tampering threat model (B30, #10279). Follow-on scope 2 is now filed as a
new #9144 child; scopes 1 and 3 attach to #9111 and #10249.
This was referenced Nov 17, 2026
There was a problem hiding this comment.
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: a8a90f4a4c
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+249
to
+251
|
|
- `complete` — every eligible remote in the list answered, or the limit was
|
|
|
reached before the list was exhausted (with `stop_at_limit`). This is an
|
|
|
explicit claim, scoped to the eligible remotes at the time of the query.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Propagate partial completeness from relay responses
When a trusted relay returns a partial answer because one of its downstream peers timed out or exhausted its budget, every direct remote can still have “answered,” satisfying this definition of complete at the origin. Preserving the responder's signed bytes (§6.2) does not prevent the aggregate envelope from incorrectly upgrading that partial response. Require affirmative completeness for each contributing remote's claimed scope and propagate downstream partial outcomes into the aggregate marker and unanswered-peer reporting.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|