Repository navigation
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
juruoO-o
approved these changes
Nov 12, 2026
juruoO-o
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed persistence-before-publication ordering and the accompanying repeated-save APPEND_MERGE baseline handling.
No blocking findings in the reviewed diff. This was a static review of source and tests; local Java/Maven tests were not run.
chickenlj
added a commit
that referenced
this pull request
Nov 13, 2026
chickenlj
added a commit
that referenced
this pull request
Nov 13, 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.
问题
Fixes #3621.
基于 main
8cc6795b076d49c49bd9b617038dd4c58e22671c(2.1.0-SNAPSHOT)。权限门将工具标记为 ASKING 并记录确认 replyId 后,当前实现立即向订阅者发布
RequireUserConfirmEvent,状态保存却在调用尾部执行。原生日志中的interaction/requested也可能仍在 recorder 缓冲区。提示已可见而暂停状态尚不可恢复,会留下崩溃恢复窗口。修改
验证
使用确定性模型和本地存储替身,无真实模型或凭证。旧状态存储与原生日志均有覆盖:事件可见时恢复 ASKING 和 replyId、原生待确认请求恰好一次、保存门闩阻止提前发布、保存失败、父代理转发、call 路径,以及提示处取消后重建实例批准/拒绝。两个并发写入测试分别覆盖第一次保存和调用尾保存的 APPEND_MERGE 冲突。
npm test:13 个通过;npm run validate、npm run broken-links通过。执行命令(从仓库根目录,Maven 使用临时 Maven Central 镜像设置):
mvn -T1C -pl agentscope-core -am -Dtest=ReActAgentPermissionPersistenceTest,ReActAgentHitlTest -Dsurefire.failIfNoSpecifiedTests=false test mvn -B -T1C clean verify最终版本的全仓
clean verify通过(99 个模块,4 分 45 秒)。首轮构建曾在未改动的 ServiceToolConfirmationCoordinatorTest.managedTimeoutWaitsForControlPlaneCancelledDecision上出现RESOLVED/OWNER_UNAVAILABLE不一致;该测试类在未修改主线快照中单独运行 10 个通过,最终全仓重跑中 Service 的 135 个测试也通过(2 个条件跳过)。未为此修改 Service 或弱化断言。范围与限制
测试验证持久化 ACK 与事件可见性的顺序,以及实例重建后的恢复;未进行实际进程崩溃、跨节点数据库或 SSE 端到端测试。跨进程恢复仍要求持久化后端。保存成功后断连可能留下已持久化但未展示的请求,不保证提示恰好一次送达,也不改变原生 writer 租约和取消清理机制。
不处理 #3619、外部执行暂停、所有类型的暂停事件或 Service 授权协调协议。
Checklist