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

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.
Files changed (106) hide show
  1. package/application-payload.json +167 -155
  2. package/installation-origin.json +5 -5
  3. package/package/targets/test-context/definition.d.ts +7 -0
  4. package/package/targets/test-context/definition.js +114 -0
  5. package/package/targets/test-context/index.d.ts +5 -0
  6. package/package/targets/test-context/index.js +4 -0
  7. package/package/targets/test-context/node-runner-cli.d.ts +2 -0
  8. package/package/targets/test-context/node-runner-cli.js +60 -0
  9. package/package/targets/test-context/node-runner.d.ts +2 -0
  10. package/package/targets/test-context/node-runner.js +86 -0
  11. package/package/targets/test-context/node-test.d.ts +14 -0
  12. package/package/targets/test-context/node-test.js +93 -0
  13. package/package/targets/test-context/runtime.d.ts +2 -0
  14. package/package/targets/test-context/runtime.js +342 -0
  15. package/package/targets/test-context/types.d.ts +216 -0
  16. package/package/targets/test-context/types.js +1 -0
  17. package/package.json +11 -1
  18. package/payload/licenses/dependencies/ajv-LICENSE +22 -0
  19. package/payload/product/package/targets/runtime/skills/buildr/SKILL.md +7 -7
  20. package/payload/product/package.json +2 -1
  21. package/payload/product/{package/bootstrap/contract.yml → resources/contracts/bootstrap.yml} +1 -1
  22. package/payload/product/{package → resources}/manifest.yml +95 -91
  23. package/payload/product/resources/workspace/AGENTS.md +9 -0
  24. package/payload/product/{package/targets → resources}/workspace/components/buildr/openspec/component.yml +3 -3
  25. package/payload/product/{package/targets → resources}/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md +1 -1
  26. package/payload/product/{package/targets → resources}/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md +1 -1
  27. package/payload/product/{package/targets → resources}/workspace/components/buildr/openspec/contributions/openspec-update-sidebar.md +1 -1
  28. package/payload/product/resources/workspace/rules/buildr/core.md +40 -0
  29. package/payload/product/{package/targets → resources}/workspace/skills/buildr/current-knowledge-maintenance/SKILL.md +4 -4
  30. package/payload/product/{package/targets → resources}/workspace/skills/buildr/declaration-intake/SKILL.md +14 -8
  31. package/payload/product/{package/targets → resources}/workspace/skills/buildr/git-operations/SKILL.md +5 -5
  32. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-development/SKILL.md +34 -16
  33. package/payload/product/resources/workspace/skills/buildr/task-environment/SKILL.md +55 -0
  34. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-environment/references/project-environment-preparation-v1.md +1 -1
  35. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-environment/templates/task-environment-plan-request.json +2 -1
  36. package/payload/product/resources/workspace/skills/buildr/task-finish/SKILL.md +79 -0
  37. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-manager/SKILL.md +9 -1
  38. package/payload/product/resources/workspace/skills/buildr/task-manager/agents/openai.yaml +4 -0
  39. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-triage/SKILL.md +17 -9
  40. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-verification/SKILL.md +23 -15
  41. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-verification/references/project-verification-v2.md +3 -1
  42. package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-verification/templates/project-verification.yml +6 -0
  43. package/payload/product/{package/targets/workspace/skills/buildr/ui-preview → resources/workspace/skills/buildr/ui-prototype}/SKILL.md +14 -12
  44. package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md +3 -3
  45. package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/git-operations/v1.md +1 -1
  46. package/payload/product/resources/workspace/skills/contracts/buildr/task-development/v2.md +67 -0
  47. package/payload/product/resources/workspace/skills/contracts/buildr/task-environment/v1.md +37 -0
  48. package/payload/product/resources/workspace/skills/contracts/buildr/task-finish/v1.md +43 -0
  49. package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/task-record/v2.md +1 -1
  50. package/payload/product/resources/workspace/skills/contracts/buildr/task-verification/v3.md +67 -0
  51. package/payload/product/src/infrastructure/sqlite/migrations/0018_create_terminal_contribution_reconciliations.sql +19 -0
  52. package/payload/product/web-dist/assets/index-BnXBiObM.css +1 -0
  53. package/payload/product/web-dist/assets/index-CbM3dspL.js +39 -0
  54. package/payload/product/{src/interfaces/local-app/web-dist → web-dist}/index.html +2 -2
  55. package/payload/runtime/read-worker.cjs +53751 -34167
  56. package/runtime/buildr.cjs +53599 -39369
  57. package/test-context.mjs +12 -0
  58. package/payload/product/package/README.md +0 -42
  59. package/payload/product/package/targets/workspace/AGENTS.md +0 -5
  60. package/payload/product/package/targets/workspace/rules/buildr/core.md +0 -62
  61. package/payload/product/package/targets/workspace/skills/buildr/task-environment/SKILL.md +0 -42
  62. package/payload/product/package/targets/workspace/skills/buildr/task-finish/SKILL.md +0 -80
  63. package/payload/product/package/targets/workspace/skills/buildr/task-manager/agents/openai.yaml +0 -4
  64. package/payload/product/package/targets/workspace/skills/contracts/buildr/task-development/v2.md +0 -61
  65. package/payload/product/package/targets/workspace/skills/contracts/buildr/task-environment/v1.md +0 -37
  66. package/payload/product/package/targets/workspace/skills/contracts/buildr/task-finish/v1.md +0 -59
  67. package/payload/product/package/targets/workspace/skills/contracts/buildr/task-verification/v3.md +0 -63
  68. package/payload/product/src/interfaces/local-app/web-dist/assets/index-BqoyfMSY.css +0 -1
  69. package/payload/product/src/interfaces/local-app/web-dist/assets/index-DTqvE0TF.js +0 -39
  70. /package/payload/product/{package/bootstrap/guide.md → docs/bootstrap-guide.md} +0 -0
  71. /package/payload/product/{package/launchers/assets → resources/installation/launcher}/Buildr.icns +0 -0
  72. /package/payload/product/{package/launchers/assets → resources/installation/launcher}/Buildr.ico +0 -0
  73. /package/payload/product/{package/targets → resources}/workspace/commands/buildr/openspec/manifest.yml +0 -0
  74. /package/payload/product/{package/targets → resources}/workspace/components/buildr/openspec/contributions/openspec-archive-converge.md +0 -0
  75. /package/payload/product/{package/targets → resources}/workspace/components/buildr/openspec/contributions/openspec-explore-terminology.md +0 -0
  76. /package/payload/product/{package/targets → resources}/workspace/components/buildr/openspec/contributions/openspec-sync-converge.md +0 -0
  77. /package/payload/product/{package/targets → resources}/workspace/gitattributes +0 -0
  78. /package/payload/product/{package/targets → resources}/workspace/gitignore +0 -0
  79. /package/payload/product/{package/targets → resources}/workspace/projects/AGENTS.project.md +0 -0
  80. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/capability-adaptation/SKILL.md +0 -0
  81. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/capability-adaptation/agents/openai.yaml +0 -0
  82. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/openspec-contract-guard/SKILL.md +0 -0
  83. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/project-daily-progress/SKILL.md +0 -0
  84. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/project-testing/SKILL.md +0 -0
  85. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/project-testing/references/testing-model-v1.md +0 -0
  86. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-environment/agents/openai.yaml +0 -0
  87. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-environment/templates/project-preparation.yml +0 -0
  88. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-retrospective/SKILL.md +0 -0
  89. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-retrospective/agents/openai.yaml +0 -0
  90. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-review/SKILL.md +0 -0
  91. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-review/agents/openai.yaml +0 -0
  92. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/task-worktree/SKILL.md +0 -0
  93. /package/payload/product/{package/targets → resources}/workspace/skills/buildr/terminology-governance/SKILL.md +0 -0
  94. /package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md +0 -0
  95. /package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/git-worktree-provider/v1.md +0 -0
  96. /package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/task-retrospective/v2.md +0 -0
  97. /package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/task-review/v1.md +0 -0
  98. /package/payload/product/{package/targets → resources}/workspace/skills/contracts/buildr/terminology-governance/v1.md +0 -0
  99. /package/payload/product/{package/targets → resources}/workspace/skills/openspec/openspec-apply-change/SKILL.md +0 -0
  100. /package/payload/product/{package/targets → resources}/workspace/skills/openspec/openspec-archive-change/SKILL.md +0 -0
  101. /package/payload/product/{package/targets → resources}/workspace/skills/openspec/openspec-explore/SKILL.md +0 -0
  102. /package/payload/product/{package/targets → resources}/workspace/skills/openspec/openspec-propose/SKILL.md +0 -0
  103. /package/payload/product/{package/targets → resources}/workspace/skills/openspec/openspec-sync-specs/SKILL.md +0 -0
  104. /package/payload/product/{package/targets → resources}/workspace/skills/openspec/openspec-update-change/SKILL.md +0 -0
  105. /package/payload/product/{src/interfaces/local-app/web-dist → web-dist}/assets/antd-NAtxFWmu.js +0 -0
  106. /package/payload/product/{src/interfaces/local-app/web-dist → web-dist}/assets/react-9kRp7SbA.js +0 -0
@@ -20,11 +20,11 @@ description: 用户提出修复、实现、重构、优化、文档/测试或契
20
20
 
21
21
  authority 冲突、授权或 repository set 不明、不可逆行为缺少决定,或是否进入实现仍未知时,停止对应写入,只询问会改变长期语义、责任边界或授权的最少问题。
22
22
 
23
- ### UI Preview 选择
23
+ ### UI Prototype 选择
24
24
 
25
- 若当前 Task、提案或预期实现可能产生用户可见的前端 UI 变化,向用户询问:“本次是否需要先生成界面预演稿(UI Preview)?”询问只负责取得选择,不生成文件,也不改变语义治理或执行形态判断。
25
+ 若当前 Task、提案或预期实现可能产生用户可见的前端 UI 变化,向用户询问:“本次是否需要先生成界面原型(UI Prototype)?”询问只负责取得选择,不生成文件,也不改变语义治理或执行形态判断。
26
26
 
27
- 只有用户在当前任务中明确确认需要,才在方案已有足够上下文、正式前端实现开始前加载独立 `ui-preview` Skill。用户拒绝、未确认或直接要求继续时不调用 Skill,正常推进后续流程;不得创建占位文件、waiver、Result、Receipt 或 blocker。UI Preview 不替代 OpenSpec Change、Planning Review 或正式实现。
27
+ 只有用户在当前任务中明确确认需要,才在方案已有足够上下文、正式前端实现开始前加载 selected `ui-prototype` Skill。用户拒绝、未确认或直接要求继续时不调用 Skill,正常推进后续流程;不得创建占位文件、waiver、Result、Receipt 或 blocker。UI Prototype 不替代 OpenSpec Change、Planning Review 或正式实现。一旦当前 Task 已生成原型,除非用户明确要求忽略,后续 Agent 必须在正式前端编辑前读取全部相关原型并按其信息架构、布局和交互开发。
28
28
 
29
29
  ## 2. 两轴决策
30
30
 
@@ -47,7 +47,7 @@ authority 冲突、授权或 repository set 不明、不可逆行为缺少决定
47
47
  - `metadata-only`:仅维护 OpenSpec artifacts、Rules、Skills、文档或模板,不进入代码、构建或测试。
48
48
  - `unknown`:信息不足;先澄清,不提前写 Change artifacts 或当前事实。
49
49
 
50
- 该轴独立于语义治理:正式持久交付都需要Task Environment;Agent根据Task完整Project/Service scope、Project `preparation.yml`与当前构建/验证事实选择Recipe形成Environment Plan。`metadata-only`可以使用共享执行根,不必创建Git worktree,并对每个Project/Service scope显式选择Recipe或声明not-applicable;进入实现时仍复用同一Receipt或由Environment确定性恢复。
50
+ 该轴独立于语义治理。Formal Task Record本身不是编辑、构建或有界测试的通用工作许可:用户授权、repository/ref、owned scope与副作用边界均明确时,Agent可以直接工作,但不得把该路径冒充ready Environment、Development、Formal Verification、Candidate、Finish或cleanup事实。选择Buildr-managed checkout、Preparation、runtime projection、持久资源、正式环境证据或自动Finish时,才必须根据Task完整Project/Service scope与Project `preparation.yml`形成Environment Plan并取得ready;`metadata-only`受管执行可以使用共享执行根。
51
51
 
52
52
  ## 3. 条件化交接
53
53
 
@@ -55,22 +55,30 @@ authority 冲突、授权或 repository set 不明、不可逆行为缺少决定
55
55
 
56
56
  按 next executable action 渐进装配上下文:执行当前动作前读取相应 optional binding、contract、selected provider 与直接 authority,Verification、Completion、Finish 等下游阶段只在成为当前动作时再读取。该边界不允许跳过已触发 Skill、required Rule、provider contract、授权或 result evidence;provider 不 ready 时只阻塞或降级对应分支,保留其他已确认结论。
57
57
 
58
- 用户已经授权实现,且 active Task、matching ready Environment 与 Development `begin` 所需事实完整时,立即进入 proposal 或当前首个研发动作;不要为收集非当前阶段信息、预读下游 Skills 或建立额外进度 authority 延迟写入。
58
+ 用户已经授权实现时,先选择直接工作或Buildr受管正式证据路径。直接工作在真实Git、文件ownership与副作用边界内立即推进并如实报告证据范围;需要OpenSpec managed flow、Development、Formal Verification、Candidate、自动Finish、Task-owned资源或cleanup时,取得matching ready Environment后立即进入proposal或当前首个研发动作。
59
59
 
60
60
  | 分支 | Capability / 动作 | 必要输入与成功证据 | 失败处理 |
61
61
  |---|---|---|---|
62
62
  | 新正式 Task 的 Git 基线 | `buildr.git-operations/v1` 的独立 `fetch` 与 `rebase` | 完整 repository set 均证明当前为 clean `dev`、upstream 为 `origin/dev`;每个 operation 返回 before/after、effects 与 current facts,适用 Workspace transition check ready | 任一前置事实、provider、fetch、rebase、冲突恢复或 Doctor blocked 时不调用 Task Record `create`;报告全部部分 effects,不换策略 |
63
63
  | 待办意向 | `buildr.task-record/v2` 的 `create --status todo` | 用户已接受但尚未启动的意向、stable ID、title、intent、scope与可选复盘来源;只返回SQLite record/effects | 不运行Git基线,不创建Environment、Change或专业placeholder |
64
64
  | 正式持久交付 | `buildr.task-record/v2` 的 active `create`、todo `activate` 或 `inspect` | stable Task ID、title、intent、canonical Workspace 与真实 scope/Change;首次执行写入前返回 current active record | provider或Git门禁blocked时停止正式交付写入;已有active inspect不重复门禁 |
65
- | 正式执行位置 | `buildr.task-environment/v1` 的 Plan `record/inspect` 与 Environment `prepare/inspect` | Task ID、canonical Workspace、完整 Task Project/Service scope、Project `preparation.yml`及Agent选择的Recipe;首次持久交付写入前取得`ready`、实际execution roots、validation root和执行CLI | Declaration/Plan缺失或scope不完整时只阻塞execution;不猜技术栈,不回退到cwd或旧Receipt |
65
+ | 正式执行位置 | `buildr.task-environment/v1` 的 Plan `record/inspect` 与 Environment `prepare/inspect` | Task ID、canonical Workspace、完整 Task Project/Service scope、Project `preparation.yml`及Agent选择的Recipe;首次受管效果前取得`ready`、实际execution roots、validation root和执行CLI | Declaration/Plan缺失或scope不完整时只阻塞消费Environment authority的动作;不猜技术栈,不回退到cwd或旧Receipt |
66
66
  | 独立 current knowledge `spec-maintenance` | `buildr.current-knowledge-maintenance/v2` 的 `maintain` | Project、targets、fact sources、授权、tree identity;返回 `aligned|updated|not-applicable` | `unresolved` 报 authority 冲突;`change-required` 重新进入 `change-flow` |
67
67
  正式持久交付包括代码、文档、配置、Rule、Skill、OpenSpec Change、验证声明或其他准备交付的持久变化。已有 Task Record 或 Buildr Web 已创建时先 inspect 并核对 intent/scope,不重复 create,也不重新执行创建前 Git 基线门禁;本次动作仅维护已有生命周期 metadata 时不递归创建新 Task,也不要求重新准备已清理的 Environment。Task Record provider 不可用时不得手写 YAML 代替。其他 provider 不可用时只阻塞对应分支:本 Skill 只选择专业动作;Environment 的准备、恢复和清理由 selected provider 负责。current knowledge provider 不可用时,不得回退为无 evidence 的直接编辑或伪造 Change。
68
68
 
69
+ ### 创建并默认准备 Parent Task
70
+
71
+ 用户要求创建Parent、先做总体架构设计与Contribution拆分、准备子任务,或准备到可开发/可启动Child状态时,先按新正式Task路径完成语义治理、完整repository set、Git基线和active Task Record create。todo或用户明确“只创建记录”仍只写Task Record,不准备Environment;纯查看、顶层metadata更新或尚未授权启动也不进入本流程。
72
+
73
+ active Parent Task Record创建成功不是Parent准备完成。立即把Task ID、canonical Workspace、完整scope,以及authority source map中已经明确的outcome、architecture decisions、Contribution directions/boundaries/dependencies与final acceptance交接给`task-development`;由它持续准备Environment、Development、Parent Plan、Planning Review与planning refresh。不得先向用户报告“Parent已准备好”,也不得要求用户再次说“继续准备”。
74
+
75
+ 信息已经能够形成完整Parent Plan时直接交接并继续;只有缺失内容会实质改变Parent目标、Contribution切分、依赖、边界或最终验收时,才由`task-development`提出最少问题。Task Triage不复制Parent准备循环、不写Parent Plan/Review/Development Result,也不新增跨authority的`parent start`命令。
76
+
69
77
  ### 从 Parent 规划项启动独立 Child Task
70
78
 
71
79
  当用户准备把active Parent推进到首个Child前,先调用`buildr task next <parent-task-id>`,并严格消费它返回的单一next:缺Environment就准备Parent Environment,缺Development就begin,缺Plan就record,Planning Review未current就审查,Review尚未被Development采用就调用公开的`task parent refresh-planning`。只有next为`start-child-contribution`时,才从`eligibleContributions`选择一个Contribution进入Child创建;不要把其他依赖尚未满足的Contribution当成整体阻塞,也不要为未来Child提前准备Environment。
72
80
 
73
- 当用户选择eligible Contribution作为独立 Child Task 实施时,再调用`task parent inspect`读取current Parent Plan、Contribution、依赖与适用Planning Review,从中提取该 Child 的稳定 intent、实际Project/Service scope、边界和验收目标。Parent导引只作为Child启动输入;Parent/Child关系不表达Git继承、Change共享或专业状态传播。legacy Parent不得被自动转换或从旧Change/checkbox推断Contribution。
81
+ 当用户选择eligible Contribution作为独立 Child Task 实施时,再调用`task parent inspect`读取v3响应:从唯一顶层`contributions`取得priority、title、objective、directions、boundaries、`expectation.child`与dependencies,并结合紧凑Planning Review摘要提取该 Child 的稳定 intent、实际Project/Service scope、边界和验收目标。`expectation.child`只描述预期形态,不是已创建或已绑定事实;真实binding只看Child的`boundContributions`。Parent导引只作为Child启动输入。Parent/Child关系不表达Git继承、Change共享或专业状态传播。legacy Parent不得被自动转换或从旧Change/checkbox推断Contribution。
74
82
 
75
83
  Child Task必须先以`--parent <parent-task-id>`和自身scope创建,且初始不引用Parent Change;`0..N` Change允许此时保持空列表。取得Child自己的matching ready Environment并调用selected `buildr.task-development/v2` provider建立研发事实后,用`task parent bind-child`绑定planned Contributions,才在Child execution root中创建该独立目标自己的窄Change,通过Task Record update添加引用,并刷新Development planning snapshot与适用Planning Review。不得把Parent Change、Parent worktree、branch、Environment Receipt或Development事实复制或继承为Child authority。
76
84
 
@@ -84,14 +92,14 @@ Child Task必须先以`--parent <parent-task-id>`和自身scope创建,且初
84
92
  2. 读取 optional `buildr.git-operations/v1` binding;在本 create 分支把 ready selected provider 作为 required。先为全部 repositories 逐一选择独立 `fetch` operation,明确 `origin` 与 `dev`,消费每个 Result。任一 fetch blocked 时不执行尚未开始的 rebase,不创建 Task,并报告全部已发生的 remote-ref effects。
85
93
  3. 全部 fetch 成功后重新核验 `dev`、`origin/dev` 与 clean 状态,再按同一顺序为每个 repository 明确选择 `rebase` operation,将本地 `dev` rebase 到本次观察的 `origin/dev`。本地已对齐、仅落后或含未 push 且未共享 commit 都使用同一 operation;provider 不自行选择 merge 或 push。
86
94
  4. rebase 冲突时,consumer 明确授权 provider 只在 pre-state 已证明 clean 时执行有界 `rebase --abort`。只有 branch、HEAD、index 与 working tree 精确恢复到 pre-rebase facts 才记为 recovered;无论恢复是否成功,本次 Task create 都是 `blocked`。abort 失败或恢复不可证明时保留现场。已经在其他 repository 成功的 fetch/rebase 不反向回滚,必须作为部分 effects 报告。
87
- 5. 任一 rebase 返回 `treeChanged: true` 时,按 required Core 对相应 Buildr Workspace 执行当前 Agent 的 workspace transition check;Doctor 或必要收敛未 ready 时不创建 Task。若tree前进来自`origin/dev`上的协作者提交且当前会话不存在绑定同一Workspace、Task、run与delivered ref的matching Formal Finish Result,只能把它归类为普通Workspace update:本地没有协作者Task是正常事实,不得因此查找、恢复或启动`buildr-self-bootstrap-sync`。Doctor仅指向当前Agent managed workspace/runtime projection stale时,将现有用户授权或一次明确sync确认交给产品入口Buildr Skill执行`buildr sync <agent> --target <workspace-root>`并消费最终Doctor;存在非sync blocker时按对应authority停止或处理,不用一次sync掩盖。
95
+ 5. 任一 rebase 返回 `treeChanged: true` 时,按产品入口 Buildr Skill 的 workspace transition 约束,对相应 Buildr Workspace 执行当前 Agent 的 check;Doctor 或必要收敛未 ready 时不创建 Task。若tree前进来自`origin/dev`上的协作者提交且当前会话不存在绑定同一Workspace、Task、run与delivered ref的matching Formal Finish Result,只能把它归类为普通Workspace update:本地没有协作者Task是正常事实,不得因此查找、恢复或启动`buildr-self-bootstrap-sync`。Doctor仅指向当前Agent managed workspace/runtime projection stale时,将现有用户授权或一次明确sync确认交给产品入口Buildr Skill执行`buildr sync <agent> --target <workspace-root>`并消费最终Doctor;存在非sync blocker时按对应authority停止或处理,不用一次sync掩盖。
88
96
  6. 只有完整 repository set 的 fetch、rebase、恢复检查与适用 transition check 全部成功,才调用 selected `buildr.task-record/v2` provider 的 active `create` 或 `activate`。任一门禁blocked时todo保持不变。Task Record Application、Buildr Web 与 Task Environment 不获得任何Git mutation或本门禁状态authority。
89
97
 
90
98
  上述Workspace update分类只组合本次Git Result、post-transition Doctor与当前会话已有的matching Formal Finish Result,不按commit author推断ownership,也不建立持久状态。只有真实matching Finish Result才能把同一run交给self-bootstrap;普通workspace sync不创建Task、Environment、Verification、Candidate、Finish Result或self-bootstrap evidence。
91
99
 
92
100
  选择 `change-flow` 时,先确保正式 Task Record,再完成执行位置判断并使用适用的 `openspec-*` Skill。首次采用、状态实质变化、暂停、完成或用户询问时,从 CLI 刷新并报告 change id、resolved path、action、status、progress 和 next action/blocker;未创建时只写 `planned`,不猜测路径或进度。Buildr 自有 artifacts 和用户说明正文使用中文;命令、路径、标识符、协议字段与 OpenSpec 格式关键字可保留英文。
93
101
 
94
- 实现型任务按共享实现区域、验证入口或失败影响面分组。正式 Task 取得 ready Environment 后,在写入首个 proposal、方案或实现内容前调用 selected `buildr.task-development/v2` provider 的 `begin` 建立研发聚合事实;后续专业 planning artifact 变化时更新 planning snapshot。需要设计测试框架、划分测试边界、编排场景或为实现开发测试时使用 `project-testing`;它不维护 capability declaration 或 Result。内容、测试和 review 修订完成后仍由 Development 收敛 current knowledge/Change、观察 stable Content Target、形成 policy,并调用 selected `buildr.task-verification/v3` provider 维护 current Task Result,再继续 Candidate、Completion Review、decision 与 handoff。triage 不接管这些 provider,也不预设 minimal/affected/candidate 层级;Development provider 在该正式分支不 ready 时停止首次研发写入,不能回退为无 Receipt 流程。
102
+ 实现型任务按共享实现区域、验证入口或失败影响面分组。直接工作可以在已确认的真实Git与owned scope中继续,不因Formal Task或Environment缺失而停止;选择Buildr受管正式证据路径时,先取得matching ready Environment,再在写入该路径的首个 proposal、方案或实现内容前调用 selected `buildr.task-development/v2` provider 的 `begin` 建立研发聚合事实。后续专业 planning artifact 变化时更新 planning snapshot。需要设计测试框架、划分测试边界、编排场景或为实现开发测试时使用 `project-testing`;它不维护 capability declaration 或 Result。内容、测试和 review 修订完成后仍由 Development 收敛 current knowledge/Change、观察 stable Content Target、形成 policy,并调用 selected `buildr.task-verification/v3` provider 维护 current Task Result,再继续 Candidate、Completion Review、decision 与 handoff。triage 不接管这些 provider,也不预设 minimal/affected/candidate 层级;Development provider 在该受管分支不 ready 时只阻塞受管证据,不撤销其他已获授权的直接工作。
95
103
 
96
104
  ## 4. 输出契约
97
105
 
@@ -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并取得用户授权后,才使用`templates/project-verification.yml`维护长期声明。正式 Result 必须通过 Task Verification Application 维护,不能直接读写Workspace SQLite或旧`.buildr/tasks/<task-id>/verification.yml`。
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`。
11
11
 
12
12
  ## 1. 建立验证边界
13
13
 
@@ -16,7 +16,8 @@ description: 用户要求运行已有测试、验证改动、查看 current 验
16
16
  - 正式 Task ID、Intent、Project/Service/Project-bound Change scope 和 active 状态,并计算三者所属Project的去重排序并集;
17
17
  - canonical Workspace,以及由 Task Environment 交接的实际 execution root;
18
18
  - 当前交付目标的明确、稳定 target identity 和可移植 summary;
19
- - operation:`inspect`、`execute`、`record` 或 transient `cleanup`;
19
+ - current Task Candidate identity/generation(正式execution、inspect与reconcile必需;Task外transient execution不使用);
20
+ - operation:`inspect`、`execute`、`reconcile`、仅工作区`record` 或 transient `cleanup`;
20
21
  - Task有效Project集合内每个 Project 当前 `verification.yml`,以及实际变更路径、条件、环境和副作用;有效Project集合为空时明确采用仅工作区分支。
21
22
 
22
23
  没有正式 Task 时可以按用户要求执行已有测试并报告 transient 事实,但不得伪造 Task Result。没有稳定 target identity 时可以 inspect 为 `unknown`,不能 record。
@@ -24,12 +25,14 @@ description: 用户要求运行已有测试、验证改动、查看 current 验
24
25
  先运行:
25
26
 
26
27
  ```bash
27
- buildr task verification inspect <task-id> --target-identity <identity> --target <canonical-workspace> --json
28
+ buildr task verification inspect <task-id> \
29
+ --candidate-identity <candidate-identity> --candidate-generation <n> \
30
+ --target-identity <identity> --target <canonical-workspace> --json
28
31
  ```
29
32
 
30
- current Result 只有在 target 与全部 declaration identities 都 `current` 时才适用于当前目标。target 未提供为 `unknown`;任一声明缺失/出现、内容、path、Project scope 或有效性变化为 `stale`。不要写回 applicability 标记。
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。
31
34
 
32
- 当前目标来自 ready Task Environment 且其中的 declaration bytes 尚未进入 canonical Workspace 时,只在`record`追加 `--declaration-root <task-environment-root>`。Application只在正式写入动作中观察该Task当前ready Environment的精确根目录;`inspect`不接受路径,只比较调用方显式提供的保存identity。本机路径不进入current Result。
35
+ 当前目标来自ready Task Environment且其中的declaration bytes尚未进入canonical Workspace时,只在`reconcile`(或仅工作区`record`)追加`--declaration-root <task-environment-root>`。Application只在正式写入动作中观察该Task当前ready Environment的精确根目录;`inspect`不接受路径,只比较调用方显式提供的保存identity。本机路径不进入current Result。
33
36
 
34
37
  ## 2. 读取和维护 Project declaration
35
38
 
@@ -61,13 +64,18 @@ current Result 只有在 target 与全部 declaration identities 都 `current`
61
64
  ```bash
62
65
  buildr verification run --project <code> \
63
66
  --capability <id> [--capability <id> ...] \
67
+ --candidate-identity <candidate-identity> --candidate-generation <n> \
64
68
  --target-identity <identity> \
65
69
  --target <execution-root> \
66
70
  --environment <task-id> --workspace <canonical-workspace> \
67
71
  --json
68
72
  ```
69
73
 
70
- `verification run` 只执行已选择的 command capability,并返回 `buildr.verification-execution/v1`;它不接受 `--declaration-root`。带 matching Task Environment 的正式 execution 会在启动 capability 前 open 一条 Task Execution Record,完成后先 seal 受控、脱敏、有限期正文,再精确清理 transient evidence;容量不足时不得启动 capability。Task 外 execution 仍只产生 transient evidence。`--declaration-root` 只用于 `task verification record`,让 Application 在正式写入动作中读取当前 ready Task Environment 内尚未进入 canonical Workspace 的 declaration bytes;`inspect`不重新观察声明。
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`不重新观察声明。
75
+
76
+ 正式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
+
78
+ 该门禁只保护Formal Verification execution、Result与完成声明。provider/preflight暂不可用时,可以继续无关开发、只读调查和明确标记的有界非正式检查,但不得写Formal Result或据此声称完成;恢复后仍须通过Task Environment与admission。runner在首次副作用前重验全部binding,漂移时返回preparation drift并保持Execution Record未打开。
71
79
 
72
80
  正式 execution 启动时会返回并持久化 record/run identity。工具PTY或session丢失后,先按Task回查同一次执行,禁止直接整轮重跑:
73
81
 
@@ -89,26 +97,26 @@ latest固定按active优先,再在对应集合使用`opened_at DESC, record_id
89
97
 
90
98
  完整命令、本机路径、waiting ticket、资源 lease 和 Environment handle 只属于 transient execution evidence。正式 Task Execution Record 只保留可移植摘要、按 capability 分段且受配额/脱敏控制的 stdout/stderr、闭合时间线与诊断;不进入 current Verification Result。运行中或暂时无输出时继续等待同一 execution,不启动重复 verifier。整体耗时只从 execution wall-clock 读取,不相加并行检查耗时。
91
99
 
92
- ## 4. 提炼并原子记录 current Result
100
+ ## 4. 从execution authority对账current Result
93
101
 
94
- 只有能力执行、Agent operation、coverage gaps 和整体结论都已经完整形成后,才一次性 record:
102
+ 能力执行完成后,先用Execution Record list/inspect确认所选record为matching Task、Candidate、target与declaration的terminal authority,再一次性reconcile:
95
103
 
96
104
  ```bash
97
- buildr task verification record <task-id> \
105
+ buildr task verification reconcile <task-id> \
106
+ --candidate-identity <candidate-identity> --candidate-generation <n> \
98
107
  --target-identity <identity> \
99
108
  --target-summary <portable-summary> \
100
- --capability '<project>/<id>::<passed|failed>::<portable-fact>' \
109
+ --record <execution-record-id> [--record <execution-record-id> ...] \
101
110
  --coverage-gap '<workspace|project:code|service:project/service>::<summary>' \
102
- --outcome <passed|not-passed> \
103
- --summary <portable-conclusion> \
111
+ [--declaration-root <task-environment-root>] \
104
112
  --target <canonical-workspace> --json
105
113
  ```
106
114
 
107
- 同一 capability 的多个 `--capability` 会合并 facts。至少需要一个实际 capability 或 coverage gap。存在 failed capability 或 coverage gap 时 outcome 必须为 `not-passed`。
115
+ Application独立读取record metadata与受控`summary.json`,核验body integrity、Task、owner/kind、Candidate、generation、target stability、Project、declaration与selected checks,再派生capability outcome、portable facts、evidence identities和整体结论。调用方不得提交或补充capability outcome/fact、evidence digest、declaration identity或claimed external success;任一authority不匹配、正文不可用或执行未terminal时零写入失败。
108
116
 
109
- 仅工作区Result不执行不存在的能力,直接以唯一workspace gap形成完整负向事实;Project/Service/Change Task仍必须绑定全部有效Project declarations并拒绝workspace gap。
117
+ 仅工作区Result不执行不存在的能力,可用兼容`task verification record`入口提交Candidate、target、唯一workspace gap与`not-passed`;该入口拒绝capability claims及任何Project/Service/Change Task。Project coverage gap随至少一个matching execution authority一起reconcile;没有可执行authority时如实报告尚不能形成formal Result。
110
118
 
111
- Result 只回答 target、采用的 declarations、实际执行能力及事实、coverage gaps 和总体验证结论。不要复制 stdout/stderr、耗时、临时 evidence path、Environment Receipt、本机绝对路径、applicability、digest、history/revision,或写入 proceed/blocked、Task 状态和 Candidate generation。
119
+ Result只回答Candidate、target、采用的declarations、从authority派生的实际能力及facts/evidence identities、coverage gaps和总体验证结论。不要复制stdout/stderr、耗时、临时evidence path、Environment Receipt、本机绝对路径、applicability、digest、history/revision,或写入proceed/blocked与Task状态。
112
120
 
113
121
  完整测试失败且 evidence 完整时可以形成 `not-passed` Result;execution 中断、输出不完整、结论未形成或 Application 写入失败时不得覆盖原 current。Repository 的整值原子替换和 rollback 由 Application 负责,Agent 不补写 sibling store。
114
122
 
@@ -23,7 +23,7 @@ capabilities: []
23
23
  - `applicability.paths` 和可选自然语言 `conditions`;
24
24
  - 非空 `proves`,只写该能力实际能够证明的事实;
25
25
  - `requiredForDelivery: true|false`;
26
- - 可选 `environment.requires`、`effects` 与 `resourceClaims`。
26
+ - 可选 `environment.requires`、`environment.preparation`、`effects` 与 `resourceClaims`。每个preparation reference只允许`project`、可选`service`与`recipe`,必须引用同Project `preparation.yml`中scope完全匹配的Recipe。
27
27
 
28
28
  只有已经存在的命令、脚本、CI wrapper 或有界 Agent 操作可以进入声明。Buildr 不根据技术栈推断能力,也不在初始化声明时创建或执行新测试。
29
29
 
@@ -35,6 +35,8 @@ capabilities: []
35
35
 
36
36
  ## Environment、effects 与 resource
37
37
 
38
+ `environment.preparation`只声明Formal Verification前必须current的已知Recipe,不保存安装命令、机器路径或执行状态。Task Verification admission对实际selected capabilities合并引用;缺口由Task Environment唯一writer恢复。辅助Service不进入Task scope、Change、Content Target或源码写入authority。没有该字段的既有v2 capability行为不变。
39
+
38
40
  `effects` 可声明 `writes`、`externalSystems` 和 `authorization: implicit|explicit`。存在 external system 时必须显式授权;command runner 只在调用方精确传入 `--authorize-capability <id>` 后执行 explicit effects。
39
41
 
40
42
  只有真实能力需要跨 Task 容量或外部共享状态时才声明 resource:
@@ -14,3 +14,9 @@ capabilities:
14
14
  proves:
15
15
  - Replace with the fact this existing capability proves
16
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
@@ -1,19 +1,19 @@
1
1
  ---
2
- name: ui-preview
3
- description: 用户已明确确认需要在正式前端开发前查看本次提案实施后的完整页面预演时使用;调查现有真实界面,生成并在浏览器验证一个或多个自包含 HTML。未明确确认时不得使用。
2
+ name: ui-prototype
3
+ description: 用户已明确确认需要在正式前端开发前查看本次提案实施后的完整页面原型时使用;调查现有真实界面,生成并在浏览器验证一个或多个自包含 HTML。未明确确认时不得使用。
4
4
  ---
5
5
 
6
- # UI Preview
6
+ # UI Prototype
7
7
 
8
- 本 Skill 只生成“界面预演稿(UI Preview)”:它把当前提案或设计中的 UI 变化放回系统现有完整页面中,供用户、设计师和后续 Agent 在正式开发前对齐预期。
8
+ 本 Skill 只生成“界面原型(UI Prototype)”:它把当前提案或设计中的 UI 变化放回系统现有完整页面中,供用户、设计师和后续 Agent 在正式开发前对齐预期。
9
9
 
10
10
  它不是正式设计稿、生产原型、像素级验收标准、Planning Identity、canonical spec 或 Task Verification evidence,也不在真实前端工程中实现编码式原型。正式行为与验收继续由 specs、design、项目实现和正式验证事实决定。
11
11
 
12
12
  ## 1. 确认执行前提
13
13
 
14
- 只有当前对话中存在用户对本次任务“需要 UI Preview”的明确确认,才继续执行。拒绝、没有回答、只说继续任务或历史任务曾经需要预演都不构成确认;此时返回 `not-requested`,不创建占位文件、不写 waiver/Result/Receipt,也不阻塞原任务。
14
+ 只有当前对话中存在用户对本次任务“需要 UI Prototype”的明确确认,才继续执行。拒绝、没有回答、只说继续任务或历史任务曾经需要原型都不构成确认;此时返回 `not-requested`,不创建占位文件、不写 waiver/Result/Receipt,也不阻塞原任务。
15
15
 
16
- 读取当前 Task 的 intent、Project/Service scope、关联 Change,以及适用的 proposal、design、delta specs 和 current knowledge。正式 Task 需要在 Buildr Web 中展示时,必须已有 Task 关联 OpenSpec Change;文件写入该 Change 内由当前任务决定的目录。不得为预演新增 Task Record 字段、数据库状态、descriptor/schema、CLI 或固定目录。
16
+ 读取当前 Task 的 intent、Project/Service scope、关联 Change,以及适用的 proposal、design、delta specs 和 current knowledge。正式 Task 需要在 Buildr Web 中展示时,必须已有 Task 关联 OpenSpec Change;文件写入该 Change 内由当前任务决定的目录。不得为原型新增 Task Record 字段、数据库状态、descriptor/schema、CLI 或固定目录。
17
17
 
18
18
  ## 2. 调查现有真实界面
19
19
 
@@ -24,20 +24,20 @@ description: 用户已明确确认需要在正式前端开发前查看本次提
24
24
  - 按需要启动或复用现有前端,在浏览器中查看目标页面及其完整上下文;
25
25
  - 记录本次变化会保留、移动、增加或替换的页面内容,以及必须覆盖的关键状态。
26
26
 
27
- 不要把调查笔记放进预演页面。若页面、运行环境或必要 UI 事实不可访问,先向用户说明缺失事实和影响,停止生成;不得凭空声称延续了现有产品。
27
+ 不要把调查笔记放进原型页面。若页面、运行环境或必要 UI 事实不可访问,先向用户说明缺失事实和影响,停止生成;不得凭空声称延续了现有产品。
28
28
 
29
- ## 3. 确定最小预演范围
29
+ ## 3. 确定最小原型范围
30
30
 
31
31
  按当前方案选择真正需要展示的页面和状态,不固定文件数量、目录或状态切换方式。只修改一个模块时,也必须把它放回现有导航、页面框架、相邻模块和真实信息层级中,交付修改后的完整页面,不能只交付孤立组件。
32
32
 
33
- 多页面或多状态只有在核心流程无法用一个页面说明时才增加。使用静态/mock 数据,不连接真实后端,不读取 secret,不执行真实写入。预演中的按钮、筛选、Tab、弹层或状态切换可以用本地 JavaScript 模拟关键交互。
33
+ 核心流程可以由一个页面和本地状态切换完整表达时生成一个页面;流程跨越多个页面、且不能由单页可靠表达时,必须生成多个原型页面。使用静态/mock 数据,不连接真实后端,不读取 secret,不执行真实写入。原型中的按钮、筛选、Tab、弹层或状态切换可以用本地 JavaScript 模拟关键交互。
34
34
 
35
35
  ## 4. 生成自包含 HTML
36
36
 
37
37
  每个页面必须:
38
38
 
39
39
  - 是含 `<!doctype html>`、`<html>`、`<head>`、用户可读 `<title>` 和 `<body>` 的完整 HTML;
40
- - 在文件中包含精确发现标记 `<!-- buildr:ui-preview -->`;
40
+ - 在文件中包含精确发现标记 `<!-- buildr:ui-prototype -->`;
41
41
  - 将必要 CSS 与 JavaScript 内联,将图片、字体和媒体限制为内联或 `data:` / `blob:` 资源;
42
42
  - 不引用 CDN、远程脚本、远程字体、远程 API 或机器绝对路径;
43
43
  - 延续调查所得的信息架构、页面框架、视觉语言、组件习惯和交互方式;
@@ -47,7 +47,7 @@ description: 用户已明确确认需要在正式前端开发前查看本次提
47
47
 
48
48
  ## 5. 浏览器验证
49
49
 
50
- 使用当前 runtime 可用的浏览器能力直接打开每个 HTML 文件:
50
+ 使用当前 runtime 可用的浏览器能力逐一打开每个 HTML 文件:
51
51
 
52
52
  1. 确认完整页面可见,没有依赖外部资源才能成立的缺口;
53
53
  2. 操作本次提案的核心交互与关键状态;
@@ -71,4 +71,6 @@ unverified: <none or explicit gaps>
71
71
  referenceBoundary: 非正式设计、非生产原型、非像素级验收
72
72
  ```
73
73
 
74
- 用户确认后,有设计师参与时把文件作为设计输入;没有设计师时,后续 Agent 可以加载完整文件作为正式前端开发的视觉与交互参考。任何确认选择需要进入正式行为时,仍应写回 design、delta specs、Brief 或 tasks 等对应 authority,不能只留在预演稿中。
74
+ 用户确认后,有设计师参与时把全部文件作为设计输入。当前 Task 一旦生成一个或多个原型页面,后续 Agent 在正式前端编辑前必须读取全部相关原型,并按其信息架构、布局和交互开发;只有用户在当前任务中明确要求忽略原型时才可以不采用,且不得把该选择写成 Task 字段、waiver、Result、Receipt 或 blocker。
75
+
76
+ 原型与 current design、delta specs 或 canonical behavior 冲突时,以正式 authority 为准,先明确差异并收敛正式 artifacts,不能让 HTML 静默覆盖规范。任何确认选择需要进入正式行为时,仍应写回 design、delta specs、Brief 或 tasks 等对应 authority,不能只留在原型中。
@@ -18,7 +18,7 @@ consumer 必须在可能修改 delivery content 的 `reconcile` 或 `maintain`
18
18
 
19
19
  ## Minimum Guarantees
20
20
 
21
- `assess` 必须按真实影响分类目标和理由,不得生成空文档任务;`reconcile` 必须以 canonical specs、当前实现与 registries 为首要事实,更新或确认真正受影响的 Brief/current knowledge,并处理 terminology result;`inspect` 必须核对全部已评估影响、Brief 一致性、当前 tree identity 和 unresolved terms。
21
+ `assess`必须按真实影响分类目标和理由,不得生成空文档任务;`reconcile`必须以canonical specs、当前实现与registries为首要事实,更新或确认真正受影响的Brief/current knowledge,并处理terminology result;`inspect`必须核对全部已评估影响、Brief一致性、当前tree identity和unresolved terms,并按当前Task完成结论影响区分`aligned|not-applicable|attention|blocked`。只有会导致handoff遗漏必要行为、风险、兼容性或验收事实的冲突可以`blocked`;解释性漂移或无关历史债务必须`attention`。
22
22
 
23
23
  `maintain` 必须只处理已由 canonical specs、当前实现、registries 或已确认决定证明的既有事实,只更新真实受影响的 current knowledge,不创建 Brief 或 Change sidecar。若候选内容需要新的业务决定或改变 canonical behavior,必须返回 `change-required`;authority 冲突必须返回 `unresolved`。
24
24
 
@@ -32,13 +32,13 @@ Provider 必须保持 README、docs、knowledge、specs、active Change 与 arch
32
32
 
33
33
  ## Result Evidence
34
34
 
35
- provider 必须返回 `operation`、`status: aligned|updated|unresolved|not-applicable|change-required`、`project`、`impacts`、`changedAssets`、`unresolvedItems`、`sourceIdentities` 和 `treeIdentity`。Change lifecycle operation 还必须返回 `change`;`maintain` 必须返回 `change: none` 与实际 targets。
35
+ provider必须返回`operation`、`status: aligned|updated|unresolved|not-applicable|change-required|attention|blocked`、`project`、`impacts`、`changedAssets`、`unresolvedItems`、`sourceIdentities`和`treeIdentity`。Change lifecycle operation还必须返回`change`;`maintain`必须返回`change: none`与实际targets。Development consumer只聚合`aligned|not-applicable|attention|blocked`最小disposition,其他状态必须先根据是否改变bytes或完成结论收敛,不得伪装ready。
36
36
 
37
37
  使用 `.buildr/knowledge-impact.yml` 时,它必须是版本化 Change workflow evidence,记录目标、理由、状态与来源,不得成为当前事实源;`maintain` 不得创建该 sidecar。
38
38
 
39
39
  ## Decision Points
40
40
 
41
- 当 specs、实现、registries、Brief 或 current knowledge 存在无法在当前授权内解决的冲突,impact evidence 缺失/陈旧,terminology unresolved,或候选 tree identity 无法匹配时,provider 必须返回 `unresolved`。`maintain` 发现候选事实改变长期产品/业务语义时必须返回 `change-required`。Consumer 必须停止当前写入、sync、stable Content Target、verification、archive 或交付中的后续状态变化。
41
+ 当specs、实现、registries、Brief或current knowledge存在无法在当前授权内解决的冲突,impact evidence缺失/陈旧,terminology unresolved,或候选tree identity无法匹配时,provider必须返回`unresolved`;若该问题会造成当前Task错误完成结论,最终disposition必须为`blocked`,否则为`attention`并允许无关开发、Verification与handoff继续。`maintain`发现候选事实改变长期产品/业务语义时必须返回`change-required`并回到Change flow。任何knowledge写入改变delivery bytes时必须重新观察Content Target并使旧Candidate/evidence失效。
42
42
 
43
43
  ## Allowed Variations
44
44
 
@@ -12,7 +12,7 @@ version: 1
12
12
 
13
13
  ## Consumer Obligations
14
14
 
15
- consumer 必须明确 repository、operation、相关 local/remote refs、精确 owned content 或 commit scope,以及本次允许的 remote-ref、local history、working tree 与 remote effects。`fetch`、`rebase`、`commit` 与 `push` 保持独立 Result;`commit+push` 必须作为依次执行的 commit 和 push 两次 operation 调用。Task Finish、产品入口或直接用户继续拥有意图、目标和顺序。
15
+ consumer必须明确repository、operation、相关local/remote refs、精确owned content或commit scope,以及本次允许的remote-ref、local history、working tree与remote effects。`fetch`、`rebase`、`commit`与`push`保持独立Result;`commit+push`必须作为依次执行的commit和push两次operation调用。Agent、直接用户或上游consumer拥有意图、目标和顺序;Buildr自动Finish不是formal Task执行Git交付的唯一通道。
16
16
 
17
17
  ## Minimum Guarantees
18
18
 
@@ -0,0 +1,67 @@
1
+ ---
2
+ schemaVersion: buildr.capability-contract/v1
3
+ id: buildr.task-development
4
+ version: 2
5
+ ---
6
+
7
+ # 任务研发(Task Development)
8
+
9
+ ## Purpose
10
+
11
+ 从正式 Task 的首个研发动作到 current Finish handoff,维护唯一 Development Receipt、可选 planning facts、可选Parent Plan/Contribution binding、Content Target、verification policy、Task Candidate generation、专业 gate/disposition、推进决定与不可变 handoff。Task Development 是研发聚合事实 authority;它不是 Task Core、artifact/Result内容 writer、测试执行器、Git交付器或通用状态机。
12
+
13
+ ## Consumer Obligations
14
+
15
+ 选择Buildr-managed Development与正式Result的consumer必须提供active Task ID、canonical Workspace、matching ready Environment与完整Change disposition;code-only Task显式提供空Change列表。直接编辑、构建或有界测试不消费本能力,也不产生Development Receipt、Content Target、Verification、Candidate或handoff。进入本能力后,首个proposal、design或实现动作必须调用`begin`建立current planning snapshot;`begin|planning`显式提交完整`planning`整值。
16
+
17
+ Planning node可以不存在、`not-applicable`或由用户/业务授权明确`waived`。`current|stale`节点必须绑定专业authority、portable reference与content identity;`waived`必须保存精确summary和authorization source。consumer不得把waiver伪造成Review/Verification Result。
18
+
19
+ 内容、测试开发与Change收敛完成后才能调用`observe`建立stable Content Target;Current Knowledge可在实现、Review或Verification前后形成,但任何会改变delivery bytes的reconcile/maintain都要求重新observe。任一关联Change仍为`pending`时Application必须在Content Target observation与Receipt写入前失败关闭。verification policy必须来自current Task scope与Task Verification declarations;有效Project集合是显式Project、Service所属Project与Change所属Project的确定性并集。只有该并集为空的真正仅工作区Task才可使用空declarations、空capabilities、唯一`workspace` coverage gap与空overrides;其他Task继续要求完整非空declarations。正式Verification Result只能由`buildr.task-verification@3` provider从matching execution authority reconciliation形成。Completion Result只能由`buildr.task-review@1` provider记录。负向current Result的风险接受必须绑定精确Result digest;跳过整个适用gate必须通过`gate`记录目标、summary与明确授权source。
20
+
21
+ consumer不得直接读写Workspace SQLite Development current slot或旧`.buildr/tasks/<task-id>/development.yml`,不得伪造planning/content/Result applicability、Candidate、decision或handoff,也不得把Git HEAD、branch、worktree、Environment path、Agent session或时间当作Candidate identity。
22
+
23
+ 采用Parent Plan时,consumer只能保存outcome、architecture invariants、Contribution Map、dependencies与final acceptance,并以内容identity作为Planning Review target。正式Child必须代表可独立形成Candidate/evidence、immutable Handoff与真实Delivery的Contribution;普通并行调查、临时Agent分工和同一交付内协作不得建模为Child。满足门槛的Child必须先有Task Record Parent关系和自己的Development Receipt,再保存planned Contribution binding。Finish handoff必须明确planned、delivered、extra、residual、superseded、affected与唯一next action;普通Child状态变化不得修改Parent Plan或替代handoff。范围越界必须使用expected identity显式reconcile,再分别更新或abandon受影响Child。
24
+
25
+ ## Minimum Guarantees
26
+
27
+ - Development Application只能通过Task Record、Environment、Review与Verification Applications/ports取得专业事实;不得直接读取其stores。
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
+ - 新写入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
+ - provider只读取Workspace SQLite中的合法v2 current Receipt;旧File Store中的v1/v2 Receipt均保持inert,不读取、不迁移、不双写。
31
+ - Receipt不保存artifact/Result正文、diff、inventory、stdout/stderr、timing、绝对路径、资源handle、聊天、隐藏推理、完整history/revision/CAS/锁/租约。
32
+ - planning snapshot只保存按id排序的最小nodes与aggregate identity;没有实际节点不得创建空artifact或Result。
33
+ - Content Target只由ready Environment中原Task source snapshot的deliverable bytes形成;控制metadata、绝对路径、Git载体、Node/npm、OpenSpec与特定测试框架不进入identity。
34
+ - policy identity只绑定current declarations、selected capabilities、coverage gaps与明确overrides;Task Verification不拥有policy。仅工作区policy的空集合与workspace gap仍必须形成稳定identity;其Content Target改变时旧policy stale,Task新增Project/Service/Project-bound Change时必须改用完整Project declarations。
35
+ - current专业Result、`not-applicable`和明确`waived`是不同gate事实。stale/incomplete Result不得被waiver或风险接受变成current。
36
+ - Candidate closed shape继续只绑定generation、Content Target、Task Context与policy identity;Task Context、Content Target、policy或Candidate前planning disposition变化必须清除current Candidate,下一次freeze递增generation。Verification、Completion、Current Knowledge与专业Result identity不得进入Candidate,也不得仅因其更新递增generation。
37
+ - Current Knowledge `knowledge` action只保存current Content Target identity、`aligned|not-applicable|attention|blocked`、portable summary、source identities与bounded unresolved items;`blocked`阻止proceed/handoff,`attention`保留在handoff但不得阻止完成。Application不解释knowledge正文或固定调用顺序。
38
+ - handoff snapshot绑定Candidate、Change dispositions、Current Knowledge disposition、全部current gate/disposition、proceed decision与精确风险/waiver授权;已写snapshot append-only immutable。
39
+ - Contribution Handoff只作为同一immutable handoff的可选专业事实;必须绑定current Parent Plan与已保存planned binding。Parent coordination read model只组合Task Record与已保存Development/Finish facts,不新增progress/lifecycle/event/history store,不回写Child状态。
40
+ - 已completed、非no-change的直接Child若具有matching terminal Finish association与不含Contribution Handoff的immutable handoff,且全部Task-scoped Change仍由current working copy证明archived,可通过`task parent reconcile-child-delivery`显式追加一次terminal contribution reconciliation。该专业evidence由Task Development Application唯一写入,必须绑定current Parent Plan、Parent/Child关系、Candidate/generation、三个gate、完整Contribution Handoff、reason与source;若历史binding存在则planned必须精确匹配,缺失binding时由调用方显式提交planned映射。它不修改Receipt、handoff、Finish、Task Record或Parent Plan;相同identity重放unchanged,不同覆盖或其他Child owner冲突零写入失败。
41
+ - Development Application必须把唯一current Receipt事务保存到Workspace SQLite;该Receipt不进入Git或跨机器同步,旧YAML不读取、不迁移、不双写。
42
+ - Development Application必须从已保存Task Context、Planning、Content Target、policy、Candidate与Verification gate派生response-only Formal Verification readiness;它不得进入Receipt、SQLite新slot、Candidate identity、Current Knowledge或专业Result。Candidate未到达或已有matching Verification报告`not-applicable`,Candidate输入漂移报告`blocked`,current Candidate已就绪且Verification缺失报告`ready`并允许consumer交接显式Candidate lease。
43
+ - Delivery consumer的handoff equivalence只读;无论自动Finish或外部交付reconciliation,都必须提交冻结handoff、Candidate、generation与Content Target identity。Application只有在四项全部等于`observed.currentHandoff`时才能返回`equivalent`,不得从历史handoffs选择旧identity。交付能力不得修改Development Receipt,也不得读取、解释或执行Change convergence/archive。
44
+
45
+ ## Effects and Authorization
46
+
47
+ 普通Development授权只覆盖current Receipt整值写入和读取。`begin|planning`只登记专业authority引用;不创建或修改proposal、design、Review/Verification Result。实现、测试、current knowledge、Change convergence、Result record、外部副作用、Git transition与Environment cleanup分别由对应能力授权。`waived`必须来自用户或具备业务授权的明确source,并限制到精确node/gate target。
48
+
49
+ 所有写入操作必须提交各自closed input的完整整值;字段omission不得表示清空、保留、patch或推断。
50
+
51
+ ## Result Evidence
52
+
53
+ 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
+ Next actions只按本次已保存Receipt/applicability提供建议性方向;consumer仍须读取当前阶段的selected专业provider和授权后决定是否执行。timing、调用次数及其他效率指标不得进入建议判断、gate、Task状态、Candidate或自动skip/advance。
56
+
57
+ 正式handoff至少保存Candidate identity/generation及其输入identities、Change dispositions、Planning/Verification/Completion gate或disposition、proceed decision、风险/waiver来源和snapshot identity/time;承担Parent Contribution时还保存完整Contribution Handoff。
58
+
59
+ Terminal reconciliation不是normal Child流程的替代步骤。active Child仍必须先建立Task Record Parent关系和planned binding,并在同一正式handoff中提交Contribution Handoff后再Finish;consumer不得为了以后恢复而省略binding、Verification、Completion Review、handoff或Finish。恢复入口的`--schema|--example`只发现closed静态输入与必填参数,运行态Plan、Task、handoff、Finish、Change与ownership仍由Application关闭式校验。
60
+
61
+ ## Decision Points
62
+
63
+ Task/Environment非current、planning node证据不完整、waiver无授权、Change pending、Content Target缺失或declaration/policy stale时不得freeze;Verification、Completion与Current Knowledge缺失不阻止首次freeze。Change pending另外不得调用`observe`创建stable Content Target。Candidate形成后,Formal Verification readiness为`ready`时consumer把显式Candidate lease交给Task Verification;Result必须从matching Execution Record reconciliation形成。仅工作区matching`not-passed`Result保持Candidate current,但proceed/handoff仍必须对`workspace`gap绑定精确Result digest与明确风险授权。Completion未得到current专业Result、合法not-applicable或明确waived,Current Knowledge缺失/stale/blocked,或Verification policy facts不完整时不得proceed/handoff;attention不阻止完成。Delivery Baseline前进或Finish Git conflict不改变Development applicability;只有原Task source、Task Context、planning/policy等真实Candidate input变化才重建Candidate。无法判断时保持blocked。
64
+
65
+ ## Allowed Variations
66
+
67
+ Project可以定义自己的planning node kind、专业authority与技术栈,并采用Git、tarball、安装包或其他Delivery Carrier。Provider实现可以调整内部action名称和Buildr Web布局;唯一Receipt、Workspace-local current snapshot、明确waiver、专业writer隔离、Candidate shape、append-only handoff与Finish边界不可省略。
@@ -0,0 +1,37 @@
1
+ ---
2
+ schemaVersion: buildr.capability-contract/v1
3
+ id: buildr.task-environment
4
+ version: 1
5
+ ---
6
+
7
+ # 任务环境(Task Environment)
8
+
9
+ ## Purpose
10
+
11
+ 为正式 Task 准备、检查、恢复和清理实际执行环境,并通过唯一 Environment Receipt 提供当前机器的环境事实。
12
+
13
+ ## Consumer Obligations
14
+
15
+ consumer只有在当前动作实际需要Buildr-managed checkout、Preparation、runtime projection、Task-owned持久资源、正式环境证据或cleanup authority时才调用本能力,并提供正式Task ID与canonical Workspace。Agent必须根据Task scope与Project `preparation.yml`选择Recipe;对应受管效果前必须取得matching `ready`并只使用允许根、CLI与runtime invocation。Formal Task、普通编辑、构建或有界测试本身不构成本能力的通用准入条件;直接工作不得手写或补造Receipt,也不得认领ready、正式Result或cleanup事实。
16
+
17
+ ## Minimum Guarantees
18
+
19
+ provider必须通过共享Task Environment Application管理Workspace SQLite中按Task ID唯一的`task_environment_current` row,并通过公开read model返回`workspace-sqlite:task-environment/<task-id>` locator。Project `preparation.yml`是长期Recipe authority;Plan v3把恰好覆盖Task scope的基础选择与capability auxiliary preparation分开,后者不得改变Task/Change/Content Target/allowed execution roots或源码写入authority。Plan中的typed Workspace path reference与closed executable authority必须分离;Receipt v6独占实际scope/root、Task checkout/provider evidence、Declaration/Scope/Recipe/Step current与prepared facts、解析后的机器路径、closed runtime invocation、Workspace CLI、runtime projection identity、动态资源、`ready / blocked`、恢复和cleanup事实。Task Record不保存这些字段。不得由目录扫描、lifecycle projection或runtime current反向推导技术栈。retained Buildr只作为可信Environment Manager;其content identity最多是Receipt创建指纹,不是源码版本、ready、资源ownership或Verification applicability authority。旧Plan/Receipt只读兼容,只有显式Plan Request才能升级。
20
+
21
+ `prepare`必须幂等完成首次准备和串行恢复;Step只接受明确的无shell executable authority、args、typed Workspace-relative cwd/input/output、required和timeout。Workspace Foundation/runtime/machine requirement与Project/Service wrapper authority必须closed;实际机器executable、version/content identity、search prefix和来源只保存到Receipt。Project/Service wrapper真实路径不得越出所属execution root。只跳过Declaration/Recipe/executable/input identities与prepared identities一致且全部outputs ready的Step。CLI `inspect`必须只读重新观察这些facts,不执行Step、不创建输出、不升级Plan、不回写Receipt;Buildr Web GET必须使用saved-current reader。`cleanup`必须只接受Buildr已持久化并可独立复核的Delivery evidence,或明确abandon终态;不得要求Delivery只能由自动Finish产生。候选CLI可以在本Task验证工作区测试,但不能写retained、peer Task或共享user runtime,也不能认领或清理自己的Environment。
22
+
23
+ ## Effects and Authorization
24
+
25
+ Environment 可以调用 selected provider 创建执行位置、准备确定性依赖和投射任务验证 runtime,也可以登记已知产品 provider 创建的非敏感动态资源。部分失败保留可诊断现场并返回 blocked。资源停止和 provider cleanup 由 Environment 统一执行;任意 shell、凭证、远端删除和无法证明 ownership 的效果均不允许写入 Receipt。
26
+
27
+ ## Result Evidence
28
+
29
+ 返回Task、Workspace、receipt availability、`current-machine`、`observedAt`、状态、实际scopes/roots、controller、Plan identity、逐Declaration/Scope/Recipe/Step current与prepared identity、executed、inputs/outputs/required/status/diagnostic、Runtime/CLI/projection probes、provider evidence、动态资源、effects、diagnostic、nextActions和cleanup摘要。Step的`executed`表示当前prepare调用是否实际执行;effect进一步给出本次执行位置。真实Agent session采用证据由Task Verification管理,不属于本结果。
30
+
31
+ ## Decision Points
32
+
33
+ Task/Workspace不匹配、Plan缺失/越权/未完整覆盖scope、Receipt损坏、Environment Manager sourceRoot/adapter不可信、Git-backed manager source dirty、provider/resource identity漂移、required Step缺失/漂移/失败、执行根越界、必需probe blocked、可见并发writer、source drift、Task Contribution等价证明失败或cleanup authorization不足时,必须对消费这些事实的受管动作fail closed,不得扩大为无关工作的全局blocker。provider不枚举package manager或技术栈,也不建设第二套Environment store。
34
+
35
+ ## Allowed Variations
36
+
37
+ provider 组合、共享根或 Git checkout 的选择可以不同;唯一 Environment Receipt、可信 retained Environment Manager、Task checkout/provider 源码基础、真实 probe、写入边界和统一 cleanup authority 不可省略。
@@ -0,0 +1,43 @@
1
+ ---
2
+ schemaVersion: buildr.capability-contract/v1
3
+ id: buildr.task-finish
4
+ version: 1
5
+ ---
6
+
7
+ # 任务收尾(Task Finish)
8
+
9
+ ## Purpose
10
+
11
+ 消费current Development handoff,提供可选的自动交付与交付对账(delivery reconciliation),并分别投影Delivery、Activation、Environment Cleanup和Diagnostics。该能力不是正式Task交付的唯一执行通道。
12
+
13
+ ## Consumer Obligations
14
+
15
+ consumer必须提供Task、canonical Workspace与current handoff identity。Agent负责选择Git/PR/自动Finish、target、remote、冲突与恢复策略;直接交付后必须调用reconciliation读取真实远端,不得提交claimed success、伪造proof或把路径不重叠描述为语义安全。
16
+
17
+ provider只消费Development handoff,不得运行或记录Task Verification/Task Review、生成Candidate或收敛OpenSpec Change。
18
+
19
+ ## Minimum Guarantees
20
+
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
+
23
+ `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
+
25
+ Delivery一旦由权威Git事实确认,不得因Doctor、Activation、Execution Record、Environment Cleanup、Task登记或Buildr内部派生证据失败而改写为未交付。上述失败必须形成独立`attention`并保留已发生effects。
26
+
27
+ ## Effects and Authorization
28
+
29
+ 自动`run`可在明确Git边界内创建Delivery Carrier、普通push和尝试后续维护;`reconcile`只观察远端并登记交付,不创建carrier、不push、不改写代码。显式`rollover`只在旧run因已知Task Contribution漂移停在prepare、无副作用、topology未变且carrier精确匹配首次不可刷新proof时,接受current facts token,清理旧carrier并以旧run ID/digest fence写入绑定current Handoff的新active run;它不访问remote或执行Delivery。Task完成登记、Activation、Environment Cleanup和Diagnostics由各自Application负责,失败不撤销Delivery。
30
+
31
+ carrier cleanup、旧run retirement与本地安全rollover只能通过Product-owned封闭原语执行。原语必须重新验证精确Task/run/carrier identity、ownership、repository topology、phase、side-effect absence,以及对应路径所需的remote containment或不可刷新carrier disposability proof;调用方不得传入任意删除路径、跳过证明或把事故专用状态迁移为长期策略。
32
+
33
+ ## Result Evidence
34
+
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`。
36
+
37
+ ## Decision Points
38
+
39
+ remote不包含Task Contribution、repository/branch/remote/Task identity有歧义、需要force push或共享历史改写、或安全删除ownership无法证明时必须fail closed。Buildr内部记录缺失但可从权威事实重建、重复观察已交付repository、cleanup或诊断失败时不得阻断Delivery。
40
+
41
+ ## Allowed Variations
42
+
43
+ Agent可以选择直接Git、PR、自动Finish或其他已授权Delivery Carrier。Provider可以增加自动化和只读证明方式,但不得收回Agent的交付决策权,也不得把Buildr状态机变成唯一合法路径。
@@ -12,7 +12,7 @@ version: 2
12
12
 
13
13
  ## Consumer Obligations
14
14
 
15
- consumer 必须提供明确 operation、canonical Workspace、稳定 Task ID 及动作字段。创建 todo 必须明确尚未进入执行且不得带 Change;active 创建或 todo 激活前的语义分流、Git 基线与后续专业动作由 consumer 负责。复盘来源只提交已有 current 复盘的 terminal source Task ID,不提交 action item、报告副本或通用关系。
15
+ consumer 必须提供明确 operation、canonical Workspace、稳定 Task ID 及动作字段。创建 todo 必须明确尚未进入执行且不得带 Change;active 创建或 todo 激活前的语义分流、Git 基线与后续专业动作由 consumer 负责。Parent/Child只用于可独立说明目标/scope并形成Candidate/evidence、immutable Handoff与真实Delivery的协调层级;普通并行调查、临时Agent分工或同一交付内协作不得仅因并发而创建Child。复盘来源只提交已有 current 复盘的 terminal source Task ID,不提交 action item、报告副本或通用关系。
16
16
 
17
17
  ## Minimum Guarantees
18
18