GeezerVison is showing github.com — id serve: fan relay frames out to discovered peers by dezren39 · Pull Request #14242 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Slice 3 of #5534. Serve passed an empty fan-out set to the chained-relay ForwardingSink. This feeds it serve's live PeerDiscovery view through a NextPeers adapter. RelayGate is unchanged and still decides what is accepted.
Test: cargo test -p id-cli --features web relay_fan_out passes (new test: two discovered peers are both fanned out; empty discovery fans out to none).
Refs #5534 (remains open for remaining relay/peer lifecycle work).
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T09:35:43Z",
"session_id": "ses_e5df3234846ffepeY5dzl0wAKz",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code-worktrees/oc-code-06-22565",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code-worktrees/oc-code-06-22565",
"repo": "developing-today/code",
"branch": "oc-code-06/relay-fanout-22565",
"sha": "3c47b43f64a8122888c4d281ca89b30b4d898c7e"
},
"auth_subject": "oc-code-01",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
- Bug Fixes
- Relay forwarding now targets peers currently available through peer discovery, instead of having no forwarding destinations. This allows eligible traffic to reach discovered peers.
- The relay gate continues to control which traffic is accepted, so discovering a peer does not by itself mean all traffic will be forwarded to it.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 24, 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 20 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:
910c9ff4-1d4c-49e7-9ed9-da61d1696696
Commits
-
Reviewing files that changed from the base of the PR and between 3c47b43 and b52d5b6.
Files selected for processing: 1
-
pkgs/id/crates/id-cli/src/commands/serve.rs
No actionable comments were generated in the recent review.
Walkthrough
-
With the web feature enabled, the chained relay now gets its fan-out targets from the live PeerDiscovery table. A new adapter maps discovered peers to relay IDs and endpoint addresses. A test checks the adapter with an empty table and after adding peers.
Changes: Relay peer forwarding
| Layer / File(s) |
Summary |
Resolve relay fan-out targets pkgs/id/crates/id-cli/src/commands/serve.rs |
The web-enabled chained relay passes DiscoveredRelayPeers to ForwardingSink::fanning_out. The adapter maps discovered peers to relay IDs and endpoint addresses. A test checks the empty and populated discovery table cases. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Suggested reviewers: claude
Merge Risk: Minimal · previous review 3c47b
-
Serve now fans relay frames out to discovered peers instead of an empty set. No concrete merge-blocking defect was established.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Description Check |
 |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
 |
The title "id serve: fan relay frames out to discovered peers" matches the main change. With the web feature, serve now feeds the chained-relay ForwardingSink from the live PeerDiscovery table through… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "id serve: fan relay frames out to discovered peers" matches the main change. With the web feature, serve now feeds the chained-relay ForwardingSink from the live PeerDiscovery table through a DiscoveredRelayPeers adapter, instead of an empty target list. The summary and objectives both describe this change, and the test checks that two discovered peers receive fan-out while empty discovery yields none. RelayGate is unchanged.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- 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
-
Recent review info
-
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:
9fed0bff-88c1-4045-9cb8-e002753756a2
Commits
-
Reviewing files that changed from the base of the PR and between 08715cb and 3c47b43.
Files selected for processing: 1
-
pkgs/id/crates/id-cli/src/commands/serve.rs
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Rebase of PR #14242 (head 3c47b43) onto current main 72890ef via Git API (lane 1952-K): main added boundary-gate wrapping around the relay sink in the same hunk; resolution keeps the boundary gate and applies the PR change unchanged — DiscoveredRelayPeers NextPeers adapter fed by serve's live PeerDiscovery, plus its relay_fan_out test. Refs #5534.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane 1952-K (queue task 24089, PR shepherd): MERGED.
- Premise re-verified fresh: no reviews on this PR; linked issue id: implement ID messaging and relay protocol v1 (design #2036) #5534 still OPEN; current main still fanned relay frames out to an empty set (
ForwardingSink::fanning_out(..., Vec::new())), so the change was still needed, not superseded.
- Conflict cause: main had added boundary-gate wrapping around the relay sink in the same hunk after this branch diverged (mergeable=false/dirty).
- Resolution (Git API only, no clone): rebased the branch onto main 72890ef as new head b52d5b6 — the resulting PR diff is byte-identical in effect to the original (+49/−4, serve.rs only), with main's boundary gate preserved. Verified against current main sources:
ForwardingSink::fanning_out takes impl NextPeers + 'static, PeerDiscovery is Clone (Arc-backed) with peers()/update() unchanged, stale_test_peer test helper still present.
- Mergeability re-checked immediately before merge: mergeable=true, state clean. Merged 2026-11-27T02:03:20Z, merge commit 67b4eea.
- Verification note: a pre-merge
cargo test run via fleet Actions exec could not be dispatched (workflow dispatch TLS UnknownIssuer, the known fleet-exec dispatch failure); the PR body's recorded test (cargo test -p id-cli --features web relay_fan_out passing) covers the identical diff, and main-branch CI on the merge commit is the remaining verification venue.
|
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.
Assignees
No one assigned
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.
|