Merge pull request 'Pin permission modes and the in-process hook bus' (#173) from feature/permission-hooks into main
ci / test (push) Successful in 1m52s

This commit was merged in pull request #173.
This commit is contained in:
2026-10-03 17:06:50 +00:00
7 changed files with 35 additions and 6 deletions
+29
View File
@@ -0,0 +1,29 @@
# feature/permission-hooks 任务卡
任务主记录:https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/173 ;状态:进行中;owner:weichen
## 基线与授权
- 权威仓: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、回滚文件、代码编排。
## 同步记录
| 节点 | sync_base_sha | tested_head_sha | checked_at |
|---|---|---|---|
| 启动 | 6bedf75746d4465ef36a4b129b9859769d1c340d | 6bedf75746d4465ef36a4b129b9859769d1c340d | 2026-10-03T16:43:41Z |
## 结果与验证(完成后填写)
- 结果:native 0a52d9f,squad beea97e,core cf7df54,backend ce95cd1,frontend 0eaced4,ui aa67088。
- 验证:make test 通过。计划模式拒绝 write_artifact,默认模式仍执行。钩子适配与原回调的停止原因、提醒次数、拒绝次数一致。
- 影响与剩余项:高风险 shell 在默认模式下改为询问。没有绕过确认的模式。
| 同步前验收 | 6bedf75746d4465ef36a4b129b9859769d1c340d | 2e558e4733663c56e7aee867795fdbf079cd6079 | 2026-10-03T17:06:35Z |
| 同步前验收 | 6bedf75746d4465ef36a4b129b9859769d1c340d | 4349d5ea81000b03acae8d1152ecadea7887ba60 | 2026-10-03T17:06:36Z |
| 同步前验收 | 6bedf75746d4465ef36a4b129b9859769d1c340d | 245fe39b931e4364e19bac4f0a371d440a3826b8 | 2026-10-03T17:06:38Z |