aodw-skill 0.8.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/01-core/aodw-constitution.md +38 -1
- package/.aodw-next/01-core/test-discipline.md +124 -0
- 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 +63 -8
- package/.aodw-next/02-workflow/spec-full-profile.md +4 -3
- package/.aodw-next/02-workflow/spec-lite-autopilot-profile.md +6 -3
- package/.aodw-next/02-workflow/spec-lite-profile.md +1 -0
- package/.aodw-next/02-workflow/task-pack-projection.md +8 -0
- package/.aodw-next/04-auditors/aodw-development-auditor-rules.md +31 -13
- package/.aodw-next/04-auditors/aodw-full-auditor-rules.md +61 -39
- package/.aodw-next/04-auditors/aodw-requirement-auditor-rules.md +50 -30
- package/.aodw-next/README.md +63 -1
- package/.aodw-next/SKILL.md +3 -1
- package/.aodw-next/config.yaml +5 -0
- package/.aodw-next/manifest.yaml +42 -2
- package/.aodw-next/manifests/rt-gates.yaml +49 -2
- package/.aodw-next/project.yaml +41 -1
- package/.aodw-next/skills/handover-pack/SKILL.md +219 -0
- package/.aodw-next/skills/handover-pack/references/format-contract.md +124 -0
- package/.aodw-next/skills/handover-pack/scripts/_common.sh +92 -0
- package/.aodw-next/skills/handover-pack/scripts/check-closure.sh +163 -0
- package/.aodw-next/skills/handover-pack/scripts/next-number.sh +111 -0
- package/.aodw-next/skills/handover-pack/scripts/validate.py +260 -0
- package/.aodw-next/skills/handover-pack/templates/handover-template.md +99 -0
- package/.aodw-next/templates/aodw-kernel-loader-template.md +2 -1
- 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-meta-template.yaml +11 -0
- package/.aodw-next/templates/rt-plan.template.md +22 -12
- package/.aodw-next/templates/rt-state.template.json +1 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/RT-701/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/RT-702/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/RT-703/meta.yaml +4 -0
- package/.aodw-next/tools/fixtures/root-g101/RT/index.yaml +11 -0
- package/.aodw-next/tools/fixtures/root-g114-noledger/RT/RT-811/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114-noledger/RT/RT-812/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114-noledger/RT/index.yaml +7 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-801/meta.yaml +10 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-802/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-803/meta.yaml +7 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-804/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-805/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-806/meta.yaml +11 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-807/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-808/meta.yaml +6 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/RT-809/meta.yaml +9 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/_deferred-items.md +53 -0
- package/.aodw-next/tools/fixtures/root-g114g115/RT/index.yaml +21 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-503/handoff/unit-U1-input.md +19 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-503/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-503/retrospective.md +5 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-504/handoff/unit-U1-input.md +19 -0
- package/.aodw-next/tools/fixtures/root-u1/RT/RT-504/meta.yaml +5 -0
- package/.aodw-next/tools/fixtures/run-fixtures.sh +103 -0
- package/.aodw-next/tools/fixtures/run-skill-fixtures.sh +671 -0
- package/.aodw-next/tools/install-skills.sh +228 -0
- package/.aodw-next/tools/rt-grv-continue.sh +183 -0
- package/.aodw-next/tools/rt-guard.sh +172 -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/bin/aodw.js +11 -0
- package/package.json +4 -2
|
@@ -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 |
|
package/bin/aodw.js
CHANGED
|
@@ -442,6 +442,17 @@ async function runInit() {
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
async function runUpdate() {
|
|
445
|
+
// 升级保护:先备份现有规范目录,再执行更新(copyCoreWithPreservation 仅保留
|
|
446
|
+
// 06-project/ 与 tools-status.yaml,改过核心规则的项目需靠备份找回定制)
|
|
447
|
+
const targetCore = path.join(process.cwd(), CORE_DIRNAME);
|
|
448
|
+
if (fs.existsSync(targetCore)) {
|
|
449
|
+
const stamp = new Date().toISOString().replace(/[-:T]/g, '').slice(0, 13); // YYYYMMDDHHmm
|
|
450
|
+
const backupPath = path.join(process.cwd(), `${CORE_DIRNAME}.backup-${stamp}`);
|
|
451
|
+
await fs.copy(targetCore, backupPath);
|
|
452
|
+
console.log(chalk.yellow(`📦 升级保护:已备份现有规范到 ${path.basename(backupPath)}`));
|
|
453
|
+
console.log(chalk.yellow(' 注意:核心规则文件会被新版覆盖(仅 06-project/ 与 tools-status.yaml 保留);'));
|
|
454
|
+
console.log(chalk.yellow(' 若本项目定制过核心规则,请在升级后 diff 备份目录找回定制。'));
|
|
455
|
+
}
|
|
445
456
|
console.log(chalk.blue('🔄 正在更新 AODW-Next...'));
|
|
446
457
|
await runInit();
|
|
447
458
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aodw-skill",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Next-channel CLI tool to scaffold AODW in your project",
|
|
5
5
|
"main": "bin/aodw.js",
|
|
6
6
|
"files": [
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
"aodw-skill": "bin/aodw.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"test": "
|
|
15
|
+
"test": "node test/template-assets.test.mjs",
|
|
16
|
+
"test:gates": "bash ../templates/.aodw-next/tools/rt-guard.sh --self-test",
|
|
17
|
+
"test:skills": "bash ../templates/.aodw-next/tools/fixtures/run-skill-fixtures.sh",
|
|
16
18
|
"pack:check": "npm pack --dry-run"
|
|
17
19
|
},
|
|
18
20
|
"keywords": [
|