feat(runtime-host): add experimental direct peer transport - #3877
Merged
Conversation
M4n5ter
force-pushed
the
feat/runtime-host-direct-peer
branch
from
August 26, 2026 08:39
d637b17 to
e794649
Compare
Add a rust-libp2p Node addon and adapt direct peer streams to the existing Runtime Host framing, handshake, listener, profile, and CLI boundaries. Application traffic is admitted only after a direct path is established; coordination relay routes never carry Runtime Host frames. Generated-by: Codex
Hosted runners may carry an older installed stable toolchain. Update the stable channel before formatting, clippy, and addon builds so the crate's declared Rust 1.98 floor is enforced consistently. Generated-by: Codex
Only import AsyncWriteExt on the Unix implementation that uses it so Windows clippy succeeds with warnings denied. Generated-by: Codex
Bind application streams to verified direct connections, bound pre-authentication and cancellation lifecycles, and publish peer identities atomically across concurrent startup. Generated-by: OpenAI Codex
Recreate relay reservations after connection or listener loss, and make credential rejection an explicit terminal handshake outcome. Remove duplicate direct-connection state and exercise the native peer boundary in CI. Generated-by: Codex
M4n5ter
force-pushed
the
feat/runtime-host-direct-peer
branch
from
August 26, 2026 08:46
e794649 to
c806e3a
Compare
M4n5ter
marked this pull request as ready for review
August 26, 2026 08:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
English
Summary
Add the Milestone 1 experimental direct-peer transport from #3842:
Refs #3842
Verification
cargo fmt --checkandcargo clippy --locked --all-targets -- -D warningsnpm run lint,npm run format:check,npm run build, andnpm run typecheckhost.statusrequest both completed over a direct path after the coordination circuit closedAI use
Select exactly one:
Tool(s) and scope: Codex implemented and verified the change under the contributor's direction. Final human review remains required.
Checklist
Does this PR entail a change in behavior?
中文
摘要
实现 #3842 Milestone 1 的实验性 direct-peer transport:
Refs #3842
验证
cargo fmt --check与cargo clippy --locked --all-targets -- -D warningsnpm run lint、npm run format:check、npm run build与npm run typecheckhost.status请求都在协调 circuit 关闭后经 direct path 完成AI 使用
请且仅选择一项:
工具与范围:Codex 在贡献者指导下实现并验证本次改动;最终仍需人工审查。
Checklist
本 PR 是否改变行为?