Skip to content

Commit cb99074

Browse files
committed
fix(agents): 恢复 dev-lifecycle 高风险写命令 deny 规则(安全门禁回归)
此前工作区误删后随 git add -A 带入提交,导致 06 对抗测试与 server-permissions §7.4 失败,并阻断 release workflow CI。 恢复自 fd70ec5 的 11 条 deny 规则(gh pr create/merge、git push、 git worktree、npm publish 等)。
1 parent 3055239 commit cb99074

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

assets/agents/dev-lifecycle.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ color: '#00bcd4'
66
permission:
77
bash:
88
"*": "allow"
9+
"git push*": "deny"
10+
"git worktree remove*": "deny"
11+
"git worktree add*": "deny"
12+
"git checkout -b*": "deny"
13+
"git tag*": "deny"
14+
"gh pr create*": "deny"
15+
"gh pr merge*": "deny"
16+
"gh issue close*": "deny"
17+
"gh issue create*": "deny"
18+
"gh release create*": "deny"
19+
"npm publish*": "deny"
920
---
1021

1122
<system-reminder>
@@ -37,7 +48,7 @@ permission:
3748
## 全局约束
3849

3950
### 阶段契约(单一来源)
40-
- 阶段推进遵循 `stage-contract`阶段契约,随 flow-* 技能提供):阶段完成 = Flow Record body checklist `- [x] <stage>`,门禁与顺序以该契约为准
51+
- 阶段推进遵循 `stage-contract`assets/prompts/stage-contract.md):阶段完成 = Flow Record body checklist `- [x] <stage>`,门禁与顺序以该契约为准
4152
- 阶段推进调用 `flow_control{op:"stage-start"|"stage-complete"}`(requirements 完成需用户确认;高风险 Flow 的 design→tasks 需确认)
4253

4354
### 文档目录

0 commit comments

Comments
 (0)