@buildr-ai/buildr 0.1.0-rc.22 → 0.1.0-rc.24
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/application-payload.json +46 -40
- package/installation-origin.json +5 -5
- package/package.json +1 -1
- package/payload/product/package/targets/runtime/skills/buildr/SKILL.md +1 -1
- package/payload/product/package.json +1 -1
- package/payload/product/resources/manifest.yml +1 -1
- package/payload/product/resources/workspace/skills/buildr/declaration-intake/SKILL.md +2 -2
- package/payload/product/resources/workspace/skills/buildr/project-testing/references/testing-model-v1.md +1 -1
- package/payload/product/resources/workspace/skills/buildr/task-development/SKILL.md +20 -3
- package/payload/product/resources/workspace/skills/buildr/task-environment/SKILL.md +3 -2
- package/payload/product/resources/workspace/skills/buildr/task-finish/SKILL.md +4 -3
- package/payload/product/resources/workspace/skills/buildr/task-retrospective/SKILL.md +23 -5
- package/payload/product/resources/workspace/skills/buildr/task-review/SKILL.md +2 -0
- package/payload/product/resources/workspace/skills/buildr/task-verification/SKILL.md +35 -12
- package/payload/product/resources/workspace/skills/buildr/task-verification/references/project-verification-v3.md +28 -0
- package/payload/product/resources/workspace/skills/buildr/task-verification/templates/project-verification.yml +23 -15
- package/payload/product/resources/workspace/skills/contracts/buildr/task-development/v2.md +2 -1
- package/payload/product/resources/workspace/skills/contracts/buildr/task-finish/v1.md +3 -1
- package/payload/product/resources/workspace/skills/contracts/buildr/task-retrospective/v2.md +8 -4
- package/payload/product/resources/workspace/skills/contracts/buildr/task-verification/v3.md +4 -1
- package/payload/product/src/infrastructure/sqlite/migrations/0019_add_task_execution_progress.sql +1 -0
- package/payload/runtime/read-worker.cjs +3744 -1728
- package/runtime/buildr.cjs +3688 -1659
- package/payload/product/resources/workspace/skills/buildr/task-verification/references/project-verification-v2.md +0 -53
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.24",
|
|
5
5
|
"protocolIdentity": "buildr.web-protocol/v1",
|
|
6
|
-
"sourceCommit": "
|
|
6
|
+
"sourceCommit": "7d1b4dd8e61c64da8d55591405d8f67be9a9c44c",
|
|
7
7
|
"enginesNode": ">=24.15.0 <25",
|
|
8
8
|
"productionDependencies": [
|
|
9
9
|
{
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"path": "resources/product/package.json",
|
|
55
55
|
"mode": 420,
|
|
56
56
|
"size": 769,
|
|
57
|
-
"sha256": "
|
|
57
|
+
"sha256": "89456b82e813fda881d93eaf02b981b8708d3e416eb742fe3bc9edac1bb06ff5"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "resources/product/package/targets/runtime/skills/buildr/SKILL.md",
|
|
61
61
|
"mode": 420,
|
|
62
|
-
"size":
|
|
63
|
-
"sha256": "
|
|
62
|
+
"size": 35042,
|
|
63
|
+
"sha256": "3c07342e0c66082b89b52eceaf8293344d69d4d98d4468d918b615694e4b3044"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"path": "resources/product/resources/contracts/bootstrap.yml",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"path": "resources/product/resources/manifest.yml",
|
|
85
85
|
"mode": 420,
|
|
86
86
|
"size": 31921,
|
|
87
|
-
"sha256": "
|
|
87
|
+
"sha256": "53844be5521d3af5fde7f8db08cf155448637b5bbd197c132bf6a8b21af9ed1b"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"path": "resources/product/resources/workspace/AGENTS.md",
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
{
|
|
186
186
|
"path": "resources/product/resources/workspace/skills/buildr/declaration-intake/SKILL.md",
|
|
187
187
|
"mode": 420,
|
|
188
|
-
"size":
|
|
189
|
-
"sha256": "
|
|
188
|
+
"size": 4847,
|
|
189
|
+
"sha256": "ddf90cc6dfb095901a7466e3dbab89167c534543f95e6e8ae91fda128decd0d1"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
"path": "resources/product/resources/workspace/skills/buildr/git-operations/SKILL.md",
|
|
@@ -215,20 +215,20 @@
|
|
|
215
215
|
{
|
|
216
216
|
"path": "resources/product/resources/workspace/skills/buildr/project-testing/references/testing-model-v1.md",
|
|
217
217
|
"mode": 420,
|
|
218
|
-
"size":
|
|
219
|
-
"sha256": "
|
|
218
|
+
"size": 7011,
|
|
219
|
+
"sha256": "4d9940787c950b75673f76438f4f1f4dcacb7092c4de36d5678110d4ebd7b283"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"path": "resources/product/resources/workspace/skills/buildr/task-development/SKILL.md",
|
|
223
223
|
"mode": 420,
|
|
224
|
-
"size":
|
|
225
|
-
"sha256": "
|
|
224
|
+
"size": 25853,
|
|
225
|
+
"sha256": "bf8711033a3aebdf4b004a8242c46138839a1c895ba46c2a66504cccb60b9e25"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"path": "resources/product/resources/workspace/skills/buildr/task-environment/SKILL.md",
|
|
229
229
|
"mode": 420,
|
|
230
|
-
"size":
|
|
231
|
-
"sha256": "
|
|
230
|
+
"size": 8583,
|
|
231
|
+
"sha256": "190ffa6469c5323fda25e1f5e72b3ccf71214d1eeadff648744471f08c675caf"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
"path": "resources/product/resources/workspace/skills/buildr/task-environment/agents/openai.yaml",
|
|
@@ -257,8 +257,8 @@
|
|
|
257
257
|
{
|
|
258
258
|
"path": "resources/product/resources/workspace/skills/buildr/task-finish/SKILL.md",
|
|
259
259
|
"mode": 420,
|
|
260
|
-
"size":
|
|
261
|
-
"sha256": "
|
|
260
|
+
"size": 7569,
|
|
261
|
+
"sha256": "2e741b6283a8dd35c49dfb127b6cfd63a54079fd9a10e47d5c7bc0e1f41e79c4"
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
"path": "resources/product/resources/workspace/skills/buildr/task-manager/SKILL.md",
|
|
@@ -275,8 +275,8 @@
|
|
|
275
275
|
{
|
|
276
276
|
"path": "resources/product/resources/workspace/skills/buildr/task-retrospective/SKILL.md",
|
|
277
277
|
"mode": 420,
|
|
278
|
-
"size":
|
|
279
|
-
"sha256": "
|
|
278
|
+
"size": 12218,
|
|
279
|
+
"sha256": "ab9d550d334e50074514c6907ca8474db7255648a98f17a6366bee80f1715544"
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
"path": "resources/product/resources/workspace/skills/buildr/task-retrospective/agents/openai.yaml",
|
|
@@ -287,8 +287,8 @@
|
|
|
287
287
|
{
|
|
288
288
|
"path": "resources/product/resources/workspace/skills/buildr/task-review/SKILL.md",
|
|
289
289
|
"mode": 420,
|
|
290
|
-
"size":
|
|
291
|
-
"sha256": "
|
|
290
|
+
"size": 6689,
|
|
291
|
+
"sha256": "e37e9a085b373d18524ad6e51daebff80c564130568ef716b8481b8ac9744f8e"
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "resources/product/resources/workspace/skills/buildr/task-review/agents/openai.yaml",
|
|
@@ -305,20 +305,20 @@
|
|
|
305
305
|
{
|
|
306
306
|
"path": "resources/product/resources/workspace/skills/buildr/task-verification/SKILL.md",
|
|
307
307
|
"mode": 420,
|
|
308
|
-
"size":
|
|
309
|
-
"sha256": "
|
|
308
|
+
"size": 18992,
|
|
309
|
+
"sha256": "9fecd05bf07b912a7329f88aad8888e52014b038d37d04b48b020080b1f88f59"
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
|
-
"path": "resources/product/resources/workspace/skills/buildr/task-verification/references/project-verification-
|
|
312
|
+
"path": "resources/product/resources/workspace/skills/buildr/task-verification/references/project-verification-v3.md",
|
|
313
313
|
"mode": 420,
|
|
314
|
-
"size":
|
|
315
|
-
"sha256": "
|
|
314
|
+
"size": 2187,
|
|
315
|
+
"sha256": "23019fa180875e60d07a10b283a05993ecd6580771f7c7e64669981329ae5c8d"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"path": "resources/product/resources/workspace/skills/buildr/task-verification/templates/project-verification.yml",
|
|
319
319
|
"mode": 420,
|
|
320
|
-
"size":
|
|
321
|
-
"sha256": "
|
|
320
|
+
"size": 808,
|
|
321
|
+
"sha256": "099198b76d6f977c5c8a53a3fe7ba4fc026daefb4e7ef0e0a44f4c5c0e1bb4a4"
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
"path": "resources/product/resources/workspace/skills/buildr/task-worktree/SKILL.md",
|
|
@@ -365,8 +365,8 @@
|
|
|
365
365
|
{
|
|
366
366
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/task-development/v2.md",
|
|
367
367
|
"mode": 420,
|
|
368
|
-
"size":
|
|
369
|
-
"sha256": "
|
|
368
|
+
"size": 13970,
|
|
369
|
+
"sha256": "b6a57aebf5c10f05e596256711706927ecf95a60d4fbb4086dff1614e245875b"
|
|
370
370
|
},
|
|
371
371
|
{
|
|
372
372
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/task-environment/v1.md",
|
|
@@ -377,8 +377,8 @@
|
|
|
377
377
|
{
|
|
378
378
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/task-finish/v1.md",
|
|
379
379
|
"mode": 420,
|
|
380
|
-
"size":
|
|
381
|
-
"sha256": "
|
|
380
|
+
"size": 5086,
|
|
381
|
+
"sha256": "3028249712c7b25a4b730cf9a29724a43eed4a555d1fb8a8f27d3ea52fdec00d"
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/task-record/v2.md",
|
|
@@ -389,8 +389,8 @@
|
|
|
389
389
|
{
|
|
390
390
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/task-retrospective/v2.md",
|
|
391
391
|
"mode": 420,
|
|
392
|
-
"size":
|
|
393
|
-
"sha256": "
|
|
392
|
+
"size": 5443,
|
|
393
|
+
"sha256": "6a682baa51571484d28369df76bf28b4b21d95b4fa1fff891fcb85544bb67af8"
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/task-review/v1.md",
|
|
@@ -401,8 +401,8 @@
|
|
|
401
401
|
{
|
|
402
402
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/task-verification/v3.md",
|
|
403
403
|
"mode": 420,
|
|
404
|
-
"size":
|
|
405
|
-
"sha256": "
|
|
404
|
+
"size": 12319,
|
|
405
|
+
"sha256": "5ec011a5dd7089f2130176c934da215206f8fbc8e9ef052eeae782b629d3b118"
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
"path": "resources/product/resources/workspace/skills/contracts/buildr/terminology-governance/v1.md",
|
|
@@ -560,6 +560,12 @@
|
|
|
560
560
|
"size": 1105,
|
|
561
561
|
"sha256": "0cdbb3db226f40be6e86e374b96fa774c49e89dad45027be22c92bf82b0eb049"
|
|
562
562
|
},
|
|
563
|
+
{
|
|
564
|
+
"path": "resources/product/src/infrastructure/sqlite/migrations/0019_add_task_execution_progress.sql",
|
|
565
|
+
"mode": 420,
|
|
566
|
+
"size": 74,
|
|
567
|
+
"sha256": "80559a40c9d5f54a3ef887a161c76f5fb69c4b7f267db3a0a9145e7c90a975ea"
|
|
568
|
+
},
|
|
563
569
|
{
|
|
564
570
|
"path": "resources/product/web-dist/assets/antd-NAtxFWmu.js",
|
|
565
571
|
"mode": 420,
|
|
@@ -593,15 +599,15 @@
|
|
|
593
599
|
{
|
|
594
600
|
"path": "resources/runtime/read-worker.cjs",
|
|
595
601
|
"mode": 420,
|
|
596
|
-
"size":
|
|
597
|
-
"sha256": "
|
|
602
|
+
"size": 3655025,
|
|
603
|
+
"sha256": "43ae33d68f9379aa1e9983707a1ef9abcd0a53565a8d1348bea7316aa1388f9b"
|
|
598
604
|
},
|
|
599
605
|
{
|
|
600
606
|
"path": "runtime/buildr.cjs",
|
|
601
607
|
"mode": 420,
|
|
602
|
-
"size":
|
|
603
|
-
"sha256": "
|
|
608
|
+
"size": 3718180,
|
|
609
|
+
"sha256": "5ca2744c706f84fc27d6c8f8e4b8266f299fbd96c82e31560690fe43855bbeef"
|
|
604
610
|
}
|
|
605
611
|
],
|
|
606
|
-
"applicationPayloadDigest": "sha256-
|
|
612
|
+
"applicationPayloadDigest": "sha256-8721d9613b14c6c733fb50d130860f012cdb18586ff714e73689d598eff7b953"
|
|
607
613
|
}
|
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.24",
|
|
7
7
|
"protocolIdentity": "buildr.web-protocol/v1",
|
|
8
|
-
"applicationPayloadDigest": "sha256-
|
|
9
|
-
"sourceCommit": "
|
|
8
|
+
"applicationPayloadDigest": "sha256-8721d9613b14c6c733fb50d130860f012cdb18586ff714e73689d598eff7b953",
|
|
9
|
+
"sourceCommit": "7d1b4dd8e61c64da8d55591405d8f67be9a9c44c",
|
|
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.24",
|
|
12
|
+
"ownershipIdentity": "sha256-865ac92dc2f62ab673d9fe8340cb6318ebcee2b7ffc7e24075bdb64fb3869102"
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@ Agent runtime 先根据 Skill description 和用户目标发现入口 Skill。
|
|
|
73
73
|
- 创建或修复 Project/Service 必须来自用户意图、已有源资产、明确 repo/ref,或 doctor 指出的可修复 drift。Project 表示业务、产品线、系统或长期工作单元;canonical entity 使用 UUID `id`、所属 `workspaceId`、可读 `code`、`name`、`description` 和 `source`,`source.path` 定位文件系统位置。创建入口是 `buildr project create <code> --name <name> --description <description> --target <dir>`;独立 Git Project 再用 `--repo <url> --remote <name> --integration-branch <branch>` 声明来源,integration branch 是稳定集成目标而非当前 checkout。
|
|
74
74
|
- `currentBranch`、HEAD、dirty、upstream、ahead/behind 和实际 remote URL 由 doctor/app 实时观察,不写入 Domain;分支偏移可能是合法任务状态,任何 checkout、stash、merge 或 remote 修改前都核对任务、clean 状态、ownership 和授权,不盲目纠正。
|
|
75
75
|
- `projects/manifest.yml` v1 只兼容读取;使用 canonical `buildr sync <agent>` 迁移,不手工编造 UUID 或由页面静默迁移。`buildr web` 可查看 Project/Git 状态并受控修改 `name`、`description`;新增页面只生成 Agent prompt,不直接创建或 clone。
|
|
76
|
-
- Project 可以按需维护可选 `verification.yml
|
|
76
|
+
- Project 可以按需维护可选 `verification.yml`,只接受 closed `buildr.project-verification/v3`,声明既有能力族的Project/Service scope、proves、evidence、usable targets、discovery、affected/full/provider入口及必要执行边界。文件缺失或没有适用能力时只形成 coverage gap;不得复制测试清单、通用 DAG 或借此开发测试。Project也可按需维护可选`preparation.yml`,使用closed `buildr.project-environment-preparation/v1`声明Project-wide或Service-scoped Preparation Recipe;Agent按正式Task scope选择Recipe形成Task Plan,文件缺失时只允许显式task-inline选择,不得由Buildr扫描技术栈或静默回写长期声明。初始化、刷新、Project/Service注册、首次Task或专业gap先路由`declaration-intake`做只读发现;长期写入必须由用户确认后交给各声明owner Skill。
|
|
77
77
|
|
|
78
78
|
### 遗留 Practices
|
|
79
79
|
|
|
@@ -524,7 +524,7 @@ workspaceFiles:
|
|
|
524
524
|
- resources/workspace/skills/buildr/task-environment/templates/task-environment-plan-request.json => skills/buildr/task-environment/templates/task-environment-plan-request.json copy
|
|
525
525
|
- resources/workspace/skills/buildr/task-worktree/SKILL.md => skills/buildr/task-worktree/SKILL.md copy
|
|
526
526
|
- resources/workspace/skills/buildr/task-verification/SKILL.md => skills/buildr/task-verification/SKILL.md copy
|
|
527
|
-
- resources/workspace/skills/buildr/task-verification/references/project-verification-
|
|
527
|
+
- resources/workspace/skills/buildr/task-verification/references/project-verification-v3.md => skills/buildr/task-verification/references/project-verification-v3.md copy
|
|
528
528
|
- resources/workspace/skills/buildr/task-verification/templates/project-verification.yml => skills/buildr/task-verification/templates/project-verification.yml copy
|
|
529
529
|
- resources/workspace/skills/buildr/task-development/SKILL.md => skills/buildr/task-development/SKILL.md copy
|
|
530
530
|
- resources/workspace/skills/buildr/task-finish/SKILL.md => skills/buildr/task-finish/SKILL.md copy
|
|
@@ -35,8 +35,8 @@ Discovery、Project/Service 注册、Buildr Web GET、Doctor、Environment `insp
|
|
|
35
35
|
|
|
36
36
|
任何写入前都先展示精确diff,并按以下closed条件分类:
|
|
37
37
|
|
|
38
|
-
- `routine-maintenance`:只让声明追上当前用户目标和已登记scope内已经确认的wrapper、lockfile、build/test入口或既有authority;不新增/删除Project或Service scope,不改变
|
|
39
|
-
- `user-decision-required`:新增/删除scope,改变
|
|
38
|
+
- `routine-maintenance`:只让声明追上当前用户目标和已登记scope内已经确认的wrapper、lockfile、build/test入口或既有authority;不新增/删除Project或Service scope,不改变discovery、usable targets或affected/full/provider边界,不引入capability、外部效果、安全例外,且authority无冲突。Agent可以在当前用户目标授权内直接交给owner维护并验证,无需让用户承担内部声明步骤。
|
|
39
|
+
- `user-decision-required`:新增/删除scope,改变discovery、usable targets或affected/full/provider边界,引入新的capability、外部效果或安全例外,或authority证据冲突。必须在写入前请求用户确认精确变化。
|
|
40
40
|
|
|
41
41
|
分类与展示至少包含:
|
|
42
42
|
|
|
@@ -57,7 +57,7 @@ Agent读取`buildr.parent-coordination-result/v3`时只消费canonical字段:P
|
|
|
57
57
|
|
|
58
58
|
Child越过其他Contribution、改变依赖/invariant/final acceptance或覆盖未来Child范围时,先根据已保存handoff显式`reconcile` Parent Plan,再分别更新或放弃受影响Child:全部覆盖用Task Record `abandon`并在handoff/Plan中表达superseded,部分覆盖只保留residual intent与窄Change;不得伪装completed,也不得从代码、文件或canonical specs猜测delivery。
|
|
59
59
|
|
|
60
|
-
所有Contribution得到saved delivery或明确superseded后,`task parent accept`仍只记录显式最终集成验收,不自动完成Parent
|
|
60
|
+
所有Contribution得到saved delivery或明确superseded后,`task parent accept`仍只记录显式最终集成验收,不自动完成Parent。Acceptance绑定current Parent Plan后,立即重读顶层`task next`并继续消费Task Development返回的真实typed next;不得再次执行`accept-parent`,也不得在Skill或Parent coordination中硬编码Finish。随后由Development current状态正常推进Candidate、Completion Review、decision、handoff与Formal Finish。
|
|
61
61
|
|
|
62
62
|
## 从首个研发动作接入
|
|
63
63
|
|
|
@@ -69,6 +69,14 @@ Child越过其他Contribution、改变依赖/invariant/final acceptance或覆盖
|
|
|
69
69
|
4. Proposal、design或Project自定义规划artifact形成/改变时调用`planning`,只保存专业authority、portable reference、content identity、disposition与最小summary。不存在的节点不造占位;`not-applicable`说明任务不适用;`waived`必须绑定明确用户/业务授权source。省略顶层`planning`时Application会在任何Receipt写入前失败关闭,Agent应根据专业authority重新形成完整snapshot,而不是猜测旧值。
|
|
70
70
|
5. 通过`task-review`inspect Planning Result。Review可按当前policy不存在、not-applicable或明确waived;存在时必须绑定current planning target。旧Result和handoff snapshot即使stale也不删除或改写。
|
|
71
71
|
|
|
72
|
+
在调用`observe`或`policy`前,优先使用同一 retained controller 执行:
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
<controller-command> <controller-args-prefix...> __internal task-development discover --task <task-id> --target <canonical-workspace> --input-json '{"action":"observe"}'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`discover`返回`buildr.task-development-current-input/v1`的`inputJson`与来源facts:`observe`输入来自current Receipt的完整Change dispositions与planning target;`policy`在current policy仍适用时保留显式overrides。stable Content Target进入正式验证时,默认先由`task-verification`形成按有效Project完整覆盖的closed Formal Plans,再使用重复`--plan <project>::<json-file>`让Task Verification Application校验Plan、target、declaration与capability并投影selected policy输入、coverage gaps与response-only not-selected摘要。没有Plan的合法降级路径仍按current declarations的`usableFor: task-delivery`默认能力生成policy输入。两种discover都只读、不写任何Receipt/Result;读取后仍由`observe|policy` Application对漂移事实fail closed。没有current facts时恢复对应owner,不回退到静态example手工穷举。
|
|
79
|
+
|
|
72
80
|
正式Task的OpenSpec planning artifacts达到apply-ready后,不再手工摘要文件。使用`buildr task next`返回的matching retained `environment.controllerInvocation`调用bundled只读resolver:
|
|
73
81
|
|
|
74
82
|
```text
|
|
@@ -91,7 +99,7 @@ Finish的Git conflict只证明机械应用失败或需要语义判断,不证
|
|
|
91
99
|
|
|
92
100
|
## Verification policy 与正式 Verification
|
|
93
101
|
|
|
94
|
-
根据 Task scope
|
|
102
|
+
根据 Task scope、Task Verification Application返回的current declarations与current closed Formal Plans,形成一份完整 policy:
|
|
95
103
|
|
|
96
104
|
- 选择当前稳定目标需要的已有 capabilities,并说明 required;
|
|
97
105
|
- 没有能力时记录 Project/Service coverage gap;
|
|
@@ -100,7 +108,16 @@ Finish的Git conflict只证明机械应用失败或需要语义判断,不证
|
|
|
100
108
|
|
|
101
109
|
有效Project集合必须合并显式Project、Service所属Project与Change所属Project。只有并集为空时才使用仅工作区policy:空declarations、空capabilities、唯一`workspace` coverage gap与空overrides;Service或Change不能因省略`scope.projects`进入该分支。仅工作区Content Target变化后重新形成policy;Project集合或declaration变化时旧policy必须stale。
|
|
102
110
|
|
|
103
|
-
|
|
111
|
+
stable Content Target形成后按默认顺序执行:
|
|
112
|
+
|
|
113
|
+
1. 针对每个有效Project形成并复核closed Formal Verification Plan;只运行较窄focused feedback,不在阶段切换前另启相同broad affected execution。
|
|
114
|
+
2. Plan preview为`action-required`时,把原样`preparation.planRequest`交给Task Environment一次幂等prepare;不手写安装或扩大Task scope。
|
|
115
|
+
3. 使用同一批Plan documents调用`discover policy --plan <project>::<json-file>`,检查selected、not-selected、coverage gaps与必要risk override,再把返回的closed `inputJson`交给policy writer。
|
|
116
|
+
4. Task Context、Planning、Content Target、Environment准备与policy均current后调用freeze形成或复用Candidate;随后把同一Plan文件交给formal run/reconcile。
|
|
117
|
+
|
|
118
|
+
该顺序是Formal Development的推荐工作流,不自动prepare、policy、freeze或run,也不是普通开发的许可层;Agent仍决定额外风险能力、override、外部授权及是否采用其他满足owner contract的合法路径。Plan、target、declaration或capability identity变化时重新plan,不复用旧preview或execution。
|
|
119
|
+
|
|
120
|
+
Candidate形成后读取response-only`formalVerificationReadiness`:`ready`时把current Candidate identity/generation与Content Target作为显式lease交给`task-verification`;`blocked`只处理其中明确的Candidate输入漂移;`not-applicable`表示尚未到Candidate或已有matching Verification。readiness不进入Receipt、Result或新sidecar。
|
|
104
121
|
|
|
105
122
|
该预检只属于正式Task的Development → Formal Verification交接。开发中的focused/affected/unit/integration反馈、Task外transient`verification run`和Candidate CI不读取readiness。Current Knowledge不再是Formal Verification前的固定预检;它只需在handoff前形成绑定current Content Target的最小disposition。
|
|
106
123
|
|
|
@@ -18,6 +18,7 @@ Task Environment只拥有Buildr-managed checkout、Preparation、runtime project
|
|
|
18
18
|
```bash
|
|
19
19
|
buildr task environment prepare <task-id> --agent <adapter> --target <canonical-workspace> --json
|
|
20
20
|
buildr task environment prepare <task-id> --plan <json-file> --agent <adapter> --target <canonical-workspace> --json
|
|
21
|
+
buildr task environment plan record --schema|--example --json
|
|
21
22
|
buildr task environment plan record <task-id> --input <json-file> --target <canonical-workspace> --json
|
|
22
23
|
buildr task environment plan inspect <task-id> --target <canonical-workspace> --json
|
|
23
24
|
buildr task environment inspect <task-id> --target <canonical-workspace> --json
|
|
@@ -25,8 +26,8 @@ buildr task environment cleanup <task-id> --target <canonical-workspace> --json
|
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
- `--agent`对`prepare`必填,必须写成当前宿主,例如 Cursor 会话写`cursor`、Codex 会话写`codex`。不得省略,也不得假设省略后默认为 Codex。未给`--branch`时默认任务分支为`<adapter>/<task-id>`;显式`--branch`优先。
|
|
28
|
-
- Project可选维护closed `preparation.yml`,长期声明Project-wide或Service-scoped Recipe。Agent读取Task Record的完整Project/Service scope
|
|
29
|
-
- Formal Verification admission返回的closed
|
|
29
|
+
- Project可选维护closed `preparation.yml`,长期声明Project-wide或Service-scoped Recipe。Agent读取Task Record的完整Project/Service scope与构建、验证事实,并先用`task environment plan record --schema|--example`发现与实际normalizer同源的closed输入;只选择当前Task需要的Recipe,提交`buildr.task-environment-plan-request/v1`。Skill不得复制第二份schema或绕过Application的Task scope、declaration identity与Recipe ownership运行态校验;Application解析声明identity并保存`buildr.task-environment-plan/v3`执行快照。没有长期声明时可显式提交`task-inline` Recipe,但不得静默回写Project。
|
|
30
|
+
- Formal Verification Plan preview或admission返回的closed `planRequest`可以带`auxiliaryPreparation`。Agent只能原样交给本Skill的`prepare --plan`;它引用同Project已登记Recipe并绑定capability identity,不进入Task scope、Change、Content Target、allowed execution roots或源码写入authority。不得自行把辅助Service加入Task Record,也不得手写安装命令。
|
|
30
31
|
- `prepare --plan`可一次完成登记与准备;若Agent必须先检查Task checkout,可先运行无Plan的`prepare`取得受控执行根(结果明确blocked),再运行`plan record`和`prepare`。
|
|
31
32
|
- Plan Request只是CLI的一次性输入,不是Environment资源或长期事实。需要JSON文件时,Agent必须在操作系统临时目录创建,不得写入Workspace的`.buildr/tmp/`、`.buildr/transient/`或其他受管资产目录;`prepare --plan`或`plan record`成功后必须立即删除。命令失败时,只有仍需用同一输入诊断或重试才能暂时保留,并必须报告路径;问题解决、放弃重试或Task终止后立即删除。
|
|
32
33
|
- Application保存的resolved `buildr.task-environment-plan/v3`与`buildr.task-environment-receipt/v6`是Plan和机器状态authority;v3把Workspace path reference与executable authority分开,并把capability preparation closure与基础Task选择分开,v6保存closed runtime invocation与解析后的机器事实。旧Plan/Receipt只读;显式`prepare --plan`才升级。原始Plan Request不进入SQLite。Environment cleanup只清理Receipt已登记资源与provider-owned执行位置,不扫描或删除调用方临时输入。
|
|
@@ -32,6 +32,8 @@ Agent 负责选择 Git、拉取请求(Pull Request, PR)、分支与恢复策
|
|
|
32
32
|
|
|
33
33
|
`run` 按 `preflight → prepare → verify → deliver → cleanup` 尝试自动化;这些阶段不是 Agent 必须遵循的唯一工作方式。出现冲突或远端变化时,Agent 可继续同一 run、处理交付适配(Delivery Adaptation)、改走 PR 或直接 Git。不得手写 resume token、claimed success 或语义等价证明。
|
|
34
34
|
|
|
35
|
+
Agent-reviewed Delivery Adaptation必须对冻结Task Contribution的每个路径形成唯一处置:目标精确包含、carrier实际改变,或Agent通过matching run/resume使用`--reviewed-target-path <repository-selector>::<path>::<reason>`逐路径确认目标语义承接。Buildr只证明路径集合、Git bytes与identity闭合;逐路径理由仍是Agent判断,不被描述为机器证明。缺失、未知、重复、空理由或陈旧run/target/carrier输入保持同一run blocked。零差异适配仍需`--accept-zero-delta-adaptation`,且不隐式豁免逐路径覆盖。
|
|
36
|
+
|
|
35
37
|
如果Agent误改原Task worktree并形成新的current Candidate,先重新读取Finish current facts。只有facts明确返回`stale-run-retirable`与available `finish-rollover`能力时,Agent才可显式执行:
|
|
36
38
|
|
|
37
39
|
`buildr task finish rollover --task <task-id> --recovery-token <facts-token> --commit-message '<semantic-message>' --target <canonical-workspace> --detail compact --json`
|
|
@@ -59,8 +61,7 @@ Agent 可通过 Git Operations、PR 或其他已授权方式推进代码;每
|
|
|
59
61
|
|
|
60
62
|
环境清理由 Agent 在适当时机独立执行:`buildr task environment cleanup <task-id> --target <canonical-workspace> --json`
|
|
61
63
|
|
|
62
|
-
Environment 只消费 Buildr 已持久化的交付证据或明确 abandon 终态。无法证明 worktree 内容已交付、ownership 不明或 source
|
|
63
|
-
没有current Environment时,Cleanup必须报告`not-applicable`或`attention`,不得声称`cleaned`。
|
|
64
|
+
Environment 只消费 Buildr 已持久化的交付证据或明确 abandon 终态。无法证明 worktree 内容已交付、ownership 不明或 source 已漂移时必须保留现场;没有current Environment时,Cleanup必须报告`not-applicable`或`attention`,不得声称`cleaned`。
|
|
64
65
|
|
|
65
66
|
精确 carrier cleanup、旧 run retirement和本地安全rollover只能通过 Buildr 提供的封闭原语执行。原语会重新验证 Task/run/carrier identity、ownership、repository topology、phase、side effects,以及对应路径需要的remote containment或carrier disposability proof,不接受调用方指定任意删除路径;事实不足时保留现场,由 Agent 选择下一策略。
|
|
66
67
|
|
|
@@ -70,7 +71,7 @@ Environment 只消费 Buildr 已持久化的交付证据或明确 abandon 终态
|
|
|
70
71
|
- repository、branch、remote 或 Task identity 有歧义;
|
|
71
72
|
- 需要 force push、覆盖他人提交或改写共享历史;
|
|
72
73
|
- 无法证明 worktree、carrier 或资源属于当前 Task 并可安全删除;
|
|
73
|
-
-
|
|
74
|
+
- 调用方试图伪造交付、语义等价或完成证据;Agent-reviewed carrier没有完整处置Task Contribution的全部路径,或路径覆盖证明已漂移。
|
|
74
75
|
|
|
75
76
|
Buildr 状态不一致、可重建证明缺失、重复观察已交付 repository、单个 Cleanup 或 Diagnostics 失败,不属于 Delivery 阻断条件。
|
|
76
77
|
|
|
@@ -17,6 +17,8 @@ description: 用户明确要求复盘已完成或已放弃的正式 Task,或
|
|
|
17
17
|
|
|
18
18
|
已有Result可以重做并完整替换;没有Result只是“尚未复盘”。同时读取 `disposition` 与 `currentDigest`;不要打开SQLite;不读取、迁移或删除`.buildr/asset-review/`。
|
|
19
19
|
|
|
20
|
+
在复盘生成前建立一次有界执行事实图,只读取当前runtime可达且与效率、重复、等待、失败恢复或人机协作直接相关的最小事实:Task Record时点与终态、适用的Development/Review/Verification current摘要、相关Execution Record/Finish timing、当前session工具结果,以及已有current `reportMarkdown`。已有复盘是本次重新思考的证据之一,不是必须保留的结论。没有某类事实时标记缺口,不为补齐图谱遍历全部owner、读取完整日志或增加任务消耗;同一事实已在当前上下文可用时不重复回读。该图只存在于Agent任务上下文,不写入Result之外的store、Receipt、history或分析平台。
|
|
21
|
+
|
|
20
22
|
## 2. 生成一份自由复盘
|
|
21
23
|
|
|
22
24
|
只基于当前session/runtime可访问的任务步骤、工具结果和最终事实,重点寻找:
|
|
@@ -31,6 +33,19 @@ description: 用户明确要求复盘已完成或已放弃的正式 Task,或
|
|
|
31
33
|
|
|
32
34
|
用户或团队给出的同类任务耗时参考区间,只作为当前任务复杂度下的比较、解释和优化背景;报告应说明适用范围及偏离原因,不把它固化为通用产品阈值、Result字段、gate、pass/fail标准或自动缩减验证范围的依据。
|
|
33
35
|
|
|
36
|
+
### 确定性流程候选
|
|
37
|
+
|
|
38
|
+
每次生成或重做复盘都主动判断是否存在确定性流程候选,但报告仍是自由Markdown,不要求固定标题、候选数组或评分。可信候选必须有重复证据,或单次已经造成高成本/高风险,并同时说明:
|
|
39
|
+
|
|
40
|
+
- closed输入、唯一Owner、明确停止条件、可验证结果与幂等/有界恢复;
|
|
41
|
+
- 哪些机械步骤可由Application、CLI workflow、checker或test确定化;
|
|
42
|
+
- 哪些目标、业务判断、风险取舍和授权仍由人和Agent保留;
|
|
43
|
+
- 预期节省、失败风险、证据局限与建议资产落点。
|
|
44
|
+
|
|
45
|
+
候选必须通过Core哲学过滤:**Buildr应该约束Agent不要做错事,而不是要求Agent必须通过Buildr才能做事。** 要求普通动作必须经过Buildr、把推荐路径变成唯一合法路径、建立通用许可层/生命周期gate、自动替代专业判断或自动修改Rule/Skill/workflow的方向,不得作为可固化候选;说明违反的authority/判断边界后保留Agent在现有授权与安全边界内直接执行的路径。证据不足、仍依赖业务语义、边界无法闭合或收益不足时,如实保留为普通优化方向或说明没有可信候选,不为填充报告虚构候选。
|
|
46
|
+
|
|
47
|
+
建议落点由Agent判断:价值观、authority与授权边界进入Rule;可复用的Agent判断方法进入Skill;固定机械顺序和closed变换进入Application/CLI workflow;不变量、跨版本兼容与fail-closed边界进入checker/test。候选只提出建议,不直接修改这些资产。
|
|
48
|
+
|
|
34
49
|
## 3. 完整后一次写入
|
|
35
50
|
|
|
36
51
|
报告未完成或任务仍active时不写。完整报告形成后执行:
|
|
@@ -46,13 +61,15 @@ Application会完整替换同一Task的current row;不创建历史、候选或
|
|
|
46
61
|
用户要求处理多份已有复盘时,先通过一次有界批量只读调用取得默认 `pending` 摘要:
|
|
47
62
|
|
|
48
63
|
```text
|
|
49
|
-
<controller-command> <controller-args-prefix...> __internal task-retrospective list --target <canonical-workspace> [--status <pending|handled|no-action|all>] [--task <task-id> ...] [--limit <1..500>] [--include-report]
|
|
64
|
+
<controller-command> <controller-args-prefix...> __internal task-retrospective list --target <canonical-workspace> [--status <pending|handled|no-action|all>] [--task <task-id> ...] [--limit <1..500>] [--max-bytes <1..1048576>] [--include-report]
|
|
50
65
|
```
|
|
51
66
|
|
|
52
|
-
默认最多返回 100 份 pending
|
|
67
|
+
默认最多返回 100 份 pending 摘要、受 262144 UTF-8字节预算约束且不包含报告正文;先用摘要收窄对象,只在确实需要批量读取原文时显式使用 `--include-report`。正文不能作为完整item落入预算时会被省略并标记`truncated`,个别全文继续使用单 Task `inspect`。`list` 只减少重复 driver 调用,不自动分析、评分、生成方向、创建 Task 或修改 disposition,也不成为后续 mutation 的授权或门禁。
|
|
53
68
|
|
|
54
69
|
用户要求处理已有复盘时,再对需要判断的对象使用 `inspect`,在对话中直接给出完整原始 `reportMarkdown`;正文过长或已在同一对话完整展示时可以给出 `currentDigest` 不可变引用,但不能只让用户去 Buildr Web 查。随后读取当前 canonical specs、实现、knowledge 与 open Task,对原问题和建议逐项判断当前是否仍存在、仍有效,再按当前事实重新拆分改进方向;不沿用旧行动项编号,也不生成新 action item ID。
|
|
55
70
|
|
|
71
|
+
处理单份或多份复盘时,对其中的确定性流程候选执行同一语义重评:按实际目标、closed边界和当前实现聚类、合并或丢弃,不按关键词自动聚类,也不把旧候选当作current事实。先用bounded list摘要收窄来源,再逐项inspect必要正文;Application仍只提供事实,分析由Agent完成。重叠候选尽量合并为少量纵向Task,互不相干或不能共享交付结果的方向保持独立。
|
|
72
|
+
|
|
56
73
|
### 4.1 先完成只读讨论
|
|
57
74
|
|
|
58
75
|
用户只说“处理”“检查”“查看”或“分析”复盘时,只授权只读阶段。Agent 可以 inspect、调查当前事实、重判方向并形成拟处置方案,但不得调用 Task Record `create|update` 或 Task Retrospective `handle`。先向用户完整展示:
|
|
@@ -61,6 +78,7 @@ Application会完整替换同一Task的current row;不创建历史、候选或
|
|
|
61
78
|
- 拟 disposition 及完整处置理由;
|
|
62
79
|
- 将复用、创建或关联的目标 Task IDs;
|
|
63
80
|
- 每一项 Task Record 与 Retrospective mutation effect;没有 Task effect 时明确写 none。
|
|
81
|
+
- 每项可信确定性流程候选的来源证据、closed输入、Owner、停止条件、结果/恢复边界、保留给人和Agent的判断、预期收益/风险与Rule/Skill/Application/CLI/checker/test建议落点;没有可信候选时明确说明。
|
|
64
82
|
|
|
65
83
|
展示后停止写入并等待用户决定。用户继续讨论、要求调整、提出异议、只表示“看看再说”或没有明确接受时,保持 current disposition 和全部 Task Record rows 不变;不得把“处理复盘”推断成 `no-action`、`handled`、`pending` 或创建/关联 Task 的授权。
|
|
66
84
|
|
|
@@ -69,9 +87,9 @@ Application会完整替换同一Task的current row;不创建历史、候选或
|
|
|
69
87
|
以下任一情况可以进入写入阶段:
|
|
70
88
|
|
|
71
89
|
1. 用户直接指定了完整 mutation,例如“把这个复盘标记为无需处理,理由是……”,或明确指定 `handled`、处置说明和全部目标 Task effects;完整动作本身就是本次精确 mutation 的明确授权,不再机械要求第二次确认。
|
|
72
|
-
2.
|
|
90
|
+
2. 一人或多人明确接受 Agent 刚展示的完整方案,且 disposition、理由、确定性流程候选、目标 Task IDs 与关系 effects 均未变化。多人意见不一致或仍在讨论时保持只读,不建立reviewer、票数或approval状态。
|
|
73
91
|
|
|
74
|
-
授权只覆盖已指定或已展示的精确 effects
|
|
92
|
+
授权只覆盖已指定或已展示的精确 effects。确认候选只授权创建或关联承接Task,不授权直接修改候选指向的Rule、Skill、Application、CLI、checker或test;这些资产仍由后续Task按当前事实治理。表达不完整或含糊时继续保持只读。实际写入前重新 inspect,并复核 current digest、拟 disposition、处置理由、候选边界、目标 Task 与关系 effects;任一事实或 effect 发生实质变化时旧授权失效,立即停止后续写入、保持 current disposition、重新展示变化后的完整方案并取得新授权。若已有部分已授权 effects 成功,原样报告实际 effects,不回滚、不扩大授权,也不得把部分落地冒充完整处置。
|
|
75
93
|
|
|
76
94
|
### 4.3 只执行已授权 effects
|
|
77
95
|
|
|
@@ -96,6 +114,6 @@ Application会完整替换同一Task的current row;不创建历史、候选或
|
|
|
96
114
|
|
|
97
115
|
## 5. 报告边界
|
|
98
116
|
|
|
99
|
-
|
|
117
|
+
向用户返回原始复盘或不可变引用、当前有效性证据、重新拆分方向、确定性流程候选或无候选结论、哲学边界判断、丢弃理由、实际承接Task IDs、关系effects、operation status与current digest。todo只表示意向,后续明确启动时再走task-triage和activate。
|
|
100
118
|
|
|
101
119
|
本Skill不参与Task完成、Development handoff、Finish、cleanup或OpenSpec门禁,也不创建空复盘。
|
|
@@ -32,6 +32,8 @@ Result 存在但未提供 current target 时 applicability 是 `unknown`;ident
|
|
|
32
32
|
|
|
33
33
|
current planning nodes包含OpenSpec Change `tasks.md`时,Planning Review必须逐项语义判断checkbox能否在Change convergence/archive前完成,并把实际checklist写入`reviewed`;无法审查时写入`uncovered`及原因。只能在archive后由Formal Verification、Candidate、Completion Review、Task Finish、Environment cleanup或Task terminal authority完成的checkbox必须形成精确finding并返回`changes-required`,先修订planning artifact。不得用关键词匹配代替语义判断:实现或测试同名产品能力、且能在archive前完成的Change-owned action仍可合法保留。planning不含`tasks.md`时不创建虚假审查对象。
|
|
34
34
|
|
|
35
|
+
当Task Intent或current planning nodes经语义审查后确实跨两个以上lifecycle owner时,Planning Review另外把实际受影响owner、每个owner保护的结果不变量与未覆盖边界写入现有`reviewed|uncovered|findings`。Owner集合必须来自Agent对current Task、canonical authority与planning artifacts的判断,不得按关键词生成通用authority map,也不得为单owner、code-only或不相关Task套用固定Delivery/Activation/Cleanup/Diagnostics清单。无法覆盖的相关owner写入`uncovered`及真实原因;只有遗漏会放行错误对象写入、证据失真或完成误报时才返回`changes-required`,一般完整性建议只记录finding。
|
|
36
|
+
|
|
35
37
|
同时维护:
|
|
36
38
|
|
|
37
39
|
- `reviewed`:至少一个实际完成审阅的可移植逻辑对象;
|