From 48bdab24fe56920ef9cd95c82c8906f5a147d929 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sat, 20 Jun 2026 10:17:42 +0800 Subject: [PATCH] =?UTF-8?q?[moz]=20docs(=C2=A721):=20fix=20S1=20typo=20+?= =?UTF-8?q?=20S2=20PriorContextSection=20=E6=94=B9=E9=80=A0=E6=A0=87?= =?UTF-8?q?=E6=B3=A8=20+=20S3=20CI=20status=20webhook=20=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=20+=20G1=20refactor=20=E6=B5=8B=E8=AF=95=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/design/21-unified-toolchain-design.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/design/21-unified-toolchain-design.md b/docs/design/21-unified-toolchain-design.md index 4485793..10a2c59 100644 --- a/docs/design/21-unified-toolchain-design.md +++ b/docs/design/21-unified-toolchain-design.md @@ -33,7 +33,7 @@ changelog: v1.0 初版 | 机制 | 当前实现 | 用途 | 迁移到 Issue 后 | |------|---------|------|----------------| | **任务描述** | tasks.title + tasks.description | agent 知道"做什么" | Issue title + body ✅ 直接对应 | -| **验收标准** | tasks.must_hives | agent 知道"怎样算完成" | Issue body 中结构化字段(模板定义)✅ | +| **验收标准** | tasks.must_haves | agent 知道"怎样算完成" | Issue body 中结构化字段(模板定义)✅ | | **前序产出** | outputs 表 + depends_on | agent 知道"之前做了什么" | Issue body 引用前序 Issue/PR(如 `Depends: #42`)⚠️ 需约定 | | **handoff comment** | comment_type=handoff | agent 之间交接上下文(≥50 字符) | Issue/PR comment ✅ 天然支持 | | **讨论历史** | comments 表 | agent 知道"讨论了什么" | Issue/PR comment 全部可读 ✅ | @@ -174,7 +174,7 @@ issue_assigned: - "读重构目标 + 影响范围(Issue body)" - "git checkout main && git pull origin main" - "git checkout -b refactor/{issue_number}-{brief}" - - "重构 + 确保现有测试不 break(python -m pytest tests/ -m 'not e2e' -q)" + - "重构 + 确保现有测试不 break(python -m pytest tests/unit/ -q)" - "git add -A && git commit -m '[moz] refactor: {title}' && git push" - "创建 PR(body 说明重构内容和影响范围)" - "等 CI + Review" @@ -323,7 +323,7 @@ _ACTION_HINTS = { | action_type | 终态信号 | 检测方式 | 兜底 | |-------------|---------|---------|------| | issue_assigned | PR merged 或 Issue closed | webhook: pull_request/closed(merged=true) 或 issues/closed | — | -| ci_failure | CI status 从 fail → success | webhook: CI status 变化 | agent Issue comment 汇报 | +| ci_failure | CI status 从 fail → success | webhook: CI status 变化 ⚠️ 需 §20 Phase 0 验证 CI status webhook 是否触发 | agent Issue comment 汇报 | | review_result(APPROVED) | PR merged | webhook: pull_request/closed(merged=true) | — | | review_result(CHANGES) | agent push 到分支 | webhook: pull_request/synchronize | — | | review_request | Review 提交 | webhook: pull_request_review | — | @@ -421,7 +421,7 @@ L2 重组后的 section 列表: | priority | Section | 内容 | 来源 | |----------|---------|------|------| | 10 | ToolchainContextSection | action_hint + Issue body(需求)+ steps | 改造:从模板加载 steps | -| 20 | PriorContextSection | 前序产出(解析 Issue body 中的 Depends) | 新增 | +| 20 | PriorContextSection | 前序产出(解析 Issue body 中的 Depends) | 改造现有 PriorOutputsSection | | 30 | RoleSkillSection | 角色 Skill | 不变 | | 35 | GitOperationSection | Git 操作说明(PR #95 已有) | 不变 | | 40 | GiteaApiSection | Gitea API 指引(Issue comment + PR 创建) | 改造:去掉黑板 API |