@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
@@ -10,11 +10,10 @@ Buildr 是为组织和 Agent 构建的工作资产治理系统。它把散落在
10
10
 
11
11
  Buildr workspace 是组织(Organization/Root)资产根;Agent runtime 是面向当前 Agent 的可重建入口。Buildr 不成为另一个 Agent,也不接管 Agent 的理解、推理和任务执行。Buildr 组织并投射 Agent 可发现、可选择、可使用的工作资产,不替 Agent 构造 context window;Agent 根据当前任务发现并选择相关内容,形成任务上下文并推进工作。Workspace 不保存本机版本偏好;用户级 Buildr Data Root 只保存避免重复版本提醒所需的最小状态。
12
12
 
13
- Agent 使用本 Skill 判断用户意图属于哪类 Buildr 资产,并通过 Buildr CLI 完成维护、诊断和按需渲染。事实状态以 `buildr runtime list --json`、`buildr doctor --agent <agent> --target <dir> --json`、manifest、CLI 帮助和 CLI 错误输出为准。
14
- 组织资产先改变源资产(使用 Buildr CLI),再同步 Agent runtime(使用 render/sync)。
13
+ Agent 使用本 Skill 判断用户意图属于哪类 Buildr 资产,并通过 Buildr CLI 完成维护、诊断和按需渲染。事实状态以 `buildr runtime list --json`、`buildr doctor --agent <agent> --target <dir> --json`、manifest、CLI 帮助和 CLI 错误输出为准。组织资产先改变源资产(使用 Buildr CLI),再同步 Agent runtime(使用 render/sync)。
15
14
  Agent 是 Buildr 功能的默认操作入口。Agent 能在当前工具、权限和安全边界内完成的动作,应先说明必要影响并取得所需授权,再直接执行和验证;不得默认把命令交给用户代为执行。用户明确选择手动方式,或 Agent 因工具不可用、权限、登录态、外部环境等原因无法完成时,再提供准确的手动操作兜底。
16
15
 
17
- 用户要求“安装 Buildr”且未限制范围时,只从 npm Registry 安装 `@buildr-ai/buildr`,并验证 CLI 与 `buildr web`。普通安装默认不修改 Applications 或 Start Menu;只有用户明确需要图形入口时才执行 `buildr web launcher install`,并验证它绑定同一 npm installation、Host Node 与 package entry。全局安装不猜测 Workspace 或写 Agent runtime;`init --agent` 在目标 Workspace 首次投射 Buildr Skill,之后由 `sync`/`render` 收敛。Buildr 产品 checkout 使用 `npm run install:development` 同时更新当前 checkout CLI 与隔离的 `Buildr Web Dev`;development Launcher 不覆盖正式 npm Launcher。
16
+ 用户要求“安装 Buildr”且未限制范围时,只从 npm Registry 安装 `@buildr-ai/buildr`,并验证 CLI 与 `buildr web`。普通安装默认不修改 Applications 或 Start Menu;只有用户明确需要图形入口时才执行 `buildr web launcher install`,并验证它绑定同一 npm installation、Host Node 与 package entry。全局安装不猜测 Workspace 或写 Agent runtime;`init --agent` 在目标 Workspace 首次投射 Buildr Skill,之后由 `sync`/`render` 收敛。Buildr 产品 checkout 使用 `npm run install:development` 同时更新当前 checkout CLI 与隔离的 `Buildr Web Dev`;development Launcher 不覆盖正式 npm Launcher。在 Buildr Product checkout 中执行 Workspace CLI / HTTP smoke 时,必须经过 `tools/development/run-isolated-workspace-smoke.mjs`;标准代表性流程从 `projects/product/services/buildr` 运行 `npm run smoke:workspace`,其他已登记场景使用 runner 的 `--script` 入口。runner 独立设置 Workspace、`BUILDR_APP_DATA_DIR` 与 `BUILDR_PRODUCT_DATA_DIR`,并在成功或失败后统一清理。不得用裸 `mktemp` 启动指向默认用户 profile 的 `buildr web`,也不得把 smoke Workspace 登记写入发布版或开发版真实用户状态。此约束只保护 Buildr 自身开发 smoke,不扩大为对普通临时 Workspace 的自动删除策略。
18
17
  ## 执行循环
19
18
 
20
19
  1. 确认 `target`。未指定时默认当前目录;如果当前目录在服务(Service)代码仓内,先定位 Buildr 组织(Organization/Root)。
@@ -41,14 +40,14 @@ Agent runtime 先根据 Skill description 和用户目标发现入口 Skill。
41
40
  | 接入代码仓、服务仓或可执行资产 | 服务(Service) |
42
41
  | 查看待办/正式 Task、Parent/Child、复盘来源与各专业当前状态 | `buildr.task-record/v2` 及 Development、Review、Verification 公开 read model;Buildr Web 动态投影 |
43
42
  | 启动或继续已有active Formal Task并确定当前执行根、writer与next action | `buildr task next <task-id> --json`;只加载返回的当前capability/provider,`required`先恢复安全前置,`recommended`可按实际情况调整 |
44
- | 创建或检查opt-in Parent Plan、绑定Child Contribution、显式reconcile范围变化或记录Parent最终集成验收 | `buildr.task-development/v2` selected provider + `task parent inspect|record|bind-child|reconcile|accept`;progress只由Application动态派生 |
43
+ | 创建或检查opt-in Parent Plan、绑定Child Contribution、显式reconcile范围变化、严格恢复终态遗漏的交付证据或记录Parent最终集成验收 | `buildr.task-development/v2` selected provider + `task parent inspect|record|bind-child|reconcile|reconcile-child-delivery|accept`;终态恢复只用于matching Finish异常,progress只由Application动态派生 |
45
44
  | 记录、查看或处理已结束Task的Agent执行效率复盘 | `buildr.task-retrospective/v2` selected provider;有效方向由todo/active Task承接,不进入生命周期门禁 |
46
45
  | 设计或优化 Project / Service 测试框架、划分测试边界、编排场景,或为实现任务开发测试 | `project-testing` Skill;无 Result、Receipt 或 provider contract |
47
46
  | 运行已有测试、验证改动、查看 current 验证结果、报告验证耗时、初始化/更新验证能力声明,或实现任务到达正式验证节点 | `buildr.task-verification/v3` selected provider;不开发测试 |
48
47
  | 为正式 Task 准备、检查、恢复或清理实际执行环境 | `buildr.task-environment/v1` selected provider |
49
48
  | 显式创建、检查或清理 Task 的 Git worktree/provider evidence | `buildr.git-worktree-provider/v1` selected provider |
50
49
  | 从首个proposal、方案或直接实现等正式研发动作开始,维护planning facts、稳定Content Target、正式Verification、Task Candidate、Completion Review、风险决定与handoff | `buildr.task-development/v2` selected provider |
51
- | 对已有 active formal Task 消费 current Development handoff、先按最终内容提供语义化commit message,再在隔离 Delivery Carrier 上机械复用或进行 Delivery Adaptation、推进 retained target 并交接 Task Environment cleanup | `buildr.task-finish/v1` selected provider;新run冻结message,resume复用;只有 Development applicability stale 才返回 Task Development |
50
+ | 对已有active formal Task消费current Development handoff并完成交付 | `buildr.task-finish/v1` selected provider;Agent选择自动Finish或直接Git/PR,外部交付后用reconciliation登记Delivery,Activation、Environment Cleanup与Diagnostics独立处理 |
52
51
  | Workspace 没有 active Task 时,用户说“收尾”或等价的当前 Git 交付 | 产品入口解析当前 Git facts 后,将已选定的 fetch、必要时精确 commit、rebase、普通 push 等 operation 交给 `buildr.git-operations/v1`;不创建临时 Task 或 Formal Finish evidence |
53
52
  | 已明确 repository/ref 的 commit、push、commit+push 或其他已选 Git Operation | `buildr.git-operations/v1` selected provider;本 Skill 或直接用户继续决定 operation、目标与顺序 |
54
53
  | 统一安装、更新和卸载一组 workspace Rules、Skills、Command collections | 组件(Components) |
@@ -58,8 +57,9 @@ Agent runtime 先根据 Skill description 和用户目标发现入口 Skill。
58
57
  | 当前 Agent 找不到已声明规则或技能 | Agent runtime 渲染 |
59
58
  | 为 Buildr 增加新的 Agent runtime adapter | runtime trait intake + OpenSpec change |
60
59
  | 采用内部流程、调整工作方式、修改或替换 Skill 行为 | `capability-adaptation` Skill;先识别跨 Skill 稳定依赖边界,再开发、验证和激活 |
61
- 产品入口 Buildr Skill 只对自身已命中的 Buildr 管理意图执行内部能力路由,不是同时 required 依赖全部 capabilities 的 workspace consumer。只有某类 Buildr 管理意图命中本 Skill 后,才把对应 capability 作为本次动作的 required dependency;单项 capability blocked 不得阻塞 init、doctor、Project/Service 或其他无关 Buildr 管理动作。顶层 capability 的 binding 只选择 provider,不自动产生 Agent 意图命中;替换顶层入口时必须由能力适配同时验证 selected provider 的 runtime 可发现性、description 覆盖和触发歧义。正式 Task 开始持久交付前,使用 `buildr task environment prepare <task-id> --agent <agent> --target <canonical-workspace> --json`;`prepare` 确定性完成实际执行位置、Runtime、Workspace CLI、依赖、runtime projection 和真实 probes,重复调用承担恢复。只有结果为 `ready` 才在返回的执行根中继续。Git worktree 只是可组合 provider;其 evidence 不代表环境 ready。任一 provider 返回 `treeChanged: true` 后,遵守 required Core workspace-transition invariant:在对应已初始化 Buildr workspace 中针对当前 Agent 和 workspace root 运行 doctor。doctor 指出 workspace sync 是合适修复动作时,询问用户是否由 Agent 立即同步,同时提供准确手动命令作为备选;确认后由 Agent 执行 sync 并验证。当前 session 是否重新发现新资产由 Agent runtime 决定。“更新 workspace”或“同步 workspace”已包含 Git 更新与 Buildr sync 授权,不重复询问 sync;遇到本地改动、分叉、冲突、缺少 upstream 或其他需要用户决策的状态时停止,不自动 stash、reset、rebase、merge、覆盖,也不继续 sync。
62
- 无 active Task 的“收尾”不是 Task Finish 的降级模式,而是直接 Git 收尾。先只读确认 Workspace 中没有 active Task,并解析当前 repository、HEAD 分支、dirty/index、唯一目标 ref、remote 和 push destination;completed/abandoned Task 不得复用。事实唯一时,按 `fetch → 必要时精确 commit → rebase → push` 的已选顺序调用 `git-operations`;ownership 不明、目标歧义、rebase 冲突、共享历史改写或 force push 时 fail closed。直接路径只报告独立 Git Operation Result,不创建 Task、Environment、Verification、Candidate、Finish Result 或 Task terminal status。rebase 成功改变已检出 Buildr Workspace tree 后,按 Core workspace transition invariant 运行当前 Agent Doctor。
60
+ 产品入口 Buildr Skill 只对自身已命中的 Buildr 管理意图执行内部能力路由,不是同时 required 依赖全部 capabilities 的 workspace consumer。只有某类 Buildr 管理意图命中本 Skill 后,才把对应 capability 作为本次动作的 required dependency;单项 capability blocked 不得阻塞 init、doctor、Project/Service 或其他无关 Buildr 管理动作。顶层 capability 的 binding 只选择 provider,不自动产生 Agent 意图命中;替换顶层入口时必须由能力适配同时验证 selected provider 的 runtime 可发现性、description 覆盖和触发歧义。Formal Task和Task Environment不是编辑、构建或有界测试的通用工作许可:用户授权、repository/ref、owned scope与副作用明确时,Agent可以直接工作,但不得冒充Environment或正式Result。需要Buildr-managed checkout、Preparation、runtime projection、Task-owned资源、正式环境证据或自动Finish时,使用 `buildr task environment prepare <task-id> --agent <agent> --target <canonical-workspace> --json`;`prepare` 确定性完成实际执行位置、Runtime、Workspace CLI、依赖、runtime projection 和真实 probes,重复调用承担恢复。只有结果为 `ready` 才在返回的执行根中继续受管动作。Git worktree 只是可组合 provider;其 evidence 不代表环境 ready。任一 provider 返回 `treeChanged: true` 后,按本 Skill 的 workspace transition 约束,在对应已初始化 Buildr workspace 中针对当前 Agent 和 workspace root 运行 doctor。doctor 指出 workspace sync 是合适修复动作时,询问用户是否由 Agent 立即同步,同时提供准确手动命令作为备选;确认后由 Agent 执行 sync 并验证。当前 session 是否重新发现新资产由 Agent runtime 决定。“更新 workspace”或“同步 workspace”已包含 Git 更新与 Buildr sync 授权,不重复询问 sync;遇到本地改动、分叉、冲突、缺少 upstream 或其他需要用户决策的状态时停止,不自动 stash、reset、rebase、merge、覆盖,也不继续 sync。
61
+ 无 active Task 的“收尾”不是 Task Finish 的降级模式,而是直接 Git 收尾。先只读确认 Workspace 中没有 active Task,并解析当前 repository、HEAD 分支、dirty/index、唯一目标 ref、remote 和 push destination;completed/abandoned Task 不得复用。事实唯一时,按 `fetch → 必要时精确 commit → rebase → push` 的已选顺序调用 `git-operations`;ownership 不明、目标歧义、rebase 冲突、共享历史改写或 force push 时 fail closed。直接路径只报告独立 Git Operation Result,不创建 Task、Environment、Verification、Candidate、Finish Result 或 Task terminal status。rebase 成功改变已检出 Buildr Workspace tree 后,按本 Skill 的 workspace transition 约束运行当前 Agent Doctor。
62
+ 已有active Task的“收尾”由Agent根据当前repository与协作方式选择自动Finish、直接Git或PR。Buildr不要求业务代码必须经过Delivery Carrier;直接交付后必须由`task finish reconcile`从真实远端验证并登记,不接受claimed success。Doctor、Activation、Environment Cleanup或Diagnostics attention不撤销已确认Delivery。
63
63
  ## 资产维护
64
64
 
65
65
  ### Workspace / Organization Root
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildr-ai/buildr",
3
- "version": "0.1.0-rc.21",
3
+ "version": "0.1.0-rc.22",
4
4
  "description": "Buildr CLI for managing Agent workspace assets.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,6 +28,7 @@
28
28
  "node": ">=24.15.0 <25"
29
29
  },
30
30
  "dependencies": {
31
+ "ajv": "8.17.1",
31
32
  "yaml": "^2.9.0"
32
33
  }
33
34
  }
@@ -1,4 +1,4 @@
1
- bootstrapGuidePath: package/bootstrap/guide.md
1
+ bootstrapGuidePath: docs/bootstrap-guide.md
2
2
  bootstrapGuideMaxLines: 80
3
3
  bootstrapGuideRequiredText:
4
4
  - Buildr Skill
@@ -6,7 +6,11 @@ include:
6
6
  - docs/skill-capability-contracts.md
7
7
  - docs/cli-architecture.md
8
8
  - docs/known-limitations.md
9
- - package/
9
+ - docs/bootstrap-guide.md
10
+ - docs/resources.md
11
+ - resources/contracts/bootstrap.yml
12
+ - resources/installation/launcher/
13
+ - package/targets/runtime/
10
14
 
11
15
  agentSkills:
12
16
  - id: buildr
@@ -24,7 +28,7 @@ capabilityContracts:
24
28
  - id: buildr.git-operations
25
29
  version: 1
26
30
  description: 为已选定的单次 Git Operation 提供授权、安全边界、前后 identity 与最小结果。
27
- path: package/targets/workspace/skills/contracts/buildr/git-operations/v1.md
31
+ path: resources/workspace/skills/contracts/buildr/git-operations/v1.md
28
32
  target: skills/contracts/buildr/git-operations/v1.md
29
33
  replaces:
30
34
  - id: buildr.git-single-operation
@@ -48,7 +52,7 @@ capabilityContracts:
48
52
  - id: buildr.task-environment
49
53
  version: 1
50
54
  description: 管理正式 Task 的实际执行环境和唯一 Environment Receipt。
51
- path: package/targets/workspace/skills/contracts/buildr/task-environment/v1.md
55
+ path: resources/workspace/skills/contracts/buildr/task-environment/v1.md
52
56
  target: skills/contracts/buildr/task-environment/v1.md
53
57
  replaces:
54
58
  - id: buildr.task-worktree-lifecycle
@@ -66,12 +70,12 @@ capabilityContracts:
66
70
  - id: buildr.git-worktree-provider
67
71
  version: 1
68
72
  description: 管理 Task 的 Git worktree 并返回窄 Git provider evidence。
69
- path: package/targets/workspace/skills/contracts/buildr/git-worktree-provider/v1.md
73
+ path: resources/workspace/skills/contracts/buildr/git-worktree-provider/v1.md
70
74
  target: skills/contracts/buildr/git-worktree-provider/v1.md
71
75
  - id: buildr.task-record
72
76
  version: 2
73
77
  description: 管理 canonical Workspace 中待办与正式 Task 的最小顶层记录及复盘来源。
74
- path: package/targets/workspace/skills/contracts/buildr/task-record/v2.md
78
+ path: resources/workspace/skills/contracts/buildr/task-record/v2.md
75
79
  target: skills/contracts/buildr/task-record/v2.md
76
80
  replaces:
77
81
  - id: buildr.task-record
@@ -83,12 +87,12 @@ capabilityContracts:
83
87
  - id: buildr.task-review
84
88
  version: 1
85
89
  description: 对正式 Task 的计划或完成候选执行语义审查并维护两个可选 current Result。
86
- path: package/targets/workspace/skills/contracts/buildr/task-review/v1.md
90
+ path: resources/workspace/skills/contracts/buildr/task-review/v1.md
87
91
  target: skills/contracts/buildr/task-review/v1.md
88
92
  - id: buildr.task-verification
89
93
  version: 3
90
94
  description: 执行 Project 已声明的验证能力,并维护 Task-scoped Workspace-local current Verification Result。
91
- path: package/targets/workspace/skills/contracts/buildr/task-verification/v3.md
95
+ path: resources/workspace/skills/contracts/buildr/task-verification/v3.md
92
96
  target: skills/contracts/buildr/task-verification/v3.md
93
97
  replaces:
94
98
  - id: buildr.task-verification
@@ -100,7 +104,7 @@ capabilityContracts:
100
104
  - id: buildr.task-development
101
105
  version: 2
102
106
  description: 从首个正式研发动作到 immutable Finish handoff,维护planning聚合事实、稳定 Content Target、verification policy、Task Candidate generation与推进决定。
103
- path: package/targets/workspace/skills/contracts/buildr/task-development/v2.md
107
+ path: resources/workspace/skills/contracts/buildr/task-development/v2.md
104
108
  target: skills/contracts/buildr/task-development/v2.md
105
109
  replaces:
106
110
  - id: buildr.task-development
@@ -112,12 +116,12 @@ capabilityContracts:
112
116
  - id: buildr.task-finish
113
117
  version: 1
114
118
  description: 消费 current Development handoff,在隔离 Delivery Carrier 上机械复用或进行 Delivery Adaptation、推进目标并清理 Environment。
115
- path: package/targets/workspace/skills/contracts/buildr/task-finish/v1.md
119
+ path: resources/workspace/skills/contracts/buildr/task-finish/v1.md
116
120
  target: skills/contracts/buildr/task-finish/v1.md
117
121
  - id: buildr.task-retrospective
118
122
  version: 2
119
123
  description: 按需复盘terminal Task,并把有效改进通过Task来源关系落地。
120
- path: package/targets/workspace/skills/contracts/buildr/task-retrospective/v2.md
124
+ path: resources/workspace/skills/contracts/buildr/task-retrospective/v2.md
121
125
  target: skills/contracts/buildr/task-retrospective/v2.md
122
126
  replaces:
123
127
  - id: buildr.task-retrospective
@@ -149,17 +153,17 @@ capabilityContracts:
149
153
  - id: buildr.terminology-governance
150
154
  version: 1
151
155
  description: 调查、对齐并维护 Project 与 Service 的 canonical terminology。
152
- path: package/targets/workspace/skills/contracts/buildr/terminology-governance/v1.md
156
+ path: resources/workspace/skills/contracts/buildr/terminology-governance/v1.md
153
157
  target: skills/contracts/buildr/terminology-governance/v1.md
154
158
  - id: buildr.current-knowledge-maintenance
155
159
  version: 1
156
160
  description: 按 Change 真实影响评估、收敛和检查 Brief 与 Project 当前认知。
157
- path: package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md
161
+ path: resources/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md
158
162
  target: skills/contracts/buildr/current-knowledge-maintenance/v1.md
159
163
  - id: buildr.current-knowledge-maintenance
160
164
  version: 2
161
165
  description: 按 Change 或已确认当前事实的真实影响评估、收敛、检查或独立维护 Project 当前认知。
162
- path: package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md
166
+ path: resources/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md
163
167
  target: skills/contracts/buildr/current-knowledge-maintenance/v2.md
164
168
  initialSkillBindings:
165
169
  - capability: buildr.git-operations
@@ -201,13 +205,13 @@ initialSkillBindings:
201
205
  builtins:
202
206
  rules:
203
207
  - id: buildr-core
204
- path: package/targets/workspace/rules/buildr/core.md
208
+ path: resources/workspace/rules/buildr/core.md
205
209
  target: rules/buildr/core.md
206
210
  description: Buildr workspace 基础契约;每次进入 workspace 都必须读取。
207
211
  required: true
208
212
  skills:
209
213
  - id: task-triage
210
- path: package/targets/workspace/skills/buildr/task-triage
214
+ path: resources/workspace/skills/buildr/task-triage
211
215
  target: skills/buildr/task-triage
212
216
  description: 用户提出修复、实现、重构、优化、文档/测试或契约语义调整,或询问任务应走代码修改、当前事实维护还是 OpenSpec Change 时使用。
213
217
  required: false
@@ -229,28 +233,28 @@ builtins:
229
233
  mode: optional
230
234
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
231
235
  - id: declaration-intake
232
- path: package/targets/workspace/skills/buildr/declaration-intake
236
+ path: resources/workspace/skills/buildr/declaration-intake
233
237
  target: skills/buildr/declaration-intake
234
238
  description: 用户要求初始化、刷新或审查 Project 的环境准备与任务验证声明,或 Project/Service 注册、首次 Task scope、Environment 缺口、Verification coverage gap、构建/依赖/测试入口变化触发声明检查时使用;只读发现 preparation.yml 与 verification.yml 候选,长期写入必须经用户确认并交给各声明 owner Skill。
235
239
  required: false
236
240
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
237
241
  - id: project-testing
238
- path: package/targets/workspace/skills/buildr/project-testing
242
+ path: resources/workspace/skills/buildr/project-testing
239
243
  target: skills/buildr/project-testing
240
244
  description: 用户要求为 Project 或 Service 设计、梳理或优化测试框架,划分 Static、Unit、Component、Integration、System 边界,区分测试成本、affected/full 范围与 Candidate/Release 验证目标,或实现功能后开发适量测试时使用;不用于执行正式 Task Verification、维护 verification.yml 或记录 Verification Result。
241
245
  required: false
242
246
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
243
247
  - id: task-manager
244
- path: package/targets/workspace/skills/buildr/task-manager
248
+ path: resources/workspace/skills/buildr/task-manager
245
249
  target: skills/buildr/task-manager
246
- description: 用户明确要求创建或查看待办/正式 Task Record、更新顶层事实或复盘来源、激活待办、设置 Parent、完成或放弃 Task,或按 Task ID 恢复记录时使用;不用于普通任务分流、Task Environment 或专业阶段动作。
250
+ description: 用户明确要求创建或查看待办/正式 Task Record、创建 Parent Task、更新顶层事实或复盘来源、激活待办、设置 Parent、完成或放弃 Task,或按 Task ID 恢复记录时使用;只管理Task Record,用户同时要求准备或拆分Parent时在active记录成功后自动交接task-development,不自行执行Environment或专业阶段动作。
247
251
  required: false
248
252
  provides:
249
253
  - capability: buildr.task-record
250
254
  version: 2
251
255
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
252
256
  - id: task-review
253
- path: package/targets/workspace/skills/buildr/task-review
257
+ path: resources/workspace/skills/buildr/task-review
254
258
  target: skills/buildr/task-review
255
259
  description: 用户要求审查正式 Task 的计划或完成候选、查看已有 Task Review Result,或实现任务在计划/完成节点需要形成轻量审查 evidence 时使用;不用于资产沉淀复盘、Task Verification 或通用代码 Review。
256
260
  required: false
@@ -259,19 +263,19 @@ builtins:
259
263
  version: 1
260
264
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
261
265
  - id: capability-adaptation
262
- path: package/targets/workspace/skills/buildr/capability-adaptation
266
+ path: resources/workspace/skills/buildr/capability-adaptation
263
267
  target: skills/buildr/capability-adaptation
264
268
  description: 用户要求采用内部流程、调整工作方式、修改默认 Skill 行为、创建或替换专业 Skill、卸载可能被编排的 Skill,或 Agent 准备改变 capability contract 及跨 Skill 协作边界时使用。
265
269
  required: false
266
270
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
267
- - id: ui-preview
268
- path: package/targets/workspace/skills/buildr/ui-preview
269
- target: skills/buildr/ui-preview
270
- description: 用户已明确确认需要在正式前端开发前查看本次提案实施后的完整页面预演时使用;调查现有真实界面,生成并在浏览器验证一个或多个自包含 HTML。未明确确认时不得使用。
271
+ - id: ui-prototype
272
+ path: resources/workspace/skills/buildr/ui-prototype
273
+ target: skills/buildr/ui-prototype
274
+ description: 用户明确需要界面原型时使用;调查现有真实界面,生成并逐页验证一个或多个使用模拟数据与交互的自包含 HTML。已有原型且用户未明确忽略时,后续 Agent 默认按原型开发页面与交互。
271
275
  required: false
272
276
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
273
277
  - id: project-daily-progress
274
- path: package/targets/workspace/skills/buildr/project-daily-progress
278
+ path: resources/workspace/skills/buildr/project-daily-progress
275
279
  target: skills/buildr/project-daily-progress
276
280
  description: 用户要求展示、生成或重跑某 Project 的每日演进,或询问能否每天自动执行时使用;先同步最新代码,再收集当日 Git 提交与更改文件,由 Agent 总结四问后通过 CLI 写入本机文件。读取路径不扫描 Git、不写 Task Record、不提供产品 cron。
277
281
  required: false
@@ -281,7 +285,7 @@ builtins:
281
285
  mode: optional
282
286
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
283
287
  - id: task-retrospective
284
- path: package/targets/workspace/skills/buildr/task-retrospective
288
+ path: resources/workspace/skills/buildr/task-retrospective
285
289
  target: skills/buildr/task-retrospective
286
290
  description: 用户明确要求复盘已完成或已放弃的正式 Task,或要查看、处理、标记无需处理、重新打开已有复盘时使用;复盘重点检查 Agent 执行时间、token 消耗、重复尝试、人机协作或 Buildr workflow/harness 效率。不用于过程 observation、任务审查、门禁或资产自动写回。
287
291
  required: false
@@ -300,7 +304,7 @@ builtins:
300
304
  - sha256-e7224325aa5b2d183d9a152f336e4f24699e3fd10ea5505e08d90bd77f09f642
301
305
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
302
306
  - id: task-environment
303
- path: package/targets/workspace/skills/buildr/task-environment
307
+ path: resources/workspace/skills/buildr/task-environment
304
308
  target: skills/buildr/task-environment
305
309
  description: 正式 Task 需要准备、检查、恢复或清理实际执行环境,或按 Task ID 取得 Environment Receipt 的当前机器事实时使用;不用于任务分流、Task Record、验证结论或 Git 集成。
306
310
  required: false
@@ -309,7 +313,7 @@ builtins:
309
313
  version: 1
310
314
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
311
315
  - id: task-worktree
312
- path: package/targets/workspace/skills/buildr/task-worktree
316
+ path: resources/workspace/skills/buildr/task-worktree
313
317
  target: skills/buildr/task-worktree
314
318
  description: 用户明确要求创建、检查或清理 Task 的 Git worktree 与本地任务分支,或 Task Environment 需要 Git checkout provider 时使用;不负责环境 ready、恢复、Runtime、资源或总 cleanup。
315
319
  required: false
@@ -321,7 +325,7 @@ builtins:
321
325
  - sha256-7c792606db5d07e9364feb4be20755e184fb83291e4ae83a9cbb4884cf731b6d
322
326
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
323
327
  - id: task-verification
324
- path: package/targets/workspace/skills/buildr/task-verification
328
+ path: resources/workspace/skills/buildr/task-verification
325
329
  target: skills/buildr/task-verification
326
330
  description: 用户要求运行已有测试、验证改动、查看 current 验证结果、报告验证耗时、经 Declaration Intake 授权后维护 Project 验证能力声明,或者 Task Development 对稳定 Content Target 到达正式验证节点时使用;不用于设计测试框架、开发测试、生成 Candidate 或 Finish;声明发现交给 Declaration Intake。
327
331
  required: false
@@ -330,9 +334,9 @@ builtins:
330
334
  version: 3
331
335
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
332
336
  - id: task-development
333
- path: package/targets/workspace/skills/buildr/task-development
337
+ path: resources/workspace/skills/buildr/task-development
334
338
  target: skills/buildr/task-development
335
- description: 正式实现任务从 proposal、design 或直接实现等首个正式研发动作开始,持续维护研发聚合事实、稳定 Content Target、形成 verification policy、编排正式 Verification、冻结 Task Candidate、记录适用门禁与风险决定并生成 Finish handoff 时使用;不用于 Task Record、Environment、测试开发或交付执行。
339
+ description: 正式Task从首个proposal、方案或直接实现等研发动作开始,到稳定Content Target、正式Verification、Task Candidate、Completion Review、风险决定与Finish handoff的全过程使用;用户创建或准备Parent时还负责从active Task Record持续准备到可选择首个Child;不用于Task Record、专业内容写入、测试开发或交付执行。
336
340
  required: false
337
341
  provides:
338
342
  - capability: buildr.task-development
@@ -355,9 +359,9 @@ builtins:
355
359
  mode: required
356
360
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
357
361
  - id: task-finish
358
- path: package/targets/workspace/skills/buildr/task-finish
362
+ path: resources/workspace/skills/buildr/task-finish
359
363
  target: skills/buildr/task-finish
360
- description: 用户要求已有 active formal Task 的“收尾”或交付 current formal Development handoff 时使用;在隔离交付载体(Delivery Carrier)上机械复用或进行交付适配(Delivery Adaptation)、推进 retained target 并清理 Environment,只有 Development applicability stale 才返回 Task Development。
364
+ description: 用户要求已有正式任务(formal Task)“收尾”或交付当前研发交接(Development handoff)时使用;由智能体(Agent)选择直接 Git/PR、Buildr 自动 Finish 或交付对账(delivery reconciliation),并独立处理激活、环境清理和诊断。
361
365
  required: false
362
366
  provides:
363
367
  - capability: buildr.task-finish
@@ -379,7 +383,7 @@ builtins:
379
383
  - sha256-47d716eff00cc7b20a0ff42d81b6140c7c1bb30ea9591204303bc192c48d3e4d
380
384
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
381
385
  - id: terminology-governance
382
- path: package/targets/workspace/skills/buildr/terminology-governance
386
+ path: resources/workspace/skills/buildr/terminology-governance
383
387
  target: skills/buildr/terminology-governance
384
388
  description: Agent 在探索、提案、设计、实现或文档整理中遇到新术语、同义词、一词多义、中英不一致、Context/Context Window 等概念边界,或 consumer 需要正式术语对齐 evidence 时使用。
385
389
  required: false
@@ -388,7 +392,7 @@ builtins:
388
392
  version: 1
389
393
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
390
394
  - id: current-knowledge-maintenance
391
- path: package/targets/workspace/skills/buildr/current-knowledge-maintenance
395
+ path: resources/workspace/skills/buildr/current-knowledge-maintenance
392
396
  target: skills/buildr/current-knowledge-maintenance
393
397
  description: OpenSpec Change lifecycle 中评估、收敛或检查当前认知,或者没有 Change 但需要让 Project 当前认知追上已确认事实时使用。
394
398
  required: false
@@ -403,9 +407,9 @@ builtins:
403
407
  mode: required
404
408
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
405
409
  - id: git-operations
406
- path: package/targets/workspace/skills/buildr/git-operations
410
+ path: resources/workspace/skills/buildr/git-operations
407
411
  target: skills/buildr/git-operations
408
- description: 用户或上游 consumer 已明确选择 repository、Git Operation 与相关 ref,或 Workspace 没有 active Task 且用户要求“收尾”完成当前 Git 交付时使用;需要执行 fetch、commit、push、commit+push、rebase 或检查该动作的授权、安全边界和结果 evidence;不用于选择操作、编排 Task Finish 或扩展完整 Git 命令集。
412
+ description: 用户或上游智能体(Agent)已明确选择仓库(repository)、Git 操作(Git Operation)与相关引用(ref)时使用,包括无活跃任务(active Task)的直接 Git 收尾和正式任务(formal Task)的直接交付;执行 fetch、commit、push、commit+push、rebase,或检查授权、安全边界和结果证据(result evidence);不替 Agent 选择策略,也不扩展完整 Git 命令集。
409
413
  required: false
410
414
  provides:
411
415
  - capability: buildr.git-operations
@@ -419,49 +423,49 @@ builtins:
419
423
  - sha256-badf69cfc2f7983fdbd2c681f7418a542d5538bfab283dfe8da927bfdfdd96c8
420
424
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
421
425
  - id: openspec-explore
422
- path: package/targets/workspace/skills/openspec/openspec-explore
426
+ path: resources/workspace/skills/openspec/openspec-explore
423
427
  target: skills/openspec/openspec-explore
424
428
  description: 探索想法、调查问题或澄清需求时使用;只思考和梳理,不实现代码。
425
429
  required: false
426
430
  component: openspec
427
431
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
428
432
  - id: openspec-propose
429
- path: package/targets/workspace/skills/openspec/openspec-propose
433
+ path: resources/workspace/skills/openspec/openspec-propose
430
434
  target: skills/openspec/openspec-propose
431
435
  description: 用户要快速创建完整 OpenSpec change 提案、设计、规格和任务时使用。
432
436
  required: false
433
437
  component: openspec
434
438
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
435
439
  - id: openspec-update-change
436
- path: package/targets/workspace/skills/openspec/openspec-update-change
440
+ path: resources/workspace/skills/openspec/openspec-update-change
437
441
  target: skills/openspec/openspec-update-change
438
442
  description: 用户要修订既有 OpenSpec change 的 proposal、design、specs 或 tasks,且不进入代码实现时使用。
439
443
  required: false
440
444
  component: openspec
441
445
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
442
446
  - id: openspec-apply-change
443
- path: package/targets/workspace/skills/openspec/openspec-apply-change
447
+ path: resources/workspace/skills/openspec/openspec-apply-change
444
448
  target: skills/openspec/openspec-apply-change
445
449
  description: 用户要开始或继续实现某个 OpenSpec change 的任务时使用。
446
450
  required: false
447
451
  component: openspec
448
452
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
449
453
  - id: openspec-sync-specs
450
- path: package/targets/workspace/skills/openspec/openspec-sync-specs
454
+ path: resources/workspace/skills/openspec/openspec-sync-specs
451
455
  target: skills/openspec/openspec-sync-specs
452
456
  description: 用户要把 change 中的 delta specs 同步到主 specs,但不归档 change 时使用。
453
457
  required: false
454
458
  component: openspec
455
459
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
456
460
  - id: openspec-archive-change
457
- path: package/targets/workspace/skills/openspec/openspec-archive-change
461
+ path: resources/workspace/skills/openspec/openspec-archive-change
458
462
  target: skills/openspec/openspec-archive-change
459
463
  description: 用户明确要归档已完成 OpenSpec change 时使用。
460
464
  required: false
461
465
  component: openspec
462
466
  runtimes: ["claude-code","codex","cursor","qoder","trae","trae-work","workbuddy"]
463
467
  - id: openspec-contract-guard
464
- path: package/targets/workspace/skills/buildr/openspec-contract-guard
468
+ path: resources/workspace/skills/buildr/openspec-contract-guard
465
469
  target: skills/buildr/openspec-contract-guard
466
470
  description: 创建、收敛或归档OpenSpec Change,且需要检查active Change冲突、隔离验证、canonical并发漂移或未决事务恢复事实时使用。
467
471
  required: false
@@ -471,7 +475,7 @@ builtins:
471
475
 
472
476
  components:
473
477
  - id: openspec
474
- path: package/targets/workspace/components/buildr/openspec/component.yml
478
+ path: resources/workspace/components/buildr/openspec/component.yml
475
479
  defaultEnabled: true
476
480
  required: false
477
481
 
@@ -483,50 +487,50 @@ workspaceDirectories:
483
487
  - skills
484
488
 
485
489
  workspaceFiles:
486
- - package/targets/workspace/AGENTS.md => AGENTS.md render
487
- - package/targets/workspace/gitattributes => .gitattributes copy
488
- - package/targets/workspace/gitignore => .gitignore copy
489
- - package/targets/workspace/rules/buildr/core.md => rules/buildr/core.md copy
490
- - package/targets/workspace/skills/contracts/buildr/git-operations/v1.md => skills/contracts/buildr/git-operations/v1.md copy
491
- - package/targets/workspace/skills/contracts/buildr/task-environment/v1.md => skills/contracts/buildr/task-environment/v1.md copy
492
- - package/targets/workspace/skills/contracts/buildr/git-worktree-provider/v1.md => skills/contracts/buildr/git-worktree-provider/v1.md copy
493
- - package/targets/workspace/skills/contracts/buildr/task-record/v2.md => skills/contracts/buildr/task-record/v2.md copy
494
- - package/targets/workspace/skills/contracts/buildr/task-review/v1.md => skills/contracts/buildr/task-review/v1.md copy
495
- - package/targets/workspace/skills/contracts/buildr/task-verification/v3.md => skills/contracts/buildr/task-verification/v3.md copy
496
- - package/targets/workspace/skills/contracts/buildr/task-development/v2.md => skills/contracts/buildr/task-development/v2.md copy
497
- - package/targets/workspace/skills/contracts/buildr/task-finish/v1.md => skills/contracts/buildr/task-finish/v1.md copy
498
- - package/targets/workspace/skills/contracts/buildr/task-retrospective/v2.md => skills/contracts/buildr/task-retrospective/v2.md copy
499
- - package/targets/workspace/skills/contracts/buildr/terminology-governance/v1.md => skills/contracts/buildr/terminology-governance/v1.md copy
500
- - package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md => skills/contracts/buildr/current-knowledge-maintenance/v1.md copy
501
- - package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md => skills/contracts/buildr/current-knowledge-maintenance/v2.md copy
502
- - package/targets/workspace/skills/buildr/task-triage/SKILL.md => skills/buildr/task-triage/SKILL.md copy
503
- - package/targets/workspace/skills/buildr/declaration-intake/SKILL.md => skills/buildr/declaration-intake/SKILL.md copy
504
- - package/targets/workspace/skills/buildr/project-testing/SKILL.md => skills/buildr/project-testing/SKILL.md copy
505
- - package/targets/workspace/skills/buildr/project-testing/references/testing-model-v1.md => skills/buildr/project-testing/references/testing-model-v1.md copy
506
- - package/targets/workspace/skills/buildr/task-manager/SKILL.md => skills/buildr/task-manager/SKILL.md copy
507
- - package/targets/workspace/skills/buildr/task-manager/agents/openai.yaml => skills/buildr/task-manager/agents/openai.yaml copy
508
- - package/targets/workspace/skills/buildr/task-review/SKILL.md => skills/buildr/task-review/SKILL.md copy
509
- - package/targets/workspace/skills/buildr/task-review/agents/openai.yaml => skills/buildr/task-review/agents/openai.yaml copy
510
- - package/targets/workspace/skills/buildr/capability-adaptation/SKILL.md => skills/buildr/capability-adaptation/SKILL.md copy
511
- - package/targets/workspace/skills/buildr/capability-adaptation/agents/openai.yaml => skills/buildr/capability-adaptation/agents/openai.yaml copy
512
- - package/targets/workspace/skills/buildr/ui-preview/SKILL.md => skills/buildr/ui-preview/SKILL.md copy
513
- - package/targets/workspace/skills/buildr/project-daily-progress/SKILL.md => skills/buildr/project-daily-progress/SKILL.md copy
514
- - package/targets/workspace/skills/buildr/task-retrospective/SKILL.md => skills/buildr/task-retrospective/SKILL.md copy
515
- - package/targets/workspace/skills/buildr/task-retrospective/agents/openai.yaml => skills/buildr/task-retrospective/agents/openai.yaml copy
516
- - package/targets/workspace/skills/buildr/task-environment/SKILL.md => skills/buildr/task-environment/SKILL.md copy
517
- - package/targets/workspace/skills/buildr/task-environment/agents/openai.yaml => skills/buildr/task-environment/agents/openai.yaml copy
518
- - package/targets/workspace/skills/buildr/task-environment/references/project-environment-preparation-v1.md => skills/buildr/task-environment/references/project-environment-preparation-v1.md copy
519
- - package/targets/workspace/skills/buildr/task-environment/templates/project-preparation.yml => skills/buildr/task-environment/templates/project-preparation.yml copy
520
- - package/targets/workspace/skills/buildr/task-environment/templates/task-environment-plan-request.json => skills/buildr/task-environment/templates/task-environment-plan-request.json copy
521
- - package/targets/workspace/skills/buildr/task-worktree/SKILL.md => skills/buildr/task-worktree/SKILL.md copy
522
- - package/targets/workspace/skills/buildr/task-verification/SKILL.md => skills/buildr/task-verification/SKILL.md copy
523
- - package/targets/workspace/skills/buildr/task-verification/references/project-verification-v2.md => skills/buildr/task-verification/references/project-verification-v2.md copy
524
- - package/targets/workspace/skills/buildr/task-verification/templates/project-verification.yml => skills/buildr/task-verification/templates/project-verification.yml copy
525
- - package/targets/workspace/skills/buildr/task-development/SKILL.md => skills/buildr/task-development/SKILL.md copy
526
- - package/targets/workspace/skills/buildr/task-finish/SKILL.md => skills/buildr/task-finish/SKILL.md copy
527
- - package/targets/workspace/skills/buildr/terminology-governance/SKILL.md => skills/buildr/terminology-governance/SKILL.md copy
528
- - package/targets/workspace/skills/buildr/current-knowledge-maintenance/SKILL.md => skills/buildr/current-knowledge-maintenance/SKILL.md copy
529
- - package/targets/workspace/skills/buildr/git-operations/SKILL.md => skills/buildr/git-operations/SKILL.md copy
490
+ - resources/workspace/AGENTS.md => AGENTS.md render
491
+ - resources/workspace/gitattributes => .gitattributes copy
492
+ - resources/workspace/gitignore => .gitignore copy
493
+ - resources/workspace/rules/buildr/core.md => rules/buildr/core.md copy
494
+ - resources/workspace/skills/contracts/buildr/git-operations/v1.md => skills/contracts/buildr/git-operations/v1.md copy
495
+ - resources/workspace/skills/contracts/buildr/task-environment/v1.md => skills/contracts/buildr/task-environment/v1.md copy
496
+ - resources/workspace/skills/contracts/buildr/git-worktree-provider/v1.md => skills/contracts/buildr/git-worktree-provider/v1.md copy
497
+ - resources/workspace/skills/contracts/buildr/task-record/v2.md => skills/contracts/buildr/task-record/v2.md copy
498
+ - resources/workspace/skills/contracts/buildr/task-review/v1.md => skills/contracts/buildr/task-review/v1.md copy
499
+ - resources/workspace/skills/contracts/buildr/task-verification/v3.md => skills/contracts/buildr/task-verification/v3.md copy
500
+ - resources/workspace/skills/contracts/buildr/task-development/v2.md => skills/contracts/buildr/task-development/v2.md copy
501
+ - resources/workspace/skills/contracts/buildr/task-finish/v1.md => skills/contracts/buildr/task-finish/v1.md copy
502
+ - resources/workspace/skills/contracts/buildr/task-retrospective/v2.md => skills/contracts/buildr/task-retrospective/v2.md copy
503
+ - resources/workspace/skills/contracts/buildr/terminology-governance/v1.md => skills/contracts/buildr/terminology-governance/v1.md copy
504
+ - resources/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md => skills/contracts/buildr/current-knowledge-maintenance/v1.md copy
505
+ - resources/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md => skills/contracts/buildr/current-knowledge-maintenance/v2.md copy
506
+ - resources/workspace/skills/buildr/task-triage/SKILL.md => skills/buildr/task-triage/SKILL.md copy
507
+ - resources/workspace/skills/buildr/declaration-intake/SKILL.md => skills/buildr/declaration-intake/SKILL.md copy
508
+ - resources/workspace/skills/buildr/project-testing/SKILL.md => skills/buildr/project-testing/SKILL.md copy
509
+ - resources/workspace/skills/buildr/project-testing/references/testing-model-v1.md => skills/buildr/project-testing/references/testing-model-v1.md copy
510
+ - resources/workspace/skills/buildr/task-manager/SKILL.md => skills/buildr/task-manager/SKILL.md copy
511
+ - resources/workspace/skills/buildr/task-manager/agents/openai.yaml => skills/buildr/task-manager/agents/openai.yaml copy
512
+ - resources/workspace/skills/buildr/task-review/SKILL.md => skills/buildr/task-review/SKILL.md copy
513
+ - resources/workspace/skills/buildr/task-review/agents/openai.yaml => skills/buildr/task-review/agents/openai.yaml copy
514
+ - resources/workspace/skills/buildr/capability-adaptation/SKILL.md => skills/buildr/capability-adaptation/SKILL.md copy
515
+ - resources/workspace/skills/buildr/capability-adaptation/agents/openai.yaml => skills/buildr/capability-adaptation/agents/openai.yaml copy
516
+ - resources/workspace/skills/buildr/ui-prototype/SKILL.md => skills/buildr/ui-prototype/SKILL.md copy
517
+ - resources/workspace/skills/buildr/project-daily-progress/SKILL.md => skills/buildr/project-daily-progress/SKILL.md copy
518
+ - resources/workspace/skills/buildr/task-retrospective/SKILL.md => skills/buildr/task-retrospective/SKILL.md copy
519
+ - resources/workspace/skills/buildr/task-retrospective/agents/openai.yaml => skills/buildr/task-retrospective/agents/openai.yaml copy
520
+ - resources/workspace/skills/buildr/task-environment/SKILL.md => skills/buildr/task-environment/SKILL.md copy
521
+ - resources/workspace/skills/buildr/task-environment/agents/openai.yaml => skills/buildr/task-environment/agents/openai.yaml copy
522
+ - resources/workspace/skills/buildr/task-environment/references/project-environment-preparation-v1.md => skills/buildr/task-environment/references/project-environment-preparation-v1.md copy
523
+ - resources/workspace/skills/buildr/task-environment/templates/project-preparation.yml => skills/buildr/task-environment/templates/project-preparation.yml copy
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
+ - resources/workspace/skills/buildr/task-worktree/SKILL.md => skills/buildr/task-worktree/SKILL.md copy
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
528
+ - resources/workspace/skills/buildr/task-verification/templates/project-verification.yml => skills/buildr/task-verification/templates/project-verification.yml copy
529
+ - resources/workspace/skills/buildr/task-development/SKILL.md => skills/buildr/task-development/SKILL.md copy
530
+ - resources/workspace/skills/buildr/task-finish/SKILL.md => skills/buildr/task-finish/SKILL.md copy
531
+ - resources/workspace/skills/buildr/terminology-governance/SKILL.md => skills/buildr/terminology-governance/SKILL.md copy
532
+ - resources/workspace/skills/buildr/current-knowledge-maintenance/SKILL.md => skills/buildr/current-knowledge-maintenance/SKILL.md copy
533
+ - resources/workspace/skills/buildr/git-operations/SKILL.md => skills/buildr/git-operations/SKILL.md copy
530
534
 
531
535
  projectDirectories:
532
536
  - openspec/specs
@@ -535,7 +539,7 @@ projectDirectories:
535
539
  - services
536
540
 
537
541
  projectFiles:
538
- - package/targets/workspace/projects/AGENTS.project.md => AGENTS.md render
542
+ - resources/workspace/projects/AGENTS.project.md => AGENTS.md render
539
543
 
540
544
  templateVariables:
541
545
  - project
@@ -0,0 +1,9 @@
1
+ # AGENTS.md
2
+
3
+ <!-- buildr:required begin -->
4
+ 请读取并遵循 [Buildr Core](rules/buildr/core.md)。
5
+ <!-- buildr:required end -->
6
+
7
+ ## Git 提交信息
8
+
9
+ 没有更具体的 Project、Service 或 repository 约定时,Git 提交信息默认使用中文。提交采用 Conventional Commits 格式;`type`、`scope`、代码标识、路径和专有名词可保留英文。更具体作用域的约定优先于本默认规则。
@@ -72,8 +72,8 @@ integrity:
72
72
  - skills/buildr/openspec-contract-guard=sha256-6adafed5de751960495114d73212909449b4dc0a93b1a9541c33dc8aad2660c6
73
73
  - commands/buildr/openspec/manifest.yml=sha256-beb4526c7109ada72b34394e8ce6fe7823cbd4ff695e376da9709e87439fe1b9
74
74
  - components/buildr/openspec/contributions/openspec-explore-terminology.md=sha256-e9c0e2382be125b68f250479f546ba49c25bf892b8ea6442196cd70cb53e106b
75
- - components/buildr/openspec/contributions/openspec-propose-sidebar.md=sha256-7a94c40a3a01d55b8e98048411d59e0ba9bbcc30330cf648a0de2e2732f3d832
76
- - components/buildr/openspec/contributions/openspec-update-sidebar.md=sha256-329705d2e01be6c9eb41e3d32e6e2c492120b06ed808546c9fae9f3bd88b3f7d
77
- - components/buildr/openspec/contributions/openspec-apply-sidebar.md=sha256-03f303c0758db8cab6e71b8829b3afd9c99e8d411e66b4c2b402345f743dada1
75
+ - components/buildr/openspec/contributions/openspec-propose-sidebar.md=sha256-0779b1bacce5560bfe02d03ececf2ca538022e5c39b62cf919bc9beb40da99a0
76
+ - components/buildr/openspec/contributions/openspec-update-sidebar.md=sha256-57fe1c271af06ed03d018b8410e4a3603a8ced7e45e087b20c791c5153d1a1f7
77
+ - components/buildr/openspec/contributions/openspec-apply-sidebar.md=sha256-3fc6caa185531d84b4990393fbd13117eb7196fd0c76541125f6ea75394a9754
78
78
  - components/buildr/openspec/contributions/openspec-sync-converge.md=sha256-bbbb0737004a5cc0fb05f4cee683905c36ca9105dd44ada8a229b73b76fb06ab
79
79
  - components/buildr/openspec/contributions/openspec-archive-converge.md=sha256-32d116ad123813db224acb7b3a6fa9335153f01fd7a2d80ade3b9e4efc3ee98a
@@ -2,7 +2,7 @@
2
2
 
3
3
  应用 change 前先向用户说明正在使用 OpenSpec、`apply` action、change id 及其选择或推断来源。OpenSpec status 解析上下文后,在编辑前报告实际 `changeRoot`;正式实现任务同时报告 Task ID 与 Task Environment 的实际工作根。
4
4
 
5
- 若 current proposal、design 或 delta specs 表明会产生用户可见前端 UI 变化,确认用户是否需要界面预演稿(UI Preview)。只有当前任务已有明确确认,才在正式前端实现编辑前加载独立 `ui-preview` Skill完成真实 UI 调查、完整页面生成和浏览器验证;用户拒绝、未确认或要求继续时不生成并直接继续 apply。UI Preview 不构成 Planning Review、Implementation、Verification、Convergence 或 Finish gate。
5
+ 若 current proposal、design 或 delta specs 表明会产生用户可见前端 UI 变化,确认用户是否需要界面原型(UI Prototype)。只有当前任务已有明确确认,才在正式前端实现编辑前加载 selected `ui-prototype` Skill完成真实 UI 调查、一个或多个完整页面生成和逐页浏览器验证;用户拒绝、未确认或要求继续时不生成并直接继续 apply。当前 Task 已有原型且用户未明确要求忽略时,任何正式前端编辑前必须读取全部相关原型,并按其信息架构、布局和交互开发;需要成为正式行为的选择写入 design、delta specs、Brief 与 tasks。UI Prototype 与忽略选择不构成 Planning Review、Implementation、Verification、Convergence 或 Finish gate。
6
6
 
7
7
  任何实现编辑前,确认 apply-required artifacts 已完成并运行上游 `openspec validate <change> --strict`,再从matching Environment Receipt取得`execution.workdir`并运行`buildr openspec convergence preflight <change> --project <project> --target <task-execution-root> --json`。Preflight `blocked`时在Planning Review前停止,由Agent按active Change conflict、Scenario omission、rename/identity conflict、projected validation或其他semantic diagnostic处理依赖、修订artifact或请求用户决定,再重跑strict与preflight;不得自动补回Scenario、选择rename、修改canonical或把blocker写入Review Result代替处理。
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  创建 change 前先向用户说明正在使用 OpenSpec、`propose` action 和预定 change id,不得静默创建。OpenSpec status 解析上下文后,在写 artifacts 前报告实际 `changeRoot`,不得猜测路径。
4
4
 
5
- 若用户目标或本次 planning artifacts 可能产生用户可见前端 UI 变化,确认用户是否需要界面预演稿(UI Preview)。只有当前任务已有明确确认,才在 proposal/design/spec 已提供足够上下文后、正式前端实现前加载独立 `ui-preview` Skill;用户拒绝、未确认或要求继续时不生成并继续 OpenSpec 流程。不得把预演稿变成 planning node、Review gate、waiver、Result 或 blocker。
5
+ 若用户目标或本次 planning artifacts 可能产生用户可见前端 UI 变化,确认用户是否需要界面原型(UI Prototype)。只有当前任务已有明确确认,才在 proposal/design/spec 已提供足够上下文后、正式前端实现前加载 selected `ui-prototype` Skill;用户拒绝、未确认或要求继续时不生成并继续 OpenSpec 流程。当前 Task 已有原型且用户未明确要求忽略时,后续 apply 必须读取全部相关原型并按其信息架构、布局和交互开发,同时把正式行为写入对应 artifacts。不得把原型变成 planning node、Review gate、waiver、Result 或 blocker。
6
6
 
7
7
  在执行 `openspec new change` 或写入任何 change artifacts 前,先取得正式 Task Record,并判断任务执行形态:
8
8