aodw-skill 0.9.0 → 0.10.0
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/02-workflow/autopilot-goal-spec.md +122 -23
- package/.aodw-next/02-workflow/autopilot-protocol.md +31 -13
- package/.aodw-next/02-workflow/rt-autopilot-readiness.md +13 -10
- package/.aodw-next/02-workflow/rt-manager.md +6 -6
- package/.aodw-next/02-workflow/spec-lite-autopilot-profile.md +6 -3
- package/.aodw-next/README.md +1 -1
- package/.aodw-next/SKILL.md +1 -1
- package/.aodw-next/manifest.yaml +1 -1
- package/.aodw-next/skills/handover-pack/scripts/_common.sh +1 -1
- package/.aodw-next/skills/handover-pack/scripts/next-number.sh +2 -2
- package/.aodw-next/templates/aodw-kernel-loader-template.md +1 -0
- package/.aodw-next/templates/rt-autopilot-preflight.template.md +5 -4
- package/.aodw-next/templates/rt-lite.template.md +35 -0
- package/.aodw-next/templates/rt-loop-prompt.template.md +33 -14
- package/.aodw-next/templates/rt-plan.template.md +22 -12
- package/.aodw-next/templates/rt-state.template.json +1 -0
- package/.aodw-next/tools/install-skills.sh +2 -2
- package/.aodw-next/tools/rt-grv-continue.sh +183 -0
- package/.aodw-next/tools/rt-guard.sh +3 -3
- 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-autopilot-continue.mdc +42 -0
- package/AODW_Adapters/cursor/.cursor/rules/aodw-next.mdc +1 -0
- package/AODW_Adapters/openclaw/AGENTS.md +1 -0
- package/AODW_Adapters/openclaw/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: aodw-autopilot-goal-spec
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.1.0
|
|
4
4
|
category: aodw/execution-profile
|
|
5
|
-
trigger: "Autopilot 开工前编写或审查 rt-lite.md §7 时加载"
|
|
5
|
+
trigger: "Autopilot 开工前编写或审查 rt-lite.md §1.5 GRV / §7 时加载"
|
|
6
6
|
description: >
|
|
7
|
-
|
|
7
|
+
完成条件书写标准:GRV 契约 + Scope/Evidence/Test。决定 Autopilot 能否聚焦收敛,比循环机制更重要。
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Autopilot Goal Spec(完成条件标准)
|
|
@@ -19,14 +19,15 @@ description: >
|
|
|
19
19
|
|
|
20
20
|
| 层级 | 文件 | 角色 | 谁维护 |
|
|
21
21
|
|------|------|------|--------|
|
|
22
|
-
| **
|
|
23
|
-
| **Plan(动态)** | `rt-plan.md` + `state.json` |
|
|
22
|
+
| **GRV 契约(静态)** | `rt-lite.md` §1.5 + §1-§4、§7 | G/R/V:目标、可验成果、举措闭集 | 人 + AI 开工前共同定稿 |
|
|
23
|
+
| **Plan(动态)** | `rt-plan.md` + `state.json` | V 队列勾选、「做到哪了」、阻塞、决策 | AI 每轮迭代更新 |
|
|
24
24
|
|
|
25
25
|
```
|
|
26
|
-
rt-lite.md
|
|
27
|
-
rt-
|
|
26
|
+
rt-lite.md §1.5 GRV → G/R/V 契约(不变;扩 scope 须重确认)
|
|
27
|
+
rt-lite.md §7 → R 的机械验收表
|
|
28
|
+
rt-plan.md → V 队列(每轮勾选)
|
|
28
29
|
state.json → 机器可读的 checklist + 信号
|
|
29
|
-
loop-prompt.md →
|
|
30
|
+
loop-prompt.md → 每轮注入:当前 G + 本轮 V + 对应 R
|
|
30
31
|
execution-log.md → 人可读的迭代时间线(防黑盒)
|
|
31
32
|
```
|
|
32
33
|
|
|
@@ -81,11 +82,11 @@ execution-log.md → 人可读的迭代时间线(防黑盒)
|
|
|
81
82
|
|
|
82
83
|
## 4. 长度与可读性
|
|
83
84
|
|
|
84
|
-
- **Goal 核心块**(§1.
|
|
85
|
-
- 完整 `rt-lite.md` 可含 §3–§6,但注入 `loop-prompt.md` 时优先摘录
|
|
86
|
-
- §7
|
|
87
|
-
-
|
|
88
|
-
|
|
85
|
+
- **Goal 核心块**(§1.5 G/R/V + §1.3.1 不改什么 + §7)建议 **≤ 60 行**(对齐 HumanLayer / Task Platform PROMPT.md 上限;过长会被模型忽略)
|
|
86
|
+
- 完整 `rt-lite.md` 可含 §3–§6,但注入 `loop-prompt.md` 时优先摘录 **G + 本轮 V + 对应 R + §7 相关行**
|
|
87
|
+
- §7 / R **3–8 条**为宜;过多拆成多个 RT
|
|
88
|
+
- V **建议 ≤ 8 条**;过多先拆 RT 或砍 Should
|
|
89
|
+
- 禁止主观词:适当、合理、较好、差不多、高质量
|
|
89
90
|
## 4.1 机械 Stop(AODW 映射 Task Platform Stop Hook)
|
|
90
91
|
|
|
91
92
|
Task Platform 用 Claude **Stop Hook**(shell exit 0/2)判定能否结束。AODW 等价链路:
|
|
@@ -100,19 +101,22 @@ Task Platform 用 Claude **Stop Hook**(shell exit 0/2)判定能否结束。A
|
|
|
100
101
|
|
|
101
102
|
---
|
|
102
103
|
|
|
103
|
-
## 5. Goal 质量自检(AI 在开工前必须跑)
|
|
104
|
+
## 5. Goal / GRV 质量自检(AI 在开工前必须跑)
|
|
104
105
|
|
|
105
106
|
| # | 检查项 | 不通过则 |
|
|
106
107
|
|---|--------|----------|
|
|
107
|
-
| 1 |
|
|
108
|
-
| 2 | §
|
|
109
|
-
| 3 |
|
|
110
|
-
| 4 | §
|
|
111
|
-
| 5 |
|
|
112
|
-
| 6 |
|
|
113
|
-
| 7 |
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
| 1 | §1.5 G 一句话说清真正问题 | 与用户澄清后再写 R/V |
|
|
109
|
+
| 2 | §1.5 R ≥1 且每条可机械验证(有命令/文件/字段 Baseline) | 按 GRV 好坏对比改写 |
|
|
110
|
+
| 3 | §1.5 V ≥1,每条对应唯一 R,像「一件真实工作」 | 拆开口号式举措 |
|
|
111
|
+
| 4 | §2.1 改动文件 checklist | 补全路径 |
|
|
112
|
+
| 5 | 「不改什么」≥ 3 项 | 补边界 |
|
|
113
|
+
| 6 | §7 每条可机械验证,且覆盖全部 R | 改写为 Scope+Evidence+Test |
|
|
114
|
+
| 7 | §5.4 tests/lint/guard 可运行 | 填真实命令 |
|
|
115
|
+
| 8 | 无模糊词(适当/合理/差不多/高质量) | 重写 |
|
|
116
|
+
| 9 | Autopilot 适配度(见下) | 建议改协作模式或升级 Spec-Full |
|
|
117
|
+
| 10 | 用户已确认 §1.5 GRV + §7 摘要 | 停在定稿,禁止开循环 |
|
|
118
|
+
|
|
119
|
+
**任一项不通过 → 禁止进入 Ralph 循环**,只能做 GRV / Goal 修订或与用户确认。
|
|
116
120
|
|
|
117
121
|
---
|
|
118
122
|
|
|
@@ -165,3 +169,98 @@ AI 在确认 `execution_mode: autopilot` 后、写 §7 前,用以下清单评
|
|
|
165
169
|
- `02-workflow/autopilot-protocol.md` — 完整执行协议
|
|
166
170
|
- `02-workflow/spec-lite-autopilot-profile.md` — Gate 与循环
|
|
167
171
|
- Task Platform: `docs/goal-specification-standard.md`
|
|
172
|
+
- TPR Framework GRV:Goal / Result / Variables(可验成果 + 举措闭集)
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 9. GRV 执行契约(防停顿 / 防发散)
|
|
177
|
+
|
|
178
|
+
> 借鉴 [tpr-framework GRV](https://github.com/evan-zhang/tpr-framework):G=方向,R=可量化验收成果,V=真实可做举措。
|
|
179
|
+
|
|
180
|
+
### 9.1 映射
|
|
181
|
+
|
|
182
|
+
| GRV | 写入位置 | 作用 |
|
|
183
|
+
|-----|----------|------|
|
|
184
|
+
| **G Goal** | §1.5 G + §1.2 | 方向锚点;loop-prompt 每轮注入 |
|
|
185
|
+
| **R Result** | §1.5 R 表 + §7 | 机械 Done;禁止主观「做完了」 |
|
|
186
|
+
| **V Variables** | §1.5 V 表 + `rt-plan.md` | **唯一允许的工作队列** |
|
|
187
|
+
|
|
188
|
+
### 9.2 写作红线(摘自 GRV 标准)
|
|
189
|
+
|
|
190
|
+
| | ❌ 坏 | ✅ 好 |
|
|
191
|
+
|---|------|------|
|
|
192
|
+
| G | 建设一套 XX 系统 | 让用户在场景 Y 下无需 Z 即可完成 W |
|
|
193
|
+
| R | 完成调研 / 提交高质量报告 | 产出指定路径文件,含强制字段/图表/命令 exit 0 |
|
|
194
|
+
| V | 优化流程 | 在 `path` 实现行为 X,对应 R1 验收命令通过 |
|
|
195
|
+
|
|
196
|
+
### 9.3 执行纪律(写入 loop-prompt,强制)
|
|
197
|
+
|
|
198
|
+
1. **V 闭集**:未在 §1.5 V 表出现的工作,本 RT 默认禁止(记 DI/blockers)。
|
|
199
|
+
2. **一轮一 V**:每轮只推进 1 个未完成 V(最多 2 个),立即跑对应 R 验收。
|
|
200
|
+
3. **未完成禁止停问**:仍有未完成 V/R 时,只能 `CONTINUE` + 下一 V-ID,禁止问用户「要不要继续」。
|
|
201
|
+
4. **外层续跑脚本**:每轮结束调用 `bash .aodw-next/tools/rt-grv-continue.sh --rt <RT-ID> --signal CONTINUE|DONE|blocked`;`0` 则立即下一 V,禁止空等。
|
|
202
|
+
5. **人只在两端**:GRV 定稿确认一次;中间仅 `blocked` / 达 Fuse / 需改契约时找人。
|
|
203
|
+
6. **改契约 = 停循环**:要增删 V 或改 R,必须先改 §1.5 并再获用户确认,然后才能继续。
|
|
204
|
+
|
|
205
|
+
### 9.4 与「停下来 / 越做越复杂」的对应
|
|
206
|
+
|
|
207
|
+
| 痛点 | GRV 对策 |
|
|
208
|
+
|------|----------|
|
|
209
|
+
| 不知道下一步 | 下一动作 = 第一个未勾选 V |
|
|
210
|
+
| 聊天里目标漂移 | 每轮只注入 G + 本轮 V + 对应 R |
|
|
211
|
+
| 顺手加功能 | V 闭集 + 「不改什么」 |
|
|
212
|
+
| 假完成 | R/§7 必须可 shell 验证 |
|
|
213
|
+
|
|
214
|
+
### 9.5 互动共写 GRV(定稿前,强制人机协作)
|
|
215
|
+
|
|
216
|
+
GRV **不是** AI 独自填表。定稿前必须走「草案 → 质询 → 用户确认」:
|
|
217
|
+
|
|
218
|
+
| 步 | 谁 | 做什么 |
|
|
219
|
+
|----|-----|--------|
|
|
220
|
+
| 1 | AI | 根据 intake / 对话起草 G(1 句)+ R 草案(每条带验收命令)+ V 草案(每条对应一 R) |
|
|
221
|
+
| 2 | AI | 用选项化提问找漏洞:范围是否过大?R 能否机判?V 是否口号?缺了哪些「不改什么」? |
|
|
222
|
+
| 3 | 用户 | 选选项 / 改表述 / 砍掉 Should、Could |
|
|
223
|
+
| 4 | AI | 写入 `rt-lite.md` §1.5 + §7 + `rt-plan.md` V 队列 |
|
|
224
|
+
| 5 | 用户 | 明确确认「按此契约执行」(记入 §7 用户确认摘要 / `execution-log.md`) |
|
|
225
|
+
|
|
226
|
+
**提问纪律**(对齐 `ai-interaction-rules.md`):每轮 ≤3 个关键问题,带推荐选项;不得一次甩十几条空表让用户填。
|
|
227
|
+
|
|
228
|
+
**可直接用的提问模板**:
|
|
229
|
+
|
|
230
|
+
1. G:我们要解决的真正问题更接近 A / B / C?(推荐:…)
|
|
231
|
+
2. R:本 RT 结束时,下列哪几条必须可被命令/文件证明?(推荐最小集:…)
|
|
232
|
+
3. V:为达成上述 R,最小举措集合是下列哪些?(推荐:…;其余进 DI)
|
|
233
|
+
|
|
234
|
+
未完成第 5 步 → **禁止** `phase=implementing`。
|
|
235
|
+
|
|
236
|
+
### 9.6 执行中重大缺陷 / GRV 无法达成(熔断升级)
|
|
237
|
+
|
|
238
|
+
循环中允许「不停问是否继续」,**不允许**在已知契约失效时假装还能完成。出现下列任一信号 → **立即停止实现**,`phase=blocked`,交还用户(这是合法停顿,不是发散):
|
|
239
|
+
|
|
240
|
+
| 信号 | 示例 |
|
|
241
|
+
|------|------|
|
|
242
|
+
| **R 不可达** | 依赖 API/数据/权限不存在;验收命令在正确实现下仍不可能 exit 0 |
|
|
243
|
+
| **G 前提错误** | 澄清后发现真正问题与 §1.5 G 矛盾 |
|
|
244
|
+
| **Invariants 冲突** | 继续做会破坏 §4 / §1.3.1 |
|
|
245
|
+
| **安全/合规硬伤** | 密钥泄露风险、不可逆数据损坏风险 |
|
|
246
|
+
| **工作量爆炸** | 估算超出 Fuse(`max_iterations`)且无法靠拆 V 收敛 |
|
|
247
|
+
| **外部阻塞** | 等待他人决策/环境,本 Agent 无法推进 |
|
|
248
|
+
|
|
249
|
+
**熔断后 AI 必须交付**(写入 `execution-log.md` + 对话):
|
|
250
|
+
|
|
251
|
+
1. **缺陷摘要**:发生了什么(事实,非甩锅)
|
|
252
|
+
2. **对 G/R/V 的影响**:哪个 R/V 失效;G 是否仍成立
|
|
253
|
+
3. **已完成 / 未完成**:勾选状态快照
|
|
254
|
+
4. **选项化出路**(推荐一项):
|
|
255
|
+
- **A. 修订契约**:改 R/V(或收窄 G),用户确认后恢复循环
|
|
256
|
+
- **B. 拆 RT**:本 RT 关闭/降级范围;剩余进新 RT 或 DI
|
|
257
|
+
- **C. 暂停**:保持 `blocked`,等外部条件
|
|
258
|
+
- **D. 中止**:`status=cancelled`(或项目约定的关闭态),保留痕迹
|
|
259
|
+
|
|
260
|
+
**禁止**:
|
|
261
|
+
|
|
262
|
+
- 🚫 静默改掉 G/R/V 继续跑
|
|
263
|
+
- 🚫 为「看起来能完成」而放宽 R 的验收命令
|
|
264
|
+
- 🚫 把重大缺陷当成普通 V 外需求随手记 DI 后继续硬做
|
|
265
|
+
|
|
266
|
+
**恢复**:仅当用户明确批准 A/B/C/D 之一,并在 §1.5(若修订)重新确认后,才可 `phase=implementing` 或进入收口。
|
|
@@ -54,14 +54,16 @@ flowchart TD
|
|
|
54
54
|
|
|
55
55
|
见 `rt-manager.md` §3.2、`ai-interaction-rules.md`。未获用户 A/B 答复前不得创建 `RT/RT-XXX/`。
|
|
56
56
|
|
|
57
|
-
### Phase B — Goal
|
|
57
|
+
### Phase B — GRV / Goal 共写定稿(AI + 用户,强制互动)
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
2. 运行 `autopilot-goal-spec.md` §5 质量自检 + §6 适配度
|
|
61
|
-
3. 不通过 → 用决策型问题请用户收窄范围或改协作模式
|
|
62
|
-
4. 通过 → 初始化 `state.json`、`rt-plan.md`(空计划)
|
|
59
|
+
按 `autopilot-goal-spec.md` §9.5:
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
1. AI 起草 G/R/V 草案(写入对话,再落入 `rt-lite.md` §1-§4、**§1.5**、§7、§5.4)
|
|
62
|
+
2. AI 选项化追问(每轮 ≤3 问):收窄范围、可机判性、砍掉口号式 V
|
|
63
|
+
3. 运行 §5 质量自检 + §6 适配度;不通过则继续澄清或建议改协作 / Spec-Full
|
|
64
|
+
4. 用户明确确认「按此契约执行」→ 初始化 `state.json`、`rt-plan.md`(**V 队列 = §1.5**)
|
|
65
|
+
|
|
66
|
+
未完成用户确认 → **不得**进入循环。AI 不得甩空表让用户独自填写。
|
|
65
67
|
|
|
66
68
|
### Phase C — Preflight
|
|
67
69
|
|
|
@@ -71,22 +73,37 @@ flowchart TD
|
|
|
71
73
|
|
|
72
74
|
| 条件 | 检查方式 |
|
|
73
75
|
|------|----------|
|
|
74
|
-
| §1-§4、§7 非空且通过 Goal 自检 | 文档 + AI 清单 |
|
|
76
|
+
| §1-§4、§1.5 GRV、§7 非空且通过 Goal/GRV 自检 | 文档 + AI 清单 |
|
|
75
77
|
| §5.4 三条命令已填且可执行 | 试跑或 `--help` 可解释 |
|
|
78
|
+
| 用户已确认 GRV 契约 | `rt-lite` 用户确认摘要 / execution-log |
|
|
76
79
|
| 已在 `feature/RT-XXX-*` 分支 | `git branch --show-current` |
|
|
77
80
|
|
|
78
81
|
通过 → `state.json.checklist.plan_complete=true`,`phase=implementing`。
|
|
79
82
|
|
|
80
|
-
### Phase E — Ralph
|
|
83
|
+
### Phase E — Ralph 实现循环(GRV 驱动)
|
|
81
84
|
|
|
82
85
|
每轮四步(与 Task Platform §4.2 对齐):
|
|
83
86
|
|
|
84
|
-
1. **Read** — `state.json` + `rt-plan.md
|
|
85
|
-
2. **Execute** —
|
|
86
|
-
3. **Backpressure** —
|
|
87
|
+
1. **Read** — `state.json` + `rt-plan.md`(V 队列)+ `loop-prompt.md`(注入 G + 本轮 V + 对应 R)
|
|
88
|
+
2. **Execute** — 只完成 **1 个**未完成 V(最多 2 个);禁止 V 表外工作
|
|
89
|
+
3. **Backpressure** — 跑该 V→R 验收命令 + §5.4 tests → lint → guard;更新 checklist
|
|
87
90
|
4. **Write** — 更新 `state.json`、`rt-plan.md`、`execution-log.md`;必要时 `rt-lite.md` §5-§6
|
|
88
91
|
|
|
89
|
-
|
|
92
|
+
**续跑纪律**:未全部 R/V 完成时,轮末输出 `CONTINUE` + 下一 V-ID;**禁止**停下来询问用户是否继续(熔断 / 改契约除外)。
|
|
93
|
+
|
|
94
|
+
**外层续跑(CONTINUE → 下一 V)**:轮末必须调用:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
bash .aodw-next/tools/rt-grv-continue.sh --rt <RT-ID> --signal CONTINUE|DONE|blocked
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- 退出码 `0`:立即按脚本打印的指令开下一轮(读下一未勾选 V + `loop-prompt.md`)
|
|
101
|
+
- `10`:DONE,停止循环并收口
|
|
102
|
+
- `20`:blocked,按 `autopilot-goal-spec.md` §9.6 交还用户(A/B/C/D)
|
|
103
|
+
- 脚本会写入 `RT/<id>/.last-signal` 与 `state.json.last_signal`,并在 CONTINUE 时 `iteration++`
|
|
104
|
+
- Cursor 适配器另有 `aodw-autopilot-continue` 规则:见到 CONTINUE 禁止停问
|
|
105
|
+
|
|
106
|
+
**迭代上限**:`max_iterations` 默认 **20**(与 Task Platform `MAX_ITERATIONS` 一致;Spec-Lite 单 RT 可协商降为 15)。写在 `state.json`,创建 RT 时可与用户确认。达上限时脚本将 CONTINUE 改为 `blocked`。
|
|
90
107
|
|
|
91
108
|
**冷却**:连续 API/工具失败时,记录 `blockers`,下一轮再试(不在单轮内死磕 >3 次同一错误)。
|
|
92
109
|
|
|
@@ -183,7 +200,8 @@ flowchart TD
|
|
|
183
200
|
1. `blockers` 非空且 **2 轮**无法消除
|
|
184
201
|
2. 产品/架构 **二选一**(无默认安全项)
|
|
185
202
|
3. 熔断:无进展 2 轮 / 达 `max_iterations` / 适配度中途恶化(如出现 schema 变更)
|
|
186
|
-
4. Goal 自检失败且用户不愿收窄范围
|
|
203
|
+
4. Goal/GRV 自检失败且用户不愿收窄范围
|
|
204
|
+
5. **GRV 重大缺陷**(§9.6):R 不可达、G 前提错误、invariants/安全硬伤、工作量爆炸 → `phase=blocked`,给出 A 修订契约 / B 拆 RT / C 暂停 / D 中止,**禁止**静默改契约继续跑
|
|
187
205
|
|
|
188
206
|
### 5.3 进度友好(推荐)
|
|
189
207
|
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
## B. RT 级(每个 RT)
|
|
17
17
|
|
|
18
18
|
- [ ] 用户创建 RT 时已确认 **Autopilot**(至少记录在 `meta.yaml.execution_mode` 与 `execution-log.md`;如有 `decision.md` 也应同步)
|
|
19
|
-
- [ ] `rt-lite.md` §1-§4、§1.3.1
|
|
20
|
-
- [ ] Goal
|
|
19
|
+
- [ ] `rt-lite.md` §1-§4、§1.3.1、**§1.5 GRV**、§7、§5.4 已填写
|
|
20
|
+
- [ ] Goal/GRV 质量自检通过(见 `autopilot-goal-spec.md` §5,含 G/R/V)
|
|
21
21
|
- [ ] Autopilot 适配度 ≥ 4/6(见 §6);不足则已改协作或用户知情
|
|
22
|
-
- [ ] §7
|
|
22
|
+
- [ ] 用户已确认「G + R + V」契约与 §7 摘要
|
|
23
23
|
- [ ] `state.json.checklist` 与 §7 对齐
|
|
24
|
-
- [ ] `rt-plan.md`
|
|
25
|
-
- [ ] `loop-prompt.md`
|
|
24
|
+
- [ ] `rt-plan.md` 已创建且 **V 队列与 §1.5 一致**
|
|
25
|
+
- [ ] `loop-prompt.md` 已创建(含 GRV 注入位)
|
|
26
26
|
- [ ] `execution-log.md` 已创建
|
|
27
27
|
- [ ] `autopilot-preflight.md` 已创建并正在勾选
|
|
28
28
|
- [ ] `feature/RT-XXX-*` 分支
|
|
@@ -32,21 +32,24 @@
|
|
|
32
32
|
## C. 禁止开工
|
|
33
33
|
|
|
34
34
|
- 完成条件含模糊词或不可机械验证
|
|
35
|
+
- §1.5 GRV 缺失,或 R/V 无法机判 / 未映射
|
|
35
36
|
- 「不改什么」少于 3 项
|
|
36
37
|
- 跨模块高风险未升级 Spec-Full
|
|
37
38
|
- main/master 上改业务代码
|
|
38
|
-
- Goal
|
|
39
|
+
- Goal/GRV 自检未通过或用户未确认契约
|
|
39
40
|
- Spec-Lite Autopilot 7 件套不齐
|
|
40
41
|
|
|
41
42
|
---
|
|
42
43
|
|
|
43
44
|
## D. 每轮固定动作
|
|
44
45
|
|
|
45
|
-
1. 读 `state.json` + `rt-plan.md
|
|
46
|
-
2.
|
|
47
|
-
3. tests → lint → guard
|
|
46
|
+
1. 读 `state.json` + `rt-plan.md`(下一未完成 V)+ `loop-prompt.md`
|
|
47
|
+
2. 只完成 **1 个** V(最多 2 个);不做 V 表外事
|
|
48
|
+
3. 跑该 V→R 验收 + tests → lint → guard
|
|
48
49
|
4. 更新 `state.json`、`rt-plan.md`、`execution-log.md`
|
|
49
|
-
5.
|
|
50
|
+
5. 未完成则 `CONTINUE` + 下一 V-ID(禁止停问用户)
|
|
51
|
+
6. 调用 `bash .aodw-next/tools/rt-grv-continue.sh --rt <RT-ID> --signal <CONTINUE|DONE|blocked>`;exit 0 则立即开下一轮
|
|
52
|
+
7. 反模式自检(见 `autopilot-protocol.md` §3.3)
|
|
50
53
|
|
|
51
54
|
---
|
|
52
55
|
|
|
@@ -378,8 +378,8 @@ RT/RT-XXX/
|
|
|
378
378
|
```
|
|
379
379
|
RT/RT-XXX/
|
|
380
380
|
meta.yaml ← RT 元数据(execution_mode: autopilot)
|
|
381
|
-
rt-lite.md ← Goal(静态):§1-§7
|
|
382
|
-
rt-plan.md ←
|
|
381
|
+
rt-lite.md ← Goal(静态):§1-§7(含 §1.5 GRV)
|
|
382
|
+
rt-plan.md ← V 队列(动态):与 §1.5 V 一致,每轮勾选
|
|
383
383
|
state.json ← 机器状态:checklist、phase、熔断信号
|
|
384
384
|
loop-prompt.md ← 每轮 Ralph 执行指令
|
|
385
385
|
execution-log.md ← 人读时间线
|
|
@@ -439,8 +439,8 @@ AI 根据决策结果,加载对应的 Profile:
|
|
|
439
439
|
|
|
440
440
|
| 文档 | 角色 |
|
|
441
441
|
|------|------|
|
|
442
|
-
| `rt-lite.md` | Goal(静态):§7
|
|
443
|
-
| `rt-plan.md` |
|
|
442
|
+
| `rt-lite.md` | Goal(静态):§1.5 GRV + §7 完成条件,见 `autopilot-goal-spec.md` |
|
|
443
|
+
| `rt-plan.md` | V 队列(动态):与 §1.5 一致,每轮只推进未完成 V |
|
|
444
444
|
| `state.json` | 机器状态:checklist、phase、熔断信号 |
|
|
445
445
|
| `loop-prompt.md` | 每轮 Ralph 执行指令 |
|
|
446
446
|
| `execution-log.md` | 人读时间线(防黑盒) |
|
|
@@ -449,8 +449,8 @@ AI 根据决策结果,加载对应的 Profile:
|
|
|
449
449
|
**总协议**:`02-workflow/autopilot-protocol.md`(Ralph 循环、机械 Gate、反模式、子模式、进度友好)。
|
|
450
450
|
|
|
451
451
|
Autopilot 流程摘要:
|
|
452
|
-
1. 用户确认模式(§3.2)→ 2. Goal 定稿 + 自检 → 3. Preflight → 4. Gate-Plan → 5. Ralph
|
|
453
|
-
熔断时交还人工;不得跳过 Goal
|
|
452
|
+
1. 用户确认模式(§3.2)→ 2. **GRV/Goal 定稿 + 自检 + 用户确认契约** → 3. Preflight → 4. Gate-Plan → 5. Ralph+GRV 循环(未完成禁止停问)→ 6. Gate-Commit/Done
|
|
453
|
+
熔断时交还人工;不得跳过 GRV/Goal 自检进入循环;禁止做 V 表外工作。
|
|
454
454
|
|
|
455
455
|
### 7.2 关闭一致性检查
|
|
456
456
|
|
|
@@ -58,10 +58,10 @@ RT/RT-XXX/
|
|
|
58
58
|
| 阶段 | 动作 | Gate |
|
|
59
59
|
|------|------|------|
|
|
60
60
|
| 0 | `feature/RT-XXX` 分支 | 强制 |
|
|
61
|
-
| B | 定稿 rt-lite §1-§7
|
|
61
|
+
| B | 定稿 rt-lite §1-§7(含 §1.5 GRV);用户确认 G/R/V;生成 7 件套 | Goal/GRV 自检 |
|
|
62
62
|
| C | `autopilot-preflight.md` 全勾 | 人工清单 |
|
|
63
63
|
| D | `plan_complete=true` | 机械 Gate-Plan |
|
|
64
|
-
| E | Ralph
|
|
64
|
+
| E | Ralph+GRV(读 V 队列 → 做 1 个 V → R 验收+tests/lint/guard → CONTINUE → `rt-grv-continue.sh`) | 每轮 Quality Gate |
|
|
65
65
|
| F | commit | 机械 Gate-Commit |
|
|
66
66
|
| G | `status=done` | 机械 Gate-Done |
|
|
67
67
|
|
|
@@ -71,7 +71,7 @@ RT/RT-XXX/
|
|
|
71
71
|
|
|
72
72
|
## 4. 机械 Gate 条件(速查)
|
|
73
73
|
|
|
74
|
-
**Gate-Plan**:§1-§4、§7、§5.4 就绪;Goal
|
|
74
|
+
**Gate-Plan**:§1-§4、§1.5 GRV、§7、§5.4 就绪;Goal/GRV 自检通过且用户已确认契约;`plan_complete=true`。
|
|
75
75
|
|
|
76
76
|
**Gate-Commit**:`tests_pass` && `lint_pass` && `guard_pass`。
|
|
77
77
|
|
|
@@ -96,6 +96,9 @@ RT/RT-XXX/
|
|
|
96
96
|
- 🚫 无 `state.json` / `execution-log` 更新进入下一轮
|
|
97
97
|
- 🚫 缺 `loop-prompt.md` / `autopilot-preflight.md` 仍宣称 Autopilot RT 已就绪或已关闭
|
|
98
98
|
- 🚫 在 Autopilot 中等待人工 Gate 3/4/5(除非熔断)
|
|
99
|
+
- 🚫 无 §1.5 GRV 或用户未确认契约即开循环
|
|
100
|
+
- 🚫 做 V 表外工作 / 契约仍有效时停下来问「要不要继续」
|
|
101
|
+
- 🚫 发现 R 不可达或重大缺陷后仍不 `blocked`、不交还用户、或静默改 GRV
|
|
99
102
|
|
|
100
103
|
---
|
|
101
104
|
|
package/.aodw-next/README.md
CHANGED
package/.aodw-next/SKILL.md
CHANGED
|
@@ -30,7 +30,7 @@ description: AODW (AI-Orchestrated Development Workflow) — 完整的 AI 协作
|
|
|
30
30
|
- **一个 RT = 一个 Worktree = 一个 Feature 分支**(`feature/RT-XXX-name`)
|
|
31
31
|
- **Spec-Full**:跨模块/数据模型/API 变更/高风险 → 完整 spec+plan+审计
|
|
32
32
|
- **Spec-Lite**:单模块/bug 修复/低风险 → 单文件 `rt-lite.md`
|
|
33
|
-
- **Spec-Lite Autopilot
|
|
33
|
+
- **Spec-Lite Autopilot**:`rt-lite.md` 须含 **§1.5 GRV**;外加 `rt-plan.md`(V 队列)、`state.json`、`loop-prompt.md`、`execution-log.md`、`autopilot-preflight.md`;未完成时禁止停问、禁止 V 外工作;轮末调用 `tools/rt-grv-continue.sh` 驱动 CONTINUE→下一 V
|
|
34
34
|
- **确认门控**:commit/merge/push/worktree 操作前必须向用户确认
|
|
35
35
|
- **判据纪律**:判据全绿不是验收,只是允许你去读产出;详见 `01-core/test-discipline.md`
|
|
36
36
|
- **规则索引**:详见 `manifest.yaml`
|
package/.aodw-next/manifest.yaml
CHANGED
|
@@ -75,7 +75,7 @@ ALL="$(printf '%s\n%s\n%s\n' "$(scan_worktree)" "$(scan_history)" "$(scan_branch
|
|
|
75
75
|
USED="$(printf '%s' "$ALL" | awk '{print $2}' | sort -u | grep -v '^$' || true)"
|
|
76
76
|
|
|
77
77
|
if [[ "$MODE" == "list" ]]; then
|
|
78
|
-
echo "已占用的 H 序号(目录:$DIR;来源含未合并分支):"
|
|
78
|
+
echo "已占用的 H 序号(目录:${DIR};来源含未合并分支):"
|
|
79
79
|
if [[ -z "$USED" ]]; then echo " (无)"; else
|
|
80
80
|
while read -r n; do
|
|
81
81
|
[[ -n "$n" ]] || continue
|
|
@@ -101,7 +101,7 @@ fi
|
|
|
101
101
|
|
|
102
102
|
count="$(printf '%s' "$USED" | grep -c . || true)"
|
|
103
103
|
echo "交接包取号"
|
|
104
|
-
echo " 目录: $DIR(相对 $REPO)"
|
|
104
|
+
echo " 目录: ${DIR}(相对 ${REPO})"
|
|
105
105
|
echo " 已占用:$count 个(扫描范围:工作区 + 历史提交 + 全部分支含未合并)"
|
|
106
106
|
[[ -n "$USED" ]] && echo " 已用号:$(printf '%s' "$USED" | tr '\n' ' ')"
|
|
107
107
|
echo
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
- 代码修改完成后,必须展示 git status 和关键 diff
|
|
66
66
|
- 询问用户"修改已完成,是否提交?"
|
|
67
67
|
- 严禁未获用户确认前直接 Commit
|
|
68
|
+
- **Autopilot 例外**:当 RT `meta.yaml` 含 `autopilot: true` 且 GRV 已用户确认、`phase=implementing` 时,由机械 Gate(tests/lint/guard)替代本条「询问是否提交」;轮末用 `CONTINUE`/`DONE`/`blocked` + `rt-grv-continue.sh` 续跑,禁止停问是否继续。详见 `autopilot-protocol.md` 与 Cursor 规则 `aodw-autopilot-continue`。
|
|
68
69
|
|
|
69
70
|
## 5. 兜底机制
|
|
70
71
|
如果你无法读取 {{REF_PREFIX}}.aodw-next/01-core/aodw-constitution.md,请立即停止并要求用户提供该文件。
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
## 2) RT 准备
|
|
15
15
|
|
|
16
16
|
- [ ] `meta.yaml.execution_mode = autopilot`(创建 RT 时用户已确认)
|
|
17
|
-
- [ ] `rt-lite.md` §1-§4、§1.3.1、§7、§5.4 已填写
|
|
18
|
-
- [ ] Goal 质量自检通过(`autopilot-goal-spec.md` §5)
|
|
17
|
+
- [ ] `rt-lite.md` §1-§4、§1.3.1、§1.5 GRV、§7、§5.4 已填写
|
|
18
|
+
- [ ] Goal/GRV 质量自检通过(`autopilot-goal-spec.md` §5)
|
|
19
19
|
- [ ] Autopilot 适配度 ≥ 4/6 或用户已知情
|
|
20
|
-
- [ ] §7
|
|
21
|
-
- [ ] `state.json` + `rt-plan.md`
|
|
20
|
+
- [ ] 用户已确认 G + R + V 契约与 §7 摘要
|
|
21
|
+
- [ ] `state.json` + `rt-plan.md` 已初始化;V 队列与 §1.5 一致
|
|
22
22
|
- [ ] `loop-prompt.md` 已创建
|
|
23
23
|
- [ ] `execution-log.md` 已创建
|
|
24
24
|
- [ ] `autopilot-preflight.md` 已创建并纳入版本控制
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
- [ ] §2.1 修改文件清单已列出
|
|
30
30
|
- [ ] §1.3.1「不改什么」≥ 3 项
|
|
31
|
+
- [ ] §1.5 V 为闭集(未列出的工作本 RT 不做)
|
|
31
32
|
- [ ] §4 invariants 已列出
|
|
32
33
|
- [ ] 无范围外改动计划
|
|
33
34
|
|
|
@@ -28,6 +28,41 @@
|
|
|
28
28
|
- **最小必要改动**:
|
|
29
29
|
- **可验证成功标准**:
|
|
30
30
|
|
|
31
|
+
### 1.5 GRV 执行契约(Autopilot / 防发散必填;协作模式强烈建议)
|
|
32
|
+
|
|
33
|
+
> 标准见 `02-workflow/autopilot-goal-spec.md` §9。
|
|
34
|
+
> **由 AI 与用户互动共写**:AI 出草案 + 选项化追问,用户拍板;定稿确认前禁止进入实现循环。
|
|
35
|
+
> 未列入 V 的工作默认禁止;新想法写入 DI / blockers,本 RT 不做。
|
|
36
|
+
> **执行中若发现重大缺陷导致 G/R 不可达**:立即 `phase=blocked`,按 §9.6 交还用户(修订契约 / 拆 RT / 暂停 / 中止),禁止静默改契约硬做。
|
|
37
|
+
|
|
38
|
+
#### G — Goal(一句话目标)
|
|
39
|
+
<!-- 基于真正问题,不是「建一个系统」;与 §1.2 一致,此处必须可单独摘录进 loop-prompt -->
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
#### R — Result(成果 = §7 的子集,须可机械验收)
|
|
43
|
+
|
|
44
|
+
| R-ID | 成果描述 | 对应 §7 | 验收命令(Baseline) |
|
|
45
|
+
|------|----------|---------|----------------------|
|
|
46
|
+
| R1 | | C? | |
|
|
47
|
+
| R2 | | C? | |
|
|
48
|
+
|
|
49
|
+
#### V — Variables(举措 = rt-plan 唯一工作源)
|
|
50
|
+
|
|
51
|
+
| V-ID | 举措(一件真实可做完的事) | 对应 R | 状态 |
|
|
52
|
+
|------|---------------------------|--------|------|
|
|
53
|
+
| V1 | | R? | pending |
|
|
54
|
+
| V2 | | R? | pending |
|
|
55
|
+
|
|
56
|
+
**共写与确认**:
|
|
57
|
+
- [ ] AI 已提供 G/R/V 草案并完成选项化澄清
|
|
58
|
+
- [ ] 用户已确认「按此契约执行」(日期:________)
|
|
59
|
+
|
|
60
|
+
**契约纪律**:
|
|
61
|
+
- 每轮只推进 **1 个**未完成 V(最多 2 个)
|
|
62
|
+
- 做完该 V 后立即跑其对应 R 的验收命令
|
|
63
|
+
- R 未全部通过时:结束语只能是 `CONTINUE` + 下一 V-ID,**禁止**停下来问「要不要继续」(熔断除外)
|
|
64
|
+
- 出现 V 表外需求 → `blockers` / DI,本 RT 不扩 scope
|
|
65
|
+
- 重大缺陷 / R 不可达 → `blocked` + §9.6 选项,等待用户裁决
|
|
31
66
|
---
|
|
32
67
|
|
|
33
68
|
## § 2. 方案设计 (Solution & Design)
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
你正在以 **AODW Autopilot** 模式自主推进 RT:{RT_ID}(第 **{ITERATION}** / **{MAX_ITERATIONS}** 次迭代)。
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## GRV 契约(唯一工作源)
|
|
4
|
+
|
|
5
|
+
### G — Goal
|
|
4
6
|
{GOAL_SUMMARY}
|
|
5
7
|
|
|
8
|
+
### R — 尚未通过的成果(来自 rt-lite §1.5 / §7)
|
|
9
|
+
{OPEN_RESULTS}
|
|
10
|
+
|
|
11
|
+
### V — 本轮举措(只做这些)
|
|
12
|
+
{CURRENT_VARIABLES}
|
|
13
|
+
|
|
14
|
+
> 完整契约:读取 `RT/{RT_ID}/rt-lite.md` §1.5 与 §7;进度:`rt-plan.md`。
|
|
15
|
+
|
|
6
16
|
## 完成条件(机械验收,rt-lite.md §7)
|
|
7
17
|
{CHECKLIST_ITEMS}
|
|
8
18
|
|
|
@@ -13,33 +23,42 @@
|
|
|
13
23
|
{STATE_JSON}
|
|
14
24
|
```
|
|
15
25
|
|
|
16
|
-
### rt-plan.md
|
|
26
|
+
### rt-plan.md(只处理未完成 V)
|
|
17
27
|
> 开工前读取 `RT/{RT_ID}/rt-plan.md`,本轮完成后更新勾选与「当前焦点」。
|
|
18
28
|
|
|
19
|
-
## 本轮规则(Ralph
|
|
29
|
+
## 本轮规则(Ralph + GRV)
|
|
20
30
|
|
|
21
|
-
1.
|
|
22
|
-
2.
|
|
23
|
-
3. **验证驱动(Backpressure
|
|
31
|
+
1. **续接而非重做**:已 true / 已勾选的 V、R 不要重复
|
|
32
|
+
2. **一轮一 V**:本轮只完成 **1 个**未完成 V(最多 2 个),并跑其对应 R 的验收命令
|
|
33
|
+
3. **验证驱动(Backpressure)**:改动后立即运行该 V→R 命令,以及 §5.4 tests → lint → guard
|
|
24
34
|
4. **如实写状态**:更新 `state.json`、`rt-plan.md`、`execution-log.md`;决策写入 `decisions`
|
|
25
|
-
5. **范围锁定**:不修改
|
|
35
|
+
5. **范围锁定**:不修改 §1.3.1「不改什么」;**禁止** §1.5 V 表以外的任何功能/重构/「顺手优化」
|
|
36
|
+
6. **未完成禁止停问**:只要仍有未完成 V 或未通过 R,且**契约仍成立**,本轮结束只能输出 **`CONTINUE`** + 下一 V-ID;**禁止**问「要不要继续」
|
|
37
|
+
7. **契约失效必须熔断**:若发现 R 不可达、G 前提错误、破坏 invariants、安全硬伤、工作量爆炸等(见 `autopilot-goal-spec.md` §9.6)→ 立即 `phase=blocked`,输出缺陷摘要 + A/B/C/D 选项,**禁止**静默改 GRV 继续做
|
|
26
38
|
|
|
27
39
|
## 反模式(出现则换方案或 blocked)
|
|
28
40
|
|
|
29
41
|
| 信号 | 处理 |
|
|
30
42
|
|------|------|
|
|
31
43
|
| 同一文件第 4 次修改 | 换实现,记入 decisions |
|
|
32
|
-
| 同一测试连续 2 轮失败 |
|
|
33
|
-
| checklist
|
|
34
|
-
|
|
44
|
+
| 同一测试连续 2 轮失败 | 重读 §1.5 G/R,写入 blockers |
|
|
45
|
+
| checklist / V 进度与上轮完全相同 | `stall_count++`;≥2 则 `phase=blocked` |
|
|
46
|
+
| 想做 V 表外的事 | 写入 blockers/DI,**本轮不做**;勿扩 scope |
|
|
47
|
+
| 停下来向用户确认是否继续(契约仍有效时) | 违规;改为 `CONTINUE` + 下一 V |
|
|
48
|
+
| R/G 已证伪或不可达 | **合法熔断**:`blocked` + §9.6,等用户选 A 修订 / B 拆 RT / C 暂停 / D 中止 |
|
|
35
49
|
## 机械 Gate
|
|
36
50
|
|
|
37
|
-
- **Plan**:`plan_complete` ← §1-§4、§7、§5.4
|
|
51
|
+
- **Plan**:`plan_complete` ← §1-§4、§1.5 GRV、§7、§5.4 就绪且用户已确认契约
|
|
38
52
|
- **Commit**:tests + lint + guard 全 pass
|
|
39
|
-
- **Done
|
|
53
|
+
- **Done**:全部 V `[x]` + 全部 R 验收通过 + checklist 全 true + auditor 无 P0
|
|
40
54
|
|
|
41
55
|
## 本轮结束
|
|
42
56
|
|
|
43
57
|
1. 更新上述文件
|
|
44
|
-
2.
|
|
45
|
-
3. 否则输出 **`CONTINUE`**
|
|
58
|
+
2. 若全部完成:`phase=done`,`meta.yaml.status=done`,输出 **`DONE`**
|
|
59
|
+
3. 否则输出 **`CONTINUE`** 与下一 V-ID(禁止空等用户)
|
|
60
|
+
4. **立即**调用外层续跑脚本(不要等用户):
|
|
61
|
+
```bash
|
|
62
|
+
bash .aodw-next/tools/rt-grv-continue.sh --rt {RT_ID} --signal CONTINUE # 或 DONE / blocked
|
|
63
|
+
```
|
|
64
|
+
退出码:`0`=续跑下一轮,`10`=DONE 停,`20`=blocked 交还用户,`30`=达 iteration 上限
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
# Plan: {RT_ID} — <任务标题>
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 动态实现计划 = **GRV 的 V(Variables)队列**。
|
|
4
|
+
> 每轮只处理未完成的 V;禁止添加未在 `rt-lite.md` §1.5 V 表中登记的步骤(除非先修订 GRV 并经用户确认)。
|
|
4
5
|
|
|
5
|
-
##
|
|
6
|
+
## 进度(V 队列)
|
|
6
7
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
| 勾选 | V-ID | 举措 | 对应 R | 验收命令 |
|
|
9
|
+
|------|------|------|--------|----------|
|
|
10
|
+
| [ ] | V1 | (与 rt-lite §1.5 一致) | R1 | |
|
|
11
|
+
| [ ] | V2 | | R? | |
|
|
12
|
+
| [ ] | V3 | | R? | |
|
|
13
|
+
|
|
14
|
+
> 上表与 `rt-lite.md` §1.5 V 表必须一致;§1.5 为契约源,本表为执行勾选副本。
|
|
10
15
|
|
|
11
16
|
## 当前焦点
|
|
12
17
|
|
|
13
|
-
-
|
|
14
|
-
- 对应
|
|
18
|
+
- 本轮 V-ID:(仅 1 个,例外最多 2 个)
|
|
19
|
+
- 对应 R-ID:
|
|
20
|
+
- 本轮验收命令:
|
|
21
|
+
- 禁止事项:不碰 §1.3.1「不改什么」;不做 V 表外功能
|
|
15
22
|
|
|
16
23
|
## 阻塞(blockers)
|
|
17
24
|
|
|
18
|
-
-
|
|
25
|
+
- (无则留空;V 外需求记在这里或 DI,本 RT 不实现)
|
|
19
26
|
|
|
20
27
|
## 决策(decisions)
|
|
21
28
|
|
|
@@ -25,11 +32,14 @@
|
|
|
25
32
|
|
|
26
33
|
仅当 **同时** 满足才可输出 `DONE`:
|
|
27
34
|
|
|
28
|
-
1. 本节「进度」全部 `[x]
|
|
35
|
+
1. 本节「进度」全部 `[x]`(全部 V 完成)
|
|
29
36
|
2. `state.json.checklist` 全 `true`,且 §5.4 tests/lint/guard 已通过
|
|
37
|
+
3. §1.5 每个 R 的验收命令均曾 exit 0(记入 execution-log)
|
|
38
|
+
|
|
39
|
+
未满足时:输出 **`CONTINUE`** + 下一 V-ID;**禁止**等待用户确认是否继续。
|
|
30
40
|
|
|
31
41
|
## 迭代记录
|
|
32
42
|
|
|
33
|
-
| 轮次 |
|
|
34
|
-
|
|
35
|
-
| 0 | scaffold | — | RT 创建 |
|
|
43
|
+
| 轮次 | 完成 V | 验证结果 | 备注 |
|
|
44
|
+
|------|--------|----------|------|
|
|
45
|
+
| 0 | scaffold | — | RT 创建 / GRV 定稿 |
|
|
@@ -114,7 +114,7 @@ is_ours() {
|
|
|
114
114
|
for src in "$SKILLS_SRC"/*/; do
|
|
115
115
|
[[ -d "$src" ]] || continue
|
|
116
116
|
name="$(basename "$src")"
|
|
117
|
-
[[ -f "$src/SKILL.md" ]] || { echo " 跳过 $name(无 SKILL.md,不是合法 skill)"; continue; }
|
|
117
|
+
[[ -f "$src/SKILL.md" ]] || { echo " 跳过 ${name}(无 SKILL.md,不是合法 skill)"; continue; }
|
|
118
118
|
dst="$TARGET_DIR/$name"
|
|
119
119
|
|
|
120
120
|
case "$ACTION" in
|
|
@@ -188,7 +188,7 @@ for src in "$SKILLS_SRC"/*/; do
|
|
|
188
188
|
# 写来源标记:uninstall 据此确认「这是我装的」,绝不误删宿主自有 skill
|
|
189
189
|
printf '%s\n' \
|
|
190
190
|
"# 本目录由 .aodw-next/tools/install-skills.sh --copy 安装,可被 --uninstall 移除。" \
|
|
191
|
-
"# 源:.aodw-next/skills/$name(改源后需重新运行安装脚本)" \
|
|
191
|
+
"# 源:.aodw-next/skills/${name}(改源后需重新运行安装脚本)" \
|
|
192
192
|
> "$dst/$MARKER"
|
|
193
193
|
printf ' %-18s ✓ 已复制\n' "$name"
|
|
194
194
|
else
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# =============================================================================
|
|
3
|
+
# rt-grv-continue.sh — Autopilot + GRV 外层续跑助手
|
|
4
|
+
# =============================================================================
|
|
5
|
+
# 作用:根据本轮信号推进 iteration,并告诉 Agent「下一轮该干什么」。
|
|
6
|
+
# 不负责调用 LLM;供 Agent / CI / 人工在检测到 CONTINUE 后立刻开下一轮。
|
|
7
|
+
#
|
|
8
|
+
# 用法:
|
|
9
|
+
# bash .aodw-next/tools/rt-grv-continue.sh --rt RT-XXX --signal CONTINUE
|
|
10
|
+
# bash .aodw-next/tools/rt-grv-continue.sh --rt RT-XXX --signal DONE
|
|
11
|
+
# bash .aodw-next/tools/rt-grv-continue.sh --rt RT-XXX --signal blocked
|
|
12
|
+
# bash .aodw-next/tools/rt-grv-continue.sh --rt RT-XXX --status # 只读状态
|
|
13
|
+
#
|
|
14
|
+
# 退出码:
|
|
15
|
+
# 0 — CONTINUE:应立即开始下一轮(读 loop-prompt / 下一 V)
|
|
16
|
+
# 10 — DONE:全部完成,停止循环
|
|
17
|
+
# 20 — blocked:契约失效或熔断,必须交还用户
|
|
18
|
+
# 30 — 达到 max_iterations
|
|
19
|
+
# 2 — 参数/文件错误
|
|
20
|
+
# =============================================================================
|
|
21
|
+
set -euo pipefail
|
|
22
|
+
|
|
23
|
+
ROOT="."
|
|
24
|
+
RT=""
|
|
25
|
+
SIGNAL=""
|
|
26
|
+
STATUS_ONLY=0
|
|
27
|
+
|
|
28
|
+
while [[ $# -gt 0 ]]; do
|
|
29
|
+
case "$1" in
|
|
30
|
+
--root) ROOT="$2"; shift 2 ;;
|
|
31
|
+
--rt) RT="$2"; shift 2 ;;
|
|
32
|
+
--signal) SIGNAL="$2"; shift 2 ;;
|
|
33
|
+
--status) STATUS_ONLY=1; shift ;;
|
|
34
|
+
-h|--help)
|
|
35
|
+
sed -n '2,25p' "$0" | sed 's/^# \{0,1\}//'
|
|
36
|
+
exit 0
|
|
37
|
+
;;
|
|
38
|
+
*) echo "未知参数: $1" >&2; exit 2 ;;
|
|
39
|
+
esac
|
|
40
|
+
done
|
|
41
|
+
|
|
42
|
+
if [[ -z "$RT" ]]; then
|
|
43
|
+
echo "必须提供 --rt RT-XXX" >&2
|
|
44
|
+
exit 2
|
|
45
|
+
fi
|
|
46
|
+
|
|
47
|
+
RT_DIR="$ROOT/RT/$RT"
|
|
48
|
+
STATE="$RT_DIR/state.json"
|
|
49
|
+
PLAN="$RT_DIR/rt-plan.md"
|
|
50
|
+
LITE="$RT_DIR/rt-lite.md"
|
|
51
|
+
SIGNAL_FILE="$RT_DIR/.last-signal"
|
|
52
|
+
|
|
53
|
+
if [[ ! -f "$STATE" ]]; then
|
|
54
|
+
echo "缺少 $STATE" >&2
|
|
55
|
+
exit 2
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
# 用 node 读写 JSON,避免依赖 jq
|
|
59
|
+
read_state() {
|
|
60
|
+
node -e "
|
|
61
|
+
const fs=require('fs');
|
|
62
|
+
const s=JSON.parse(fs.readFileSync(process.argv[1],'utf8'));
|
|
63
|
+
const k=process.argv[2];
|
|
64
|
+
const v=k.split('.').reduce((a,c)=>a==null?undefined:a[c], s);
|
|
65
|
+
if (v===undefined||v===null) process.exit(3);
|
|
66
|
+
if (typeof v==='object') console.log(JSON.stringify(v));
|
|
67
|
+
else console.log(String(v));
|
|
68
|
+
" "$STATE" "$1"
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
write_signal_and_bump() {
|
|
72
|
+
local sig="$1"
|
|
73
|
+
local bump="$2"
|
|
74
|
+
node -e "
|
|
75
|
+
const fs=require('fs');
|
|
76
|
+
const path=process.argv[1];
|
|
77
|
+
const sig=process.argv[2];
|
|
78
|
+
const bump=process.argv[3]==='1';
|
|
79
|
+
const s=JSON.parse(fs.readFileSync(path,'utf8'));
|
|
80
|
+
s.updated_at=new Date().toISOString();
|
|
81
|
+
s.last_signal=sig;
|
|
82
|
+
if (bump) {
|
|
83
|
+
s.iteration=Number(s.iteration||0)+1;
|
|
84
|
+
}
|
|
85
|
+
if (sig==='DONE') s.phase='done';
|
|
86
|
+
if (sig==='blocked') s.phase='blocked';
|
|
87
|
+
if (sig==='CONTINUE' && s.phase!=='implementing' && s.phase!=='blocked' && s.phase!=='done') {
|
|
88
|
+
s.phase='implementing';
|
|
89
|
+
}
|
|
90
|
+
fs.writeFileSync(path, JSON.stringify(s,null,2)+'\n');
|
|
91
|
+
console.log([s.iteration, s.max_iterations||20, s.phase].join('\t'));
|
|
92
|
+
" "$STATE" "$sig" "$bump"
|
|
93
|
+
echo "$sig" > "$SIGNAL_FILE"
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
iteration=$(read_state iteration 2>/dev/null || echo 0)
|
|
97
|
+
max_iter=$(read_state max_iterations 2>/dev/null || echo 20)
|
|
98
|
+
phase=$(read_state phase 2>/dev/null || echo unknown)
|
|
99
|
+
|
|
100
|
+
echo "RT=$RT phase=$phase iteration=$iteration/$max_iter"
|
|
101
|
+
|
|
102
|
+
if [[ "$STATUS_ONLY" -eq 1 ]]; then
|
|
103
|
+
if [[ -f "$SIGNAL_FILE" ]]; then
|
|
104
|
+
echo "last_signal=$(cat "$SIGNAL_FILE")"
|
|
105
|
+
fi
|
|
106
|
+
# 提示下一未完成 V(启发式:rt-plan 中第一个未勾选行)
|
|
107
|
+
if [[ -f "$PLAN" ]]; then
|
|
108
|
+
next=$(grep -E '^\| \[ \] \|' "$PLAN" | head -1 || true)
|
|
109
|
+
if [[ -n "$next" ]]; then
|
|
110
|
+
echo "next_open_v_row=$next"
|
|
111
|
+
else
|
|
112
|
+
echo "next_open_v_row=(none or different table format)"
|
|
113
|
+
fi
|
|
114
|
+
fi
|
|
115
|
+
exit 0
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
if [[ -z "$SIGNAL" ]]; then
|
|
119
|
+
echo "必须提供 --signal CONTINUE|DONE|blocked" >&2
|
|
120
|
+
exit 2
|
|
121
|
+
fi
|
|
122
|
+
|
|
123
|
+
case "$SIGNAL" in
|
|
124
|
+
CONTINUE|DONE|blocked) ;;
|
|
125
|
+
*) echo "signal 必须是 CONTINUE|DONE|blocked" >&2; exit 2 ;;
|
|
126
|
+
esac
|
|
127
|
+
|
|
128
|
+
# 已达上限且还要 CONTINUE → 强制 blocked
|
|
129
|
+
if [[ "$SIGNAL" == "CONTINUE" ]]; then
|
|
130
|
+
if [[ "$iteration" -ge "$max_iter" ]]; then
|
|
131
|
+
SIGNAL=blocked
|
|
132
|
+
echo "已达 max_iterations=${max_iter}, 改为 blocked(交还用户)"
|
|
133
|
+
fi
|
|
134
|
+
fi
|
|
135
|
+
|
|
136
|
+
bump=0
|
|
137
|
+
[[ "$SIGNAL" == "CONTINUE" ]] && bump=1
|
|
138
|
+
out=$(write_signal_and_bump "$SIGNAL" "$bump")
|
|
139
|
+
new_iter=$(echo "$out" | cut -f1)
|
|
140
|
+
new_max=$(echo "$out" | cut -f2)
|
|
141
|
+
new_phase=$(echo "$out" | cut -f3)
|
|
142
|
+
|
|
143
|
+
echo "updated: iteration=$new_iter/$new_max phase=$new_phase signal=$SIGNAL"
|
|
144
|
+
|
|
145
|
+
case "$SIGNAL" in
|
|
146
|
+
CONTINUE)
|
|
147
|
+
cat <<EOF
|
|
148
|
+
|
|
149
|
+
== 外层续跑指令(给 Agent)==
|
|
150
|
+
立即开始第 ${new_iter} 轮,不要询问用户是否继续:
|
|
151
|
+
1. 读取 $LITE §1.5(G/R/V)与 $PLAN 下一未勾选 V
|
|
152
|
+
2. 按 $RT_DIR/loop-prompt.md 执行(只做该 V)
|
|
153
|
+
3. 跑对应 R 验收 + §5.4 tests/lint/guard
|
|
154
|
+
4. 更新 state.json / rt-plan.md / execution-log.md
|
|
155
|
+
5. 结束时输出 CONTINUE(下一 V)或 DONE 或说明后 blocked
|
|
156
|
+
然后再次执行:
|
|
157
|
+
bash .aodw-next/tools/rt-grv-continue.sh --root $ROOT --rt $RT --signal <CONTINUE|DONE|blocked>
|
|
158
|
+
|
|
159
|
+
EOF
|
|
160
|
+
exit 0
|
|
161
|
+
;;
|
|
162
|
+
DONE)
|
|
163
|
+
cat <<EOF
|
|
164
|
+
|
|
165
|
+
== 完成 ==
|
|
166
|
+
全部 V/R 应已验收。请核对 checklist、关闭 meta.yaml.status=done,输出发布/收口摘要。
|
|
167
|
+
停止自动续跑。
|
|
168
|
+
|
|
169
|
+
EOF
|
|
170
|
+
exit 10
|
|
171
|
+
;;
|
|
172
|
+
blocked)
|
|
173
|
+
cat <<EOF
|
|
174
|
+
|
|
175
|
+
== 熔断 / blocked ==
|
|
176
|
+
停止自动续跑。按 autopilot-goal-spec.md §9.6 向用户给出:
|
|
177
|
+
A 修订契约 / B 拆 RT / C 暂停 / D 中止
|
|
178
|
+
禁止静默改 GRV 继续做。
|
|
179
|
+
|
|
180
|
+
EOF
|
|
181
|
+
exit 20
|
|
182
|
+
;;
|
|
183
|
+
esac
|
|
@@ -1076,7 +1076,7 @@ rtg_check_xref_doc_refs_resolve() { # 判据 10(G110):RT 目录内 .md 交
|
|
|
1076
1076
|
out="$(rtg_xref_scan "$root" "$rt_id" summary 0 "$exts")" || rc=$?
|
|
1077
1077
|
if (( rc != 0 && rc != 10 )); then
|
|
1078
1078
|
# 扫描器崩溃不是判据结果——与 rt-gates.yaml 不同步同类,fail-closed
|
|
1079
|
-
rtg_die "交叉引用扫描器内部错误(rc=$rc,见上方 stderr)"
|
|
1079
|
+
rtg_die "交叉引用扫描器内部错误(rc=${rc},见上方 stderr)"
|
|
1080
1080
|
fi
|
|
1081
1081
|
printf '%s' "$out"
|
|
1082
1082
|
(( rc == 0 )) && return 0
|
|
@@ -1235,7 +1235,7 @@ rtg_dispatch_check() { # $1=impl $2=root $3=RT-ID $4=param;未知 impl → die
|
|
|
1235
1235
|
deferred.refs_resolve) rtg_check_deferred_refs_resolve "$2" "$3" ;;
|
|
1236
1236
|
deferred.claims_resolve) rtg_check_deferred_claims_resolve "$2" "$3" ;;
|
|
1237
1237
|
handoff.criteria_declared) rtg_check_handoff_criteria_declared "$2" "$3" ;;
|
|
1238
|
-
*) rtg_die "判据 impl 未实现: $impl(rt-gates.yaml 与脚本不同步,fail-closed)" ;;
|
|
1238
|
+
*) rtg_die "判据 impl 未实现: ${impl}(rt-gates.yaml 与脚本不同步,fail-closed)" ;;
|
|
1239
1239
|
esac
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
@@ -1357,7 +1357,7 @@ rtg_run_scan_refs() {
|
|
|
1357
1357
|
local rc=0
|
|
1358
1358
|
rtg_xref_scan "$RTG_ROOT" "$RTG_RT" detail "$RTG_SCAN_RULES" "$exts" || rc=$?
|
|
1359
1359
|
if (( rc != 0 && rc != 10 )); then
|
|
1360
|
-
rtg_die "交叉引用扫描器内部错误(rc=$rc,见上方 stderr)"
|
|
1360
|
+
rtg_die "交叉引用扫描器内部错误(rc=${rc},见上方 stderr)"
|
|
1361
1361
|
fi
|
|
1362
1362
|
if (( rc == 10 )); then
|
|
1363
1363
|
printf 'rt-guard: ⚠ 交叉引用存在悬空(G110 告警级不阻断,exit 0)\n' >&2
|
|
@@ -70,6 +70,7 @@ trigger: always_on
|
|
|
70
70
|
- 代码修改完成后,必须展示 git status 和关键 diff
|
|
71
71
|
- 询问用户"修改已完成,是否提交?"
|
|
72
72
|
- 严禁未获用户确认前直接 Commit
|
|
73
|
+
- **Autopilot 例外**:当 RT `meta.yaml` 含 `autopilot: true` 且 GRV 已用户确认、`phase=implementing` 时,由机械 Gate(tests/lint/guard)替代本条「询问是否提交」;轮末用 `CONTINUE`/`DONE`/`blocked` + `rt-grv-continue.sh` 续跑,禁止停问是否继续。详见 `.aodw-next/02-workflow/autopilot-protocol.md`。
|
|
73
74
|
|
|
74
75
|
## 5. 兜底机制
|
|
75
76
|
如果你无法读取 .aodw-next/01-core/aodw-constitution.md,请立即停止并要求用户提供该文件。
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
- 代码修改完成后,必须展示 git status 和关键 diff
|
|
67
67
|
- 询问用户"修改已完成,是否提交?"
|
|
68
68
|
- 严禁未获用户确认前直接 Commit
|
|
69
|
+
- **Autopilot 例外**:当 RT `meta.yaml` 含 `autopilot: true` 且 GRV 已用户确认、`phase=implementing` 时,由机械 Gate(tests/lint/guard)替代本条「询问是否提交」;轮末用 `CONTINUE`/`DONE`/`blocked` + `rt-grv-continue.sh` 续跑,禁止停问是否继续。详见 `.aodw-next/02-workflow/autopilot-protocol.md`。
|
|
69
70
|
|
|
70
71
|
## 5. 兜底机制
|
|
71
72
|
如果你无法读取 .aodw-next/01-core/aodw-constitution.md,请立即停止并要求用户提供该文件。
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Autopilot+GRV 续跑——CONTINUE 立即下一 V,禁止停问是否继续
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Autopilot + GRV 续跑硬规则
|
|
7
|
+
|
|
8
|
+
当当前 RT 的 `meta.yaml` 含 `autopilot: true`,且 `rt-lite.md` §1.5 **G/R/V 已用户确认**(`grv_user_confirmed: true` 或 §1.5 明确「已确认」)时,本规则**覆盖**协同门禁里「每步先问用户」的停顿习惯。
|
|
9
|
+
|
|
10
|
+
## 必须立刻续跑(禁止停问)
|
|
11
|
+
|
|
12
|
+
本轮输出含 **`CONTINUE`**(或用户/脚本刚写入 `.last-signal=CONTINUE`)时:
|
|
13
|
+
|
|
14
|
+
1. **禁止**问「要不要继续 / 要不要做下一 V / 要不要提交」
|
|
15
|
+
2. **立即**执行:
|
|
16
|
+
```bash
|
|
17
|
+
bash .aodw-next/tools/rt-grv-continue.sh --rt <RT-ID> --signal CONTINUE
|
|
18
|
+
```
|
|
19
|
+
3. 按脚本打印的「外层续跑指令」读下一未勾选 V + `loop-prompt.md`,开下一轮
|
|
20
|
+
4. 一轮只做一个 V;验收通过再更新 `rt-plan` / `state.json` / `execution-log`
|
|
21
|
+
5. 本轮结束必须再输出 **CONTINUE** / **DONE** / **blocked** 三选一,并再次调用 `rt-grv-continue.sh --signal …`
|
|
22
|
+
|
|
23
|
+
## 必须停(允许且应当交还用户)
|
|
24
|
+
|
|
25
|
+
- 输出 **`DONE`**:收口摘要后停止
|
|
26
|
+
- 输出 **`blocked`** 或触发 §9.6 熔断:只给 A/B/C/D,禁止静默改 GRV 继续做
|
|
27
|
+
- `iteration >= max_iterations`:脚本会改为 `blocked`
|
|
28
|
+
|
|
29
|
+
## 与协同门禁的关系
|
|
30
|
+
|
|
31
|
+
| 场景 | 行为 |
|
|
32
|
+
|------|------|
|
|
33
|
+
| Autopilot + GRV 已确认 + implementing | 实现/验收/续跑**不问**;用 CONTINUE 驱动 |
|
|
34
|
+
| Autopilot 但 GRV 未确认 | **禁止**写业务代码;先共写 §1.5 |
|
|
35
|
+
| 非 Autopilot | 仍走协同门禁(方案确认、提交确认等) |
|
|
36
|
+
| blocked / DONE | 必须交还用户 |
|
|
37
|
+
|
|
38
|
+
## 信号语义(与 loop-prompt / goal-spec 一致)
|
|
39
|
+
|
|
40
|
+
- **CONTINUE**:还有未勾选 V,或本 V 未过验收需再一轮(同 V 重试也算 CONTINUE)
|
|
41
|
+
- **DONE**:全部 V 勾选且对应 R 验收通过
|
|
42
|
+
- **blocked**:契约失效、熔断、达上限、或无法在不改 GRV 下继续
|
|
@@ -73,6 +73,7 @@ tags: aodw, kernel
|
|
|
73
73
|
- 代码修改完成后,必须展示 git status 和关键 diff
|
|
74
74
|
- 询问用户"修改已完成,是否提交?"
|
|
75
75
|
- 严禁未获用户确认前直接 Commit
|
|
76
|
+
- **Autopilot 例外**:当 RT `meta.yaml` 含 `autopilot: true` 且 GRV 已用户确认、`phase=implementing` 时,由机械 Gate(tests/lint/guard)替代本条「询问是否提交」;轮末用 `CONTINUE`/`DONE`/`blocked` + `rt-grv-continue.sh` 续跑,禁止停问是否继续。详见 `autopilot-protocol.md` 与 Cursor 规则 `aodw-autopilot-continue`。
|
|
76
77
|
|
|
77
78
|
## 5. 兜底机制
|
|
78
79
|
如果你无法读取 @.aodw-next/01-core/aodw-constitution.md,请立即停止并要求用户提供该文件。
|
|
@@ -65,6 +65,7 @@ AODW 定义了文档驱动的开发流程:
|
|
|
65
65
|
- **Spec-Full**: 完整规范流程(复杂功能)
|
|
66
66
|
- **Spec-Lite**: 简化规范流程(小改动)
|
|
67
67
|
- **Spec-Lite Autopilot**: 在 `rt-lite.md` 外还必须具备 7 件套:`meta.yaml`、`rt-plan.md`、`state.json`、`loop-prompt.md`、`execution-log.md`、`autopilot-preflight.md`
|
|
68
|
+
- **Autopilot 续跑**: GRV 已确认后,轮末输出 `CONTINUE`/`DONE`/`blocked` 并执行 `bash .aodw-next/tools/rt-grv-continue.sh --rt <RT-ID> --signal …`;exit 0 则立即下一 V,禁止问「要不要继续」
|
|
68
69
|
|
|
69
70
|
### 3.3 分析阶段
|
|
70
71
|
- 影响分析 (impact.md)
|
|
@@ -54,7 +54,7 @@ AODW 规则系统采用渐进式加载策略。所有规则的元数据定义在
|
|
|
54
54
|
|---------|---------|------|
|
|
55
55
|
| **创建新 RT** | `.aodw-next/02-workflow/rt-manager.md` (Sec 1-4, 8-9)<br>`.aodw-next/01-core/ai-knowledge-rules.md` (Sec 3.1)<br>`.aodw-next/01-core/ai-interaction-rules.md` (Sec 1-4) | 生成 RT-ID,创建目录,Intake 流程 |
|
|
56
56
|
| **选择模式** | `.aodw-next/02-workflow/rt-manager.md` (Sec 5)<br>`.aodw-next/02-workflow/spec-full-profile.md`<br>`.aodw-next/02-workflow/spec-lite-profile.md` | 决策 Spec-Full/Spec-Lite,创建分支 |
|
|
57
|
-
| **Spec-Lite Autopilot** | `.aodw-next/02-workflow/spec-lite-autopilot-profile.md`<br>`.aodw-next/02-workflow/autopilot-protocol.md`<br>`.aodw-next/02-workflow/rt-autopilot-readiness.md`<br>`.aodw-next/01-core/git-discipline.md` | 全自动:机械 Gate + Ralph
|
|
57
|
+
| **Spec-Lite Autopilot** | `.aodw-next/02-workflow/spec-lite-autopilot-profile.md`<br>`.aodw-next/02-workflow/autopilot-protocol.md`<br>`.aodw-next/02-workflow/rt-autopilot-readiness.md`<br>`.aodw-next/01-core/git-discipline.md` | 全自动:机械 Gate + Ralph + GRV;轮末 `rt-grv-continue.sh` 续跑;强制 7 件套 |
|
|
58
58
|
| **工具初始化** | `.aodw-next/05-tooling/ai-tools-init-rules.md` | 初始化开发工具(ESLint、Prettier、Ruff、Black 等) |
|
|
59
59
|
| **项目概览初始化** | `.aodw-next/01-core/ai-project-overview-rules.md` | 初始化或完善项目概览信息(技术栈、架构、模块等) |
|
|
60
60
|
| **分析阶段** | `.aodw-next/03-standards/ai-coding-rules.md` (Sec 2-3)<br>`.aodw-next/01-core/ai-knowledge-rules.md` (Sec 3.4) | 影响分析、不变量检查,更新 impact.md, invariants.md |
|