Why: Session mode, confirmation detail, and the shared tool gate now exist in the libraries the product builds. Evidence: make test passed. Plan mode rejects write_artifact while the default mode still runs it. Hook adapters match the old stop, reminder, and deny counts. Impact: Empty permission mode keeps today's profile policy. There is no mode that skips every confirmation. Refs: feature/permission-hooks Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6,11 +6,12 @@
|
||||
|
||||
- 权威仓:ssh://git@git-ssh.u1680832.nyat.app:31411/weichen/Agent-System-Dev.git;目标分支:main;R0(initial_base_sha)= 6bedf75746d4465ef36a4b129b9859769d1c340d
|
||||
- 工作区:/home/weichen/projects/Agent-System-Dev-wt-feature-permission-hooks(worktree);分支:feature/permission-hooks
|
||||
- 授权与交付终点:<本次允许的动作与终点;未授权事项写明>
|
||||
- 授权与交付终点:改 core、agent-native、agent-squad、backend、frontend、ui 与 Dev gitlink;开 PR、合入、task-finish。不改发布、不改写历史、不做绕过一切确认的模式。
|
||||
|
||||
## 目标与非目标
|
||||
|
||||
<预期结果、受影响入口/模块/契约;明确不做什么。>
|
||||
- 目标:三种权限模式(计划 / 默认 / 自动改文件);规则 deny > ask > allow;HookBus;ask_user 与 exit_plan_mode;确认卡显示参数并提供本会话始终允许;小队成员透传同一套门禁。
|
||||
- 非目标:绕过确认、进程级钩子、MCP OAuth、回滚文件、代码编排。
|
||||
|
||||
## 同步记录
|
||||
|
||||
@@ -20,6 +21,6 @@
|
||||
|
||||
## 结果与验证(完成后填写)
|
||||
|
||||
- 结果:
|
||||
- 验证:
|
||||
- 影响与剩余项:
|
||||
- 结果:native 0a52d9f,squad beea97e,core cf7df54,backend ce95cd1,frontend 0eaced4,ui aa67088。
|
||||
- 验证:make test 通过。计划模式拒绝 write_artifact,默认模式仍执行。钩子适配与原回调的停止原因、提醒次数、拒绝次数一致。
|
||||
- 影响与剩余项:高风险 shell 在默认模式下改为询问。没有绕过确认的模式。
|
||||
|
||||
Vendored
+1
-1
Submodule deps/agent-native updated: 6fd1d441a9...0a52d9f976
Vendored
+1
-1
Submodule deps/agent-squad updated: 4d534508a9...beea97e8cf
+1
-1
Submodule modules/backend updated: 7bef7a4f94...ce95cd1355
+1
-1
Submodule modules/core updated: 7c66075ee9...cf7df54874
+1
-1
Submodule modules/frontend updated: 5961b6e9bd...0eaced4d5a
+1
-1
Submodule modules/ui updated: 9c03457506...aa67088d54
Reference in New Issue
Block a user