@buildr-ai/buildr 0.1.0-rc.6 → 0.1.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -8
- package/bin/buildr.mjs +10 -0
- package/docs/agent-runtime-adapters.md +11 -4
- package/docs/cli-architecture.md +81 -40
- package/docs/cli-reference.md +61 -12
- package/docs/known-limitations.md +9 -5
- package/docs/skill-capability-contracts.md +56 -54
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +118 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/package/README.md +29 -20
- package/package/bootstrap/contract.yml +23 -14
- package/package/bootstrap/guide.md +5 -6
- package/package/launchers/assets/Buildr.icns +0 -0
- package/package/launchers/assets/Buildr.ico +0 -0
- package/package/launchers/assets/buildr-icon.png +0 -0
- package/package/launchers/build.mjs +215 -0
- package/package/launchers/manage.mjs +173 -0
- package/package/manifest.yml +337 -85
- package/package/targets/runtime/skills/buildr/SKILL.md +31 -32
- package/package/targets/workspace/.buildr/workspace.yml +6 -2
- package/package/targets/workspace/commands/buildr/openspec/manifest.yml +2 -2
- package/package/targets/workspace/components/buildr/openspec/component.yml +55 -6
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md +13 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-archive-converge.md +5 -0
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-explore-terminology.md +5 -0
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md +16 -0
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-sync-converge.md +5 -0
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-update-sidebar.md +11 -0
- package/package/targets/workspace/gitattributes +1 -0
- package/package/targets/workspace/gitignore +12 -0
- package/package/targets/workspace/projects/manifest.yml +1 -1
- package/package/targets/workspace/projects/services/manifest.yml +2 -2
- package/package/targets/workspace/rules/buildr/core.md +1 -2
- package/package/targets/workspace/skills/buildr/current-knowledge-maintenance/SKILL.md +103 -0
- package/package/targets/workspace/skills/buildr/declaration-intake/SKILL.md +65 -0
- package/package/targets/workspace/skills/buildr/git-operations/SKILL.md +100 -0
- package/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md +28 -39
- package/package/targets/workspace/skills/buildr/project-testing/SKILL.md +82 -0
- package/package/targets/workspace/skills/buildr/project-testing/references/testing-model-v1.md +116 -0
- package/package/targets/workspace/skills/buildr/task-development/SKILL.md +78 -0
- package/package/targets/workspace/skills/buildr/task-environment/SKILL.md +41 -0
- package/package/targets/workspace/skills/buildr/task-environment/agents/openai.yaml +4 -0
- package/package/targets/workspace/skills/buildr/task-environment/references/project-environment-preparation-v1.md +14 -0
- package/package/targets/workspace/skills/buildr/task-environment/templates/project-preparation.yml +20 -0
- package/package/targets/workspace/skills/buildr/task-environment/templates/task-environment-plan-request.json +17 -0
- package/package/targets/workspace/skills/buildr/task-finish/SKILL.md +52 -101
- package/package/targets/workspace/skills/buildr/task-manager/SKILL.md +47 -0
- package/package/targets/workspace/skills/buildr/task-manager/agents/openai.yaml +4 -0
- package/package/targets/workspace/skills/buildr/task-retrospective/SKILL.md +91 -0
- package/package/targets/workspace/skills/buildr/task-retrospective/agents/openai.yaml +4 -0
- package/package/targets/workspace/skills/buildr/task-review/SKILL.md +57 -0
- package/package/targets/workspace/skills/buildr/task-review/agents/openai.yaml +4 -0
- package/package/targets/workspace/skills/buildr/task-triage/SKILL.md +71 -100
- package/package/targets/workspace/skills/buildr/task-verification/SKILL.md +83 -85
- package/package/targets/workspace/skills/buildr/task-verification/references/project-verification-v2.md +51 -0
- package/package/targets/workspace/skills/buildr/task-verification/templates/project-verification.yml +16 -0
- package/package/targets/workspace/skills/buildr/task-worktree/SKILL.md +14 -93
- package/package/targets/workspace/skills/buildr/terminology-governance/SKILL.md +60 -0
- package/package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md +36 -0
- package/package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md +45 -0
- package/package/targets/workspace/skills/contracts/buildr/git-operations/v1.md +39 -0
- package/package/targets/workspace/skills/contracts/buildr/git-worktree-provider/v1.md +35 -0
- package/package/targets/workspace/skills/contracts/buildr/task-development/v2.md +58 -0
- package/package/targets/workspace/skills/contracts/buildr/task-environment/v1.md +37 -0
- package/package/targets/workspace/skills/contracts/buildr/task-finish/v1.md +27 -8
- package/package/targets/workspace/skills/contracts/buildr/task-record/v2.md +35 -0
- package/package/targets/workspace/skills/contracts/buildr/task-retrospective/v2.md +39 -0
- package/package/targets/workspace/skills/contracts/buildr/task-review/v1.md +37 -0
- package/package/targets/workspace/skills/contracts/buildr/task-verification/v3.md +60 -0
- package/package/targets/workspace/skills/contracts/buildr/terminology-governance/v1.md +36 -0
- package/package/targets/workspace/skills/manifest.yml +229 -64
- package/package/targets/workspace/skills/openspec/openspec-apply-change/SKILL.md +4 -3
- package/package/targets/workspace/skills/openspec/openspec-archive-change/SKILL.md +4 -3
- package/package/targets/workspace/skills/openspec/openspec-explore/SKILL.md +4 -1
- package/package/targets/workspace/skills/openspec/openspec-propose/SKILL.md +4 -1
- package/package/targets/workspace/skills/openspec/openspec-sync-specs/SKILL.md +4 -3
- package/package/targets/workspace/skills/openspec/openspec-update-change/SKILL.md +86 -0
- package/package.json +42 -32
- package/src/application/change/change-application.mjs +315 -0
- package/{tools/cli → src}/application/cli-update.mjs +21 -9
- package/src/application/compose-runtime.mjs +112 -0
- package/src/application/declaration-intake/declaration-intake-trigger.mjs +23 -0
- package/{tools/cli → src}/application/doctor/capability-diagnostics.mjs +1 -1
- package/src/application/doctor/project-environment-preparation-diagnostics.mjs +52 -0
- package/src/application/doctor/project-verification-diagnostics.mjs +195 -0
- package/{tools/cli → src}/application/doctor/runtime-diagnostics.mjs +14 -1
- package/{tools/cli → src}/application/doctor/scope-diagnostics.mjs +67 -28
- package/{tools/cli → src}/application/doctor/service-diagnostics.mjs +27 -1
- package/{tools/cli → src}/application/doctor.mjs +20 -8
- package/{tools/cli → src/application}/domains/commands.mjs +61 -28
- package/{tools/cli → src/application}/domains/components.mjs +109 -41
- package/src/application/domains/openspec.mjs +384 -0
- package/{tools/cli → src/application}/domains/package-assets.mjs +83 -41
- package/{tools/cli → src/application}/domains/rules.mjs +3 -1
- package/{tools/cli → src/application}/domains/runtime.mjs +7 -8
- package/{tools/cli → src/application}/domains/skills.mjs +11 -176
- package/{tools/cli → src/application}/domains/workspace.mjs +135 -54
- package/src/application/json-contracts.mjs +46 -0
- package/src/application/openspec/canonical-applier.mjs +51 -0
- package/src/application/openspec/change-checklist.mjs +23 -0
- package/src/application/openspec/convergence-model.mjs +114 -0
- package/src/application/openspec/convergence-observer.mjs +23 -0
- package/src/application/openspec/convergence-planner.mjs +110 -0
- package/src/application/openspec/convergence-recovery.mjs +144 -0
- package/src/application/openspec/delta-parser.mjs +44 -0
- package/src/application/openspec/deterministic-sync.mjs +181 -0
- package/src/application/openspec/openspec-converge.mjs +309 -0
- package/src/application/openspec/projected-validator.mjs +84 -0
- package/{tools/cli → src}/application/package-maintenance/builtin-lifecycle.mjs +10 -10
- package/src/application/package-maintenance/builtin-retirement.mjs +50 -0
- package/src/application/package-maintenance/capability-retirement.mjs +53 -0
- package/{tools/cli → src}/application/package-maintenance/output.mjs +1 -1
- package/{tools/cli → src}/application/package-maintenance/smoke-checks.mjs +25 -19
- package/src/application/package-maintenance/static-validation.mjs +1437 -0
- package/{tools/cli → src}/application/package-maintenance/sync-plan.mjs +21 -1
- package/{tools/cli → src}/application/package-maintenance.mjs +47 -46
- package/src/application/parent-coordination/parent-coordination-application.mjs +108 -0
- package/src/application/project/project-application.mjs +258 -0
- package/src/application/publication/publication-application.mjs +146 -0
- package/{tools/cli → src}/application/runtime.mjs +98 -30
- package/src/application/service/service-application.mjs +153 -0
- package/src/application/task-development/task-development-application.mjs +615 -0
- package/src/application/task-development/task-development-operation-contracts.mjs +229 -0
- package/src/application/task-environment/task-environment-application.mjs +1246 -0
- package/src/application/task-execution-record/task-execution-record-application.mjs +336 -0
- package/src/application/task-finish/diagnostics-evidence.mjs +192 -0
- package/src/application/task-finish/execution-record.mjs +229 -0
- package/src/application/task-finish/git-task-contribution.mjs +263 -0
- package/src/application/task-finish/task-finish-activation.mjs +23 -0
- package/src/application/task-finish/task-finish-application.mjs +310 -0
- package/src/application/task-finish/task-finish-delivery-commit.mjs +67 -0
- package/src/application/task-finish/task-finish-delivery-remote.mjs +86 -0
- package/src/application/task-finish/task-finish-delivery-target.mjs +53 -0
- package/src/application/task-finish/task-finish-entry-readiness.mjs +185 -0
- package/src/application/task-finish/task-finish-product-executor.mjs +591 -0
- package/src/application/task-finish/task-finish-run.mjs +477 -0
- package/src/application/task-overview/task-overview-application.mjs +73 -0
- package/src/application/task-planning-identity/task-planning-identity-application.mjs +125 -0
- package/src/application/task-record/task-record-application.mjs +410 -0
- package/src/application/task-retrospective/task-retrospective-application.mjs +76 -0
- package/src/application/task-retrospective-prompt.mjs +1 -0
- package/src/application/task-review/task-review-application.mjs +147 -0
- package/src/application/task-terminal-delivery/task-terminal-delivery-application.mjs +120 -0
- package/src/application/task-verification/task-verification-application.mjs +306 -0
- package/src/application/verification/capability-runner.mjs +62 -0
- package/src/application/verification/evidence-lifecycle.mjs +91 -0
- package/src/application/verification/execution-record.mjs +198 -0
- package/src/application/verification/process-executor.mjs +23 -0
- package/src/application/verification/resource-coordinator.mjs +350 -0
- package/src/application/verification/verification-application.mjs +438 -0
- package/src/application/workspace/workspace-application.mjs +526 -0
- package/{tools/cli → src}/application/workspace-operations.mjs +135 -10
- package/src/application/worktree/git-worktree-provider.mjs +436 -0
- package/src/domain/parent-coordination/parent-coordination.mjs +149 -0
- package/src/domain/project/project.mjs +60 -0
- package/src/domain/service/service.mjs +57 -0
- package/src/domain/task-development/task-development.mjs +436 -0
- package/src/domain/task-environment/project-environment-preparation.mjs +80 -0
- package/src/domain/task-environment/task-environment-plan.mjs +266 -0
- package/src/domain/task-environment/task-environment.mjs +455 -0
- package/src/domain/task-execution-record/task-execution-record.mjs +358 -0
- package/src/domain/task-planning-identity/task-planning-identity.mjs +216 -0
- package/src/domain/task-record/task-record.mjs +171 -0
- package/src/domain/task-retrospective/task-retrospective.mjs +78 -0
- package/src/domain/task-review/task-review.mjs +115 -0
- package/src/domain/task-verification/task-verification.mjs +167 -0
- package/src/domain/workspace/workspace.mjs +43 -0
- package/src/infrastructure/content/content-target-observer.mjs +126 -0
- package/src/infrastructure/filesystem/filesystem-path-identity.mjs +38 -0
- package/{tools/cli/shared/infrastructure.mjs → src/infrastructure/filesystem/index.mjs} +19 -14
- package/src/infrastructure/filesystem/project-manifest-repository.mjs +144 -0
- package/src/infrastructure/filesystem/service-manifest-repository.mjs +133 -0
- package/src/infrastructure/filesystem/task-environment-repository.mjs +121 -0
- package/src/infrastructure/filesystem/task-execution-record-body-store.mjs +315 -0
- package/src/infrastructure/filesystem/workspace-manifest-repository.mjs +151 -0
- package/src/infrastructure/filesystem/workspace-node-runtime.mjs +419 -0
- package/src/infrastructure/filesystem/workspace-registry-repository.mjs +102 -0
- package/src/infrastructure/final-doctor-process.mjs +56 -0
- package/src/infrastructure/git/checkout-identity.mjs +43 -0
- package/src/infrastructure/git/git-task-contribution.mjs +101 -0
- package/src/infrastructure/git/project-git-observer.mjs +44 -0
- package/{tools/shared → src/infrastructure/network}/fetch-remote-text.mjs +4 -1
- package/src/infrastructure/network/verification-network-policy.mjs +23 -0
- package/{tools/cli/shared → src/infrastructure}/platform.mjs +16 -23
- package/src/infrastructure/process.mjs +55 -0
- package/src/infrastructure/product-layout.mjs +11 -0
- package/{tools → src/infrastructure}/runtime/adapter-contract.mjs +167 -41
- package/{tools → src/infrastructure}/runtime/check-claude-code.mjs +1 -1
- package/{tools → src/infrastructure}/runtime/check-codex.mjs +1 -1
- package/{tools → src/infrastructure}/runtime/check-runtime.mjs +6 -2
- package/{tools → src/infrastructure}/runtime/projection.mjs +63 -6
- package/{tools → src/infrastructure}/runtime/render-claude-code-rules.mjs +1 -1
- package/{tools → src/infrastructure}/runtime/render-claude-code.mjs +2 -2
- package/{tools → src/infrastructure}/runtime/skills/arguments.mjs +2 -2
- package/{tools → src/infrastructure}/runtime/skills/capabilities.mjs +0 -24
- package/{tools → src/infrastructure}/runtime/skills/contributions.mjs +34 -6
- package/{tools → src/infrastructure}/runtime/skills/inventory.mjs +17 -6
- package/{tools → src/infrastructure}/runtime/skills/primitives.mjs +1 -1
- package/{tools → src/infrastructure}/runtime/skills/projection-files.mjs +153 -9
- package/{tools → src/infrastructure}/runtime/skills/render-plan.mjs +87 -79
- package/{tools → src/infrastructure}/runtime/skills/sources.mjs +17 -4
- package/src/infrastructure/sqlite/migrations/0000_create_migration_ledger.sql +16 -0
- package/src/infrastructure/sqlite/migrations/0001_create_task_store.sql +47 -0
- package/src/infrastructure/sqlite/migrations/0002_create_parent_task_relations.sql +7 -0
- package/src/infrastructure/sqlite/migrations/0003_inline_parent_task_column.sql +19 -0
- package/src/infrastructure/sqlite/migrations/0004_create_task_current_records.sql +16 -0
- package/src/infrastructure/sqlite/migrations/0005_create_task_retrospective_current.sql +4 -0
- package/src/infrastructure/sqlite/migrations/0006_create_task_lifecycle_current.sql +4 -0
- package/src/infrastructure/sqlite/migrations/0007_create_task_finish_current.sql +46 -0
- package/src/infrastructure/sqlite/migrations/0008_create_task_environment_current.sql +8 -0
- package/src/infrastructure/sqlite/migrations/0009_retire_task_lifecycle_current.sql +107 -0
- package/src/infrastructure/sqlite/migrations/0010_add_task_retrospective_disposition.sql +19 -0
- package/src/infrastructure/sqlite/migrations/0011_create_task_execution_records.sql +115 -0
- package/src/infrastructure/sqlite/migrations/0012_compact_task_finish_current.sql +261 -0
- package/src/infrastructure/sqlite/migrations/0013_add_todo_task_retrospective_sources.sql +56 -0
- package/src/infrastructure/sqlite/task-development-repository.mjs +102 -0
- package/src/infrastructure/sqlite/task-execution-record-repository.mjs +309 -0
- package/src/infrastructure/sqlite/task-finish-repository.mjs +543 -0
- package/src/infrastructure/sqlite/task-overview-repository.mjs +62 -0
- package/src/infrastructure/sqlite/task-record-repository.mjs +393 -0
- package/src/infrastructure/sqlite/task-retrospective-repository.mjs +155 -0
- package/src/infrastructure/sqlite/task-review-repository.mjs +81 -0
- package/src/infrastructure/sqlite/task-verification-repository.mjs +79 -0
- package/src/infrastructure/sqlite/workspace-sqlite.mjs +331 -0
- package/{tools/cli/command → src/interfaces/cli}/diagnostics.mjs +1 -1
- package/src/interfaces/cli/git-worktree.mjs +90 -0
- package/src/interfaces/cli/help.mjs +50 -0
- package/{tools/cli/command → src/interfaces/cli}/identity.mjs +1 -1
- package/src/interfaces/cli/launcher.mjs +20 -0
- package/src/interfaces/cli/main.mjs +35 -0
- package/src/interfaces/cli/parent-coordination.mjs +50 -0
- package/src/interfaces/cli/registry.mjs +1085 -0
- package/src/interfaces/cli/task-environment.mjs +99 -0
- package/src/interfaces/cli/task-execution-record.mjs +84 -0
- package/src/interfaces/cli/task-finish-bootstrap.mjs +61 -0
- package/src/interfaces/cli/task-record.mjs +103 -0
- package/src/interfaces/cli/task-review.mjs +111 -0
- package/src/interfaces/cli/task-verification.mjs +133 -0
- package/src/interfaces/internal/task-development-driver.mjs +109 -0
- package/src/interfaces/internal/task-finish-retained-cleanup.mjs +124 -0
- package/src/interfaces/internal/task-planning-identity-driver.mjs +39 -0
- package/src/interfaces/internal/task-retrospective-driver.mjs +43 -0
- package/src/interfaces/local-app/http/read-executor.mjs +213 -0
- package/src/interfaces/local-app/http/read-worker.mjs +52 -0
- package/src/interfaces/local-app/http/server.mjs +702 -0
- package/src/interfaces/local-app/runtime/directory-picker.mjs +32 -0
- package/src/interfaces/local-app/runtime/instance-manager.mjs +116 -0
- package/src/interfaces/local-app/runtime/preview-manager.mjs +400 -0
- package/src/interfaces/local-app/runtime/scheduled-maintenance.mjs +88 -0
- package/src/interfaces/local-app/web-dist/assets/antd-CP1lm6Qe.js +375 -0
- package/src/interfaces/local-app/web-dist/assets/index-CQcbG4Rf.css +1 -0
- package/src/interfaces/local-app/web-dist/assets/index-Q7tztzNq.js +38 -0
- package/src/interfaces/local-app/web-dist/assets/react-CRF1mzbM.js +28 -0
- package/src/interfaces/local-app/web-dist/index.html +18 -0
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-archive-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-explore-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-sync-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/task-finish-post-sync.md +0 -1
- package/package/targets/workspace/components/buildr/openspec/contributions/task-finish-pre-sync.md +0 -1
- package/package/targets/workspace/components/buildr/openspec/contributions/task-triage-change-ready.md +0 -10
- package/package/targets/workspace/skills/buildr/git-ops/SKILL.md +0 -79
- package/package/targets/workspace/skills/buildr/task-asset-review/SKILL.md +0 -137
- package/package/targets/workspace/skills/buildr/task-asset-review/agents/openai.yaml +0 -4
- package/package/targets/workspace/skills/buildr/task-board/SKILL.md +0 -150
- package/package/targets/workspace/skills/buildr/task-board/agents/openai.yaml +0 -4
- package/package/targets/workspace/skills/buildr/task-board/assets/task-board-template.html +0 -464
- package/package/targets/workspace/skills/contracts/buildr/git-single-operation/v1.md +0 -35
- package/package/targets/workspace/skills/contracts/buildr/git-task-integration/v1.md +0 -35
- package/package/targets/workspace/skills/contracts/buildr/git-workspace-update/v1.md +0 -35
- package/package/targets/workspace/skills/contracts/buildr/task-asset-review/v1.md +0 -35
- package/package/targets/workspace/skills/contracts/buildr/task-verification/v1.md +0 -35
- package/package/targets/workspace/skills/contracts/buildr/task-worktree-lifecycle/v1.md +0 -35
- package/tools/buildr +0 -11
- package/tools/cli/application/compose-runtime.mjs +0 -38
- package/tools/cli/application/package-maintenance/static-validation.mjs +0 -1045
- package/tools/cli/application/release/bridge-main-to-dev.mjs +0 -152
- package/tools/cli/bootstrap.mjs +0 -6
- package/tools/cli/command/help.mjs +0 -327
- package/tools/cli/command/registry.mjs +0 -110
- package/tools/cli/domains/openspec.mjs +0 -603
- package/tools/cli/shared/json-contracts.mjs +0 -24
- package/tools/verification/integrity/managed-data-integrity.mjs +0 -193
- package/tools/verification/integrity/managed-mutations.mjs +0 -72
- package/tools/verification/openspec/contract.mjs +0 -212
- package/tools/verification/runtime/adapter-contract.mjs +0 -281
- package/tools/verification/runtime/adapter-parity.mjs +0 -298
- /package/{tools/cli → src}/application/doctor/result-model.mjs +0 -0
- /package/{tools/cli → src}/application/package-maintenance/builtin-receipts.mjs +0 -0
- /package/{tools/cli → src}/application/package-maintenance/builtin-replacement.mjs +0 -0
- /package/{tools/cli → src}/application/package-maintenance/verification-registry.mjs +0 -0
- /package/{tools → src/infrastructure}/runtime/skills/manifests.mjs +0 -0
- /package/{tools → src/infrastructure}/runtime/skills/publication.mjs +0 -0
package/README.md
CHANGED
|
@@ -1,23 +1,57 @@
|
|
|
1
1
|
# Buildr
|
|
2
2
|
|
|
3
|
-
中文 | [English](https://github.com/
|
|
3
|
+
中文 | [English](https://github.com/BuildrAI/Buildr/blob/main/README.en.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 让 Agent 接着已有积累,把工作持续推进下去
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
当项目背景散在聊天、人的经验和多个代码仓里,Agent 每换一次任务或工具就得重新理解;团队做过的判断、流程和项目关系也很难继续复用。Buildr 把这些工作事实和工作方法组织成 Agent 可持续使用的工作资产。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
你可以用 Buildr:组织现有业务与代码仓、让 Agent 基于项目事实继续一项长期工作、把验证过的工作方法沉淀下来,或在更换 Agent 后继续使用同一套资产。Buildr 不取代 Agent 的理解、规划和专业执行;它让这些工作有可发现、可诊断、可交接的基础。
|
|
10
|
+
|
|
11
|
+
## 快速开始:先完成第一项真实工作
|
|
12
|
+
|
|
13
|
+
把下面这句话交给你正在使用的 Agent:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
帮我开始使用 Buildr:检查并安装需要的 Buildr,确认或创建当前 Workspace;用普通语言引导我建立 Project,并只在有代码仓、应用、模块或可执行资产时接入 Service;完成必要的初始化和验证后,问我第一项想推进的真实工作。
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Agent 会负责 runtime discovery、初始化、doctor 和必要的确定性操作。你的第一次成功不是“已经输入过 init 命令”,而是:你已确认 Workspace、Project、可选 Service,并能直接向 Agent 描述要推进的目标。
|
|
20
|
+
|
|
21
|
+
也可以打开 Buildr 本机应用(Local App):添加已有工作空间(Workspace),查看当前项目(Project)与服务(Service)范围,然后点击“用 Agent 开始”。应用只帮助理解范围、维护低风险 metadata、只读查看任务专业事实和生成交接指令;它不创建 repo、不迁移资产,也不在页面内执行专业任务。
|
|
22
|
+
|
|
23
|
+
### 只需理解三个对象
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Workspace → Project → Service(可选)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- **Workspace**:你和 Agent 共同工作的顶层目录。
|
|
30
|
+
- **Project**:一个业务、产品、系统或长期工作单元。
|
|
31
|
+
- **Service**:该 Project 按需管理的代码仓、应用、模块或可执行资产;没有 Service 也可以开始 Project 范围工作。
|
|
32
|
+
|
|
33
|
+
## 智能体(Agent)与本机应用(Local App)各做什么
|
|
34
|
+
|
|
35
|
+
智能体负责理解目标、读取相关资产、规划、执行和验证。本机应用负责让人看懂真实的工作空间 / 项目 / 服务范围,受控维护名称与说明,并把规范范围和目标交给智能体。任务详情以“概览、研发、证据、环境”四个一级视图组合任务记录、任务研发、审查、验证与当前机器环境的 Application read model;除任务记录的受控管理外,专业事实保持只读。两条入口读取同一份工作空间源资产,不维护第二套 onboarding 或生命周期状态。
|
|
36
|
+
|
|
37
|
+
## 手动或技术兜底
|
|
38
|
+
|
|
39
|
+
当 Agent 无法执行时,再使用下面的确定性入口。Buildr 支持 Node.js `>=24.15.0 <25`;Workspace 受管 runtime 仍使用声明的精确版本:
|
|
10
40
|
|
|
11
41
|
```bash
|
|
12
42
|
npm install --global @buildr-ai/buildr@next
|
|
13
43
|
buildr runtime list --json
|
|
14
44
|
buildr init --agent <agent> --target . --name <name> --profile <personal|team|company>
|
|
45
|
+
buildr app --target .
|
|
15
46
|
```
|
|
16
47
|
|
|
17
|
-
|
|
48
|
+
`init --agent` 以最终 doctor 为技术 onboarding 证据;成功后仍应由 Agent 根据真实 Project/Service 状态完成简短交接。深入命令和 runtime 细节见 [CLI Reference](docs/cli-reference.md) 与 [Runtime Adapters](docs/agent-runtime-adapters.md)。
|
|
18
49
|
|
|
19
|
-
|
|
50
|
+
## 当前能力与边界
|
|
20
51
|
|
|
21
|
-
|
|
52
|
+
- 一个 Workspace 可管理多个 Project;每个 Project 可按需管理多个 Service。
|
|
53
|
+
- Rules、Skills、Components、Commands、OpenSpec 和 Project/Service 资产可作为长期工作资产治理。
|
|
54
|
+
- 支持 claude-code、codex、cursor、qoder、trae、trae-work、workbuddy 等 runtime adapter。
|
|
55
|
+
- 当前不提供远程 SaaS、Agent session connector、聊天客户端或自动专业任务执行。
|
|
22
56
|
|
|
23
|
-
|
|
57
|
+
完整产品定位和边界见 [Buildr Product](../../docs/buildr-product.md),已知限制见 [Known Limitations](docs/known-limitations.md)。
|
package/bin/buildr.mjs
ADDED
|
@@ -16,6 +16,10 @@ buildr doctor --agent <agent> --target <workspace> --json
|
|
|
16
16
|
|
|
17
17
|
adapter id 不做 alias 或 fallback。目标 Agent 不在列表中时必须停止自动投射并反馈,而不是借用“兼容”的 adapter。
|
|
18
18
|
|
|
19
|
+
当前宿主身份与投射目标是不同事实。普通当前环境操作从宿主明确身份选择 `<agent>`;用户可以显式维护其他 runtime。Skill discovery root、generated marker、receipt,以及 Doctor 的 `requested`、`selected`、`detectedAgents` 只描述投射或本次检查,不能证明读取者身份。产品入口 Buildr Skill 因此不注入 adapter 专属身份或固定维护命令。
|
|
20
|
+
|
|
21
|
+
Task Environment 会把 adapter、runtime source root 与 projection identity 写入 Environment Receipt,并通过真实 `runtime check` probe 形成 ready 的一部分。projection ready 只证明任务验证工作区中的文件系统投射;它不证明真实 Agent session 已加载候选内容。真实 session 采用证据只在 runtime 发现、加载或激活机制发生变化且专项验证需要时,由 P0.4 Task Verification 处理,不进入 P0.2 ready 门禁。
|
|
22
|
+
|
|
19
23
|
## 支持矩阵
|
|
20
24
|
|
|
21
25
|
| Adapter id | Surface | Rules 接入 | Skills 接入 | 生效/刷新 | 兼容证据 |
|
|
@@ -30,7 +34,9 @@ adapter id 不做 alias 或 fallback。目标 Agent 不在列表中时必须停
|
|
|
30
34
|
|
|
31
35
|
兼容证据说明 adapter 路径和机制的来源,自动 contract/parity 证明 Buildr 能按契约生成、检查和安全维护投射;它们都不表示目标 Agent 已在当前 workspace、当前版本或当前会话中真实加载文件。
|
|
32
36
|
|
|
33
|
-
所有表中 Skills root 同时具有 workspace 与 user 两个 destination:前者相对 `--target` 工作目录,后者相对当前用户目录。adapter 还声明可观测 discovery roots、`complete|partial` inventory evidence、未知 admin/system/plugin 边界和 activation;当前 adapters 的内部来源均只能部分观察,因此成功 render 只证明可观测范围内没有冲突。该 `partial` 事实保留在 runtime scope 的 `skillInventoryEvidence` 中,不作为健康 warning 或 repair action。Buildr 只以自身计划投射或 receipt 已管理的 Skill identity 为候选检查可观测同名项,不盘点无关 runtime Skills;它使用 `buildr.skill-projection/v2` receipt 记录 destination、asset/source identity、source workspace、source/render digest 和文件 inventory。外部等价、其他 owner 或同名异内容均不由 `--replace` 接管。
|
|
37
|
+
所有表中 Skills root 同时具有 workspace 与 user 两个 destination:前者相对 `--target` 工作目录,后者相对当前用户目录。adapter 还声明可观测 discovery roots、`complete|partial` inventory evidence、未知 admin/system/plugin 边界和 activation;当前 adapters 的内部来源均只能部分观察,因此成功 render 只证明可观测范围内没有冲突。该 `partial` 事实保留在 runtime scope 的 `skillInventoryEvidence` 中,不作为健康 warning 或 repair action。Buildr 只以自身计划投射或 receipt 已管理的 Skill identity 为候选检查可观测同名项,不盘点无关 runtime Skills;它使用 `buildr.skill-projection/v2` receipt 记录 destination、asset/source identity、source workspace、source/render digest 和文件 inventory。Skill 的 executable intent 从最近 Git repository 的 index 读取并在单次进程内按 index identity 复用;Git 不可用时 fail closed,不能静默降级为另一份 receipt。Windows 仍在 receipt 中保留该可移植 intent,但不以本地 POSIX mode 判定 runtime stale。外部等价、其他 owner 或同名异内容均不由 `--replace` 接管。
|
|
38
|
+
|
|
39
|
+
实际 Skill 继续写入各 adapter 的 Skills root;Buildr 私有的 Skill 投射所有权回执不再放进 Agent runtime 目录。workspace 回执位于 `<workspace>/.buildr/agent-runtime/workspace/<adapter>/skill-projection-ownership-receipts/`,user 回执位于 `<user-home>/.buildr/agent-runtime/user/<adapter>/skill-projection-ownership-receipts/`。新版本只在旧回执有效且仍能证明对应 runtime 文件时,从 `<runtime-root>/buildr/skill-projection-receipts/<adapter>/` 自动迁移;新旧不一致或 runtime 已漂移时整次零写入停止。迁移后旧 CLI 会把现有 Skill 视为 external,因此不要用旧 CLI 管理已经迁移的投射。
|
|
34
40
|
|
|
35
41
|
Skill 校验分为两层:可移植核心和 Codex 发布都只要求有效 `SKILL.md`,其 `name` 与 `description` 承担发现和路由;随附目录均为可选。Codex/OpenAI profile 将 `agents/openai.yaml` 视为可选 UI extension:文件存在时校验 `display_name`、`short_description`、`default_prompt` 等结构,缺失时不阻塞发布、发现或 render,也不由 Buildr 机械生成或反写。其他 adapter 会随完整目录保留已有文件,但不解释它。Skill 的模板、脚本等执行资源始终相对于当前 runtime `SKILL.md` 所在目录解析,核心行为不能依赖 vendor metadata。
|
|
36
42
|
|
|
@@ -46,6 +52,7 @@ Buildr 当前不定义或维护真实 Agent marker smoke、品牌通过状态或
|
|
|
46
52
|
|
|
47
53
|
- Codex 原生递归读取 `AGENTS.md`,Buildr 不生成 Rules 文件;Skills/install plans 使用 `.agents/`。
|
|
48
54
|
- Rules 在访问路径时生效,Skills 以新会话发现为准;checker 同时检查 native Rules source 和 Skills projection。
|
|
55
|
+
- 候选 Rule、Skill、CLI 与 runtime 可以在 Receipt 绑定的任务验证工作区投射和测试;只有候选集成到 retained source 后,正式 runtime 才能通过 retained `sync/render` 生效。普通内容修改不要求 P0.2 证明当前 Codex session 已重发现 Skills。
|
|
49
56
|
- Codex Skills extension profile 只校验 package Skill 已提供的 `agents/openai.yaml`;没有该文件时继续从 `SKILL.md` 发现 Skill,不生成 fallback 文件。
|
|
50
57
|
- 证据状态为既有 adapter contract/parity、当前 Buildr 自举运行时与产品验证基线。
|
|
51
58
|
|
|
@@ -77,7 +84,7 @@ Buildr 当前不定义或维护真实 Agent marker smoke、品牌通过状态或
|
|
|
77
84
|
- TRAE Work 与 TRAE IDE 是两个独立 adapter:TRAE IDE 的 workspace destination Skills 使用 `.agents/skills`,TRAE Work 使用 `.trae/skills`;两者的 Rules、Skills root、surface 和 activation 都必须分别认证。
|
|
78
85
|
- Buildr 生成 root `CLAUDE.local.md`。bridge 明确要求 Agent 读取 root 和当前工作路径 ancestor chain 中适用的 `AGENTS.md`,并列出 source index;普通 Markdown 链接本身不视为 include。
|
|
79
86
|
- 使用前必须在桌面 Settings 中启用对应 Rules import;修改 Rules 后开启新会话。Skills 写入后的实际即时发现仍以产品版本为准。
|
|
80
|
-
- checker 读取 `/Applications/TRAE SOLO.app`
|
|
87
|
+
- checker 在 macOS 读取 `/Applications/TRAE SOLO.app` 版本;Windows/Linux 使用人工确认 guidance,并报告 projection 与 activation guidance;不会把缺少真实 Agent 验证当作当前 workspace prerequisite。
|
|
81
88
|
- 兼容证据来自 [TRAE Work Rules](https://docs.trae.cn/work_rules)、[TRAE Work Skills](https://docs.trae.cn/work_skills) 与本机机制 intake。
|
|
82
89
|
|
|
83
90
|
## WorkBuddy (`workbuddy`)
|
|
@@ -85,11 +92,11 @@ Buildr 当前不定义或维护真实 Agent marker smoke、品牌通过状态或
|
|
|
85
92
|
- Buildr 生成 root `CODEBUDDY.md`,其中包含 imperative ancestor-chain 读取指令和 source index;内容不得超过 WorkBuddy 5.2.5 已观察到的 8,000 字符 project guidance 上限。
|
|
86
93
|
- WorkBuddy 5.2.5 安装源码的 first-match 顺序是 `CODEBUDDY.md`、`.codebuddy/CODEBUDDY.md`、`AGENTS.md`,只读取 workspace root 第一个存在的入口。非 Buildr 管理的 `CODEBUDDY.md` 会触发 conflict,Buildr 不覆盖也不静默降级。
|
|
87
94
|
- Skills 与 install plans 使用 `.codebuddy/`。WorkBuddy 5.2.5 内置的 CodeBuddy CLI 2.106.4 文档和 Skills panel 源码都将当前工作目录的 workspace destination Skills root 声明为 `.codebuddy/skills/`;`.workbuddy/skills` 只出现在 sandbox 可写路径中,不能据此认定为发现入口。Rules 与 Skills 修改后都要开启新任务。
|
|
88
|
-
- checker 读取 `/Applications/WorkBuddy.app` 的 bundle id
|
|
95
|
+
- checker 在 macOS 读取 `/Applications/WorkBuddy.app` 的 bundle id/版本;Windows/Linux 使用人工确认 guidance,并检查 bridge、Skills 和 install plans 的 projection 状态。
|
|
89
96
|
- 兼容证据来自本机 app.asar 源码、随应用交付的 CodeBuddy CLI 文档/源码和运行时 intake;官方公开文档只覆盖产品与 Marketplace,未公开 project guidance 与工作目录 Skills discovery 的完整实现。
|
|
90
97
|
|
|
91
98
|
## Checker 与限制
|
|
92
99
|
|
|
93
|
-
`runtime check`/doctor 分别报告 projection、安装/版本 probe 和 activation/reload guidance。它们能证明 Buildr 计划是否完整、目标是否 missing/stale/conflict/orphan,但不能从文件系统单独证明 GUI Agent
|
|
100
|
+
`runtime check`/doctor 分别报告 projection、安装/版本 probe、runtime source/projection identity 和 activation/reload guidance。它们能证明 Buildr 计划是否完整、目标是否 missing/stale/conflict/orphan,但不能从文件系统单独证明 GUI Agent 已加载内容。需要真实 session 证据时交给 Task Verification;缺少这类证据本身不阻塞普通 Environment ready。
|
|
94
101
|
|
|
95
102
|
- 所有 runtime 目标都受统一路径保护、symlink 防护、零写入冲突预检、managed ownership、orphan cleanup 和幂等 reconcile 约束。
|
package/docs/cli-architecture.md
CHANGED
|
@@ -1,73 +1,114 @@
|
|
|
1
|
-
# Buildr
|
|
1
|
+
# Buildr Product 内部架构
|
|
2
2
|
|
|
3
|
-
本文面向 Buildr 维护者,说明
|
|
3
|
+
本文面向 Buildr 维护者,说明 Product 源码、CLI、Agent runtime、仓库验证与交付资产的边界。`src/` 是 npm package 的内部实现,不是公开 JavaScript API;公开兼容承诺仍以命令、参数、help、JSON schema、文件结果和 OpenSpec specs 为准。
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 生命周期目录
|
|
6
6
|
|
|
7
7
|
```text
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
bin/ npm executable 薄入口
|
|
9
|
+
src/
|
|
10
|
+
domain/
|
|
11
|
+
workspace/ Workspace 实体、UUID 格式与纯字段约束
|
|
12
|
+
task-record/ Task Record closed schema、状态与纯字段约束
|
|
13
|
+
application/ 用例、跨模块组合和产品 verifier
|
|
14
|
+
domains/ 现有领域操作 handler;尚非纯领域模型
|
|
15
|
+
task-record/ 六个 Task Record action、引用校验与 read/result model
|
|
16
|
+
workspace/ Workspace 查询、修改、迁移和 prompt 用例
|
|
17
|
+
worktree/ Canonical task checkout 与创建后环境 bootstrap 用例
|
|
18
|
+
infrastructure/ filesystem、network、platform、Agent runtime adapters
|
|
19
|
+
filesystem/ Manifest 与专业 Task records、路径、YAML、revision 与 transaction primitive
|
|
20
|
+
sqlite/ Workspace structured store、migrations 与 Task Record repository
|
|
21
|
+
interfaces/
|
|
22
|
+
cli/ CLI registry、help、参数与输出 adapter
|
|
23
|
+
local-app/ loopback HTTP 与离线 Workspace Web 页面
|
|
24
|
+
test/
|
|
25
|
+
unit/ 小粒度单元测试
|
|
26
|
+
contract/ 静态和公开契约测试
|
|
27
|
+
integration-*/ 分级集成测试
|
|
28
|
+
fixtures/ 测试样本
|
|
29
|
+
verification/ 仓库门禁、规划、执行和证据
|
|
30
|
+
scripts/ checkout 安装、卸载和验证入口
|
|
31
|
+
package/ Buildr 向 Workspace/runtime 交付的源资产
|
|
18
32
|
```
|
|
19
33
|
|
|
20
|
-
|
|
21
|
-
- `command/`:根/主题 help、唯一 command registry 和参数 dispatch。
|
|
22
|
-
- `application/`:组合 doctor、sync/update、package maintenance 等跨领域流程。
|
|
23
|
-
- `domains/`:Workspace/Project/Service、Rules、Skills、Commands、Components、OpenSpec contract 和 runtime 等领域实现。
|
|
24
|
-
- `shared/`:无领域语义的参数、路径、YAML、Git、filesystem、atomic write 和 workspace transaction 基础设施。
|
|
34
|
+
`bin/buildr.mjs` 只启动 `src/interfaces/cli/main.mjs`。Product 根 `buildr` 是 checkout convenience entry,也委托同一个 bin;npm 安装、checkout 执行与本机安装因此共享一套 implementation。
|
|
25
35
|
|
|
26
|
-
|
|
36
|
+
`src/application/domains/` 保留原有 Rules、Skills、Commands、Components、部分 workspace lifecycle、OpenSpec 和 runtime handler。Workspace、Project、Service 已完成垂直切片:`src/domain/<domain>/` 只表达实体、值对象和纯约束,`src/application/<domain>/` 持有用例,`src/infrastructure/filesystem/*-manifest-repository.mjs` 持有 YAML/path/revision,Git adapter 持有实时观察,`src/interfaces/local-app/` 持有 HTTP/Web。旧 lifecycle 只能逐步委托这些 Application,不得新增 interface 直接解析 manifest 的路径。
|
|
27
37
|
|
|
28
|
-
|
|
38
|
+
## 依赖方向与所有权
|
|
39
|
+
|
|
40
|
+
当前迁移接受以下依赖方向:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
bin -> interfaces -> application -> infrastructure
|
|
44
|
+
\--------------> domain(存在纯领域模型后)
|
|
45
|
+
infrastructure --------------------> domain
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
- `bin` 不包含业务逻辑。
|
|
49
|
+
- `interfaces` 负责协议适配,只调用应用用例,不被 application 或 infrastructure 反向依赖。
|
|
50
|
+
- `application` 组合产品行为;现阶段可调用明确命名的 infrastructure adapter。未来抽取纯 domain 时,domain 不得依赖 filesystem、process、runtime、CLI 或测试代码。
|
|
51
|
+
- `infrastructure` 持有 filesystem、network、进程/Git 和 Agent runtime 的具体实现。
|
|
52
|
+
- `src` 与 `bin` 不得导入 `test/` 或 `scripts/`。
|
|
53
|
+
|
|
54
|
+
不建立顶层或 `src/shared/`。复用代码按语义归属:文件和 transaction primitive 在 `infrastructure/filesystem`,子进程调用在 `infrastructure/process.mjs`,产品目录常量在 `infrastructure/product-layout.mjs`,远程读取在 `infrastructure/network`,Agent runtime 在 `infrastructure/runtime`,JSON contract 在 `application`,CLI registry/help/output 在 `interfaces/cli`。新增 helper 必须先确定 owner。
|
|
55
|
+
|
|
56
|
+
`infrastructure/platform.mjs` 只是一份供 `application/compose-runtime.mjs` 构造兼容 runtime object 的 composition dependency registry。普通模块必须直接导入 Node API、runtime adapter 或 product-layout owner;不得从 platform 聚合面取 named imports。待兼容 runtime object 被后续功能逐步拆除后,该 registry 也可删除。
|
|
57
|
+
|
|
58
|
+
三个稳定 facade 保留现有调用表面,但不承载无界长流程:
|
|
29
59
|
|
|
30
60
|
```text
|
|
31
61
|
application/doctor.mjs
|
|
32
62
|
-> application/doctor/{scope,service,runtime}-diagnostics.mjs
|
|
33
63
|
application/package-maintenance.mjs
|
|
34
64
|
-> application/package-maintenance/{verification-registry,static-validation,smoke-checks}.mjs
|
|
35
|
-
|
|
36
|
-
->
|
|
65
|
+
infrastructure/runtime/render-claude-code.mjs
|
|
66
|
+
-> infrastructure/runtime/skills/{arguments,manifests,contributions,sources,render-plan}.mjs
|
|
37
67
|
```
|
|
38
68
|
|
|
39
|
-
|
|
69
|
+
CLI command 只在 `src/interfaces/cli/registry.mjs` 的 command catalog 登记一次。每个 executable descriptor 同时携带唯一 key、`primary | agent-machine | maintenance` surface、summary、canonical help、match 与 run adapter。dispatch、unknown-command candidates、根帮助分区和 leaf/aggregate topic 都消费该 catalog,架构验证检查 descriptor 关系而不复制完整 supported-key 清单。已退役命令不保留 legacy descriptor、alias 或隐藏 route。领域操作由 `src/application/compose-runtime.mjs` 装配;`buildr app` 的 HTTP interface 由 CLI interface 在同一 composition 边界注册,Application 不反向依赖 Interfaces。新增命令不得在入口直接实现 mutation,也不得建立第二份 registry。
|
|
70
|
+
|
|
71
|
+
Surface只控制发现层级与兼容承诺,不提供权限。`agent-machine`保留Task Environment、Review/Verification Result、Finish等正式机器接口;`maintenance`隔离package、preview与OpenSpec workflow。`openspec audit`、`openspec sync-plan`/`sync-apply`的公开route、handler和JSON schema已删除;deterministic planner/apply primitive继续由单一`openspec converge`transaction内部组合,事务期只读恢复检查由唯一三段route`openspec convergence inspect`提供。
|
|
72
|
+
|
|
73
|
+
Task Record 是当前完成垂直切片的领域:`domain/task-record` 只验证 closed v1 record 与状态,`application/task-record` 拥有 create/inspect/update/complete/abandon、Parent setter、registry/Change 引用解析、直接关系 read model 和响应级 digest 前置条件,`interfaces/cli/task-record.mjs` 只拥有 argv/输出/退出码适配,`infrastructure/sqlite/task-record-repository.mjs` 只拥有规范化 Task tables、内联 `tasks.parent_task_id` self-reference foreign key 与 transaction。通用 `infrastructure/sqlite/workspace-sqlite.mjs` 负责 canonical Workspace 边界、connection、migration ledger、checksum 和健康检查。Repository 通过 Git topology 拒绝 linked worktree,不读取或双写旧 Task YAML。CLI 与 Task Manager 使用带 registry/Change currentness 的完整 Application action;Local App 普通列表和详情使用同一 Application 暴露的 SQLite stored-state query projection,只在具体专业交互中调用对应 currentness reader。两类客户端都不接受 caller 提供的 filesystem 或数据库 path。Parent/Child 不传播状态、Result 或专业动作,也不扩展为独立关系实体或通用关系图。Task Environment、Development、Review、Verification、Git、Finish、独立 Board 与 Retrospective 仍由各自模块拥有,不能进入 Task Record repository。
|
|
74
|
+
|
|
75
|
+
Task Development 是无公共 CLI 的垂直切片:`domain/task-development` 验证 closed Receipt、Content Target、policy、Candidate/generation、gate、decision 与 append-only handoff;`application/task-development` 是唯一 reader/writer,并只通过 Task Record/Environment/Review/Verification Applications 和 Content observer port 取事实。Git-backed Content observer 与 Finish 共用 `infrastructure/git/git-task-contribution.mjs` 的 canonical raw delta identity,使纯交付基线(Delivery Baseline)前进不改变任务内容 identity;SQLite repository只按Task ID事务保存完整closed Receipt,internal driver只转发同一Application methods,不注册command。Review与Verification repositories同样只维护各自current slots;共用数据库不合并专业模块。Local App 使用Workspace-scoped、no-store 的 `GET .../tasks/:taskId/development`,HTTP直接调用Application `inspect`,Web不打开SQLite或暴露writer。
|
|
40
76
|
|
|
41
|
-
|
|
77
|
+
Task Finish的CLI adapter只解析`run|inspect`。首次run从Environment与Task Development Application取得Task、current handoff、Candidate/generation和Content Target,不接受Project/Change、Candidate/generation或Verification authority输入。Git-backed Product run在创建时冻结retained checkout当前符号分支与Agent;显式target必须与其一致,Environment checkout `startPoint`不取得交付分支authority。随后按显式值、Environment evidence、target branch upstream或唯一配置remote冻结真实delivery remote;任一identity无法确定时不创建run。`task-finish-run.mjs`持有breaking v2 canonical run store、产品resume token与结果投射;`application/task-finish/git-task-contribution.mjs`兼容转发共享Git contribution基础设施,并在最新交付基线(Delivery Baseline)的run-owned detached worktree中机械应用任务贡献(Task Contribution)、复核raw Git delta identity;`task-finish-product-executor.mjs`只组合该isolated carrier、fast-forward/普通push、远端ref回读、retained runtime activation、run绑定的selected-Agent Doctor和Environment cleanup,不根据Product路径安装development CLI或Local App。Doctor未ready时Result保留已完成的remote readback、`activation-blocked` partial delivery与精确deliver resume token,并且不cleanup;普通Workspace保持blocked。target前进时可通过carrier ancestor及全部changed-path after mode/blob/删除状态证明`already-contained`,保留原carrier和最新后代ref并跳过重复transition;这也允许自举Workspace在激活后用原run/token恢复,并由Product重跑Doctor后cleanup。无法证明才用精确token重做`prepare → verify → deliver → cleanup`,Candidate generation与既有gates保持不变;冲突、贡献漂移或不等价时返回Development。路径不重叠不构成语义安全判断。没有action registry、caller completion、typed recovery parser或旧v1 reader;retained metadata-only精确Git handoff属于Task Finish Skill,不进入CLI产品executor。
|
|
42
78
|
|
|
43
|
-
|
|
79
|
+
Task Finish Application在完整调用前校验和no-op判断之后、任何current/Carrier/target/recovery副作用之前,以独立invocation identity open `task-finish/finish-diagnostics` Execution Record;backpressure保持Finish owner状态零变化。同一逻辑run的resume创建新record。invocation-local collector把固定phase timeline、diagnostics与非枚举raw command output写入owner transient,并在seal时映射为closed五文件正文;record retained后只精确cleanup diagnostics transient。`task_finish_current`只保存compact phase/current failure和Carrier、target、lease、resume、cleanup、terminal owner facts,不保存record identity/history或attempt diagnostics。seal/confirmation/diagnostics cleanup attention不回滚或重放remote delivery、Environment/Carrier cleanup、Task terminal或Finish current;`inspect`不查询records。`.buildr/task-finish`是已退役旧协议,`task complete`不建立第二Finish状态机。
|
|
44
80
|
|
|
45
|
-
|
|
81
|
+
## Product verifier 与仓库 verification
|
|
46
82
|
|
|
47
|
-
|
|
83
|
+
分类依据是安装后 CLI 的运行依赖,而不是文件名:
|
|
48
84
|
|
|
49
|
-
`
|
|
85
|
+
- `buildr package check` 可达的 static、workspace、Commands、Rules、Skills 和 runtime verifier 属于产品,位于 `src/application/package-maintenance/` 或明确的 infrastructure owner,并随 npm package 发布。
|
|
86
|
+
- 只服务 `npm test`、Fast、Changed、Focus、Candidate、coverage 或 CI 的 registry、planner、scheduler、runner、timing、evidence 和 focused verifier 位于 `test/verification/`,不进入 npm tarball。
|
|
87
|
+
- `scripts/verify-buildr-product*` 只是 checkout 入口,委托统一 verification registry,不复制 step、预算或依赖关系。
|
|
50
88
|
|
|
51
|
-
|
|
89
|
+
Workspace E2E 位于 `test/verification/workspace/`,保留 `workspace-lifecycle`、`ownership-recovery` 和 `runtime-reconciliation` 三条跨组件路径。其他 help、onboarding、runtime family parity、tarball inventory 与安装后生命周期由各自 focused verifier 持有。
|
|
52
90
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
91
|
+
验证 registry 是 step identity、executor、inputs、依赖、profile/group、并发类别、artifact metadata 与 Project Testing 分类的唯一规划事实源;分类只给出 owner、主要意图、执行边界、证明范围、目标耗时和主要证据 owner。`fast` profile 表达低成本 Quick,inputs 表达 affected owner,`candidate` profile 是显式完整回归组合;它们不再被复制成一份混合 Quick、Task-affected、Candidate、Release 的场景分类。只服务于 CI 定向诊断的复合 slice 可声明 `selection: explicit-only`,保留 inputs 作为覆盖边界但不得被 changed planner 自动选择。planner 对未映射的 Product 路径 fail closed;验证选择基础路径命中全局 owner 时,同一个 changed plan 扩展为完整回归。显式 Candidate 入口选择完整 profile,并只创建一个共享只读 tarball artifact。
|
|
92
|
+
|
|
93
|
+
## npm 与交付边界
|
|
94
|
+
|
|
95
|
+
- `package.json#bin.buildr` 指向 `bin/buildr.mjs`。
|
|
96
|
+
- `package.json#files` 发布 `bin`、`src`、公开文档和顶层 `package`,不发布仓库测试、维护脚本、active changes 或 Workspace 私有资产。
|
|
97
|
+
- `package/` 只表示 init、sync、runtime 和 bootstrap 使用的交付源资产;它不是 npm 源码、构建脚本或测试 fixture 目录。
|
|
98
|
+
- 安装后的 `buildr package check` 必须只依赖 tarball 内的运行闭包。
|
|
99
|
+
- 内部路径不提供兼容承诺;重构仍不得改变公开 CLI 行为、JSON schema、文件结果或 transaction/fail-closed 语义。
|
|
57
100
|
|
|
58
101
|
## 维护验证
|
|
59
102
|
|
|
60
103
|
```bash
|
|
61
|
-
node
|
|
104
|
+
node test/verification/cli/architecture.mjs
|
|
62
105
|
npm test
|
|
63
106
|
npm run test:changed -- --plan
|
|
64
107
|
npm run test:focus -- group:cli
|
|
65
108
|
npm run test:focus -- group:runtime
|
|
66
|
-
node
|
|
67
|
-
node
|
|
68
|
-
node
|
|
109
|
+
node test/verification/cli/compatibility.mjs
|
|
110
|
+
node test/verification/cli/package-parity.mjs
|
|
111
|
+
node test/verification/integrity/managed-mutations.mjs
|
|
69
112
|
```
|
|
70
113
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
新增命令时应先在 `command/registry.mjs` 登记唯一 key,把领域逻辑放入对应 domain,并仅在确需跨领域组合时新增 application service。不要把领域 helper 放入 `shared/`,也不要通过 Component 或动态加载扩展 command registry。
|
|
114
|
+
架构 verifier 检查生命周期目录、薄入口、`src` import 方向、无 owner 的 shared、关键 facade、完整 runtime inventory、command descriptor schema/唯一 key/surface/help/replacement、verification registry、Candidate required gates 和 npm 边界。CLI compatibility 直接遍历 catalog 验证 retained leaf/aggregate help,并验证已删除 route 返回标准 unknown-command 且零写入。mutation verifier 递归扫描全部发布 runtime module 的直接写入白名单;package parity 从 tarball 安装并比较 checkout/npm 行为。
|
package/docs/cli-reference.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
支持 `--json` 的命令在顶层输出 `schemaVersion`。该字段及兼容规则见 [公开 JSON 契约](json-contracts.md);消费者应按 schema identity 判断格式,而不是依赖未声明的内部实现。
|
|
6
6
|
|
|
7
|
+
根帮助从同一 command catalog 按四层显示:`primary` 是普通工作主路径,`agent-machine` 是 Agent/Skill 依赖的稳定机器接口,`maintenance` 是产品构建、开发预览和 workflow,`legacy` 是兼容窗口内仍保留且带 replacement 的入口。Surface 不是授权边界;每个 retained executable route 都可通过 canonical topic 查询帮助。
|
|
8
|
+
|
|
7
9
|
## CLI identity、帮助与错误
|
|
8
10
|
|
|
9
11
|
- `buildr --version`、`buildr -V` 和 `buildr version` 输出当前实际执行 package 的版本;`buildr version --json` 输出 `buildr.version/v1`。
|
|
@@ -14,49 +16,82 @@
|
|
|
14
16
|
## 首次使用
|
|
15
17
|
|
|
16
18
|
```bash
|
|
19
|
+
buildr app launcher install --channel release --json
|
|
17
20
|
buildr runtime list --json
|
|
18
|
-
buildr init --agent <claude-code|codex|cursor|qoder|trae|trae-work|workbuddy> --target <workspace> --name <name> --profile <personal|team|company>
|
|
21
|
+
buildr init --agent <claude-code|codex|cursor|qoder|trae|trae-work|workbuddy> --target <workspace> --name <name> --description <description> --profile <personal|team|company>
|
|
19
22
|
```
|
|
20
23
|
|
|
24
|
+
用户要求 Agent“安装 Buildr”时,默认先安装 npm CLI,再安装当前平台 release launcher,并分别验证。`buildr app launcher install|status|uninstall` 只管理指定 launcher channel;macOS 默认安装到 `/Applications`,Windows 默认安装到当前用户的 LocalAppData Programs,`development` channel 安装为隔离的 `Buildr Dev`。全局安装不写 Agent runtime Skill;`init --agent` 在目标 Workspace 首次投射 Buildr Skill,`sync`/`render` 负责后续收敛。
|
|
25
|
+
|
|
21
26
|
`init --agent` 是默认首次 onboarding 入口:它先初始化源资产,再复用完整 `sync` 执行 source update、产品 Buildr Skill 安装、workspace destination 投射和最终 doctor。`init`/`sync` 不隐式写用户级 Skills。
|
|
22
27
|
|
|
23
|
-
|
|
28
|
+
Skill 文件仍写入目标 Agent 的原生 Skills root。Buildr 为这些文件保存的所有权回执属于 `.buildr/agent-runtime/<workspace|user>/<adapter>/skill-projection-ownership-receipts/` 本机控制状态,并由 `init`、`sync`、`skills render` 和 Doctor 统一维护;`/.buildr/agent-runtime/` 默认忽略 Git。旧 runtime-root 回执只作为一次性迁移输入,有效且能证明当前文件时自动迁移,冲突或漂移时零写入停止。
|
|
29
|
+
|
|
30
|
+
`buildr update` 只更新 CLI 自身:开发 checkout 使用 Git 安全更新,registry package 使用 npm 更新。它不接收 `--target`,也不读取 workspace。用户要求“更新 Buildr”或“同步 Buildr”时,Agent 在 update 成功后重新解析入口,再执行 `buildr skill install <agent> --target <workspace>`,更新 CLI 与产品入口 Buildr Skill,而不扩大为 workspace sync。用户要求“更新 workspace”或“同步 workspace”时,Agent 先判断 workspace root 是否由 Git 管理:Git workspace 解析 `buildr.git-operations/v1` binding,并由 Buildr Skill 向 selected provider 提供明确 workspace、upstream 和 update operation,成功后执行 `buildr sync <agent> --target <workspace>`;非 Git workspace 直接 sync。required provider blocked 或 Git 决策点会阻止后续 sync,Agent 不自动 stash、reset、rebase、merge 或覆盖;该复合意图不先更新 CLI,且 Git 更新成功后不重复询问 sync。`buildr sync` 自身不隐式执行 Git 更新。
|
|
24
31
|
|
|
25
32
|
## Workspace 与资产
|
|
26
33
|
|
|
27
34
|
| 命令 | 用途 |
|
|
28
35
|
|---|---|
|
|
29
|
-
| `buildr init [--agent <agent>]` | 初始化 Organization/Root;传入 `--agent` 时一次完成 runtime 与最终 doctor
|
|
30
|
-
| `buildr
|
|
31
|
-
| `buildr
|
|
36
|
+
| `buildr init [--agent <agent>]` | 初始化 Organization/Root,写入当前受支持 CLI 的精确 Workspace Node version 并准备受管 runtime;传入 `--agent` 时一次完成 Agent runtime 与最终 doctor。 |
|
|
37
|
+
| `buildr app [--target <workspace>] [--no-open]` | 启动或复用只监听 `127.0.0.1` 的默认本机 Web 应用;默认打开浏览器,登记和切换多个 Workspace,`--target` 登记并打开指定 Workspace。 |
|
|
38
|
+
| `buildr app preview start|list|stop` | 启动、查看或停止隔离的开发预览。带 `--task <task-id> --target <canonical-workspace>` 时,Preview 使用 ready Task Environment 的任务验证工作区,健康后登记为动态资源,停止确认后释放;不带 Task 时保持独立 checkout preview。 |
|
|
39
|
+
| `buildr app launcher install/status/uninstall` | 安装、诊断或卸载 release/development launcher;使用新 staging 验证后切换,保留 Workspace Registry 和源资产。 |
|
|
40
|
+
| `buildr project create <code>` | 创建或登记 Project;`--name`/`--description` 设置 metadata,`--repo`、`--remote`、`--integration-branch` 声明独立 Git source,并补齐空 `commands.yml` requirement context。 |
|
|
41
|
+
| `buildr service create <project>/<service> <repo-ref>` | 接入本地目录或 Git Service;用 `--name`、`--description`、`--type` 描述 Domain,Git 来源可用 `--remote`、`--integration-branch` 声明稳定来源。 |
|
|
42
|
+
| `buildr task environment plan record\|inspect <task-id>` | Agent登记或只读查看覆盖全部Task Service scope的Environment Preparation Plan;`record --input <json-file>`不执行Step。 |
|
|
43
|
+
| `buildr task environment prepare\|inspect\|cleanup <task-id>` | `prepare [--plan <json-file>]`幂等执行或恢复Plan;`inspect`只读观察;`cleanup`清理正式Task环境。Environment Receipt独占Plan、ready、恢复、资源和总cleanup。 |
|
|
44
|
+
| `buildr worktree create\|inspect\|cleanup <task-id>` | 窄 Git worktree provider。`create` 接受 branch/start point 与显式 Project/Service selectors;`inspect` 复核 checkout/branch/HEAD/clean/registration;`cleanup` 要求每仓 integrated ref。它不判断 Environment ready,也不准备 Runtime、CLI、依赖、projection 或动态资源。 |
|
|
45
|
+
| `buildr verification run --project <code> --capability <id> ... --target-identity <identity>` | 使用 Workspace 受管 Node 执行 Project `verification.yml` v2 中显式选择的 command capabilities。需要绑定正式环境时同时传 `--environment <task-id> --workspace <canonical-workspace>`;返回 transient `buildr.verification-execution/v1`,不选择 applicability、不写 current Result。`--declaration-root` 只属于 `task verification record`,不属于 execution 或 inspect。 |
|
|
46
|
+
| `buildr task create\|inspect\|update\|activate\|complete\|abandon` | 在 canonical Workspace 的 SQLite 中维护 Task Record v2。`create --status todo` 只保存意向,不接受 Change;`activate` 显式转为 active。`--retrospective-source` 及 update add/remove flags 只关联已有 current 复盘的终态来源 Task,不创建行动项。todo 只能以 `--no-change` 完成;todo/active 都可 abandon,终态不可重开。Parent/Child 仍只表达协调层级。 |
|
|
47
|
+
| `buildr task parent inspect\|record\|bind-child\|reconcile\|accept` | 管理opt-in Parent Plan与Contribution协调。`inspect`只组合Task Record、Development、Review和Finish已保存事实;`record`首次采用closed Plan;`bind-child`把已有Child Development绑定到current Contributions;`reconcile`要求expected Plan identity、完整next Plan和reason;`accept`只记录显式最终集成验收,不完成Parent。所有action使用`buildr.parent-coordination-result/v1`;不扫描文件系统、backfill历史Task、复制Child状态或创建progress/lifecycle authority。 |
|
|
48
|
+
| `buildr task verification inspect\|record <task-id>` | 通过Application读取或事务整值记录Workspace SQLite中的current Verification Result。`inspect`只读保存Result/查询字段,可带当前`--target-identity`做纯值比较,不接受路径或重新观察声明;`record`接收完整能力事实、coverage gaps和结论,并在目标声明尚在Task Environment时可带`--declaration-root <task-environment-root>`完成正式写入观察。Application只接受该Task当前ready Environment的精确根,且不把路径写入Result。 |
|
|
49
|
+
| `buildr task finish run\|inspect` | 首次 `run` 接收 `--task <task-id> --commit-message <message>` 并要求 ready Environment 与当前研发交接(Development Handoff)。Agent根据最终内容提供符合仓库约定的subject/可选body;产品规范化、加入`Buildr-Task` trailer并冻结identity,已有run/resume不接受覆盖,公开Result只返回subject/identity。可显式给出 agent、target branch/remote,但不接受 Project/Change、Candidate/generation 或 Verification authority 输入。Git-backed run默认冻结retained checkout当前符号分支,显式target必须与其一致,Environment `startPoint`不作为交付分支;再按显式值、Environment、target branch upstream、唯一配置remote解析真实remote,缺失、歧义或不一致时停止。每次真实run/resume先open独立`task-finish/finish-diagnostics`record并预留容量,backpressure时不启动Finish副作用。随后固定执行 `preflight → prepare → verify → deliver → cleanup`:使用冻结message在隔离Delivery Carrier机械复用或保留Delivery Adaptation现场、校验实际commit message identity、fast-forward/普通push与carrier回读,再按Task Contribution选择`none`或Workspace根runtime source的`render-runtime`。invocation timeline、diagnostics与受控output在record retained后清理精确transient;Carrier与恢复资源仍由Finish owner管理。record attention不改变已成立的Finish终态,`inspect`不列records。formal Verification次数固定为0。Workspace专属维护可由Component使用`task-finish@append`交接给Agent,不要求通用Skill提供slot,也不属于产品五阶段。P0.5 不公开 `task development` CLI,bundled `task-development` Skill 通过内部 driver调用唯一Application;Local App仅提供`inspect`只读投影。 |
|
|
50
|
+
|
|
51
|
+
Task Finish current、target lease、Carrier/resume/cleanup与compact terminal Result继续由Workspace SQLite/Finish owner管理;每次invocation的完整诊断、timeline和受控output通过独立Execution Record保留,record retained后只清理对应diagnostics transient。`task_finish_current`不保存record关联或attempt history。`.buildr/task-finish`是已退役的旧文件协议;`task complete`只表达Task Record terminal status。
|
|
32
52
|
| `buildr rules add/remove` | 维护 root Rules manifest 和文件生命周期。 |
|
|
33
53
|
| `buildr skills add/remove` | 只维护 workspace `skills/` 中的 Skill source;旧 `--scope .` 仅兼容并警告,Project scope 被拒绝。 |
|
|
34
54
|
| `buildr skills bind/unbind` | 维护 workspace 默认 binding,或在 `projects/<project>/capabilities.yml` 维护 Project context binding。 |
|
|
35
55
|
| `buildr skills render <agent> --destination workspace\|user` | 从 `--target <workspace>` 读取 source,显式投射到当前工作目录或个人用户层;默认 workspace。 |
|
|
36
|
-
| `buildr skills migrate-project-assets --check\|--apply` | 检查或事务迁移 legacy Project Skill source,冲突时零写入。 |
|
|
37
56
|
| `buildr commands add/remove` | 维护 workspace Command catalog definitions;最后一个 definition 仍被 requirement 引用时零写入。 |
|
|
38
57
|
| `buildr commands check [--project <project> ...]` | 按显式 Project task context 合并 requirements 并观察本机环境;无 Project 时只检查 workspace defaults。 |
|
|
39
58
|
| `buildr component list/check/install/uninstall` | 管理 workspace 级 Rules、Skills、Command collections 与声明式 Skill Contribution。 |
|
|
40
59
|
| `buildr builtin list/uninstall/restore` | 查看或维护 Buildr 内置能力;required 能力不能卸载。`restore` 表示明确放弃该 Builtin 的本地修改;replacement 只接管可证明为 Buildr-managed 的 predecessor,恢复 source 后再运行 `sync <agent>` 收敛 runtime。 |
|
|
41
60
|
| `buildr update [check]` | 检查或更新 Buildr CLI 自身;不维护 workspace。 |
|
|
42
61
|
|
|
43
|
-
|
|
62
|
+
新 Workspace 使用 `.buildr/workspace.yml` 的 `buildr.workspace/v1` schema,并与 `skills/manifest.yml.workspaceId` 共享同一 UUID。旧 metadata 可以在 `buildr app` 中只读查看;`buildr sync <agent>` 通过同一 source transaction 显式迁移两份 Manifest,identity 冲突时零写入失败。页面修改使用 revision compare-and-swap,不自动覆盖 Agent、Git 或编辑器已经产生的外部变化。
|
|
63
|
+
|
|
64
|
+
Task Record 使用 closed `buildr.task-record/v2` schema。顶层状态为 `todo|active|completed|abandoned`,查询态 `open` 派生为 todo + active。复盘来源使用独立多对多关系表,只保存 source Task ID;多个复盘可指向同一 Task,一个复盘也可形成多个后续 Task。Task Record 不保存 Environment、Development 或 action item。Parent/Child、Change resolver、`recordDigest` 与旧 `task.yml` inert 语义保持不变。
|
|
65
|
+
|
|
66
|
+
Task Record、Task Development current Receipt、Task Verification current Result与Planning/Completion Review current Results全部以`.buildr/local/workspace.sqlite`作为单机唯一持久化authority。各专业CLI/Skill/Local App仍调用对应Application;interface不直接打开数据库。旧Task-scoped YAML不读取、不迁移、不双写,Task current records不进入Git或跨机器同步。Git Operations只处理用户或其他consumer明确选择的普通Git内容;产品不再提供Task Metadata Publication入口、contract或runtime Skill。Environment与Finish继续保存各自本机运行/交付事实。
|
|
67
|
+
|
|
68
|
+
默认 App 的用户级登记文件只保存规范化 Workspace root 和最近使用项;Workspace 名称、说明、Project、Service 与全局 Change 列表始终从 retained Workspace 实时读取。Task 详情固定为“概览、研发、证据、环境”四个一级视图:研发调用 Task Development Application `inspect`,证据分别调用 Review/Verification reader,环境调用 Environment reader;打开、窗口聚焦或手动刷新时执行有界读取。Development/Review/Verification/Environment 专业区块均不提供 writer;审查和验证仍可生成受限 Agent prompt。Task 关联 Change 的详情通过同一 Task-scoped Resolver 读取任务执行根与 retained baseline;全局 Change 列表仍保持 retained-only。
|
|
69
|
+
|
|
70
|
+
Project registry 使用 `buildr.projects/v2`:每个 Project 保存 UUID `id`、所属 `workspaceId`、可读 `code`、`name`、`description` 和 `source`。`source.path` 是文件系统物化位置;Git source 另外保存 URL、remote 和稳定的 `integrationBranch`。`currentBranch`、HEAD、dirty、upstream 与 ahead/behind 是实时观察状态,不写入 Domain。v1 registry 可只读查询,`buildr sync <agent>` 显式迁移;页面不会静默迁移、切分支、stash 或改写 remote。
|
|
71
|
+
|
|
72
|
+
`service create --integration-branch` 只适用于 Git 来源,`--branch` 仅为兼容别名。Canonical Service Domain 保存 UUID `id`、`workspaceId`、`projectId`、`code`、`name`、`description`、`type` 和 `source`;`source.path` 定位文件系统中的实际 Service,Git source 保存 URL、remote 与稳定 integration branch。当前分支、HEAD、dirty、upstream 与 ahead/behind 只实时观察,不写回 Domain。
|
|
73
|
+
|
|
74
|
+
Project根可选`preparation.yml`(`buildr.project-environment-preparation/v1`),长期声明Project-wide或Service-scoped Recipe。Agent按Task完整Project/Service scope提交closed`buildr.task-environment-plan-request/v1`;Application解析声明identity并把resolved`buildr.task-environment-plan/v2`与Receipt v5保存到canonical Workspace SQLite唯一`task_environment_current`。`task environment plan record|inspect`管理saved Plan,`prepare --plan <file>`可一次选择并准备。Recipe Step只接受无shellexecutable、args、所属Project/Service相对cwd、inputs、expected outputs、required和timeout;核心不枚举package manager、不扫描manifest。Receipt分别保存Declaration、Scope、Recipe与Step current/prepared identity、状态、诊断和本次是否执行。任一required Recipe/Step缺失、漂移或失败都会阻断整体ready。`inspect`只读实时观察且不执行Step、不创建输出、不升级Plan、不回写;Local App GET只读取saved current。旧Receipt只读兼容,必须显式提供Plan Request才能升级。
|
|
75
|
+
|
|
76
|
+
`project create`、`service create`及Local App对应Agent prompt会返回`declaration-intake` next action;首次Task prompt、Environment declaration/Recipe gap与Verification coverage gap也使用同一入口。该入口只让Agent检查`preparation.yml`/`verification.yml`候选或diff,注册事务和所有GET/inspect都不写声明。用户确认精确长期变更后,仍由`task-environment`或`task-verification`各自owner维护。
|
|
77
|
+
|
|
78
|
+
Git provider evidence 使用 `buildr.git-worktree-evidence/v1`,保存在 Git common-dir 的 `buildr/task-worktrees/<task-id>.json`。它只包含 repository selector、source/checkout、branch/start point、HEAD、clean、registration、remote 和 Git effects。Environment cleanup 先停止已登记资源,再把每仓 delivery identity 交给 provider;明确 abandon 时可以清理可证明属于该 Task 的 dirty checkout。provider 不删除远端分支,也不执行交付、验证或总 cleanup 判断。
|
|
44
79
|
|
|
45
80
|
## Runtime 与诊断
|
|
46
81
|
|
|
47
82
|
| 命令 | 用途 |
|
|
48
83
|
|---|---|
|
|
49
84
|
| `buildr runtime list` | 查看 supported adapters、capabilities 和推荐命令。 |
|
|
50
|
-
| `buildr doctor` |
|
|
85
|
+
| `buildr doctor` | 只读聚合 workspace、Workspace Node 声明/runtime/CLI/npm/验证环境、registries、Components 和 Commands;Node 缺失或漂移时建议运行 `sync`,不直接修复。 |
|
|
51
86
|
| `buildr render <agent>` | 组合投射 Rules entry 与 workspace Skills 到 workspace destination,不安装产品入口 Skill。 |
|
|
52
|
-
| `buildr sync <agent>` | 同步当前本地 workspace checkout
|
|
87
|
+
| `buildr sync <agent>` | 同步当前本地 workspace checkout 中的产品源能力、按既有精确声明恢复 Workspace Node runtime,并准备当前 Agent runtime;不扫描或迁移旧 Task Environment 文件。 |
|
|
53
88
|
| `buildr runtime check <agent>` | 专项比较某个 scope 的 runtime 期望状态。 |
|
|
54
89
|
| `buildr skill install <agent>` | 只安装产品入口 Buildr Skill。 |
|
|
55
90
|
| `buildr mutation recover <id>` | 从完整 transaction journal/backup 恢复未完成 source mutation。 |
|
|
56
91
|
|
|
57
92
|
`doctor` 的 `ok` 为兼容字段,只表示没有 error,不表示 workspace 已无需处理。Agent 应同时读取 `health.workspaceValid`、`health.ready`、`health.actionRequired` 和 `repairPlan`:例如只有 actionable warning 时,结果可以是 `ok: true` 但 `ready: false`。canonical workspace identity 要求根 `AGENTS.md`、`.buildr/workspace.yml` 和 `projects/` 同时存在;只存在其中一部分时报告 `incomplete`,不会误判为已初始化。
|
|
58
93
|
|
|
59
|
-
默认 doctor 分三层声明诊断边界:`core` 每次检查 workspace identity、mutation recovery 和 root registries;`conditional` 只在相关 scope、资产或 selected Agent 适用时检查 Project/Service、Rules/Skills、package assets、Commands 与 runtime;`specialty`
|
|
94
|
+
默认 doctor 分三层声明诊断边界:`core` 每次检查 workspace identity、mutation recovery 和 root registries;`conditional` 只在相关 scope、资产或 selected Agent 适用时检查 Project/Service、Rules/Skills、package assets、Commands 与 runtime;`specialty` 是显式场景。对已声明的独立 Git Project,doctor 会比较 remote、`integrationBranch` 和本地实时状态,但不会执行 Git 修改;它不深检 OpenSpec active change,也不运行 build/test。需要更多细节时进入对应 Git、OpenSpec、验证工作流。
|
|
60
95
|
|
|
61
96
|
当前支持 `claude-code`、`codex`、`cursor`、`qoder`、`trae`、`trae-work` 和 `workbuddy`。其他 runtime 不使用 fallback adapter;各 adapter 的文件路径、刷新方式和证据状态见 [Agent Runtime Adapters](agent-runtime-adapters.md)。
|
|
62
97
|
|
|
@@ -68,6 +103,16 @@ buildr init --agent <claude-code|codex|cursor|qoder|trae|trae-work|workbuddy> --
|
|
|
68
103
|
|
|
69
104
|
Buildr 不 render 或安装 Commands,不保存 binary、token、cookie、登录态、license 或个人配置。machine warning 只说明当前环境与有效 requirement 的差异;安装、升级或登录仍需要用户单独授权。
|
|
70
105
|
|
|
106
|
+
## Project 测试能力声明
|
|
107
|
+
|
|
108
|
+
`projects/<project>/verification.yml` 使用 closed `buildr.project-verification/v2`。每项 capability 声明稳定 id、明确 Project/Service scope、command 或 bounded Agent invocation、path/条件 applicability、能够证明的事实和 `requiredForDelivery`;只有确有需要时才增加 environment、effects、authorization、resources 与 `resourceClaims`。旧 mode、maturity、stages、enforcement、coverage、sources、dependsOn 和 supersedes 不再读取。它是 Project 测试能力事实,不是 `capabilities.yml` 中的 Skill binding,也不会被投射到 Service repo。
|
|
109
|
+
|
|
110
|
+
`buildr verification run` 不推导固定层级或声明级 DAG,只执行调用方显式选择的 command capabilities。`effects.authorization: explicit` 必须逐项传入 `--authorize-capability <id>`;声明为 explicit 的资源必须逐项传入 `--authorize-resource <id>`。实际 claim 的 `coordinated` 资源才通过有界 coordinator 排队。完整命令输出、耗时、授权与资源诊断属于 transient execution evidence。命令不创建任务、不调度 Agent,也不写Workspace SQLite current Result。
|
|
111
|
+
|
|
112
|
+
没有声明或没有适用能力时,doctor 不产生 finding,Task Verification 在具体 Result 中报告 coverage gap,不自动开发测试。文件存在时 doctor 只做 closed schema、路径、scope 与资源引用校验,不运行命令或探测测试环境。用户通过 Agent 说“初始化测试声明”或“更新测试声明”时,Agent 只从真实 build scripts、CI、文档和已有测试发现候选,并由用户确认 Project policy。
|
|
113
|
+
|
|
114
|
+
current Task Result使用`buildr.task-verification-result/v1`,只保存Task/stable Content Target/declaration identity、实际能力的`passed / failed`精炼事实、coverage gaps、`passed / not-passed`结论与完成时间。Task Verification Application是唯一writer/reader,record做完整原子替换,inspect按当前Content Target和declarations派生`current / stale / unknown`。Task Development只消费Application read model,Finish不直接消费Result。Result不保存stdout/stderr、临时路径、Environment Receipt、风险接受、任务推进状态、history或Candidate generation。
|
|
115
|
+
|
|
71
116
|
## Skill capability contracts
|
|
72
117
|
|
|
73
118
|
`buildr.skills/v3` 为每个 workspace Skill 保存稳定 `assetIdentity`/`sourceIdentity`,并支持 versioned contract、provider `provides`、consumer `requires` 和 workspace 默认 binding。Project context 使用 `buildr.project-capabilities/v1`。安装 provider 本身不会静默改绑。
|
|
@@ -77,14 +122,18 @@ Contract 格式、scope 规则、替换示例以及 `ready` 的边界见 [Skill
|
|
|
77
122
|
## Product maintenance / workflow internal
|
|
78
123
|
|
|
79
124
|
- `buildr package check/build`:产品 package 维护和构建,不是普通 workspace 日常命令。
|
|
80
|
-
- `buildr openspec
|
|
125
|
+
- `buildr openspec converge <change> --project <project> --target <workspace> --json`:Buildr OpenSpec单一收敛事务;内部完成规划、隔离strict validation、条件式canonical应用、写后确认与`archive --skip-specs`,正常archive后释放本次事务Receipt,结果为`passed|blocked|recovery-unprovable`。
|
|
126
|
+
- `buildr openspec convergence inspect <change> --project <project> --target <workspace> --json`:只读检查仍存在的未决事务Receipt及before/expected/actual;active Change未开始或Change已归档时返回`not-applicable`。它不写canonical、Receipt或archive,也不用于环境清理后的长期审计。
|
|
127
|
+
- `openspec audit`、`openspec baseline create`、阶段型`openspec check`、`openspec sync-plan`与`openspec sync-apply`均已删除;旧调用返回标准unknown-command。
|
|
128
|
+
- `openspec baseline create`、阶段型 `openspec check`、`openspec sync-plan` 与 `openspec sync-apply` 均已删除;旧调用返回标准 unknown-command 且不会读取或写入旧 sidecar。确定性 planning/apply 只保留为 `converge` 单一事务的内部步骤。
|
|
129
|
+
- `skills migrate-project-assets` 已删除。legacy Project Skill source 继续 fail closed,当前 Buildr 不复制、合并、改写或删除其 bytes;升级前需使用旧版本完成迁移,或人工审阅后整理到 workspace `skills/`。
|
|
81
130
|
- `buildr bootstrap guide`:产品 Skill 不可用时的纯文本兜底说明。
|
|
82
131
|
|
|
83
132
|
这些命令可执行,但不构成普通用户需要记忆的 public asset API。
|
|
84
133
|
|
|
85
134
|
## 内部实现边界
|
|
86
135
|
|
|
87
|
-
`
|
|
136
|
+
`bin/buildr.mjs` 是稳定 npm bin 路径,实际命令通过内部 `src/` runtime 和唯一 command registry 执行。该模块树随 tarball 发布以保证命令可运行,但不是公开 JavaScript API,不承诺文件级 import 兼容;维护约定见 [CLI 内部架构](cli-architecture.md)。
|
|
88
137
|
|
|
89
138
|
## 远端 Skill 请求
|
|
90
139
|
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
- 当前支持 `claude-code`、`codex`、`cursor`、`qoder`、`trae`、`trae-work` 和 `workbuddy` runtime adapter;目标路径与兼容证据来源见 [Agent Runtime Adapters](agent-runtime-adapters.md)。自动 contract/parity 覆盖 Buildr 的投射和维护边界,但不证明目标 Agent 已在当前版本、workspace 或会话加载文件。
|
|
4
4
|
- TRAE Work 依赖桌面 Rules import toggle,WorkBuddy 依赖 `CODEBUDDY.md` 中的 imperative reference bridge;checker 报告 projection、environment probe 和 activation guidance,不把缺少真实 Agent marker smoke 作为当前 workspace 故障。Buildr 暂不维护品牌 smoke 状态或历史通过快照。
|
|
5
5
|
- runtime trait catalog 只降低新增 adapter 的重复实现;它不会把尚未独立验证五项 capabilities 的 Agent 自动视为 supported。
|
|
6
|
-
- CLI 支持 Node.js
|
|
6
|
+
- CLI 支持 Node.js 24.15.0 至 25 之前的版本(`>=24.15.0 <25`),以使用已经验证的内置 `node:sqlite`、进程和文件系统语义。Workspace 继续声明并使用精确受管 Node 版本;低于 24.15.0 或尚未独立适配验证的未来主版本不能作为 bootstrap 或产品 runtime。
|
|
7
|
+
- Buildr Global App 当前仍是浏览器中的本机 Web 应用,不提供 Desktop WebView、菜单栏、登录启动、静默自动更新或系统通知。macOS 与 Windows launcher 只启动/复用随机 loopback 端口上的服务并打开默认浏览器;Linux 首批使用 CLI。官方签名、公证和 Windows SmartScreen 交付仍需在发布阶段单独启用与验证。
|
|
8
|
+
- App 不扫描磁盘或跨 Workspace 聚合资源;用户显式登记 root,关闭浏览器不等于退出,必须使用页面“退出 Buildr”或终止进程。
|
|
7
9
|
- Component 只支持 workspace scope;没有 Project/Service Component、远程 registry、依赖求解或可执行 Hook。
|
|
8
|
-
- Buildr
|
|
10
|
+
- Buildr Local 使用文件系统/Git保存portable工作资产,并在每个Workspace的本地SQLite中保存适合索引、关系、聚合和事务的structured data。SQLite文件不提交、不同步,也不提供多人并发协作;未来组织协作需要独立的Buildr Server/Cloud authority。
|
|
11
|
+
- Task Record 与各专业 current records 使用 Workspace SQLite;旧 `.buildr/tasks/<task-id>/` 文件不迁移、不读取、不双写。todo 只是本地意向,不同步、不含排期/责任人/优先级,也不自动创建 Change 或执行资产。复盘来源关系仅关联 Task ID,不结构化跟踪每个行动项。Parent/Child 仍只支持同 Workspace 的单 Parent/多直接 Child,不是通用依赖图。
|
|
9
12
|
- Commands 只声明和诊断外部 CLI,不执行本机安装、升级或登录。
|
|
10
13
|
- 远端 Skill 当前只支持 raw `SKILL.md` 的 `resolved.kind: skill-url`;未声明 integrity 时允许 render,但 doctor 会警告。
|
|
11
14
|
- Agent 没有统一 API 枚举已加载的 admin/system/plugin Skills。adapter 会在 runtime scope 保留 `partial` inventory evidence,但不把不可观测性本身报告为健康 warning;Buildr 只检查自身管理候选的可观测同名项并阻止真实冲突,不盘点无关 runtime Skills,也不宣称已证明 Agent 全局唯一。首版不提供自动 adopt/transfer,外部资产必须重命名、显式移除/禁用或保持现场。
|
|
12
|
-
- `task-
|
|
15
|
+
- `task-retrospective/v2` 处理 current Markdown 时可关联后续 Task,但不保存历史、评分、结构化行动项或进度;也不自动采集耗时/token、创建 Change 或跨 Workspace 聚合。旧 `.buildr/asset-review/` 数据保持 inert。
|
|
16
|
+
- Formal Task Finish 在 carrier 已交付、自举 successor 已包含该 carrier 时依赖一次远端 fetch 形成 exact-containment evidence;若该 fetch 瞬时失败,当前 resume 会重建 carrier 并可能转入 Delivery Adaptation,不会自动把本地 ancestry 当作最终远程证据。
|
|
13
17
|
- Service branch intent 不负责 pull、merge、rebase 或长期分支同步;它只控制首次 clone、metadata 和 drift 诊断。
|
|
14
|
-
- `@buildr-ai/buildr@0.1.0-rc.
|
|
15
|
-
- `package check/build
|
|
18
|
+
- `@buildr-ai/buildr@0.1.0-rc.7` 是当前已发布 RC,`next` 指向该版本;`0.1.0-rc.8` 正在准备,尚未发布。`latest` 仍可能指向历史 prerelease,它不代表稳定版。稳定版 `0.1.0` 尚未发布,公开试用应显式安装 `@next`。`0.1.0-rc.4` 因发布范围错误已弃用。
|
|
19
|
+
- `package check/build`是维护表面。普通workspace使用`openspec converge`;只有未决收敛现场仍存在且恢复状态不确定时使用只读`openspec convergence inspect`。Inspect不提供归档后的长期漂移、合规或forensic audit;正常archive后Receipt会释放,历史读取使用Archived Change、Canonical Specs与Git。旧`openspec audit`和阶段命令已删除并返回unknown-command。
|
|
16
20
|
|
|
17
21
|
遇到 unsupported runtime 或不能确定的资产边界时,Agent 应停止自动变更、保留源资产,并报告可执行下一步。
|