Repository navigation
feat(A08): 工具确认、持久执行恢复与助手结果保护 - #883
Merged
LIghtJUNction merged 3 commits intoOct 18, 2026
Merged
LIghtJUNction merged 3 commits into
LIghtJUNction merged 3 commits into
Conversation
This was referenced Oct 12, 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.
开发主线交接(2026-10-12)
开发默认主线现为
wip/rust-core-go-extensions;旧单体main与traditional冻结于3948a0a1ee1cefdd016a7aa45a11851545bb4b85。分支交接不是发布、部署或验收通过。原问题、源码基线、测试与未完成项保留;旧单体路径仅作历史证据,后续先在微服务源码重新确认并按职责移植,不回灌旧数据库/权限/资金实现。主线/S11 跟踪:#895。Extore 商品同步:#894,未验收,禁止部署,尤其禁止合并/推送 Extore
main。本 PR 的候选实现和已有验证范围保持原样;不因主线交接自动合并或标记验收完成。
A08-v3 增量已推送(2026-10-12)
最新提交:
ba20314543de,父提交5a8314b2950f,复用现有 PR。保留 Draft / A08 未全部完成,未合并、部署或操作真实资金。ConfirmationAuthority.VerifyToolConfirmation:验证服务端构造的完整意图摘要、原用户/账户、direct-human session、有效期及审计引用;没有退回旧候选中较弱的普通权限确认接口。现有confirmation.go、confirmation_test.go和grants.go原样保留。对本次提交的实际验证
GOTOOLCHAIN=local GOPROXY=off:toolmarket + 共用脱敏模块 + 历史脱敏叶测试go test -race -count=3PASS,go vetPASS,gofmt清洁。仍被依赖阻断
A01/A02 真实人类会话确认与业务权限、A07 会话绑定模型委托、A03/A06 账本/资金/退款、S11 宿主接线及跨 Core/Go/PostgreSQL/MCP/浏览器验收仍未完成。本轮只有合成 MCP/授权/资金测试,不能作为已安全启用付费工具或整站发布的证据。
A08 本轮进展
仍是 Draft,完整 A08 未验收。 在现有 PR 上继续推进,未另开 PR、未合并、未部署。最新提交
5a8314b2950f4cb2cf7c05b8c5e99a7680222779,父提交ad9416ece4d891a85a8622bfc68cc3c17db1e903。本轮将上一轮未推送的候选和新的检查一起提交;相对父提交只修改 22 个 A08 文件,整个 PR 相对 WIP 基线为 23 文件,+2318/-155。仅改
assistant/和toolmarket/。不修改 Core 公共入口、账本、schema、proto、Go 宿主、依赖、工作流或生产配置。1. 工具执行确认与限额
ConfirmationAuthority是等待 A01/A02 提供实现的本地适配接口,不是已实现 Core RPC。没有独立可信人类会话验证时,确认返回 503 且授权不激活,包括免费工具。human_session类型及短有效期。远程检查后重新检查撤销、安装变化、取消及完整意图;旧记录没有确认凭据不能自动成为有效授权。2. 持久执行与恢复
dispatched,收到结果后过滤再保存。3. 助手与结果保护
/invoke、Go 调用方和 Chat 都在共用返回位置过滤结果及当前凭据,不只处理存档。Result.Value为 JSON 数据,不再要求调用方断言原 Go 具体类型。unknown,关闭该会话并保留原 call-id;不把错误当作明确的外部失败。私有错误文本不外泄。验证
本地已运行
Linux / Go 1.23.2,使用隔离 GOPATH、禁止网络依赖下载;并非项目规定的 mise 环境。
go test -race -count=3 -timeout=90s -json .:70 个唯一顶层测试、75 个子用例通过。没有将重复次数计作新增测试。两个辅助入口在父进程中跳过:一个是本轮实际由父测试执行的子进程入口,另一个是未配置的 mocklab 集成入口。09f6b2c847ed7a38d3282827d44f34424b09707d、toolmarket 整目录 tree5659738728e5e0dd0c17075e69479d0999fba8d1均与本地候选匹配,包含文件内容、路径及权限。仓库 CI:已通过并核验产物
Assistant and promotions checks — success。使用 Go 1.27.2,不是复用初始两文件补丁的通过记录。
go vet -mod=readonly ./...、go test -mod=readonly -race -count=1 -json ./...及CGO_ENABLED=0 go build -mod=readonly -trimpath ./cmd/extensions通过。TestA08HistorySurvivesActualProcessExitWithRestrictedPostgresRole实际启动写入进程,非正常退出后另起进程重放,检查原子历史回执、敏感信息过滤、用户隔离及撤销。另一项为既有 PostgreSQL 隔离、回滚、并发和恢复测试。completed和killed-after-dispatch场景均通过。计数服务确认重启未重复外部调用;授权消耗保留。6ec5aa58871504ef2ba168b1aa2f34b342b97f71afaa518ed79ea58fcbb6fa6c。产物记录的实际测试提交是 GitHub 合并候选ab41dc41c37704102586f3915b747c9d2f37da14,不是 PR head 本身。归档源码中 assistant/toolmarket 的 56 个文件与本地提交候选逐字节一致;该比较不声称仓库其他目录没有来自基分支的更新。数据库和操作系统子进程是真实执行;身份、模型完成结果、MCP 外部服务和资金适配仍使用合成测试数据。因此该 CI 不等于真实 Rust 身份/委托/账本/供应商/整站联合验收。
尚未完成的 A08 与交接
testAuthority只能用于测试。/api/assistant/chat仍明确不可用。不得用 root Key 或 session 冒充 API Key。不自动启用不可用能力,不访问生产数据、真实资金或付费/有副作用外部服务。存档过滤不自动清除旧数据,也不能证明任意编码绝无秘密。