feat(runtime): add Claude Native driver and Messages configuration - #478
Merged
Merged
Conversation
This was referenced Sep 13, 2026
LichKing-2234
marked this pull request as ready for review
September 13, 2026 01:46
sda-rob
enabled auto-merge (squash)
September 13, 2026 01:46
sda-rob
previously approved these changes
Sep 13, 2026
sda-rob
approved these changes
Sep 14, 2026
This was referenced Sep 14, 2026
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.
Pull Request
Closes #437
变更摘要
Claude 模板此前缺少真实 Native Driver,既有模型配置链路只支持 Responses。本 PR 接入固定版本的官方 Claude Agent SDK,实现独立 Conversation Session、持久请求去重、事件恢复、停止与隔离;ModelCatalog → Worker → Host 通过可信模板绑定消费 Messages V3 配置。
d1b705a0cd91617a5707fae25d80cb0be3057950,保留 Apache-2.0 声明。SDK0.3.246、Native2.1.246固定并校验实际文件哈希。fallback-credit-2026-06-01beta。templateModelBindings必填,缺失时在打开 Store 前拒绝启动;部署包升级要求见deploy/README.md。验收标准
以下 pass 表示当前提交的技术验收证据已齐备;人工验证确认与 CODEOWNER Review 仍需按流程完成。
自动验证
b1c1492a571a7b7b80a1d1a4e24dc34cd6d5e517;Standards 与 Spec 独立评审覆盖 tree6ea0b6fd436e81b4dde1a3500349ca73e62a2ccd,各 0 个剩余发现;下述新镜像及真实环境证据已由两位评审分别复核。vulnerability-b1c1492a571a7b7b80a1d1a4e24dc34cd6d5e517-34737955584-1;verdict SHA-256d667d781532047811882991503bb08c56b5e55c007a0a4b85cb10bfa2aeefd8c。--concurrency=1。针对实际 Native 进程启动/历史读取超过外层 5 秒的 CI 超时,在共享 Claude 模型切换用例及 Claude Native 集成测试文件使用 30 秒测试期限,断言、fixture 等待和产品退出期限保持不变。合并后的首次本地全量测试曾命中未修改的 Codex fixture 的 5 秒超时,原样重跑通过;最终增量的完整本地验证序列通过。pnpm docker:build因 npm 下载超时失败;当前提交 CI 的全部镜像构建通过,以下实际 ARM64 Runtime 镜像也已独立构建、扫描与验收。当前实际镜像与真实模型证据
全部使用
claude-opus-5、SDK0.3.246/ Native2.1.246,绑定干净 sourceb1c1492a571a7b7b80a1d1a4e24dc34cd6d5e517。镜像从该提交的 git archive 按原 Dockerfile 构建。sha256:3f3d650ba02dacb69997c20c6ebed231465ba9d8522103cb4a52b89b5720187a;ARM64 manifestsha256:582bf2d22af7a1596e86a99053009971732c6c119451379030dc8666dcdcad28;configsha256:aab6efc2b16142c16afc937ea02ec709a01ad6b7a1cc0c6b63f242e52af5fe10。registry bytes、layers、source label 回读一致。provenance 报告 SHA-2566805cb99c606716c38d21e0054b1d5c33c89bfeedc0d617fd171d5aac5ff2b0f。8f7d77a91b95dbeda31393463b2ac7d2b490c577486829b732ce1ac41a747034;Pod 与入口切换容器相同。configuration-1-0478cad2f265a472a15b96a18539d57de7011f2254e4039bd87e6d52202b5cff;报告 SHA-256665fc84e3ca4c430ec3ce09f4943085db37f51ffbd7a9e6db0d5b077b928241e,harness SHA-2568b389a29dd8e193ea4b279fc945898f53e6e37a606ad0a2da3cc532fbb4ff311。container-endpoint-7c604126-4768-453f-a818-5657c66a5f34;报告 SHA-2569e9ded0ed5622539a11af4912e71d9a5a51a7783fd0714317f70382780227685,harness SHA-256e8f3ad371168bdb72c1e96edb4ca5e175a4f2041053f808ba87217897712f2cd。0.74.0、有效数据库、完整 OS/应用 inventory,复用仓库扫描策略,无例外:0 blocking / 0 errors;仍有 5 项 MEDIUM。verdict SHA-2568ac4d48b3ed2453c9626c9c665e4bd4096f057ef69ed03cc3fc7951a31ad7d9f。7da5fa37d5b15ac74f6beeea0bc898d93264a1e2bf2da091724ac9b73dffd223。该本机报告imageDigest=null;实际 Linux 切换由上表独立证明。symlink-escape,用 SDK 历史逐项关联实际 Read 与结果;任何越界成功或 canary 泄漏均使测试失败。直接路径拒绝另有同版本 Native CLI + 合成模型的重启前后回归。人工验证
结论:需要人工确认,保留
ready-for-human。ready-for-human;CODEOWNER Approve 独立完成。技术验收 pass 不代替这两项人工动作。风险与回退
templateModelBindings,custom-only 装配显式传[]。