[moz] docs(§21): v3 discussion prompt 重构 + 分支创建时机 + L2 约束 #104

Merged
pangtong-fujunshi merged 3 commits from docs/21-v3-discussion-refinement into main 2026-06-20 13:31:03 +00:00
Showing only changes of commit 65eb7d6a99 - Show all commits
+2 -2
View File
@@ -639,7 +639,7 @@ issue_closed 走 auto-pass(和 review_merged 一样),纯通知不需要 ag
3.【认领】如果你需要参与,创建 sub Issue 并在 parent Issue comment 注册:
- 创建 sub IssuePOST /repos/{repo}/issues
title: "[repo][sub][parent #{N}] 任务名"
body: "Parent: #{N}\n## 任务\n..."
body: "Parent: #{N}\nDepends: #M (如果有前序依赖)\n## 任务\n..."
assignees: ["{你的 agent_id}"]
- 创建后在 parent Issue comment"[{你的角色名}] 我创建了 sub #{M}: {任务名},我负责 {简述}"
4.【风险】如果你发现风险、不合理的假设、或遗漏的环节,直接提出
@@ -713,7 +713,7 @@ agent 的 comment + Gitea 自动引用 = parent Issue 中有完整的 sub 注册
| 阶段 | 谁创建分支? | 分支名 |
|------|-----------|-------|
| DiscussionPhase 3 | ❌ 不创建分支 | — |
| ExecutorPhase 4 | agent 收到 executor prompt 后自己创建 | `fix/{sub_issue_number}-{brief}` |
| ExecutorPhase 4 | agent 收到 executor prompt 后自己创建 | `{type}/{sub_issue_number}-{brief}`type 按 Issue 类型:fix/feat/impl/docs/refactor/test |
**executor prompt 的 steps 中明确指定分支名**
```