Compare commits
4 Commits
6faf4e0f54
...
backup/mai
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0ba34eb03 | ||
|
|
ed137abc2e | ||
|
|
99d8fce4eb | ||
|
|
34f261e3a9 |
93
.agents/plan/20261120-ba-arch-plan.md
Normal file
93
.agents/plan/20261120-ba-arch-plan.md
Normal file
@@ -0,0 +1,93 @@
|
||||
# BA 侧架构初始化:新增 ba-arch-plan + 更新泳道图
|
||||
|
||||
## 需求
|
||||
|
||||
项目准备阶段 `docs/architecture/` 现在只挂了一个 `tl-arch-plan`,业务侧四件套
|
||||
(product / glossary / core-domain-model / iterations)写在那份 skill 的「与 BA 协作」一行里。
|
||||
用户提出:BA 也得初始化一部分架构,是不是该有自己的 skill,同时更新角色协作图。
|
||||
|
||||
## 结论
|
||||
|
||||
新建 **`ba-arch-plan`**(BA 组)负责业务侧意图,`tl-arch-plan` 收窄到技术侧(C4 + ADR)。
|
||||
guide 的矩阵与 `flow.html` 都把这一格拆成两格。
|
||||
|
||||
不把业务侧塞进 `tl-arch-plan` 的理由:skill 前缀就是角色,`ba-*` 与 `tl-*` 的输入、产出、
|
||||
自检完全不同;合成一个会让 description 变模糊(触发不准),也会让 BA 去调一个 `tl-` 开头的 skill。
|
||||
|
||||
## 职责切分
|
||||
|
||||
| Skill | 管什么 | 不管什么 |
|
||||
|---|---|---|
|
||||
| `ba-arch-plan`(新) | 首次/大幅起草 `business/`:产品边界、术语基线、核心聚合 + 关键字段、迭代规划;给 TL 一份「核心聚合 → 建议容器」的输入 | 不画 C4、不写 ADR、不做 as-built |
|
||||
| `tl-arch-plan`(收窄) | `tech/`:C4 上下文/容器、ADR;确认容器能承载核心聚合 | 不写 `business/` 正文(只读) |
|
||||
| `ba-arch-sync-back` | 迭代后业务侧漂移对齐 | 不做首次起草 |
|
||||
| `ba-write-spec` | 单 feature 追加术语、引用项目术语表 | 不重建术语基线 |
|
||||
|
||||
**顺序:BA 先 → TL 后 → 互审 → 进迭代前须齐。**
|
||||
理由:C4 容器怎么切,依据是核心聚合;先画图再定业务边界必然重画。可并行的只是
|
||||
「TL 画上下文图」与「BA 细化 glossary」,容器图必须等核心聚合定下来。
|
||||
|
||||
## 新 skill 规格
|
||||
|
||||
```markdown
|
||||
---
|
||||
name: ba-arch-plan-template # 安装后 ba-arch-plan
|
||||
description: 起草项目级业务架构意图(产品边界、术语基线、核心领域模型、迭代规划)。
|
||||
当项目准备阶段或新增业务域、需要先把 docs/architecture/business/ 立起来时使用。
|
||||
---
|
||||
```
|
||||
|
||||
正文要点:
|
||||
|
||||
- **前置**:`{{AGENTS_FILE}}` 的业务目标已填;读过 `{{STANDARDS_DIR}}/architecture.md`;`tech/` 可能还不存在
|
||||
- **落点**:`{{ARCHITECTURE_DIR}}/business/{product,glossary,core-domain-model,iterations}.md`,
|
||||
以及 `{{ARCHITECTURE_DIR}}/README.md` 的业务索引
|
||||
- **四件套各写什么**:
|
||||
- `product.md`:一句话定位、角色、边界内/外(明确写「不做什么」)
|
||||
- `glossary.md`:中英对照,唯一权威;只收项目级术语,不收字段名
|
||||
- `core-domain-model.md`:只写核心聚合 + 关键字段;未实现的概念标「未实现」
|
||||
- `iterations.md`:迭代目标与里程碑,指向真实迭代目录
|
||||
- **硬性约束**:不写 C4/ADR;不写 as-built(那是 `{{DOMAIN_MODEL_DOC}}`);
|
||||
术语表只有一份;每条业务规则标来源(干系人 / 文档 / 会议)
|
||||
- **交接给 TL**:在正文末尾给「核心聚合 → 建议容器」一列,供 `tl-arch-plan` 画 C4 时用
|
||||
- **与其它 skill**:`ba-arch-sync-back`(漂移对齐)、`ba-write-spec`(单 feature 追加术语)、
|
||||
`tl-arch-plan`(技术侧接手)
|
||||
|
||||
## 改动
|
||||
|
||||
| 文件 | 改什么 |
|
||||
|---|---|
|
||||
| `agile-team-sdd/skills/ba-arch-plan-template/SKILL.md`(新) | skill 正文,带 `TEMPLATE-ONLY` 块 |
|
||||
| `agile-team-sdd/catalog.json` | `ba` 组首位登记(它发生在其它 ba skill 之前) |
|
||||
| `agile-team-sdd/skills/tl-arch-plan-template/SKILL.md` | description 改「技术侧」;输出表 `business/` 行改成「前置:BA 已产出,本 skill 只读」;自检加「容器能映射核心聚合」;与其它 skill 表加 `ba-arch-plan` |
|
||||
| `agile-team-sdd/SKILL.md` | skill 表加一行;数据流「项目准备」改为 `ba-arch-plan` → `tl-arch-plan` |
|
||||
| `agile-team-sdd/README.md` | 目录树与角色表 |
|
||||
| `harness-installer/templates/docs/architecture/README.md` | `business/` 主责改 `BA(ba-arch-plan)+ TL 审`;维护表加一行 |
|
||||
| `harness-installer/templates/docs/architecture/business/*.md` | 顶部「维护:」标注加 `ba-arch-plan` |
|
||||
| `harness-installer/templates/docs/standards/architecture.md` | TODO 回填那句改成两支 skill |
|
||||
| `example-project/docs/architecture/**` | 与模板同源同步(参考实现要和被管理的样子一致) |
|
||||
| `team-workflow-guide/index.html` | 矩阵「项目准备」3 行 → 4 行(BA 业务架构 / TL 技术架构);1.1 表拆两行;1.2 加两步;1.3 出口条件措辞;角色手册 BA 行 |
|
||||
| `team-workflow-guide/flow.html` | 新增 `ba-arch`(BA 泳道)节点,阶段边界 `3/7/13` → `4/8/14`,连线 `install → ba-arch → arch → direction` |
|
||||
| `README.md`(根) | 角色表、数据流、高阶设计行、快速开始 |
|
||||
| `AGENTS.md` | §8 数据流、§13 同步要求 |
|
||||
| `VERSION` / `CHANGELOG.md` | `0.3.0` → `0.4.0`,新增一节 |
|
||||
| `example-project/.agents/skills/` | `PATH_MODE=relative ./agile-team-sdd/install.sh example-project --force` |
|
||||
|
||||
不新增占位符(复用 `ARCHITECTURE_DIR` / `GLOSSARY_FILE` / `ARCH_DOMAIN_MODEL_DOC` /
|
||||
`DOMAIN_MODEL_DOC` / `STANDARDS_DIR` / `AGENTS_FILE`),`placeholders.md` 不动。
|
||||
|
||||
## 不做的
|
||||
|
||||
- 不把 `business/` 与 `tech/` 拆成两道准入闸门(出口条件仍是一条「架构意图可读」)
|
||||
- 不改 `ba-arch-sync-back` 的职责
|
||||
- 不给 skill 加子命令或参数
|
||||
- 不动 `example-project` 的 tech 内容与已有业务文档正文(只改顶部「维护:」标注)
|
||||
|
||||
## 验证
|
||||
|
||||
1. `catalog.json` 可解析、新 skill 已登记
|
||||
2. `./.agents/verify.sh` 全绿(第 6 节强制 catalog ↔ 模板 ↔ 已安装 **正文一致**,
|
||||
所以 example-project 必须重装;第 8 节查残留占位符 / 绝对路径)
|
||||
3. `git status example-project` 只多出 `.agents/skills/ba-arch-plan/`
|
||||
4. `flow.html` 用浏览器确认新列不压线、阶段带边界对齐、无控制台报错
|
||||
5. Markdown 相对链接(第 9 节)
|
||||
79
.agents/plan/20261120-suite-version.md
Normal file
79
.agents/plan/20261120-suite-version.md
Normal file
@@ -0,0 +1,79 @@
|
||||
# 套件版本号 + 安装清单
|
||||
|
||||
## 需求
|
||||
|
||||
用户希望「装的是哪一版、几个模块是否一致」能被机器判断,而不是靠人记。
|
||||
提问原话:*每个模块是不是都搞个版本比较好?这样才能保持一致?*
|
||||
|
||||
## 结论:两层,不是每模块一个号
|
||||
|
||||
| 层 | 放哪 | 管什么 | 谁跟随 |
|
||||
|---|---|---|---|
|
||||
| 套件版本 | 仓库根 `VERSION` + `CHANGELOG.md` | 一次安装的整体快照,回答「这版能不能装到 poc」 | `agile-team-sdd`、`harness-installer`、`tool-chain-installer` 跟随 |
|
||||
| 模块版本 | 模块自己的代码(已有) | 模块的兼容面:引擎 ↔ 预设格式、runner 运行时 | `agents-workflow-engine` 0.2.0、`overnight-runner` 0.1.0 |
|
||||
|
||||
不给每个模块单独编号的理由:四个安装器与套件型模块都从同一个 checkout 安装、
|
||||
同一次运行装完,没有独立分发与升级通道;再加 6 个号只会多 6 处 bump 和一张兼容矩阵,
|
||||
反而更容易不一致。模块版本只在「模块被单独复制走、并且有自己的兼容面」时才保留。
|
||||
|
||||
## 连接两层:安装清单
|
||||
|
||||
每个安装器往目标项目写 **自己那一份**:
|
||||
|
||||
```
|
||||
<目标项目>/.agents/harness/<模块>.json
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"module": "agile-team-sdd",
|
||||
"version": "0.3.0",
|
||||
"suite": "0.3.0",
|
||||
"installedAt": "2026-11-20T02:11:43Z"
|
||||
}
|
||||
```
|
||||
|
||||
不采用「所有模块合写一个 `.agents/harness.json`」:那样每个安装器都要读改写同一个文件,
|
||||
要合并、要防并发,还得维护一份共享的模块清单(违反 §4 清单唯一事实源)。
|
||||
一个模块一个文件 = 单写者、原子 rename、不需要共享列表,读的时候 `cat .agents/harness/*.json`。
|
||||
|
||||
规则:
|
||||
|
||||
- `version`:模块自己的版本;没有自带版本号的模块取套件版本
|
||||
- `suite`:写入时仓库根的 `VERSION`
|
||||
- 已存在且版本没变 → 不改文件(`installedAt` 保持首次安装时间),保证幂等
|
||||
- 已存在且版本变了 → 只有 `--force` 才更新;否则 stderr 提示「文件是跳过模式,清单未改」,
|
||||
避免出现「文件没升级、清单却升级」
|
||||
- `--dry-run` 只打印计划
|
||||
|
||||
## 改动
|
||||
|
||||
| 文件 | 改什么 |
|
||||
|---|---|
|
||||
| `VERSION`(新) | `0.3.0` |
|
||||
| `CHANGELOG.md`(新) | 套件级变更记录,第一节必须与 `VERSION` 相等 |
|
||||
| `agile-team-sdd/install.sh` | 写 `agile-team-sdd.json` |
|
||||
| `harness-installer/scripts/init-harness.sh` | 写 `harness-installer.json` |
|
||||
| `tool-chain-installer/scripts/install-tools.mjs` | 写 `tool-chain-installer.json` |
|
||||
| `overnight-runner/scripts/install.sh` | 写 `overnight-runner.json`(version 取 `__version__`) |
|
||||
| `agents-workflow-engine/scripts/install.sh` | 写 `agents-workflow-engine.json`(version 取 `version.py`) |
|
||||
| `.agents/verify.sh` | 第 13 节:`VERSION` ↔ `CHANGELOG.md`;`example-project/.agents/harness/*.json` ↔ 源码版本 |
|
||||
| `AGENTS.md` | §6 加「写安装清单」、§10 加两项检查、§12 加版本 bump、§13 树补 `VERSION` / `CHANGELOG.md` |
|
||||
| `README.md` | 新增「版本与同步」一节 |
|
||||
|
||||
## 不做的
|
||||
|
||||
- 不引入 `jq` / 第三方库:清单用 `printf` 生成,读用 `sed`
|
||||
- 不让安装器互相 import 或共享一份 helper 脚本:Bash 侧各写一份 ~25 行,
|
||||
符合 §3「安装器之间不互相 import」
|
||||
- 不给 skill 正文、占位符字典单独编号:它们跟随套件版本
|
||||
- 不改模块自带的 `version.py` / `__version__` 的取值体系
|
||||
|
||||
## 验证
|
||||
|
||||
1. `bash -n` / `node --check` 五个安装器
|
||||
2. 每个安装器对临时目录跑 `--dry-run`(不落盘)与真跑(落盘、内容正确)
|
||||
3. 幂等:同一版本连跑两次,第二次清单文件 mtime 不变
|
||||
4. 版本变化 + 不带 `--force`:stderr 提示且清单保持旧值
|
||||
5. 对 `example-project` 重跑四个安装器(引擎不装进 example),产出清单
|
||||
6. `./.agents/verify.sh` 全绿
|
||||
@@ -124,7 +124,7 @@ fi
|
||||
head_ "6. 清单 ↔ 模板 ↔ 已安装 一致"
|
||||
if [ -n "$PY" ]; then
|
||||
"$PY" - <<'PYEOF'
|
||||
import json, pathlib, sys
|
||||
import json, pathlib, re, sys
|
||||
|
||||
bad = []
|
||||
catalog_path = pathlib.Path('agile-team-sdd/catalog.json')
|
||||
@@ -147,8 +147,40 @@ if listed != templates:
|
||||
if listed != installed:
|
||||
print(f' \033[31m✘\033[0m 清单与已安装不一致:{sorted(listed ^ installed)}')
|
||||
bad.append('catalog/installed')
|
||||
if not bad:
|
||||
print(f' \033[32m✔\033[0m 三方一致({len(listed)} 个 skill)')
|
||||
|
||||
# 名字对上还不够:模板改了没重装,装进去的就是旧正文。
|
||||
# 逐行比对,占位符渲染成路径 / 端口 / 分支名,所以按通配比对;TEMPLATE-ONLY 块安装时已删掉。
|
||||
TPL_ONLY = re.compile(r'<!-- TEMPLATE-ONLY -->.*?<!-- /TEMPLATE-ONLY -->\n\n?', re.S)
|
||||
PH_SPLIT = re.compile(r'(\{\{[A-Z0-9_]+\}\})')
|
||||
|
||||
def line_matches(tpl_line, got_line):
|
||||
parts = PH_SPLIT.split(tpl_line)[::2]
|
||||
return re.fullmatch('.+?'.join(re.escape(p) for p in parts), got_line) is not None
|
||||
|
||||
stale = 0
|
||||
for d in sorted(tpl_root.iterdir()):
|
||||
if not d.is_dir():
|
||||
continue
|
||||
tpl_name = d.name
|
||||
skill = tpl_name[:-len('-template')] if tpl_name.endswith('-template') else tpl_name
|
||||
for f in sorted(p for p in d.rglob('*') if p.is_file()):
|
||||
target = installed_root / skill / f.relative_to(d)
|
||||
if not target.exists():
|
||||
print(f' \033[31m✘\033[0m 项目里缺 {target}(模板有)')
|
||||
stale += 1
|
||||
continue
|
||||
text = TPL_ONLY.sub('', f.read_text(encoding='utf-8')).replace(f'name: {tpl_name}\n', f'name: {skill}\n')
|
||||
exp = text.splitlines()
|
||||
got = target.read_text(encoding='utf-8').splitlines()
|
||||
idx = next((i for i in range(min(len(exp), len(got))) if not line_matches(exp[i], got[i])), None)
|
||||
if idx is not None or len(exp) != len(got):
|
||||
where = f'第 {idx + 1} 行' if idx is not None else f'行数 {len(exp)} vs {len(got)}'
|
||||
print(f' \033[31m✘\033[0m {target} 落后于模板({where})—— 重跑 install.sh --force')
|
||||
stale += 1
|
||||
if stale:
|
||||
bad.append('stale-installed')
|
||||
elif not bad:
|
||||
print(f' \033[32m✔\033[0m 三方一致({len(listed)} 个 skill),已安装正文与模板一致')
|
||||
sys.exit(1 if bad else 0)
|
||||
PYEOF
|
||||
if [ $? -eq 0 ]; then PASSED=$((PASSED + 1)); else FAILED=$((FAILED + 1)); fi
|
||||
@@ -164,10 +196,10 @@ import pathlib, re, sys
|
||||
|
||||
used = set()
|
||||
for f in pathlib.Path('agile-team-sdd/skills').rglob('*.md'):
|
||||
used |= set(re.findall(r'\{\{([A-Z_]+)\}\}', f.read_text(encoding='utf-8')))
|
||||
used |= set(re.findall(r'\{\{([A-Z0-9_]+)\}\}', f.read_text(encoding='utf-8')))
|
||||
|
||||
doc = pathlib.Path('agile-team-sdd/placeholders.md')
|
||||
declared = set(re.findall(r'\{\{([A-Z_]+)\}\}', doc.read_text(encoding='utf-8'))) if doc.exists() else set()
|
||||
declared = set(re.findall(r'\{\{([A-Z0-9_]+)\}\}', doc.read_text(encoding='utf-8'))) if doc.exists() else set()
|
||||
|
||||
missing = sorted(used - declared)
|
||||
if missing:
|
||||
@@ -182,12 +214,12 @@ for f in tpl.rglob('*'):
|
||||
if not f.is_file():
|
||||
continue
|
||||
try:
|
||||
harness_used |= set(re.findall(r'\{\{([A-Z_]+)\}\}', f.read_text(encoding='utf-8')))
|
||||
harness_used |= set(re.findall(r'\{\{([A-Z0-9_]+)\}\}', f.read_text(encoding='utf-8')))
|
||||
except UnicodeDecodeError:
|
||||
continue
|
||||
|
||||
script = pathlib.Path('harness-installer/scripts/init-harness.sh').read_text(encoding='utf-8')
|
||||
substituted = set(re.findall(r'^\s*"([A-Z_]+)=', script, re.M))
|
||||
substituted = set(re.findall(r'^\s*"([A-Z0-9_]+)=', script, re.M))
|
||||
|
||||
problems = []
|
||||
for ph in sorted(harness_used - substituted):
|
||||
@@ -215,7 +247,7 @@ bad = []
|
||||
files = sorted(root.rglob('*.md')) if root.exists() else []
|
||||
for f in files:
|
||||
text = f.read_text(encoding='utf-8')
|
||||
for ph in re.findall(r'\{\{[A-Z_]+\}\}', text):
|
||||
for ph in re.findall(r'\{\{[A-Z0-9_]+\}\}', text):
|
||||
print(f' \033[31m✘\033[0m {f} — 残留占位符 {ph}')
|
||||
bad.append(f)
|
||||
for m in re.findall(r'/(?:Users|home)/[^\s`"\')]+', text):
|
||||
@@ -462,6 +494,53 @@ else
|
||||
bad "引擎版本不一致: version.py=${VER_ENGINE:-空} CHANGELOG=${VER_LOG:-空}"
|
||||
fi
|
||||
|
||||
# ── 13. 版本与安装清单 ─────────────────────────────────────────────
|
||||
head_ "13. 版本与安装清单"
|
||||
|
||||
# 仓库根 VERSION 是套件版本的唯一事实源,CHANGELOG 最新一节必须与之一致
|
||||
VER_SUITE="$(sed -n '1s/[[:space:]]*$//;1p' VERSION 2>/dev/null)"
|
||||
VER_SUITE_LOG="$(grep -m1 '^## \[' CHANGELOG.md 2>/dev/null | sed 's/^## \[\([^]]*\)\].*/\1/')"
|
||||
if [ -n "$VER_SUITE" ] && [ "$VER_SUITE" = "$VER_SUITE_LOG" ]; then
|
||||
ok "套件版本一致: $VER_SUITE"
|
||||
else
|
||||
bad "套件版本不一致: VERSION=${VER_SUITE:-空} CHANGELOG=${VER_SUITE_LOG:-空}"
|
||||
fi
|
||||
|
||||
# 每个模块装进目标项目时写一份 .agents/harness/<模块>.json;这里比对「已安装副本 ↔ 源码」
|
||||
manifest_field() {
|
||||
sed -n "s/.*\"$2\": *\"\([^\"]*\)\".*/\1/p" "$1" 2>/dev/null | head -1
|
||||
}
|
||||
manifest_count=0
|
||||
while IFS= read -r f; do
|
||||
[ -z "$f" ] && continue
|
||||
manifest_count=$((manifest_count + 1))
|
||||
module="$(basename "$f" .json)"
|
||||
got="$(manifest_field "$f" suite)"
|
||||
if [ "$got" = "$VER_SUITE" ]; then
|
||||
ok "清单 $module 套件 $got"
|
||||
else
|
||||
bad "清单 $module 套件 ${got:-空} ≠ 源码 ${VER_SUITE}(重跑该模块安装器)"
|
||||
fi
|
||||
done < <(find example-project/.agents/harness -name "*.json" 2>/dev/null | sort)
|
||||
if [ "$manifest_count" -eq 0 ]; then
|
||||
skip "example-project 还没有安装清单(跑完安装器就会出现)"
|
||||
fi
|
||||
|
||||
# 自带版本号的模块:清单里的 version 必须等于它自己的版本源
|
||||
check_manifest_version() {
|
||||
f="example-project/.agents/harness/$1.json"
|
||||
[ -f "$f" ] || return 0
|
||||
got="$(manifest_field "$f" version)"
|
||||
if [ "$got" = "$2" ]; then
|
||||
ok "清单 $1 版本 $got"
|
||||
else
|
||||
bad "清单 $1 版本 ${got:-空} ≠ 源码 ${2:-空}"
|
||||
fi
|
||||
}
|
||||
VER_RUNNER="$(sed -n 's/^__version__ = "\(.*\)"$/\1/p' overnight-runner/overnight_runner/__init__.py 2>/dev/null)"
|
||||
check_manifest_version overnight-runner "$VER_RUNNER"
|
||||
check_manifest_version agents-workflow-engine "$VER_ENGINE"
|
||||
|
||||
# ── 汇总 ───────────────────────────────────────────────────────────
|
||||
printf '\n\033[1m%s\033[0m\n' "────────────────────────────"
|
||||
if [ "$FAILED" -eq 0 ]; then
|
||||
|
||||
18
AGENTS.md
18
AGENTS.md
@@ -27,7 +27,7 @@
|
||||
```
|
||||
team-harness-suite/
|
||||
├── .agents/ # 本仓库自用:verify.sh + plan/ + skills/
|
||||
├── agile-team-sdd/ # SDD 技能套件(26 个 skill 模板 + 安装器)
|
||||
├── agile-team-sdd/ # SDD 技能套件(27 个 skill 模板 + 安装器)
|
||||
├── harness-installer/ # 初始化目标项目的 AGENTS.md + docs/ 骨架
|
||||
├── tool-chain-installer/ # 安装 MCP 工具链到项目配置
|
||||
├── overnight-runner/ # 无人值守跑 plan 的分屏面板 + 看门狗
|
||||
@@ -130,7 +130,7 @@ agile-team-sdd/skills/dev-plan-template/SKILL.md (frontmatter: name: dev-pla
|
||||
┌──▼──────────┐ ┌▼───────────┐ ┌▼──────────────────┐
|
||||
│harness- │ │agile-team- │ │tool-chain- │
|
||||
│installer/ │ │sdd/ │ │installer/ │
|
||||
│AGENTS.md │ │26 个 skill │ │MCP 工具链 │
|
||||
│AGENTS.md │ │27 个 skill │ │MCP 工具链 │
|
||||
│docs/ 骨架 │ │模板 + 安装器│ │ │
|
||||
└─────────────┘ └┬───────────┘ └──────────────────┘
|
||||
│ 装进
|
||||
@@ -226,6 +226,8 @@ agile-team-sdd/skills/dev-plan-template/SKILL.md (frontmatter: name: dev-pla
|
||||
| 不写绝对路径到产物 | 安装到目标项目的文件里 **不能** 出现安装机的路径 |
|
||||
| 不碰目标项目的业务代码 | 只写自己约定的文件(`.agents/skills/`、`docs/`、配置文件…) |
|
||||
| 密钥不落盘 | 需要密钥的配置写 `{env:VAR}` 引用,真值由使用者注入 |
|
||||
| 写安装清单 | 每个模块写 `<目标项目>/.agents/harness/<模块>.json`(`module` / `version` / `suite` / `installedAt`),**谁安装谁写自己那份**,不合并;清单版本只在文件真的升级时才改 |
|
||||
| `--manifest-only` | 模板改动已 **手工同步** 进目标项目时,只更新清单、不刷文件(默认不覆盖 → 想升清单又不该覆盖时用这个,别用 `--force`) |
|
||||
|
||||
## 7. 错误处理
|
||||
|
||||
@@ -254,7 +256,8 @@ agile-team-sdd/skills/dev-plan-template/SKILL.md (frontmatter: name: dev-pla
|
||||
### 数据流
|
||||
|
||||
```
|
||||
项目准备:tl-arch-plan(BA/TL)→ docs/architecture/(C4、ADR、术语、领域意图、迭代规划)
|
||||
项目准备:ba-arch-plan(业务侧:边界、术语、核心聚合、迭代规划 → docs/architecture/business/)
|
||||
→ tl-arch-plan(技术侧:C4、ADR,容器承载核心聚合 → docs/architecture/tech/)
|
||||
用户的一句话需求
|
||||
→ ba-grill-me(拷问)
|
||||
→ ba-write-spec(需求规格 docs/features/<迭代>/<CODE>-<slug>/spec.md;术语 → architecture/business/glossary.md)
|
||||
@@ -340,13 +343,15 @@ pending ──▶ running ──┬──▶ success
|
||||
| Node 语法 | `node --check <file>` |
|
||||
| JSON / YAML 可解析 | 解析一遍 |
|
||||
| skill 名/目录一致、无重名 | 见验证脚本 |
|
||||
| 清单 ↔ 模板 ↔ 已安装 三方一致 | 见验证脚本 |
|
||||
| 清单 ↔ 模板 ↔ 已安装 三方一致 | 见验证脚本(名字一致 **且** 逐行正文一致——模板改了没重装会被抓出来) |
|
||||
| Markdown 相对链接有效 | 见验证脚本 |
|
||||
| 安装后无残留占位符 | 见验证脚本 |
|
||||
| 安装后无残留占位符 | 见验证脚本(占位符名含数字,如 `{{E2E_RUNNER}}`,正则要用 `[A-Z0-9_]+`) |
|
||||
| overnight-runner 单元测试 | `overnight-runner/tests/test_units.py`(44 个用例:YAML 子集 + 终端宽度 + 队列路径/迁移 + 决策 + 锁 + 按键读取) |
|
||||
| overnight-runner 行为 | `overnight-runner/tests/test_smoke.py`(13 个用例,假 agent 驱动) |
|
||||
| agents-workflow-engine 单元测试 | `agents-workflow-engine/tests/test_units.py`(46 个用例:图校验/调度/回路、提示词、两个模型、独立 agent 命令行、三种执行方式、版本号) |
|
||||
| 引擎版本号一致 | `version.py` ↔ `CHANGELOG.md` 最新一节(见验证脚本) |
|
||||
| 套件版本号一致 | 根 `VERSION` ↔ 根 `CHANGELOG.md` 最新一节(见验证脚本) |
|
||||
| 安装清单一致 | `example-project/.agents/harness/*.json` ↔ 源码版本:套件版本落后就说明该重跑安装器 |
|
||||
|
||||
一条命令跑全部:
|
||||
|
||||
@@ -412,6 +417,7 @@ pending ──▶ running ──┬──▶ success
|
||||
- [ ] 跑过 `./.agents/verify.sh`
|
||||
- [ ] 改了 `overnight-runner` 的行为 → 单元测试 44/44 + 冒烟测试 13/13 通过
|
||||
- [ ] 改了 `agents-workflow-engine` 的行为 → bump `version.py` + 补 `CHANGELOG.md`,单元测试 46/46 通过
|
||||
- [ ] 改了任意模块的行为 → bump 根 `VERSION` + 补根 `CHANGELOG.md` 一节(版本对不上 `verify.sh` 会报)
|
||||
- [ ] 文档里的相对链接有效
|
||||
- [ ] 没提交 `.venv/`、`__pycache__/`、运行时状态(`.overnight-runner/queue/*/state.json`、`logs/`、`.lock`)
|
||||
|
||||
@@ -421,6 +427,8 @@ pending ──▶ running ──┬──▶ success
|
||||
team-harness-suite/
|
||||
├── README.md # 仓库总览:目的 + 模块表 + 快速开始
|
||||
├── AGENTS.md # 本文件:架构与工程规范
|
||||
├── VERSION # 套件版本(唯一事实源,跟着根 CHANGELOG 走)
|
||||
├── CHANGELOG.md # 套件变更记录(模块自带版本号时另外记)
|
||||
├── opencode.jsonc # 注册本仓库的 skills 路径
|
||||
│
|
||||
├── .agents/
|
||||
|
||||
56
CHANGELOG.md
Normal file
56
CHANGELOG.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# 变更记录(套件)
|
||||
|
||||
本文件记 **整个 harness 套件** 的版本。仓库根 [`VERSION`](VERSION) 是唯一事实源,两者必须相等
|
||||
(`./.agents/verify.sh` 第 13 节会检查)。
|
||||
|
||||
只有两个模块自带版本号,它们记的是自己的兼容面,不跟随本文件的编号:
|
||||
|
||||
| 模块 | 版本源 | 为什么要单独编号 |
|
||||
|---|---|---|
|
||||
| `agents-workflow-engine` | [`agents_workflow_engine/version.py`](agents-workflow-engine/agents_workflow_engine/version.py) + [CHANGELOG](agents-workflow-engine/CHANGELOG.md) | 引擎会被整目录复制进目标项目并有自己的预设格式代次(`__schema__`) |
|
||||
| `overnight-runner` | `overnight_runner/__init__.py` 的 `__version__` | 同样是整目录复制走的运行时 |
|
||||
|
||||
其余模块(`agile-team-sdd`、`harness-installer`、`tool-chain-installer`、`team-workflow-guide`)
|
||||
跟随套件版本。
|
||||
|
||||
装进目标项目后,每个模块在 `.agents/harness/<模块>.json` 留一条清单,
|
||||
记着自己的版本与安装时的套件版本 —— 这是「装的是哪一版、落后多少」的机器可读答案。
|
||||
|
||||
## [0.4.0] - 2026-11-20
|
||||
|
||||
把项目准备的架构职责拆成两半:BA 立业务意图,TL 接技术架构。
|
||||
|
||||
- **新增 `ba-arch-plan`**(BA 组,第 27 个 skill):起草 `docs/architecture/business/`
|
||||
的产品边界、术语基线、核心聚合、迭代规划,并给出「核心聚合 → 建议容器」交接表给 TL
|
||||
- **`tl-arch-plan` 收窄到技术侧**:只管 `tech/`(C4 上下文/容器、ADR),`business/` 只读;
|
||||
容器切分依据必须是业务侧的核心聚合,而不是代码目录
|
||||
- **顺序固定**:BA 先 → TL 后 —— 先画 C4 再定业务边界,图必重画
|
||||
- **骨架同步**:`harness-installer` 模板里 `architecture/README.md`、`business/*.md` 的「维护:」
|
||||
与 `AGENTS.md.template` 的目录注释都改成两支 skill
|
||||
- **guide**:矩阵「项目准备」拆成 BA 业务架构 / TL 技术架构两行;接入顺序、出口条件、角色手册同步;
|
||||
`flow.html` 在 BA 泳道加「业务架构意图」节点,阶段边界顺延一列
|
||||
- **安装器 `--manifest-only`**:目标项目里文档已被填过、不该被 `--force` 覆盖时,用它只把
|
||||
`.agents/harness/<模块>.json` 升到当前套件版本(模板改动由人手工同步);三个安装器同步支持
|
||||
- **`--help` 修正**:`install-tools.mjs` 之前把 `//` 前缀原样打出来,且漏了 `--list`
|
||||
|
||||
## [0.3.0] - 2026-11-20
|
||||
|
||||
给套件立一个版本号,并让每个模块装进目标项目时留下清单,能机器比对「装的是哪一版、差几个模块」。
|
||||
|
||||
- **套件版本**:新增根 `VERSION` 与本文件;`agents-workflow-engine` / `overnight-runner` 沿用各自的版本号
|
||||
- **安装清单**:五个安装器都会写 `.agents/harness/<模块>.json`(`module` / `version` / `suite` / `installedAt`),
|
||||
一个模块一个文件,谁安装谁写自己那份,不需要合并
|
||||
- **版本比较**:安装器发现项目里记着别的版本时在 stderr 提示;没加 `--force` 就不动清单,
|
||||
避免出现「文件跳过了、清单却升级了」
|
||||
- **验证**:`verify.sh` 新增第 13 节 —— `VERSION` ↔ 本文件、`example-project` 的清单 ↔ 源码版本
|
||||
- **已安装正文一致性**:第 6 节从「只比名字」改成「逐行比正文」(占位符按通配),模板改了没重装会被抓出来;
|
||||
同时补齐 `example-project` 里落后于模板的 3 个 skill(`qa-run-e2e` / `qa-write-cases` / `qa-write-manual-plan`)
|
||||
- **修占位符正则**:占位符名带数字(`{{E2E_RUNNER}}` / `{{E2E_DIR}}` / `{{E2E_CASES_DIR}}`)之前不在
|
||||
`[A-Z_]+` 的覆盖范围里,残留检查与「已登记」检查都漏看它们;统一改成 `[A-Z0-9_]+`
|
||||
- **修 `PATH_MODE` 未定义**:`agile-team-sdd/install.sh` 在 `PATH_MODE` 默认值之前就读了它,
|
||||
`set -u` 下直接报 unbound variable
|
||||
- 模块版本:`agents-workflow-engine` 0.2.0、`overnight-runner` 0.1.0
|
||||
|
||||
## 0.3.0 之前
|
||||
|
||||
没有套件版本号。各模块的改动只记在自己的 README 与 `agents-workflow-engine/CHANGELOG.md` 里。
|
||||
55
README.md
55
README.md
@@ -30,7 +30,7 @@ AI4SE 框架构想(框内元素仅为示例,可能会装入更多实践):
|
||||
|
||||
| 模块 | 目录 | 目的 | 形态 |
|
||||
| ---------------- | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------- | ----------------- |
|
||||
| **SDD 技能套件** | [`agile-team-sdd/`](agile-team-sdd/) | 团队统一的开发流程 skill,26 个覆盖 BA→TL→PM→开发→QA→发布→复盘,含无前缀的 `overnight-runner`。模板带占位符,可安装到任意项目,并容易被调整修改 | skill + 安装脚本 |
|
||||
| **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 · 人编排** | 文档 |
|
||||
@@ -40,7 +40,7 @@ AI4SE 框架构想(框内元素仅为示例,可能会装入更多实践):
|
||||
|
||||
## 两种协作模式:L3 与 L4
|
||||
|
||||
同一套 26 个 skill、同一个 SDD 流程,有两种跑法。区别只在 **人站在哪一环**。
|
||||
同一套 27 个 skill、同一个 SDD 流程,有两种跑法。区别只在 **人站在哪一环**。
|
||||
|
||||
| | [`team-workflow-guide/`](team-workflow-guide/) | [`agents-workflow-engine/`](agents-workflow-engine/) |
|
||||
|---|---|---|
|
||||
@@ -58,6 +58,31 @@ AI4SE 框架构想(框内元素仅为示例,可能会装入更多实践):
|
||||
|
||||
两种模式不互斥,产物落在同一个仓库的 `docs/` 里:团队日常走 L3,个人把自己整条线交给 L4 的图。
|
||||
|
||||
## 版本与同步
|
||||
|
||||
套件只有一个版本号:仓库根 [`VERSION`](VERSION),变更记在 [`CHANGELOG.md`](CHANGELOG.md)。两者对不上,`./.agents/verify.sh` 会报。
|
||||
|
||||
只有两个模块自带版本号 —— 它们会被整目录复制进目标项目,而且有自己的兼容面(引擎 ↔ 预设格式、runner 运行时):
|
||||
|
||||
| 模块 | 版本源 |
|
||||
|---|---|
|
||||
| `agents-workflow-engine` | `agents_workflow_engine/version.py`(另有 `__schema__` 标预设格式代次) |
|
||||
| `overnight-runner` | `overnight_runner/__init__.py` 的 `__version__` |
|
||||
|
||||
其余模块(`agile-team-sdd`、`harness-installer`、`tool-chain-installer`)跟随套件版本:它们同一次安装装完,没有独立升级通道,各自编号只会多几处要同步的地方。
|
||||
|
||||
**装完之后看清单。** 每个安装器往目标项目写一份自己那份:
|
||||
|
||||
```
|
||||
<目标项目>/.agents/harness/<模块>.json
|
||||
```
|
||||
|
||||
```json
|
||||
{ "module": "agile-team-sdd", "version": "0.3.0", "suite": "0.3.0", "installedAt": "2026-11-20T03:01:50Z" }
|
||||
```
|
||||
|
||||
一个模块一个文件、谁安装谁写自己那份,所以不需要合并,也不会互相覆盖。清单里的 `suite` 落后于仓库根 `VERSION`,就是这个模块该重装了。
|
||||
|
||||
## 关系图
|
||||
|
||||
```
|
||||
@@ -67,7 +92,7 @@ AI4SE 框架构想(框内元素仅为示例,可能会装入更多实践):
|
||||
┌───────────────────────┼───────────────────────┐
|
||||
│ │ │
|
||||
harness-installer agile-team-sdd tool-chain-installer
|
||||
AGENTS.md 规范 26 个 SDD skill MCP 工具链
|
||||
AGENTS.md 规范 27 个 SDD skill MCP 工具链
|
||||
docs/ 含 architecture BA·TL·Dev·QA·PM 全流程
|
||||
│ │ │
|
||||
└───────────────────────┼───────────────────────┘
|
||||
@@ -77,17 +102,18 @@ AI4SE 框架构想(框内元素仅为示例,可能会装入更多实践):
|
||||
(参考实现 · 已装好全套)
|
||||
```
|
||||
|
||||
## SDD 技能套件(26 个)
|
||||
## SDD 技能套件(27 个)
|
||||
|
||||
| 组 | Skill | 作用 |
|
||||
|---|---|---|
|
||||
| **BA** | `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 |
|
||||
| **BA** | `ba-arch-plan` | 项目准备起草业务架构意图:产品边界、术语基线、核心聚合、迭代规划 |
|
||||
| | `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 |
|
||||
| | `ba-write-spec` | 编写需求规格;维护项目级术语表(`docs/architecture/business/glossary.md`) |
|
||||
| | `ba-write-prototype` | 按 spec 做原型,放到该迭代 prototypes |
|
||||
| | `ba-requirement-review` | 用另一个模型审查 spec,只回答满意或不满意 |
|
||||
| | `ba-gen-facts` | 从代码生成/校准事实文档:API、库表、领域模型、专题 |
|
||||
| | `ba-arch-sync-back` | 业务侧对齐:术语 / 核心领域 / 产品 ↔ features 与 facts |
|
||||
| **TL** | `tl-arch-plan` | 项目准备写/更新 `docs/architecture/`(C4、ADR 一句话表、与业务侧) |
|
||||
| **TL** | `tl-arch-plan` | 接手技术侧:`docs/architecture/tech/`(C4、ADR 一句话表),以业务核心聚合为切分依据 |
|
||||
| | `tl-arch-sync-back` | 技术侧对齐:ADR/C4 ↔ 实现与 facts 专题 |
|
||||
| | `tl-high-level-design` | 写迭代高阶技术设计(HLD / TRD),确认前不得开 Plan |
|
||||
| **Dev** | `dev-plan` | 写技术方案(含 DST 自测 + 界面对照基线),等待确认 |
|
||||
@@ -110,7 +136,7 @@ AI4SE 框架构想(框内元素仅为示例,可能会装入更多实践):
|
||||
流程串起来:
|
||||
|
||||
```
|
||||
项目准备:tl-arch-plan(BA/TL)→ docs/architecture/
|
||||
项目准备:ba-arch-plan(业务侧)→ tl-arch-plan(技术侧)→ docs/architecture/
|
||||
ba-grill-me → ba-write-spec → pm-estimate
|
||||
↓
|
||||
┌───────────┴───────────┐
|
||||
@@ -137,7 +163,7 @@ ba-grill-me → ba-write-spec → pm-estimate
|
||||
| 团队流程手册 | 人怎么配合:总览矩阵、项目准备(含架构设计)→ 迭代前 → 迭代中;角色、测试归属与闸门 | [`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) |
|
||||
| 高阶设计 | 项目级 C4 / ADR 一句话表 / 核心领域模型 + 迭代 HLD;确认后再开 feature Plan | [`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) |
|
||||
| 高阶设计 | 业务侧产品边界/术语/核心聚合(`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) |
|
||||
| ADR | 跨迭代取舍写成一句话决策表(非长文) | [ADR 规范](example-project/docs/standards/adr.md) · [ADR 表](example-project/docs/architecture/tech/adr.md) |
|
||||
| 核心领域模型 | architecture 只维护核心聚合 + 关键字段;全量 as-built 在 facts | [core-domain-model](example-project/docs/architecture/business/core-domain-model.md) · [facts domain-model](example-project/docs/facts/domain-model.md) |
|
||||
| 代码打样 | 迭代内用独立 Vite 原型先把交互与页面打通,规格与验收对齐后再进实现 | [iteration1 原型](example-project/docs/features/iteration1/prototypes/README.md) |
|
||||
@@ -153,7 +179,7 @@ ba-grill-me → ba-write-spec → pm-estimate
|
||||
```bash
|
||||
cd example-project
|
||||
cat AGENTS.md # 一份填满的工程规范范本
|
||||
ls .agents/skills/ # 已安装的 26 个 SDD skills
|
||||
ls .agents/skills/ # 已安装的 27 个 SDD skills
|
||||
```
|
||||
|
||||
### 装到自己的新项目
|
||||
@@ -176,8 +202,9 @@ PATH_MODE=relative ./agile-team-sdd/install.sh ../my-project
|
||||
# 3. 装 MCP 工具链
|
||||
node tool-chain-installer/scripts/install-tools.mjs ../my-project --group browser --group context
|
||||
|
||||
# 4. 项目准备:填 docs/architecture/(C4、ADR、术语/产品/核心领域、迭代规划)
|
||||
# 对 Agent 说:用 tl-arch-plan(BA 协作)写高阶架构
|
||||
# 4. 项目准备:填 docs/architecture/
|
||||
# 先业务侧:对 Agent 说用 ba-arch-plan 起草 business/(边界、术语、核心聚合、迭代规划)
|
||||
# 再技术侧:对 Agent 说用 tl-arch-plan 接 C4 上下文/容器 + ADR(容器承载核心聚合)
|
||||
```
|
||||
|
||||
第 1 步之后,**必须有人补全** `AGENTS.md` **里的** `TODO` **段落** —— 规范不填满,装出来的只是空壳。
|
||||
@@ -199,7 +226,7 @@ node tool-chain-installer/scripts/install-tools.mjs ../my-project --group browse
|
||||
```
|
||||
team-harness-suite/
|
||||
├── AGENTS.md # 本仓库的架构与工程规范(改代码前先读)
|
||||
├── agile-team-sdd/ # SDD 技能套件(26 个模板 + catalog.json + 安装脚本)
|
||||
├── agile-team-sdd/ # SDD 技能套件(27 个模板 + catalog.json + 安装脚本)
|
||||
├── harness-installer/ # AGENTS.md / docs 骨架初始化
|
||||
├── tool-chain-installer/ # MCP 工具链安装
|
||||
├── team-workflow-guide/ # 团队流程与角色手册
|
||||
@@ -225,7 +252,7 @@ team-harness-suite/
|
||||
|
||||
| 模块 | 状态 |
|
||||
|---|---|
|
||||
| `agile-team-sdd/` | ✅ 可用(26 个 skill) |
|
||||
| `agile-team-sdd/` | ✅ 可用(27 个 skill) |
|
||||
| `harness-installer/` | ✅ 可用(`AGENTS.md` 模板含 TODO,需人工补全) |
|
||||
| `tool-chain-installer/` | ✅ 可用 |
|
||||
| `team-workflow-guide/` | ✅ 可用 |
|
||||
@@ -238,6 +265,8 @@ team-harness-suite/
|
||||
- OpenWiki
|
||||
- ArchUnit
|
||||
- CodeGraph
|
||||
- BDD 验收规格
|
||||
- Agent Cluster
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -46,6 +46,54 @@ PROJECT="$(cd "$TARGET" && pwd)"
|
||||
DEST="$PROJECT/.agents/workflow"
|
||||
FILE="$DEST/preset.yaml"
|
||||
|
||||
# ── 安装清单 ────────────────────────────────────────────────────────
|
||||
# 一个模块一个文件,谁安装谁写自己那份:不需要合并,也不需要跨模块共享列表。
|
||||
MANIFEST_MODULE="agents-workflow-engine"
|
||||
MANIFEST_DIR="$PROJECT/.agents/harness"
|
||||
MANIFEST_FILE="$MANIFEST_DIR/$MANIFEST_MODULE.json"
|
||||
SUITE_VERSION="$(sed -n '1s/[[:space:]]*$//;1p' "$ROOT/../VERSION" 2>/dev/null || true)"
|
||||
|
||||
# 从清单里取字段值:{ "version": "0.2.0", ... }
|
||||
manifest_field() {
|
||||
sed -n "s/.*\"$2\": *\"\([^\"]*\)\".*/\1/p" "$1" 2>/dev/null | head -1
|
||||
}
|
||||
|
||||
# 已装版本没变就不动文件(installedAt 保持首次安装时间);变了自己又没 --force 就不许改清单
|
||||
write_manifest() {
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo " 清单: 读不到本仓库的引擎版本,跳过" >&2
|
||||
return 0
|
||||
fi
|
||||
if [ -f "$MANIFEST_FILE" ]; then
|
||||
old_version="$(manifest_field "$MANIFEST_FILE" version)"
|
||||
old_suite="$(manifest_field "$MANIFEST_FILE" suite)"
|
||||
if [ "$old_version" = "$VERSION" ] && [ "$old_suite" = "$SUITE_VERSION" ]; then
|
||||
echo " [清单] ${MANIFEST_MODULE} ${VERSION}(未变)"
|
||||
return 0
|
||||
fi
|
||||
if [ "$FORCE" -eq 0 ]; then
|
||||
echo " 清单: ${MANIFEST_FILE} 记着 ${MANIFEST_MODULE} ${old_version:-未知}(套件 ${old_suite:-未知}),本次源码是 ${VERSION}(套件 ${SUITE_VERSION});清单未改,要升级加 --force" >&2
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
if [ "$DRY_RUN" -eq 1 ]; then
|
||||
echo " [计划] 写清单 ${MANIFEST_FILE}(${MANIFEST_MODULE} ${VERSION} / 套件 ${SUITE_VERSION})"
|
||||
return 0
|
||||
fi
|
||||
mkdir -p "$MANIFEST_DIR"
|
||||
tmp="$MANIFEST_FILE.tmp.$$"
|
||||
{
|
||||
printf '{\n'
|
||||
printf ' "module": "%s",\n' "$MANIFEST_MODULE"
|
||||
printf ' "version": "%s",\n' "$VERSION"
|
||||
printf ' "suite": "%s",\n' "$SUITE_VERSION"
|
||||
printf ' "installedAt": "%s"\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
printf '}\n'
|
||||
} > "$tmp"
|
||||
mv "$tmp" "$MANIFEST_FILE"
|
||||
echo " [清单] ${MANIFEST_MODULE} ${VERSION}(套件 ${SUITE_VERSION})→ ${MANIFEST_FILE}"
|
||||
}
|
||||
|
||||
if [ -n "$VERSION" ]; then
|
||||
echo "agents-workflow-engine 安装器(引擎 ${VERSION})"
|
||||
else
|
||||
@@ -75,12 +123,14 @@ if [ "$DRY_RUN" -eq 1 ]; then
|
||||
echo " 将写入 preset.yaml"
|
||||
fi
|
||||
echo " 不碰 overlay.yaml"
|
||||
write_manifest
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p "$DEST"
|
||||
if [ -f "$FILE" ] && [ "$FORCE" -eq 0 ]; then
|
||||
echo " 跳过: 已存在 $FILE"
|
||||
echo " 清单没动:文件没升级,清单也不应该升级(要升级加 --force)"
|
||||
exit 0
|
||||
fi
|
||||
tmp="$FILE.tmp.$$"
|
||||
@@ -88,3 +138,4 @@ cp "$PRESET" "$tmp"
|
||||
mv "$tmp" "$FILE"
|
||||
echo " 已写入 $FILE"
|
||||
echo " 未修改 overlay.yaml"
|
||||
write_manifest
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# agile-team-sdd
|
||||
|
||||
SDD(Spec-Driven Development)技能套件的 **模板源**,覆盖 **BA → TL → PM → 开发 → QA → 发布 → 复盘** 全流程,
|
||||
共 26 个 skill。
|
||||
共 27 个 skill。
|
||||
|
||||
```
|
||||
agile-team-sdd/
|
||||
@@ -10,6 +10,7 @@ agile-team-sdd/
|
||||
├── catalog.json # 技能清单(分组 / 作用 / 触发时机 / 依赖)
|
||||
├── placeholders.md # 占位符字典
|
||||
└── skills/
|
||||
├── ba-arch-plan-template/ # 项目级业务架构意图(business/)
|
||||
├── ba-grill-me-template/ # 拷问需求
|
||||
├── ba-write-spec-template/ # 编写需求规格
|
||||
├── ba-gen-facts-template/ # 生成事实文档
|
||||
@@ -36,13 +37,14 @@ agile-team-sdd/
|
||||
|
||||
| 组 | Skill | 作用 |
|
||||
|---|---|---|
|
||||
| **BA** | `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 |
|
||||
| **BA** | `ba-arch-plan` | 起草项目级业务架构意图:产品边界、术语基线、核心聚合、迭代规划 |
|
||||
| | `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 |
|
||||
| | `ba-write-spec` | 编写需求规格:字段表、业务规则、权限矩阵、验收标准;维护项目级术语表 |
|
||||
| | `ba-write-prototype` | 按 spec 做原型 |
|
||||
| | `ba-requirement-review` | 用另一个模型审查 spec,只回答满意或不满意 |
|
||||
| | `ba-gen-facts` | 从代码生成/校准事实文档:API、库表、领域模型、专题 |
|
||||
| | `ba-arch-sync-back` | 业务侧对齐术语/领域意图/产品 ↔ features 与 facts |
|
||||
| **TL** | `tl-arch-plan` | 写/更新项目级 `docs/architecture/`(C4、ADR) |
|
||||
| **TL** | `tl-arch-plan` | 写/更新技术侧 `docs/architecture/tech/`(C4、ADR),承接业务核心聚合 |
|
||||
| | `tl-arch-sync-back` | 技术侧对齐 ADR/C4 ↔ 实现与 facts 专题 |
|
||||
| | `tl-high-level-design` | 写迭代高阶技术设计(HLD / TRD),确认前不得开 Plan |
|
||||
| **Dev** | `dev-plan` | 实现前写技术方案(含 DST 自测用例与界面对照基线),等待人工确认 |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: agile-team-sdd
|
||||
description: 安装 Agile Team SDD 技能套件(26 个 skill,覆盖 BA/TL/开发/QA/PM/runner)到指定项目。当用户说"安装 skills 到某个项目"、"把 SDD 流程装到 X 仓库"、"agile team sdd 安装"时使用。
|
||||
description: 安装 Agile Team SDD 技能套件(27 个 skill,覆盖 BA/TL/开发/QA/PM/runner)到指定项目。当用户说"安装 skills 到某个项目"、"把 SDD 流程装到 X 仓库"、"agile team sdd 安装"时使用。
|
||||
---
|
||||
|
||||
# Agile Team SDD:安装技能套件
|
||||
@@ -8,7 +8,7 @@ description: 安装 Agile Team SDD 技能套件(26 个 skill,覆盖 BA/TL/
|
||||
本目录是 **SDD(Spec-Driven Development)技能套件的模板源**。
|
||||
`skills/` 下每个子目录是一份带占位符的 `SKILL.md`,需要先渲染成目标项目的真实路径,再安装过去。
|
||||
|
||||
## 技能清单(26 个)
|
||||
## 技能清单(27 个)
|
||||
|
||||
完整元数据见 [`catalog.json`](catalog.json)。
|
||||
|
||||
@@ -16,7 +16,8 @@ description: 安装 Agile Team SDD 技能套件(26 个 skill,覆盖 BA/TL/
|
||||
|
||||
| Skill | 作用 | 触发时机 |
|
||||
|---|---|---|
|
||||
| `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 | 需求含糊、有多种理解时,写规格之前 |
|
||||
| `ba-arch-plan` | 起草项目级业务架构意图(产品边界、术语基线、核心领域模型、迭代规划) | 项目准备阶段 / 新增业务域,先把 `docs/architecture/business/` 立起来 |
|
||||
| `ba-grill-me` | 拷问需求,把模糊描述逼成可验收的规格 | 需求含糊、有多种理解时 ,写规格之前 |
|
||||
| `ba-write-spec` | 编写需求规格(字段表、业务规则、权限、验收标准),维护项目级术语表 | 需求已澄清,落成 `docs/features/<迭代>/<CODE>-<slug>/spec.md`;术语写入 `docs/architecture/business/glossary.md` |
|
||||
| `ba-write-prototype` | 按 spec 做一版原型 | 规格写完、需求质量门之前 |
|
||||
| `ba-requirement-review` | 用另一个模型审查 spec,只回答满意或不满意 | 规格写完、人做需求决策之前 |
|
||||
@@ -49,7 +50,7 @@ description: 安装 Agile Team SDD 技能套件(26 个 skill,覆盖 BA/TL/
|
||||
|
||||
| Skill | 作用 | 触发时机 |
|
||||
|---|---|---|
|
||||
| `tl-arch-plan` | 写/更新项目级 `docs/architecture/`(C4、ADR) | 项目准备定技术边界,或跨迭代架构落盘 |
|
||||
| `tl-arch-plan` | 写/更新技术侧 `docs/architecture/tech/`(C4、ADR),承接业务核心聚合 | 项目准备业务边界已定、需要切技术边界时 |
|
||||
| `tl-arch-sync-back` | 技术侧对齐 ADR/C4 ↔ 实现与 facts 专题 | 实现推翻或细化跨迭代取舍时 |
|
||||
| `tl-high-level-design` | 写迭代高阶技术设计(HLD / TRD) | 规格齐备、写 feature Plan 之前 |
|
||||
|
||||
@@ -70,7 +71,7 @@ description: 安装 Agile Team SDD 技能套件(26 个 skill,覆盖 BA/TL/
|
||||
### 全流程串起来
|
||||
|
||||
```
|
||||
项目准备:tl-arch-plan(+ BA)→ docs/architecture/
|
||||
项目准备:ba-arch-plan(业务侧)→ tl-arch-plan(技术侧)→ docs/architecture/
|
||||
需求
|
||||
└─ ba-grill-me ──▶ ba-write-spec ──▶ pm-estimate
|
||||
│
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
{
|
||||
"ba": [
|
||||
{
|
||||
"name": "ba-arch-plan",
|
||||
"description": "起草项目级业务架构意图(产品边界、术语基线、核心领域模型、迭代规划)",
|
||||
"when": "项目准备阶段,或新增业务域需要先把 docs/architecture/business/ 立起来时",
|
||||
"produces": [
|
||||
"docs/architecture/business/product.md",
|
||||
"docs/architecture/business/glossary.md",
|
||||
"docs/architecture/business/core-domain-model.md",
|
||||
"docs/architecture/business/iterations.md"
|
||||
],
|
||||
"dependsOn": []
|
||||
},
|
||||
{
|
||||
"name": "ba-grill-me",
|
||||
"description": "拷问需求,把模糊描述逼成可验收的规格",
|
||||
@@ -239,8 +251,8 @@
|
||||
"tl": [
|
||||
{
|
||||
"name": "tl-arch-plan",
|
||||
"description": "编写或更新项目级高阶架构 docs/architecture/(C4、ADR、与业务侧对齐)",
|
||||
"when": "项目准备阶段定技术边界,或跨迭代架构需落盘时",
|
||||
"description": "编写或更新项目级高阶架构的技术侧(C4 上下文/容器、ADR),承接业务侧核心聚合",
|
||||
"when": "项目准备阶段业务边界已定、需要切技术边界,或跨迭代架构需落盘时",
|
||||
"produces": [
|
||||
"docs/architecture/**"
|
||||
],
|
||||
|
||||
@@ -76,7 +76,58 @@ fi
|
||||
PROJECT_ROOT="$(cd "$TARGET" && pwd)"
|
||||
PROJECT_NAME="${PROJECT_NAME:-$(basename "$PROJECT_ROOT")}"
|
||||
|
||||
# ── 安装清单 ────────────────────────────────────────────────────────
|
||||
# 一个模块一个文件,谁安装谁写自己那份:不需要合并,也不需要跨模块共享列表。
|
||||
MANIFEST_MODULE="agile-team-sdd"
|
||||
MANIFEST_DIR="$PROJECT_ROOT/.agents/harness"
|
||||
MANIFEST_FILE="$MANIFEST_DIR/$MANIFEST_MODULE.json"
|
||||
SUITE_VERSION="$(sed -n '1s/[[:space:]]*$//;1p' "$SKILL_DIR/../VERSION" 2>/dev/null || true)"
|
||||
if [ -z "$SUITE_VERSION" ]; then
|
||||
echo "错误:读不到仓库根的 VERSION($SKILL_DIR/../VERSION)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 从清单里取字段值:{ "version": "0.3.0", ... }
|
||||
manifest_field() {
|
||||
sed -n "s/.*\"$2\": *\"\([^\"]*\)\".*/\1/p" "$1" 2>/dev/null | head -1
|
||||
}
|
||||
|
||||
# 已装版本没变就不动文件(installedAt 保持首次安装时间);变了自己又没 --force 就不许改清单
|
||||
write_manifest() {
|
||||
version="$1"
|
||||
if [ -f "$MANIFEST_FILE" ]; then
|
||||
old_version="$(manifest_field "$MANIFEST_FILE" version)"
|
||||
old_suite="$(manifest_field "$MANIFEST_FILE" suite)"
|
||||
if [ "$old_version" = "$version" ] && [ "$old_suite" = "$SUITE_VERSION" ]; then
|
||||
echo " [清单] ${MANIFEST_MODULE} ${version}(未变)"
|
||||
return 0
|
||||
fi
|
||||
if [ "$FORCE" -eq 0 ]; then
|
||||
echo " 清单: ${MANIFEST_FILE} 记着 ${MANIFEST_MODULE} ${old_version:-未知}(套件 ${old_suite:-未知}),本次源码是 ${version}(套件 ${SUITE_VERSION});文件是跳过模式,清单未改,要升级加 --force" >&2
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
if [ "$DRY_RUN" -eq 1 ]; then
|
||||
echo " [计划] 写清单 ${MANIFEST_FILE}(${MANIFEST_MODULE} ${version} / 套件 ${SUITE_VERSION})"
|
||||
return 0
|
||||
fi
|
||||
mkdir -p "$MANIFEST_DIR"
|
||||
tmp="$MANIFEST_FILE.tmp.$$"
|
||||
{
|
||||
printf '{\n'
|
||||
printf ' "module": "%s",\n' "$MANIFEST_MODULE"
|
||||
printf ' "version": "%s",\n' "$version"
|
||||
printf ' "suite": "%s",\n' "$SUITE_VERSION"
|
||||
printf ' "installedAt": "%s"\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
printf '}\n'
|
||||
} > "$tmp"
|
||||
mv "$tmp" "$MANIFEST_FILE"
|
||||
echo " [清单] ${MANIFEST_MODULE} ${version}(套件 ${SUITE_VERSION})→ ${MANIFEST_FILE}"
|
||||
}
|
||||
|
||||
# ── 目录与文件 ───────────────────────────────────────────────────────
|
||||
# PATH_MODE 下面还要用(E2E_RUNNER 要按它改相对路径),先兜个默认值
|
||||
PATH_MODE="${PATH_MODE:-absolute}"
|
||||
SKILLS_DIR="${SKILLS_DIR:-.agents/skills}"
|
||||
BACKEND_DIR="${BACKEND_DIR:-containers/backend}"
|
||||
FRONTEND_DIR="${FRONTEND_DIR:-containers/frontend}"
|
||||
@@ -335,7 +386,8 @@ fi
|
||||
|
||||
# ── 残留占位符检查 ───────────────────────────────────────────────────
|
||||
if [ "$DRY_RUN" -eq 0 ]; then
|
||||
leftovers="$(grep -rhoE '\{\{[A-Z_]+\}\}' "$TARGET_SKILLS_DIR" 2>/dev/null | sort -u || true)"
|
||||
# 占位符名里有数字(E2E_RUNNER / E2E_DIR / E2E_CASES_DIR),别只用 [A-Z_]
|
||||
leftovers="$(grep -rhoE '\{\{[A-Z0-9_]+\}\}' "$TARGET_SKILLS_DIR" 2>/dev/null | sort -u || true)"
|
||||
if [ -n "$leftovers" ]; then
|
||||
echo ""
|
||||
echo "警告:以下占位符未被替换,请检查:"
|
||||
@@ -343,6 +395,8 @@ if [ "$DRY_RUN" -eq 0 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
write_manifest "$SUITE_VERSION"
|
||||
|
||||
echo ""
|
||||
echo "完成:安装 $installed 个 skill,跳过 $skipped 个。"
|
||||
echo "提示:修改 opencode 配置后需重启 opencode 才会生效。"
|
||||
|
||||
65
agile-team-sdd/skills/ba-arch-plan-template/SKILL.md
Normal file
65
agile-team-sdd/skills/ba-arch-plan-template/SKILL.md
Normal file
@@ -0,0 +1,65 @@
|
||||
---
|
||||
name: ba-arch-plan-template
|
||||
description: 起草项目级业务架构意图(产品边界、术语基线、核心领域模型、迭代规划)。当项目准备阶段或新增业务域、需要先把 docs/architecture/business/ 立起来时使用。
|
||||
---
|
||||
|
||||
<!-- TEMPLATE-ONLY -->
|
||||
> **这是模板文件。** 路径由 `{{PLACEHOLDER}}` 占位符标记,执行 `agile-team-sdd/install.sh` 时会被替换为目标项目的真实路径。
|
||||
<!-- /TEMPLATE-ONLY -->
|
||||
|
||||
# BA:项目级业务架构意图(Architecture Plan · business)
|
||||
|
||||
在 **项目准备** 或新增业务域时起草 `{{ARCHITECTURE_DIR}}/business/`:
|
||||
产品边界、统一语言、核心聚合、迭代规划。技术侧(C4、ADR)由 `tl-arch-plan` 接着做。
|
||||
|
||||
## 前置
|
||||
|
||||
- `{{AGENTS_FILE}}` 里的业务目标与角色已填(至少不是 TODO)
|
||||
- 已读 `{{STANDARDS_DIR}}/architecture.md`(写什么、不写什么)
|
||||
- 有干系人输入:访谈记录、现有系统边界、竞品或政策约束
|
||||
- `tech/` 可能还不存在 —— 本 skill 不依赖它
|
||||
|
||||
## 输出位置
|
||||
|
||||
| 路径 | 内容 |
|
||||
|---|---|
|
||||
| `{{ARCHITECTURE_DIR}}/business/product.md` | 一句话定位、用户/端、**本期不做** |
|
||||
| `{{GLOSSARY_FILE}}` | 项目级中英对照术语,唯一权威 |
|
||||
| `{{ARCH_DOMAIN_MODEL_DOC}}` | 核心聚合 + 关键字段(意图侧) |
|
||||
| `{{ARCHITECTURE_DIR}}/business/iterations.md` | 里程碑与迭代索引 |
|
||||
| `{{ARCHITECTURE_DIR}}/README.md` | 确认业务侧四个链接可点 |
|
||||
|
||||
## 怎么做
|
||||
|
||||
1. **先定边界**:写 `product.md` 的「一句话」和「本期不做」。边界外的东西后面会被反复塞进来,这一节是第一道闸。
|
||||
2. **再定语言**:从角色、对象、状态、动作里提炼术语写进 `{{GLOSSARY_FILE}}`。只收项目级概念,字段名 / 类名不收。
|
||||
3. **再定聚合**:只挑核心聚合(3~7 个),每个写职责 + 关键字段。尚未实现的概念标「未实现」,不要删。
|
||||
4. **最后排迭代**:`iterations.md` 写里程碑意图与索引,指向 `{{FEATURES_DIR}}/` 下真实目录(还没有就留「尚无」)。
|
||||
5. **给 TL 交接**:在回复末尾输出一张「核心聚合 → 建议容器」表,供 `tl-arch-plan` 画 C4 时对照。
|
||||
|
||||
## 硬性约束
|
||||
|
||||
- **不画 C4、不写 ADR** —— 那是 `tl-arch-plan`;越界会让两份文档互相抄错
|
||||
- **不写 as-built** —— 全量模型在 `{{DOMAIN_MODEL_DOC}}`,本文只写意图
|
||||
- **术语表只有一份**:不在 `{{FEATURES_DIR}}/` 下另建 glossary;spec 只能追加条目
|
||||
- 每条业务规则 / 边界都要标来源(干系人、文档、会议),没有来源的先标「待确认」
|
||||
- 核心聚合不写行为细节、方法签名、校验 —— 那些属于 feature `plan.md`
|
||||
- 路径写相对路径,不写某台机器的绝对路径
|
||||
|
||||
## 与其它 skill
|
||||
|
||||
| Skill | 关系 |
|
||||
|---|---|
|
||||
| `tl-arch-plan` | 接手技术侧:C4 上下文/容器 + ADR;容器要能承载本文的核心聚合 |
|
||||
| `ba-write-spec` | 单 feature 追加术语、引用 `{{GLOSSARY_FILE}}`;不重建基线 |
|
||||
| `ba-arch-sync-back` | 迭代后业务侧漂移对齐(本文是它的基线) |
|
||||
| `ba-gen-facts` | 产出 `docs/facts/` as-built;本文与 as-built 的差异由 `ba-arch-sync-back` 处理 |
|
||||
|
||||
## 自检
|
||||
|
||||
- [ ] `product.md` 有「一句话」与「本期不做」,且不是 TODO
|
||||
- [ ] `{{GLOSSARY_FILE}}` 无重复中文键,英文列非空
|
||||
- [ ] `{{ARCH_DOMAIN_MODEL_DOC}}` 核心聚合 3~7 个,每个有关键字段,未实现的已标注
|
||||
- [ ] `iterations.md` 的迭代索引指向真实目录或明确写「尚无」
|
||||
- [ ] `{{ARCHITECTURE_DIR}}/README.md` 的业务侧链接可点
|
||||
- [ ] 已产出「核心聚合 → 建议容器」交接表,并提示 TL 接着跑 `tl-arch-plan`
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: tl-arch-plan-template
|
||||
description: 编写或更新项目级高阶架构 docs/architecture/(C4、ADR、与业务侧对齐)。当项目准备阶段定技术边界、或跨迭代架构需落盘时使用。
|
||||
description: 编写或更新项目级高阶架构的技术侧 docs/architecture/tech/(C4 上下文/容器、ADR)。当项目准备阶段业务边界已定、需要切技术边界时使用。
|
||||
---
|
||||
|
||||
<!-- TEMPLATE-ONLY -->
|
||||
@@ -9,28 +9,32 @@ description: 编写或更新项目级高阶架构 docs/architecture/(C4、ADR
|
||||
|
||||
# TL:项目级架构设计(Architecture Plan)
|
||||
|
||||
在 **项目准备** 或跨迭代演进时,维护 `{{ARCHITECTURE_DIR}}/` 高阶意图(技术侧为主,业务侧与 BA 协作)。
|
||||
在 **项目准备** 或跨迭代演进时,维护 `{{ARCHITECTURE_DIR}}/tech/`:C4 上下文/容器与跨迭代 ADR。
|
||||
业务侧(product / glossary / core-domain-model / iterations)是 `ba-arch-plan` 的产出,本 skill 只读。
|
||||
|
||||
## 前置
|
||||
|
||||
- harness 已铺好(`{{AGENTS_FILE}}`、`{{DOCS_DIR}}/`)
|
||||
- 已读 `{{STANDARDS_DIR}}/architecture.md`、`{{STANDARDS_DIR}}/adr.md`
|
||||
- 业务侧至少有产品边界草稿(可与 BA 同轮用本 skill 补齐 `business/`)
|
||||
- **业务边界已定**:`{{ARCHITECTURE_DIR}}/business/` 至少有 product 一句话与核心聚合;
|
||||
没有就先用 `ba-arch-plan`(先画图再定边界,图必重画)
|
||||
|
||||
## 输出位置
|
||||
|
||||
| 路径 | 内容 |
|
||||
|---|---|
|
||||
| `{{ARCHITECTURE_DIR}}/README.md` | 索引与分工 |
|
||||
| `{{ARCHITECTURE_DIR}}/README.md` | 索引与分工(与 `ba-arch-plan` 共同维护) |
|
||||
| `{{ARCHITECTURE_DIR}}/tech/c4-context.md` | C4 系统上下文 / 集成(PlantUML) |
|
||||
| `{{ARCHITECTURE_DIR}}/tech/c4-container.md` | C4 容器(PlantUML) |
|
||||
| `{{ADR_FILE}}` | 跨迭代 ADR(一张表,每条一句话) |
|
||||
| `{{ARCHITECTURE_DIR}}/business/` | 与 BA:glossary / product / core-domain-model(核心+关键字段)/ iterations |
|
||||
|
||||
**不输出** `business/` 正文 —— 那是 `ba-arch-plan` 的落点;本文只读它来做切分依据。
|
||||
|
||||
## 硬性约束
|
||||
|
||||
- **意图 ≠ as-built**:ADR 与 C4 写目标取舍;实现细节专题仍在 `{{TECH_TOPIC_DIR}}/`
|
||||
- 核心领域模型(仅核心聚合+关键字段)写 `{{ARCH_DOMAIN_MODEL_DOC}}`;全量 as-built 写 `{{DOMAIN_MODEL_DOC}}`
|
||||
- **容器必须能承载核心聚合**;切分依据是 `{{ARCH_DOMAIN_MODEL_DOC}}` 的核心聚合 + 关键字段,不是代码目录
|
||||
- 核心领域模型(仅核心聚合+关键字段)在 `{{ARCH_DOMAIN_MODEL_DOC}}`;全量 as-built 在 `{{DOMAIN_MODEL_DOC}}`
|
||||
- 术语表唯一权威:`{{GLOSSARY_FILE}}`
|
||||
- 迭代级细节写 `{{FEATURES_DIR}}/<迭代>/high-level-design.md`,不要塞进 C4
|
||||
- 新 ADR:在 `{{ADR_FILE}}` 表追加一行一句话;按 `{{STANDARDS_DIR}}/adr.md`
|
||||
@@ -40,6 +44,7 @@ description: 编写或更新项目级高阶架构 docs/architecture/(C4、ADR
|
||||
|
||||
| Skill | 关系 |
|
||||
|---|---|
|
||||
| `ba-arch-plan` | 前置:业务边界、术语、核心聚合由它起草;本 skill 读它做切分 |
|
||||
| `tl-high-level-design` | 继承本目录 ADR/C4;写本迭 HLD |
|
||||
| `tl-arch-sync-back` | 实现漂移后对齐技术侧 |
|
||||
| `ba-arch-sync-back` | 业务侧术语/领域/产品对齐 |
|
||||
@@ -48,6 +53,8 @@ description: 编写或更新项目级高阶架构 docs/architecture/(C4、ADR
|
||||
## 自检
|
||||
|
||||
- [ ] C4 两图可读,外部系统与容器职责清楚
|
||||
- [ ] 每个容器能说清承载哪些核心聚合(能对上 `{{ARCH_DOMAIN_MODEL_DOC}}`)
|
||||
- [ ] 已接受 ADR 有索引;与 `{{STANDARDS_DIR}}` 无冲突
|
||||
- [ ] business 侧有 glossary 或 product 边界;iterations 指向真实迭代目录
|
||||
- [ ] 没有往 `business/` 里写正文(那是 `ba-arch-plan` 的活)
|
||||
- [ ] `{{ARCHITECTURE_DIR}}/README.md` 的技术侧链接可点、业务侧条目存在
|
||||
- [ ] 已提示:进迭代前 architecture 须可读
|
||||
|
||||
6
example-project/.agents/harness/agile-team-sdd.json
Normal file
6
example-project/.agents/harness/agile-team-sdd.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"module": "agile-team-sdd",
|
||||
"version": "0.4.0",
|
||||
"suite": "0.4.0",
|
||||
"installedAt": "2026-11-20T06:21:33Z"
|
||||
}
|
||||
6
example-project/.agents/harness/harness-installer.json
Normal file
6
example-project/.agents/harness/harness-installer.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"module": "harness-installer",
|
||||
"version": "0.4.0",
|
||||
"suite": "0.4.0",
|
||||
"installedAt": "2026-11-20T06:25:08Z"
|
||||
}
|
||||
6
example-project/.agents/harness/overnight-runner.json
Normal file
6
example-project/.agents/harness/overnight-runner.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"module": "overnight-runner",
|
||||
"version": "0.1.0",
|
||||
"suite": "0.4.0",
|
||||
"installedAt": "2026-11-20T06:25:09Z"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"module": "tool-chain-installer",
|
||||
"version": "0.4.0",
|
||||
"suite": "0.4.0",
|
||||
"installedAt": "2026-11-20T06:25:09Z"
|
||||
}
|
||||
61
example-project/.agents/skills/ba-arch-plan/SKILL.md
Normal file
61
example-project/.agents/skills/ba-arch-plan/SKILL.md
Normal file
@@ -0,0 +1,61 @@
|
||||
---
|
||||
name: ba-arch-plan
|
||||
description: 起草项目级业务架构意图(产品边界、术语基线、核心领域模型、迭代规划)。当项目准备阶段或新增业务域、需要先把 docs/architecture/business/ 立起来时使用。
|
||||
---
|
||||
|
||||
# BA:项目级业务架构意图(Architecture Plan · business)
|
||||
|
||||
在 **项目准备** 或新增业务域时起草 `docs/architecture/business/`:
|
||||
产品边界、统一语言、核心聚合、迭代规划。技术侧(C4、ADR)由 `tl-arch-plan` 接着做。
|
||||
|
||||
## 前置
|
||||
|
||||
- `AGENTS.md` 里的业务目标与角色已填(至少不是 TODO)
|
||||
- 已读 `docs/standards/architecture.md`(写什么、不写什么)
|
||||
- 有干系人输入:访谈记录、现有系统边界、竞品或政策约束
|
||||
- `tech/` 可能还不存在 —— 本 skill 不依赖它
|
||||
|
||||
## 输出位置
|
||||
|
||||
| 路径 | 内容 |
|
||||
|---|---|
|
||||
| `docs/architecture/business/product.md` | 一句话定位、用户/端、**本期不做** |
|
||||
| `docs/architecture/business/glossary.md` | 项目级中英对照术语,唯一权威 |
|
||||
| `docs/architecture/business/core-domain-model.md` | 核心聚合 + 关键字段(意图侧) |
|
||||
| `docs/architecture/business/iterations.md` | 里程碑与迭代索引 |
|
||||
| `docs/architecture/README.md` | 确认业务侧四个链接可点 |
|
||||
|
||||
## 怎么做
|
||||
|
||||
1. **先定边界**:写 `product.md` 的「一句话」和「本期不做」。边界外的东西后面会被反复塞进来,这一节是第一道闸。
|
||||
2. **再定语言**:从角色、对象、状态、动作里提炼术语写进 `docs/architecture/business/glossary.md`。只收项目级概念,字段名 / 类名不收。
|
||||
3. **再定聚合**:只挑核心聚合(3~7 个),每个写职责 + 关键字段。尚未实现的概念标「未实现」,不要删。
|
||||
4. **最后排迭代**:`iterations.md` 写里程碑意图与索引,指向 `docs/features/` 下真实目录(还没有就留「尚无」)。
|
||||
5. **给 TL 交接**:在回复末尾输出一张「核心聚合 → 建议容器」表,供 `tl-arch-plan` 画 C4 时对照。
|
||||
|
||||
## 硬性约束
|
||||
|
||||
- **不画 C4、不写 ADR** —— 那是 `tl-arch-plan`;越界会让两份文档互相抄错
|
||||
- **不写 as-built** —— 全量模型在 `docs/facts/domain-model.md`,本文只写意图
|
||||
- **术语表只有一份**:不在 `docs/features/` 下另建 glossary;spec 只能追加条目
|
||||
- 每条业务规则 / 边界都要标来源(干系人、文档、会议),没有来源的先标「待确认」
|
||||
- 核心聚合不写行为细节、方法签名、校验 —— 那些属于 feature `plan.md`
|
||||
- 路径写相对路径,不写某台机器的绝对路径
|
||||
|
||||
## 与其它 skill
|
||||
|
||||
| Skill | 关系 |
|
||||
|---|---|
|
||||
| `tl-arch-plan` | 接手技术侧:C4 上下文/容器 + ADR;容器要能承载本文的核心聚合 |
|
||||
| `ba-write-spec` | 单 feature 追加术语、引用 `docs/architecture/business/glossary.md`;不重建基线 |
|
||||
| `ba-arch-sync-back` | 迭代后业务侧漂移对齐(本文是它的基线) |
|
||||
| `ba-gen-facts` | 产出 `docs/facts/` as-built;本文与 as-built 的差异由 `ba-arch-sync-back` 处理 |
|
||||
|
||||
## 自检
|
||||
|
||||
- [ ] `product.md` 有「一句话」与「本期不做」,且不是 TODO
|
||||
- [ ] `docs/architecture/business/glossary.md` 无重复中文键,英文列非空
|
||||
- [ ] `docs/architecture/business/core-domain-model.md` 核心聚合 3~7 个,每个有关键字段,未实现的已标注
|
||||
- [ ] `iterations.md` 的迭代索引指向真实目录或明确写「尚无」
|
||||
- [ ] `docs/architecture/README.md` 的业务侧链接可点
|
||||
- [ ] 已产出「核心聚合 → 建议容器」交接表,并提示 TL 接着跑 `tl-arch-plan`
|
||||
@@ -43,6 +43,18 @@ npx playwright test --project=qa --headed --debug # 有头 + 调试器
|
||||
- [ ] 种子数据存在(咨询师、网点等)
|
||||
- [ ] 上一次运行没留下脏数据
|
||||
|
||||
## 规格覆盖核对(判通过前必做)
|
||||
|
||||
用例全绿不等于验收通过 —— 绿的是"写了的那部分"。
|
||||
|
||||
1. 打开需求规格,把 `AC-xxx` / `R-xxx` 逐条对照 `docs/test-cases/e2e-cases/test-cases.md` 的「关联」列。
|
||||
2. 每条锚点至少要有一条用例,且该用例的断言能 **证伪** 这条规则 —— 只断言"页面有数字"证伪不了"满 3 个工作日要强调"。
|
||||
3. 出现下列任一情况,结论只能是 `⚠️ 未覆盖`,不能判通过:
|
||||
- 锚点没有对应用例
|
||||
- 用例存在,但断言区分不出"实现符合"与"实现缺失"
|
||||
- 规格要求的界面 / 接口行为在用例里根本没出现
|
||||
4. 覆盖缺口 **不能登记成"已知债务"放行**:债务是"实现额外做了妥协",缺口是"验收标准没被验证",两者不同级。
|
||||
|
||||
## 失败分类(先分类,再处理)
|
||||
|
||||
| 现象 | 归类 | 处理 |
|
||||
@@ -97,6 +109,9 @@ E2E 验收:<通过 / 有失败>
|
||||
|---|---|---|---|---|
|
||||
| TC-013 预约 + 取消 | 实现 bug | 取消后状态仍为 PENDING | trace + 截图 | 开发 |
|
||||
|
||||
规格覆盖:
|
||||
- AC 47/47、R 56/56 已映射(或有缺口时逐条列出)
|
||||
|
||||
未覆盖:
|
||||
- TC-018 预约管理(用例尚未实现)
|
||||
```
|
||||
|
||||
@@ -87,6 +87,23 @@ test('TC-006 管理员登录成功', async ({ page }) => {
|
||||
- 用例之间 **不能有顺序依赖**,各自准备数据
|
||||
- 数据准备用共享 helper,不要复制粘贴
|
||||
|
||||
## 自动化契约:先对齐,再写断言
|
||||
|
||||
用例变红时,先分清是 **实现不符** 还是 **用例假设错了**。下面四类假设最容易写错,写断言前逐条确认:
|
||||
|
||||
| 假设 | 确认方式 | 典型坑 |
|
||||
|---|---|---|
|
||||
| 接口方法 / 路径 / 状态码 | 以 `docs/facts/api.yaml` 为准;facts 没写就先去补齐,再回写用例 | 建单是 `201` 不是 `200`;写风险是 `PUT` 不是 `POST` |
|
||||
| 错误体结构 | 错误一律 `{errorCode, errorMessage, data}`,越权/不存在也走同一信封 | 断言"响应体为空"必然失败 |
|
||||
| 枚举与字典值 | 接口只收英文枚举(`HIGH/MEDIUM/LOW`),中文只出现在界面文案 | 把界面上的「中/低」原样发给接口 |
|
||||
| 页面锚点与文案 | 选择器/文案集中到 `e2e/tests/qa/support/*.ts`(`TEXT`/`ROUTES`/`API`);差异化组件先看实现再写 locator | 假设 `.el-steps`,实现是 `.ds-stepper`;常量键漏定义导致 locator 变空串 |
|
||||
|
||||
数据与时间的硬规则:
|
||||
|
||||
- **隔离**:默认串行(`workers: 1` + `fullyParallel: false`),每个 spec 文件开头清业务表;列表断言只断言"我的单在 / 不在"与相对顺序,**不断言总条数** —— 共享库里累积数据会把目标行挤出第 1 页。
|
||||
- **时间**:日期一律由本地日历日 helper 生成(`getFullYear/getMonth/getDate`)。**禁止** `toISOString().slice(0, 10)` —— 那是 UTC 日期,本地 0:00~8:00 会整体差一天。
|
||||
- **不可见控件**:Element Plus 的 radio/checkbox 原生 input 不可见,点标签文本,不要 `.check()`。
|
||||
|
||||
## 覆盖要求
|
||||
|
||||
| 类别 | 必须覆盖 |
|
||||
@@ -106,6 +123,10 @@ test('TC-006 管理员登录成功', async ({ page }) => {
|
||||
- [ ] 无硬等待
|
||||
- [ ] 用例可独立重复执行
|
||||
- [ ] 断言够强(不是"不为空"这种)
|
||||
- [ ] 接口契约(方法 / 状态码 / 错误信封 / 枚举)与 `docs/facts/api.yaml` 一致
|
||||
- [ ] 选择器与文案来自 `support/*.ts` 常量,spec 内没有散落的字面量
|
||||
- [ ] 串行 + 文件级清表;列表断言不依赖总条数
|
||||
- [ ] 日期由本地日历日 helper 生成,未使用 `toISOString()` 截取
|
||||
- [ ] `e2e/tests/qa/` 下 **只有** QA 用例,开发自测在 `tests/dev/`
|
||||
|
||||
## 运行
|
||||
|
||||
@@ -58,6 +58,7 @@ description: 编写手动测试计划与冒烟用例集。当自动化覆盖不
|
||||
- 只选 **P0 冒烟点**:服务起不来、登录不了、核心链路断了、数据库连不上
|
||||
- 不选业务细节(那些是回归的事,不是冒烟的事)
|
||||
- 每个冒烟点尽量能自动化 → 在 `e2e/tests/qa/` 里也有对应自动化
|
||||
- **核心链路必须写成具体的一条**(如 `TC-S03 核心链路`:登录 → 建单 → 提交 → 审核 → 质量流转),步骤与预期可照做;表里留 `TODO` 等于这一关不存在
|
||||
|
||||
```markdown
|
||||
| # | 用例 | 冒烟点 | 预期 | 自动化 |
|
||||
@@ -99,6 +100,7 @@ description: 编写手动测试计划与冒烟用例集。当自动化覆盖不
|
||||
- [ ] 步骤是编号步骤,执行人不用追问
|
||||
- [ ] 预期是可观察结果
|
||||
- [ ] 冒烟用例 ≤ 5 条、≤ 5 分钟
|
||||
- [ ] 核心链路冒烟点已写成具体步骤与预期,表内没有 `TODO`
|
||||
- [ ] 冒烟点都是 P0,不是业务细节
|
||||
- [ ] 能自动化的冒烟点已关联到自动化用例
|
||||
- [ ] 编号空间不混用(`TC-` / `TC-M` / `TC-S`)
|
||||
|
||||
@@ -1,32 +1,36 @@
|
||||
---
|
||||
name: tl-arch-plan
|
||||
description: 编写或更新项目级高阶架构 docs/architecture/(C4、ADR、与业务侧对齐)。当项目准备阶段定技术边界、或跨迭代架构需落盘时使用。
|
||||
description: 编写或更新项目级高阶架构的技术侧 docs/architecture/tech/(C4 上下文/容器、ADR)。当项目准备阶段业务边界已定、需要切技术边界时使用。
|
||||
---
|
||||
|
||||
# TL:项目级架构设计(Architecture Plan)
|
||||
|
||||
在 **项目准备** 或跨迭代演进时,维护 `docs/architecture/` 高阶意图(技术侧为主,业务侧与 BA 协作)。
|
||||
在 **项目准备** 或跨迭代演进时,维护 `docs/architecture/tech/`:C4 上下文/容器与跨迭代 ADR。
|
||||
业务侧(product / glossary / core-domain-model / iterations)是 `ba-arch-plan` 的产出,本 skill 只读。
|
||||
|
||||
## 前置
|
||||
|
||||
- harness 已铺好(`AGENTS.md`、`docs/`)
|
||||
- 已读 `docs/standards/architecture.md`、`docs/standards/adr.md`
|
||||
- 业务侧至少有产品边界草稿(可与 BA 同轮用本 skill 补齐 `business/`)
|
||||
- **业务边界已定**:`docs/architecture/business/` 至少有 product 一句话与核心聚合;
|
||||
没有就先用 `ba-arch-plan`(先画图再定边界,图必重画)
|
||||
|
||||
## 输出位置
|
||||
|
||||
| 路径 | 内容 |
|
||||
|---|---|
|
||||
| `docs/architecture/README.md` | 索引与分工 |
|
||||
| `docs/architecture/README.md` | 索引与分工(与 `ba-arch-plan` 共同维护) |
|
||||
| `docs/architecture/tech/c4-context.md` | C4 系统上下文 / 集成(PlantUML) |
|
||||
| `docs/architecture/tech/c4-container.md` | C4 容器(PlantUML) |
|
||||
| `docs/architecture/tech/adr.md` | 跨迭代 ADR(一张表,每条一句话) |
|
||||
| `docs/architecture/business/` | 与 BA:glossary / product / core-domain-model(核心+关键字段)/ iterations |
|
||||
|
||||
**不输出** `business/` 正文 —— 那是 `ba-arch-plan` 的落点;本文只读它来做切分依据。
|
||||
|
||||
## 硬性约束
|
||||
|
||||
- **意图 ≠ as-built**:ADR 与 C4 写目标取舍;实现细节专题仍在 `docs/facts/tech-topic/`
|
||||
- 核心领域模型(仅核心聚合+关键字段)写 `docs/architecture/business/core-domain-model.md`;全量 as-built 写 `docs/facts/domain-model.md`
|
||||
- **容器必须能承载核心聚合**;切分依据是 `docs/architecture/business/core-domain-model.md` 的核心聚合 + 关键字段,不是代码目录
|
||||
- 核心领域模型(仅核心聚合+关键字段)在 `docs/architecture/business/core-domain-model.md`;全量 as-built 在 `docs/facts/domain-model.md`
|
||||
- 术语表唯一权威:`docs/architecture/business/glossary.md`
|
||||
- 迭代级细节写 `docs/features/<迭代>/high-level-design.md`,不要塞进 C4
|
||||
- 新 ADR:在 `docs/architecture/tech/adr.md` 表追加一行一句话;按 `docs/standards/adr.md`
|
||||
@@ -36,6 +40,7 @@ description: 编写或更新项目级高阶架构 docs/architecture/(C4、ADR
|
||||
|
||||
| Skill | 关系 |
|
||||
|---|---|
|
||||
| `ba-arch-plan` | 前置:业务边界、术语、核心聚合由它起草;本 skill 读它做切分 |
|
||||
| `tl-high-level-design` | 继承本目录 ADR/C4;写本迭 HLD |
|
||||
| `tl-arch-sync-back` | 实现漂移后对齐技术侧 |
|
||||
| `ba-arch-sync-back` | 业务侧术语/领域/产品对齐 |
|
||||
@@ -44,6 +49,8 @@ description: 编写或更新项目级高阶架构 docs/architecture/(C4、ADR
|
||||
## 自检
|
||||
|
||||
- [ ] C4 两图可读,外部系统与容器职责清楚
|
||||
- [ ] 每个容器能说清承载哪些核心聚合(能对上 `docs/architecture/business/core-domain-model.md`)
|
||||
- [ ] 已接受 ADR 有索引;与 `docs/standards` 无冲突
|
||||
- [ ] business 侧有 glossary 或 product 边界;iterations 指向真实迭代目录
|
||||
- [ ] 没有往 `business/` 里写正文(那是 `ba-arch-plan` 的活)
|
||||
- [ ] `docs/architecture/README.md` 的技术侧链接可点、业务侧条目存在
|
||||
- [ ] 已提示:进迭代前 architecture 须可读
|
||||
|
||||
@@ -249,7 +249,7 @@ cd e2e && npm run test:dev # 只跑开发自测用例
|
||||
|
||||
```
|
||||
docs/
|
||||
├── architecture/ # 高阶意图(项目准备:BA/TL)
|
||||
├── architecture/ # 高阶意图(项目准备:BA 起草 business/ → TL 接 tech/)
|
||||
│ ├── tech/
|
||||
│ │ ├── c4-context.md
|
||||
│ │ ├── c4-container.md
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
|
||||
| 相对目录 | 内容 | 主责 |
|
||||
|---|---|---|
|
||||
| [`tech/`](./tech/) | C4 上下文/容器、ADR | TL(`tl-arch-plan`) |
|
||||
| [`business/`](./business/) | 术语表、产品定义、核心领域模型、迭代规划 | BA + TL |
|
||||
| [`business/`](./business/) | 术语表、产品定义、核心领域模型、迭代规划 | BA(`ba-arch-plan`);TL 审 |
|
||||
| [`tech/`](./tech/) | C4 上下文/容器、ADR | TL(`tl-arch-plan`),以 `business/` 的核心聚合为切分依据 |
|
||||
|
||||
顺序:**先业务后技术** —— `business/` 的边界与核心聚合定了,C4 容器才有切分依据;两步都完成后 architecture 才算可读。
|
||||
|
||||
## 与其它文档的关系
|
||||
|
||||
@@ -20,7 +22,8 @@
|
||||
|
||||
| Skill | 何时 |
|
||||
|---|---|
|
||||
| `tl-arch-plan` | 编写/更新本目录(C4、ADR、与迭代边界) |
|
||||
| `ba-arch-plan` | 起草业务侧(产品边界、术语基线、核心聚合、迭代规划) |
|
||||
| `tl-arch-plan` | 接手技术侧:C4、ADR、与迭代边界 |
|
||||
| `tl-arch-sync-back` | 实现演进后对齐技术 ADR ↔ facts 非 ADR 专题 |
|
||||
| `ba-arch-sync-back` | 对齐术语/领域/产品 ↔ features 与 `facts/domain-model.md`(as-built) |
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# 核心领域模型(Core)
|
||||
|
||||
> **意图侧**:只维护 **核心聚合 + 关键字段**(统一语言与边界),不写全量字段/行为/端口实现。
|
||||
> **as-built**(全量)见 [`../../facts/domain-model.md`](../../facts/domain-model.md);漂移时用 `ba-arch-sync-back` 对齐。
|
||||
> **as-built**(全量)见 [`../../facts/domain-model.md`](../../facts/domain-model.md);漂移时用 `ba-arch-sync-back` 对齐。
|
||||
> 维护:`ba-arch-plan` 起草(首次/新增业务域);`ba-arch-sync-back` 对齐意图与 as-built。
|
||||
|
||||
## 核心聚合
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
> 项目级统一语言(Ubiquitous Language),落在 `docs/architecture/business/`。
|
||||
> 各 feature 的规格、Plan、代码命名应对齐本表。
|
||||
> 由 `ba-write-spec` 在写/改规格时维护;漂移时用 `ba-arch-sync-back` 对齐。不按 feature 拆分。
|
||||
> 由 `ba-arch-plan` 起草基线、`ba-write-spec` 在写/改规格时逐 feature 追加;漂移时用 `ba-arch-sync-back` 对齐。不按 feature 拆分。
|
||||
|
||||
| 中文 | 英文 | 说明(可选) |
|
||||
|---|---|---|
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# 迭代规划
|
||||
|
||||
> 项目级里程碑与迭代意图。各迭代详细规格与 HLD 在 `docs/features/iterationN/`。
|
||||
> 项目级里程碑与迭代意图。各迭代详细规格与 HLD 在 `docs/features/iterationN/`。
|
||||
> 维护:`ba-arch-plan` 起草;新迭代建目录后补索引(`ba-arch-sync-back` 对齐)。
|
||||
|
||||
## 里程碑(总览)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# 产品定义与高阶概念
|
||||
|
||||
> 项目级产品边界与核心概念。迭代范围见 [`iterations.md`](./iterations.md);核心领域见 [`core-domain-model.md`](./core-domain-model.md)。
|
||||
> 项目级产品边界与核心概念。迭代范围见 [`iterations.md`](./iterations.md);核心领域见 [`core-domain-model.md`](./core-domain-model.md)。
|
||||
> 维护:`ba-arch-plan` 起草;`ba-arch-sync-back` 迭代后对齐。
|
||||
|
||||
## 一句话
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@ description: 初始化项目的工程 harness —— 生成/补齐 AGENTS.md(
|
||||
| `--dry-run` | 只打印将要发生的改动,不写文件 |
|
||||
| `--force` | 覆盖已存在的 `AGENTS.md` 与文档文件 |
|
||||
| `--no-agents` | 只生成 `docs/` 骨架,不动 `AGENTS.md` |
|
||||
| `--manifest-only` | 只更新 `.agents/harness/harness-installer.json`(模板改动已手工同步进目标项目时用) |
|
||||
|
||||
环境变量:
|
||||
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
# 初始化项目的 harness:AGENTS.md + docs/ 文档骨架 + opencode 配置。
|
||||
#
|
||||
# 用法:
|
||||
# ./init-harness.sh <目标项目目录> [--dry-run] [--force] [--no-agents]
|
||||
# ./init-harness.sh <目标项目目录> [--dry-run] [--force] [--no-agents] [--manifest-only]
|
||||
#
|
||||
# --dry-run 只打印将要发生的改动,不写文件
|
||||
# --force 覆盖目标项目里已存在的 AGENTS.md / 文档文件
|
||||
# --no-agents 不生成 AGENTS.md,只生成 docs/ 骨架
|
||||
# --dry-run 只打印将要发生的改动,不写文件
|
||||
# --force 覆盖目标项目里已存在的 AGENTS.md / 文档文件
|
||||
# --no-agents 不生成 AGENTS.md,只生成 docs/ 骨架
|
||||
# --manifest-only 只更新 .agents/harness 清单(模板改动已手工同步进目标项目时用)
|
||||
#
|
||||
# PATH_MODE=relative 渲染项目相对路径(默认 absolute;与 agile-team-sdd 一致)
|
||||
|
||||
@@ -18,20 +19,22 @@ TEMPLATE_DIR="$INSTALLER_DIR/templates"
|
||||
DRY_RUN=0
|
||||
FORCE=0
|
||||
NO_AGENTS=0
|
||||
MANIFEST_ONLY=0
|
||||
# absolute(默认):渲染成绝对路径,agent 在任意 cwd 下都可用
|
||||
# relative :渲染成项目相对路径,产物可随仓库分发(与 agile-team-sdd 的 PATH_MODE 一致)
|
||||
PATH_MODE="${PATH_MODE:-absolute}"
|
||||
|
||||
usage() {
|
||||
sed -n '2,12p' "$0" | sed 's/^# \{0,1\}//'
|
||||
sed -n '2,13p' "$0" | sed 's/^# \{0,1\}//'
|
||||
exit "${1:-0}"
|
||||
}
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--dry-run) DRY_RUN=1 ;;
|
||||
--force) FORCE=1 ;;
|
||||
--no-agents) NO_AGENTS=1 ;;
|
||||
--dry-run) DRY_RUN=1 ;;
|
||||
--force) FORCE=1 ;;
|
||||
--no-agents) NO_AGENTS=1 ;;
|
||||
--manifest-only) MANIFEST_ONLY=1 ;;
|
||||
-h|--help) usage 0 ;;
|
||||
-*) echo "未知参数: $1" >&2; usage 1 ;;
|
||||
*) TARGET="$1" ;;
|
||||
@@ -52,11 +55,68 @@ fi
|
||||
PROJECT_ROOT="$(cd "$TARGET" && pwd)"
|
||||
PROJECT_NAME="${PROJECT_NAME:-$(basename "$PROJECT_ROOT")}"
|
||||
|
||||
# ── 安装清单 ────────────────────────────────────────────────────────
|
||||
# 一个模块一个文件,谁安装谁写自己那份:不需要合并,也不需要跨模块共享列表。
|
||||
MANIFEST_MODULE="harness-installer"
|
||||
MANIFEST_DIR="$PROJECT_ROOT/.agents/harness"
|
||||
MANIFEST_FILE="$MANIFEST_DIR/$MANIFEST_MODULE.json"
|
||||
SUITE_VERSION="$(sed -n '1s/[[:space:]]*$//;1p' "$INSTALLER_DIR/../VERSION" 2>/dev/null || true)"
|
||||
if [ -z "$SUITE_VERSION" ]; then
|
||||
echo "错误:读不到仓库根的 VERSION($INSTALLER_DIR/../VERSION)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 从清单里取字段值:{ "version": "0.3.0", ... }
|
||||
manifest_field() {
|
||||
sed -n "s/.*\"$2\": *\"\([^\"]*\)\".*/\1/p" "$1" 2>/dev/null | head -1
|
||||
}
|
||||
|
||||
# 已装版本没变就不动文件(installedAt 保持首次安装时间);变了自己又没 --force 就不许改清单
|
||||
write_manifest() {
|
||||
version="$1"
|
||||
if [ -f "$MANIFEST_FILE" ]; then
|
||||
old_version="$(manifest_field "$MANIFEST_FILE" version)"
|
||||
old_suite="$(manifest_field "$MANIFEST_FILE" suite)"
|
||||
if [ "$old_version" = "$version" ] && [ "$old_suite" = "$SUITE_VERSION" ]; then
|
||||
echo " [清单] ${MANIFEST_MODULE} ${version}(未变)"
|
||||
return 0
|
||||
fi
|
||||
if [ "$FORCE" -eq 0 ] && [ "$MANIFEST_ONLY" -eq 0 ]; then
|
||||
echo " 清单: ${MANIFEST_FILE} 记着 ${MANIFEST_MODULE} ${old_version:-未知}(套件 ${old_suite:-未知}),本次源码是 ${version}(套件 ${SUITE_VERSION});文件是跳过模式,清单未改,要升级加 --force(模板改动已手工同步过就加 --manifest-only)" >&2
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
if [ "$DRY_RUN" -eq 1 ]; then
|
||||
echo " [计划] 写清单 ${MANIFEST_FILE}(${MANIFEST_MODULE} ${version} / 套件 ${SUITE_VERSION})"
|
||||
return 0
|
||||
fi
|
||||
mkdir -p "$MANIFEST_DIR"
|
||||
tmp="$MANIFEST_FILE.tmp.$$"
|
||||
{
|
||||
printf '{\n'
|
||||
printf ' "module": "%s",\n' "$MANIFEST_MODULE"
|
||||
printf ' "version": "%s",\n' "$version"
|
||||
printf ' "suite": "%s",\n' "$SUITE_VERSION"
|
||||
printf ' "installedAt": "%s"\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
printf '}\n'
|
||||
} > "$tmp"
|
||||
mv "$tmp" "$MANIFEST_FILE"
|
||||
echo " [清单] ${MANIFEST_MODULE} ${version}(套件 ${SUITE_VERSION})→ ${MANIFEST_FILE}"
|
||||
}
|
||||
|
||||
case "$PATH_MODE" in
|
||||
absolute|relative) ;;
|
||||
*) echo "错误:PATH_MODE 只能是 absolute 或 relative,当前为 $PATH_MODE" >&2; exit 1 ;;
|
||||
esac
|
||||
|
||||
# 只更新清单:模板改动已手工同步进目标项目,不需要再刷一遍文件
|
||||
if [ "$MANIFEST_ONLY" -eq 1 ]; then
|
||||
write_manifest "$SUITE_VERSION"
|
||||
echo ""
|
||||
echo "(--manifest-only:只写了清单,没有生成任何文件)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# 把项目内路径拼成最终渲染值
|
||||
proj_path() {
|
||||
if [ "$PATH_MODE" = "relative" ]; then
|
||||
@@ -225,6 +285,8 @@ else
|
||||
skipped=$((skipped + 1))
|
||||
fi
|
||||
|
||||
write_manifest "$SUITE_VERSION"
|
||||
|
||||
echo ""
|
||||
echo "完成:生成 $created 个文件,跳过 $skipped 个。"
|
||||
echo "路径模式:$PATH_MODE$( [ "$PATH_MODE" = "relative" ] && printf '(产物可随仓库分发,agent 需在项目根运行)' || printf '(任意 cwd 可用,但路径绑定本机)' )"
|
||||
|
||||
@@ -171,7 +171,7 @@ TODO:贴出核心状态机图,并写明状态流转由哪个 domain 守卫
|
||||
|
||||
```
|
||||
{{DOCS_DIR}}/
|
||||
├── architecture/ # 高阶意图(项目准备:BA/TL)
|
||||
├── architecture/ # 高阶意图(项目准备:BA 起草 business/ → TL 接 tech/)
|
||||
│ ├── tech/ # C4 + adr.md(一句话表)
|
||||
│ └── business/ # glossary / product / core-domain-model / iterations
|
||||
├── features/ # 需求规格 + 技术方案(过程文档)
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
|
||||
| 相对目录 | 内容 | 主责 |
|
||||
|---|---|---|
|
||||
| [`tech/`](./tech/) | C4 上下文/容器、ADR | TL(`tl-arch-plan`) |
|
||||
| [`business/`](./business/) | 术语表、产品定义、核心领域模型、迭代规划 | BA + TL |
|
||||
| [`business/`](./business/) | 术语表、产品定义、核心领域模型、迭代规划 | BA(`ba-arch-plan`);TL 审 |
|
||||
| [`tech/`](./tech/) | C4 上下文/容器、ADR | TL(`tl-arch-plan`),以 `business/` 的核心聚合为切分依据 |
|
||||
|
||||
顺序:**先业务后技术** —— `business/` 的边界与核心聚合定了,C4 容器才有切分依据;两步都完成后 architecture 才算可读。
|
||||
|
||||
## 与其它文档的关系
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
# 核心领域模型(Core)
|
||||
|
||||
> **意图侧**:只维护 **核心聚合 + 关键字段**,不写全量字段/行为/端口。
|
||||
> **as-built**(全量)见 `docs/facts/domain-model.md`;漂移时用 `ba-arch-sync-back` 对齐。
|
||||
> **as-built**(全量)见 `docs/facts/domain-model.md`;漂移时用 `ba-arch-sync-back` 对齐。
|
||||
> 维护:`ba-arch-plan` 起草(首次/新增业务域);`ba-arch-sync-back` 对齐意图与 as-built。
|
||||
|
||||
## 核心聚合
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 术语表
|
||||
|
||||
> 项目级统一语言(Ubiquitous Language),落在 `docs/architecture/business/`。
|
||||
> 由 `ba-write-spec` 维护;漂移时用 `ba-arch-sync-back`。不按 feature 拆分。
|
||||
> 由 `ba-arch-plan` 起草基线、`ba-write-spec` 逐 feature 追加;漂移时用 `ba-arch-sync-back`。不按 feature 拆分。
|
||||
|
||||
| 中文 | 英文 | 说明(可选) |
|
||||
|---|---|---|
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# 迭代规划
|
||||
|
||||
> 项目级里程碑。各迭代详细规格与 HLD 在 `docs/features/iterationN/`。
|
||||
> 项目级里程碑。各迭代详细规格与 HLD 在 `docs/features/iterationN/`。
|
||||
> 维护:`ba-arch-plan` 起草;新迭代建目录后补索引(`ba-arch-sync-back` 对齐)。
|
||||
|
||||
## 里程碑
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# 产品定义与高阶概念
|
||||
|
||||
> 项目级产品边界。迭代范围见 [`iterations.md`](./iterations.md);核心领域见 [`core-domain-model.md`](./core-domain-model.md)。
|
||||
> 项目级产品边界。迭代范围见 [`iterations.md`](./iterations.md);核心领域见 [`core-domain-model.md`](./core-domain-model.md)。
|
||||
> 维护:`ba-arch-plan` 起草;`ba-arch-sync-back` 迭代后对齐。
|
||||
|
||||
## 一句话
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 系统架构规范
|
||||
|
||||
> 本文件写 **架构意图与硬约束**(目标状态);as-built 事实在 `{{FACTS_DIR}}/`。
|
||||
> 标 `TODO` 的段落必须在项目准备阶段(`tl-arch-plan`)定稿后回填,否则等于没有约定。
|
||||
> 标 `TODO` 的段落必须在项目准备阶段定稿后回填(业务侧 `ba-arch-plan`、技术侧 `tl-arch-plan`),否则等于没有约定。
|
||||
|
||||
## 部署形态
|
||||
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
|
||||
**零依赖**:只用 Python 3.9+ 标准库,不需要 `pip install`。
|
||||
|
||||
常用参数:`--dry-run` 预览 · `--force` 覆盖已装代码 · `--no-config` 不碰配置文件 · `--manifest-only` 只更新 `.agents/harness/overnight-runner.json`。
|
||||
|
||||
装完项目里会有:
|
||||
|
||||
```
|
||||
|
||||
@@ -2,11 +2,12 @@
|
||||
# 把 overnight-runner 安装到目标项目的 `.overnight-runner/`。
|
||||
#
|
||||
# 用法:
|
||||
# ./install.sh <目标项目目录> [--dry-run] [--force] [--no-config]
|
||||
# ./install.sh <目标项目目录> [--dry-run] [--force] [--no-config] [--manifest-only]
|
||||
#
|
||||
# --dry-run 只打印将要发生的改动,不写文件
|
||||
# --force 覆盖已存在的 runner 代码与启动脚本(不碰 queue / project.yaml)
|
||||
# --no-config 不创建 overnight-runner.yaml 与 project.yaml
|
||||
# --dry-run 只打印将要发生的改动,不写文件
|
||||
# --force 覆盖已存在的 runner 代码与启动脚本(不碰 queue / project.yaml)
|
||||
# --no-config 不创建 overnight-runner.yaml 与 project.yaml
|
||||
# --manifest-only 只更新 .agents/harness 清单(不装代码与配置)
|
||||
#
|
||||
# 零依赖:只用 Python 3.9+ 标准库,不需要 pip install。
|
||||
|
||||
@@ -20,17 +21,19 @@ LEGACY_TOOLS="tools/overnight-runner"
|
||||
DRY_RUN=0
|
||||
FORCE=0
|
||||
NO_CONFIG=0
|
||||
MANIFEST_ONLY=0
|
||||
|
||||
usage() {
|
||||
sed -n '2,12p' "$0" | sed 's/^# \{0,1\}//'
|
||||
sed -n '2,13p' "$0" | sed 's/^# \{0,1\}//'
|
||||
exit "${1:-0}"
|
||||
}
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--dry-run) DRY_RUN=1 ;;
|
||||
--force) FORCE=1 ;;
|
||||
--no-config) NO_CONFIG=1 ;;
|
||||
--dry-run) DRY_RUN=1 ;;
|
||||
--force) FORCE=1 ;;
|
||||
--no-config) NO_CONFIG=1 ;;
|
||||
--manifest-only) MANIFEST_ONLY=1 ;;
|
||||
-h|--help) usage 0 ;;
|
||||
-*) echo "未知参数: $1" >&2; usage 1 ;;
|
||||
*) TARGET="$1" ;;
|
||||
@@ -50,6 +53,68 @@ fi
|
||||
PROJECT_ROOT="$(cd "$TARGET" && pwd)"
|
||||
DEST="$PROJECT_ROOT/$TARGET_DIR"
|
||||
PKG_DEST="$DEST/overnight_runner"
|
||||
|
||||
# ── 安装清单 ────────────────────────────────────────────────────────
|
||||
# 一个模块一个文件,谁安装谁写自己那份:不需要合并,也不需要跨模块共享列表。
|
||||
MANIFEST_MODULE="overnight-runner"
|
||||
MANIFEST_DIR="$PROJECT_ROOT/.agents/harness"
|
||||
MANIFEST_FILE="$MANIFEST_DIR/$MANIFEST_MODULE.json"
|
||||
SUITE_VERSION="$(sed -n '1s/[[:space:]]*$//;1p' "$INSTALLER_DIR/../VERSION" 2>/dev/null || true)"
|
||||
MANIFEST_VERSION="$(sed -n 's/^__version__ = "\(.*\)"$/\1/p' "$PKG_DIR/__init__.py" 2>/dev/null || true)"
|
||||
if [ -z "$SUITE_VERSION" ]; then
|
||||
echo "错误:读不到仓库根的 VERSION($INSTALLER_DIR/../VERSION)" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$MANIFEST_VERSION" ]; then
|
||||
echo "错误:读不到 overnight_runner/__init__.py 里的 __version__" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 从清单里取字段值:{ "version": "0.3.0", ... }
|
||||
manifest_field() {
|
||||
sed -n "s/.*\"$2\": *\"\([^\"]*\)\".*/\1/p" "$1" 2>/dev/null | head -1
|
||||
}
|
||||
|
||||
# 已装版本没变就不动文件(installedAt 保持首次安装时间);变了自己又没 --force 就不许改清单
|
||||
write_manifest() {
|
||||
if [ -f "$MANIFEST_FILE" ]; then
|
||||
old_version="$(manifest_field "$MANIFEST_FILE" version)"
|
||||
old_suite="$(manifest_field "$MANIFEST_FILE" suite)"
|
||||
if [ "$old_version" = "$MANIFEST_VERSION" ] && [ "$old_suite" = "$SUITE_VERSION" ]; then
|
||||
echo " [清单] ${MANIFEST_MODULE} ${MANIFEST_VERSION}(未变)"
|
||||
return 0
|
||||
fi
|
||||
if [ "$FORCE" -eq 0 ] && [ "$MANIFEST_ONLY" -eq 0 ]; then
|
||||
echo " 清单: ${MANIFEST_FILE} 记着 ${MANIFEST_MODULE} ${old_version:-未知}(套件 ${old_suite:-未知}),本次源码是 ${MANIFEST_VERSION}(套件 ${SUITE_VERSION});文件是跳过模式,清单未改,要升级加 --force(代码已手工同步过就加 --manifest-only)" >&2
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
if [ "$DRY_RUN" -eq 1 ]; then
|
||||
echo " [计划] 写清单 ${MANIFEST_FILE}(${MANIFEST_MODULE} ${MANIFEST_VERSION} / 套件 ${SUITE_VERSION})"
|
||||
return 0
|
||||
fi
|
||||
mkdir -p "$MANIFEST_DIR"
|
||||
tmp="$MANIFEST_FILE.tmp.$$"
|
||||
{
|
||||
printf '{\n'
|
||||
printf ' "module": "%s",\n' "$MANIFEST_MODULE"
|
||||
printf ' "version": "%s",\n' "$MANIFEST_VERSION"
|
||||
printf ' "suite": "%s",\n' "$SUITE_VERSION"
|
||||
printf ' "installedAt": "%s"\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
printf '}\n'
|
||||
} > "$tmp"
|
||||
mv "$tmp" "$MANIFEST_FILE"
|
||||
echo " [清单] ${MANIFEST_MODULE} ${MANIFEST_VERSION}(套件 ${SUITE_VERSION})→ ${MANIFEST_FILE}"
|
||||
}
|
||||
|
||||
# 只更新清单:代码已经手工同步进目标项目,不需要再装一遍
|
||||
if [ "$MANIFEST_ONLY" -eq 1 ]; then
|
||||
write_manifest
|
||||
echo ""
|
||||
echo "(--manifest-only:只写了清单,没有生成任何文件)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
LAUNCHER="$DEST/overnight-runner"
|
||||
LAUNCHER_CMD="$DEST/overnight-runner.cmd"
|
||||
RUNNER_CFG="$DEST/overnight-runner.yaml"
|
||||
@@ -200,6 +265,8 @@ if [ "$NO_CONFIG" -eq 0 ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
write_manifest
|
||||
|
||||
echo ""
|
||||
echo "完成。"
|
||||
echo ""
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
| 适合 | **敏捷团队**:多角色、节奏由人定 | **FDE 工作者**:一人扛完整条线 |
|
||||
| 看哪张图 | [`flow.html`](flow.html)(角色泳道) | [`graph.html`](../agents-workflow-engine/graph.html)(节点与闸门) |
|
||||
|
||||
两者共用同一套 26 个 SDD skill,差别只在 **谁调度**:人拉(L3)还是图跑(L4)。
|
||||
两者共用同一套 27 个 SDD skill,差别只在 **谁调度**:人拉(L3)还是图跑(L4)。
|
||||
|
||||
内容覆盖:
|
||||
|
||||
|
||||
251
team-workflow-guide/delivery.html
Normal file
251
team-workflow-guide/delivery.html
Normal file
@@ -0,0 +1,251 @@
|
||||
<!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>
|
||||
@@ -463,7 +463,8 @@
|
||||
|
||||
var cells = {
|
||||
install: box("装机 · 定规矩", "/harness-installer"),
|
||||
arch: box("架构意图落盘", "/tl-arch-plan"),
|
||||
baArch: box("业务架构意图", "/ba-arch-plan"),
|
||||
arch: box("技术架构", "/tl-arch-plan"),
|
||||
direction: poly(para, "定方向 · 首迭范围", 168, 46, nodeInput),
|
||||
spec: box("规格 + 原型", "/ba-grill-me · spec"),
|
||||
estimate: box("估算 · 排期", "/pm-estimate"),
|
||||
@@ -484,6 +485,7 @@
|
||||
|
||||
var columns = [
|
||||
[{ lane: "tl", ids: ["install"] }],
|
||||
[{ lane: "ba", ids: ["baArch"] }],
|
||||
[{ lane: "tl", ids: ["arch"] }],
|
||||
[{ lane: "ba", ids: ["direction"] }],
|
||||
[{ lane: "ba", ids: ["spec"] }],
|
||||
@@ -643,8 +645,9 @@
|
||||
});
|
||||
}
|
||||
|
||||
// 项目准备:装机 → 架构意图 → 定方向
|
||||
link(c.install, c.arch, { straight: true });
|
||||
// 项目准备:装机 → 业务架构意图(BA)→ 技术架构(TL)→ 定方向
|
||||
cross(c.install, c.baArch, 22);
|
||||
cross(c.baArch, c.arch, 22);
|
||||
cross(c.arch, c.direction, 24);
|
||||
link(c.direction, c.spec, { straight: true });
|
||||
|
||||
@@ -726,17 +729,17 @@
|
||||
return originX + index * PITCH - (PITCH - COLW) / 2;
|
||||
}
|
||||
var stages = [
|
||||
{ from: GUTTER, to: boundaryX(3), title: "1 项目准备" },
|
||||
{ from: boundaryX(3), to: boundaryX(7), title: "2 迭代前设计" },
|
||||
{ from: boundaryX(7), to: boundaryX(13), title: "3 迭代中开发" },
|
||||
{ from: boundaryX(13), to: laneWidth, title: "4 交付与复盘" }
|
||||
{ from: GUTTER, to: boundaryX(4), title: "1 项目准备" },
|
||||
{ from: boundaryX(4), to: boundaryX(8), title: "2 迭代前设计" },
|
||||
{ from: boundaryX(8), to: boundaryX(14), title: "3 迭代中开发" },
|
||||
{ from: boundaryX(14), to: laneWidth, title: "4 交付与复盘" }
|
||||
];
|
||||
stages.forEach(function (stage) {
|
||||
caption(stage.title, (stage.from + stage.to) / 2, stage.to - stage.from);
|
||||
});
|
||||
separator(boundaryX(3));
|
||||
separator(boundaryX(7));
|
||||
separator(boundaryX(13));
|
||||
separator(boundaryX(4));
|
||||
separator(boundaryX(8));
|
||||
separator(boundaryX(14));
|
||||
|
||||
// 适配与缩放
|
||||
var MIN_SCALE = 0.1;
|
||||
|
||||
@@ -608,7 +608,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="phase setup" rowspan="3" scope="rowgroup"><span class="phase-label">项目准备</span></th>
|
||||
<th class="phase setup" rowspan="4" scope="rowgroup"><span class="phase-label">项目准备</span></th>
|
||||
<td class="role">TL<small>装机与定规</small></td>
|
||||
<td>
|
||||
<ul>
|
||||
@@ -637,24 +637,45 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="role">BA / TL<small>架构设计</small></td>
|
||||
<td class="role">BA<small>业务架构意图</small></td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>产品边界、术语与领域意图</li>
|
||||
<li>C4 上下文/容器与跨迭代 ADR</li>
|
||||
<li>迭代规划对齐</li>
|
||||
<li>产品边界与「本期不做」</li>
|
||||
<li>术语基线、核心聚合 + 关键字段</li>
|
||||
<li>迭代规划与里程碑</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<div class="tool-new"><code>ba-arch-plan</code></div>
|
||||
<div><code>ba-arch-sync-back</code>(后续对齐)</div>
|
||||
</td>
|
||||
<td>业务目标、干系人访谈、现有系统边界</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li><code>docs/architecture/business/</code></li>
|
||||
<li>product · glossary · core-domain-model · iterations</li>
|
||||
<li>「核心聚合 → 建议容器」交接表</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="role">TL<small>技术架构</small></td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>C4 上下文/容器切分</li>
|
||||
<li>跨迭代 ADR</li>
|
||||
<li>容器能否承载核心聚合</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<div class="tool-new"><code>tl-arch-plan</code></div>
|
||||
<div><code>ba-arch-sync-back</code>(后续对齐)</div>
|
||||
<div><code>tl-arch-sync-back</code>(后续对齐)</div>
|
||||
</td>
|
||||
<td>业务目标、技术选型、干系人约束</td>
|
||||
<td>业务边界与核心聚合、技术选型、干系人约束</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li><code>docs/architecture/</code></li>
|
||||
<li>C4 · ADR 一句话表 · glossary · product · core-domain-model · iterations</li>
|
||||
<li><code>docs/architecture/tech/</code></li>
|
||||
<li>C4 上下文/容器 · ADR 一句话表</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -837,7 +858,7 @@
|
||||
<section id="setup">
|
||||
<h2>1. 项目准备</h2>
|
||||
<p class="goal">目标:项目「可被 harness 管理」——规范、目录、工具齐;高阶架构意图落盘。</p>
|
||||
<p><strong>协作口诀</strong>:TL 装机与定规矩,BA/TL 落 <code>docs/architecture/</code>,QA 定闸门,BA/PM 定方向。规矩与架构未定不进迭代。</p>
|
||||
<p><strong>协作口诀</strong>:TL 装机与定规矩,BA 先落业务意图、TL 再接技术架构,QA 定闸门,BA/PM 定方向。规矩与架构未定不进迭代。</p>
|
||||
|
||||
<h3>1.1 谁做什么</h3>
|
||||
<table class="data">
|
||||
@@ -847,7 +868,8 @@
|
||||
<tr><td>安装 SDD skill</td><td>TL</td><td><code>.agents/skills/</code></td></tr>
|
||||
<tr><td>安装 MCP</td><td>TL</td><td><code>.mcp.json</code> / <code>opencode.jsonc</code></td></tr>
|
||||
<tr><td>定标准与事实骨架</td><td>TL</td><td><code>docs/standards/</code>、<code>docs/facts/</code></td></tr>
|
||||
<tr><td>架构设计(产品/领域/C4/ADR)</td><td>BA / TL</td><td><code>docs/architecture/</code></td></tr>
|
||||
<tr><td>业务架构意图(产品边界/术语/核心聚合/迭代规划)</td><td>BA</td><td><code>docs/architecture/business/</code></td></tr>
|
||||
<tr><td>技术架构(C4/ADR,承载核心聚合)</td><td>TL</td><td><code>docs/architecture/tech/</code></td></tr>
|
||||
<tr><td>定测试闸门</td><td>QA + TL</td><td><code>test:qa</code> 进 CI</td></tr>
|
||||
<tr><td>业务目标与首迭范围</td><td>BA / PM</td><td><code>docs/architecture/business/iterations.md</code></td></tr>
|
||||
</tbody>
|
||||
@@ -870,7 +892,10 @@
|
||||
<strong>(可选)装 overnight-runner</strong> — 需要夜跑 Plan 时,再让 Agent 安装并写好队列配置。
|
||||
</li>
|
||||
<li>
|
||||
<strong>架构设计</strong> — 对 Agent 说:用 <code>tl-arch-plan</code>(BA 协作)填写 <code>docs/architecture/</code>(C4、ADR、术语/产品/领域意图、迭代规划)。可与定标准并行,但<strong>进迭代前须齐</strong>。
|
||||
<strong>业务架构意图</strong> — 对 Agent 说:用 <code>ba-arch-plan</code> 起草 <code>docs/architecture/business/</code>(产品边界、术语基线、核心聚合、迭代规划),并给出「核心聚合 → 建议容器」交接表。
|
||||
</li>
|
||||
<li>
|
||||
<strong>技术架构</strong> — 对 Agent 说:用 <code>tl-arch-plan</code> 接上一步,填 <code>docs/architecture/tech/</code>(C4 上下文/容器、跨迭代 ADR);容器要能承载上一步的核心聚合。两步都完成,architecture 才算可读。
|
||||
</li>
|
||||
</ol>
|
||||
<div class="callout">装完 skill / MCP 后必须<strong>重启 opencode</strong>(或等价 IDE Agent),配置才生效。不要跳步:先有 <code>AGENTS.md</code> 与 <code>docs/</code>,再装 skills,路径才指向真实目录。</div>
|
||||
@@ -880,7 +905,7 @@
|
||||
<li><code>AGENTS.md</code> 关键 TODO 已填</li>
|
||||
<li>skill + MCP 可用</li>
|
||||
<li>文档树与测试归属约定写清</li>
|
||||
<li><code>docs/architecture/</code> 已有可读的 C4 / 术语或产品边界 / 首迭规划(可与装机并行,但进迭代前须齐)</li>
|
||||
<li><code>docs/architecture/</code> 已有可读的:业务侧(product 边界 / 术语 / 核心聚合 / 首迭规划)+ 技术侧(C4 / ADR)(可与装机并行,但进迭代前须齐)</li>
|
||||
<li>团队对齐三条铁律(规范先于代码 / 测试先于实现 / 文档同批次)</li>
|
||||
</ul>
|
||||
</section>
|
||||
@@ -1055,9 +1080,9 @@
|
||||
|
||||
<div class="role-card">
|
||||
<h3>BA · 业务分析</h3>
|
||||
<p class="goal">让开发不需要猜就能开始做。规格写「做什么」,不写表名/SQL;同步输出 HTML 原型图。本迭产物放在 <code>docs/features/iteration[n]/</code>。</p>
|
||||
<p class="goal">让开发不需要猜就能开始做。项目准备阶段先立业务架构意图(边界 / 术语 / 核心聚合 / 迭代规划);逐迭代写规格与 HTML 原型图,本迭产物放在 <code>docs/features/iteration[n]/</code>。规格写「做什么」,不写表名/SQL。</p>
|
||||
<div class="pill-row">
|
||||
<span class="pill">ba-grill-me</span><span class="pill">ba-write-spec</span>
|
||||
<span class="pill">ba-arch-plan</span><span class="pill">ba-grill-me</span><span class="pill">ba-write-spec</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1071,9 +1096,9 @@
|
||||
|
||||
<div class="role-card">
|
||||
<h3>TL · 技术负责人</h3>
|
||||
<p class="goal">装机定规;迭代前写高阶技术方案(TRD)并确认;迭代中做代码评审与发布清单。工具链与密钥不落盘也归 TL。</p>
|
||||
<p class="goal">装机定规;项目准备阶段接 BA 的业务边界切 C4/ADR;迭代前写高阶技术方案(TRD)并确认;迭代中做代码评审与发布清单。工具链与密钥不落盘也归 TL。</p>
|
||||
<div class="pill-row">
|
||||
<span class="pill">dev-code-review</span><span class="pill">ba-gen-facts</span><span class="pill">dev-release-plan</span>
|
||||
<span class="pill">tl-arch-plan</span><span class="pill">tl-high-level-design</span><span class="pill">dev-code-review</span><span class="pill">ba-gen-facts</span><span class="pill">dev-release-plan</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1104,6 +1129,8 @@
|
||||
<table class="data">
|
||||
<thead><tr><th>步骤</th><th>阶段</th><th>skill</th><th>产出</th></tr></thead>
|
||||
<tbody>
|
||||
<tr><td>业务架构意图</td><td>§1</td><td><code>ba-arch-plan</code></td><td><code>docs/architecture/business/</code>(product · glossary · core-domain-model · iterations)+ 「核心聚合 → 建议容器」</td></tr>
|
||||
<tr><td>技术架构</td><td>§1</td><td><code>tl-arch-plan</code></td><td><code>docs/architecture/tech/</code>(C4 上下文/容器 · ADR)</td></tr>
|
||||
<tr><td>拷问</td><td>§2</td><td><code>ba-grill-me</code></td><td>澄清纪要</td></tr>
|
||||
<tr><td>写规格 + 原型</td><td>§2</td><td><code>ba-write-spec</code></td><td><code>docs/features/iteration[n]/<CODE>-<slug>/spec.md</code> + <code>prototypes/</code></td></tr>
|
||||
<tr><td>估算</td><td>§2</td><td><code>pm-estimate</code></td><td>点数与人日</td></tr>
|
||||
|
||||
285
team-workflow-guide/init.html
Normal file
285
team-workflow-guide/init.html
Normal file
@@ -0,0 +1,285 @@
|
||||
<!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>
|
||||
186
team-workflow-guide/knowledge.html
Normal file
186
team-workflow-guide/knowledge.html
Normal file
@@ -0,0 +1,186 @@
|
||||
<!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>
|
||||
299
team-workflow-guide/overview.html
Normal file
299
team-workflow-guide/overview.html
Normal file
@@ -0,0 +1,299 @@
|
||||
<!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>
|
||||
239
team-workflow-guide/requirement.html
Normal file
239
team-workflow-guide/requirement.html
Normal file
@@ -0,0 +1,239 @@
|
||||
<!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>
|
||||
@@ -47,6 +47,7 @@ node tool-chain-installer/scripts/install-tools.mjs <目标项目目录> --all -
|
||||
| `--all` | 安装全部 |
|
||||
| `--dry-run` | 只打印将要发生的改动 |
|
||||
| `--format <fmt>` | `both`(默认) \| `mcp-json` \| `opencode` |
|
||||
| `--manifest-only` | 只更新 `.agents/harness/tool-chain-installer.json`,不动 `.mcp.json` / `opencode.jsonc` |
|
||||
|
||||
## 写入哪些文件
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
// --dry-run 只打印将要发生的改动
|
||||
// --format <fmt> 写入格式:both(默认) | mcp-json | opencode
|
||||
// --list 列出所有可用工具并退出
|
||||
// --manifest-only 只更新 .agents/harness 清单,不动 MCP 配置
|
||||
|
||||
import fs from "node:fs"
|
||||
import path from "node:path"
|
||||
@@ -20,7 +21,7 @@ const CATALOG_PATH = path.join(HERE, "..", "catalog", "mcp-catalog.json")
|
||||
|
||||
// ── 参数解析 ────────────────────────────────────────────────────────
|
||||
const args = process.argv.slice(2)
|
||||
const opts = { tools: [], groups: [], all: false, dryRun: false, format: "both", list: false }
|
||||
const opts = { tools: [], groups: [], all: false, dryRun: false, format: "both", list: false, manifestOnly: false }
|
||||
let target = null
|
||||
|
||||
for (let i = 0; i < args.length; i++) {
|
||||
@@ -32,6 +33,7 @@ for (let i = 0; i < args.length; i++) {
|
||||
case "--dry-run": opts.dryRun = true; break
|
||||
case "--format": opts.format = args[++i] || "both"; break
|
||||
case "--list": opts.list = true; break
|
||||
case "--manifest-only": opts.manifestOnly = true; break
|
||||
case "-h": case "--help": printUsage(0); break
|
||||
default:
|
||||
if (a.startsWith("-")) { console.error(`未知参数: ${a}`); printUsage(1) }
|
||||
@@ -40,7 +42,7 @@ for (let i = 0; i < args.length; i++) {
|
||||
}
|
||||
|
||||
function printUsage(code) {
|
||||
console.log(fs.readFileSync(fileURLToPath(import.meta.url), "utf8").split("\n").slice(1, 11).map(l => l.replace(/^#\s?/, "")).join("\n"))
|
||||
console.log(fs.readFileSync(fileURLToPath(import.meta.url), "utf8").split("\n").slice(1, 13).map(l => l.replace(/^\/\/\s?/, "")).join("\n"))
|
||||
process.exit(code)
|
||||
}
|
||||
|
||||
@@ -70,6 +72,63 @@ if (!fs.existsSync(target)) {
|
||||
|
||||
const PROJECT_ROOT = fs.realpathSync(target)
|
||||
|
||||
// ── 安装清单 ────────────────────────────────────────────────────────
|
||||
// 一个模块一个文件,谁安装谁写自己那份:不需要合并,也不需要跨模块共享列表。
|
||||
const MANIFEST_MODULE = "tool-chain-installer"
|
||||
const MANIFEST_DIR = path.join(PROJECT_ROOT, ".agents", "harness")
|
||||
const MANIFEST_FILE = path.join(MANIFEST_DIR, `${MANIFEST_MODULE}.json`)
|
||||
const SUITE_VERSION = (() => {
|
||||
try {
|
||||
return fs.readFileSync(path.join(HERE, "..", "..", "VERSION"), "utf8").trim()
|
||||
} catch {
|
||||
return ""
|
||||
}
|
||||
})()
|
||||
if (!SUITE_VERSION) {
|
||||
console.error("错误:读不到仓库根的 VERSION")
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
function readManifestField(file, field) {
|
||||
const hit = fs.readFileSync(file, "utf8").match(new RegExp(`"${field}"\\s*:\\s*"([^"]*)"`))
|
||||
return hit ? hit[1] : ""
|
||||
}
|
||||
|
||||
// 这个安装器没有「跳过」模式(每次都合并进配置),所以版本变了一定要如实更新清单。
|
||||
function writeManifest() {
|
||||
if (fs.existsSync(MANIFEST_FILE)) {
|
||||
const oldVersion = readManifestField(MANIFEST_FILE, "version")
|
||||
const oldSuite = readManifestField(MANIFEST_FILE, "suite")
|
||||
if (oldVersion === SUITE_VERSION && oldSuite === SUITE_VERSION) {
|
||||
console.log(` [清单] ${MANIFEST_MODULE} ${SUITE_VERSION}(未变)`)
|
||||
return
|
||||
}
|
||||
}
|
||||
if (opts.dryRun) {
|
||||
console.log(` [计划] 写清单 ${MANIFEST_FILE}(${MANIFEST_MODULE} ${SUITE_VERSION})`)
|
||||
return
|
||||
}
|
||||
fs.mkdirSync(MANIFEST_DIR, { recursive: true })
|
||||
const body = {
|
||||
module: MANIFEST_MODULE,
|
||||
version: SUITE_VERSION,
|
||||
suite: SUITE_VERSION,
|
||||
installedAt: new Date().toISOString().replace(/\.\d+Z$/, "Z"),
|
||||
}
|
||||
const tmp = `${MANIFEST_FILE}.tmp.${process.pid}`
|
||||
fs.writeFileSync(tmp, JSON.stringify(body, null, 2) + "\n")
|
||||
fs.renameSync(tmp, MANIFEST_FILE)
|
||||
console.log(` [清单] ${MANIFEST_MODULE} ${SUITE_VERSION} → ${MANIFEST_FILE}`)
|
||||
}
|
||||
|
||||
// 只更新清单:MCP 配置已手动对齐,不想再叠一遍写入
|
||||
if (opts.manifestOnly) {
|
||||
writeManifest()
|
||||
console.log("")
|
||||
console.log("(--manifest-only:只写了清单,MCP 配置未改动)")
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
// ── 选择工具 ────────────────────────────────────────────────────────
|
||||
const selected = []
|
||||
if (opts.all) {
|
||||
@@ -199,6 +258,8 @@ if (writeOpencode) {
|
||||
}
|
||||
}
|
||||
|
||||
writeManifest()
|
||||
|
||||
// ── 报告 ────────────────────────────────────────────────────────────
|
||||
console.log("")
|
||||
console.log("已配置的工具:")
|
||||
|
||||
Reference in New Issue
Block a user