@buildr-ai/buildr 0.1.0-rc.23 → 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.
@@ -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.23",
4
+ "buildrVersion": "0.1.0-rc.24",
5
5
  "protocolIdentity": "buildr.web-protocol/v1",
6
- "sourceCommit": "e81a2c31ffb77f1b60947d8b29aa2a3ab417fa01",
6
+ "sourceCommit": "7d1b4dd8e61c64da8d55591405d8f67be9a9c44c",
7
7
  "enginesNode": ">=24.15.0 <25",
8
8
  "productionDependencies": [
9
9
  {
@@ -54,7 +54,7 @@
54
54
  "path": "resources/product/package.json",
55
55
  "mode": 420,
56
56
  "size": 769,
57
- "sha256": "d54563dc4f34f94fb49952aa5af7247109ddbbafd55b99d2573d046ee1a9292f"
57
+ "sha256": "89456b82e813fda881d93eaf02b981b8708d3e416eb742fe3bc9edac1bb06ff5"
58
58
  },
59
59
  {
60
60
  "path": "resources/product/package/targets/runtime/skills/buildr/SKILL.md",
@@ -221,14 +221,14 @@
221
221
  {
222
222
  "path": "resources/product/resources/workspace/skills/buildr/task-development/SKILL.md",
223
223
  "mode": 420,
224
- "size": 23355,
225
- "sha256": "15b0fe3211319be2cfd5be817baba68ec12b317020be956853cb8276b7246c03"
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": 8283,
231
- "sha256": "5c04e24e5e935edd8917a4247cc522257467025d2ef9dcc8341dd87d7f1b923b"
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": 6865,
261
- "sha256": "12318bb7031a38d004dd2b85034f9f26bdb39bd2ac2d69379406d77f1005fc54"
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": 8796,
279
- "sha256": "08ed7d976be354637f877e51cd5bd42de882da4bb1e313455f151269cda63577"
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": 5989,
291
- "sha256": "eb267efddb8ba70eaf5ff33ffa0a9577813975659a672c33bf631a20b37d2cbd"
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,8 +305,8 @@
305
305
  {
306
306
  "path": "resources/product/resources/workspace/skills/buildr/task-verification/SKILL.md",
307
307
  "mode": 420,
308
- "size": 16077,
309
- "sha256": "f29a1bc421b90d06445171b9a642a6e222d18c79be8b045effef78178cf93908"
308
+ "size": 18992,
309
+ "sha256": "9fecd05bf07b912a7329f88aad8888e52014b038d37d04b48b020080b1f88f59"
310
310
  },
311
311
  {
312
312
  "path": "resources/product/resources/workspace/skills/buildr/task-verification/references/project-verification-v3.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": 12908,
369
- "sha256": "f6379ddcc21e7616134957aff4c8c09053970c31984a7a221d0b3e6f325a9bab"
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": 4412,
381
- "sha256": "1bceb07695b473c354aefbd2c9924a5fcd42d7de874200ec4c55aa8bd717f88e"
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": 3990,
393
- "sha256": "57319ab0a7830039947f3b31e4a9c6c84f79de776385c6dcf4ceb94db08950d5"
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": 11367,
405
- "sha256": "22163f8a48c970bc40d4f68e2410a032e1e9e4bc6f901b6bc5ffb33f2fd17458"
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": 3571200,
597
- "sha256": "8285d1951a68d51923501a2c7a7103c3bb7193a0be7ec82b10d160c25f1f8018"
602
+ "size": 3655025,
603
+ "sha256": "43ae33d68f9379aa1e9983707a1ef9abcd0a53565a8d1348bea7316aa1388f9b"
598
604
  },
599
605
  {
600
606
  "path": "runtime/buildr.cjs",
601
607
  "mode": 420,
602
- "size": 3634070,
603
- "sha256": "c2104ce1aaacd872ac714509e1397238277d64aae6261b1429af1fc57759f074"
608
+ "size": 3718180,
609
+ "sha256": "5ca2744c706f84fc27d6c8f8e4b8266f299fbd96c82e31560690fe43855bbeef"
604
610
  }
605
611
  ],
606
- "applicationPayloadDigest": "sha256-e1afd343983fa3bee55bc626c8c0b724a904eb9123ea17dd940b32ed0aaa2eab"
612
+ "applicationPayloadDigest": "sha256-8721d9613b14c6c733fb50d130860f012cdb18586ff714e73689d598eff7b953"
607
613
  }
@@ -3,11 +3,11 @@
3
3
  "channel": "npm",
4
4
  "runtimeRole": "host",
5
5
  "package": "@buildr-ai/buildr",
6
- "version": "0.1.0-rc.23",
6
+ "version": "0.1.0-rc.24",
7
7
  "protocolIdentity": "buildr.web-protocol/v1",
8
- "applicationPayloadDigest": "sha256-e1afd343983fa3bee55bc626c8c0b724a904eb9123ea17dd940b32ed0aaa2eab",
9
- "sourceCommit": "e81a2c31ffb77f1b60947d8b29aa2a3ab417fa01",
8
+ "applicationPayloadDigest": "sha256-8721d9613b14c6c733fb50d130860f012cdb18586ff714e73689d598eff7b953",
9
+ "sourceCommit": "7d1b4dd8e61c64da8d55591405d8f67be9a9c44c",
10
10
  "sourceTag": null,
11
- "installUnit": "@buildr-ai/buildr@0.1.0-rc.23",
12
- "ownershipIdentity": "sha256-fdbfd14e2c99de097b15a91cccbbce9658b72840cc55e5e4849d2dabf4d3d2d8"
11
+ "installUnit": "@buildr-ai/buildr@0.1.0-rc.24",
12
+ "ownershipIdentity": "sha256-865ac92dc2f62ab673d9fe8340cb6318ebcee2b7ffc7e24075bdb64fb3869102"
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildr-ai/buildr",
3
- "version": "0.1.0-rc.23",
3
+ "version": "0.1.0-rc.24",
4
4
  "description": "Buildr CLI for managing Agent workspace assets.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildr-ai/buildr",
3
- "version": "0.1.0-rc.23",
3
+ "version": "0.1.0-rc.24",
4
4
  "description": "Buildr CLI for managing Agent workspace assets.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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。随后继续正常Candidate、Completion Review、decision、handoff与Formal Finish。
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 和 Task Verification Application 返回的 current declarations,形成一份完整 policy:
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
- 先在Task Context、Planning、Content Target与policy current时调用freeze形成或复用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。
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与构建、验证事实,只选择当前Task需要的Recipe,提交`buildr.task-environment-plan-request/v1`;Application解析声明identity并保存`buildr.task-environment-plan/v3`执行快照。没有长期声明时可显式提交`task-inline` Recipe,但不得静默回写Project。
29
- - Formal Verification admission返回的closed recovery `planRequest`可以带`auxiliaryPreparation`。Agent只能原样交给本Skill的`prepare --plan`;它引用同Project已登记Recipe并绑定capability identity,不进入Task scope、Change、Content Target、allowed execution roots或源码写入authority。不得自行把辅助Service加入Task Record,也不得手写安装命令。
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时不写。完整报告形成后执行:
@@ -53,6 +68,8 @@ Application会完整替换同一Task的current row;不创建历史、候选或
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. 用户明确接受 Agent 刚展示的完整方案,且 disposition、理由、目标 Task IDs 与关系 effects 均未变化。
90
+ 2. 一人或多人明确接受 Agent 刚展示的完整方案,且 disposition、理由、确定性流程候选、目标 Task IDs 与关系 effects 均未变化。多人意见不一致或仍在讨论时保持只读,不建立reviewer、票数或approval状态。
73
91
 
74
- 授权只覆盖已指定或已展示的精确 effects。表达不完整或含糊时继续保持只读。实际写入前重新 inspect,并复核 current digest、拟 disposition、处置理由、目标 Task 与关系 effects;任一事实或 effect 发生实质变化时旧授权失效,立即停止后续写入、保持 current disposition、重新展示变化后的完整方案并取得新授权。若已有部分已授权 effects 成功,原样报告实际 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
- 向用户返回原始复盘或不可变引用、当前有效性证据、重新拆分方向、丢弃理由、实际承接Task IDs、关系effects、operation status与current digest。todo只表示意向,后续明确启动时再走task-triage和activate。
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`:至少一个实际完成审阅的可移植逻辑对象;
@@ -53,9 +53,9 @@ current Result只有在Candidate identity/generation、target与全部declaratio
53
53
 
54
54
  ## 3. 选择并执行已有能力
55
55
 
56
- 在追加 broad transient verification 前,如果 Project registry 或现有命令提供不执行测试的 `plan-only` / `dry-run` affected plan,先消费该计划,核对所选范围、成本、未映射路径与额外风险,再由 Agent结合Task Intent、实际变更、declaration和policy判断是否需要补充反馈。通用Skill不发明或硬编码Project专用命令;Project没有计划入口时,依据现有事实选择范围,不创建planner、不猜命令,也不把缺少preview记为coverage gap。
56
+ 在追加 broad transient verification 前,如果 Project registry 或现有命令提供不执行测试的 `plan-only` / `dry-run` affected plan,先消费该计划,核对所选范围、成本、未映射路径与额外风险,再由 Agent结合Task Intent、实际变更、declaration和policy判断是否需要补充反馈。若该计划就是随后同一 target/declaration/capability identities 的Formal Verification request,直接保留并交给正式`verification run --plan`,不要因开发阶段和正式阶段切换再启动一轮相同broad affected execution。通用Skill不发明或硬编码Project专用命令;Project没有计划入口时,依据现有事实选择范围,不创建planner、不猜命令,也不把缺少preview记为coverage gap。
57
57
 
58
- 计划预览不是 Verification Execution Evidence、Result fact或 capability execution。stable Content Target进入正式Verification后,policy要求的capability仍须实际执行,或按exact invocation语义复用既有正式Execution Record;CLI plan输出、Agent推理和耗时估计都不能替代Task Verification Application的current Result authority。
58
+ 计划预览不是 Verification Execution Evidence、Result fact或 capability execution。stable Content Target进入正式Verification后,policy要求的capability仍须实际执行,或按exact invocation语义复用既有正式Execution Record;仅为早期诊断而运行的较窄focused feedback保持transient,不可`record/reconcile`为Formal Result。target、declaration或capability identities变化时重新形成Formal Plan;CLI plan输出、Agent推理和耗时估计都不能替代Task Verification Application的current Result authority。
59
59
 
60
60
  先生成并复核 closed Plan,再针对 target 逐项核对 capability 的 Project/Service scope、discovery、usable target、environment、effects 和授权:
61
61
 
@@ -65,7 +65,9 @@ current Result只有在Candidate identity/generation、target与全部declaratio
65
65
  buildr verification plan --project <code> \
66
66
  --target-kind task-delivery --selection-scope affected \
67
67
  --target-identity <identity> --changed-path <path> \
68
- --target <execution-root> --json > <plan-file>
68
+ --target <execution-root> \
69
+ --environment <task-id> --workspace <canonical-workspace> \
70
+ --json > <plan-file>
69
71
 
70
72
  buildr verification run --project <code> \
71
73
  --plan <plan-file> \
@@ -77,9 +79,22 @@ buildr verification run --project <code> \
77
79
  --json
78
80
  ```
79
81
 
82
+ 正式Plan返回`buildr.verification-plan-result/v1`,其中`plan`仍是closed `buildr.verification-plan/v1`,`preparation`只读投影全部selected capability requirements。`preparation.status: action-required`时,在启动run前把`preparation.planRequest`原样交给Task Environment `prepare --plan`;成功后使用同一Plan result执行run。Preview不执行Recipe、不打开Execution Record,也不构成execution授权;run仍重验current declaration、Environment与closure drift。没有formal Environment的普通plan-only继续返回raw Plan v1。
83
+
84
+ stable Content Target的Formal Plans按有效Project全部形成后,使用matching retained controller调用Task Development:
85
+
86
+ ```text
87
+ <controller-command> <controller-args-prefix...> __internal task-development discover \
88
+ --task <task-id> --target <canonical-workspace> \
89
+ --input-json '{"action":"policy"}' \
90
+ --plan <project>::<plan-file> [--plan <project>::<plan-file> ...]
91
+ ```
92
+
93
+ Task Verification Application会重新校验Plan closed identity、task-delivery target、current Content Target、Project/declaration与selected capability,并返回policy writer所需的closed `inputJson`、Plan identities和response-only not-selected摘要;它零写入,不把Plan正文、preparation、not-selected或文件路径保存到Result/Receipt。Project集合缺失/重复或任一identity陈旧时重新plan,不手抄或猜选能力。Plan文件位于操作系统临时目录,只保留到同一Plan完成policy派生和formal run;随后立即删除。无Plan时仍可使用declaration默认policy discovery作为合法降级,但不得把它声称为Plan-derived选择。
94
+
80
95
  `verification run`只执行已选择的command capability;`--json`默认返回有界`buildr.long-running-operation-summary/v1`,只有诊断需要时才显式使用`--detail full`返回既有`buildr.verification-execution/v1`。compact中的recovery pointer必须先用于回读同一Execution Record;stdout丢失、等待超时、展示截断或既有failed都不授权重跑。它不接受`--declaration-root`。带matching Task Environment的正式execution必须由Development consumer提交current Candidate lease,并在启动capability前把Candidate加入invocation identity和Task Execution Record;runner不反向读取或写Development。完成后先seal受控、脱敏、有限期正文,再精确清理transient evidence。Task外execution不接受Candidate lease且仍只产生transient evidence。`--declaration-root`只用于Result reconciliation;`inspect`不重新观察声明。
81
96
 
82
- 正式execution先执行低成本、纯读preparation admission。capability可在`environment.preparation`引用同Project `preparation.yml` Recipe;admission绑定selected capability、closure、Plan、Receipt与runtime identities。`ready`后runner才允许open Execution Record或启动进程/Browser/外部资源。`verification.preparation_blocked`只在`admission.recovery`存在时提供closed `planRequest`:把它原样交给Task Environment `prepare --plan`,删除临时输入,再重跑同一`verification run`。不要手工运行`npm ci`、猜cwd、设置`BUILDR_NODE`/PATH,或把辅助Service加入Task scope。declaration、authorization、coverage或external resource gap不进入Environment恢复。
97
+ 正式execution先执行低成本、纯读preparation admission。capability可在`environment.preparation`引用同Project `preparation.yml` Recipe;admission绑定selected capability、closure、Plan、Receipt与runtime identities。`ready`后runner才允许open Execution Record或启动进程/Browser/外部资源。Agent忽略preview、或preview后Environment漂移时,pre-admission `verification.preparation_blocked`继续作为安全降级:尚无durable Execution Record时,compact的`recovery`按约束保持null,`primaryFailure`会要求对同一invocation追加`--detail full`读取既有`admission.recovery.planRequest`;这次降级不会启动capability或补造record。取得closed `planRequest`后把它原样交给Task Environment `prepare --plan`,删除临时输入,再重跑同一`verification run`。不要手工运行`npm ci`、猜cwd、设置`BUILDR_NODE`/PATH,或把辅助Service加入Task scope。declaration、authorization、coverage或external resource gap不进入Environment恢复。
83
98
 
84
99
  该门禁只保护Formal Verification execution、Result与完成声明。provider/preflight暂不可用时,可以继续无关开发、只读调查和明确标记的有界非正式检查,但不得写Formal Result或据此声称完成;恢复后仍须通过Task Environment与admission。runner在首次副作用前重验全部binding,漂移时返回preparation drift并保持Execution Record未打开。
85
100
 
@@ -103,6 +118,8 @@ latest固定按active优先,再在对应集合使用`opened_at DESC, record_id
103
118
 
104
119
  完整命令、本机路径、waiting ticket、资源 lease 和 Environment handle 只属于 transient execution evidence。正式 Task Execution Record 只保留可移植摘要、按 capability 分段且受配额/脱敏控制的 stdout/stderr、闭合时间线与诊断;不进入 current Verification Result。运行中或暂时无输出时继续等待同一 execution,不启动重复 verifier。整体耗时只从 execution wall-clock 读取,不相加并行检查耗时。
105
120
 
121
+ 当单条 open Verification Execution Record 提供 `openLocalProgress` 时,只把它当作同一record的本机最后观察:读取 capability、phase、heartbeat、PID/PGID和有界输出摘要后继续等待或按owner recovery;它不是terminal outcome、Verification Result或retry授权。`timed-out`、`cancelled`与process cleanup failure必须分别报告;只有显式`--retry`才启动同一exact invocation的新run。
122
+
106
123
  ## 4. 从execution authority对账current Result
107
124
 
108
125
  能力执行完成后,先用Execution Record list/inspect确认所选record为matching Task、Candidate、target与declaration的terminal authority,再一次性reconcile:
@@ -27,6 +27,7 @@ consumer不得直接读写Workspace SQLite Development current slot或旧`.build
27
27
  - Development Application只能通过Task Record、Environment、Review与Verification Applications/ports取得专业事实;不得直接读取其stores。
28
28
  - Development Application接收`converged`时必须复用Task Record的Task-scoped Change read model,并以当前working copy的`available + archived` lifecycle证明;不得回退到retained baseline、路径扫描、文件存在或调用方summary。后续inspect、freeze、decision、handoff与carrier currentness必须重验该事实,漂移时使Task Context、Candidate与handoff stale或blocked。
29
29
  - 新写入Receipt使用closed`buildr.task-development-receipt/v3`,保存Task、Environment逻辑引用、Task context、planning current snapshot、可空Parent Plan、planned Contribution bindings、可空Content Target、policy、current Candidate/generation、可空Current Knowledge disposition、最小gates/dispositions、decision与append-only handoffs;v1/v2只读归一化为absent新增facts,不backfill、不迁移。
30
+ - 内部driver的`discover` action只接受`observe|policy`目标,并从current Task、ready Environment、Development Receipt与Task Verification read model返回`buildr.task-development-current-input/v1` closed `inputJson`。stable Content Target进入正式验证时,consumer可以按有效Project完整提交closed Formal Plan documents;Task Verification Application必须校验Plan、target、declaration和capability后投影selected policy输入与response-only not-selected摘要。该投影不写Receipt、applicability、Task或专业Result;`observe|policy` mutation仍必须在写入前按同一Application重新校验current facts、identity与scope。无Plan的declaration默认发现保持合法降级路径。
30
31
  - provider只读取Workspace SQLite中的合法v2 current Receipt;旧File Store中的v1/v2 Receipt均保持inert,不读取、不迁移、不双写。
31
32
  - Receipt不保存artifact/Result正文、diff、inventory、stdout/stderr、timing、绝对路径、资源handle、聊天、隐藏推理、完整history/revision/CAS/锁/租约。
32
33
  - planning snapshot只保存按id排序的最小nodes与aggregate identity;没有实际节点不得创建空artifact或Result。
@@ -52,7 +53,7 @@ consumer不得直接读写Workspace SQLite Development current slot或旧`.build
52
53
 
53
54
  Application operation result使用`buildr.task-development-operation-result/v1`,返回operation、status、Task ID、Receipt read model、response-only receipt digest、planning/content/policy/Candidate/gate/handoff applicability、response-only Formal Verification readiness、精确effects、diagnostic与next actions。内部driver可以显式返回同一次Application result的`buildr.task-development-driver-compact/v1` response projection;该投影只保留current identities/applicability、readiness与同源effects、diagnostic、next actions,不追加Application action、Workspace观察或持久化,也不替代完整Result与Receipt authority。Receipt中的专业Result只保存digest、target、outcome与current snapshot;waiver只保存target、summary与source。
54
55
 
55
- Next actions只按本次已保存Receipt/applicability提供建议性方向;consumer仍须读取当前阶段的selected专业provider和授权后决定是否执行。timing、调用次数及其他效率指标不得进入建议判断、gate、Task状态、Candidate或自动skip/advance。
56
+ Next actions只按本次已保存Receipt/applicability提供建议性方向;Content Target current但policy missing/stale时,默认先指向Task Verification形成Formal Plan、完成必要Environment prepare并派生policy,policy current后才建议freeze。该顺序保持recommended,不自动prepare、写policy、freeze或run,也不阻止无关开发、focused feedback和其他合法路径。consumer仍须读取当前阶段的selected专业provider和授权后决定是否执行。timing、调用次数及其他效率指标不得进入建议判断、gate、Task状态、Candidate或自动skip/advance。
56
57
 
57
58
  正式handoff至少保存Candidate identity/generation及其输入identities、Change dispositions、Planning/Verification/Completion gate或disposition、proceed decision、风险/waiver来源和snapshot identity/time;承担Parent Contribution时还保存完整Contribution Handoff。
58
59
 
@@ -20,6 +20,8 @@ provider只消费Development handoff,不得运行或记录Task Verification/Ta
20
20
 
21
21
  provider必须冻结Task、handoff、Candidate/generation、Content Target、repository set和Task Contribution。自动路径继续要求matching ready Environment,只能普通fast-forward/push并回读远端;reconciliation优先复用current Environment,缺失、已清理或局部不可用时必须从current handoff、Task scope、Project/Service registries、Git topology及明确或唯一remote/target构造只读context,不得恢复或补造Receipt。它逐repository从真实remote target重建containment;已证明交付的repository必须立即checkpoint并幂等复用。
22
22
 
23
+ Agent-reviewed Delivery Adaptation必须从冻结Task Contribution派生完整路径集合,并为每个路径保存唯一处置:target精确包含、carrier实际改变或Agent通过matching run/resume提交逐路径非空理由。未知、重复、未处置路径或run/target/carrier identity漂移必须在adoption、deliver与cleanup前fail closed。逐路径Agent判断必须标记为Buildr未证明语义等价;provider不得把task-wide review隐式应用到未列出的路径。覆盖事实必须进入既有carrier proof identity并由remote readback与cleanup重验,不得创建第二Result或事件store。
24
+
23
25
  `run`、`rollover`、`reconcile`、`inspect`与Task Entry consumer必须消费同一Product-owned current facts模型。该模型只投影current handoff applicability、repository topology、run/carrier ownership、side effects、remote containment、维护结果、recovery disposition、typed blockers、required安全前置与available capabilities;它不得选择Git、PR、重新开发、恢复或放弃策略。`task next`只能展示这些阻碍与能力,兼容性的单一next提示不构成规范性决策。
24
26
 
25
27
  Delivery一旦由权威Git事实确认,不得因Doctor、Activation、Execution Record、Environment Cleanup、Task登记或Buildr内部派生证据失败而改写为未交付。上述失败必须形成独立`attention`并保留已发生effects。
@@ -32,7 +34,7 @@ carrier cleanup、旧run retirement与本地安全rollover只能通过Product-ow
32
34
 
33
35
  ## Result Evidence
34
36
 
35
- 结果至少保存Task/handoff/Candidate/Content Target/repository set identity,以及每个repository的disposition、Task Contribution identity、observed/final remote ref和containment proof;状态与proof必须成对持久化。公开结果必须分别表达Delivery、Activation、Environment Cleanup、Diagnostics与attention,并保留部分成功事实;无current Environment的reconciliation必须把Cleanup表达为`not-applicable`或`attention`,不得声称`cleaned`。
37
+ 结果至少保存Task/handoff/Candidate/Content Target/repository set identity,以及每个repository的disposition、Task Contribution identity、适用的路径覆盖identity与分类计数、observed/final remote ref和containment proof;状态与proof必须成对持久化。公开结果必须分别表达Delivery、Activation、Environment Cleanup、Diagnostics与attention,并保留部分成功事实;无current Environment的reconciliation必须把Cleanup表达为`not-applicable`或`attention`,不得声称`cleaned`。
36
38
 
37
39
  ## Decision Points
38
40
 
@@ -12,7 +12,7 @@ version: 2
12
12
 
13
13
  ## Consumer Obligations
14
14
 
15
- consumer 必须提供 canonical Workspace 与 terminal Task ID。记录报告时只使用当前可见证据;处理报告时必须先 inspect 并向用户提供原始正文或 current digest 不可变引用,再调查当前 specs、实现、knowledge 和 active Tasks。
15
+ consumer 必须提供 canonical Workspace 与 terminal Task ID。记录报告时只使用当前可见证据,并按需提供Task Record时点、专业current摘要、相关Execution Record/Finish timing、工具结果与已有current复盘;处理报告时必须先 inspect 并向用户提供原始正文或 current digest 不可变引用,再调查当前 specs、实现、knowledge 和 active Tasks。
16
16
 
17
17
  “处理、检查、查看、分析复盘”等未指定 mutation 的宽泛请求只授权只读阶段:consumer 必须展示拟 disposition、理由、目标 Task IDs 和完整 Task effects,不得调用 Task Record create/update 或 Task Retrospective handle。只有用户直接指定完整 mutation,或明确接受刚展示且未发生实质变化的完整方案后,才能执行精确写入;完整动作本身已构成授权时不得要求重复确认。只有全部有效方向已关联承接 Task、全部丢弃方向已有理由时才可提交 handled;没有有效方向使用 no-action。
18
18
 
@@ -20,17 +20,21 @@ consumer 必须提供 canonical Workspace 与 terminal Task ID。记录报告时
20
20
 
21
21
  provider 必须通过 Task Retrospective Application 维护单一 current Markdown Result 与 `pending|handled|no-action` disposition,并提供有默认值和硬上限的有界批量只读结果。批量读取默认只返回 pending 摘要,报告正文必须显式请求;它不得建立新存储、缓存或历史,也不得自动分析、评分或处置。
22
22
 
23
+ provider 必须从当前可见的任务执行过程事实与已有current复盘中主动探索确定性流程候选。可信候选必须说明重复或单次高成本/高风险证据、closed输入、Owner、停止条件、结果证据、可恢复性、预期收益、仍由人和Agent保留的判断与Rule/Skill/Application/CLI/checker/test建议落点;没有可信候选时如实说明。候选不得把推荐路径变成唯一合法路径、通用许可层或lifecycle gate,不得自动替代专业判断、修改工作资产或创建承接Task,也不得建立审批、事件、history或workflow registry。
24
+
25
+ 处理单份或多份复盘时,provider必须先使用有界摘要收窄对象,再对必要来源逐项inspect,基于当前事实语义聚类、合并或丢弃候选。它不得按关键词自动聚类或把旧候选视为current事实;Application的list/inspect仍只返回事实,不执行分析。
26
+
23
27
  provider 通过 selected `buildr.task-record/v2` provider 复用已有 todo/active Task 或创建 data-only todo,再写 source Task 关系。provider 必须允许多方向合并到一个 Task及一个来源关联多个 Task;不得创建 action item ID、通用 relation、第二 backlog 或自动生成 Change/Environment/artifacts。
24
28
 
25
29
  ## Effects and Authorization
26
30
 
27
- inspect、list 与 current facts 调查零写入。record/handle 只写 Retrospective current row;后续承接只通过 Task Record provider 写 Task-owned rows。Agent mutation 授权必须覆盖拟 disposition、处置理由和全部 Task 创建/关联 effects;未提及的 effects 不得推断为已授权。执行前重新 inspect 发现 current digest、拟 disposition、理由、目标 Task 或关系 effects 发生实质变化时,旧授权失效,provider 必须停止后续写入、保持 current disposition,并重新展示完整方案取得新授权;已有部分已授权 effects 只能按实际结果报告,不得冒充完整处置。
31
+ inspect、list 与 current facts 调查零写入。record/handle 只写 Retrospective current row;后续承接只通过 Task Record provider 写 Task-owned rows。Agent mutation 授权必须覆盖拟 disposition、处置理由、确定性流程候选和全部 Task 创建/关联 effects;未提及的 effects 不得推断为已授权。一人或多人仍在讨论、意见不一致或没有明确接受时保持只读,不建立approval状态。候选确认只授权承接Task effects,不授权直接修改其建议落点。执行前重新 inspect 发现 current digest、拟 disposition、理由、目标 Task 或关系 effects 发生实质变化时,旧授权失效;候选边界发生实质变化时同样失效。provider 必须停止后续写入、保持 current disposition,并重新展示完整方案取得新授权;已有部分已授权 effects 只能按实际结果报告,不得冒充完整处置。
28
32
 
29
33
  处理流程不得修改原始报告、自动激活 Task、执行研发或成为 lifecycle gate。Buildr Web 的明确按钮动作可以维护 disposition 并只读展示当前承接 Task,但不生成报告或创建 Task。
30
34
 
31
35
  ## Result Evidence
32
36
 
33
- 记录/单份读取返回 operation、current Result/digests、disposition、effects 与承接 Task current summaries。批量读取返回过滤条件、匹配数、返回数、截断状态、稳定排序的摘要与逐项诊断,并保持 `effects: []`;正文只在显式请求时 additive 返回。处理报告必须包含原始报告或引用、当前有效性证据、重新拆分方向、丢弃理由、实际 target Task IDs、关系 effects 和最终 disposition。
37
+ 记录/单份读取返回 operation、current Result/digests、disposition、effects 与承接 Task current summaries。批量读取返回过滤条件、匹配数、返回数、截断状态、稳定排序的摘要与逐项诊断,并保持 `effects: []`;正文只在显式请求时 additive 返回。处理报告必须包含原始报告或引用、当前有效性证据、重新拆分方向、可信确定性流程候选或无候选结论、哲学护栏判断、丢弃理由、实际 target Task IDs、关系 effects 和最终 disposition。
34
38
 
35
39
  ## Decision Points
36
40
 
@@ -38,4 +42,4 @@ Task 未终态、报告/当前事实不可得、用户是否授权具体 disposi
38
42
 
39
43
  ## Allowed Variations
40
44
 
41
- Agent 可以使用自由 Markdown、不同调查顺序和目标 Task 聚合方式;不得估算不可得 token、跟踪 action item、自动修改 Rule/Skill/workflow、建立 history 或阻塞 Task lifecycle。
45
+ Agent 可以使用自由 Markdown、不同调查顺序、候选表达与目标 Task 聚合方式;不得强制固定候选列表或评分,不得估算不可得 token、跟踪 action item、自动修改 Rule/Skill/workflow、建立 history 或阻塞 Task lifecycle。
@@ -22,9 +22,11 @@ consumer与Application必须以Task显式Project、Service所属Project和Change
22
22
 
23
23
  - Project `verification.yml` 只接受 `buildr.project-verification/v3`,声明既有 capability family 的 scope、proves、evidence、usable targets、discovery、affected/full/provider invocation及必要执行边界;旧声明不兼容读取。
24
24
  - Application必须从closed Verification Request与current declarations/provider生成内容寻址Plan。正式execution和Execution Record必须绑定matching request/plan/provider/declaration/execution unit identities;preview不得充当evidence,不同Plan的records不得混合reconcile。
25
+ - Application必须提供零写入的Formal Plan到Task Development policy投影:按有效Project完整对账closed Plan document、current Content Target、declaration和selected capability,输出required capabilities、portable coverage gaps、空默认overrides与response-only not-selected摘要。Plan、preparation、not-selected摘要和文件路径不得进入Development Receipt、Verification Result或新store;Project缺失/重复或identity陈旧时零写入失败。
25
26
  - capability可选通过`environment.preparation`引用同Project已登记Preparation Recipe。Formal command execution必须先纯读合并selected capability requirements,绑定capability/declaration、closure、Environment Plan/Receipt与runtime invocation identities;只有admission current且ready后才能open Execution Record或启动target/process/Browser/resource副作用。首次副作用前必须按相同expected identities重验,漂移时fail closed且record不得open。
26
27
  - 只有可由声明Recipe恢复的preparation gap可以返回closed supplemental Plan Request,并且只能交给Task Environment唯一writer幂等prepare后重跑admission。辅助Service不得进入Task scope、Change、Content Target、allowed execution roots或源码写入authority。Verification不得自行安装依赖、设置`BUILDR_NODE`/PATH、猜cwd或复制Environment facts进Result。
27
28
  - Formal admission只门禁正式execution、current Result与完成声明。provider/Receipt/preflight暂不可用时,无关开发、只读调查和明确非正式的有界检查不受阻塞,但不得产生Formal Result或完成声明。coverage、declaration invalid、authorization与external-system/resource gap必须保持各自owner,不得伪装成preparation recovery。
29
+ - 开发期需要broad `Task-affected` feedback时,consumer MUST先形成或消费closed `Verification Plan`,并在target、declaration与capability identities不变时将同一plan交给Formal Verification;相同正式request不得因开发/正式阶段切换重复启动broad execution。较窄的focused feedback只能是transient diagnostic,不能写入或满足Formal Result gate;正式Result仍只由matching Execution Record reconciliation形成。
28
30
  - Buildr 不开发测试。声明或适用能力不存在时只形成 coverage gap;不得在 Verification 中创建测试、框架、CI、通用 DAG、调度器或资源平台。
29
31
  - command capability可以由`buildr verification run`执行;Agent capability必须作为有界Agent operation执行。正式Task run必须在首次target/process/resource副作用前要求Development consumer提供Candidate identity/generation,把Candidate与target加入invocation identity、Execution Record metadata和summary,并取得Execution Record容量;runner不得反向依赖或写Task Development。`effects.authorization: explicit`和explicit resource分别要求精确capability/resource授权。相同Task、owner、kind与exact invocation identity已有record且未显式`--retry`时,Application必须在同一原子transaction中先选择active、否则选择terminal,并在对应集合按`opened_at DESC, record_id DESC`复用latest record;不得取得resource、观察target、启动process、创建transient evidence或新record。只有显式`--retry`可以为同一identity创建独立run/record;identity输入变化仍创建首次执行。失败、重试、中断与target drift不得互相覆盖。Task外execution不接受Candidate lease、仍为transient-only且不提供caller-managed output writer。
30
32
  - active只允许`running/open`。terminal outcome固定为`passed|failed|blocked|cancelled`,terminal lifecycle固定为`retained|cleanup_pending|cleaned|attention`;`attention`是lifecycle而不是outcome。terminal复用必须返回`not-started-existing-terminal`非执行evidence并保留原outcome/lifecycle;只有非attention的passed可返回成功,负向outcome或任意attention必须非零退出。Execution Record readback不得创建、替换或充当current Verification Result。
@@ -0,0 +1 @@
1
+ ALTER TABLE task_execution_records ADD COLUMN current_progress_json TEXT;