aodw-skill 0.7.26 → 0.7.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.aodw-next/01-core/ai-interaction-rules.md +35 -0
- package/.aodw-next/01-core/aodw-constitution.md +413 -2
- package/.aodw-next/02-workflow/autopilot-goal-spec.md +167 -0
- package/.aodw-next/02-workflow/autopilot-protocol.md +254 -0
- package/.aodw-next/02-workflow/rt-autopilot-readiness.md +59 -0
- package/.aodw-next/02-workflow/rt-manager.md +97 -13
- package/.aodw-next/02-workflow/spec-lite-autopilot-profile.md +106 -0
- package/.aodw-next/02-workflow/spec-lite-profile.md +34 -1
- package/.aodw-next/SKILL.md +2 -0
- package/.aodw-next/manifest.yaml +28 -0
- package/.aodw-next/templates/aodw-kernel-loader-template.md +1 -0
- package/.aodw-next/templates/execution-log.template.md +27 -0
- package/.aodw-next/templates/rt-autopilot-preflight.template.md +40 -0
- package/.aodw-next/templates/rt-lite.template.md +117 -0
- package/.aodw-next/templates/rt-loop-prompt.template.md +45 -0
- package/.aodw-next/templates/rt-meta-template.yaml +6 -0
- package/.aodw-next/templates/rt-plan.template.md +35 -0
- package/.aodw-next/templates/rt-state.template.json +26 -0
- package/AODW_Adapters/antigravity/.agent/rules/aodw-next.md +1 -0
- package/AODW_Adapters/claude/CLAUDE.md +1 -0
- package/AODW_Adapters/cursor/.cursor/rules/aodw-next.mdc +1 -0
- package/AODW_Adapters/openclaw/AGENTS.md +141 -0
- package/AODW_Adapters/openclaw/SKILL.md +111 -0
- package/bin/aodw.js +28 -1
- package/bin/commands/new.js +116 -1
- package/bin/processors/index.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: aodw-autopilot-protocol
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
category: aodw/execution-profile
|
|
5
|
+
trigger: "meta.yaml execution_mode=autopilot 时加载(与 spec-lite-autopilot-profile 一并)"
|
|
6
|
+
description: >
|
|
7
|
+
AODW 全自动模式总协议:Goal Spec + Ralph 循环 + 机械 Gate + AI 研判 + 可观测 + 熔断。
|
|
8
|
+
priority: high
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# AODW Autopilot 执行协议
|
|
12
|
+
|
|
13
|
+
> 版本 1.0 | 融合 Task Platform 持续编程实践与 AODW RT 体系
|
|
14
|
+
> 关联:`autopilot-goal-spec.md`、`spec-lite-autopilot-profile.md`、`rt-manager.md` §3.2
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 0. 设计原则
|
|
19
|
+
|
|
20
|
+
| 原则 | 含义 |
|
|
21
|
+
|------|------|
|
|
22
|
+
| **规格驱动** | `rt-lite.md` + `rt-plan.md` 是每轮迭代的「大脑」,从磁盘重读,不靠对话记忆 |
|
|
23
|
+
| **文件系统即记忆** | `state.json` 跨轮持久化;每次迭代可全新 AI 上下文 |
|
|
24
|
+
| **机械 Backpressure** | 改动后必须跑 tests/lint/guard,禁止凭感觉声称完成 |
|
|
25
|
+
| **可观测** | `execution-log.md` 每轮一条,避免 RT-002 式黑盒 |
|
|
26
|
+
| **智能但可熔断** | LLM 负责研判与拆解;卡住/超轮/无进展则交还人工 |
|
|
27
|
+
| **用户已确认模式** | `execution_mode` 仅在创建 RT 时由用户选定,AI 不得静默默认 |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 1. 生命周期总览
|
|
32
|
+
|
|
33
|
+
```mermaid
|
|
34
|
+
flowchart TD
|
|
35
|
+
A[用户确认 Autopilot] --> B[创建 RT 脚手架]
|
|
36
|
+
B --> C[AI: 适配度研判 + Goal 质量自检]
|
|
37
|
+
C -->|不通过| D[修订 rt-lite / 改协作模式]
|
|
38
|
+
C -->|通过| E[Preflight 勾选]
|
|
39
|
+
E --> F[机械 Gate-Plan]
|
|
40
|
+
F --> G[Ralph 循环]
|
|
41
|
+
G --> H{Done?}
|
|
42
|
+
H -->|否| G
|
|
43
|
+
H -->|是| I[机械 Gate-Commit]
|
|
44
|
+
I --> J[机械 Gate-Done]
|
|
45
|
+
J --> K[RT done + 文档同步]
|
|
46
|
+
G -->|熔断| L[请求人工]
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 2. 阶段说明
|
|
52
|
+
|
|
53
|
+
### Phase A — 模式确认(强制,RT 创建时)
|
|
54
|
+
|
|
55
|
+
见 `rt-manager.md` §3.2、`ai-interaction-rules.md`。未获用户 A/B 答复前不得创建 `RT/RT-XXX/`。
|
|
56
|
+
|
|
57
|
+
### Phase B — Goal 定稿(AI + 用户,可 1–2 轮对话)
|
|
58
|
+
|
|
59
|
+
1. AI 根据 intake 起草 `rt-lite.md` §1-§4、§7、§5.4
|
|
60
|
+
2. 运行 `autopilot-goal-spec.md` §5 质量自检 + §6 适配度
|
|
61
|
+
3. 不通过 → 用决策型问题请用户收窄范围或改协作模式
|
|
62
|
+
4. 通过 → 初始化 `state.json`、`rt-plan.md`(空计划)
|
|
63
|
+
|
|
64
|
+
**友好行为**:用自然语言向用户展示 §7 摘要(3–5 条),请用户确认「是否就是这些完成标准」;仅确认后写入终稿。
|
|
65
|
+
|
|
66
|
+
### Phase C — Preflight
|
|
67
|
+
|
|
68
|
+
创建并完成 `RT/RT-XXX/autopilot-preflight.md`。该文件由 `.aodw-next/templates/rt-autopilot-preflight.template.md` 复制而来;`rt-autopilot-readiness.md` 只是执行说明,不能替代 RT 目录内的实际 preflight 文件。
|
|
69
|
+
|
|
70
|
+
### Phase D — 机械 Gate-Plan(替代协作 Gate 3)
|
|
71
|
+
|
|
72
|
+
| 条件 | 检查方式 |
|
|
73
|
+
|------|----------|
|
|
74
|
+
| §1-§4、§7 非空且通过 Goal 自检 | 文档 + AI 清单 |
|
|
75
|
+
| §5.4 三条命令已填且可执行 | 试跑或 `--help` 可解释 |
|
|
76
|
+
| 已在 `feature/RT-XXX-*` 分支 | `git branch --show-current` |
|
|
77
|
+
|
|
78
|
+
通过 → `state.json.checklist.plan_complete=true`,`phase=implementing`。
|
|
79
|
+
|
|
80
|
+
### Phase E — Ralph 实现循环
|
|
81
|
+
|
|
82
|
+
每轮四步(与 Task Platform §4.2 对齐):
|
|
83
|
+
|
|
84
|
+
1. **Read** — `state.json` + `rt-plan.md` + `loop-prompt.md`(注入当前 iteration)
|
|
85
|
+
2. **Execute** — 完成 `rt-plan.md` 中 1–2 个未完成步骤;对应推进 §7 checklist
|
|
86
|
+
3. **Backpressure** — 跑 §5.4 tests → lint → guard;更新 checklist 布尔值
|
|
87
|
+
4. **Write** — 更新 `state.json`、`rt-plan.md`、`execution-log.md`;必要时 `rt-lite.md` §5-§6
|
|
88
|
+
|
|
89
|
+
**迭代上限**:`max_iterations` 默认 **20**(与 Task Platform `MAX_ITERATIONS` 一致;Spec-Lite 单 RT 可协商降为 15)。写在 `state.json`,创建 RT 时可与用户确认。
|
|
90
|
+
|
|
91
|
+
**冷却**:连续 API/工具失败时,记录 `blockers`,下一轮再试(不在单轮内死磕 >3 次同一错误)。
|
|
92
|
+
|
|
93
|
+
### Phase F — 机械 Gate-Commit(替代协作 Gate 4)
|
|
94
|
+
|
|
95
|
+
全部满足才允许 `git commit`:
|
|
96
|
+
|
|
97
|
+
- `tests_pass` && `lint_pass` && `guard_pass`
|
|
98
|
+
- 本轮 diff 与 §2.1 范围一致(guard 辅助)
|
|
99
|
+
|
|
100
|
+
### Phase G — 机械 Gate-Done(替代协作 Gate 5)
|
|
101
|
+
|
|
102
|
+
**双条件完成**(对齐 Task Platform Goal Spec §三、Ralph「计划清空 + 验证通过」):
|
|
103
|
+
|
|
104
|
+
1. `rt-plan.md`「进度」区全部 `[x]`(无 `[ ]` 步骤)
|
|
105
|
+
2. `state.json.checklist` 全 `true`,且 §5.4 tests/lint/guard 均已在本轮或上一轮验证通过
|
|
106
|
+
|
|
107
|
+
另需:
|
|
108
|
+
|
|
109
|
+
- development auditor 无 P0
|
|
110
|
+
- `meta.yaml.status=done`,`state.json.phase=done`
|
|
111
|
+
- `rt-lite.md` 元数据行 `status=done`
|
|
112
|
+
- Spec-Lite Autopilot 7 件套齐全:`meta.yaml`、`rt-lite.md`、`rt-plan.md`、`state.json`、`loop-prompt.md`、`execution-log.md`、`autopilot-preflight.md`
|
|
113
|
+
- 输出 `DONE`(对齐 Ralph 完成信号,便于外部脚本检测)
|
|
114
|
+
|
|
115
|
+
**机械 Stop 映射**:`guard` + pre-commit hook ≈ Task Platform Stop Hook;不得以纯对话判定替代上述双条件。
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 3. 质量控制
|
|
120
|
+
|
|
121
|
+
### 3.1 每轮 Quality Gate
|
|
122
|
+
|
|
123
|
+
- [ ] 代码可解析/编译
|
|
124
|
+
- [ ] 相关测试通过
|
|
125
|
+
- [ ] lint/type 无新增错误
|
|
126
|
+
- [ ] 改动范围 ≤ 本轮 `rt-plan.md` 目标
|
|
127
|
+
- [ ] `state.json` 已更新
|
|
128
|
+
- [ ] `execution-log.md` 已追加本条
|
|
129
|
+
|
|
130
|
+
### 3.2 Final Gate
|
|
131
|
+
|
|
132
|
+
- [ ] 所有 §7 条件已验证
|
|
133
|
+
- [ ] 完整测试套件(非抽样)通过
|
|
134
|
+
- [ ] 无临时 debug / 大范围 commented-out
|
|
135
|
+
- [ ] 无新增未说明的 TODO(除非原有问题)
|
|
136
|
+
- [ ] `phase=done`
|
|
137
|
+
|
|
138
|
+
### 3.3 反模式检测(AI 每轮自检)
|
|
139
|
+
|
|
140
|
+
| 信号 | 含义 | 处理 |
|
|
141
|
+
|------|------|------|
|
|
142
|
+
| 同一文件修改 > 3 次 | 方案可能错误 | 换实现,记入 `decisions` |
|
|
143
|
+
| 同一测试点连续失败 | 理解有误 | 重读 §1、模块 README,更新 `blockers` |
|
|
144
|
+
| checklist 2 轮无进展 | 任务过大 | 拆 `rt-plan.md` 子步骤或 `phase=blocked` |
|
|
145
|
+
| diff 出现 §2.1 外文件 | scope creep | 回滚无关改动,收紧 prompt |
|
|
146
|
+
| 新增「过度烘焙」功能 | 循环过久/目标模糊 | 停止迭代,收紧 §7 或改协作模式 |
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 4. 执行子模式(AI 自主选用)
|
|
151
|
+
|
|
152
|
+
在 **已确认 Autopilot** 的前提下,AI 根据任务特征选择子模式(**无需再次问用户**,但须写入 `state.json.execution_submode`):
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
任务评估
|
|
156
|
+
│
|
|
157
|
+
├─ 预计多轮、>100K token、需跨重启续接?
|
|
158
|
+
│ └─ 是 → ralph-loop(默认):每轮新上下文,读 state.json
|
|
159
|
+
│
|
|
160
|
+
├─ 可在单 session 内完成且 §7 ≤5 条?
|
|
161
|
+
│ └─ 是 → goal-session:单 session 推进,仍须机械验收
|
|
162
|
+
│
|
|
163
|
+
└─ 默认 → ralph-loop
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
| 子模式 | 适用 | 风险缓解 |
|
|
167
|
+
|--------|------|----------|
|
|
168
|
+
| `ralph-loop` | 多步骤、长任务、需断点续跑 | `state.json` + `execution-log` |
|
|
169
|
+
| `goal-session` | 小改动、明确终点 | 仍跑 §5.4;避免「Evaluator 式」纯对话判定 |
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 5. 与用户交互边界(智能友好)
|
|
174
|
+
|
|
175
|
+
### 5.1 不打断用户
|
|
176
|
+
|
|
177
|
+
- 每轮实现、测试、更新 state
|
|
178
|
+
- 自动 commit(Gate-Commit 通过后)
|
|
179
|
+
- 文档 §5-§6 同步
|
|
180
|
+
|
|
181
|
+
### 5.2 必须打断用户
|
|
182
|
+
|
|
183
|
+
1. `blockers` 非空且 **2 轮**无法消除
|
|
184
|
+
2. 产品/架构 **二选一**(无默认安全项)
|
|
185
|
+
3. 熔断:无进展 2 轮 / 达 `max_iterations` / 适配度中途恶化(如出现 schema 变更)
|
|
186
|
+
4. Goal 自检失败且用户不愿收窄范围
|
|
187
|
+
|
|
188
|
+
### 5.3 进度友好(推荐)
|
|
189
|
+
|
|
190
|
+
每 **3 轮**或 **phase 变化**时,向用户发送简短进度(非请求确认):
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
[RT-012 Autopilot] 迭代 3/15 | phase=implementing
|
|
194
|
+
✓ C2 tests ✓ C3 lint ○ C5 docs
|
|
195
|
+
下一步:更新 §6 changelog
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 6. 错误恢复
|
|
201
|
+
|
|
202
|
+
| 场景 | 行为 |
|
|
203
|
+
|------|------|
|
|
204
|
+
| 单轮工具/测试失败 | 记入 `blockers`,下轮续接;**不**整 RT 失败 |
|
|
205
|
+
| 上下文耗尽 | 下轮全新上下文,读 `state.json` |
|
|
206
|
+
| 用户中断 | 保留 `state.json`,下次从 checklist 续跑 |
|
|
207
|
+
| 需改协作模式 | 更新 `meta.yaml.execution_mode=collaborative`,记录 `decisions`,交还 Gate 3/4/5 |
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## 7. 配置参考
|
|
212
|
+
|
|
213
|
+
| 参数 | 默认 | 说明 |
|
|
214
|
+
|------|------|------|
|
|
215
|
+
| `max_iterations` | 20 | 防无限循环 / 过度烘焙(可对小型 RT 降为 15) |
|
|
216
|
+
| `stall_threshold` | 2 | 连续无进展轮数 → blocked |
|
|
217
|
+
| `same_file_edit_limit` | 3 | 反模式熔断 |
|
|
218
|
+
| `progress_notify_every` | 3 | 可选进度摘要间隔 |
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## 8. 开工自检(AI)
|
|
223
|
+
|
|
224
|
+
- [ ] 用户已确认 `execution_mode: autopilot`
|
|
225
|
+
- [ ] Goal 质量自检 7/7 通过
|
|
226
|
+
- [ ] Autopilot 适配度 ≥ 4/6(或用户坚持并已知晓风险)
|
|
227
|
+
- [ ] Preflight 完成
|
|
228
|
+
- [ ] `feature/RT-XXX` 分支
|
|
229
|
+
- [ ] `loop-prompt.md` iteration 已设为 1
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## 9. 文件清单
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
RT/RT-XXX/
|
|
237
|
+
meta.yaml # execution_mode: autopilot
|
|
238
|
+
rt-lite.md # Goal:§1-§7
|
|
239
|
+
rt-plan.md # Plan:动态步骤
|
|
240
|
+
state.json # 机器状态
|
|
241
|
+
loop-prompt.md # 轮次 prompt
|
|
242
|
+
execution-log.md # 人读时间线
|
|
243
|
+
autopilot-preflight.md # 开工许可
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
`decision.md` 可用于 Spec-Full 或协作型决策记录,但不是 Spec-Lite Autopilot 的必备文件;模式确认必须至少记录在 `meta.yaml.execution_mode` 和 `execution-log.md` 中。
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## 10. 参考
|
|
251
|
+
|
|
252
|
+
- Task Platform: `docs/continuous-programming-protocol.md`
|
|
253
|
+
- Task Platform: `docs/goal-specification-standard.md`
|
|
254
|
+
- AODW: `spec-lite-autopilot-profile.md`、`autopilot-goal-spec.md`
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# RT Autopilot 开工前准备(必读)
|
|
2
|
+
|
|
3
|
+
> `execution_mode: autopilot` 时,实现循环前必须完成。
|
|
4
|
+
> 总协议:`02-workflow/autopilot-protocol.md` | Goal 标准:`02-workflow/autopilot-goal-spec.md`
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## A. 项目级(一次性)
|
|
9
|
+
|
|
10
|
+
- [ ] `aodw-skill init` 且 `06-project/` 已深度初始化
|
|
11
|
+
- [ ] §5.4 tests / lint / guard 命令本地可执行
|
|
12
|
+
- [ ] pre-commit guard 已启用
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## B. RT 级(每个 RT)
|
|
17
|
+
|
|
18
|
+
- [ ] 用户创建 RT 时已确认 **Autopilot**(至少记录在 `meta.yaml.execution_mode` 与 `execution-log.md`;如有 `decision.md` 也应同步)
|
|
19
|
+
- [ ] `rt-lite.md` §1-§4、§1.3.1、§7、§5.4 已填写
|
|
20
|
+
- [ ] Goal 质量自检 7/7(见 `autopilot-goal-spec.md` §5)
|
|
21
|
+
- [ ] Autopilot 适配度 ≥ 4/6(见 §6);不足则已改协作或用户知情
|
|
22
|
+
- [ ] §7 用户已确认「完成标准摘要」
|
|
23
|
+
- [ ] `state.json.checklist` 与 §7 对齐
|
|
24
|
+
- [ ] `rt-plan.md` 已创建并拆解步骤
|
|
25
|
+
- [ ] `loop-prompt.md` 已创建
|
|
26
|
+
- [ ] `execution-log.md` 已创建
|
|
27
|
+
- [ ] `autopilot-preflight.md` 已创建并正在勾选
|
|
28
|
+
- [ ] `feature/RT-XXX-*` 分支
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## C. 禁止开工
|
|
33
|
+
|
|
34
|
+
- 完成条件含模糊词或不可机械验证
|
|
35
|
+
- 「不改什么」少于 3 项
|
|
36
|
+
- 跨模块高风险未升级 Spec-Full
|
|
37
|
+
- main/master 上改业务代码
|
|
38
|
+
- Goal 自检未通过
|
|
39
|
+
- Spec-Lite Autopilot 7 件套不齐
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## D. 每轮固定动作
|
|
44
|
+
|
|
45
|
+
1. 读 `state.json` + `rt-plan.md` + `loop-prompt.md`
|
|
46
|
+
2. 完成 1–2 个 plan 步骤
|
|
47
|
+
3. tests → lint → guard(Backpressure)
|
|
48
|
+
4. 更新 `state.json`、`rt-plan.md`、`execution-log.md`
|
|
49
|
+
5. 反模式自检(见 `autopilot-protocol.md` §3.3)
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## E. 关联规则
|
|
54
|
+
|
|
55
|
+
| 文档 | 用途 |
|
|
56
|
+
|------|------|
|
|
57
|
+
| `autopilot-protocol.md` | 总协议、熔断、子模式 |
|
|
58
|
+
| `autopilot-goal-spec.md` | 三要素、适配度 |
|
|
59
|
+
| `spec-lite-autopilot-profile.md` | Gate 速查 |
|
|
@@ -24,7 +24,11 @@ AI 在执行任何文件修改操作前,必须先执行以下检查序列:
|
|
|
24
24
|
|
|
25
25
|
### Step 1: 验证 RT 是否已创建
|
|
26
26
|
- 检查 `RT/RT-XXX/` 目录是否存在
|
|
27
|
-
- 检查 `meta.yaml`
|
|
27
|
+
- 检查 `meta.yaml` 是否已创建
|
|
28
|
+
- 按 `meta.yaml.profile` + `meta.yaml.execution_mode` 检查对应必备文件:
|
|
29
|
+
- Spec-Full:`intake.md`、`decision.md`、`spec.md`、`plan.md`、`impact.md`、`invariants.md`、`tests.md`、`task.md`、`changelog.md`
|
|
30
|
+
- Spec-Lite collaborative:`rt-lite.md`
|
|
31
|
+
- Spec-Lite autopilot:`rt-lite.md`、`rt-plan.md`、`state.json`、`loop-prompt.md`、`execution-log.md`、`autopilot-preflight.md`
|
|
28
32
|
|
|
29
33
|
### Step 2: 验证 feature 分支是否已创建并切换
|
|
30
34
|
执行 `git branch --show-current`,检查结果:
|
|
@@ -56,12 +60,41 @@ RT-Manager 统一管理全局状态机更新。
|
|
|
56
60
|
- 改进
|
|
57
61
|
- 重构
|
|
58
62
|
|
|
59
|
-
### 3.2
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
### 3.2 执行模式确认(强制,最先执行)
|
|
64
|
+
|
|
65
|
+
**在生成 RT-ID、创建目录或写入任何 RT 文件之前**,AI 必须与用户确认执行模式,并获得**明确答复**。
|
|
66
|
+
|
|
67
|
+
| 模式 | `execution_mode` | 含义 |
|
|
68
|
+
|------|------------------|------|
|
|
69
|
+
| 人工干预(协作) | `collaborative` | Gate 3/4/5 需用户确认后再推进 |
|
|
70
|
+
| 全自动(Autopilot) | `autopilot` | 机械 Gate + `state.json` 循环;仅熔断时打断用户 |
|
|
71
|
+
|
|
72
|
+
**提问格式**(决策型,见 `01-core/ai-interaction-rules.md`):
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Q. 本 RT 采用哪种执行模式?
|
|
76
|
+
|
|
77
|
+
A. 人工干预模式(协作)— Gate 3/4/5 需我确认
|
|
78
|
+
B. 全自动模式(Autopilot)— 机械验收 + 循环推进
|
|
79
|
+
|
|
80
|
+
Recommended: A(首次使用 AODW 或需求/风险尚不清晰时)
|
|
81
|
+
|
|
82
|
+
请回复:A/B
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**强制规则**:
|
|
86
|
+
- 🚫 用户未明确选择 A 或 B(或等价 custom)前,**禁止**创建 `RT/RT-XXX/`、禁止写 `meta.yaml`、禁止进入 intake/decision/实现
|
|
87
|
+
- 🚫 **禁止** AI 自行默认 `collaborative` 或 `autopilot` 并继续
|
|
88
|
+
- ✅ 用户确认后,立即写入 `meta.yaml.execution_mode` 与 `decision.md` 的「Execution Mode」节,并记录确认时间
|
|
89
|
+
- ✅ CLI:`aodw-skill new` 会在创建前交互选择;非交互须显式 `--execution-mode`
|
|
90
|
+
|
|
91
|
+
### 3.3 执行步骤
|
|
92
|
+
1. **确认执行模式**(§ 3.2,未完成则停止)
|
|
93
|
+
2. 生成 RT-ID(固定本地生成)
|
|
94
|
+
3. 创建 RT 目录结构(`execution_mode` 已写入 `meta.yaml`,并按 §5 一次性生成必备文件)
|
|
95
|
+
4. 执行交互式澄清(选项化提问)
|
|
96
|
+
5. 记录立项信息到 `intake.md`
|
|
97
|
+
6. 决定使用 Spec-Full 还是 Spec-Lite profile
|
|
65
98
|
|
|
66
99
|
---
|
|
67
100
|
|
|
@@ -83,6 +116,8 @@ RT-Manager 统一管理全局状态机更新。
|
|
|
83
116
|
|
|
84
117
|
## 5. 目录结构
|
|
85
118
|
|
|
119
|
+
### 5.1 Spec-Full
|
|
120
|
+
|
|
86
121
|
```
|
|
87
122
|
RT/RT-XXX/
|
|
88
123
|
meta.yaml ← RT 元数据
|
|
@@ -91,15 +126,35 @@ RT/RT-XXX/
|
|
|
91
126
|
spec.md ← Spec-Full 完整需求
|
|
92
127
|
plan.md ← Spec-Full 技术方案
|
|
93
128
|
impact.md ← 影响分析
|
|
94
|
-
invariants.md
|
|
129
|
+
invariants.md ← 不可破坏边界
|
|
95
130
|
tests.md ← 验证计划
|
|
96
|
-
task.md
|
|
97
|
-
changelog.md
|
|
98
|
-
|
|
99
|
-
|
|
131
|
+
task.md ← AI 任务追踪
|
|
132
|
+
changelog.md ← 变更记录
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### 5.2 Spec-Lite collaborative
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
RT/RT-XXX/
|
|
139
|
+
meta.yaml ← RT 元数据
|
|
100
140
|
rt-lite.md ← 单文件整合所有内容
|
|
101
141
|
```
|
|
102
142
|
|
|
143
|
+
### 5.3 Spec-Lite autopilot(强制 7 件套)
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
RT/RT-XXX/
|
|
147
|
+
meta.yaml ← RT 元数据(execution_mode: autopilot)
|
|
148
|
+
rt-lite.md ← Goal(静态):§1-§7
|
|
149
|
+
rt-plan.md ← Plan(动态):每轮更新
|
|
150
|
+
state.json ← 机器状态:checklist、phase、熔断信号
|
|
151
|
+
loop-prompt.md ← 每轮 Ralph 执行指令
|
|
152
|
+
execution-log.md ← 人读时间线
|
|
153
|
+
autopilot-preflight.md ← 开工许可清单
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**注意**:Spec-Lite 的“单文档模式”只合并需求/方案/影响/边界/验证/变更记录,不取消 Autopilot 的状态、计划、日志和开工许可文件。
|
|
157
|
+
|
|
103
158
|
---
|
|
104
159
|
|
|
105
160
|
## 6. 分支命名与隔离策略
|
|
@@ -116,7 +171,36 @@ RT/RT-XXX/
|
|
|
116
171
|
AI 根据决策结果,加载对应的 Profile:
|
|
117
172
|
|
|
118
173
|
- Spec-Full → 加载 `02-workflow/spec-full-profile.md`
|
|
119
|
-
- Spec-Lite → 加载 `02-workflow/spec-lite-profile.md`
|
|
174
|
+
- Spec-Lite + `execution_mode=collaborative` → 加载 `02-workflow/spec-lite-profile.md`
|
|
175
|
+
- Spec-Lite + `execution_mode=autopilot` → 加载 `02-workflow/spec-lite-autopilot-profile.md` + `02-workflow/autopilot-protocol.md` + `02-workflow/rt-autopilot-readiness.md`
|
|
176
|
+
|
|
177
|
+
### 7.1 Autopilot RT 附加文件(Spec-Lite)
|
|
178
|
+
|
|
179
|
+
当 `meta.yaml.execution_mode: autopilot` 时,以下文件**必须在开工前存在**:
|
|
180
|
+
|
|
181
|
+
| 文档 | 角色 |
|
|
182
|
+
|------|------|
|
|
183
|
+
| `rt-lite.md` | Goal(静态):§7 完成条件,三要素写法见 `autopilot-goal-spec.md` |
|
|
184
|
+
| `rt-plan.md` | Plan(动态):每轮更新的步骤清单 |
|
|
185
|
+
| `state.json` | 机器状态:checklist、phase、熔断信号 |
|
|
186
|
+
| `loop-prompt.md` | 每轮 Ralph 执行指令 |
|
|
187
|
+
| `execution-log.md` | 人读时间线(防黑盒) |
|
|
188
|
+
| `autopilot-preflight.md` | 开工许可 |
|
|
189
|
+
|
|
190
|
+
**总协议**:`02-workflow/autopilot-protocol.md`(Ralph 循环、机械 Gate、反模式、子模式、进度友好)。
|
|
191
|
+
|
|
192
|
+
Autopilot 流程摘要:
|
|
193
|
+
1. 用户确认模式(§3.2)→ 2. Goal 定稿 + 自检 → 3. Preflight → 4. Gate-Plan → 5. Ralph 循环 → 6. Gate-Commit/Done
|
|
194
|
+
熔断时交还人工;不得跳过 Goal 自检进入循环。
|
|
195
|
+
|
|
196
|
+
### 7.2 关闭一致性检查
|
|
197
|
+
|
|
198
|
+
关闭任一 RT 前,AI 必须检查:
|
|
199
|
+
|
|
200
|
+
- `meta.yaml.status`、`state.json.phase`、`rt-lite.md` 元数据行的 `status` 三者一致。
|
|
201
|
+
- Spec-Lite autopilot RT 必须具备 §5.3 的 7 件套。
|
|
202
|
+
- `rt-plan.md` 无未完成步骤,或未完成项已明确转入后续 RT。
|
|
203
|
+
- `execution-log.md` 记录最新验证命令和关闭结论。
|
|
120
204
|
|
|
121
205
|
---
|
|
122
206
|
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: aodw-spec-lite-autopilot
|
|
3
|
+
version: 2.0.0
|
|
4
|
+
category: aodw/execution-profile
|
|
5
|
+
trigger: "当 meta.yaml 中 execution_mode=autopilot 时加载"
|
|
6
|
+
description: >
|
|
7
|
+
Spec-Lite 全自动变体:机械 Gate + Ralph 循环 + Goal Spec。完整协议见 autopilot-protocol.md。
|
|
8
|
+
requires_files:
|
|
9
|
+
- RT/RT-XXX/meta.yaml
|
|
10
|
+
- RT/RT-XXX/rt-lite.md
|
|
11
|
+
- RT/RT-XXX/rt-plan.md
|
|
12
|
+
- RT/RT-XXX/state.json
|
|
13
|
+
- RT/RT-XXX/loop-prompt.md
|
|
14
|
+
- RT/RT-XXX/execution-log.md
|
|
15
|
+
- RT/RT-XXX/autopilot-preflight.md
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Skill: aodw-spec-lite-autopilot
|
|
19
|
+
AODW Spec-Lite Autopilot 执行规范 v2.0
|
|
20
|
+
|
|
21
|
+
> **总协议**:`02-workflow/autopilot-protocol.md`
|
|
22
|
+
> **Goal 标准**:`02-workflow/autopilot-goal-spec.md`
|
|
23
|
+
> **开工清单**:`02-workflow/rt-autopilot-readiness.md`
|
|
24
|
+
|
|
25
|
+
将协作模式的 Gate 3/4/5 替换为机械 Gate;用 `state.json` + `rt-plan.md` 驱动 Ralph 循环直至 DONE。
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 1. 前置条件
|
|
30
|
+
|
|
31
|
+
1. 用户创建 RT 时已**明确确认** `execution_mode: autopilot`(见 `rt-manager.md` §3.2)
|
|
32
|
+
2. 通过 `autopilot-goal-spec.md` Goal 质量自检与适配度研判(≥4/6 或用户知情坚持)
|
|
33
|
+
3. 完成 Preflight(`autopilot-preflight.md`)
|
|
34
|
+
|
|
35
|
+
不满足 → 回退 `spec-lite-profile.md`(`collaborative`)。
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 2. RT 必备文件
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
RT/RT-XXX/
|
|
43
|
+
meta.yaml
|
|
44
|
+
rt-lite.md # Goal(静态)
|
|
45
|
+
rt-plan.md # Plan(每轮更新)
|
|
46
|
+
state.json
|
|
47
|
+
loop-prompt.md
|
|
48
|
+
execution-log.md
|
|
49
|
+
autopilot-preflight.md
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
以上是 **Spec-Lite Autopilot 7 件套**。`rt-lite.md` 的“单文档模式”只表示将 spec/plan/impact/invariants/tests/changelog 合并到一个 Goal 文档中,**不代表可以省略** `rt-plan.md`、`state.json`、`loop-prompt.md`、`execution-log.md`、`autopilot-preflight.md`。
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 3. 执行流程(摘要)
|
|
57
|
+
|
|
58
|
+
| 阶段 | 动作 | Gate |
|
|
59
|
+
|------|------|------|
|
|
60
|
+
| 0 | `feature/RT-XXX` 分支 | 强制 |
|
|
61
|
+
| B | 定稿 rt-lite §1-§7;用户确认完成标准摘要;生成 7 件套 | Goal 自检 |
|
|
62
|
+
| C | `autopilot-preflight.md` 全勾 | 人工清单 |
|
|
63
|
+
| D | `plan_complete=true` | 机械 Gate-Plan |
|
|
64
|
+
| E | Ralph 循环(读 state → 做 1-2 项 → tests/lint/guard → 写 state/plan/log) | 每轮 Quality Gate |
|
|
65
|
+
| F | commit | 机械 Gate-Commit |
|
|
66
|
+
| G | `status=done` | 机械 Gate-Done |
|
|
67
|
+
|
|
68
|
+
细节、反模式、子模式、熔断:**见 `autopilot-protocol.md`**。
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 4. 机械 Gate 条件(速查)
|
|
73
|
+
|
|
74
|
+
**Gate-Plan**:§1-§4、§7、§5.4 就绪;Goal 自检通过;`plan_complete=true`。
|
|
75
|
+
|
|
76
|
+
**Gate-Commit**:`tests_pass` && `lint_pass` && `guard_pass`。
|
|
77
|
+
|
|
78
|
+
**Gate-Done**:§7 全部验证;checklist 全 true;auditor 无 P0;`phase=done`;`meta.yaml.status=done`;`rt-lite.md` 元数据行 `status=done`;7 件套齐全。
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 5. 熔断(交还人工)
|
|
83
|
+
|
|
84
|
+
- 同一文件修改 > 3 次
|
|
85
|
+
- checklist 连续 2 轮无进展 → `phase=blocked`
|
|
86
|
+
- 达到 `max_iterations`(默认 20)
|
|
87
|
+
- 出现 schema/API/多模块架构决策
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 6. Red Lines
|
|
92
|
+
|
|
93
|
+
- 🚫 未确认 execution_mode 即创建 RT
|
|
94
|
+
- 🚫 跳过 Goal 自检进入循环
|
|
95
|
+
- 🚫 用主观判断替代 §7 机械验收
|
|
96
|
+
- 🚫 无 `state.json` / `execution-log` 更新进入下一轮
|
|
97
|
+
- 🚫 缺 `loop-prompt.md` / `autopilot-preflight.md` 仍宣称 Autopilot RT 已就绪或已关闭
|
|
98
|
+
- 🚫 在 Autopilot 中等待人工 Gate 3/4/5(除非熔断)
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 7. 参考
|
|
103
|
+
|
|
104
|
+
- `autopilot-protocol.md` — 总协议
|
|
105
|
+
- `autopilot-goal-spec.md` — 三要素与适配度
|
|
106
|
+
- `spec-lite-profile.md` — 协作模式对照
|
|
@@ -205,8 +205,25 @@ git branch --show-current
|
|
|
205
205
|
### 6.2 用户可感知变化
|
|
206
206
|
|
|
207
207
|
### 6.3 内部重要变化
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## § 7. 完成条件清单 (Done Checklist)
|
|
212
|
+
|
|
213
|
+
> Autopilot 模式必填;协作模式建议填写,便于验收。
|
|
214
|
+
|
|
215
|
+
| ID | 条件 | 验证方式 | state.json 字段 |
|
|
216
|
+
|----|------|----------|-----------------|
|
|
217
|
+
| C1 | 计划完整 | §1-§4 非空 | `plan_complete` |
|
|
218
|
+
| C2 | 测试通过 | §5.4 tests 命令 exit 0 | `tests_pass` |
|
|
219
|
+
| C3 | lint 通过 | §5.4 lint 命令 exit 0 | `lint_pass` |
|
|
220
|
+
| C4 | 流程痕迹完整 | `aodw-skill guard` 通过 | `guard_pass` |
|
|
221
|
+
| C5 | 文档同步 | §5-§6 已更新 | `docs_synced` |
|
|
222
|
+
| C6 | 审计通过 | development auditor 无 P0 | `auditor_pass` |
|
|
208
223
|
```
|
|
209
224
|
|
|
225
|
+
> 完整模板见:`.aodw-next/templates/rt-lite.template.md`
|
|
226
|
+
|
|
210
227
|
---
|
|
211
228
|
|
|
212
229
|
## 4. 禁止行为(Red Lines)
|
|
@@ -218,9 +235,25 @@ git branch --show-current
|
|
|
218
235
|
- 🚫 **Never Add Unplanned Scope**:禁止引入 § 2 范围外的任何修改
|
|
219
236
|
- 🚫 **Never Create 6 Files**:禁止退化回旧版 6 文档模式
|
|
220
237
|
|
|
238
|
+
**边界说明**:上述“Never Create 6 Files”只禁止把 Spec-Lite 拆回旧版 `spec-lite.md / plan-lite.md / impact.md / invariants.md / tests.md / changelog.md` 六文档。若 `execution_mode=autopilot`,仍必须创建 `rt-plan.md`、`state.json`、`loop-prompt.md`、`execution-log.md`、`autopilot-preflight.md` 等 Autopilot 运行痕迹文件。
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## 5. 执行模式选择
|
|
243
|
+
|
|
244
|
+
| 模式 | 适用 | 规则文件 |
|
|
245
|
+
|------|------|----------|
|
|
246
|
+
| **协作模式** | 需要人工 Gate 3/4/5 | 本文件 |
|
|
247
|
+
| **Autopilot** | 可机械验收、低风险、希望 AI 循环推进至 DONE | `spec-lite-autopilot-profile.md` |
|
|
248
|
+
|
|
249
|
+
**创建 RT 时必选**(见 `rt-manager.md` § 3.2):AI 须先获用户明确选择,再写入 `meta.yaml.execution_mode`;未经确认不得继续。
|
|
250
|
+
|
|
251
|
+
- 协作:`execution_mode: collaborative`(`aodw-skill new` 或 AI 代建时由用户选 A)
|
|
252
|
+
- Autopilot:`execution_mode: autopilot`;按 `autopilot-protocol.md` 初始化 `rt-plan.md`、`state.json` 等;开工前完成 `autopilot-goal-spec.md` 自检
|
|
253
|
+
|
|
221
254
|
---
|
|
222
255
|
|
|
223
|
-
##
|
|
256
|
+
## 6. Skill 升级路径
|
|
224
257
|
|
|
225
258
|
- **如遇以下情况,立即建议升级至 `aodw-spec-full`**:
|
|
226
259
|
- 影响数据模型或对外 API
|
package/.aodw-next/SKILL.md
CHANGED
|
@@ -17,6 +17,7 @@ description: AODW (AI-Orchestrated Development Workflow) — 完整的 AI 协作
|
|
|
17
17
|
|------|---------|
|
|
18
18
|
| 立项 / 创建 RT | `rt-manager.md` + `ai-interaction-rules.md` |
|
|
19
19
|
| Spec-Lite 执行 | `spec-lite-profile.md` + `git-discipline.md` |
|
|
20
|
+
| Spec-Lite Autopilot 执行 | `spec-lite-autopilot-profile.md` + `autopilot-protocol.md` + `rt-autopilot-readiness.md` + `git-discipline.md` |
|
|
20
21
|
| Spec-Full 执行 | `spec-full-profile.md` + `ai-coding-rules.md`(按技术栈) |
|
|
21
22
|
| Git 操作 / 合并 | `git-discipline.md`(完整版) |
|
|
22
23
|
| 审计 | `04-auditors/aodw-requirement-auditor-rules.md` |
|
|
@@ -28,6 +29,7 @@ description: AODW (AI-Orchestrated Development Workflow) — 完整的 AI 协作
|
|
|
28
29
|
- **一个 RT = 一个 Worktree = 一个 Feature 分支**(`feature/RT-XXX-name`)
|
|
29
30
|
- **Spec-Full**:跨模块/数据模型/API 变更/高风险 → 完整 spec+plan+审计
|
|
30
31
|
- **Spec-Lite**:单模块/bug 修复/低风险 → 单文件 `rt-lite.md`
|
|
32
|
+
- **Spec-Lite Autopilot**:在 `rt-lite.md` 外还必须有 `rt-plan.md`、`state.json`、`loop-prompt.md`、`execution-log.md`、`autopilot-preflight.md`
|
|
31
33
|
- **确认门控**:commit/merge/push/worktree 操作前必须向用户确认
|
|
32
34
|
- **规则索引**:详见 `manifest.yaml`
|
|
33
35
|
- **新项目安装**:详见 `README.md`
|
package/.aodw-next/manifest.yaml
CHANGED
|
@@ -39,6 +39,34 @@ rules:
|
|
|
39
39
|
description: Lightweight workflow for low-risk changes.
|
|
40
40
|
path: 02-workflow/spec-lite-profile.md
|
|
41
41
|
|
|
42
|
+
- id: autopilot-protocol
|
|
43
|
+
name: Autopilot Protocol
|
|
44
|
+
description: Full autonomous RT protocol (Ralph loop, gates, observability, circuit breakers).
|
|
45
|
+
path: 02-workflow/autopilot-protocol.md
|
|
46
|
+
load_when: [autopilot, execution_mode]
|
|
47
|
+
priority: high
|
|
48
|
+
|
|
49
|
+
- id: autopilot-goal-spec
|
|
50
|
+
name: Autopilot Goal Spec
|
|
51
|
+
description: Done criteria standard (Scope + Evidence + Test) and suitability triage.
|
|
52
|
+
path: 02-workflow/autopilot-goal-spec.md
|
|
53
|
+
load_when: [autopilot, goal, checklist]
|
|
54
|
+
priority: high
|
|
55
|
+
|
|
56
|
+
- id: spec-lite-autopilot-profile
|
|
57
|
+
name: Spec-Lite Autopilot Profile
|
|
58
|
+
description: Autonomous Spec-Lite workflow with mechanical gates and state.json loop.
|
|
59
|
+
path: 02-workflow/spec-lite-autopilot-profile.md
|
|
60
|
+
load_when: [autopilot, execution_mode]
|
|
61
|
+
priority: high
|
|
62
|
+
|
|
63
|
+
- id: rt-autopilot-readiness
|
|
64
|
+
name: RT Autopilot Readiness
|
|
65
|
+
description: Pre-flight checklist before starting autonomous RT execution.
|
|
66
|
+
path: 02-workflow/rt-autopilot-readiness.md
|
|
67
|
+
load_when: [autopilot, preflight]
|
|
68
|
+
priority: high
|
|
69
|
+
|
|
42
70
|
- id: ui-workflow-rules
|
|
43
71
|
name: UI Workflow Rules
|
|
44
72
|
description: UI-specific process requirements and gates.
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
|---------|---------|------|
|
|
29
29
|
| **创建新 RT** | {{REF_PREFIX}}.aodw-next/02-workflow/rt-manager.md (Sec 1-4, 8-9)<br/>{{REF_PREFIX}}.aodw-next/01-core/ai-knowledge-rules.md (Sec 3.1)<br/>{{REF_PREFIX}}.aodw-next/01-core/ai-interaction-rules.md (Sec 1-4) | 生成 RT-ID,创建目录,Intake 流程 |
|
|
30
30
|
| **选择模式** | {{REF_PREFIX}}.aodw-next/02-workflow/rt-manager.md (Sec 5)<br/>{{REF_PREFIX}}.aodw-next/02-workflow/spec-full-profile.md<br/>{{REF_PREFIX}}.aodw-next/02-workflow/spec-lite-profile.md | 决策 Spec-Full/Spec-Lite,创建分支 |
|
|
31
|
+
| **Spec-Lite Autopilot** | {{REF_PREFIX}}.aodw-next/02-workflow/spec-lite-autopilot-profile.md<br/>{{REF_PREFIX}}.aodw-next/02-workflow/autopilot-protocol.md<br/>{{REF_PREFIX}}.aodw-next/02-workflow/rt-autopilot-readiness.md<br/>{{REF_PREFIX}}.aodw-next/01-core/git-discipline.md | 全自动:机械 Gate + Ralph 循环;强制 7 件套(含 autopilot-preflight.md) |
|
|
31
32
|
| **工具初始化** | {{REF_PREFIX}}.aodw-next/05-tooling/ai-tools-init-rules.md | 初始化开发工具(ESLint、Prettier、Ruff、Black 等) |
|
|
32
33
|
| **项目概览初始化** | {{REF_PREFIX}}.aodw-next/01-core/ai-project-overview-rules.md | 初始化或完善项目概览信息(技术栈、架构、模块等) |
|
|
33
34
|
| **分析阶段** | {{REF_PREFIX}}.aodw-next/03-standards/ai-coding-rules.md (Sec 2-3)<br/>{{REF_PREFIX}}.aodw-next/01-core/ai-knowledge-rules.md (Sec 3.4) | 影响分析、不变量检查,更新 impact.md, invariants.md |
|