Repository navigation
refactor(agentdock): 采用正式节点配对协议契约 - #63
Merged
Merged
Conversation
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.
背景
旧 #58 依赖未合并的 agentdock-protocol#19,因此已经关闭。正式配对契约后来由 agentdock-protocol#20 合并,当前 NexusDock 仍保留本地设备 ID/节点名称校验、手写 Pair 请求类型和 connect_path 字面量。
本 PR 基于最新
main,只重做 #58 仍然有效的部分,并使用 #20 的最终 API。改动
agentdock-protocol到 fix(storage): stabilize SQLite control plane access #20 merge commit6131ae03b178protocol.PairRequestprotocol.ValidDeviceID/protocol.ValidNodeNameconnect_path改用protocol.ConnectPathprotocol.PairResponse解码,约束实际 wire 形状scripts/check-contracts.py静态扫描,并新增真实 Router 回归测试,用protocol.PairPath/protocol.ConnectPath请求,防止两份路径静默漂移验证
go test ./internal/agentdock ./internal/httpx -count=1git diff --checkmake checkmake ci以上均通过,包含
go test -race ./...、前端 production build、contracts/repository 检查。Supersedes the valid intent of #58.