Repository navigation
[WS2][WS6][CONTRACT-REQUEST] 补全 mesh 计数与 501 错误透传 - #25
Merged
Merged
Conversation
added 18 commits
October 19, 2026 21:40
# Conflicts: # Cargo.lock
…to ws0/merge-audit-20261019
# Conflicts: # crates/cranibox-llm/src/server.rs # crates/cranibox-llm/src/server/engine.rs
…to ws2/proxy-completion
added 7 commits
October 19, 2026 23:47
fliaping
marked this pull request as ready for review
October 20, 2026 06:30
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.
补全 Messages token 计数的远端 mesh 调用:使用专用 count_tokens 路径并保留 provider/model/session,强制非流式;Coordinated 委托计数 adapter;不支持计数时保留 501,避免将健康节点误判为离线。普通请求的 C8 home_offline / claude_node_offline 映射保留。
共享契约 #23 已合并;本分支已合入 main、#24 的 964a0cf 与 #22 的 7ac8c99,并完成 RemoteRouter、Coordinated、mesh 错误映射与测试代码审查。#24 已合入 main(fd1ed77)。#22 原头 7ac8c99 的 15 项检查全部成功;其计数入口与 #24 有两处冲突,本集成分支已解决并完整保留 #22 原提交,最终以本 PR 全绿的集成头合入,再核验 #22 自动合并状态及 main 与本头的源码一致。已转为正式 PR,原工作区未提交修改未纳入。
回归覆盖专用路径、session、stream 移除、无效协议/请求体拒绝、连续三次 501 保持节点健康,以及预置互信的三节点 TCP/Noise 计数、Hub 退出后本机及备用节点回退、传输密文。初次补丁的 484 项 workspace 测试结果见 crates/cranibox-llm/tests/COUNT-MESH-VALIDATION.md;2026-10-20 当前组合在指定远端隔离容器重新通过 fmt、workspace/all-targets Clippy、LLM 220 项和节点 64 项,0 失败,另有 5 项已有环境测试显式忽略。最终跨平台状态以最新提交 CI 为准。
不包含四家 OAuth 原生计数、真实设备首次配对及跨主机故障验收;Claude 真实订阅验证后置。不能用 mock 或预置互信代替这些验收。
最新头 60d3443 还修复三节点测试的版本同步顺序:Hub 凭据更新会推进 enablement 版本,必须先同步给 B 再修改启用列表。两次 Windows 旧头失败均落在 Hub 退出后的回退;远端反向验证去掉同步时出现启用记录覆盖/NoSecret,恢复后同一三节点用例通过(1 passed)。断言和计数路径均保留,没有忽略或重试失败。