@buildr-ai/buildr 0.1.0-rc.12 → 0.1.0-rc.14
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/README.md +1 -1
- package/application-payload.json +49 -43
- package/installation-origin.json +5 -5
- package/package.json +1 -1
- package/payload/product/README.md +1 -1
- package/payload/product/package/bootstrap/guide.md +4 -3
- package/payload/product/package/targets/runtime/skills/buildr/SKILL.md +6 -5
- package/payload/product/package/targets/workspace/components/buildr/openspec/component.yml +1 -1
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md +3 -1
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md +2 -2
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-update-sidebar.md +1 -1
- package/payload/product/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md +12 -5
- package/payload/product/package/targets/workspace/skills/buildr/task-development/SKILL.md +9 -3
- package/payload/product/package/targets/workspace/skills/buildr/task-finish/SKILL.md +6 -5
- package/payload/product/package/targets/workspace/skills/buildr/task-retrospective/SKILL.md +9 -1
- package/payload/product/package/targets/workspace/skills/buildr/task-triage/SKILL.md +5 -1
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-development/v2.md +4 -3
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-finish/v1.md +2 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-retrospective/v2.md +5 -3
- package/payload/product/package.json +1 -1
- package/payload/product/src/infrastructure/sqlite/migrations/0015_add_task_execution_unknown_outcome.sql +143 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-0hJSYQfh.css +1 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-1ptu2Nm_.js +38 -0
- package/payload/product/src/interfaces/local-app/web-dist/index.html +2 -2
- package/payload/runtime/read-worker.cjs +2900 -1450
- package/runtime/buildr.cjs +3463 -1833
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-B-Yywckm.js +0 -38
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-B3Tr91Ly.css +0 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ buildr init --agent <agent> --target . --name <name> --profile <personal|team|co
|
|
|
45
45
|
buildr web --target .
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
当前 package 候选版本为 `0.1.0-rc.
|
|
48
|
+
当前 package 候选版本为 `0.1.0-rc.13`;可安装版本与 `next` 指向始终以 npm 官方 Registry 为准。
|
|
49
49
|
|
|
50
50
|
`init --agent` 以最终 doctor 为技术 onboarding 证据;成功后仍应由 Agent 根据真实 Project/Service 状态完成简短交接。深入命令和 runtime 细节见 [CLI Reference](docs/cli-reference.md) 与 [Runtime Adapters](docs/agent-runtime-adapters.md)。
|
|
51
51
|
|
package/application-payload.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "buildr.application-payload/v1",
|
|
3
3
|
"packageName": "@buildr-ai/buildr",
|
|
4
|
-
"buildrVersion": "0.1.0-rc.
|
|
4
|
+
"buildrVersion": "0.1.0-rc.14",
|
|
5
5
|
"protocolIdentity": "buildr.web-protocol/v1",
|
|
6
|
-
"sourceCommit": "
|
|
6
|
+
"sourceCommit": "5b5e9423109a7d3f82eac273fb4a08bfbed798a5",
|
|
7
7
|
"enginesNode": ">=24.15.0 <25",
|
|
8
8
|
"productionDependencies": [
|
|
9
9
|
{
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"path": "resources/product/README.md",
|
|
31
31
|
"mode": 420,
|
|
32
32
|
"size": 4261,
|
|
33
|
-
"sha256": "
|
|
33
|
+
"sha256": "4966b2e3603db18651e052458ab998a1bf2dacc7dbbcd5551789f7ae1e429a74"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"path": "resources/product/package.json",
|
|
37
37
|
"mode": 420,
|
|
38
38
|
"size": 748,
|
|
39
|
-
"sha256": "
|
|
39
|
+
"sha256": "5ffa6e4226dba1d459124253d2b23aaddd4940ac261461dcd3f79f6eff966bbd"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "resources/product/package/README.md",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
{
|
|
54
54
|
"path": "resources/product/package/bootstrap/guide.md",
|
|
55
55
|
"mode": 420,
|
|
56
|
-
"size":
|
|
57
|
-
"sha256": "
|
|
56
|
+
"size": 7881,
|
|
57
|
+
"sha256": "24d57fa7fcf02b049981335cdde1dca3feae2905b16647a6ef120e766cd5eb68"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "resources/product/package/launchers/assets/Buildr.icns",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
{
|
|
78
78
|
"path": "resources/product/package/targets/runtime/skills/buildr/SKILL.md",
|
|
79
79
|
"mode": 420,
|
|
80
|
-
"size":
|
|
81
|
-
"sha256": "
|
|
80
|
+
"size": 33739,
|
|
81
|
+
"sha256": "ef7aa8d001e2d82cff7a1478b2c4741202a78919f97fbc1dbe26de1993de2cd4"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"path": "resources/product/package/targets/workspace/AGENTS.md",
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
"path": "resources/product/package/targets/workspace/components/buildr/openspec/component.yml",
|
|
97
97
|
"mode": 420,
|
|
98
98
|
"size": 4789,
|
|
99
|
-
"sha256": "
|
|
99
|
+
"sha256": "56229d831d200e3fb9c85be0d36018b9d53d7e55a9fc8e15a15130f2266d8642"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"path": "resources/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md",
|
|
103
103
|
"mode": 420,
|
|
104
|
-
"size":
|
|
105
|
-
"sha256": "
|
|
104
|
+
"size": 4797,
|
|
105
|
+
"sha256": "92cd848db8b5cdff8f222d3a6769a1c94d68ece1d8f0b23cf76f1d0c9b70e2c4"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"path": "resources/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-archive-converge.md",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
{
|
|
120
120
|
"path": "resources/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md",
|
|
121
121
|
"mode": 420,
|
|
122
|
-
"size":
|
|
123
|
-
"sha256": "
|
|
122
|
+
"size": 4272,
|
|
123
|
+
"sha256": "d99b4fcf6af8f5f6891bb6199c741fb91d05d3d5dc3d114f75031a973c7b24c5"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
"path": "resources/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-sync-converge.md",
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
{
|
|
132
132
|
"path": "resources/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-update-sidebar.md",
|
|
133
133
|
"mode": 420,
|
|
134
|
-
"size":
|
|
135
|
-
"sha256": "
|
|
134
|
+
"size": 2595,
|
|
135
|
+
"sha256": "1a173b9fd1ab2d4a306e5d9989dd94af3dcb7f4c5e846b7880aa596f88ba0070"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"path": "resources/product/package/targets/workspace/gitattributes",
|
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
{
|
|
192
192
|
"path": "resources/product/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md",
|
|
193
193
|
"mode": 420,
|
|
194
|
-
"size":
|
|
195
|
-
"sha256": "
|
|
194
|
+
"size": 7181,
|
|
195
|
+
"sha256": "3b744f7e9e9702462260b1895c3cae74b1c5a94d824e6bcbf0d70fb4bb141057"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"path": "resources/product/package/targets/workspace/skills/buildr/project-testing/SKILL.md",
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
{
|
|
210
210
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-development/SKILL.md",
|
|
211
211
|
"mode": 420,
|
|
212
|
-
"size":
|
|
213
|
-
"sha256": "
|
|
212
|
+
"size": 15707,
|
|
213
|
+
"sha256": "ef1f7927e5776dc1c60c2ab05df735d4f46a6b7b16bd988082650be9bf1b737a"
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-environment/SKILL.md",
|
|
@@ -245,8 +245,8 @@
|
|
|
245
245
|
{
|
|
246
246
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-finish/SKILL.md",
|
|
247
247
|
"mode": 420,
|
|
248
|
-
"size":
|
|
249
|
-
"sha256": "
|
|
248
|
+
"size": 8701,
|
|
249
|
+
"sha256": "ee3c2483f308ad5d7e92b07e54fb65a71c67cfee42638f3bcb48bd9bf85a9481"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
252
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-manager/SKILL.md",
|
|
@@ -263,8 +263,8 @@
|
|
|
263
263
|
{
|
|
264
264
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-retrospective/SKILL.md",
|
|
265
265
|
"mode": 420,
|
|
266
|
-
"size":
|
|
267
|
-
"sha256": "
|
|
266
|
+
"size": 8586,
|
|
267
|
+
"sha256": "806baff1bdaa9a58603a15ce9b6fcde9c9871a65608f9790b14089bd32335220"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-retrospective/agents/openai.yaml",
|
|
@@ -287,8 +287,8 @@
|
|
|
287
287
|
{
|
|
288
288
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-triage/SKILL.md",
|
|
289
289
|
"mode": 420,
|
|
290
|
-
"size":
|
|
291
|
-
"sha256": "
|
|
290
|
+
"size": 15258,
|
|
291
|
+
"sha256": "8e522f8da23815094916b585ff8e8227a1402c59617e98bbd8e999e8fc31659f"
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "resources/product/package/targets/workspace/skills/buildr/task-verification/SKILL.md",
|
|
@@ -347,8 +347,8 @@
|
|
|
347
347
|
{
|
|
348
348
|
"path": "resources/product/package/targets/workspace/skills/contracts/buildr/task-development/v2.md",
|
|
349
349
|
"mode": 420,
|
|
350
|
-
"size":
|
|
351
|
-
"sha256": "
|
|
350
|
+
"size": 10793,
|
|
351
|
+
"sha256": "ee28c86a960c76925a36fa01a67159052152e54d5bed79aa02bf68a92d3e3a75"
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
"path": "resources/product/package/targets/workspace/skills/contracts/buildr/task-environment/v1.md",
|
|
@@ -359,8 +359,8 @@
|
|
|
359
359
|
{
|
|
360
360
|
"path": "resources/product/package/targets/workspace/skills/contracts/buildr/task-finish/v1.md",
|
|
361
361
|
"mode": 420,
|
|
362
|
-
"size":
|
|
363
|
-
"sha256": "
|
|
362
|
+
"size": 15945,
|
|
363
|
+
"sha256": "978688ce7410808251b9b516da70a8f43b2ac42398342f00386a528799ec9195"
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
"path": "resources/product/package/targets/workspace/skills/contracts/buildr/task-record/v2.md",
|
|
@@ -371,8 +371,8 @@
|
|
|
371
371
|
{
|
|
372
372
|
"path": "resources/product/package/targets/workspace/skills/contracts/buildr/task-retrospective/v2.md",
|
|
373
373
|
"mode": 420,
|
|
374
|
-
"size":
|
|
375
|
-
"sha256": "
|
|
374
|
+
"size": 3990,
|
|
375
|
+
"sha256": "57319ab0a7830039947f3b31e4a9c6c84f79de776385c6dcf4ceb94db08950d5"
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
378
|
"path": "resources/product/package/targets/workspace/skills/contracts/buildr/task-review/v1.md",
|
|
@@ -518,6 +518,12 @@
|
|
|
518
518
|
"size": 513,
|
|
519
519
|
"sha256": "4320827d8feb6aec630306c296f94f5247d314559586607354412bc0325db37a"
|
|
520
520
|
},
|
|
521
|
+
{
|
|
522
|
+
"path": "resources/product/src/infrastructure/sqlite/migrations/0015_add_task_execution_unknown_outcome.sql",
|
|
523
|
+
"mode": 420,
|
|
524
|
+
"size": 6709,
|
|
525
|
+
"sha256": "0c02f1a070a7c9e9250d28fe8f76bb1450d06ab93a8cbbf079dc33dd3d2285c4"
|
|
526
|
+
},
|
|
521
527
|
{
|
|
522
528
|
"path": "resources/product/src/interfaces/local-app/web-dist/assets/antd-r61vN4p8.js",
|
|
523
529
|
"mode": 420,
|
|
@@ -525,16 +531,16 @@
|
|
|
525
531
|
"sha256": "4eefcbb479b68eaa9776fd936d8a589d13123113e1f675963a39b97160a46c68"
|
|
526
532
|
},
|
|
527
533
|
{
|
|
528
|
-
"path": "resources/product/src/interfaces/local-app/web-dist/assets/index-
|
|
534
|
+
"path": "resources/product/src/interfaces/local-app/web-dist/assets/index-0hJSYQfh.css",
|
|
529
535
|
"mode": 420,
|
|
530
|
-
"size":
|
|
531
|
-
"sha256": "
|
|
536
|
+
"size": 32996,
|
|
537
|
+
"sha256": "194f2ab231dec56b1c63fafbbea5964b8ec2770a5564a6fbaed3a40dc749e2a1"
|
|
532
538
|
},
|
|
533
539
|
{
|
|
534
|
-
"path": "resources/product/src/interfaces/local-app/web-dist/assets/index-
|
|
540
|
+
"path": "resources/product/src/interfaces/local-app/web-dist/assets/index-1ptu2Nm_.js",
|
|
535
541
|
"mode": 420,
|
|
536
|
-
"size":
|
|
537
|
-
"sha256": "
|
|
542
|
+
"size": 359617,
|
|
543
|
+
"sha256": "dcda5782f9bec6e0c32fda14b1b20702b35217da1d26b57ea112271ba8b077df"
|
|
538
544
|
},
|
|
539
545
|
{
|
|
540
546
|
"path": "resources/product/src/interfaces/local-app/web-dist/assets/react-CRF1mzbM.js",
|
|
@@ -546,20 +552,20 @@
|
|
|
546
552
|
"path": "resources/product/src/interfaces/local-app/web-dist/index.html",
|
|
547
553
|
"mode": 420,
|
|
548
554
|
"size": 836,
|
|
549
|
-
"sha256": "
|
|
555
|
+
"sha256": "5a3dcd2c654b87e8c382b59dafc26941293fce386181b856d14f9cd3c4f86cf5"
|
|
550
556
|
},
|
|
551
557
|
{
|
|
552
558
|
"path": "resources/runtime/read-worker.cjs",
|
|
553
559
|
"mode": 420,
|
|
554
|
-
"size":
|
|
555
|
-
"sha256": "
|
|
560
|
+
"size": 2372543,
|
|
561
|
+
"sha256": "09f68b909c03da546bd35f86533dbf9550d126f24786e8aeba4a83cd30282351"
|
|
556
562
|
},
|
|
557
563
|
{
|
|
558
564
|
"path": "runtime/buildr.cjs",
|
|
559
565
|
"mode": 420,
|
|
560
|
-
"size":
|
|
561
|
-
"sha256": "
|
|
566
|
+
"size": 2672951,
|
|
567
|
+
"sha256": "3222aef48861c70e3663df195aff4bda465088fb2fe8b9dd35cb38c71009a473"
|
|
562
568
|
}
|
|
563
569
|
],
|
|
564
|
-
"applicationPayloadDigest": "sha256-
|
|
570
|
+
"applicationPayloadDigest": "sha256-0e10bb1ca0b7ae9d8c1930c143a7ac78c6a0659a31e0f7dac44d76abf785e22c"
|
|
565
571
|
}
|
package/installation-origin.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"channel": "npm",
|
|
4
4
|
"runtimeRole": "host",
|
|
5
5
|
"package": "@buildr-ai/buildr",
|
|
6
|
-
"version": "0.1.0-rc.
|
|
6
|
+
"version": "0.1.0-rc.14",
|
|
7
7
|
"protocolIdentity": "buildr.web-protocol/v1",
|
|
8
|
-
"applicationPayloadDigest": "sha256-
|
|
9
|
-
"sourceCommit": "
|
|
8
|
+
"applicationPayloadDigest": "sha256-0e10bb1ca0b7ae9d8c1930c143a7ac78c6a0659a31e0f7dac44d76abf785e22c",
|
|
9
|
+
"sourceCommit": "5b5e9423109a7d3f82eac273fb4a08bfbed798a5",
|
|
10
10
|
"sourceTag": null,
|
|
11
|
-
"installUnit": "@buildr-ai/buildr@0.1.0-rc.
|
|
12
|
-
"ownershipIdentity": "sha256-
|
|
11
|
+
"installUnit": "@buildr-ai/buildr@0.1.0-rc.14",
|
|
12
|
+
"ownershipIdentity": "sha256-7e8d29655b7d20b414db2eb568cd1a8485f0cdf23a7d4a352b6ad46deb97878b"
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ buildr init --agent <agent> --target . --name <name> --profile <personal|team|co
|
|
|
45
45
|
buildr web --target .
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
当前 package 候选版本为 `0.1.0-rc.
|
|
48
|
+
当前 package 候选版本为 `0.1.0-rc.13`;可安装版本与 `next` 指向始终以 npm 官方 Registry 为准。
|
|
49
49
|
|
|
50
50
|
`init --agent` 以最终 doctor 为技术 onboarding 证据;成功后仍应由 Agent 根据真实 Project/Service 状态完成简短交接。深入命令和 runtime 细节见 [CLI Reference](docs/cli-reference.md) 与 [Runtime Adapters](docs/agent-runtime-adapters.md)。
|
|
51
51
|
|
|
@@ -17,10 +17,11 @@ workspace 尚未初始化时,用一个高层命令完成源资产、Buildr Ski
|
|
|
17
17
|
buildr init --agent <agent> --target <dir> --name <name> --profile <personal|team|company>
|
|
18
18
|
```
|
|
19
19
|
技术初始化完成后,不把 `project create` 命令直接交给用户。Agent 应读取最终 doctor 和真实 Workspace 状态,用普通语言完成一次首次使用交接:Workspace 是人和 Agent 共同工作的顶层目录;Project 是业务、产品、系统或长期工作;Service 只在需要代码仓、应用、模块或可执行资产时接入。没有 Project 时询问用户要长期管理什么;唯一 Project 没有 Service 时询问是接入已有资产还是直接开始 Project 范围工作;范围唯一时直接邀请用户描述第一项真实目标;有多个候选时只询问消除范围歧义所必需的问题。不要生成 `WELCOME.md`、持久 checklist 或固定教学 Rule。
|
|
20
|
-
已有 workspace
|
|
20
|
+
已有 workspace 中,用户要求完整检查 Buildr、检查安装状态或“更新 Buildr”时,先运行 `buildr update check --json` 同时读取 GA 正式版与 RC 候选版。
|
|
21
|
+
Agent 分别说明 `stable` 与 `candidate` 的可用更新,并让用户选择 GA、RC 或暂不更新。只有用户明确选择后才执行对应命令;不得自动切轨或降级:
|
|
21
22
|
|
|
22
23
|
```bash
|
|
23
|
-
buildr update
|
|
24
|
+
buildr update --track <stable|candidate>
|
|
24
25
|
command -v buildr
|
|
25
26
|
buildr skill install <agent> --target <workspace-root>
|
|
26
27
|
```
|
|
@@ -30,7 +31,7 @@ buildr skill install <agent> --target <workspace-root>
|
|
|
30
31
|
buildr sync <agent> --target <dir>
|
|
31
32
|
```
|
|
32
33
|
|
|
33
|
-
用户明确只更新 CLI
|
|
34
|
+
用户明确只更新 CLI 时,在选定轨道后只运行对应 `buildr update --track ...`,不追加 Skill install 或 workspace sync。Git 更新属于 Agent 对 workspace 更新意图的编排,不是 `buildr sync` 的隐式行为;`sync` 包含产品能力同步、产品入口 Buildr Skill 安装、从 `.` 递归投射各层 `AGENTS.md` 的当前 Agent runtime render 和 doctor 复查。
|
|
34
35
|
只需要在未初始化目录单独恢复产品入口 Skill 时使用专项入口:
|
|
35
36
|
|
|
36
37
|
```bash
|
|
@@ -8,7 +8,7 @@ description: 在 Buildr workspace 中安装、更新或同步 Buildr、更新或
|
|
|
8
8
|
|
|
9
9
|
Buildr 是为组织和 Agent 构建的工作资产治理系统。它把散落在员工个人经验、文档、仓库和工具中的工作事实与工作方法,沉淀为可共享、可审计、可适配不同 Agent 的工作区(workspace)源资产。工作事实回答“干的是什么”,工作方法回答“怎么干”;Rules、Skills、Commands、Projects、Services 和专业能力等是当前示例,不是工作资产概念的封闭边界。Agent 是这些资产的主要使用者;人通过 Agent 表达目标、提供业务判断并确认重要决策。
|
|
10
10
|
|
|
11
|
-
Buildr workspace 是组织(Organization/Root)资产根;Agent runtime 是面向当前 Agent 的可重建入口。Buildr 不成为另一个 Agent,也不接管 Agent 的理解、推理和任务执行。Buildr 组织并投射 Agent 可发现、可选择、可使用的工作资产,不替 Agent 构造 context window;Agent
|
|
11
|
+
Buildr workspace 是组织(Organization/Root)资产根;Agent runtime 是面向当前 Agent 的可重建入口。Buildr 不成为另一个 Agent,也不接管 Agent 的理解、推理和任务执行。Buildr 组织并投射 Agent 可发现、可选择、可使用的工作资产,不替 Agent 构造 context window;Agent 根据当前任务发现并选择相关内容,形成任务上下文并推进工作。Workspace 不保存本机版本偏好;用户级 Buildr Data Root 只保存避免重复版本提醒所需的最小状态。
|
|
12
12
|
|
|
13
13
|
Agent 使用本 Skill 判断用户意图属于哪类 Buildr 资产,并通过 Buildr CLI 完成维护、诊断和按需渲染。事实状态以 `buildr runtime list --json`、`buildr doctor --agent <agent> --target <dir> --json`、manifest、CLI 帮助和 CLI 错误输出为准。
|
|
14
14
|
组织资产先改变源资产(使用 Buildr CLI),再同步 Agent runtime(使用 render/sync)。
|
|
@@ -22,7 +22,7 @@ Agent 是 Buildr 功能的默认操作入口。Agent 能在当前工具、权限
|
|
|
22
22
|
3. 宿主身份无法和支持列表对齐时,停止需要 `<agent>` 的 Buildr 操作并请求确认;不得借用其他 adapter 作为 fallback。
|
|
23
23
|
4. 判断 workspace 是否已初始化。未初始化时运行 `buildr init --agent <agent> --target <dir> --name <name> --profile <personal|team|company>`,并使用命令内置的最终 doctor 结果;已有 workspace 运行 `buildr doctor --agent <agent> --target <dir> --json` 建立事实基线。不要省略 `--agent`。
|
|
24
24
|
5. 根据用户目标和 doctor 结果选择资产类型:组织(Organization/Root)、项目(Project)、服务(Service)、组件(Components)、规则(Rules)、命令(Commands)、技能(Skills)、内置能力(Builtins)、工作能力适配或 Agent runtime 渲染。用户要求采用内部流程、调整工作方式、修改或替换 Skill 行为时,不要求用户指出 Skill/capability;先加载 `capability-adaptation` 判断是否触达或产生跨 Skill 稳定依赖边界。
|
|
25
|
-
6.
|
|
25
|
+
6. 执行对应维护动作。用户要求完整检查 Buildr 或检查安装状态时,以及用户要求“更新 Buildr”或“同步 Buildr”时,先运行 `buildr update check --json`,分别说明 `stable` 对应的 GA 正式版和 `candidate` 对应的 RC 候选版。存在可用更新时,询问用户选择 GA、RC 或暂不更新;只有用户明确选择后才运行对应 `buildr update --track stable|candidate`,不得自动切轨或降级。更新成功后重新解析当前 `buildr` 入口;若原意图是“更新 Buildr”或“同步 Buildr”,再运行 `buildr skill install <agent> --target <dir>`,不因此同步整个 workspace。用户明确要求“只更新 CLI”时只执行所选轨道更新,不追加 Skill install。用户要求“更新 workspace”或“同步 workspace”时,先判断 workspace root 是否由 Git 管理:如果是,解析 `buildr.git-operations/v1` 并读取 selected provider,向它提供明确 workspace、upstream 和 update operation;安全更新本地 checkout 后直接运行 `buildr sync <agent> --target <dir>`;如果不是 Git workspace,直接运行 sync。该意图不先更新 CLI。required capability blocked 时停止并报告 reason/nextActions,不回退到已删除 builtin 或手写 Git route。update 受阻时不得继续用旧 CLI 安装 Buildr Skill。
|
|
26
26
|
7. 状态变更后确认最新 doctor 结果;`init --agent`、`sync` 和 Component install/uninstall 已包含最终 doctor,其他变更再运行 `buildr doctor --agent <agent> --target <dir> --json`。只有 doctor 指向专项问题,或用户明确要求细查时,才运行 `commands check` 或 `runtime check`。
|
|
27
27
|
8. 优先使用 Buildr CLI;复杂参数以当前 manifest、CLI 帮助和 CLI 错误输出为准。
|
|
28
28
|
## 任务路由
|
|
@@ -34,12 +34,13 @@ Agent runtime 先根据 Skill description 和用户目标发现入口 Skill。
|
|
|
34
34
|
|---|---|
|
|
35
35
|
| 安装 Buildr | 只从 npm Registry 安装 npm package;仅在用户明确需要时显式安装本机图形 Launcher;尚无目标 Workspace 时不安装 Buildr Skill |
|
|
36
36
|
| 初始化、修复或诊断 Buildr workspace | 组织(Organization/Root) |
|
|
37
|
-
|
|
|
37
|
+
| 检查、更新或同步 Buildr | 先读取 GA/RC 双轨道结果并让用户选择;明确更新后执行对应 CLI update + 产品入口 Buildr Skill install |
|
|
38
38
|
| 更新或同步 Git workspace | Buildr Skill 向 `buildr.git-operations/v1` selected provider 提供明确 workspace、upstream 和 update operation;更新后直接 sync |
|
|
39
39
|
| 恢复内置能力 | 内置能力(Builtins)/ Agent runtime 渲染 |
|
|
40
40
|
| 接入业务、产品线、系统或长期工作单元 | 项目(Project) |
|
|
41
41
|
| 接入代码仓、服务仓或可执行资产 | 服务(Service) |
|
|
42
42
|
| 查看待办/正式 Task、Parent/Child、复盘来源与各专业当前状态 | `buildr.task-record/v2` 及 Development、Review、Verification 公开 read model;Buildr Web 动态投影 |
|
|
43
|
+
| 启动或继续已有active Formal Task并确定当前执行根、writer与next action | `buildr task next <task-id> --json`;只加载返回的当前capability/provider,`required`先恢复安全前置,`recommended`可按实际情况调整 |
|
|
43
44
|
| 创建或检查opt-in Parent Plan、绑定Child Contribution、显式reconcile范围变化或记录Parent最终集成验收 | `buildr.task-development/v2` selected provider + `task parent inspect|record|bind-child|reconcile|accept`;progress只由Application动态派生 |
|
|
44
45
|
| 记录、查看或处理已结束Task的Agent执行效率复盘 | `buildr.task-retrospective/v2` selected provider;有效方向由todo/active Task承接,不进入生命周期门禁 |
|
|
45
46
|
| 设计或优化 Project / Service 测试框架、划分测试边界、编排场景,或为实现任务开发测试 | `project-testing` Skill;无 Result、Receipt 或 provider contract |
|
|
@@ -90,7 +91,7 @@ Agent runtime 先根据 Skill description 和用户目标发现入口 Skill。
|
|
|
90
91
|
### Builtins
|
|
91
92
|
|
|
92
93
|
- Buildr 内置能力包括 required core Rule、optional Skills 和内置 Command 声明。
|
|
93
|
-
- 只更新 Buildr CLI
|
|
94
|
+
- 只更新 Buildr CLI 自身:先用 `buildr update check --json` 同时读取 GA 正式版与 RC 候选版,用户明确选择后运行 `buildr update --track stable|candidate`。不自动切轨、不自动降级;命令不读取 workspace。
|
|
94
95
|
- 安装或修复当前 CLI 携带的产品入口 Buildr Skill:`buildr skill install <agent> --target <dir>`;“更新 Buildr”或“同步 Buildr”默认在 update 后使用此入口,不扩大为 workspace sync。
|
|
95
96
|
- 同步 workspace 产品源能力并准备当前 Agent runtime:`buildr sync <agent> --target <dir>`。
|
|
96
97
|
- 查看 workspace 内置能力状态:`buildr builtin list --target <dir> --json` 或最终 doctor。
|
|
@@ -155,7 +156,7 @@ Agent runtime 先根据 Skill description 和用户目标发现入口 Skill。
|
|
|
155
156
|
- Adapter 只生成 runtime-specific 声明式计划;Buildr 通用 core 统一负责 Component 完整性后的 source assembly、计划验证、冲突预检、写入、清理和诊断。
|
|
156
157
|
- 用户要求增加新 adapter 时,先从目标 Agent 收集能直接映射到 trait descriptor 的最小 intake:identity/surface、Rules kind、Skills root、activation、安装/版本 checker 和最小黑盒证据;不要调查与 adapter 无关的产品功能。
|
|
157
158
|
- 新 adapter 属于 Buildr 产品 change-flow:每个 runtime 使用独立 descriptor、capability evidence 和 tests;只在现有 primitive 无法表达时增加新的静态 implementation,不能 alias 或 fallback 到其他 adapter。
|
|
158
|
-
- 用户说“更新 Buildr”或“同步 Buildr
|
|
159
|
+
- 用户说“更新 Buildr”或“同步 Buildr”时,先读取 `buildr update check --json`,说明 GA/RC 可用更新并等待用户选择;选择后运行对应 `buildr update --track stable|candidate`,再用新入口执行 `buildr skill install <agent> --target <dir>`。用户说“只更新 CLI”时不追加 Skill install。用户说“更新 workspace”或“同步 workspace”时,Git 管理的 workspace 由 Buildr Skill 向 Git Operations 提供明确 workspace、upstream 和 update operation,安全更新本地 checkout 后运行 `buildr sync <agent> --target <dir>`,非 Git workspace 直接 sync,且两者都不先更新 CLI。sync 只同步 workspace destination。协作者提交使canonical checkout前进、但当前会话没有matching Formal Finish Result时,固定归类为普通Workspace update;本地没有协作者Task是正常事实,不得从commit author、Task缺失、HEAD、dirty tree或Doctor runtime drift反推本地Finish或`buildr-self-bootstrap-sync`。post-transition Doctor仅把actionable findings归因于当前Agent managed workspace/runtime projection stale时,执行一次`buildr sync <agent> --target <workspace-root>`并消费最终Doctor;Doctor包含CLI、Component、Command、Git或其他非sync blocker时,不能把一次sync宣称为完整修复。普通workspace sync不创建Task、Environment、Verification、Candidate、Finish Result或self-bootstrap evidence。
|
|
159
160
|
- doctor 指出特定 Rules scope runtime 问题时按 canonical workspace 相对 scope 运行 `render`、`rules render` 或 `runtime check`;Skills 始终从 workspace authority 处理 destination,不折叠为 legacy Project Skill source scope。
|
|
160
161
|
- `runtime check` 是专项 runtime 细查入口;只有 doctor 指向具体 runtime 问题,或用户明确要求细查时运行。
|
|
161
162
|
|
|
@@ -62,4 +62,4 @@ contributions:
|
|
|
62
62
|
capability: buildr.current-knowledge-maintenance
|
|
63
63
|
version: 1
|
|
64
64
|
mode: required
|
|
65
|
-
integrity: ["skills/openspec/openspec-explore=sha256-fbfde4b11433722d42d8517000020503f2a33daba6cb4f1cf46da31cbe82e381","skills/openspec/openspec-propose=sha256-12ce4148333e54a3f7fb171511fa510e9030322cbd44e3ce94c68e9322cf893e","skills/openspec/openspec-update-change=sha256-ee6154a39a8ba71c88ee517626834cc35bd134d250d2bc138ac8cff1dd32496d","skills/openspec/openspec-apply-change=sha256-2bc0d51408640c259f8b4608b6aa9c5f4dd736ec1a353546157a757f74b3d613","skills/openspec/openspec-sync-specs=sha256-c3971fa0e66489c123d9118410c404009148b40e4801d4879924d07655e05925","skills/openspec/openspec-archive-change=sha256-71b27be3cccf568fba36589da3ec43dc1c98032bf21b5873ce29f3e593945ca9","skills/buildr/openspec-contract-guard=sha256-
|
|
65
|
+
integrity: ["skills/openspec/openspec-explore=sha256-fbfde4b11433722d42d8517000020503f2a33daba6cb4f1cf46da31cbe82e381","skills/openspec/openspec-propose=sha256-12ce4148333e54a3f7fb171511fa510e9030322cbd44e3ce94c68e9322cf893e","skills/openspec/openspec-update-change=sha256-ee6154a39a8ba71c88ee517626834cc35bd134d250d2bc138ac8cff1dd32496d","skills/openspec/openspec-apply-change=sha256-2bc0d51408640c259f8b4608b6aa9c5f4dd736ec1a353546157a757f74b3d613","skills/openspec/openspec-sync-specs=sha256-c3971fa0e66489c123d9118410c404009148b40e4801d4879924d07655e05925","skills/openspec/openspec-archive-change=sha256-71b27be3cccf568fba36589da3ec43dc1c98032bf21b5873ce29f3e593945ca9","skills/buildr/openspec-contract-guard=sha256-47f664a032fe17968dedfefbc4ef305eff22e5b243daa6a41aad45c77aa97362","commands/buildr/openspec/manifest.yml=sha256-beb4526c7109ada72b34394e8ce6fe7823cbd4ff695e376da9709e87439fe1b9","components/buildr/openspec/contributions/openspec-explore-terminology.md=sha256-e9c0e2382be125b68f250479f546ba49c25bf892b8ea6442196cd70cb53e106b","components/buildr/openspec/contributions/openspec-propose-sidebar.md=sha256-d99b4fcf6af8f5f6891bb6199c741fb91d05d3d5dc3d114f75031a973c7b24c5","components/buildr/openspec/contributions/openspec-update-sidebar.md=sha256-1a173b9fd1ab2d4a306e5d9989dd94af3dcb7f4c5e846b7880aa596f88ba0070","components/buildr/openspec/contributions/openspec-apply-sidebar.md=sha256-92cd848db8b5cdff8f222d3a6769a1c94d68ece1d8f0b23cf76f1d0c9b70e2c4","components/buildr/openspec/contributions/openspec-sync-converge.md=sha256-bbbb0737004a5cc0fb05f4cee683905c36ca9105dd44ada8a229b73b76fb06ab","components/buildr/openspec/contributions/openspec-archive-converge.md=sha256-32d116ad123813db224acb7b3a6fa9335153f01fd7a2d80ade3b9e4efc3ee98a"]
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
应用 change 前先向用户说明正在使用 OpenSpec、`apply` action、change id 及其选择或推断来源。OpenSpec status 解析上下文后,在编辑前报告实际 `changeRoot`;正式实现任务同时报告 Task ID 与 Task Environment 的实际工作根。
|
|
4
4
|
|
|
5
|
-
任何实现编辑前,确认 apply-required artifacts 已完成并运行上游 `openspec validate <change> --strict
|
|
5
|
+
任何实现编辑前,确认 apply-required artifacts 已完成并运行上游 `openspec validate <change> --strict`,再从matching Environment Receipt取得`execution.workdir`并运行`buildr openspec convergence preflight <change> --project <project> --target <task-execution-root> --json`。Preflight `blocked`时在Planning Review前停止,由Agent按active Change conflict、Scenario omission、rename/identity conflict、projected validation或其他semantic diagnostic处理依赖、修订artifact或请求用户决定,再重跑strict与preflight;不得自动补回Scenario、选择rename、修改canonical或把blocker写入Review Result代替处理。
|
|
6
|
+
|
|
7
|
+
只有preflight返回current `ready`后,正式Task才使用Environment声明的Node与Buildr Service execution root调用`task-planning-identity-driver.mjs inspect --task <task-id> --target <canonical-workspace>`,用`resolved`结果的`target.identity`与`planningNodes`更新Development planning,并持有该target的current Planning Review。任一门禁未通过时停止并报告诊断;preflight或resolver `blocked`时不得用raw digest、路径、mtime、checklist progress、Git ref或旧Review target回退。Planning Review不拥有、复制或解释preflight逻辑。delta Requirement identity 后续改变时必须重新执行strict validation、preflight与resolver,并使Planning Review重新判断current。Preflight ready只绑定当前delta、canonical、active Changes与executable,不是写入授权;最终converge始终按最新事实重新规划验证。不得把该门禁放回早于Change创建的task triage,也不得创建、刷新、读取或采用旧baseline/阶段sidecar。
|
|
6
8
|
|
|
7
9
|
采用 Task Environment 时,编辑前运行 `buildr task environment inspect <task-id> --target <canonical-workspace> --json`,只消费成功结果中的 `execution.workdir`、`allowedExecutionRoots`、controller 与 `cliInvocation`;不得从 cwd、branch、同一 HEAD 或 Git evidence 猜 ownership。普通 Rule/Skill 内容修改不要求 session activation;只有本任务修改 runtime 的发现、加载或激活机制,且专项验收明确要求真实 Agent host activation proof 时才交给 Task Verification。
|
|
8
10
|
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
- 明确只创建或维护 OpenSpec artifacts、规则、Skills、文档或模板时,也使用 Task Environment;它可以选择共享执行根,不必创建 Git worktree。任务后来升级为实现时由同一 Environment `prepare` 恢复,不另建第二份 artifacts。
|
|
9
9
|
- 无法判断是否会进入实现时,先澄清执行范围,不得先创建 artifacts 再决定位置。
|
|
10
10
|
|
|
11
|
-
取得ready Environment
|
|
11
|
+
取得ready Environment后,若本次要创建OpenSpec变更,固定顺序为:先`openspec new change`形成可解析脚手架,再`task update --add-change`绑到Task Record,再调用selected`buildr.task-development/v2`provider的`begin`(disposition覆盖任务上全部变更),最后才写入proposal/design/specs/tasks。不得在脚手架不存在时`add-change`,也不得对空变更列表`begin`后再绑定即将写入的变更。无变更的code-only任务仍可在首个实现前`begin`空列表。`begin`时Content Target、policy、Candidate与专业Result保持缺失。每个proposal/design/specs/tasks current集合形成或改变后调用`planning`,只登记OpenSpec authority、相对artifact reference、content identity与disposition,不复制正文。若当前Task不存在该节点则不造占位;用户明确跳过时记录waiver source。若事后绑定变更导致任务上下文过期,必须重新`begin`或`planning`,不得沿用过期研发回执。
|
|
12
12
|
|
|
13
|
-
完整planning artifacts达到apply-ready
|
|
13
|
+
完整planning artifacts达到apply-ready并通过`openspec validate <change> --strict`后,先从matching Environment Receipt取得`execution.workdir`并运行`buildr openspec convergence preflight <change> --project <project> --target <task-execution-root> --json`。Preflight `blocked`时在Planning Review前停止,由Agent按active Change conflict、Scenario omission、rename/identity conflict或projected validation诊断处理语义后重跑strict与preflight;不得把诊断写入Review Result代替处理。只有current `ready`时,才使用Environment声明的Node与Buildr Service execution root调用`task-planning-identity-driver.mjs inspect --task <task-id> --target <canonical-workspace>`,用`resolved`结果的`target.identity`和全部`planningNodes`刷新Development planning并进入Planning Review。resolver `blocked`时停止,禁止用文件路径、raw digest、mtime、checkbox progress、Git ref或旧Review target猜测。Preflight ready不是写入授权,最终converge仍按最新事实重新检查。
|
|
14
14
|
|
|
15
15
|
该门禁只补充 Buildr 的任务位置与 Development 聚合事实,不修改外部 `openspec-propose` Skill 的上游正文,也不让 Task Environment 或 Development 判断是否需要 OpenSpec Change、生成 artifact 或取得其内容 authority。
|
|
16
16
|
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
若本次修订改变 scope、核心流程、影响、验收或 delta requirements,读取 required `buildr.current-knowledge-maintenance/v1` binding、contract 和 selected provider,刷新 `brief.md` 并重新执行 `assess`;tasks 与 `.buildr/knowledge-impact.yml` 必须反映修订后的真实影响。Provider unresolved 或 dependency blocked 时停止并报告,不得保留已知陈旧 Brief/evidence。
|
|
8
8
|
|
|
9
|
-
正式Task中的planning artifact一旦改变,先重新运行strict validation
|
|
9
|
+
正式Task中的planning artifact一旦改变,先重新运行strict validation,再从matching Environment Receipt取得`execution.workdir`并运行`buildr openspec convergence preflight <change> --project <project> --target <task-execution-root> --json`。Preflight `blocked`时在Planning Review前停止,由Agent处理active Change依赖或Change artifact语义后重跑strict与preflight;不把诊断改写成Review Result。只有current `ready`时才使用Environment声明的Node与Buildr Service execution root调用`task-planning-identity-driver.mjs inspect --task <task-id> --target <canonical-workspace>`。`resolved`后用返回的`target.identity`和全部`planningNodes`调用selected`buildr.task-development/v2`provider的`planning`;target变化使旧Planning Review/Candidate/handoff按Application事实失效,target不变则不重复record Review。Preflight或resolver `blocked`时停止,且不复制正文、不改写Review Result、不回退raw digest或旧target。最终converge仍按最新事实重新规划,不消费旧ready。
|
|
10
10
|
|
|
11
11
|
修订`tasks.md`时保持Change disposition前边界:每个checkbox都必须能在convergence/archive前完成。Formal Development、Task Verification/Candidate、Completion Review、Task Finish、Environment cleanup与Task terminal state属于archive后的Task lifecycle authority,不得作为Change task加入或保留。
|
package/payload/product/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: openspec-contract-guard
|
|
3
|
-
description:
|
|
3
|
+
description: 创建、审查、实现、收敛或归档 OpenSpec change,且需要检查语义就绪、active change 冲突、隔离验证、canonical 并发漂移或恢复事实时使用。此 Skill 是 Buildr 的 OpenSpec sidebar,不修改外部 openspec-* Skills。
|
|
4
4
|
metadata:
|
|
5
5
|
author: buildr
|
|
6
|
-
version: "1.
|
|
6
|
+
version: "1.2"
|
|
7
7
|
supportedOpenSpec: "1.6.0"
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ metadata:
|
|
|
11
11
|
|
|
12
12
|
父子任务场景额外执行单owner检查:同一个具体规范变化在同一时间只能由一个active Change持有。Parent Plan不是delta Change;Parent自己的Change只能覆盖亲自承担的窄集成实现或验收能力,不能复制Child Change。启动Child或Parent reconcile后若发现active delta重叠,先缩窄/放弃对应Change并重新Planning Review,不得依靠归档后的canonical convergence反复rebase重复authority。
|
|
13
13
|
|
|
14
|
-
本 Skill 只保留 OpenSpec 1.6 未提供的 Buildr
|
|
14
|
+
本 Skill 只保留 OpenSpec 1.6 未提供的 Buildr 契约保证:Planning Review前的语义就绪预检、并行 active change 冲突、确定性 expected tree、隔离严格验证、条件式 canonical 写入、写后确认和基于文件事实的断点恢复。
|
|
15
15
|
|
|
16
16
|
OpenSpec 1.6 负责 delta 格式与 Requirement 结构、单个 change 的规范校验、canonical spec 重建和 archive 的场景保全检查。先运行上游 `openspec validate <change> --strict`;本 Skill 不重复实现这些解析或 archive 安全规则。
|
|
17
17
|
|
|
@@ -23,9 +23,14 @@ change artifacts complete 且上游严格验证通过后运行:
|
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
25
|
openspec validate <change> --strict
|
|
26
|
+
buildr openspec convergence preflight <change> --project <project> --target <task-execution-root> --json
|
|
26
27
|
```
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
`<task-execution-root>`必须来自matching Task Environment Receipt的`execution.workdir`。Preflight只读复用正式convergence planner、active Change scan和projected strict validation,不检查实现期checklist,不写canonical、Receipt、archive、Task或Review事实。它把blocked区分为`active-change-conflict`、`scenario-omission`、`identity-conflict`、`projected-validation`与其他`semantic-resolution-required`:Agent只处理对应依赖、Change artifact语义或用户决定,再重新运行strict与preflight,不得自动补回Scenario、选择rename或修改canonical。
|
|
30
|
+
|
|
31
|
+
只有preflight返回current `ready`后,正式Task才使用Task Environment声明的Node与Buildr Service execution root调用`task-planning-identity-driver.mjs inspect --task <task-id> --target <canonical-workspace>`;只把`resolved`结果的`target.identity`和`planningNodes`交给Task Development与Planning Review。Preflight或resolver `blocked`时停止Planning Review和apply,禁止把blocker写入Review Result代替处理,也禁止用raw digest、文件路径、mtime、checklist progress、Git ref或旧Review target回退。Planning Review不拥有、不复制也不解释preflight逻辑。Buildr 不提供 baseline/create 或阶段型 check,也不创建、刷新、读取或依赖这些 sidecar。
|
|
32
|
+
|
|
33
|
+
`ready`只绑定本次delta、canonical、全部active Change observation与OpenSpec executable/algorithm identity;任一事实变化后旧ready陈旧。它不是写入授权,也不替代实现验证。最终`buildr openspec converge`永远重新读取最新事实、重新规划并重新验证,不接受或读取旧preflight结果。
|
|
29
34
|
|
|
30
35
|
## 2. 单一收敛事务
|
|
31
36
|
|
|
@@ -46,6 +51,8 @@ buildr openspec converge <change> --project <project> --target <task-execution-r
|
|
|
46
51
|
|
|
47
52
|
## 4. 失败处理
|
|
48
53
|
|
|
54
|
+
- Preflight `active-change-conflict`:列出冲突Change/capability/Requirement,由Agent处理前序依赖、合并语义或重划范围。
|
|
55
|
+
- Preflight `scenario-omission|identity-conflict|projected-validation|semantic-resolution-required`:在Planning Review前停止,由Agent修订Change artifact或请求用户决定后重新检查。
|
|
49
56
|
- `blocked`:列出语义冲突、冲突 change/Requirement 或 strict validation 诊断,修订 artifacts 后重试。
|
|
50
57
|
- `recovery-unprovable`:canonical 出现 before/expected 之外的值、混合状态或旧 identity 链不完整;停止并人工核对,禁止自动覆盖。
|
|
51
58
|
- delta identity 变化:丢弃旧 plan,以当前 canonical 重新规划,不恢复旧 before。
|
|
@@ -55,4 +62,4 @@ buildr openspec converge <change> --project <project> --target <task-execution-r
|
|
|
55
62
|
- upstream strict validation 失败:修复上游诊断后再运行 Buildr 门禁。
|
|
56
63
|
- CLI/Component version 不一致:使本机 OpenSpec CLI 与 Component 声明一致;Buildr 不代为安装。
|
|
57
64
|
|
|
58
|
-
用户可见Converge状态必须包含change、`passed|blocked|recovery-unprovable`、disposition、Receipt是否已释放、耗时、命令次数和`nextActions`;Inspect另外使用`not-applicable`表达未开始或已终结。Agent不拼装内部guard命令,不解释多个Receipt
|
|
65
|
+
用户可见Preflight状态必须包含change、`ready|blocked`、readiness/plan identity、active Change observations、blockers、`effects: []`和`nextActions`;Converge状态必须包含change、`passed|blocked|recovery-unprovable`、disposition、Receipt是否已释放、耗时、命令次数和`nextActions`;Inspect另外使用`not-applicable`表达未开始或已终结。Agent不拼装内部guard命令,不解释多个Receipt,也不把preflight或事务Receipt升级为长期authority。外部`openspec-*` Skills继续承担explore、propose、update和apply;确定性sync/archive由Buildr事务持有。
|
|
@@ -9,13 +9,15 @@ description: 正式Task从首个proposal、方案或直接实现等研发动作
|
|
|
9
9
|
|
|
10
10
|
## 阶段化上下文与效率边界
|
|
11
11
|
|
|
12
|
+
进入或继续已有Formal Task时,先消费`buildr task next <task-id> --target <canonical-workspace> --json`的compact snapshot。它返回matching Environment execution roots、retained controller、保存的Development applicability和一个typed next;默认不复制完整Receipt。`required`只覆盖authority/identity恢复,`recommended`不构成gate,用户选择其他合法动作时仍交给实际owner contract判断。只有诊断恢复、审查或明确请求完整evidence时才读取详细Result。
|
|
13
|
+
|
|
12
14
|
只在某个专业动作成为 next executable action 时读取该动作的 capability contract、selected provider 与直接 authority:Planning Review、current knowledge、Formal Verification、Completion Review 和 Finish 的完整指引分别在进入对应阶段前装配,不在 proposal 前一次性预读整个生命周期。当前动作仍必须遵守已触发 Skill、required Rule、授权与 result evidence,按需读取不等于跳过门禁。
|
|
13
15
|
|
|
14
16
|
首次修改 proposal、Skill、代码、测试或当前知识前,复用 triage 建立的一次有界 authority source map;若尚未形成,则从直接相关的 canonical specs、current knowledge、实现、测试与 registries 建立。该 map 保留在 Agent 工作上下文,不写入 Receipt 或其他产品 store;只有 scope、authority 或相关事实变化时才增量刷新。
|
|
15
17
|
|
|
16
18
|
proposal 启动耗时、重复 Skill/authority 读取、重复命令、实现到 handoff 耗时与 verification wall-clock 只作为 `task-retrospective` 跟踪、评估和优化的参考。它们不进入专业 Result、Development gate、Task status、Candidate identity或自动 skip/advance 决策,也不构成 pass/fail threshold。
|
|
17
19
|
|
|
18
|
-
日常 Development transition 或状态回读只需要 current identity、applicability
|
|
20
|
+
日常 Development transition 或状态回读只需要 current identity、applicability 与下一步方向时,优先使用Task Entry Snapshot;直接调试Development owner时可对内部driver显式使用`--compact`。两者都只是response projection,不追加观察或写入,并以同源`formalVerificationReadiness`说明正式验证交接是否尚未到达、存在明确blocker或需要current knowledge即时确认。需要完整Receipt、专业Result引用或handoff snapshot时仍读取默认完整result。typed `next`与legacy `nextActions`来自同一判定;它们不执行动作、不代表授权,也不得越过当前阶段才加载的selected provider。
|
|
19
21
|
|
|
20
22
|
## Parent Plan 与 Child Contribution
|
|
21
23
|
|
|
@@ -35,7 +37,7 @@ Child越过其他Contribution、改变依赖/invariant/final acceptance或覆盖
|
|
|
35
37
|
|
|
36
38
|
1. 读取Task Record,确认Task active、Intent、Project/Service scope和`0..N` Change引用。
|
|
37
39
|
2. 通过`task-environment`恢复matching ready Environment,只使用Receipt返回的execution/validation roots。
|
|
38
|
-
3. 通过Development Application inspect已有Receipt;若缺失,在首个proposal、design、直接实现或其他正式研发动作前调用`begin`,记录完整Change dispositions与current planning snapshot
|
|
40
|
+
3. 通过Development Application inspect已有Receipt;若缺失,在首个proposal、design、直接实现或其他正式研发动作前调用`begin`,记录完整Change dispositions与current planning snapshot。若Task将绑定OpenSpec变更,必须先有可解析脚手架并完成`add-change`再`begin`;不得先对空变更列表`begin`再绑定同一变更。无变更的任务仍在首个实现前`begin`空列表。`begin|planning`都必须显式提交完整`planning`整值;没有node时提交`{"targetIdentity":null,"nodes":[]}`,不得用字段omission表达清空、保留或patch。
|
|
39
41
|
4. Proposal、design或Project自定义规划artifact形成/改变时调用`planning`,只保存专业authority、portable reference、content identity、disposition与最小summary。不存在的节点不造占位;`not-applicable`说明任务不适用;`waived`必须绑定明确用户/业务授权source。省略顶层`planning`时Application会在任何Receipt写入前失败关闭,Agent应根据专业authority重新形成完整snapshot,而不是猜测旧值。
|
|
40
42
|
5. 通过`task-review`inspect Planning Result。Review可按当前policy不存在、not-applicable或明确waived;存在时必须绑定current planning target。旧Result和handoff snapshot即使stale也不删除或改写。
|
|
41
43
|
|
|
@@ -53,7 +55,7 @@ Development只拥有这些专业事实如何构成当前Task研发过程,不
|
|
|
53
55
|
|
|
54
56
|
在 Candidate freeze 前完成所有内容修改、测试开发与修复、Quick/Task-affected 反馈、current knowledge 维护,以及每个关联 Change 的 deterministic convergence/archive 最终处置。这些动作属于相应 Project/Skill,不由 Development Application 执行。规划期间使用`pending`;只有OpenSpec专业流程已收敛时才能提交`converged`。Application会复用Task Record的Task-scoped Change read model,要求当前working copy为`available + archived`;retained baseline仍active不构成阻塞,调用方summary、路径与文件存在也不能替代该事实。OpenSpec归档路径、provenance、checkbox完成态和filesystem时间不属于plan target;只有Task Planning Identity resolver返回的新target才能使Planning Review stale。
|
|
55
57
|
|
|
56
|
-
内容固定后,向Development Application提交完整Change dispositions并调用`observe`形成Content Target。code-only Task
|
|
58
|
+
内容固定后,向Development Application提交完整Change dispositions并调用`observe`形成Content Target。任一Change仍为`pending`时Application会在Content observation与Receipt写入前失败关闭;先完成Change-owned实现、current knowledge与deterministic convergence/archive,不能为了进入验证把pending伪装成stable。code-only Task提交空数组,明确`not-applicable`继续按原路径工作。观察结果必须只含逻辑selector、相对source path、observer capability与内容identity,不得保存本机路径。Content Target形成前,Receipt状态保持`planning`,不得虚构policy、Candidate或Result。
|
|
57
59
|
|
|
58
60
|
Candidate freeze后交付基线(Delivery Baseline)前进时,不要rebase或修改原Task worktree。先只读inspect原Task source snapshot、Task Context、policy与gates;Task Development是Content Target、Candidate、Verification、Completion Review、decision与handoff是否current/stale的唯一authority。原Task source与这些输入未变时,全部facts保持current,直接让Finish在run-owned隔离交付载体(Delivery Carrier)处理交付适配(Delivery Adaptation);不得调用observe覆盖Content Target、重跑正式Verification或递增generation。
|
|
59
61
|
|
|
@@ -70,6 +72,10 @@ Finish的Git conflict只证明机械应用失败或需要语义判断,不证
|
|
|
70
72
|
|
|
71
73
|
有效Project集合必须合并显式Project、Service所属Project与Change所属Project。只有并集为空时才使用仅工作区policy:空declarations、空capabilities、唯一`workspace` coverage gap与空overrides;Service或Change不能因省略`scope.projects`进入该分支。仅工作区Content Target变化后重新形成policy;Project集合或declaration变化时旧policy必须stale。
|
|
72
74
|
|
|
75
|
+
在启动昂贵Formal Verification前读取response-only `formalVerificationReadiness`:`blocked`只处理其中明确的Change、Content Target或policy blocker;`unknown`时调用selected current knowledge provider对同一current tree执行只读`inspect`。返回`aligned|not-applicable`后直接对同一Content Target进入`task-verification`,无需为了保存ready摘要重读Snapshot或写入Development;返回`unresolved`时先由knowledge owner收敛,任何delivery content变化都重新观察Content Target。readiness与inspect Result不进入Receipt、Result或新sidecar。
|
|
76
|
+
|
|
77
|
+
该预检只属于正式Task的Development → Formal Verification交接。开发中的focused/affected/unit/integration反馈、Task外transient `verification run`和Candidate CI不读取readiness、不增加检查步骤,也不因Change pending或knowledge unknown被阻塞。`unknown`产生的是`recommended` owner action,不是通用executor硬门禁;合法替代顺序仍由实际owner contract判断。
|
|
78
|
+
|
|
73
79
|
然后对 Content Target identity 执行正式 `task-verification`。Result target/declarations 必须 current;policy 中每个 required capability 都必须有明确 passed/failed fact,每个 policy gap 都必须在 Result 中有对应 coverage gap。仅工作区没有验证能力时记录空declarations、空capabilities、唯一workspace gap与`not-passed`,不得自动passed。gap尚未进入matching current Result时不得freeze;事实完整后仍按现有风险授权门禁推进。
|
|
74
80
|
|
|
75
81
|
## Candidate、Completion 与决定
|
|
@@ -11,10 +11,11 @@ description: 用户要求已有 active formal Task 的“收尾”或交付 curr
|
|
|
11
11
|
|
|
12
12
|
1. 明确正式 Task ID 与 canonical Workspace。
|
|
13
13
|
2. 用户排除 push、install 或 cleanup 而改变交付语义时停止。
|
|
14
|
-
3.
|
|
15
|
-
4.
|
|
16
|
-
5.
|
|
17
|
-
6.
|
|
14
|
+
3. 轻量确认任务分支贡献已提交、本机主工作区已对齐目标远端。未提交或落后时先说明并等待处理或明确继续;不得做成新的入口缺口码。
|
|
15
|
+
4. 不要在调用产品前自行链式做 Environment → handoff → target/remote 的 fail-fast;入口聚合与模块分类由产品一次完成。
|
|
16
|
+
5. 根据最终交付内容与Workspace、Project、Service、repository约定形成完整commit message。subject必须描述内容,优先使用简洁Conventional Commits;Task ID由产品写入trailer,不得使用“交付 + Task ID”占位主题。调用前向用户展示subject,正文存在时一并展示。
|
|
17
|
+
6. 直接启动 canonical `buildr task finish run`;若返回 `task_finish.entry_gaps`,按 `error.details.gaps` 的 `development` / `environment` / `delivery` 完整转述,不得只报第一项。
|
|
18
|
+
7. 存在 `development` 缺口(或 `nextWorkflow: task-development`)时路由 `task-development`;Finish 不补齐 Change/Verification/Completion/handoff 事实。仅工作区Task也必须先有current Candidate、Completion Review、proceed decision与Development handoff;Finish只消费handoff,不解释workspace gap或重新接受风险。
|
|
18
19
|
- Child承担Parent Contribution时,handoff还必须包含与current Parent Plan和planned binding一致的Contribution Handoff。
|
|
19
20
|
- Parent采用Parent Plan时,必须已记录current plan identity的显式最终集成验收;Child全部完成本身不满足该条件。
|
|
20
21
|
|
|
@@ -61,7 +62,7 @@ buildr task finish run --task <task-id> --run <run-id> --resume <product-token>
|
|
|
61
62
|
```bash
|
|
62
63
|
buildr task finish inspect --run <run-id> --target <canonical-workspace> --detail compact --json
|
|
63
64
|
```
|
|
64
|
-
|
|
65
|
+
abandon 后未交付隔离载体:对既有 run 加 `--release-occupancy`;不得 `git worktree remove` 或手删 `.buildr/transient/task-finish/carriers/`,也不作废已推送交付。
|
|
65
66
|
## 禁止事项
|
|
66
67
|
|
|
67
68
|
Finish不改变Candidate/generation、Development Receipt、Change或原Task worktree,不发起 Task Verification/Completion Review,也不决定风险。Finish不运行OpenSpec Converge。两种reuse mode都复用handoff;clean apply或resume不等于语义安全。仅当既有run在preflight/prepare发生已记录、无副作用的Product provider exception时,用户才可明确授权`--bootstrap-recovery`;它只让retained Application从current ready Environment和current Development handoff共同确认的clean committed checkout加载run-owned capsule provider。retained Application、SQLite、Execution Record及状态机仍是唯一writer;不得传source/module/manifest/tarball、运行candidate CLI、临时安装或新建run。入口、registry、Application、repository或migration损坏不适用。
|
|
@@ -43,7 +43,15 @@ Application会完整替换同一Task的current row;不创建历史、候选或
|
|
|
43
43
|
|
|
44
44
|
## 4. 处理 current 复盘
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
用户要求处理多份已有复盘时,先通过一次有界批量只读调用取得默认 `pending` 摘要:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
node <buildr-controller-source>/src/interfaces/internal/task-retrospective-driver.mjs list --target <canonical-workspace> [--status <pending|handled|no-action|all>] [--task <task-id> ...] [--limit <1..500>] [--include-report]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
默认最多返回 100 份 pending 摘要且不包含报告正文;先用摘要收窄对象,只在确实需要批量读取原文时显式使用 `--include-report`,个别全文继续使用单 Task `inspect`。`list` 只减少重复 driver 调用,不自动分析、评分、生成方向、创建 Task 或修改 disposition,也不成为后续 mutation 的授权或门禁。
|
|
53
|
+
|
|
54
|
+
用户要求处理已有复盘时,再对需要判断的对象使用 `inspect`,在对话中直接给出完整原始 `reportMarkdown`;正文过长或已在同一对话完整展示时可以给出 `currentDigest` 不可变引用,但不能只让用户去 Buildr Web 查。随后读取当前 canonical specs、实现、knowledge 与 open Task,对原问题和建议逐项判断当前是否仍存在、仍有效,再按当前事实重新拆分改进方向;不沿用旧行动项编号,也不生成新 action item ID。
|
|
47
55
|
|
|
48
56
|
### 4.1 先完成只读讨论
|
|
49
57
|
|