1 Commits

Author SHA1 Message Date
ning-inspire
f4240ed0ae docs(guide): 测试策略升级为九层阶梯,新增 §7 仓库布局
- team-workflow-guide/index.html:#testing 扩成九层阶梯(含变异测试、编号追溯),
  新增 §7 单仓 / 嵌套 / 并列三种仓库布局与判据,修窄屏锚点遮挡与表格折行
- README / 指南 README / CHANGELOG 同步;example-project 测试规范加指针
- .agents/plan 落两轮计划:20261120-multi-repo-layout、20261120-test-strategy-chapter
2026-11-21 15:57:33 +08:00
12 changed files with 434 additions and 1273 deletions

View File

@@ -0,0 +1,153 @@
# 指南加一章:多仓库布局(单仓 / 嵌套 / 并列)
## 目标
`team-workflow-guide/index.html` 新增 **§7 仓库布局**:把「harness 与业务代码怎么放」讲清楚,
给出三种形态的适用条件、目录长相、落地命令与各自的坑,并明确推荐「嵌套仓库」。
读者是 **TL**(§1 装机时就要定布局),所以放在 §6 之后作为收尾章节,不改动既有编号与锚点。
## 不做什么
- 不动 `flow.html`(布局不属于某个阶段节点,泳道图没有它的位置)
- 不动任何 skill / 安装器 / 占位符(`containers/` 与 `PATH_MODE` 已经支持这三种形态)
- 不给 `example-project` 真挂 submodule:它是单仓形态的参考实现,`containers/` 保持「扩展位」
(与 `.agents/plan/20261117-example-project-layout-and-facts.md` 的结论一致)
- 不改 `example-project/AGENTS.md`(它描述的是单仓样例的目录,不承担通用布局说明)
## 改动清单
| 文件 | 改什么 |
|---|---|
| `team-workflow-guide/index.html` | TOC 加 `7. 仓库布局`;新增 `<section id="repos">`;§1.2 第 1 步加一句「先定布局」;§1.3 出口条件加一条 |
| `team-workflow-guide/README.md` | 「内容覆盖」列表补第 7 条 |
| `README.md`(根) | 实践表里的 `Mono repo` 行改成 `仓库布局`,说明三种形态并链到 `index.html#repos` |
## §7 正文结构
### 7.0 一句话 + 决策表
> 默认选 **嵌套**:主仓库装 harness,业务组件以 submodule 挂在 `containers/<组件>`。
> 只有当「组件少、没人管权限」或「harness 要给多个产品复用」时才偏离。
| 你的情况 | 选 | 一句话理由 |
|---|---|---|
| 一个产品、前后端 + 文档都是同一拨人 | 方式一 单仓 | 路径最简单,没有指针要维护 |
| 业务代码已有独立仓库 / 要按组件切权限与发布 | **方式二 嵌套(推荐)** | 目录路径与单仓完全一致,skill 与占位符零改动 |
| harness 是平台团队交付物,要服务 N 个产品 | 方式三 并列 | 解耦彻底,代价是 CI 与文档链接都要跨仓 |
### 7.1 三种形态对比
| 维度 | 一 · 单仓 | 二 · 嵌套(推荐) | 三 · 并列 |
|---|---|---|---|
| 目录长相 | 一个仓全装下 | 主仓 + `containers/*` 子模块 | 两个平级仓库,靠 `../` 关联 |
| harness 在哪 | 同仓 | 主仓(与 docs 同级) | 独立仓 |
| clone 后能用 | 直接 | 要 `--recurse-submodules` | 要 clone 两个仓且保持目录结构 |
| 权限边界 | 无(全员全仓) | 按组件仓切,主仓只放文档与 harness | 按仓切,harness 可只读 |
| agent 工作区 | 一个目录 | **一个目录**(子模块就在里面) | 两个目录,agent 通常只能看一个 |
| 升级 harness | 直接改 | 主仓单独一次提交 | 独立仓发版,各产品各自跟进 |
| 主要代价 | 仓库膨胀、CI 全量 | 指针要跟着子仓提交走 | 跨仓路径与链接极易断 |
### 7.2 方式一 · 单仓(mono repo)
```text
my-product/
├── AGENTS.md .agents/skills/ .mcp.json
├── docs/ architecture · features · facts · standards
├── containers/ backend/ frontend/ ← 就是普通目录
└── e2e/
```
- 适合:单产品、组件 1–3 个、团队规模小;**新项目起步的默认选择**
- `example-project/` 就是这个形态 —— 先按它长起来,撑不住再迁
- 坑:仓库变大后 clone 慢、CI 每次全量、没法「后端仓只给后端同学写权限」
- 迁移前先看:一个目录超过 ~2GB 或 CI 全量超过 15 分钟,就该考虑拆
### 7.3 方式二 · 嵌套仓库(推荐)
```text
my-product/ ← 主仓库:harness + 文档 + 胶水
├── AGENTS.md
├── .agents/skills/ ← 27 个 skill(随主仓分发)
├── docs/ ← architecture / features / facts / standards
├── containers/
│ ├── backend/ ← submodule → git@…/svc-backend.git
│ └── frontend/ ← submodule → git@…/web-app.git
└── e2e/
```
**为什么推荐**:`containers/backend` 与单仓里的普通目录**路径完全一样**,
所以 `AGENTS.md`、27 个 skill、占位符(`BACKEND_DIR` / `FRONTEND_DIR`)、测试命令
(`cd containers/backend && mvn test`)一个字都不用改;`init-harness.sh` 探测本来就优先
`containers/backend|frontend`。权限与发布仍按子仓库走,agent 只要打开主仓一个工作区。
命令:
```bash
# 主仓里挂子仓(子仓必须已有远端仓库)
git submodule add git@github.com:org/svc-backend.git containers/backend
git submodule add git@github.com:org/web-app.git containers/frontend
# 新人 clone(漏了 --recursive 就补这一步)
git clone --recurse-submodules git@github.com:org/my-product.git
git submodule update --init --recursive
```
铁律:
1. **先子仓、后主仓**:代码改动必须先在 `containers/backend` 里 commit + push,
再回主仓 commit 那个指针。反了就等于「主仓指向一个没有你代码的 commit」
2. **指针钉 commit,不钉分支**:要跟分支就显式 `git submodule update --remote`,
并且知道 CI 会跟着漂
3. **文档只留主仓**:`docs/features/`、`docs/architecture/` 不进子仓库 —— 否则同一份规格两处版本
4. **子仓内的构建产物各自 ignore**:`containers/*/target`、`node_modules`、`dist` 在各自仓里管
5. **子仓可见性**:看不到子仓的人等于看不到代码;至少要读权限,CI 用机器账号拉
### 7.4 方式三 · 独立 harness 仓库(并列)
```text
workspace/
├── harness/ ← 上下文 + skills + 文档骨架(独立仓库,平台团队维护)
└── product/ ← 业务代码(独立仓库)
```
- 关联靠**相对位置**:`../harness`、`../product`
- 装进 `product` 的产物必须用 `PATH_MODE=relative`(绝对路径会把别人的 home 目录写进 skill)
- **最大的坑是 agent 的工作区边界**:IDE Agent 通常只认打开的那个目录,
`../harness/docs/...` 多半读不到。现实里只有两种用法:
- **人切换目录**:装 harness 时人站在 `product`,需要查架构文档时再切到 `harness`
- **agent 双开**:agent 在 `product` 里干活,把 `harness` 用符号链接或 submodule 挂进来 ——
这时其实已经退化成方式二
- 适合:多个产品共用一套流程;harness 有独立发版节奏;harness 仓允许只读
- 坑:CI 要 checkout 两次(`actions/checkout` 的 `path:` 参数)、跨仓相对链接一改就断、
MR 里看不到「流程改动 + 代码改动」的完整 diff
### 7.5 三种形态下的 harness 升级动作
| 形态 | 升级 harness 的命令 | 注意 |
|---|---|---|
| 单仓 | 直接在仓里跑三个安装器 | 与业务改动同一个 MR,容易一起评审 |
| 嵌套 | 在主仓跑三个安装器;**不要**在 `containers/*` 里跑 | 子仓里的 skill 副本是无效副本 |
| 并列 | 在 `harness` 仓改,再 `PATH_MODE=relative` 装进 `product` | 装完要提交 `product` 里的 `.agents/` 与 `docs/` |
### 7.6 反模式
- 把 harness **复制**进多个仓各自改 → 立刻漂移,27 个 skill 各有各的版本
- 跨仓用**绝对路径**(`/Users/…`、`/home/…`)引用 harness → 换机器即断
- submodule 指向**个人分支** → 别人拉不到
- 子仓 A 里再挂子仓 B,深度超过两层 → 指针地狱,没人敢升级
## 与其它章节的交叉改动
| 位置 | 改什么 |
|---|---|
| §1.2 第 1 步 | 末尾加一句「多仓库项目先定布局(见 §7),布局决定 `AGENTS.md` 与文档写哪些路径」 |
| §1.3 出口条件 | 加一条「仓库布局已定:组件在 `containers/` 下就位(单仓 / 嵌套 / 并列都有明确说法)」 |
| TOC | `6. Skill 对照` 之后加 `7. 仓库布局` |
## 验证
1. `./.agents/verify.sh` 全绿(第 9 节查相对链接;本章不引入新链接目标)
2. 浏览器打开 `index.html`:TOC 能跳到 §7,三张表不溢出(窄屏横向滚动正常)、
两段目录树代码块不换行错位、`§7` 的锚点 `#repos` 可达
3. 全文口径与根 `README.md` 的「仓库布局」行一致(三种形态名称、推荐结论)

View File

@@ -0,0 +1,85 @@
# 指南加一章:测试策略(分层 + 在框架中的落点)
## 目标
把 `.tmp` 第 8–18 行的测试策略落进 `team-workflow-guide/index.html`:**一张表**说清
「九层测试分别由谁做、落在哪个 skill / 命令 / 落盘文件、不过会卡在哪」,
并用一段讲清 **变异测试** 为什么是 AI 测试的必需项、失败后怎么回炉。
现有 `§4 测试分层与归属` 只有「开发自测 vs QA 测试」两栏,讲归属不讲策略。
本章 **升级这一节**(`#testing` 锚点不变),不新增 §8 —— 否则两份测试内容会互相打架。
## 不做什么
- 不改任何 skill 模板(`dev-self-test` 里仍有 `{{E2E_DIR}}/tests/dev/` 通道)。
与「研发自测不写 E2E」的差异按 **迁移期规则** 写进正文,skill 对齐留作下一轮
- 不改 `example-project` 的测试代码与 `docs/standards/test.md` 的分类表,只加一句指针
- 不引入 lint 工具(example 现在没有 eslint / checkstyle),表里如实写「无专属 skill,项目自定命令」
- 不动 `flow.html`(测试层不落在角色交接的某一列上)
## 改动清单
| 文件 | 改什么 |
|---|---|
| `team-workflow-guide/index.html` | TOC `4. 测试归属` → `4. 测试策略`;`<section id="testing">` 重写为 4.1–4.4 |
| `team-workflow-guide/README.md` | 内容覆盖第 4 条改成「测试策略:九层阶梯 + 框架落点」 |
| `example-project/docs/standards/test.md` | 顶部加一句指针:分层策略看指南 §4,本文件只写本项目实现细节 |
| `CHANGELOG.md` | 0.4.0 段补一条 |
## §4 正文结构
### 4.1 策略阶梯(主表,9 行)
| 层 | 谁做 | 框架落点(skill · 命令 · 落盘) | 不过会怎样 |
|---|---|---|---|
| Lint / 静态检查 | DEV(TL 定命令) | `AGENTS.md` §10 定命令 + CI;**无专属 skill** | 不能提交 |
| Code Review | DEV + AI 互评 | `dev-build` ④ `dev-code-review`(对照 AGENTS / standards / facts) | 不能开 MR |
| 单元测试 | DEV | `dev-self-test`:`mvn test`(Domain/Application)、前端 `vitest` | 不进自测 |
| API 测试 | DEV | `dev-self-test`:RestAssured 打 `localhost`(`*ControllerTest`) | 不进自测 |
| 研发自测 · MCP 浏览器走查 | DEV | `dev-build` ③ `dev-ui-review`:原型对照 + `chrome-devtools` MCP 走查,落盘 `{planStem}-ui-review.md` | 回 ① 改 |
| QA · E2E | QA | `qa-write-cases`(`TC-xxx` 文本用例)→ `qa-run-e2e`(`e2e/tests/qa/` + 规格覆盖核对) | **合并闸门** |
| QA · 变异测试 | QA | 跑在 E2E 之后,检查用例能不能抓住缺陷;工具项目自选(Java 用 PIT / 前端用 Stryker) | 回退重跑自测 |
| QA · 人工补测 | QA | `qa-write-manual-plan`(`docs/test-cases/manual-cases/`) | 不验收 |
| QA · 冒烟 | QA | `qa-write-manual-plan`(`smoking-cases/`,发版前 5 分钟最小集) | 不上线 |
表下一句 **迁移期规则**:现有项目里 `e2e/tests/dev/` 可以留着跑,但不再新增;
新项目研发自测直接走 MCP 走查,E2E 只归 QA —— 两套 E2E 必然漂移。
### 4.2 变异测试:验证「测试有没有牙齿」
- **为什么**:AI 写的 E2E 可能只断言「页面有数字」,实现改坏了照样绿 —— 用例存在 ≠ 能证伪
- **怎么做**:往被测代码里注入小改动(改比较符、删一行校验),跑 E2E;
用例 **必须变红**,没变红说明这条用例抓不住这个缺陷
- **失败怎么处理**:不修用例了事 —— 回 **研发自测**(`dev-self-test` / `dev-ui-review`)
重跑,把断言补到能证伪,再回到 E2E
- **判据**:有效变异杀光(或达到项目约定阈值)才算 E2E 可信;不许登记成「已知债务」放行
- **别误用**:环境不稳、数据没隔离会造成假「没杀死」,先排除不稳定再下结论
用一个 `.callout` 呈现「变异测试失败 → 回自测」这条回路,配一行箭头文字。
### 4.3 归属判定(保留现有表)
「开发自测 vs QA 测试」两栏表照搬,加一句:**归属看谁定义、谁判定,不看谁敲的代码**。
### 4.4 编号与追溯
- `R-xxx` / `AC-xxx` → 至少一条 `TC-xxx`(QA 用例)
- 研发自测不编号,用 `DST-xxx`(Plan 的用例表)+ `{planStem}-self-test.md` 落盘
## 验证
1. `./.agents/verify.sh` 全绿(第 9 节相对链接)
2. 浏览器打开 `index.html`:TOC `4. 测试策略` 能跳转且标题不被 sticky 目录条遮住;
4.1 九行表在窄屏不撑破页面、首列不逐字折行;4.2 callout 正常
3. 表格里每个 skill 名、文件名、命令都能在仓库里对上:
`dev-build` / `dev-self-test` / `dev-ui-review` / `dev-code-review` /
`qa-write-cases` / `qa-run-e2e` / `qa-write-manual-plan`、
`*-self-test.md`、`*-ui-review.md`、`e2e/tests/dev|qa/`、`docs/test-cases/{e2e,manual,smoking}-cases/`
## 已知差异(本轮不做,记在这里)
| 差异 | 现状 | 对齐时改哪 |
|---|---|---|
| 研发自测还写着 dev E2E | `dev-self-test-template` 的「执行顺序」第 5 步与 `npm run test:dev` | 删第 5 步、改成 MCP 走查 |
| 变异测试无 skill 落点 | `qa-run-e2e` 只跑 E2E + 覆盖核对 | `qa-run-e2e` 加「变异测试」小节与失败回炉规则 |
| lint 无闸门 | example 未配 eslint / checkstyle | `AGENTS.md` 模板 §10 + CI 示例 |

View File

@@ -32,6 +32,17 @@
- **安装器 `--manifest-only`**:目标项目里文档已被填过、不该被 `--force` 覆盖时,用它只把
`.agents/harness/<模块>.json` 升到当前套件版本(模板改动由人手工同步);三个安装器同步支持
- **`--help` 修正**:`install-tools.mjs` 之前把 `//` 前缀原样打出来,且漏了 `--list`
- **指南新增 §7 仓库布局**:单仓 / 嵌套(主仓装 harness,`containers/` 用 submodule 挂业务仓,推荐)/
并列三种形态的判据、目录长相、落地命令、五条铁律与反模式;§1.2 与 §1.3 加交叉引用。
顺手修两处:窄屏锚点跳转被 sticky 目录条遮住(`scroll-margin-top`)、7.6 表首列逐字折行(`.nw`);
§1.2 里过时的「16 个流程 skill」改为 27
- **指南 §4 升级成测试策略**:`#testing` 从「测试分层与归属」两栏表扩成 **九层阶梯**
(Lint → Code Review → 单元 → API → 研发自测 MCP 走查 → E2E → 变异测试 → 人工补测 → 冒烟),
每层写清谁做、落在哪个 skill / 命令 / 落盘文件、不过会卡在哪;新增 4.2 变异测试
(失败回研发自测重跑,不许登记成「已知债务」放行)、4.4 编号与追溯;
`example-project/docs/standards/test.md` 顶部加指针
- **已知差异(本轮不做)**:`dev-self-test` 仍带 dev E2E 通道、变异测试暂无 skill 落点、
lint 无闸门 —— 已记进计划,留待对齐
## [0.3.0] - 2026-11-20

View File

@@ -33,7 +33,7 @@ AI4SE 框架构想(框内元素仅为示例,可能会装入更多实践):
| **SDD 技能套件** | [`agile-team-sdd/`](agile-team-sdd/) | 团队统一的开发流程 skill,27 个覆盖 BA→TL→PM→开发→QA→发布→复盘,含无前缀的 `overnight-runner`。模板带占位符,可安装到任意项目,并容易被调整修改 | skill + 安装脚本 |
| **Harness 初始化器** | [`harness-installer/`](harness-installer/) | 为任意项目铺好工程底座:`AGENTS.md` + `docs/`(含 `architecture/` 高阶意图骨架、features / facts / standards) | skill + 模板 + 脚本 |
| **工具链安装器** | [`tool-chain-installer/`](tool-chain-installer/) | 把 MCP 工具链(chrome-devtools、playwright、context7…)写进项目配置,不依赖个人机器的全局状态 | skill + 工具清单 + 脚本 |
| **团队工作流指南** | [`团队工作流指南`](https://inspirechina.github.io/ai4se-harness-suite/team-workflow-guide/) | 团队级协作手册(HTML 单页):总览矩阵 + 角色泳道图 + 项目准备 → 迭代前设计 → 迭代中开发;角色、测试归属、闸门;**L3 · 人编排** | 文档 |
| **团队工作流指南** | [`团队工作流指南`](https://inspirechina.github.io/ai4se-harness-suite/team-workflow-guide/) | 团队级协作手册(HTML 单页):总览矩阵 + 角色泳道图 + 项目准备 → 迭代前设计 → 迭代中开发;角色、测试策略、闸门;**L3 · 人编排** | 文档 |
| **持续运行面板** | [`overnight-runner/`](overnight-runner/) | 把一串 plan 交给 coding agent 跑:左边任务队列、右边 agent 实时输出,看门狗自动重试,多队列各自独立,决策全程留痕 | skill + Python 实现 |
| **工作流引擎** | [`agents-workflow-engine/`](agents-workflow-engine/) | 主会话按泳道图调度子 agent,从版本启动到可上线;**L4 · 人决策**。子 agent 可绑不同模型做对抗验证 | Python 实现 |
| **参考实现** | [`example-project/`](example-project/) | 一份完整、可跑、已填满规范的全栈参考项目(Vue 3 + Spring Boot + DDD 四层),用来对照与教学 | 示例项目 |
@@ -160,7 +160,7 @@ ba-grill-me → ba-write-spec → pm-estimate
|---|---|---|
| 团队级 SDD 框架 | 适合团队协作和拓展修改的 SDD 框架;纯 skill 驱动,与具体 agent 无关 | [`agile-team-sdd/`](agile-team-sdd/) |
| 夜间任务 | 把一串 plan 交给 coding agent 无人值守跑:多队列、看门狗重试、决策全程留痕(白天可弹窗、夜里自动兜底) | skill [`overnight-runner`](agile-team-sdd/skills/overnight-runner-template/SKILL.md) · 运行时 [`overnight-runner/`](overnight-runner/) |
| 团队流程手册 | 人怎么配合:总览矩阵、项目准备(含架构设计)→ 迭代前 → 迭代中;角色、测试归属与闸门 | [`team-workflow-guide/`](team-workflow-guide/index.html) |
| 团队流程手册 | 人怎么配合:总览矩阵、项目准备(含架构设计)→ 迭代前 → 迭代中;角色、测试策略与闸门 | [`team-workflow-guide/`](team-workflow-guide/index.html) |
| Agent as Code | 所有 Harness(skills、AGENTS、docs 骨架、MCP、overnight-runner)可安装进代码仓库,换机器 clone 即可用 | [`harness-installer/`](harness-installer/) · [`tool-chain-installer/`](tool-chain-installer/) |
| 文档三分法 | `architecture/` 高阶意图 · `features/` 过程 · `facts/` as-built | [architecture](example-project/docs/architecture/README.md) · [docs 总览](example-project/docs/README.md) |
| 高阶设计 | 业务侧产品边界/术语/核心聚合(`ba-arch-plan`)→ 技术侧 C4/ADR(`tl-arch-plan`)→ 迭代 HLD;确认后再开 feature Plan | [`ba-arch-plan`](agile-team-sdd/skills/ba-arch-plan-template/SKILL.md) · [`tl-arch-plan`](agile-team-sdd/skills/tl-arch-plan-template/SKILL.md) · [`tl-high-level-design`](agile-team-sdd/skills/tl-high-level-design-template/SKILL.md) |
@@ -170,7 +170,7 @@ ba-grill-me → ba-write-spec → pm-estimate
| 事实文档 | 实现后校准 `docs/facts/`(API、库表、全量领域、实现专题) | [`ba-gen-facts`](agile-team-sdd/skills/ba-gen-facts-template/SKILL.md) · [facts](example-project/docs/facts/README.md) |
| 全栈端到端 Loop 开发 | Plan(含 DST)确认后 `dev-build`:实现 → 真实环境自测落盘 → 原型 UI 对照落盘 → 代码评审,以记录修到绿 | [`dev-build`](agile-team-sdd/skills/dev-build-template/SKILL.md) · [流程指南](team-workflow-guide/index.html) |
| 团队上下文共享 | BA / DEV / QA 等角色的产出物(规格、Plan、用例、事实文档、架构)都进代码仓库,换人 clone 即可接上 | [`example-project/docs/`](example-project/docs/README.md) · [Agent as Code](harness-installer/) |
| Mono repo | 统一仓库承载前后端、文档与 harness;客观条件限制时可用 submodule 拼出等价布局 | [`example-project/`](example-project/)(containers + docs + skills 同仓) |
| 仓库布局 | 三种形态:单仓(前后端 + 文档 + harness 全放一起)· 嵌套(主仓装 harness,`containers/` 用 submodule 挂业务仓,**推荐**)· 并列(harness 独立仓与业务仓平级);判据、命令与反模式见指南 §7 | [指南 §7](team-workflow-guide/index.html#repos) · [`example-project/`](example-project/)(单仓形态) |
## 快速开始

View File

@@ -1,5 +1,9 @@
# 测试规范
> 分层策略(九层阶梯:Lint → Code Review → 单元 → API → 研发自测 MCP 走查 → E2E → 变异测试 →
> 人工补测 → 冒烟)与每层落在哪个 skill、不过会卡在哪,见 harness 指南 §4(`team-workflow-guide`)。
> 本文件只写 **本项目这两层用例的归属与实现细节**。
## 0. 两类用例:开发自测 vs QA 测试
本项目的测试用例分两层,**归属看"谁定义、谁判定",不是"谁敲的代码"**。

View File

@@ -2,7 +2,7 @@
本目录以 **HTML 单页** 为主文档(便于预览矩阵图与排版):
- **→ 打开 [`index.html`](index.html)**:总览矩阵 + 三个阶段 + 测试分层 + 角色手册;顶部用 `<iframe>` **嵌入泳道图**
- **→ 打开 [`index.html`](index.html)**:总览矩阵 + 三个阶段 + 测试策略 + 角色手册;顶部用 `<iframe>` **嵌入泳道图**
- **→ 打开 [`flow.html`](flow.html)**:角色 × 阶段泳道图本身(可缩放 / 拖拽;被嵌入的就是它)
在线看(GitHub Pages 从 `main` 构建,推送后生效):
@@ -38,8 +38,9 @@
1. 项目准备(TL 装机定规)
2. 迭代前:BA 规格+原型 · TL 高阶 TRD · QA 用例(并行)
3. 迭代中:DEV 写 Plan → 实现 · QA 验收 · TL 发布 / PM 复盘
4. 测试分层与归属
4. 测试策略:九层阶梯 + 框架落点(含变异测试)
5. 角色手册(BA / PM / TL / DEV / QA / AI)
6. Skill 对照
7. 仓库布局(单仓 / 嵌套 / 并列:harness 与业务代码怎么放)
规范硬约束仍在各项目的 `AGENTS.md`。本指南讲 **人怎么配合**。

View File

@@ -1,251 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>③ 开发 · 测试 · AI-Native 全流程</title>
<style>
:root {
--bg: #fafaf7; --ink: #23251f; --muted: #6d6f68; --hair: #e4e2da; --card-line: #d8d6cc;
--card: #ffffff;
--gold: #a5770e; --gold-soft: #fdf6e3;
--green: #2e6e4c; --green-soft: #eef5f0;
--danger: #a84a34;
--master: #f2f1ec; --pill: #f3f2ec;
--edge: #8b8d84;
--lane: #f6f5f1; --lane-bar: #efeee8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
header { position: relative; padding: 16px 26px 0; }
h1 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: 0.2px; }
.sub { margin: 0; color: var(--muted); font-size: 12.5px; }
nav { position: absolute; top: 18px; right: 26px; display: flex; gap: 2px; margin: 0;
padding: 3px; background: var(--pill); border-radius: 999px; font-size: 12.5px; }
nav a { color: var(--muted); text-decoration: none; padding: 5px 14px; border-radius: 999px; }
nav a.cur { color: #fff; background: var(--ink); font-weight: 600; }
nav a:not(.cur):hover { color: var(--ink); background: var(--hair); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 12px; border: 1px solid var(--card-line); border-radius: 4px; background: var(--card); }
.sw.decision { width: 11px; height: 11px; background: var(--gold-soft); border-color: var(--gold); transform: rotate(45deg); }
.sw.gate { position: relative; border-radius: 2px; border-color: var(--ink); }
.sw.gate::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--ink); }
.sw.vision { border: 1.2px dashed var(--gold); background: var(--card); }
.sw.line { width: 24px; height: 0; border: none; border-top: 1.6px solid var(--edge); border-radius: 0; background: none; }
.sw.line.dashed { border-top-color: var(--danger); border-top-style: dashed; }
.star { color: var(--gold); font-weight: 700; }
.hotl { color: var(--green); font-weight: 700; }
.wrap { padding: 8px 22px 14px; }
svg { width: 100%; height: auto; display: block; }
svg text { font-family: inherit; }
.tt { font-size: 14px; font-weight: 650; fill: var(--ink); }
.tm { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.t { font-size: 12px; fill: var(--ink); }
.ts { font-size: 11px; fill: var(--muted); }
.tc { font-size: 10px; fill: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gd { font-size: 12px; font-weight: 600; fill: var(--gold); }
.gds { font-size: 11px; font-weight: 600; fill: var(--gold); }
.ht { font-size: 11px; font-weight: 600; fill: var(--green); }
.rd { font-size: 11px; fill: var(--danger); }
.lane-label { font-size: 11.5px; font-weight: 650; fill: var(--muted); letter-spacing: 0.5px; }
.n-card { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-action { fill: var(--green-soft); stroke: #cfdccf; stroke-width: 1; }
.n-decision { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.2; }
.n-gate { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
.n-end { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-pill { fill: var(--pill); }
.lift { filter: url(#soft); }
.edge { stroke: var(--edge); stroke-width: 1.4; fill: none; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arr); }
.edge-red { stroke: var(--danger); stroke-width: 1.4; fill: none; stroke-dasharray: 5 4; stroke-linejoin: round; marker-end: url(#arrR); }
.edge-vision { stroke: var(--gold); stroke-width: 1.4; fill: none; stroke-dasharray: 5 4; marker-end: url(#arrG); }
.container { fill: none; stroke: #cfcdc4; stroke-width: 1.2; stroke-dasharray: 6 5; }
.vision { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 6 4; }
a:hover .n-card, a:hover .n-action, a:hover .n-end { filter: brightness(0.97); }
</style>
</head>
<body>
<header>
<h1>③ 开发 · 测试 —— Epic 级一次设计,逐 Story 交付闭环 × N</h1>
<p class="sub">代码只在交付闭环里写;硬门禁全自动(◎),人只在 ★ 缺陷裁决点决策;技术评审由异构模型 reviewer 对抗把关</p>
<nav>
<a href="overview.html">总览</a>
<a href="init.html">① 初始化</a>
<a href="requirement.html">② 需求分析</a>
<a class="cur" href="delivery.html">③ 开发 · 测试</a>
<a href="knowledge.html">④ 知识回流</a>
</nav>
<p class="legend">
<span class="hotl">◎ HOTL · AI 执行</span>
<span><i class="sw decision"></i>★ HITL · 人决策</span>
<span><i class="sw gate"></i>质量闸门(全自动)</span>
<span><i class="sw vision"></i>愿景目标</span>
<span><i class="sw line"></i>正向流转</span>
<span><i class="sw line dashed"></i>打回 · 返工</span>
</p>
</header>
<div class="wrap">
<svg viewBox="0 30 1600 760" role="img" aria-label="开发测试闭环">
<defs>
<filter id="soft" x="-20%" y="-20%" width="140%" height="140%">
<feDropShadow dx="0" dy="1.5" stdDeviation="2.5" flood-color="#23251f" flood-opacity="0.09"/>
</filter>
<marker id="arr" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#8b8d84"/>
</marker>
<marker id="arrR" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#a84a34"/>
</marker>
<marker id="arrG" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#a5770e"/>
</marker>
</defs>
<!-- 泳道 -->
<rect x="0" y="110" width="1600" height="160" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="110" width="110" height="160" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="182" text-anchor="middle">tl</text>
<text class="ts" x="55" y="200" text-anchor="middle">设计与护送</text>
<rect x="0" y="270" width="1600" height="190" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="270" width="110" height="190" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="358" text-anchor="middle">dev</text>
<text class="ts" x="55" y="376" text-anchor="middle">实施</text>
<rect x="0" y="460" width="1600" height="160" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="460" width="110" height="160" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="532" text-anchor="middle">qa</text>
<text class="ts" x="55" y="550" text-anchor="middle">验证</text>
<!-- 本页自主度徽章 -->
<text class="gds" x="1556" y="64" text-anchor="end">本页自主度:★ 1(P0 / P1 裁决)| ◎ 硬门禁全自动 · 整批可无人值守</text>
<!-- Epic 级 · 一次 -->
<rect class="n-card lift" x="140" y="140" width="180" height="100" rx="12"/>
<text class="tm" x="230" y="172" text-anchor="middle">技术设计(HLD)</text>
<text class="ts" x="230" y="194" text-anchor="middle">架构影响 · 跨 Story 契约</text>
<text class="ht" x="230" y="214" text-anchor="middle">◎ Epic 级 · 一次</text>
<rect class="n-pill" x="180" y="248" width="100" height="18" rx="9"/>
<text class="tc" x="188" y="261">tl-arch-design</text>
<rect class="n-card lift" x="140" y="500" width="180" height="100" rx="12"/>
<text class="tm" x="230" y="532" text-anchor="middle">测试设计</text>
<text class="ts" x="230" y="554" text-anchor="middle">逐 Story 分层用例</text>
<text class="ts" x="230" y="574" text-anchor="middle">追溯矩阵 · 交接前置</text>
<text class="ht" x="312" y="514" text-anchor="end">◎</text>
<rect class="n-pill" x="182" y="602" width="96" height="18" rx="9"/>
<text class="tc" x="190" y="615">qa-test-design</text>
<rect class="n-action lift" x="330" y="310" width="140" height="100" rx="12"/>
<text class="tm" x="400" y="344" text-anchor="middle">交接</text>
<text class="ts" x="400" y="366" text-anchor="middle">合成提案 · 建变更</text>
<text class="ts" x="400" y="386" text-anchor="middle">登记 Epic 队列</text>
<rect class="n-pill" x="362" y="418" width="76" height="18" rx="9"/>
<text class="tc" x="370" y="431">tl-handoff</text>
<!-- overnight-runner 愿景挂点 -->
<rect class="vision" x="320" y="490" width="190" height="64" rx="10"/>
<text class="gds" x="415" y="510" text-anchor="middle">overnight-runner · 愿景</text>
<text class="ts" x="415" y="528" text-anchor="middle">Epic 队列 → 夜间 / 周末</text>
<text class="ts" x="415" y="544" text-anchor="middle">AI 闲时消费 → 晨间验收</text>
<path class="edge-vision" d="M400 412 V486"/>
<!-- 逐 Story 交付闭环容器 -->
<rect class="container" x="470" y="120" width="1090" height="530" rx="16"/>
<text class="ts" x="486" y="146">逐 Story 交付闭环 × N —— 代码只在这一段写</text>
<!-- 规格与设计 -->
<rect class="n-card lift" x="520" y="310" width="180" height="100" rx="12"/>
<text class="tm" x="610" y="342" text-anchor="middle">规格与设计</text>
<text class="ts" x="610" y="364" text-anchor="middle">行为规格 + 设计 + 任务</text>
<text class="ts" x="610" y="384" text-anchor="middle">E2E 覆盖审查</text>
<text class="ht" x="692" y="324" text-anchor="end">◎</text>
<rect class="n-pill" x="560" y="418" width="100" height="18" rx="9"/>
<text class="tc" x="568" y="431">dev-spec-design</text>
<!-- 实施(自检小循环) -->
<rect class="n-action lift" x="740" y="300" width="220" height="120" rx="12"/>
<text class="tm" x="850" y="330" text-anchor="middle">实施(自检小循环)</text>
<text class="t" x="760" y="356">实现 → 自测 → UI 对照 → 代码评审</text>
<text class="ts" x="760" y="380">按任务清单逐项勾选</text>
<text class="ht" x="760" y="402">◎ 记录不绿就继续改,直到全绿</text>
<rect class="n-pill" x="818" y="428" width="64" height="18" rx="9"/>
<text class="tc" x="826" y="441">dev-apply</text>
<!-- 验证硬门禁(qa) -->
<rect class="n-gate lift" x="990" y="500" width="210" height="110" rx="6"/>
<rect x="996" y="506" width="198" height="98" fill="none" stroke="var(--ink)" stroke-width="0.8"/>
<text class="tm" x="1095" y="536" text-anchor="middle">验证 · 硬门禁</text>
<text class="ts" x="1095" y="558" text-anchor="middle">规范校验 + 测试 + 构建</text>
<text class="ts" x="1095" y="576" text-anchor="middle">(+ 条件端到端 qa-run-e2e-tests)</text>
<text class="ht" x="1095" y="596" text-anchor="middle">◎ 全自动 · 全 PASS 才放行</text>
<rect class="n-pill" x="1212" y="546" width="64" height="18" rx="9"/>
<text class="tc" x="1220" y="559">qa-verify</text>
<!-- 技术评审(reviewer 异构模型对抗) -->
<rect class="lift" x="1240" y="140" width="180" height="100" rx="12" fill="var(--gold-soft)" stroke="var(--gold)" stroke-width="1.2" stroke-dasharray="6 4"/>
<text class="tm" x="1330" y="172" text-anchor="middle">技术评审(五维)</text>
<text class="gds" x="1330" y="194" text-anchor="middle">reviewer · 异构模型对抗</text>
<text class="ts" x="1330" y="214" text-anchor="middle">P0 – P3 分级</text>
<rect class="n-pill" x="1298" y="248" width="64" height="18" rx="9"/>
<text class="tc" x="1306" y="261">rv-review</text>
<!-- ★ 裁决 -->
<polygon class="n-decision lift" points="1490,158 1555,190 1490,222 1425,190"/>
<text class="gd" x="1490" y="186" text-anchor="middle">★ 裁决</text>
<text class="ts" x="1490" y="204" text-anchor="middle">P0 / P1</text>
<!-- 规格同步 / 归档 -->
<rect class="n-card lift" x="1240" y="310" width="150" height="100" rx="12"/>
<text class="tm" x="1315" y="344" text-anchor="middle">规格同步</text>
<text class="ts" x="1315" y="366" text-anchor="middle">增量 → 主规格库</text>
<text class="ts" x="1315" y="386" text-anchor="middle">每个变更都做</text>
<text class="ht" x="1382" y="324" text-anchor="end">◎</text>
<rect class="n-pill" x="1247" y="418" width="136" height="18" rx="9"/>
<text class="tc" x="1255" y="431">tl-sync · tl-archive</text>
<rect class="n-action lift" x="1430" y="310" width="130" height="100" rx="12"/>
<text class="tm" x="1495" y="344" text-anchor="middle">归档</text>
<text class="ts" x="1495" y="366" text-anchor="middle">队列置 done</text>
<text class="ts" x="1495" y="386" text-anchor="middle">度量打点闭合</text>
<text class="ht" x="1552" y="324" text-anchor="end">◎</text>
<!-- 正向流转 -->
<path class="edge" d="M230 240 V500"/>
<path class="edge" d="M320 550 H400 V415"/>
<path class="edge" d="M470 360 H520"/>
<path class="edge" d="M700 360 H740"/>
<path class="edge" d="M960 360 H975 V555 H990"/>
<path class="edge" d="M1095 500 V185 H1240"/>
<path class="edge" d="M1420 190 H1425"/>
<path class="edge" d="M1490 222 V286 H1315 V306"/>
<path class="edge" d="M1390 360 H1430"/>
<!-- 下一个 Story 循环 -->
<path class="edge" d="M1495 410 V635 H610 V412"/>
<text class="ht" x="590" y="631" text-anchor="end">◎ 下一个 Story(还有就继续)· 整批可无人值守</text>
<!-- Epic 收尾出口 -->
<path class="edge" d="M1330 635 V684"/>
<a href="knowledge.html">
<ellipse class="n-end lift" cx="1330" cy="720" rx="86" ry="32"/>
<text class="tm" x="1330" y="716" text-anchor="middle">Epic 收尾 →</text>
<text class="ts" x="1330" y="734" text-anchor="middle">④ 知识回流</text>
</a>
<!-- 打回(红虚线) -->
<path class="edge-red" d="M1095 612 V628 H850 V422"/>
<text class="rd" x="845" y="560" text-anchor="end">验证不过 → 打回重做</text>
<path class="edge-red" d="M1460 222 V268 H1330 V244"/>
<text class="rd" x="1286" y="262" text-anchor="end">P0 / P1 → 修复 · 复验 · 增量复审</text>
<!-- 底部铁律 -->
<text class="t" x="140" y="700">硬门禁全自动:规范校验、单元 / 接口测试、前端构建全部 PASS 才放行;端到端为条件硬门禁。</text>
<text class="t" x="140" y="724">评审分级:P0 必修;P1 阻断归档(除非书面接受风险);P2 / P3 登记技术债。</text>
<text class="ts" x="140" y="748">度量打点随阶段进出自动记录:实际耗时以台账为准,不做推算。</text>
</svg>
</div>
</body>
</html>

View File

@@ -45,6 +45,19 @@
padding: .1em .35em;
border-radius: 4px;
}
pre {
font-family: var(--mono);
font-size: 12.5px;
line-height: 1.55;
background: var(--code-bg);
border: 1px solid var(--line);
border-radius: 8px;
padding: 12px 14px;
margin: 10px 0;
overflow-x: auto;
}
pre code { background: none; padding: 0; font-size: inherit; }
.wrap {
max-width: 1120px;
margin: 0 0 0 var(--nav-w);
@@ -308,6 +321,8 @@
}
table.data th { background: #f0f2f5; font-weight: 600; }
table.data tr:nth-child(even) td { background: #fafbfc; }
/* 短列不折字(如形态名),长列仍正常换行 */
.nw { white-space: nowrap; }
ul.check { padding-left: 1.2em; }
ul.check li { margin: 4px 0; }
@@ -518,6 +533,8 @@
text-align: center;
}
@media (max-width: 900px) {
/* 窄屏下目录变成 sticky 顶栏,锚点跳转要避开它 */
section { scroll-margin-top: 68px; }
nav.toc {
position: sticky;
top: 0;
@@ -560,9 +577,10 @@
<a href="#setup">1. 项目准备</a>
<a href="#design">2. 迭代前设计</a>
<a href="#dev">3. 迭代中开发</a>
<a href="#testing">4. 测试归属</a>
<a href="#testing">4. 测试策略</a>
<a href="#roles">5. 角色手册</a>
<a href="#skills">6. Skill 对照</a>
<a href="#repos">7. 仓库布局</a>
<a href="#lane">角色协作图(嵌入)</a>
</nav>
@@ -880,10 +898,11 @@
<ol>
<li>
<strong>铺 harness</strong> — 对 Agent 说:用 <code>harness-installer</code> 给目标项目初始化 <code>AGENTS.md</code> 与 <code>docs/</code> 骨架。<br />
完成后由 <strong>TL</strong> 补全 <code>AGENTS.md</code> 里的业务 / 架构 TODO(Agent 可起草,人必须拍板)。
完成后由 <strong>TL</strong> 补全 <code>AGENTS.md</code> 里的业务 / 架构 TODO(Agent 可起草,人必须拍板)。<br />
多仓库项目<strong>先定布局</strong>(见 <a href="#repos">§7</a>)—— 布局决定 <code>AGENTS.md</code> 与文档里写哪些路径。
</li>
<li>
<strong>装 SDD skills</strong> — 对 Agent 说:用 <code>agile-team-sdd</code> 把 16 个流程 skill 安装到目标项目的 <code>.agents/skills/</code>。
<strong>装 SDD skills</strong> — 对 Agent 说:用 <code>agile-team-sdd</code> 把 27 个流程 skill 安装到目标项目的 <code>.agents/skills/</code>。
</li>
<li>
<strong>装 MCP 工具链</strong> — 对 Agent 说:用 <code>tool-chain-installer</code> 把 MCP 配置写入项目(如 <code>.mcp.json</code> / <code>opencode.jsonc</code>)。
@@ -905,6 +924,7 @@
<li><code>AGENTS.md</code> 关键 TODO 已填</li>
<li>skill + MCP 可用</li>
<li>文档树与测试归属约定写清</li>
<li>仓库布局已定:组件在 <code>containers/</code> 下就位(单仓 / 嵌套 / 并列三者之一,见 <a href="#repos">§7</a>)</li>
<li><code>docs/architecture/</code> 已有可读的:业务侧(product 边界 / 术语 / 核心聚合 / 首迭规划)+ 技术侧(C4 / ADR)(可与装机并行,但进迭代前须齐)</li>
<li>团队对齐三条铁律(规范先于代码 / 测试先于实现 / 文档同批次)</li>
</ul>
@@ -1056,9 +1076,44 @@
</section>
<section id="testing">
<h2>4. 测试分层与归属</h2>
<p class="goal"><strong>开发自测</strong>对「我写的代码」负责;<strong>QA 测试</strong>对「需求有没有被实现」负责。</p>
<h2>4. 测试策略与归属</h2>
<p class="goal">目标:九层测试各有人管、各有落点、各有闸门 —— 少一层,缺陷就往下一层漏。</p>
<p>AI 写的用例便宜,但「<strong>不可信</strong>」才是默认状态。所以策略里既有「谁写」,也有「用例本身怎么被验证」—— 后者靠 4.2 的变异测试。</p>
<h3>4.1 策略阶梯</h3>
<table class="data">
<thead><tr><th class="nw">层</th><th class="nw">谁做</th><th>框架落点(skill · 命令 · 落盘)</th><th>不过会怎样</th></tr></thead>
<tbody>
<tr><td class="nw">Lint / 静态检查</td><td class="nw">DEV<br />(TL 定命令)</td><td><code>AGENTS.md</code> §10 写死命令 + CI 拦;<strong>无专属 skill</strong></td><td>不能提交</td></tr>
<tr><td class="nw">Code Review</td><td class="nw">DEV + AI 互评</td><td><code>dev-build</code> 第 ④ 步 <code>dev-code-review</code>:对照 AGENTS / standards / facts</td><td>不能开 MR</td></tr>
<tr><td class="nw">单元测试</td><td class="nw">DEV</td><td><code>dev-self-test</code>:<code>mvn test</code>(Domain / Application)、前端 <code>vitest</code></td><td>不进自测</td></tr>
<tr><td class="nw">API 测试</td><td class="nw">DEV</td><td><code>dev-self-test</code>:RestAssured 打 <code>localhost</code>(<code>*ControllerTest</code>),先起真实环境再跑</td><td>不进自测</td></tr>
<tr><td class="nw">研发自测 ·<br />MCP 浏览器走查</td><td class="nw">DEV</td><td><code>dev-build</code> 第 ③ 步 <code>dev-ui-review</code>:原型对照 + <code>chrome-devtools</code> MCP 走查,落盘 <code>{planStem}-ui-review.md</code></td><td>回第 ① 步改</td></tr>
<tr><td class="nw">QA · E2E</td><td class="nw">QA</td><td><code>qa-write-cases</code>(<code>TC-xxx</code> 文本用例)→ <code>qa-run-e2e</code>(<code>e2e/tests/qa/</code> + 规格覆盖核对)</td><td><strong>合并闸门</strong></td></tr>
<tr><td class="nw">QA · 变异测试</td><td class="nw">QA</td><td>跑在 E2E 之后,检查用例抓不抓得住缺陷;工具项目自选(Java 用 PIT / 前端用 Stryker)</td><td>回退重跑自测</td></tr>
<tr><td class="nw">QA · 人工补测</td><td class="nw">QA</td><td><code>qa-write-manual-plan</code>(<code>docs/test-cases/manual-cases/</code>):自动化难覆盖 / 需人判断</td><td>不验收</td></tr>
<tr><td class="nw">QA · 冒烟</td><td class="nw">QA</td><td><code>qa-write-manual-plan</code>(<code>smoking-cases/</code>):发版前 5 分钟跑完的最小集</td><td>不上线</td></tr>
</tbody>
</table>
<div class="note"><strong>迁移期规则</strong>:老项目里 <code>e2e/tests/dev/</code> 可以继续跑,但<strong>不再新增</strong>;新项目研发自测直接走 MCP 走查,E2E 只归 QA —— 同一件事两套 E2E,必然漂移。</div>
<h3>4.2 变异测试:验证用例「有没有牙」</h3>
<p>AI 可以写出很像样的 E2E,却只断言「页面上有个数字」—— 实现改坏了它照样绿。
<strong>用例存在 ≠ 用例能证伪</strong>,这是 AI 测试的默认风险,也是它需要单独一层防护的原因。</p>
<ul>
<li><strong>怎么做</strong>:往被测代码里注入小改动(改比较符、删一行校验、反转条件),再跑 E2E。
用例<strong>必须变红</strong>;没变红就说明这条用例抓不住这个缺陷</li>
<li><strong>判据</strong>:有效变异杀光(或达到项目约定阈值),E2E 才算可信;
<strong>不许</strong>登记成「已知债务」放行 —— 缺口不是债务</li>
<li><strong>别误用</strong>:环境不稳、数据没隔离会造成假「没杀死」,先排除不稳定再下结论</li>
</ul>
<div class="callout"><strong>变异测试失败 → 回研发自测</strong>,而不是把断言改一改了事。
失败的含义是「用例太弱,也就是自测那一步没做扎实」:回 <code>dev-self-test</code> / <code>dev-ui-review</code> 重跑,
把断言补到能证伪,再从第 ② / ③ 步回到 E2E —— 不让弱用例带着「全绿」进合并。</div>
<h3>4.3 归属判定</h3>
<p><strong>归属看谁定义、谁判定,不看谁敲的代码</strong>:<strong>开发自测</strong>对「我写的代码」负责;
<strong>QA 测试</strong>对「需求有没有被实现」负责。</p>
<table class="data">
<thead>
<tr><th>维度</th><th>开发自测</th><th>QA 测试</th></tr>
@@ -1066,13 +1121,17 @@
<tbody>
<tr><td>验证什么</td><td>代码按 Plan 工作</td><td>系统符合需求规格</td></tr>
<tr><td>判定人</td><td>开发本人</td><td><strong>QA</strong></td></tr>
<tr><td>编号</td><td>无</td><td><code>TC-xxx</code></td></tr>
<tr><td>位置</td><td>源码旁、<code>e2e/tests/dev/</code></td><td><code>docs/</code>、<code>e2e/tests/qa/</code></td></tr>
<tr><td>编号</td><td>无(用 <code>DST-xxx</code> 表达意图)</td><td><code>TC-xxx</code></td></tr>
<tr><td>位置</td><td>源码旁(<code>*Test.java</code>、<code>*.test.ts</code>)+ 项目同目录 <code>*-self-test.md</code></td><td><code>docs/</code> 用例库、<code>e2e/tests/qa/</code></td></tr>
<tr><td>合并闸门</td><td>否</td><td><strong>是</strong></td></tr>
</tbody>
</table>
<p>编号映射:每条 <code>R-xxx</code>、<code>AC-xxx</code> 至少对应一条 <code>TC-xxx</code>。</p>
<h3>4.4 编号与追溯</h3>
<ul class="check">
<li>每条 <code>R-xxx</code> / <code>AC-xxx</code> → 至少一条 <code>TC-xxx</code>(QA 用例),文本用例与自动化用例共用编号</li>
<li>研发自测不编 <code>TC-</code> 号,按 Plan 的 <code>DST-xxx</code> 执行,结果落盘到 <code>{planStem}-self-test.md</code></li>
</ul>
</section>
<section id="roles">
@@ -1149,6 +1208,114 @@
</table>
</section>
<section id="repos">
<h2>7. 仓库布局:单仓 / 嵌套 / 并列</h2>
<p class="goal">目标:harness 与业务代码怎么放,一开始就定下来 —— 装机时的目标路径、文档里的链接、CI 的 checkout 都依赖它。</p>
<div class="note"><strong>默认选方式二(嵌套)</strong>:主仓库装 harness,业务组件以 submodule 挂在 <code>containers/&lt;组件&gt;</code>。只有当「组件少、没人管权限」或「harness 要给多个产品复用」时才偏离。</div>
<h3>7.1 先选一种</h3>
<table class="data">
<thead><tr><th>你的情况</th><th>选</th><th>一句话理由</th></tr></thead>
<tbody>
<tr><td>一个产品,前后端 + 文档都是同一拨人</td><td>方式一 · 单仓</td><td>路径最简单,没有指针要维护</td></tr>
<tr><td>业务代码已有独立仓库 / 要按组件切权限与发布</td><td><strong>方式二 · 嵌套</strong>(推荐)</td><td>目录路径与单仓完全一致,skill 与占位符零改动</td></tr>
<tr><td>harness 是平台团队交付物,要服务 N 个产品</td><td>方式三 · 并列</td><td>解耦彻底,代价是 CI 与文档链接都要跨仓</td></tr>
</tbody>
</table>
<h3>7.2 三种形态对比</h3>
<table class="data">
<thead><tr><th>维度</th><th>一 · 单仓</th><th>二 · 嵌套(推荐)</th><th>三 · 并列</th></tr></thead>
<tbody>
<tr><td>目录长相</td><td>一个仓全装下</td><td>主仓 + <code>containers/*</code> 子模块</td><td>两个平级仓库,靠 <code>../</code> 关联</td></tr>
<tr><td>harness 在哪</td><td>同仓</td><td>主仓(与 <code>docs/</code> 同级)</td><td>独立仓</td></tr>
<tr><td>clone 后能不能直接跑</td><td>可以</td><td>要 <code>--recurse-submodules</code></td><td>要 clone 两个仓并保持目录结构</td></tr>
<tr><td>权限边界</td><td>无(全员全仓)</td><td>按组件仓切,主仓只放文档与 harness</td><td>按仓切,harness 可只读</td></tr>
<tr><td>agent 工作区</td><td>一个目录</td><td><strong>一个目录</strong>(子模块就在里面)</td><td>两个目录,agent 通常只能看一个</td></tr>
<tr><td>升级 harness</td><td>直接改</td><td>主仓单独一次提交</td><td>独立仓发版,各产品各自跟进</td></tr>
<tr><td>主要代价</td><td>仓库膨胀、CI 全量</td><td>指针要跟着子仓提交走</td><td>跨仓路径与链接极易断</td></tr>
</tbody>
</table>
<h3>7.3 方式一 · 单仓(mono repo)</h3>
<pre><code>my-product/
├── AGENTS.md .agents/skills/ .mcp.json
├── docs/ architecture · features · facts · standards
├── containers/ backend/ frontend/ ← 就是普通目录
└── e2e/</code></pre>
<ul>
<li><strong>何时选</strong>:单产品、组件 1–3 个、团队规模小;<strong>新项目起步的默认选择</strong></li>
<li><code>example-project/</code> 就是这个形态 —— 先按它长起来,撑不住再拆</li>
<li><strong>坑</strong>:仓库变大后 clone 慢、CI 每次全量、没法「后端仓只给后端同学写权限」</li>
<li><strong>何时该拆</strong>:单目录超过 ~2GB,或 CI 全量已超过 15 分钟</li>
</ul>
<h3>7.4 方式二 · 嵌套仓库(推荐)</h3>
<pre><code>my-product/ ← 主仓库:harness + 文档 + 胶水
├── AGENTS.md
├── .agents/skills/ ← 27 个 skill(随主仓分发)
├── docs/ ← architecture / features / facts / standards
├── containers/
│ ├── backend/ ← submodule → git@…/svc-backend.git
│ └── frontend/ ← submodule → git@…/web-app.git
└── e2e/</code></pre>
<p><strong>为什么推荐</strong>:<code>containers/backend</code> 与单仓里的普通目录<strong>路径完全一样</strong>,
所以 <code>AGENTS.md</code>、27 个 skill、占位符(<code>BACKEND_DIR</code> / <code>FRONTEND_DIR</code>)、
测试命令(<code>cd containers/backend &amp;&amp; mvn test</code>)一个字都不用改;
<code>init-harness.sh</code> 的目录探测本来就优先 <code>containers/backend|frontend</code>。
权限与发布仍按子仓库走,而 agent 只要打开主仓<strong>一个</strong>工作区。</p>
<pre><code># 主仓里挂子仓(子仓必须已有远端仓库)
git submodule add git@github.com:org/svc-backend.git containers/backend
git submodule add git@github.com:org/web-app.git containers/frontend
# 新人 clone(漏了 --recursive 就补这一步)
git clone --recurse-submodules git@github.com:org/my-product.git
git submodule update --init --recursive</code></pre>
<p><strong>五条铁律</strong>:</p>
<ol>
<li><strong>先子仓、后主仓</strong>:代码改动必须先在 <code>containers/backend</code> 里 commit + push,
再回主仓 commit 那个指针。反了就等于「主仓指向一个没有你代码的 commit」</li>
<li><strong>指针钉 commit,不钉分支</strong>:要跟分支就显式 <code>git submodule update --remote</code>,并且知道 CI 会跟着漂</li>
<li><strong>文档只留主仓</strong>:<code>docs/features/</code>、<code>docs/architecture/</code> 不进子仓库 —— 否则同一份规格两处版本</li>
<li><strong>构建产物各自 ignore</strong>:<code>containers/*/target</code>、<code>node_modules</code>、<code>dist</code> 在各自仓里管</li>
<li><strong>子仓可见性</strong>:看不到子仓的人等于看不到代码;至少要读权限,CI 用机器账号拉</li>
</ol>
<h3>7.5 方式三 · 独立 harness 仓库(并列)</h3>
<pre><code>workspace/
├── harness/ ← 上下文 + skills + 文档骨架(独立仓库,平台团队维护)
└── product/ ← 业务代码(独立仓库)</code></pre>
<ul>
<li>关联靠<strong>相对位置</strong>:<code>../harness</code>、<code>../product</code></li>
<li>装进 <code>product</code> 的产物必须用 <code>PATH_MODE=relative</code> —— 绝对路径会把安装机的主目录写进 skill</li>
<li>适合:多个产品共用一套流程、harness 有独立发版节奏、harness 仓允许只读</li>
<li><strong>坑</strong>:CI 要 checkout 两次(<code>actions/checkout</code> 的 <code>path:</code> 参数)、
跨仓相对链接一改就断、MR 里看不到「流程改动 + 代码改动」的完整 diff</li>
</ul>
<div class="callout"><strong>最大的坑是 agent 的工作区边界</strong>:IDE Agent 通常只认打开的那个目录,
<code>../harness/docs/…</code> 多半读不到。现实中只有两种用法 ——
<strong>人切换目录</strong>(装机时站在 <code>product</code>,查架构文档时切到 <code>harness</code>),
或者<strong>把 harness 用符号链接 / submodule 挂进 <code>product</code></strong>(这时其实已经退化成方式二)。</div>
<h3>7.6 三种形态下怎么升级 harness</h3>
<table class="data">
<thead><tr><th class="nw">形态</th><th>升级动作</th><th>注意</th></tr></thead>
<tbody>
<tr><td class="nw">单仓</td><td>直接在仓里跑三个安装器</td><td>与业务改动在同一个 MR,容易一起评审</td></tr>
<tr><td class="nw">嵌套</td><td>在<strong>主仓</strong>跑三个安装器</td><td><strong>不要</strong>在 <code>containers/*</code> 里跑 —— 子仓里的 skill 副本是无效副本</td></tr>
<tr><td class="nw">并列</td><td>在 <code>harness</code> 仓改,再 <code>PATH_MODE=relative</code> 装进 <code>product</code></td><td>装完要提交 <code>product</code> 里的 <code>.agents/</code> 与 <code>docs/</code></td></tr>
</tbody>
</table>
<h3>7.7 反模式</h3>
<ul class="check">
<li>把 harness <strong>复制</strong>进多个仓各自改 → 立刻漂移,同一套 skill 各有各的版本</li>
<li>跨仓用<strong>绝对路径</strong>(<code>/Users/…</code>、<code>/home/…</code>)引用 harness → 换机器即断</li>
<li>submodule 指向<strong>个人分支</strong> → 别人拉不到</li>
<li>子仓 A 里再挂子仓 B,深度超过两层 → 指针地狱,没人敢升级</li>
</ul>
</section>
<footer>
team-workflow-guide · 打开本文件即可预览 · 规范细节见各项目 <code>AGENTS.md</code>
</footer>

View File

@@ -1,285 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>① 初始化 · AI-Native 全流程</title>
<style>
:root {
--bg: #fafaf7; --ink: #23251f; --muted: #6d6f68; --hair: #e4e2da; --card-line: #d8d6cc;
--card: #ffffff;
--gold: #a5770e; --gold-soft: #fdf6e3;
--green: #2e6e4c; --green-soft: #eef5f0;
--danger: #a84a34;
--master: #f2f1ec; --pill: #f3f2ec;
--edge: #8b8d84;
--lane: #f6f5f1; --lane-bar: #efeee8;
--input: #edf3f9; --input-line: #c8d6e4;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
header { position: relative; padding: 16px 26px 0; }
h1 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: 0.2px; }
.sub { margin: 0; color: var(--muted); font-size: 12.5px; }
nav { position: absolute; top: 18px; right: 26px; display: flex; gap: 2px; margin: 0;
padding: 3px; background: var(--pill); border-radius: 999px; font-size: 12.5px; }
nav a { color: var(--muted); text-decoration: none; padding: 5px 14px; border-radius: 999px; }
nav a.cur { color: #fff; background: var(--ink); font-weight: 600; }
nav a:not(.cur):hover { color: var(--ink); background: var(--hair); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 12px; border: 1px solid var(--card-line); border-radius: 4px; background: var(--card); }
.sw.input { background: var(--input); border-color: var(--input-line); transform: skewX(-16deg); }
.sw.decision { width: 11px; height: 11px; background: var(--gold-soft); border-color: var(--gold); transform: rotate(45deg); }
.sw.gate { position: relative; border-radius: 2px; border-color: var(--ink); }
.sw.gate::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--ink); }
.sw.line { width: 24px; height: 0; border: none; border-top: 1.6px solid var(--edge); border-radius: 0; background: none; }
.sw.line.dashed { border-top-color: var(--danger); border-top-style: dashed; }
.star { color: var(--gold); font-weight: 700; }
.hotl { color: var(--green); font-weight: 700; }
.wrap { padding: 8px 22px 14px; }
svg { width: 100%; height: auto; display: block; }
svg text { font-family: inherit; }
.tt { font-size: 14px; font-weight: 650; fill: var(--ink); }
.tm { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.t { font-size: 12px; fill: var(--ink); }
.ts { font-size: 11px; fill: var(--muted); }
.tc { font-size: 10px; fill: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gd { font-size: 12px; font-weight: 600; fill: var(--gold); }
.gds { font-size: 11px; font-weight: 600; fill: var(--gold); }
.ht { font-size: 11px; font-weight: 600; fill: var(--green); }
.rd { font-size: 11px; fill: var(--danger); }
.lane-label { font-size: 11.5px; font-weight: 650; fill: var(--muted); letter-spacing: 0.5px; }
.n-card { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-action { fill: var(--green-soft); stroke: #cfdccf; stroke-width: 1; }
.n-input { fill: var(--input); stroke: var(--input-line); stroke-width: 1; }
.n-decision { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.2; }
.n-gate { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
.n-end { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-pill { fill: var(--pill); }
.lift { filter: url(#soft); }
.edge { stroke: var(--edge); stroke-width: 1.4; fill: none; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arr); }
.edge-red { stroke: var(--danger); stroke-width: 1.4; fill: none; stroke-dasharray: 5 4; stroke-linejoin: round; marker-end: url(#arrR); }
a:hover .n-card, a:hover .n-action, a:hover .n-end { filter: brightness(0.97); }
</style>
</head>
<body>
<header>
<h1>① 初始化 —— 从原始需求到冻结基线(一次性,只跑一次)</h1>
<p class="sub">输入两份资产:业务原始需求 + 研发通用知识资产;九件产出由 AI 生成(◎),分三批呈报,三批人工确认(★)都通过才冻结</p>
<nav>
<a href="overview.html">总览</a>
<a class="cur" href="init.html">① 初始化</a>
<a href="requirement.html">② 需求分析</a>
<a href="delivery.html">③ 开发 · 测试</a>
<a href="knowledge.html">④ 知识回流</a>
</nav>
<p class="legend">
<span><i class="sw input"></i>输入资产</span>
<span class="hotl">◎ HOTL · AI 执行</span>
<span><i class="sw decision"></i>★ HITL · 人决策</span>
<span><i class="sw gate"></i>机器门禁</span>
<span><i class="sw line"></i>正向流转</span>
<span><i class="sw line dashed"></i>打回 · 返工</span>
</p>
</header>
<div class="wrap">
<svg viewBox="0 30 1600 700" role="img" aria-label="初始化流程">
<defs>
<filter id="soft" x="-20%" y="-20%" width="140%" height="140%">
<feDropShadow dx="0" dy="1.5" stdDeviation="2.5" flood-color="#23251f" flood-opacity="0.09"/>
</filter>
<marker id="arr" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#8b8d84"/>
</marker>
<marker id="arrR" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#a84a34"/>
</marker>
</defs>
<!-- 泳道(统一中性色) -->
<rect x="0" y="110" width="1600" height="84" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="110" width="110" height="84" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="146" text-anchor="middle">业务方</text>
<text class="ts" x="55" y="164" text-anchor="middle">决策</text>
<rect x="0" y="194" width="1600" height="240" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="194" width="110" height="240" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="306" text-anchor="middle">po</text>
<text class="ts" x="55" y="324" text-anchor="middle">产品 · 业务分析</text>
<rect x="0" y="434" width="1600" height="170" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="434" width="110" height="170" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="512" text-anchor="middle">tl</text>
<text class="ts" x="55" y="530" text-anchor="middle">架构 · 护送</text>
<!-- 本页自主度徽章 -->
<text class="gds" x="1556" y="64" text-anchor="end">本页自主度:★ 3 处人工确认 | ◎ 九件产出全部由 AI 生成</text>
<!-- 输入资产 -->
<polygon class="n-input" points="150,250 280,250 260,350 130,350"/>
<text class="tm" x="205" y="292" text-anchor="middle">原始需求材料</text>
<text class="ts" x="205" y="314" text-anchor="middle">说明书 · 会议记录</text>
<text class="ts" x="205" y="332" text-anchor="middle">问题清单</text>
<polygon class="n-input" points="152,455 280,455 258,575 130,575"/>
<text class="tm" x="205" y="492" text-anchor="middle" font-size="12">研发通用知识资产</text>
<text class="ts" x="205" y="514" text-anchor="middle">技术规范 × 5 · 前端约束</text>
<text class="ts" x="205" y="532" text-anchor="middle">脚手架 · 机器门禁</text>
<text class="ts" x="205" y="550" text-anchor="middle">测试与质量标准</text>
<text class="rd" x="205" y="600" text-anchor="middle">输入缺一即停,不许凭印象开工</text>
<!-- po 泳道:通读 → 研究 → ①~⑤ -->
<rect class="n-card lift" x="310" y="250" width="140" height="100" rx="12"/>
<text class="tm" x="380" y="292" text-anchor="middle">先通读</text>
<text class="tm" x="380" y="310" text-anchor="middle">原始需求</text>
<text class="ts" x="380" y="332" text-anchor="middle">不是只看摘要</text>
<text class="ht" x="442" y="264" text-anchor="end">◎</text>
<rect class="n-action lift" x="480" y="245" width="180" height="110" rx="12"/>
<text class="tm" x="570" y="282" text-anchor="middle">⓪ 领域深度研究</text>
<text class="ts" x="570" y="304" text-anchor="middle">行业机制 · 流程 · 趋势</text>
<text class="ts" x="570" y="322" text-anchor="middle">竞品 · 企业自身 · 机会</text>
<text class="ts" x="570" y="340" text-anchor="middle">证据台账 + 最大未知</text>
<text class="ht" x="652" y="260" text-anchor="end">◎</text>
<rect class="n-pill" x="498" y="364" width="144" height="18" rx="9"/>
<text class="tc" x="506" y="377">po-domain-research</text>
<!-- ①~⑤ 五件套 -->
<g>
<rect class="n-card lift" x="690" y="245" width="125" height="110" rx="12"/>
<text class="tm" x="752" y="278" text-anchor="middle">① 产品定位</text>
<text class="ts" x="752" y="300" text-anchor="middle">定位 · 理念</text>
<text class="ts" x="752" y="318" text-anchor="middle">范围 · 决策准则</text>
<text class="ht" x="807" y="260" text-anchor="end">◎</text>
<rect class="n-card lift" x="845" y="245" width="125" height="110" rx="12"/>
<text class="tm" x="907" y="278" text-anchor="middle">② 业务流程</text>
<text class="ts" x="907" y="300" text-anchor="middle">L1 / L2 / L3</text>
<text class="ts" x="907" y="318" text-anchor="middle">高层 To-Be</text>
<text class="ht" x="962" y="260" text-anchor="end">◎</text>
<rect class="n-card lift" x="1000" y="245" width="125" height="110" rx="12"/>
<text class="tm" x="1062" y="272" text-anchor="middle">③ 领域模型</text>
<text class="tm" x="1062" y="290" text-anchor="middle">+ 服务蓝图</text>
<text class="ts" x="1062" y="312" text-anchor="middle">BC · CAP · SB</text>
<text class="ts" x="1062" y="330" text-anchor="middle">硬规矩挂聚合</text>
<text class="ht" x="1117" y="260" text-anchor="end">◎</text>
<rect class="n-card lift" x="1155" y="245" width="125" height="110" rx="12"/>
<text class="tm" x="1217" y="278" text-anchor="middle">④ 统一语言</text>
<text class="ts" x="1217" y="300" text-anchor="middle">主词 + 弃用叫法</text>
<text class="ts" x="1217" y="318" text-anchor="middle">状态 · 角色口径</text>
<text class="ht" x="1272" y="260" text-anchor="end">◎</text>
<rect class="n-card lift" x="1310" y="245" width="130" height="110" rx="12"/>
<text class="tm" x="1375" y="278" text-anchor="middle">⑤ 设计系统</text>
<text class="ts" x="1375" y="300" text-anchor="middle">三层令牌 → 组件</text>
<text class="ts" x="1375" y="318" text-anchor="middle">状态 ↔ 视觉语义</text>
<text class="ht" x="1432" y="260" text-anchor="end">◎</text>
</g>
<rect class="n-pill" x="1000" y="364" width="170" height="18" rx="9"/>
<text class="tc" x="1008" y="377">po-prod-init · 五件套</text>
<!-- tl 泳道:⑥⑦⑧ + 冻结 -->
<rect class="n-card lift" x="650" y="465" width="175" height="110" rx="12"/>
<text class="tm" x="737" y="498" text-anchor="middle">⑥ 架构设计</text>
<text class="ts" x="737" y="520" text-anchor="middle">分层架构 + 决策记录</text>
<text class="ts" x="737" y="538" text-anchor="middle">引用规范编号,不复述</text>
<text class="ht" x="817" y="480" text-anchor="end">◎</text>
<rect class="n-pill" x="693" y="584" width="88" height="18" rx="9"/>
<text class="tc" x="701" y="597">tl-arch-plan</text>
<rect class="n-card lift" x="850" y="465" width="175" height="110" rx="12"/>
<text class="tm" x="937" y="498" text-anchor="middle">⑦ 活基线种子</text>
<text class="ts" x="937" y="520" text-anchor="middle">数据模型 TBL-*</text>
<text class="ts" x="937" y="538" text-anchor="middle">接口目录 API-*</text>
<text class="ht" x="1017" y="480" text-anchor="end">◎</text>
<rect class="n-card lift" x="1060" y="465" width="165" height="110" rx="12"/>
<text class="tm" x="1142" y="498" text-anchor="middle">⑧ 版本路线图</text>
<text class="ts" x="1142" y="520" text-anchor="middle">业务结果 → Epic → 版本</text>
<text class="ts" x="1142" y="538" text-anchor="middle">每版一条端到端旅程</text>
<text class="ht" x="1217" y="480" text-anchor="end">◎</text>
<rect class="n-pill" x="1081" y="584" width="122" height="18" rx="9"/>
<text class="tc" x="1089" y="597">tl-roadmap-plan</text>
<!-- 冻结闸门(双框) -->
<rect class="n-gate lift" x="1270" y="465" width="160" height="110" rx="6"/>
<rect x="1276" y="471" width="148" height="98" fill="none" stroke="var(--ink)" stroke-width="0.8"/>
<text class="tm" x="1350" y="508" text-anchor="middle">冻结基线</text>
<text class="ts" x="1350" y="530" text-anchor="middle">状态行改写</text>
<text class="ts" x="1350" y="548" text-anchor="middle">机器可校验</text>
<!-- 出口 -->
<a href="requirement.html">
<ellipse class="n-end lift" cx="1520" cy="520" rx="72" ry="32"/>
<text class="tm" x="1520" y="516" text-anchor="middle">进入 ②</text>
<text class="ts" x="1520" y="534" text-anchor="middle">版本迭代循环</text>
</a>
<!-- 三个人工决策点(菱形) -->
<g>
<polygon class="n-decision lift" points="570,126 655,158 570,190 485,158"/>
<text class="gd" x="570" y="154" text-anchor="middle">★ HITL-0</text>
<text class="ts" x="570" y="172" text-anchor="middle">研究确认</text>
<polygon class="n-decision lift" points="1375,126 1465,158 1375,190 1285,158"/>
<text class="gd" x="1375" y="154" text-anchor="middle">★ HITL-1</text>
<text class="ts" x="1375" y="172" text-anchor="middle">业务认知确认</text>
<polygon class="n-decision lift" points="1142,126 1227,158 1142,190 1057,158"/>
<text class="gd" x="1142" y="154" text-anchor="middle">★ HITL-2</text>
<text class="ts" x="1142" y="172" text-anchor="middle">方案与排期确认</text>
</g>
<!-- 正向流转 -->
<path class="edge" d="M280 300 H310"/>
<path class="edge" d="M450 300 H480"/>
<path class="edge" d="M570 245 V190"/>
<path class="edge" d="M655 158 H755 V245"/>
<path class="edge" d="M820 300 H845"/>
<path class="edge" d="M975 300 H1000"/>
<path class="edge" d="M1130 300 H1155"/>
<path class="edge" d="M1285 300 H1310"/>
<path class="edge" d="M1375 245 V190"/>
<path class="edge" d="M1465 158 H1490 V420 H737 V465"/>
<path class="edge" d="M280 520 H650"/>
<path class="edge" d="M825 520 H850"/>
<path class="edge" d="M1025 520 H1060"/>
<path class="edge" d="M1142 465 V190"/>
<path class="edge" d="M1227 158 H1282 V465"/>
<path class="edge" d="M1430 520 H1448"/>
<!-- 机器门禁:入口输入齐 / 出口冻结校验 -->
<rect class="n-gate" x="287" y="292" width="16" height="16" rx="2"/>
<rect x="291" y="296" width="8" height="8" fill="none" stroke="var(--ink)" stroke-width="1"/>
<text class="tc" x="295" y="326" text-anchor="middle">输入齐</text>
<rect class="n-gate" x="1432" y="512" width="14" height="14" rx="2"/>
<rect x="1436" y="516" width="6" height="6" fill="none" stroke="var(--ink)" stroke-width="1"/>
<text class="tc" x="1439" y="542" text-anchor="middle">校验</text>
<!-- 打回(红虚线):落点一律是本批第一件,不跨批、不跳件;
上层泳道的打回走卡片上方的上走廊,下层泳道的打回走卡片下方 / 下沿,避免与正向箭头缠在一起 -->
<!-- HITL-0 不过 → ⓪ 领域深度研究(本批仅此一件) -->
<path class="edge-red" d="M620 171 V245"/>
<text class="rd" x="632" y="216">不过 → 补研究再报</text>
<!-- HITL-1 不过 → ① 产品定位(①~⑤ 五件套整批重来) -->
<path class="edge-red" d="M1375 126 V92 H790 V245"/>
<text class="rd" x="1010" y="84" text-anchor="middle">HITL-1 不过 → 五件套整批改完再报</text>
<!-- HITL-2 不过 → ⑥ 架构设计(⑥⑦⑧ 整批重来):降到 po 卡片下沿再左行,不穿卡片 -->
<path class="edge-red" d="M1057 158 H980 V390 H675 V465"/>
<text class="rd" x="990" y="232">HITL-2 不过 → 改制品重报</text>
<!-- 底部铁律 -->
<text class="t" x="140" y="648">铁律:三批人工确认都必须停,不许自动冻结、不许跳批;锚点一经发布不改名,重跑只增量合并。</text>
<text class="ts" x="140" y="672">冻结不是口头状态 —— 基线未冻结时,机器门禁直接拦截需求侧命令,流程当场起不来,而不是跑完才发现。</text>
<text class="ts" x="140" y="694">打回只有一个落点:回到本批第一件(HITL-0→⓪ / HITL-1→① / HITL-2→⑥),只回本批,不跨批、不跳件。</text>
</svg>
</div>
</body>
</html>

View File

@@ -1,186 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>④ 知识回流 · AI-Native 全流程</title>
<style>
:root {
--bg: #fafaf7; --ink: #23251f; --muted: #6d6f68; --hair: #e4e2da; --card-line: #d8d6cc;
--card: #ffffff;
--gold: #a5770e; --gold-soft: #fdf6e3;
--green: #2e6e4c; --green-soft: #eef5f0;
--danger: #a84a34;
--master: #f2f1ec; --pill: #f3f2ec;
--edge: #8b8d84;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
header { position: relative; padding: 16px 26px 0; }
h1 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: 0.2px; }
.sub { margin: 0; color: var(--muted); font-size: 12.5px; }
nav { position: absolute; top: 18px; right: 26px; display: flex; gap: 2px; margin: 0;
padding: 3px; background: var(--pill); border-radius: 999px; font-size: 12.5px; }
nav a { color: var(--muted); text-decoration: none; padding: 5px 14px; border-radius: 999px; }
nav a.cur { color: #fff; background: var(--ink); font-weight: 600; }
nav a:not(.cur):hover { color: var(--ink); background: var(--hair); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 12px; border: 1px solid var(--card-line); border-radius: 4px; background: var(--card); }
.sw.master { background: var(--master); border-color: var(--hair); }
.sw.line { width: 24px; height: 0; border: none; border-top: 1.6px solid var(--edge); border-radius: 0; background: none; }
.sw.line.gold { border-top-color: var(--gold); }
.star { color: var(--gold); font-weight: 700; }
.hotl { color: var(--green); font-weight: 700; }
.wrap { padding: 8px 22px 14px; }
svg { width: 100%; height: auto; display: block; }
svg text { font-family: inherit; }
.tt { font-size: 14px; font-weight: 650; fill: var(--ink); }
.tm { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.t { font-size: 12px; fill: var(--ink); }
.ts { font-size: 11px; fill: var(--muted); }
.tc { font-size: 10px; fill: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gd { font-size: 12px; font-weight: 600; fill: var(--gold); }
.gds { font-size: 11px; font-weight: 600; fill: var(--gold); }
.ht { font-size: 11px; font-weight: 600; fill: var(--green); }
.n-card { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-action { fill: var(--green-soft); stroke: #cfdccf; stroke-width: 1; }
.n-master { fill: var(--master); stroke: var(--hair); stroke-width: 1; }
.n-pill { fill: var(--pill); }
.lift { filter: url(#soft); }
.edge { stroke: var(--edge); stroke-width: 1.4; fill: none; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arr); }
.edge-gold { stroke: var(--gold); stroke-width: 1.8; fill: none; stroke-linejoin: round; marker-end: url(#arrG); }
a:hover .n-card, a:hover .n-action, a:hover .n-master { filter: brightness(0.97); }
</style>
</head>
<body>
<header>
<h1>④ 知识回流 —— 三层节奏:逐 Story / Epic 收尾 / 版本收尾</h1>
<p class="sub">业务与技术双列回流进底座,底座再作为下一轮迭代的开工必读 —— 知识在闭环里增值,而不是散落在聊天记录里</p>
<nav>
<a href="overview.html">总览</a>
<a href="init.html">① 初始化</a>
<a href="requirement.html">② 需求分析</a>
<a href="delivery.html">③ 开发 · 测试</a>
<a class="cur" href="knowledge.html">④ 知识回流</a>
</nav>
<p class="legend">
<span><i class="sw"></i>迭代环节</span>
<span><i class="sw master"></i>知识资产</span>
<span><i class="sw line"></i>正向流转</span>
<span><i class="sw line gold"></i>知识流动</span>
<span class="hotl">◎ 全自动</span>
<span class="star">★ 人工确认</span>
</p>
</header>
<div class="wrap">
<svg viewBox="0 30 1600 730" role="img" aria-label="知识回流闭环">
<defs>
<filter id="soft" x="-20%" y="-20%" width="140%" height="140%">
<feDropShadow dx="0" dy="1.5" stdDeviation="2.5" flood-color="#23251f" flood-opacity="0.09"/>
</filter>
<marker id="arr" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#8b8d84"/>
</marker>
<marker id="arrG" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#a5770e"/>
</marker>
</defs>
<!-- 本页自主度徽章 -->
<text class="gds" x="1556" y="64" text-anchor="end">本页自主度:★ 2 处人工确认(Epic / 版本收尾)| ◎ 逐 Story 全自动</text>
<!-- 顶部:版本迭代循环 -->
<g>
<rect class="n-action lift" x="140" y="120" width="200" height="80" rx="12"/>
<text class="tm" x="240" y="152" text-anchor="middle">需求分析</text>
<text class="ts" x="240" y="172" text-anchor="middle">Epic 批</text>
<rect class="n-action lift" x="370" y="120" width="200" height="80" rx="12"/>
<text class="tm" x="470" y="152" text-anchor="middle">技术设计</text>
<text class="ts" x="470" y="172" text-anchor="middle">HLD · 一次</text>
<rect class="n-action lift" x="600" y="120" width="200" height="80" rx="12"/>
<text class="tm" x="700" y="152" text-anchor="middle">开发 · 测试</text>
<text class="ts" x="700" y="172" text-anchor="middle">Story 闭环 × N</text>
<rect class="n-action lift" x="830" y="120" width="200" height="80" rx="12"/>
<text class="tm" x="930" y="152" text-anchor="middle">交付归档</text>
<text class="ts" x="930" y="172" text-anchor="middle">同步 · 归档 · 复盘</text>
<path class="edge" d="M340 160 H370"/>
<path class="edge" d="M570 160 H600"/>
<path class="edge" d="M800 160 H830"/>
</g>
<!-- 迭代产出下沉 -->
<path class="edge-gold" d="M930 202 V240 H660 V286"/>
<!-- 三层回流节奏 -->
<g>
<rect class="n-card lift" x="320" y="290" width="680" height="92" rx="12"/>
<text class="tm" x="340" y="318">① 逐 Story(每次变更归档前)</text>
<text class="ht" x="980" y="318" text-anchor="end">◎ 全自动 · 无人工</text>
<text class="t" x="340" y="346">技术:增量规格同步 → 主规格库(后续 Story 读到最新口径)</text>
<text class="ts" x="340" y="368">业务:不在此层回流,避免中间态污染基线</text>
<rect class="n-pill" x="914" y="352" width="60" height="18" rx="9"/>
<text class="tc" x="922" y="365">tl-sync</text>
<rect class="n-card lift" x="320" y="402" width="680" height="116" rx="12"/>
<text class="tm" x="340" y="430">② Epic 收尾(全部 Story 归档后)</text>
<text class="gd" x="980" y="430" text-anchor="end">★ 人工确认</text>
<text class="t" x="340" y="456">业务:流程 L* · 领域模型 BC / CAP · 蓝图 SB-* · 术语表(只追加)</text>
<text class="t" x="340" y="478">技术:数据模型 TBL-* · 接口目录 API-* · 设计系统 · 决策记录</text>
<text class="ts" x="340" y="502">逐项判定:无变化也要显式记录 no-op,不静默跳过</text>
<rect class="n-pill" x="856" y="492" width="118" height="18" rx="9"/>
<text class="tc" x="864" y="505">tl-baseline-sync</text>
<rect class="n-card lift" x="320" y="538" width="680" height="96" rx="12"/>
<text class="tm" x="340" y="566">③ 版本收尾</text>
<text class="gd" x="980" y="566" text-anchor="end">★ 复盘确认</text>
<text class="t" x="340" y="592">业务:路线图刷新 —— 只改顺序与结论,不改历史</text>
<text class="t" x="340" y="616">技术:度量台账(耗时 / 缺陷)→ 成为下一版本的输入</text>
<rect class="n-pill" x="842" y="604" width="132" height="18" rx="9"/>
<text class="tc" x="850" y="617">tl-roadmap-refresh</text>
</g>
<!-- 节奏 → 底座 -->
<path class="edge-gold" d="M1000 336 H1075"/>
<path class="edge-gold" d="M1000 460 H1075"/>
<path class="edge-gold" d="M1000 586 H1075"/>
<!-- 知识资产底座 -->
<rect class="n-master" x="1080" y="120" width="460" height="520" rx="16"/>
<text class="tt" x="1106" y="154">知识资产底座</text>
<text class="ts" x="1106" y="176">唯一事实来源 · 锚点只增不改名</text>
<rect class="n-card lift" x="1105" y="196" width="410" height="196" rx="12"/>
<text class="tm" x="1127" y="224">业务基线</text>
<text class="t" x="1127" y="252">· 业务流程 L*</text>
<text class="t" x="1127" y="276">· 领域模型 BC / CAP</text>
<text class="t" x="1127" y="300">· 服务蓝图 SB-*</text>
<text class="t" x="1127" y="324">· 统一语言术语表</text>
<text class="t" x="1127" y="348">· 产品定位 · 版本路线图</text>
<text class="ts" x="1127" y="374">规则与硬约束随 Epic 回流</text>
<rect class="n-card lift" x="1105" y="412" width="410" height="204" rx="12"/>
<text class="tm" x="1127" y="440">技术基线</text>
<text class="t" x="1127" y="468">· 主规格库(行为规格)</text>
<text class="t" x="1127" y="492">· 数据模型 TBL-* · 接口目录 API-*</text>
<text class="t" x="1127" y="516">· 设计系统 DS-*</text>
<text class="t" x="1127" y="540">· 架构决策 ADR · 技术规范</text>
<text class="t" x="1127" y="564">· 度量台账(耗时 · 缺陷)</text>
<text class="ts" x="1127" y="594">研发通用知识资产在初始化一次就位</text>
<!-- 底座反哺下一轮(闭环) -->
<path class="edge-gold" d="M1310 642 V700 H240 V204"/>
<text class="gds" x="760" y="692" text-anchor="middle">下一轮迭代开工必读 · 上下文注入每个环节(只消费,不重造)</text>
<!-- 底部铁律 -->
<text class="t" x="140" y="744">铁律:锚点只追加不改名;每个结论都能回查到文件;没有变化时显式记录 no-op,不静默跳过。</text>
</svg>
</div>
</body>
</html>

View File

@@ -1,299 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AI-Native 全流程 · 总览</title>
<style>
:root {
--bg: #fafaf7; --ink: #23251f; --muted: #6d6f68; --hair: #e4e2da; --card-line: #d8d6cc;
--card: #ffffff;
--gold: #a5770e; --gold-soft: #fdf6e3;
--green: #2e6e4c; --green-soft: #eef5f0;
--danger: #a84a34;
--master: #f2f1ec; --pill: #f3f2ec;
--edge: #8b8d84;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
header { position: relative; padding: 16px 26px 0; }
h1 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: 0.2px; }
.sub { margin: 0; color: var(--muted); font-size: 12.5px; }
nav { position: absolute; top: 18px; right: 26px; display: flex; gap: 2px; margin: 0;
padding: 3px; background: var(--pill); border-radius: 999px; font-size: 12.5px; }
nav a { color: var(--muted); text-decoration: none; padding: 5px 14px; border-radius: 999px; }
nav a.cur { color: #fff; background: var(--ink); font-weight: 600; }
nav a:not(.cur):hover { color: var(--ink); background: var(--hair); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 12px; border: 1px solid var(--card-line); border-radius: 4px; background: var(--card); }
.sw.vision { border: 1.2px dashed var(--gold); }
.sw.gate { position: relative; border-radius: 2px; }
.sw.gate::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--ink); }
.sw.master { background: var(--master); border-color: var(--hair); }
.sw.line { width: 24px; height: 0; border: none; border-top: 1.6px solid var(--edge); border-radius: 0; background: none; }
.sw.line.dashed { border-top-color: var(--danger); border-top-style: dashed; }
.sw.line.gold { border-top-color: var(--gold); }
.star { color: var(--gold); font-weight: 700; }
.hotl { color: var(--green); font-weight: 700; }
.wrap { padding: 8px 22px 14px; }
svg { width: 100%; height: auto; display: block; }
svg text { font-family: inherit; }
.tt { font-size: 14px; font-weight: 650; fill: var(--ink); }
.zone { font-size: 12px; font-weight: 600; fill: var(--muted); letter-spacing: 0.5px; }
.tm { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.t { font-size: 12px; fill: var(--ink); }
.ts { font-size: 11px; fill: var(--muted); }
.tc { font-size: 10px; fill: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gd { font-size: 12px; font-weight: 600; fill: var(--gold); }
.gds { font-size: 11px; font-weight: 600; fill: var(--gold); }
.ht { font-size: 11px; font-weight: 600; fill: var(--green); }
.rd { font-size: 11px; fill: var(--danger); }
.n-card { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-action { fill: var(--green-soft); stroke: #cfdccf; stroke-width: 1; }
.n-gate { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
.n-master { fill: var(--master); stroke: var(--hair); stroke-width: 1; }
.n-pill { fill: var(--pill); }
.lift { filter: url(#soft); }
.edge { stroke: var(--edge); stroke-width: 1.4; fill: none; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arr); }
.edge-red { stroke: var(--danger); stroke-width: 1.4; fill: none; stroke-dasharray: 5 4; stroke-linejoin: round; marker-end: url(#arrR); }
.edge-gold { stroke: var(--gold); stroke-width: 1.8; fill: none; stroke-linejoin: round; marker-end: url(#arrG); }
.container { fill: none; stroke: #cfcdc4; stroke-width: 1.2; stroke-dasharray: 6 5; }
.vision { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 6 4; }
a:hover .n-card, a:hover .n-action, a:hover .n-master { filter: brightness(0.97); }
</style>
</head>
<body>
<header>
<h1>AI-Native 研发交付全流程 · 总览</h1>
<p class="sub">Agent Team 承接全流程:人只在 8 个 ★ 决策点出现,其余环节 AI 带收敛判据自闭环 —— L3 人在环内决策 · L4 人在环上监督;overnight-runner 用满闲时算力</p>
<nav>
<a class="cur" href="overview.html">总览</a>
<a href="init.html">① 初始化</a>
<a href="requirement.html">② 需求分析</a>
<a href="delivery.html">③ 开发 · 测试</a>
<a href="knowledge.html">④ 知识回流</a>
</nav>
<p class="legend">
<span class="hotl">◎ HOTL · AI 自闭环(L4 人监督)</span>
<span class="star">★ HITL · 人决策(L3 阻塞点)</span>
<span><i class="sw gate"></i>机器门禁</span>
<span><i class="sw master"></i>知识资产</span>
<span><i class="sw vision"></i>愿景目标</span>
<span><i class="sw line"></i>正向流转</span>
<span><i class="sw line dashed"></i>打回 · 返工</span>
<span><i class="sw line gold"></i>知识流动</span>
</p>
</header>
<div class="wrap">
<svg viewBox="0 20 1600 870" role="img" aria-label="AI-Native 全流程总览">
<defs>
<filter id="soft" x="-20%" y="-20%" width="140%" height="140%">
<feDropShadow dx="0" dy="1.5" stdDeviation="2.5" flood-color="#23251f" flood-opacity="0.09"/>
</filter>
<marker id="arr" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#8b8d84"/>
</marker>
<marker id="arrR" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#a84a34"/>
</marker>
<marker id="arrG" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#a5770e"/>
</marker>
</defs>
<!-- ═══ Agent Team 条 ═══ -->
<text class="zone" x="60" y="76">AI-Native TEAM</text>
<text class="ts" x="60" y="96">人机混合编队 · tl 编排</text>
<g>
<rect class="n-card lift" x="240" y="48" width="200" height="62" rx="12"/>
<text class="tm" x="256" y="74">tl · Team Lead</text>
<text class="ts" x="256" y="96">编排 · 护送决策点</text>
<rect class="n-card lift" x="460" y="48" width="200" height="62" rx="12"/>
<text class="tm" x="476" y="74">po · Product Owner</text>
<text class="ts" x="476" y="96">需求 · 业务分析</text>
<rect class="n-card lift" x="680" y="48" width="200" height="62" rx="12"/>
<text class="tm" x="696" y="74">dev · Developer</text>
<text class="ts" x="696" y="96">实施 · AI 主力编码</text>
<rect class="n-card lift" x="900" y="48" width="200" height="62" rx="12"/>
<text class="tm" x="916" y="74">qa · QA</text>
<text class="ts" x="916" y="96">验证 · 制品对抗审查</text>
<rect class="lift" x="1120" y="48" width="250" height="62" rx="12" fill="var(--gold-soft)" stroke="var(--gold)" stroke-width="1.2" stroke-dasharray="6 4"/>
<text class="tm" x="1136" y="74">reviewer · Review Agent</text>
<text class="gds" x="1136" y="96">异构模型 · 对抗评审(Agent 角色)</text>
</g>
<!-- ① 初始化 -->
<a href="init.html">
<g>
<rect class="n-action lift" x="60" y="200" width="250" height="270" rx="14"/>
<text class="tt" x="185" y="234" text-anchor="middle">① 初始化</text>
<text class="ts" x="185" y="256" text-anchor="middle">一次性 · 只跑一次</text>
<text class="t" x="80" y="288">· 领域深度研究</text>
<text class="t" x="80" y="310">· 业务认知五件套</text>
<text class="t" x="80" y="332">· 技术方案与排期</text>
<text class="ht" x="80" y="360">◎ 研究 / 制品生成 HOTL</text>
<text class="gd" x="80" y="384">★ 三批人工确认 × 3</text>
<rect class="n-pill" x="74" y="398" width="182" height="19" rx="9.5"/>
<text class="tc" x="83" y="411">po-prod-init · tl-arch-plan</text>
<text class="ts" x="80" y="444">产出:冻结的知识资产底座</text>
</g>
</a>
<!-- 初始化 → 大循环 -->
<path class="edge" d="M310 310 H380"/>
<!-- ② 版本/迭代大循环 -->
<rect class="container" x="380" y="150" width="1160" height="390" rx="16"/>
<text class="zone" x="400" y="140">② 版本 / 迭代大循环 —— 每个版本转一圈</text>
<text class="gds" x="1520" y="176" text-anchor="end">自主度:★ 8 处 HITL(L3 人决策)|其余环节 ◎ HOTL(L4 人监督)</text>
<!-- 需求分析 -->
<a href="requirement.html">
<g>
<rect class="n-card lift" x="415" y="200" width="250" height="220" rx="14"/>
<text class="tt" x="540" y="230" text-anchor="middle">需求分析</text>
<text class="ht" x="540" y="250" text-anchor="middle">◎ HOTL · Epic 批自闭环</text>
<text class="t" x="435" y="278">· 调研 → 探索 → 原型</text>
<text class="t" x="435" y="300">· 拆分 → Story × N</text>
<text class="t" x="435" y="322">· 规格评审(AI 五维对抗)</text>
<text class="gd" x="435" y="348">★ E1 探索确认</text>
<text class="gd" x="435" y="368">★ E2 规格 · 原型确认</text>
<text class="rd" x="435" y="390">↻ 回炉 ≤ 2 轮收敛</text>
<rect class="n-pill" x="429" y="396" width="196" height="19" rx="9.5"/>
<text class="tc" x="438" y="409">po-req-explore · qa-req-review</text>
</g>
</a>
<path class="edge" d="M665 310 H695"/>
<!-- 技术设计 -->
<a href="delivery.html">
<g>
<rect class="n-card lift" x="695" y="200" width="250" height="220" rx="14"/>
<text class="tt" x="820" y="230" text-anchor="middle">技术设计</text>
<text class="ht" x="820" y="250" text-anchor="middle">◎ HOTL · AI 自检不停</text>
<text class="t" x="715" y="278">· 架构影响(HLD)</text>
<text class="t" x="715" y="300">· 测试设计</text>
<text class="t" x="715" y="322">· 交接 · 合成提案</text>
<text class="ts" x="715" y="350">无阻塞人工点</text>
<text class="ts" x="715" y="370">E2 确认后自动进入</text>
<rect class="n-pill" x="709" y="396" width="202" height="19" rx="9.5"/>
<text class="tc" x="718" y="409">tl-arch-design · qa-test-design</text>
</g>
</a>
<path class="edge" d="M945 310 H975"/>
<!-- 开发 · 测试 -->
<a href="delivery.html">
<g>
<rect class="n-card lift" x="975" y="200" width="250" height="220" rx="14"/>
<text class="tt" x="1100" y="230" text-anchor="middle">开发 · 测试</text>
<text class="ht" x="1100" y="250" text-anchor="middle">◎ HOTL · 逐 Story 闭环 × N</text>
<text class="t" x="995" y="278">· 规格设计 → 实施</text>
<text class="t" x="995" y="300">· 验证硬门禁(全自动)</text>
<text class="t" x="995" y="322">· 技术评审(异构模型对抗)</text>
<text class="gd" x="995" y="348">★ P0 / P1 缺陷裁决</text>
<text class="rd" x="995" y="368">↻ 不合格 → 打回重做</text>
<rect class="n-pill" x="989" y="396" width="214" height="19" rx="9.5"/>
<text class="tc" x="998" y="409">dev-apply · qa-verify · rv-review</text>
</g>
</a>
<path class="edge" d="M1225 310 H1255"/>
<!-- 交付归档 -->
<a href="knowledge.html">
<g>
<rect class="n-card lift" x="1255" y="200" width="250" height="220" rx="14"/>
<text class="tt" x="1380" y="230" text-anchor="middle">交付归档</text>
<text class="ht" x="1380" y="250" text-anchor="middle">◎ HOTL · 同步与归档</text>
<text class="t" x="1275" y="278">· 规格同步 → 归档</text>
<text class="t" x="1275" y="300">· Epic 收尾 → 基线回流</text>
<text class="t" x="1275" y="322">· 度量台账记录</text>
<text class="gd" x="1275" y="348">★ 基线回流确认</text>
<text class="gd" x="1275" y="368">★ 版本复盘确认</text>
<rect class="n-pill" x="1269" y="396" width="172" height="19" rx="9.5"/>
<text class="tc" x="1278" y="409">tl-sync · tl-baseline-sync</text>
</g>
</a>
<!-- 循环回退:下一个 Epic / 版本 -->
<path class="edge" d="M1380 420 V448 H545 V420"/>
<text class="ts" x="960" y="440" text-anchor="middle">下一个 Epic / 下一版本</text>
<!-- 机器门禁(压在流线上,最后绘制避免被卡片遮挡) -->
<g>
<rect class="n-gate" x="337" y="302" width="16" height="16" rx="2"/>
<rect x="341" y="306" width="8" height="8" fill="none" stroke="var(--ink)" stroke-width="1"/>
<text class="tc" x="345" y="330" text-anchor="middle">基线</text>
<text class="tc" x="345" y="342" text-anchor="middle">冻结</text>
<rect class="n-gate" x="672" y="302" width="16" height="16" rx="2"/>
<rect x="676" y="306" width="8" height="8" fill="none" stroke="var(--ink)" stroke-width="1"/>
<text class="tc" x="680" y="330" text-anchor="middle">E2</text>
<text class="tc" x="680" y="342" text-anchor="middle">确认</text>
<rect class="n-gate" x="952" y="302" width="16" height="16" rx="2"/>
<rect x="956" y="306" width="8" height="8" fill="none" stroke="var(--ink)" stroke-width="1"/>
<text class="tc" x="960" y="330" text-anchor="middle">交接</text>
<text class="tc" x="960" y="342" text-anchor="middle">门禁</text>
<rect class="n-gate" x="1232" y="302" width="16" height="16" rx="2"/>
<rect x="1236" y="306" width="8" height="8" fill="none" stroke="var(--ink)" stroke-width="1"/>
<text class="tc" x="1240" y="330" text-anchor="middle">全</text>
<text class="tc" x="1240" y="342" text-anchor="middle">PASS</text>
</g>
<!-- overnight-runner 愿景带(在循环内) -->
<rect class="vision" x="400" y="464" width="1120" height="60" rx="12"/>
<text class="gds" x="416" y="486">overnight-runner · 愿景目标</text>
<g>
<rect class="n-card" x="590" y="488" width="260" height="28" rx="14"/>
<text class="ts" x="720" y="507" text-anchor="middle">★ E2 日间冻结 · Story 批入队</text>
<rect class="n-card" x="880" y="488" width="300" height="28" rx="14"/>
<text class="ts" x="1030" y="507" text-anchor="middle">夜间 / 周末 · AI 闲时消费 · ◎ 门禁全自动</text>
<rect class="n-card" x="1210" y="488" width="260" height="28" rx="14"/>
<text class="ts" x="1340" y="507" text-anchor="middle">晨间 · 人验收 ★ 裁决</text>
<path class="edge" d="M850 502 H880"/>
<path class="edge" d="M1180 502 H1210"/>
</g>
<!-- 初始化 → 底座 -->
<path class="edge" d="M185 470 V630"/>
<text class="ts" x="200" y="556">产出并冻结底座</text>
<!-- 循环 ⇄ 底座:回流(下)与注入(上) -->
<path class="edge-gold" d="M650 540 V630"/>
<text class="gds" x="668" y="582">知识回流:① 逐 Story ② Epic ③ 版本</text>
<path class="edge-gold" d="M1250 642 V536"/>
<text class="gds" x="1268" y="582">开工必读 · 上下文注入每个环节</text>
<!-- ③ 知识资产底座 -->
<a href="knowledge.html">
<g>
<rect class="n-master" x="60" y="640" width="1480" height="220" rx="16"/>
<text class="tt" x="90" y="674">③ 知识资产底座 —— 唯一事实来源 · 锚点只增不改名</text>
<rect class="n-card lift" x="90" y="700" width="720" height="130" rx="12"/>
<text class="tm" x="112" y="728">业务基线</text>
<text class="t" x="112" y="754">业务流程 L* · 领域模型 BC / CAP · 服务蓝图 SB-*</text>
<text class="t" x="112" y="776">统一语言术语表 · 产品定位 · 版本路线图</text>
<text class="ts" x="112" y="802">业务规则与硬约束随 Epic 回流,只追加</text>
<rect class="n-card lift" x="850" y="700" width="660" height="130" rx="12"/>
<text class="tm" x="872" y="728">技术基线</text>
<text class="t" x="872" y="754">架构决策 ADR · 数据模型 TBL-* · 接口目录 API-*</text>
<text class="t" x="872" y="776">设计系统 DS-* · 主规格库 · 技术规范</text>
<text class="ts" x="872" y="802">研发通用知识资产在初始化时一次就位</text>
</g>
</a>
</svg>
</div>
</body>
</html>

View File

@@ -1,239 +0,0 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>② 需求分析 · AI-Native 全流程</title>
<style>
:root {
--bg: #fafaf7; --ink: #23251f; --muted: #6d6f68; --hair: #e4e2da; --card-line: #d8d6cc;
--card: #ffffff;
--gold: #a5770e; --gold-soft: #fdf6e3;
--green: #2e6e4c; --green-soft: #eef5f0;
--danger: #a84a34;
--master: #f2f1ec; --pill: #f3f2ec;
--edge: #8b8d84;
--lane: #f6f5f1; --lane-bar: #efeee8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
header { position: relative; padding: 16px 26px 0; }
h1 { margin: 0 0 4px; font-size: 17px; font-weight: 650; letter-spacing: 0.2px; }
.sub { margin: 0; color: var(--muted); font-size: 12.5px; }
nav { position: absolute; top: 18px; right: 26px; display: flex; gap: 2px; margin: 0;
padding: 3px; background: var(--pill); border-radius: 999px; font-size: 12.5px; }
nav a { color: var(--muted); text-decoration: none; padding: 5px 14px; border-radius: 999px; }
nav a.cur { color: #fff; background: var(--ink); font-weight: 600; }
nav a:not(.cur):hover { color: var(--ink); background: var(--hair); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 12px; border: 1px solid var(--card-line); border-radius: 4px; background: var(--card); }
.sw.decision { width: 11px; height: 11px; background: var(--gold-soft); border-color: var(--gold); transform: rotate(45deg); }
.sw.gate { position: relative; border-radius: 2px; border-color: var(--ink); }
.sw.gate::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--ink); }
.sw.line { width: 24px; height: 0; border: none; border-top: 1.6px solid var(--edge); border-radius: 0; background: none; }
.sw.line.dashed { border-top-color: var(--danger); border-top-style: dashed; }
.star { color: var(--gold); font-weight: 700; }
.hotl { color: var(--green); font-weight: 700; }
.wrap { padding: 8px 22px 14px; }
svg { width: 100%; height: auto; display: block; }
svg text { font-family: inherit; }
.tt { font-size: 14px; font-weight: 650; fill: var(--ink); }
.tm { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.t { font-size: 12px; fill: var(--ink); }
.ts { font-size: 11px; fill: var(--muted); }
.tc { font-size: 10px; fill: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gd { font-size: 12px; font-weight: 600; fill: var(--gold); }
.gds { font-size: 11px; font-weight: 600; fill: var(--gold); }
.ht { font-size: 11px; font-weight: 600; fill: var(--green); }
.rd { font-size: 11px; fill: var(--danger); }
.lane-label { font-size: 11.5px; font-weight: 650; fill: var(--muted); letter-spacing: 0.5px; }
.n-card { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-action { fill: var(--green-soft); stroke: #cfdccf; stroke-width: 1; }
.n-decision { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.2; }
.n-gate { fill: var(--card); stroke: var(--ink); stroke-width: 1; }
.n-end { fill: var(--card); stroke: var(--card-line); stroke-width: 1; }
.n-pill { fill: var(--pill); }
.lift { filter: url(#soft); }
.edge { stroke: var(--edge); stroke-width: 1.4; fill: none; stroke-linejoin: round; stroke-linecap: round; marker-end: url(#arr); }
.edge-red { stroke: var(--danger); stroke-width: 1.4; fill: none; stroke-dasharray: 5 4; stroke-linejoin: round; marker-end: url(#arrR); }
a:hover .n-card, a:hover .n-action, a:hover .n-end { filter: brightness(0.97); }
</style>
</head>
<body>
<header>
<h1>② 需求分析 —— Epic 批循环(L3 主线 + 每个环节的 L4 自闭环)</h1>
<p class="sub">整批 Story 放在一起评审才判得出冲突;只有两个业务门 ★E1 / ★E2,其余环节 AI 带收敛判据自闭环(◎)</p>
<nav>
<a href="overview.html">总览</a>
<a href="init.html">① 初始化</a>
<a class="cur" href="requirement.html">② 需求分析</a>
<a href="delivery.html">③ 开发 · 测试</a>
<a href="knowledge.html">④ 知识回流</a>
</nav>
<p class="legend">
<span class="hotl">◎ HOTL · AI 执行</span>
<span><i class="sw decision"></i>★ HITL · 人决策</span>
<span><i class="sw gate"></i>质量闸门</span>
<span><i class="sw line"></i>正向流转</span>
<span><i class="sw line dashed"></i>打回 · 回炉</span>
</p>
</header>
<div class="wrap">
<svg viewBox="0 30 1600 800" role="img" aria-label="需求分析循环">
<defs>
<filter id="soft" x="-20%" y="-20%" width="140%" height="140%">
<feDropShadow dx="0" dy="1.5" stdDeviation="2.5" flood-color="#23251f" flood-opacity="0.09"/>
</filter>
<marker id="arr" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#8b8d84"/>
</marker>
<marker id="arrR" viewBox="0 0 10 10" refX="8.5" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
<path d="M0 0L10 5L0 10z" fill="#a84a34"/>
</marker>
</defs>
<!-- 泳道 -->
<rect x="0" y="110" width="1600" height="84" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="110" width="110" height="84" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="146" text-anchor="middle">业务方</text>
<text class="ts" x="55" y="164" text-anchor="middle">决策</text>
<rect x="0" y="194" width="1600" height="290" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="194" width="110" height="290" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="332" text-anchor="middle">po</text>
<text class="ts" x="55" y="350" text-anchor="middle">需求工作区</text>
<rect x="0" y="484" width="1600" height="150" fill="var(--lane)" stroke="var(--hair)"/>
<rect x="0" y="484" width="110" height="150" fill="var(--lane-bar)"/>
<text class="lane-label" x="55" y="552" text-anchor="middle">qa</text>
<text class="ts" x="55" y="570" text-anchor="middle">对抗审查</text>
<!-- 本页自主度徽章 -->
<text class="gds" x="1556" y="64" text-anchor="end">本页自主度:★ 2(E1 / E2)| ◎ 七个环节 AI 自闭环</text>
<!-- 需求调研 -->
<rect class="n-card lift" x="140" y="250" width="150" height="100" rx="12"/>
<text class="tm" x="215" y="284" text-anchor="middle">需求调研</text>
<text class="ts" x="215" y="306" text-anchor="middle">只收集 · 不转化</text>
<text class="ts" x="215" y="326" text-anchor="middle">疑问汇总到探索</text>
<text class="ht" x="282" y="264" text-anchor="end">◎</text>
<rect class="n-pill" x="163" y="360" width="104" height="18" rx="9"/>
<text class="tc" x="171" y="373">po-req-research</text>
<!-- 探索(四件套) -->
<rect class="n-action lift" x="330" y="230" width="250" height="160" rx="12"/>
<text class="tm" x="455" y="258" text-anchor="middle">探索(方案设计)</text>
<text class="ht" x="455" y="278" text-anchor="middle">◎ AI 执行 · 产出四件套</text>
<text class="t" x="350" y="304">· 典型场景 + 简洁旅程</text>
<text class="t" x="350" y="326">· 任务流程图(L4 / L5)</text>
<text class="t" x="350" y="348">· 业务规则与表单</text>
<text class="t" x="350" y="370">· 待业务确认清单</text>
<text class="ts" x="350" y="388">汇总成一张四 Tab 视图给业务看</text>
<rect class="n-pill" x="338" y="398" width="104" height="18" rx="9"/>
<text class="tc" x="346" y="411">po-req-explore</text>
<!-- 原型 -->
<rect class="n-action lift" x="700" y="230" width="230" height="160" rx="12"/>
<text class="tm" x="815" y="258" text-anchor="middle">原型(UI · 两步走)</text>
<text class="ht" x="815" y="278" text-anchor="middle">◎ AI 执行 · 只消费设计系统令牌</text>
<text class="t" x="720" y="304">第一步:分场景走查稿</text>
<text class="t" x="720" y="326">第二步:定稿 living 原型</text>
<text class="t" x="720" y="348">冻结本 Epic 快照</text>
<text class="ts" x="720" y="376">走查稿是交互步骤的事实来源</text>
<rect class="n-pill" x="700" y="398" width="112" height="18" rx="9"/>
<text class="tc" x="708" y="411">po-req-prototype</text>
<!-- 需求拆分 -->
<rect class="n-card lift" x="980" y="250" width="170" height="100" rx="12"/>
<text class="tm" x="1065" y="282" text-anchor="middle">需求拆分</text>
<text class="ts" x="1065" y="304" text-anchor="middle">覆盖对账 · 步骤分配</text>
<text class="ts" x="1065" y="324" text-anchor="middle">承诺项 ≥ 1 个 Story</text>
<text class="ht" x="1142" y="264" text-anchor="end">◎</text>
<rect class="n-pill" x="1012" y="360" width="106" height="18" rx="9"/>
<text class="tc" x="1020" y="373">po-req-storymap</text>
<!-- Story × N(队列感) -->
<rect x="1208" y="242" width="170" height="100" rx="12" fill="none" stroke="var(--card-line)" stroke-dasharray="4 4"/>
<rect x="1204" y="246" width="170" height="100" rx="12" fill="none" stroke="var(--card-line)" stroke-dasharray="4 4"/>
<rect class="n-card lift" x="1200" y="250" width="170" height="100" rx="12"/>
<text class="tm" x="1285" y="282" text-anchor="middle">Story × N</text>
<text class="ts" x="1285" y="304" text-anchor="middle">逐 Story 冻结 · 步骤对齐</text>
<text class="ts" x="1285" y="324" text-anchor="middle">全部冻结才评审</text>
<text class="ht" x="1285" y="368" text-anchor="middle">◎ 冻结即入队 · 可闲时消费</text>
<rect class="n-pill" x="1241" y="380" width="88" height="18" rx="9"/>
<text class="tc" x="1249" y="393">po-req-story</text>
<!-- 体验评审(qa) -->
<rect class="n-card lift" x="700" y="520" width="200" height="90" rx="12"/>
<text class="tm" x="800" y="550" text-anchor="middle">体验评审(UI)</text>
<text class="ht" x="800" y="572" text-anchor="middle">◎ AI 评审 + 自动修复 · 可冻结</text>
<text class="ts" x="800" y="592" text-anchor="middle">设计决策留到 ★E2 确认</text>
<rect class="n-pill" x="744" y="616" width="112" height="18" rx="9"/>
<text class="tc" x="752" y="629">qa-req-ux-review</text>
<!-- 规格评审(闸门) -->
<rect class="n-gate lift" x="1240" y="505" width="220" height="120" rx="6"/>
<rect x="1246" y="511" width="208" height="108" fill="none" stroke="var(--ink)" stroke-width="0.8"/>
<text class="tm" x="1350" y="540" text-anchor="middle">规格评审 · 循环出口</text>
<text class="ts" x="1350" y="562" text-anchor="middle">AI 五维 · 对抗审查(异构模型)</text>
<text class="ts" x="1350" y="580" text-anchor="middle">走查稿 ↔ Story ↔ 原型</text>
<text class="ts" x="1350" y="600" text-anchor="middle">无 open 阻断项才放行</text>
<rect class="n-pill" x="1420" y="631" width="124" height="18" rx="9"/>
<text class="tc" x="1428" y="644">qa-req-spec-review</text>
<!-- 两个人工决策点 -->
<polygon class="n-decision lift" points="620,126 705,158 620,190 535,158"/>
<text class="gd" x="620" y="154" text-anchor="middle">★ E1 探索确认</text>
<text class="ts" x="620" y="172" text-anchor="middle">业务逐条裁决</text>
<polygon class="n-decision lift" points="1420,126 1510,158 1420,190 1330,158"/>
<text class="gd" x="1420" y="154" text-anchor="middle">★ E2 规格·原型确认</text>
<text class="ts" x="1420" y="172" text-anchor="middle">确认后冻结</text>
<!-- 出口 -->
<a href="delivery.html">
<ellipse class="n-end lift" cx="1510" cy="300" rx="70" ry="32"/>
<text class="tm" x="1510" y="296" text-anchor="middle">③ 技术设计</text>
<text class="ts" x="1510" y="314" text-anchor="middle">开发 · 测试</text>
</a>
<!-- 正向流转 -->
<path class="edge" d="M290 300 H330"/>
<path class="edge" d="M455 230 V158 H535"/>
<path class="edge" d="M620 190 V300 H700"/>
<path class="edge" d="M815 392 V460 H800 V520"/>
<path class="edge" d="M900 565 H955 V300 H980"/>
<path class="edge" d="M1150 300 H1200"/>
<path class="edge" d="M1362 352 V505"/>
<path class="edge" d="M1420 505 V190"/>
<path class="edge" d="M1510 190 V268"/>
<!-- 出口门禁:冻结放行 -->
<rect class="n-gate" x="1502" y="219" width="16" height="16" rx="2"/>
<rect x="1506" y="223" width="8" height="8" fill="none" stroke="var(--ink)" stroke-width="1"/>
<text class="tc" x="1526" y="228">冻结放行</text>
<!-- 打回(红虚线):一律走 qa 泳道下方,按目标由近到远排成三条轨道;
竖直段只走卡片之间的空隙,不穿卡片、不压标签 -->
<!-- 体验评审 → 原型(体验问题回炉,走 探索/原型 之间的空缝) -->
<path class="edge-red" d="M700 565 H664 V360 H700"/>
<text class="rd" x="656" y="470" text-anchor="end">体验问题 → 原型回炉</text>
<!-- 规格评审 → Story × N(回队列:从左侧空缝上行,进 Story 左边) -->
<path class="edge-red" d="M1280 625 V648 H1178 V330 H1200"/>
<!-- 规格评审 → 原型(回炉:走 原型 右下的列空隙上行,进底边) -->
<path class="edge-red" d="M1310 625 V670 H915 V390"/>
<!-- 规格评审 → 探索(C 业务变更,立即停) -->
<path class="edge-red" d="M1340 625 V692 H455 V390"/>
<text class="rd" x="470" y="714">G 覆盖缺口 / X 不一致 / T 追溯断链 → 按类回炉(最多 2 轮)</text>
<text class="rd" x="470" y="736">C 业务变更 → 立即停 · 回探索 + 业务裁决</text>
<!-- 底部铁律 -->
<text class="t" x="140" y="766">循环边界:调研是入口,规格评审是唯一出口 —— 评审通过 + ★E2 确认 → 冻结 → 才允许进入技术设计与交接。</text>
<text class="ts" x="140" y="786">为什么是 Epic 批:覆盖率、术语、权限矩阵、Story 与原型的一致性,只有把整批 Story 放在一起看才判得出来。</text>
</svg>
</div>
</body>
</html>