@buildr-ai/buildr 0.1.0-rc.22 → 0.1.0-rc.23

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.22",
4
+ "buildrVersion": "0.1.0-rc.23",
5
5
  "protocolIdentity": "buildr.web-protocol/v1",
6
- "sourceCommit": "dd122537116e968fe6b2e15a743dde06e8f114bb",
6
+ "sourceCommit": "e81a2c31ffb77f1b60947d8b29aa2a3ab417fa01",
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": "8477e983e85514a09b9ca0121bcde6aea3e758ef8406c1126ed9b1df49f27834"
57
+ "sha256": "d54563dc4f34f94fb49952aa5af7247109ddbbafd55b99d2573d046ee1a9292f"
58
58
  },
59
59
  {
60
60
  "path": "resources/product/package/targets/runtime/skills/buildr/SKILL.md",
61
61
  "mode": 420,
62
- "size": 35105,
63
- "sha256": "485c99cb88e7d63f6008fe9f9f3dd771d0c3ce34aaf1487f69d942cd8e10d423"
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": "d9234f817f7f1835c9e512e7343daf58b53b7e09596dd0c817230c542e2e6f5c"
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": 4787,
189
- "sha256": "83af10f9d25cab904887fb6732170c5fa0fc4e704ec526ae8699dff3773d3f75"
188
+ "size": 4847,
189
+ "sha256": "ddf90cc6dfb095901a7466e3dbab89167c534543f95e6e8ae91fda128decd0d1"
190
190
  },
191
191
  {
192
192
  "path": "resources/product/resources/workspace/skills/buildr/git-operations/SKILL.md",
@@ -215,8 +215,8 @@
215
215
  {
216
216
  "path": "resources/product/resources/workspace/skills/buildr/project-testing/references/testing-model-v1.md",
217
217
  "mode": 420,
218
- "size": 6996,
219
- "sha256": "50c17762af6b33e7936e8a07a5e58f7f3e0eb2cc2ce00d75336fbcc9ccb0d5ab"
218
+ "size": 7011,
219
+ "sha256": "4d9940787c950b75673f76438f4f1f4dcacb7092c4de36d5678110d4ebd7b283"
220
220
  },
221
221
  {
222
222
  "path": "resources/product/resources/workspace/skills/buildr/task-development/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": 8654,
279
- "sha256": "8ab9cbef53d3f7f8f7a01156b3fa96a13f7ae61fcc1b05cc0ff654fd6a0672f8"
278
+ "size": 8796,
279
+ "sha256": "08ed7d976be354637f877e51cd5bd42de882da4bb1e313455f151269cda63577"
280
280
  },
281
281
  {
282
282
  "path": "resources/product/resources/workspace/skills/buildr/task-retrospective/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": 15538,
309
- "sha256": "07a5da7923f17abfbcda65f1d9d1d97ef1f2c8bd42a90147c0c8b204f7818931"
308
+ "size": 16077,
309
+ "sha256": "f29a1bc421b90d06445171b9a642a6e222d18c79be8b045effef78178cf93908"
310
310
  },
311
311
  {
312
- "path": "resources/product/resources/workspace/skills/buildr/task-verification/references/project-verification-v2.md",
312
+ "path": "resources/product/resources/workspace/skills/buildr/task-verification/references/project-verification-v3.md",
313
313
  "mode": 420,
314
- "size": 3685,
315
- "sha256": "b4eafc74705e0ab2a084421897d3262015fef47e4647e06173df76e2b57bfcd0"
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": 710,
321
- "sha256": "4b3de239b9b1393d92a005646bcf8f029c022fe3df10974aae0a9c50db0baffb"
320
+ "size": 808,
321
+ "sha256": "099198b76d6f977c5c8a53a3fe7ba4fc026daefb4e7ef0e0a44f4c5c0e1bb4a4"
322
322
  },
323
323
  {
324
324
  "path": "resources/product/resources/workspace/skills/buildr/task-worktree/SKILL.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": 11074,
405
- "sha256": "52d32f72dffb86629afafc4c5f98b366e939115d91df07c879b41a70889a3b12"
404
+ "size": 11367,
405
+ "sha256": "22163f8a48c970bc40d4f68e2410a032e1e9e4bc6f901b6bc5ffb33f2fd17458"
406
406
  },
407
407
  {
408
408
  "path": "resources/product/resources/workspace/skills/contracts/buildr/terminology-governance/v1.md",
@@ -593,15 +593,15 @@
593
593
  {
594
594
  "path": "resources/runtime/read-worker.cjs",
595
595
  "mode": 420,
596
- "size": 3518548,
597
- "sha256": "806ce5e73c70ac899f04e6facf88dbe5041b5062394518ec0f7b4d9984c1fafe"
596
+ "size": 3571200,
597
+ "sha256": "8285d1951a68d51923501a2c7a7103c3bb7193a0be7ec82b10d160c25f1f8018"
598
598
  },
599
599
  {
600
600
  "path": "runtime/buildr.cjs",
601
601
  "mode": 420,
602
- "size": 3580340,
603
- "sha256": "c3cdea709e69610aad6667994ca454c4866c52eb13ea45831dc1534f4bd26f22"
602
+ "size": 3634070,
603
+ "sha256": "c2104ce1aaacd872ac714509e1397238277d64aae6261b1429af1fc57759f074"
604
604
  }
605
605
  ],
606
- "applicationPayloadDigest": "sha256-6cfb41052a1331c1ee8f13d176a4b07391f8ff93d18b470d4d68fdd126649034"
606
+ "applicationPayloadDigest": "sha256-e1afd343983fa3bee55bc626c8c0b724a904eb9123ea17dd940b32ed0aaa2eab"
607
607
  }
@@ -3,11 +3,11 @@
3
3
  "channel": "npm",
4
4
  "runtimeRole": "host",
5
5
  "package": "@buildr-ai/buildr",
6
- "version": "0.1.0-rc.22",
6
+ "version": "0.1.0-rc.23",
7
7
  "protocolIdentity": "buildr.web-protocol/v1",
8
- "applicationPayloadDigest": "sha256-6cfb41052a1331c1ee8f13d176a4b07391f8ff93d18b470d4d68fdd126649034",
9
- "sourceCommit": "dd122537116e968fe6b2e15a743dde06e8f114bb",
8
+ "applicationPayloadDigest": "sha256-e1afd343983fa3bee55bc626c8c0b724a904eb9123ea17dd940b32ed0aaa2eab",
9
+ "sourceCommit": "e81a2c31ffb77f1b60947d8b29aa2a3ab417fa01",
10
10
  "sourceTag": null,
11
- "installUnit": "@buildr-ai/buildr@0.1.0-rc.22",
12
- "ownershipIdentity": "sha256-cfb53920596d4e7a6f972db52717b880b5c0f5bbfd2fecc6d666747354999b28"
11
+ "installUnit": "@buildr-ai/buildr@0.1.0-rc.23",
12
+ "ownershipIdentity": "sha256-fdbfd14e2c99de097b15a91cccbbce9658b72840cc55e5e4849d2dabf4d3d2d8"
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildr-ai/buildr",
3
- "version": "0.1.0-rc.22",
3
+ "version": "0.1.0-rc.23",
4
4
  "description": "Buildr CLI for managing Agent workspace assets.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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`,使用 closed `buildr.project-verification/v2` 声明已经存在且团队确认可调用的能力 identity、Project/Service scope、调用方式、适用条件、能证明的事实、交付要求及必要环境/副作用边界。文件缺失或没有适用能力时只形成 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。
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
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildr-ai/buildr",
3
- "version": "0.1.0-rc.22",
3
+ "version": "0.1.0-rc.23",
4
4
  "description": "Buildr CLI for managing Agent workspace assets.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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-v2.md => skills/buildr/task-verification/references/project-verification-v2.md copy
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,不改变applicability/requiredness,不引入capability、外部效果、安全例外,且authority无冲突。Agent可以在当前用户目标授权内直接交给owner维护并验证,无需让用户承担内部声明步骤。
39
- - `user-decision-required`:新增/删除scope,改变applicability或requiredness,引入新的capability、外部效果或安全例外,或authority证据冲突。必须在写入前请求用户确认精确变化。
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
 
@@ -82,7 +82,7 @@ step
82
82
  → executionBoundary
83
83
  → environment/effects
84
84
  → targetDuration
85
- → applicability/proves
85
+ → discovery/proves/evidence/usableFor
86
86
  → primaryEvidenceOwner
87
87
  → observableOutcome/cases
88
88
  → assertions/counterEvidence
@@ -46,10 +46,10 @@ Application会完整替换同一Task的current row;不创建历史、候选或
46
46
  用户要求处理多份已有复盘时,先通过一次有界批量只读调用取得默认 `pending` 摘要:
47
47
 
48
48
  ```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]
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>] [--max-bytes <1..1048576>] [--include-report]
50
50
  ```
51
51
 
52
- 默认最多返回 100 份 pending 摘要且不包含报告正文;先用摘要收窄对象,只在确实需要批量读取原文时显式使用 `--include-report`,个别全文继续使用单 Task `inspect`。`list` 只减少重复 driver 调用,不自动分析、评分、生成方向、创建 Task 或修改 disposition,也不成为后续 mutation 的授权或门禁。
52
+ 默认最多返回 100 份 pending 摘要、受 262144 UTF-8字节预算约束且不包含报告正文;先用摘要收窄对象,只在确实需要批量读取原文时显式使用 `--include-report`。正文不能作为完整item落入预算时会被省略并标记`truncated`,个别全文继续使用单 Task `inspect`。`list` 只减少重复 driver 调用,不自动分析、评分、生成方向、创建 Task 或修改 disposition,也不成为后续 mutation 的授权或门禁。
53
53
 
54
54
  用户要求处理已有复盘时,再对需要判断的对象使用 `inspect`,在对话中直接给出完整原始 `reportMarkdown`;正文过长或已在同一对话完整展示时可以给出 `currentDigest` 不可变引用,但不能只让用户去 Buildr Web 查。随后读取当前 canonical specs、实现、knowledge 与 open Task,对原问题和建议逐项判断当前是否仍存在、仍有效,再按当前事实重新拆分改进方向;不沿用旧行动项编号,也不生成新 action item ID。
55
55
 
@@ -7,7 +7,7 @@ description: 用户要求运行已有测试、验证改动、查看 current 验
7
7
 
8
8
  本 Skill 是 `buildr.task-verification/v3` 的默认 provider。它只负责两部分:Project 的 Verification Capability Declaration,以及针对正式 Task 目标的 transient Execution + Workspace本地current Result。它不开发测试,不拥有 Task Environment、Task Review、Task Development、Candidate generation、Task progression、风险接受、部署或业务验收。
9
9
 
10
- 开始行动时必须读取 `references/project-verification-v2.md`;只有经`declaration-intake`完成只读发现、展示精确diff,并形成`routine-maintenance`结论或取得长期适用性变化的用户授权后,才使用`templates/project-verification.yml`维护长期声明。不得绕过Intake分类、静默扩大scope、改变requiredness或伪造capability。正式 Result 必须通过 Task Verification Application 维护,不能直接读写Workspace SQLite或旧`.buildr/tasks/<task-id>/verification.yml`。
10
+ 开始行动时必须读取 `references/project-verification-v3.md`;只有经`declaration-intake`完成只读发现、展示精确diff,并形成`routine-maintenance`结论或取得长期适用性变化的用户授权后,才使用`templates/project-verification.yml`维护长期声明。不得绕过Intake分类、静默扩大scope/target或伪造capability。正式 Result 必须通过 Task Verification Application 维护,不能直接读写Workspace SQLite或旧`.buildr/tasks/<task-id>/verification.yml`。
11
11
 
12
12
  ## 1. 建立验证边界
13
13
 
@@ -30,26 +30,26 @@ buildr task verification inspect <task-id> \
30
30
  --target-identity <identity> --target <canonical-workspace> --json
31
31
  ```
32
32
 
33
- current v2 Result只有在Candidate identity/generation、target与全部declaration identities都`current`时才适用于当前目标。任一当前identity未提供为`unknown`;Candidate、声明缺失/出现、内容、path或Project scope变化为`stale`。合法v1 Result只读兼容并明确显示`legacy-result-candidate-unbound`,不能用于新Candidate gate。不要写回applicability标记或回填旧Result。
33
+ current Result只有在Candidate identity/generation、target与全部declaration identities都`current`时才适用于当前目标。任一当前identity未提供为`unknown`;Candidate、声明缺失/出现、内容、path或Project scope变化为`stale`。合法v1 Result只读兼容并明确显示`legacy-result-candidate-unbound`,不能用于新Candidate gate。不要写回applicability标记或回填旧Result。
34
34
 
35
35
  当前目标来自ready Task Environment且其中的declaration bytes尚未进入canonical Workspace时,只在`reconcile`(或仅工作区`record`)追加`--declaration-root <task-environment-root>`。Application只在正式写入动作中观察该Task当前ready Environment的精确根目录;`inspect`不接受路径,只比较调用方显式提供的保存identity。本机路径不进入current Result。
36
36
 
37
37
  ## 2. 读取和维护 Project declaration
38
38
 
39
- `buildr.project-verification/v2` 只登记已经存在的能力:identity、Project/Service scope、command 或 bounded Agent invocation、applicability、proves、是否 delivery required,以及确有需要的 environment/effects/resource claims。
39
+ `buildr.project-verification/v3` 只登记已经存在的能力族:identity、Project/Service scope、proves、evidence、usable targets、discovery、affected/full command/agent/provider invocation,以及确有需要的 environment/effects/resource claims。
40
40
 
41
41
  - 不存在声明或适用能力时,只记录 `project:<code>` 或 `service:<project>/<service>` coverage gap;不自动创建测试、脚本、CI 或框架。
42
42
  - 只有有效Project集合确实为空且没有workspace验证能力时,记录唯一`workspace` coverage gap、空declarations、空capabilities与`not-passed`;不得把Service或Change所属Project伪装成仅工作区,也不得自动passed。
43
43
  - 声明无效时停止执行其中的能力,先报告具体字段诊断。
44
- - `requiredForDelivery` 是 Project policy,不是 Verification 的 proceed/blocked 决定。
45
- - 不使用 minimal/affected/candidate、maturity、mode、enforcement、dependsOn 或 supersedes。
44
+ - requiredness 由本次 Request/Plan 与 Task Development policy决定;偏离 capability 的 `usableFor` 默认选择必须留下精确 override。
45
+ - 不使用旧 applicability/requiredForDelivery、maturity、mode、enforcement、dependsOn 或 supersedes。
46
46
  - `coordinated`/`external` resource 只有被真实能力 claim 时才保留;本地临时文件不建设资源平台。
47
47
 
48
48
  收到`declaration-intake`的已授权精确handoff后,读取真实 package/POM scripts、CI、AGENTS 和项目文档,只写已确认事实并保留已有稳定 capability id。测试不存在时保持空声明或 coverage gap,不借此任务开发测试。用户仅提出初始化、刷新或gap时先交回Intake,不把发现请求直接当成写入授权。
49
49
 
50
50
  声明前还必须核对真实测试入口、内部 registry、环境、副作用和可用的近期耗时 evidence;必要且已授权时可以有界运行现有入口取得事实。不得根据 capability id、`fast`、`unit`、目录名或技术栈惯例推断成本与覆盖。
51
51
 
52
- 只声明少量、稳定、可独立选择的 capability 接口,不复制每个测试文件或内部 registry step。测试意图、Static/Unit/Component/Integration/System 边界、Quick 成本约束、affected/full 范围、Candidate/Release 验证目标和目标耗时属于 Project Testing 或项目 registry,不进入 `verification.yml` v2。入口命名、成本或分层不合理时报告测试建设 gap,并交给 `project-testing` 或后续实现任务;不要在声明更新中暗中重构测试。
52
+ 只声明少量、稳定、可独立选择的 capability family,不复制每个测试文件或内部 registry step。证据边界、usable target、可信 discovery 与 affected/full/provider 入口进入 v3;具体测试清单、DAG、成本和调度仍属于 Project Testing 或项目 registry。入口命名、成本或分层不合理时报告测试建设 gap,并交给 `project-testing` 或后续实现任务;不要在声明更新中暗中重构测试。
53
53
 
54
54
  ## 3. 选择并执行已有能力
55
55
 
@@ -57,21 +57,27 @@ current v2 Result只有在Candidate identity/generation、target与全部declara
57
57
 
58
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。
59
59
 
60
- 针对 target 逐项核对 capability 的 Project/Service scope、paths/conditions、environment、effects 和授权:
60
+ 先生成并复核 closed Plan,再针对 target 逐项核对 capability 的 Project/Service scope、discovery、usable target、environment、effects 和授权:
61
61
 
62
62
  - command capability 使用正式 executor:
63
63
 
64
64
  ```bash
65
+ buildr verification plan --project <code> \
66
+ --target-kind task-delivery --selection-scope affected \
67
+ --target-identity <identity> --changed-path <path> \
68
+ --target <execution-root> --json > <plan-file>
69
+
65
70
  buildr verification run --project <code> \
66
- --capability <id> [--capability <id> ...] \
71
+ --plan <plan-file> \
67
72
  --candidate-identity <candidate-identity> --candidate-generation <n> \
68
73
  --target-identity <identity> \
69
74
  --target <execution-root> \
70
75
  --environment <task-id> --workspace <canonical-workspace> \
76
+ --detail compact \
71
77
  --json
72
78
  ```
73
79
 
74
- `verification run`只执行已选择的command capability,并返回`buildr.verification-execution/v1`;它不接受`--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`不重新观察声明。
80
+ `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`不重新观察声明。
75
81
 
76
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恢复。
77
83
 
@@ -0,0 +1,28 @@
1
+ # Project Verification Declaration v3
2
+
3
+ `projects/<project>/verification.yml` 只声明已经存在、团队确认可调用的少量测试能力族。文件可缺省;缺省或无适用能力形成 coverage gap,不触发测试开发。
4
+
5
+ ## Closed schema
6
+
7
+ 顶层仅允许 `schemaVersion: buildr.project-verification/v3`、`resources` 和 `capabilities`。每项 capability 必须声明:
8
+
9
+ - 稳定 `id`、Project/Service `scope`;
10
+ - 非空 `proves`、`static|unit|component|integration|system` `evidence`;
11
+ - `task-delivery|product-candidate|published-release` `usableFor`;
12
+ - 可信 `discovery.sources`;
13
+ - 必需的 `invocation.full` 与可选 `invocation.affected`,入口为 `command|agent|provider`;
14
+ - `environment`、`effects`、`resourceClaims` 的真实执行边界。
15
+
16
+ 单个 v3 文件不接受 v2 字段。runtime 另有只读 legacy v2 compatibility reader,但它不属于 authoring contract,也不提供 v2 writer 或 template。新声明不要写 `applicability`、`requiredForDelivery`、测试文件清单、通用 DAG、一次性 Plan 或 Result。
17
+
18
+ ## Selection and execution
19
+
20
+ Verification Request 冻结 target、selection scope、changed paths/risks 与 declaration identities。Plan 由 Request 和声明或稳定 provider 确定性生成,记录 direct/dependency/full 选择理由、coverage gaps、execution units、request/plan/provider identity。
21
+
22
+ 普通 capability 使用 discovery 选择 affected;缺少可信 affected 入口时显式扩大到 full。未知 owner 失败关闭。复杂 Product 可使用 provider,但 provider 只能投射统一 Plan/Execution facts,不得公开内部 registry DAG、Context cache 或写 Task Result。
23
+
24
+ 正式执行必须使用 matching current Plan;preview 不是 evidence。Execution Record 绑定 Request、Plan、declaration、Candidate、target 与 execution unit,reconciliation 只消费同一 Plan 的 terminal records。
25
+
26
+ ## Maintenance boundary
27
+
28
+ 更新前读取真实测试源码、构建脚本、CI、内部 registry、环境与副作用。保留稳定 capability id,只写已确认事实。测试不存在时保留空声明或 coverage gap,并把测试建设交给 `project-testing`。
@@ -1,22 +1,30 @@
1
- schemaVersion: buildr.project-verification/v2
1
+ schemaVersion: buildr.project-verification/v3
2
+ resources: []
2
3
  capabilities:
3
4
  - id: example.unit
4
- title: Replace with an existing Project test capability
5
+ title: Replace with an existing Project test capability family
5
6
  scope:
6
7
  project: replace-with-project-code
7
8
  services: []
8
- invocation:
9
- kind: command
10
- argv: ["replace-with-existing-test-command"]
11
- cwd: .
12
- applicability:
13
- paths: ["replace-with-applicable-path/**"]
14
9
  proves:
15
10
  - Replace with the fact this existing capability proves
16
- requiredForDelivery: false
17
- # environment:
18
- # requires: [node]
19
- # preparation:
20
- # - project: replace-with-project-code
21
- # service: replace-with-registered-service-code
22
- # recipe: replace-with-preparation-recipe-id
11
+ evidence: [unit]
12
+ usableFor: [task-delivery]
13
+ discovery:
14
+ sources: ["replace-with-applicable-path/**"]
15
+ invocation:
16
+ affected:
17
+ kind: command
18
+ argv: ["replace-with-existing-affected-test-command"]
19
+ cwd: .
20
+ full:
21
+ kind: command
22
+ argv: ["replace-with-existing-full-test-command"]
23
+ cwd: .
24
+ environment:
25
+ requires: []
26
+ effects:
27
+ writes: []
28
+ externalSystems: []
29
+ authorization: implicit
30
+ resourceClaims: []
@@ -20,7 +20,8 @@ consumer与Application必须以Task显式Project、Service所属Project和Change
20
20
 
21
21
  ## Minimum Guarantees
22
22
 
23
- - Project `verification.yml` 使用 `buildr.project-verification/v2`,只声明既有 capability identity、Project/Service scope、invocation、applicability、proves、`requiredForDelivery`,以及确有需要的 environment/effects/resource claims。
23
+ - Project `verification.yml` 只接受 `buildr.project-verification/v3`,声明既有 capability family 的 scope、proves、evidence、usable targets、discovery、affected/full/provider invocation及必要执行边界;旧声明不兼容读取。
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。
24
25
  - 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。
25
26
  - 只有可由声明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。
26
27
  - Formal admission只门禁正式execution、current Result与完成声明。provider/Receipt/preflight暂不可用时,无关开发、只读调查和明确非正式的有界检查不受阻塞,但不得产生Formal Result或完成声明。coverage、declaration invalid、authorization与external-system/resource gap必须保持各自owner,不得伪装成preparation recovery。