ws-spec-kit 0.1.0-beta.0
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/LICENSE +201 -0
- package/README.md +79 -0
- package/dist/adapters/cli/output.d.ts +15 -0
- package/dist/adapters/cli/output.js +21 -0
- package/dist/adapters/cli/output.js.map +1 -0
- package/dist/adapters/cli/workflow.d.ts +25 -0
- package/dist/adapters/cli/workflow.js +131 -0
- package/dist/adapters/cli/workflow.js.map +1 -0
- package/dist/adapters/connectors/git-native.d.ts +23 -0
- package/dist/adapters/connectors/git-native.js +521 -0
- package/dist/adapters/connectors/git-native.js.map +1 -0
- package/dist/adapters/connectors/github-cli.d.ts +23 -0
- package/dist/adapters/connectors/github-cli.js +213 -0
- package/dist/adapters/connectors/github-cli.js.map +1 -0
- package/dist/adapters/connectors/gitlab-cli.d.ts +23 -0
- package/dist/adapters/connectors/gitlab-cli.js +199 -0
- package/dist/adapters/connectors/gitlab-cli.js.map +1 -0
- package/dist/adapters/connectors/lark-cli.d.ts +24 -0
- package/dist/adapters/connectors/lark-cli.js +296 -0
- package/dist/adapters/connectors/lark-cli.js.map +1 -0
- package/dist/adapters/process/redaction.d.ts +2 -0
- package/dist/adapters/process/redaction.js +51 -0
- package/dist/adapters/process/redaction.js.map +1 -0
- package/dist/adapters/process/spawn-json.d.ts +37 -0
- package/dist/adapters/process/spawn-json.js +312 -0
- package/dist/adapters/process/spawn-json.js.map +1 -0
- package/dist/adapters/skills/claude.d.ts +1 -0
- package/dist/adapters/skills/claude.js +3 -0
- package/dist/adapters/skills/claude.js.map +1 -0
- package/dist/adapters/skills/codex.d.ts +1 -0
- package/dist/adapters/skills/codex.js +3 -0
- package/dist/adapters/skills/codex.js.map +1 -0
- package/dist/adapters/skills/cursor.d.ts +1 -0
- package/dist/adapters/skills/cursor.js +3 -0
- package/dist/adapters/skills/cursor.js.map +1 -0
- package/dist/adapters/skills/generic.d.ts +1 -0
- package/dist/adapters/skills/generic.js +2 -0
- package/dist/adapters/skills/generic.js.map +1 -0
- package/dist/adapters/skills/install.d.ts +28 -0
- package/dist/adapters/skills/install.js +571 -0
- package/dist/adapters/skills/install.js.map +1 -0
- package/dist/application/acquire.d.ts +60 -0
- package/dist/application/acquire.js +964 -0
- package/dist/application/acquire.js.map +1 -0
- package/dist/application/application.d.ts +21 -0
- package/dist/application/application.js +31 -0
- package/dist/application/application.js.map +1 -0
- package/dist/application/artifact-reader.d.ts +1 -0
- package/dist/application/artifact-reader.js +150 -0
- package/dist/application/artifact-reader.js.map +1 -0
- package/dist/application/artifact-writer.d.ts +1 -0
- package/dist/application/artifact-writer.js +268 -0
- package/dist/application/artifact-writer.js.map +1 -0
- package/dist/application/artifact.d.ts +28 -0
- package/dist/application/artifact.js +523 -0
- package/dist/application/artifact.js.map +1 -0
- package/dist/application/decide.d.ts +12 -0
- package/dist/application/decide.js +168 -0
- package/dist/application/decide.js.map +1 -0
- package/dist/application/doctor-connectors.d.ts +34 -0
- package/dist/application/doctor-connectors.js +99 -0
- package/dist/application/doctor-connectors.js.map +1 -0
- package/dist/application/external-action.d.ts +164 -0
- package/dist/application/external-action.js +670 -0
- package/dist/application/external-action.js.map +1 -0
- package/dist/application/initial-stages.d.ts +3 -0
- package/dist/application/initial-stages.js +7 -0
- package/dist/application/initial-stages.js.map +1 -0
- package/dist/application/inspect.d.ts +2 -0
- package/dist/application/inspect.js +31 -0
- package/dist/application/inspect.js.map +1 -0
- package/dist/application/profile.d.ts +32 -0
- package/dist/application/profile.js +70 -0
- package/dist/application/profile.js.map +1 -0
- package/dist/application/snapshot.d.ts +75 -0
- package/dist/application/snapshot.js +338 -0
- package/dist/application/snapshot.js.map +1 -0
- package/dist/application/start.d.ts +43 -0
- package/dist/application/start.js +360 -0
- package/dist/application/start.js.map +1 -0
- package/dist/application/state.d.ts +17 -0
- package/dist/application/state.js +94 -0
- package/dist/application/state.js.map +1 -0
- package/dist/application/submit.d.ts +18 -0
- package/dist/application/submit.js +1090 -0
- package/dist/application/submit.js.map +1 -0
- package/dist/cli/commands/core.d.ts +2 -0
- package/dist/cli/commands/core.js +205 -0
- package/dist/cli/commands/core.js.map +1 -0
- package/dist/cli/commands/public-contract.d.ts +12 -0
- package/dist/cli/commands/public-contract.js +47 -0
- package/dist/cli/commands/public-contract.js.map +1 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.js +23 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/domain/artifacts.d.ts +52 -0
- package/dist/domain/artifacts.js +241 -0
- package/dist/domain/artifacts.js.map +1 -0
- package/dist/domain/digests.d.ts +11 -0
- package/dist/domain/digests.js +106 -0
- package/dist/domain/digests.js.map +1 -0
- package/dist/domain/external-receipt.d.ts +48 -0
- package/dist/domain/external-receipt.js +138 -0
- package/dist/domain/external-receipt.js.map +1 -0
- package/dist/domain/ids.d.ts +7 -0
- package/dist/domain/ids.js +5 -0
- package/dist/domain/ids.js.map +1 -0
- package/dist/domain/repository-path.d.ts +3 -0
- package/dist/domain/repository-path.js +87 -0
- package/dist/domain/repository-path.js.map +1 -0
- package/dist/domain/states.d.ts +38 -0
- package/dist/domain/states.js +69 -0
- package/dist/domain/states.js.map +1 -0
- package/dist/domain/work-package-identity.d.ts +2 -0
- package/dist/domain/work-package-identity.js +10 -0
- package/dist/domain/work-package-identity.js.map +1 -0
- package/dist/domain/workflow.d.ts +58 -0
- package/dist/domain/workflow.js +2 -0
- package/dist/domain/workflow.js.map +1 -0
- package/dist/engine/actor-roles.d.ts +15 -0
- package/dist/engine/actor-roles.js +53 -0
- package/dist/engine/actor-roles.js.map +1 -0
- package/dist/engine/approvals.d.ts +44 -0
- package/dist/engine/approvals.js +239 -0
- package/dist/engine/approvals.js.map +1 -0
- package/dist/engine/archive.d.ts +24 -0
- package/dist/engine/archive.js +442 -0
- package/dist/engine/archive.js.map +1 -0
- package/dist/engine/compiler.d.ts +25 -0
- package/dist/engine/compiler.js +828 -0
- package/dist/engine/compiler.js.map +1 -0
- package/dist/engine/control/condition.d.ts +10 -0
- package/dist/engine/control/condition.js +49 -0
- package/dist/engine/control/condition.js.map +1 -0
- package/dist/engine/control/loop.d.ts +23 -0
- package/dist/engine/control/loop.js +96 -0
- package/dist/engine/control/loop.js.map +1 -0
- package/dist/engine/control/retry.d.ts +15 -0
- package/dist/engine/control/retry.js +54 -0
- package/dist/engine/control/retry.js.map +1 -0
- package/dist/engine/docs-integrity.d.ts +13 -0
- package/dist/engine/docs-integrity.js +34 -0
- package/dist/engine/docs-integrity.js.map +1 -0
- package/dist/engine/expressions/ast.d.ts +18 -0
- package/dist/engine/expressions/ast.js +9 -0
- package/dist/engine/expressions/ast.js.map +1 -0
- package/dist/engine/expressions/evaluate.d.ts +7 -0
- package/dist/engine/expressions/evaluate.js +47 -0
- package/dist/engine/expressions/evaluate.js.map +1 -0
- package/dist/engine/expressions/parser.d.ts +2 -0
- package/dist/engine/expressions/parser.js +173 -0
- package/dist/engine/expressions/parser.js.map +1 -0
- package/dist/engine/external-effects/authorization.d.ts +146 -0
- package/dist/engine/external-effects/authorization.js +222 -0
- package/dist/engine/external-effects/authorization.js.map +1 -0
- package/dist/engine/external-effects/idempotency.d.ts +14 -0
- package/dist/engine/external-effects/idempotency.js +26 -0
- package/dist/engine/external-effects/idempotency.js.map +1 -0
- package/dist/engine/external-effects/reconciliation.d.ts +11 -0
- package/dist/engine/external-effects/reconciliation.js +18 -0
- package/dist/engine/external-effects/reconciliation.js.map +1 -0
- package/dist/engine/results.d.ts +14 -0
- package/dist/engine/results.js +88 -0
- package/dist/engine/results.js.map +1 -0
- package/dist/engine/scheduler.d.ts +60 -0
- package/dist/engine/scheduler.js +225 -0
- package/dist/engine/scheduler.js.map +1 -0
- package/dist/engine/tdd/green-gate.d.ts +6 -0
- package/dist/engine/tdd/green-gate.js +72 -0
- package/dist/engine/tdd/green-gate.js.map +1 -0
- package/dist/engine/tdd/red-gate.d.ts +30 -0
- package/dist/engine/tdd/red-gate.js +531 -0
- package/dist/engine/tdd/red-gate.js.map +1 -0
- package/dist/engine/tdd/types.d.ts +89 -0
- package/dist/engine/tdd/types.js +38 -0
- package/dist/engine/tdd/types.js.map +1 -0
- package/dist/engine/verification.d.ts +56 -0
- package/dist/engine/verification.js +196 -0
- package/dist/engine/verification.js.map +1 -0
- package/dist/policy/profile.d.ts +24 -0
- package/dist/policy/profile.js +23 -0
- package/dist/policy/profile.js.map +1 -0
- package/dist/policy/risk.d.ts +33 -0
- package/dist/policy/risk.js +138 -0
- package/dist/policy/risk.js.map +1 -0
- package/dist/protocol/application.d.ts +196 -0
- package/dist/protocol/application.js +2 -0
- package/dist/protocol/application.js.map +1 -0
- package/dist/protocol/public-contract.d.ts +81 -0
- package/dist/protocol/public-contract.js +231 -0
- package/dist/protocol/public-contract.js.map +1 -0
- package/dist/protocol/work-package.d.ts +55 -0
- package/dist/protocol/work-package.js +2 -0
- package/dist/protocol/work-package.js.map +1 -0
- package/dist/registry/connectors/external-executor.d.ts +4 -0
- package/dist/registry/connectors/external-executor.js +249 -0
- package/dist/registry/connectors/external-executor.js.map +1 -0
- package/dist/registry/connectors/feishu-document.d.ts +21 -0
- package/dist/registry/connectors/feishu-document.js +197 -0
- package/dist/registry/connectors/feishu-document.js.map +1 -0
- package/dist/registry/connectors/git-commit.d.ts +32 -0
- package/dist/registry/connectors/git-commit.js +122 -0
- package/dist/registry/connectors/git-commit.js.map +1 -0
- package/dist/registry/connectors/issue.d.ts +68 -0
- package/dist/registry/connectors/issue.js +301 -0
- package/dist/registry/connectors/issue.js.map +1 -0
- package/dist/registry/connectors/knowledge-publish.d.ts +30 -0
- package/dist/registry/connectors/knowledge-publish.js +157 -0
- package/dist/registry/connectors/knowledge-publish.js.map +1 -0
- package/dist/registry/connectors/local-requirement.d.ts +19 -0
- package/dist/registry/connectors/local-requirement.js +177 -0
- package/dist/registry/connectors/local-requirement.js.map +1 -0
- package/dist/registry/connectors/manifest.d.ts +6 -0
- package/dist/registry/connectors/manifest.js +164 -0
- package/dist/registry/connectors/manifest.js.map +1 -0
- package/dist/registry/connectors/registry.d.ts +11 -0
- package/dist/registry/connectors/registry.js +34 -0
- package/dist/registry/connectors/registry.js.map +1 -0
- package/dist/registry/connectors/requirement-source.d.ts +46 -0
- package/dist/registry/connectors/requirement-source.js +513 -0
- package/dist/registry/connectors/requirement-source.js.map +1 -0
- package/dist/registry/connectors/runtime.d.ts +38 -0
- package/dist/registry/connectors/runtime.js +127 -0
- package/dist/registry/connectors/runtime.js.map +1 -0
- package/dist/registry/connectors/secret-detector.d.ts +19 -0
- package/dist/registry/connectors/secret-detector.js +85 -0
- package/dist/registry/connectors/secret-detector.js.map +1 -0
- package/dist/registry/connectors/semver.d.ts +8 -0
- package/dist/registry/connectors/semver.js +57 -0
- package/dist/registry/connectors/semver.js.map +1 -0
- package/dist/registry/connectors/types.d.ts +45 -0
- package/dist/registry/connectors/types.js +2 -0
- package/dist/registry/connectors/types.js.map +1 -0
- package/dist/registry/executors/registry.d.ts +15 -0
- package/dist/registry/executors/registry.js +68 -0
- package/dist/registry/executors/registry.js.map +1 -0
- package/dist/registry/executors/types.d.ts +19 -0
- package/dist/registry/executors/types.js +2 -0
- package/dist/registry/executors/types.js.map +1 -0
- package/dist/registry/skills/lock.d.ts +3 -0
- package/dist/registry/skills/lock.js +278 -0
- package/dist/registry/skills/lock.js.map +1 -0
- package/dist/registry/skills/resolver.d.ts +16 -0
- package/dist/registry/skills/resolver.js +353 -0
- package/dist/registry/skills/resolver.js.map +1 -0
- package/dist/registry/skills/types.d.ts +75 -0
- package/dist/registry/skills/types.js +9 -0
- package/dist/registry/skills/types.js.map +1 -0
- package/dist/resources/catalog.d.ts +20 -0
- package/dist/resources/catalog.js +111 -0
- package/dist/resources/catalog.js.map +1 -0
- package/dist/schemas/definitions.d.ts +5 -0
- package/dist/schemas/definitions.js +958 -0
- package/dist/schemas/definitions.js.map +1 -0
- package/dist/schemas/generate.d.ts +1 -0
- package/dist/schemas/generate.js +26 -0
- package/dist/schemas/generate.js.map +1 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.js +54 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/storage/control-plane.d.ts +136 -0
- package/dist/storage/control-plane.js +688 -0
- package/dist/storage/control-plane.js.map +1 -0
- package/dist/storage/events.d.ts +36 -0
- package/dist/storage/events.js +185 -0
- package/dist/storage/events.js.map +1 -0
- package/dist/storage/external-action-payload.d.ts +33 -0
- package/dist/storage/external-action-payload.js +190 -0
- package/dist/storage/external-action-payload.js.map +1 -0
- package/dist/storage/files.d.ts +13 -0
- package/dist/storage/files.js +45 -0
- package/dist/storage/files.js.map +1 -0
- package/dist/storage/git.d.ts +4 -0
- package/dist/storage/git.js +21 -0
- package/dist/storage/git.js.map +1 -0
- package/dist/storage/project-config.d.ts +11 -0
- package/dist/storage/project-config.js +60 -0
- package/dist/storage/project-config.js.map +1 -0
- package/dist/storage/repository.d.ts +14 -0
- package/dist/storage/repository.js +151 -0
- package/dist/storage/repository.js.map +1 -0
- package/dist/storage/work-items.d.ts +77 -0
- package/dist/storage/work-items.js +373 -0
- package/dist/storage/work-items.js.map +1 -0
- package/dist/storage/workflow-trust.d.ts +38 -0
- package/dist/storage/workflow-trust.js +310 -0
- package/dist/storage/workflow-trust.js.map +1 -0
- package/dist/workflow-package/loader.d.ts +12 -0
- package/dist/workflow-package/loader.js +249 -0
- package/dist/workflow-package/loader.js.map +1 -0
- package/dist/workflow-package/lock.d.ts +6 -0
- package/dist/workflow-package/lock.js +12 -0
- package/dist/workflow-package/lock.js.map +1 -0
- package/dist/workflow-package/path-boundary.d.ts +5 -0
- package/dist/workflow-package/path-boundary.js +38 -0
- package/dist/workflow-package/path-boundary.js.map +1 -0
- package/dist/workflow-package/trust.d.ts +27 -0
- package/dist/workflow-package/trust.js +61 -0
- package/dist/workflow-package/trust.js.map +1 -0
- package/dist/workflow-package/types.d.ts +176 -0
- package/dist/workflow-package/types.js +9 -0
- package/dist/workflow-package/types.js.map +1 -0
- package/dist/workflow-package/workflow-v1.d.ts +3 -0
- package/dist/workflow-package/workflow-v1.js +274 -0
- package/dist/workflow-package/workflow-v1.js.map +1 -0
- package/package.json +40 -0
- package/resources/catalog.yaml +37 -0
- package/resources/connectors/github-cli.yaml +24 -0
- package/resources/connectors/gitlab-cli.yaml +24 -0
- package/resources/connectors/lark-cli.yaml +28 -0
- package/resources/skills/bug-fixing/SKILL.md +16 -0
- package/resources/skills/code-review/SKILL.md +16 -0
- package/resources/skills/documentation-editing/SKILL.md +16 -0
- package/resources/skills/documentation-exploration/SKILL.md +16 -0
- package/resources/skills/documentation-review/SKILL.md +16 -0
- package/resources/skills/requirement-exploration/SKILL.md +16 -0
- package/resources/skills/solution-design/SKILL.md +16 -0
- package/resources/skills/task-planning/SKILL.md +16 -0
- package/resources/skills/tdd-implementation/SKILL.md +16 -0
- package/resources/workflows/documentation-delivery/manifest.yaml +8 -0
- package/resources/workflows/documentation-delivery/profiles/governed.yaml +23 -0
- package/resources/workflows/documentation-delivery/profiles/quick.yaml +23 -0
- package/resources/workflows/documentation-delivery/profiles/standard.yaml +21 -0
- package/resources/workflows/documentation-delivery/workflow.yaml +109 -0
- package/resources/workflows/feature-delivery/manifest.yaml +8 -0
- package/resources/workflows/feature-delivery/profiles/governed.yaml +27 -0
- package/resources/workflows/feature-delivery/profiles/quick.yaml +25 -0
- package/resources/workflows/feature-delivery/profiles/standard.yaml +26 -0
- package/resources/workflows/feature-delivery/workflow.yaml +150 -0
- package/schemas/builtin-agent-action-v1.schema.json +509 -0
- package/schemas/builtin-application-acquire-input-v1.schema.json +25 -0
- package/schemas/builtin-application-artifact-create-input-v1.schema.json +49 -0
- package/schemas/builtin-application-decision-input-v1.schema.json +284 -0
- package/schemas/builtin-application-inspect-input-v1.schema.json +20 -0
- package/schemas/builtin-application-project-config-snapshot-v1.schema.json +289 -0
- package/schemas/builtin-application-project-config-v1.schema.json +293 -0
- package/schemas/builtin-application-start-input-v1.schema.json +92 -0
- package/schemas/builtin-application-submit-input-v1.schema.json +145 -0
- package/schemas/builtin-artifact-v1.schema.json +48 -0
- package/schemas/builtin-evidence-v1.schema.json +65 -0
- package/schemas/builtin-external-action-grant-v1.schema.json +298 -0
- package/schemas/builtin-external-action-request-v1.schema.json +288 -0
- package/schemas/builtin-external-binding-v1.schema.json +59 -0
- package/schemas/builtin-external-receipt-v1.schema.json +109 -0
- package/schemas/builtin-external-write-receipt-v1.schema.json +253 -0
- package/schemas/builtin-source-artifact-v1.schema.json +293 -0
- package/schemas/builtin-submit-result-v1.schema.json +111 -0
- package/schemas/builtin-tdd-cycle-evidence-v1.schema.json +119 -0
- package/schemas/builtin-tdd-node-test-report-v1.schema.json +103 -0
- package/schemas/builtin-tdd-trusted-evidence-v1.schema.json +184 -0
- package/schemas/builtin-work-item-v1.schema.json +201 -0
- package/schemas/builtin-work-package-v1.schema.json +254 -0
- package/schemas/builtin-workflow-selection-v1.schema.json +40 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
workflow:
|
|
3
|
+
id: feature-delivery
|
|
4
|
+
version: 1
|
|
5
|
+
inputs:
|
|
6
|
+
requirement:
|
|
7
|
+
accepts: [user.prompt, local.file, github.issue, gitlab.issue, feishu.document]
|
|
8
|
+
steps:
|
|
9
|
+
- id: intake
|
|
10
|
+
uses: connector.execute
|
|
11
|
+
action: requirement.capture
|
|
12
|
+
inputs: [requirement-source]
|
|
13
|
+
outputs: [requirement-source]
|
|
14
|
+
- id: explore
|
|
15
|
+
uses: agent.execute
|
|
16
|
+
needs: [intake]
|
|
17
|
+
inputs: [requirement-source]
|
|
18
|
+
objective: 探索代码并提取需求相关约束
|
|
19
|
+
skills:
|
|
20
|
+
- ref: builtin://skills/requirement-exploration
|
|
21
|
+
required: true
|
|
22
|
+
outputs: [exploration-report]
|
|
23
|
+
- id: clarify
|
|
24
|
+
uses: agent.execute
|
|
25
|
+
needs: [explore]
|
|
26
|
+
inputs: [exploration-report]
|
|
27
|
+
objective: 澄清需求并生成可验收规格
|
|
28
|
+
skills:
|
|
29
|
+
- ref: builtin://skills/requirement-exploration
|
|
30
|
+
required: true
|
|
31
|
+
outputs: [specification]
|
|
32
|
+
approval: required
|
|
33
|
+
- id: design
|
|
34
|
+
uses: agent.execute
|
|
35
|
+
needs: [clarify]
|
|
36
|
+
inputs: [specification]
|
|
37
|
+
objective: 形成可实施的技术方案
|
|
38
|
+
skills:
|
|
39
|
+
- ref: builtin://skills/solution-design
|
|
40
|
+
required: true
|
|
41
|
+
outputs: [design]
|
|
42
|
+
approval: required
|
|
43
|
+
- id: plan
|
|
44
|
+
uses: agent.execute
|
|
45
|
+
needs: [clarify, design]
|
|
46
|
+
objective: 将设计拆分为可验证任务
|
|
47
|
+
skills:
|
|
48
|
+
- ref: builtin://skills/task-planning
|
|
49
|
+
required: true
|
|
50
|
+
outputs: [tasks]
|
|
51
|
+
inputs:
|
|
52
|
+
- outputId: specification
|
|
53
|
+
required: true
|
|
54
|
+
- outputId: design
|
|
55
|
+
required: false
|
|
56
|
+
- id: write-tests
|
|
57
|
+
uses: agent.execute
|
|
58
|
+
needs: [plan]
|
|
59
|
+
inputs: [tasks]
|
|
60
|
+
objective: 根据当前任务先编写能够因缺少功能而失败的测试
|
|
61
|
+
skills:
|
|
62
|
+
- ref: builtin://skills/tdd-implementation
|
|
63
|
+
required: true
|
|
64
|
+
outputs: [red-test-result]
|
|
65
|
+
- id: verify-red
|
|
66
|
+
uses: command.execute
|
|
67
|
+
action: quality.test
|
|
68
|
+
expectedOutcome: test-failure
|
|
69
|
+
needs: [write-tests]
|
|
70
|
+
inputs: [red-test-result]
|
|
71
|
+
outputs: [red-evidence]
|
|
72
|
+
- id: implement
|
|
73
|
+
uses: agent.execute
|
|
74
|
+
actorRole: implementation
|
|
75
|
+
needs: [verify-red]
|
|
76
|
+
inputs: [tasks]
|
|
77
|
+
objective: 在保留 Red 测试的前提下完成最小实现
|
|
78
|
+
skills:
|
|
79
|
+
- ref: builtin://skills/tdd-implementation
|
|
80
|
+
required: true
|
|
81
|
+
outputs: [implementation-result]
|
|
82
|
+
- id: verify-green
|
|
83
|
+
uses: command.execute
|
|
84
|
+
action: quality.test
|
|
85
|
+
expectedOutcome: success
|
|
86
|
+
needs: [implement]
|
|
87
|
+
inputs: [red-evidence]
|
|
88
|
+
outputs: [tdd-evidence]
|
|
89
|
+
- id: review-fix
|
|
90
|
+
uses: control.loop
|
|
91
|
+
needs: [verify-green]
|
|
92
|
+
until: ${artifacts.review-result.approved}
|
|
93
|
+
maxIterations: 5
|
|
94
|
+
steps:
|
|
95
|
+
- id: review
|
|
96
|
+
uses: agent.execute
|
|
97
|
+
actorRole: review
|
|
98
|
+
skills:
|
|
99
|
+
- ref: builtin://skills/code-review
|
|
100
|
+
required: true
|
|
101
|
+
outputs: [review-result]
|
|
102
|
+
- id: fix
|
|
103
|
+
uses: agent.execute
|
|
104
|
+
actorRole: fix
|
|
105
|
+
when: ${artifacts.review-result.approved == false}
|
|
106
|
+
skills:
|
|
107
|
+
- ref: builtin://skills/bug-fixing
|
|
108
|
+
required: true
|
|
109
|
+
- id: verify
|
|
110
|
+
uses: command.execute
|
|
111
|
+
action: quality.verify
|
|
112
|
+
- id: commit
|
|
113
|
+
uses: connector.execute
|
|
114
|
+
action: git.commit
|
|
115
|
+
needs: [review-fix]
|
|
116
|
+
approval: required
|
|
117
|
+
- id: update-issue
|
|
118
|
+
uses: connector.execute
|
|
119
|
+
action: issue.update
|
|
120
|
+
needs: [commit]
|
|
121
|
+
inputs: [implementation-result]
|
|
122
|
+
when: ${bindings.issue.exists}
|
|
123
|
+
- id: update-wiki
|
|
124
|
+
uses: connector.execute
|
|
125
|
+
action: knowledge.publish
|
|
126
|
+
needs: [update-issue]
|
|
127
|
+
inputs: [implementation-result]
|
|
128
|
+
when: ${bindings.knowledge.exists}
|
|
129
|
+
- id: close-issue
|
|
130
|
+
uses: connector.execute
|
|
131
|
+
action: issue.close
|
|
132
|
+
needs: [update-wiki]
|
|
133
|
+
when: ${bindings.issue.exists}
|
|
134
|
+
approval: required
|
|
135
|
+
- id: close
|
|
136
|
+
uses: control.close
|
|
137
|
+
needs: [close-issue]
|
|
138
|
+
gates:
|
|
139
|
+
- id: test
|
|
140
|
+
evidence: trusted
|
|
141
|
+
command: [wspec, gate, test]
|
|
142
|
+
- id: verify-red
|
|
143
|
+
evidence: trusted
|
|
144
|
+
command: [wspec, gate, test, --expect-failure]
|
|
145
|
+
- id: verify-green
|
|
146
|
+
evidence: trusted
|
|
147
|
+
command: [wspec, gate, test]
|
|
148
|
+
changePolicy:
|
|
149
|
+
kind: feature
|
|
150
|
+
allowedPaths: ["**"]
|
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "builtin.agent-action.v1",
|
|
4
|
+
"oneOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"action",
|
|
10
|
+
"workPackage"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"action": {
|
|
14
|
+
"const": "execute"
|
|
15
|
+
},
|
|
16
|
+
"workPackage": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": [
|
|
20
|
+
"version",
|
|
21
|
+
"workItemId",
|
|
22
|
+
"stepId",
|
|
23
|
+
"attemptId",
|
|
24
|
+
"lease",
|
|
25
|
+
"objective",
|
|
26
|
+
"skills",
|
|
27
|
+
"artifacts",
|
|
28
|
+
"constraints",
|
|
29
|
+
"requiredOutputs",
|
|
30
|
+
"gates",
|
|
31
|
+
"resultSchema"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"version": {
|
|
35
|
+
"const": 1
|
|
36
|
+
},
|
|
37
|
+
"workItemId": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^WSS-[A-Za-z0-9-]+$"
|
|
40
|
+
},
|
|
41
|
+
"stepId": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}(?::[1-9][0-9]*:[a-z][a-z0-9-]{0,62})?$"
|
|
44
|
+
},
|
|
45
|
+
"attemptId": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^attempt-.+$"
|
|
48
|
+
},
|
|
49
|
+
"lease": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"token",
|
|
54
|
+
"expiresAt"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"token": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"minLength": 1
|
|
60
|
+
},
|
|
61
|
+
"expiresAt": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": "date-time"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"objective": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"minLength": 1
|
|
70
|
+
},
|
|
71
|
+
"artifactLevel": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
},
|
|
75
|
+
"skills": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": [
|
|
81
|
+
"ref",
|
|
82
|
+
"version",
|
|
83
|
+
"digest",
|
|
84
|
+
"description"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"ref": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1
|
|
90
|
+
},
|
|
91
|
+
"version": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"minLength": 1
|
|
94
|
+
},
|
|
95
|
+
"digest": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"pattern": "^sha256:.+$"
|
|
98
|
+
},
|
|
99
|
+
"description": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"minLength": 1
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"artifacts": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"required": [
|
|
112
|
+
"artifactType",
|
|
113
|
+
"schemaVersion"
|
|
114
|
+
],
|
|
115
|
+
"properties": {
|
|
116
|
+
"artifactType": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
119
|
+
},
|
|
120
|
+
"outputId": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
123
|
+
},
|
|
124
|
+
"artifactId": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"maxLength": 128
|
|
128
|
+
},
|
|
129
|
+
"schemaVersion": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 1
|
|
132
|
+
},
|
|
133
|
+
"path": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"revision": {
|
|
137
|
+
"type": "integer",
|
|
138
|
+
"minimum": 1
|
|
139
|
+
},
|
|
140
|
+
"contentHash": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"pattern": "^sha256:.+$"
|
|
143
|
+
},
|
|
144
|
+
"mediaType": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"contentLevel": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"minLength": 1
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"constraints": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"required": [
|
|
158
|
+
"allowedPaths",
|
|
159
|
+
"forbiddenActions"
|
|
160
|
+
],
|
|
161
|
+
"properties": {
|
|
162
|
+
"allowedPaths": {
|
|
163
|
+
"type": "array",
|
|
164
|
+
"items": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
"uniqueItems": true
|
|
168
|
+
},
|
|
169
|
+
"forbiddenActions": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"uniqueItems": true
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"requiredOutputs": {
|
|
179
|
+
"type": "array",
|
|
180
|
+
"items": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"additionalProperties": false,
|
|
183
|
+
"required": [
|
|
184
|
+
"artifactType",
|
|
185
|
+
"schemaVersion"
|
|
186
|
+
],
|
|
187
|
+
"properties": {
|
|
188
|
+
"artifactType": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
191
|
+
},
|
|
192
|
+
"outputId": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
195
|
+
},
|
|
196
|
+
"schemaVersion": {
|
|
197
|
+
"type": "integer",
|
|
198
|
+
"minimum": 1
|
|
199
|
+
},
|
|
200
|
+
"contentLevel": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"minLength": 1
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"artifactAuthoring": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"additionalProperties": false,
|
|
210
|
+
"required": [
|
|
211
|
+
"version",
|
|
212
|
+
"maxContentBytes",
|
|
213
|
+
"draftRoots"
|
|
214
|
+
],
|
|
215
|
+
"properties": {
|
|
216
|
+
"version": {
|
|
217
|
+
"const": 1
|
|
218
|
+
},
|
|
219
|
+
"maxContentBytes": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"minimum": 1,
|
|
222
|
+
"maximum": 1048576
|
|
223
|
+
},
|
|
224
|
+
"draftRoots": {
|
|
225
|
+
"type": "array",
|
|
226
|
+
"minItems": 1,
|
|
227
|
+
"uniqueItems": true,
|
|
228
|
+
"items": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"minLength": 1
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"gates": {
|
|
236
|
+
"type": "array",
|
|
237
|
+
"items": {
|
|
238
|
+
"type": "object",
|
|
239
|
+
"additionalProperties": false,
|
|
240
|
+
"required": [
|
|
241
|
+
"id",
|
|
242
|
+
"evidence",
|
|
243
|
+
"required"
|
|
244
|
+
],
|
|
245
|
+
"properties": {
|
|
246
|
+
"id": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"pattern": "^[a-z][a-z0-9.-]{0,62}$"
|
|
249
|
+
},
|
|
250
|
+
"evidence": {
|
|
251
|
+
"enum": [
|
|
252
|
+
"trusted",
|
|
253
|
+
"attested",
|
|
254
|
+
"reported"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"required": {
|
|
258
|
+
"type": "boolean"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"resultSchema": {
|
|
264
|
+
"const": "builtin.submit-result.v1"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "object",
|
|
272
|
+
"additionalProperties": false,
|
|
273
|
+
"required": [
|
|
274
|
+
"action",
|
|
275
|
+
"approval"
|
|
276
|
+
],
|
|
277
|
+
"properties": {
|
|
278
|
+
"action": {
|
|
279
|
+
"const": "await_approval"
|
|
280
|
+
},
|
|
281
|
+
"approval": {
|
|
282
|
+
"oneOf": [
|
|
283
|
+
{
|
|
284
|
+
"type": "object",
|
|
285
|
+
"additionalProperties": false,
|
|
286
|
+
"required": [
|
|
287
|
+
"kind",
|
|
288
|
+
"requestId",
|
|
289
|
+
"workItemId",
|
|
290
|
+
"title",
|
|
291
|
+
"digest"
|
|
292
|
+
],
|
|
293
|
+
"properties": {
|
|
294
|
+
"kind": {
|
|
295
|
+
"const": "step"
|
|
296
|
+
},
|
|
297
|
+
"requestId": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"minLength": 1
|
|
300
|
+
},
|
|
301
|
+
"workItemId": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"pattern": "^WSS-[A-Za-z0-9-]+$"
|
|
304
|
+
},
|
|
305
|
+
"title": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"minLength": 1
|
|
308
|
+
},
|
|
309
|
+
"digest": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"pattern": "^sha256:.+$"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "object",
|
|
317
|
+
"additionalProperties": false,
|
|
318
|
+
"required": [
|
|
319
|
+
"kind",
|
|
320
|
+
"requestId",
|
|
321
|
+
"workItemId",
|
|
322
|
+
"title",
|
|
323
|
+
"digest"
|
|
324
|
+
],
|
|
325
|
+
"properties": {
|
|
326
|
+
"kind": {
|
|
327
|
+
"const": "workflow_trust"
|
|
328
|
+
},
|
|
329
|
+
"requestId": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"minLength": 1
|
|
332
|
+
},
|
|
333
|
+
"workItemId": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"pattern": "^WSS-[A-Za-z0-9-]+$"
|
|
336
|
+
},
|
|
337
|
+
"title": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"minLength": 1
|
|
340
|
+
},
|
|
341
|
+
"digest": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"pattern": "^sha256:.+$"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"type": "object",
|
|
349
|
+
"additionalProperties": false,
|
|
350
|
+
"required": [
|
|
351
|
+
"kind",
|
|
352
|
+
"requestId",
|
|
353
|
+
"workItemId",
|
|
354
|
+
"title",
|
|
355
|
+
"digest",
|
|
356
|
+
"provider",
|
|
357
|
+
"action",
|
|
358
|
+
"target",
|
|
359
|
+
"sideEffects"
|
|
360
|
+
],
|
|
361
|
+
"properties": {
|
|
362
|
+
"kind": {
|
|
363
|
+
"const": "external_action"
|
|
364
|
+
},
|
|
365
|
+
"requestId": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"minLength": 1
|
|
368
|
+
},
|
|
369
|
+
"workItemId": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"pattern": "^WSS-[A-Za-z0-9-]+$"
|
|
372
|
+
},
|
|
373
|
+
"title": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"minLength": 1
|
|
376
|
+
},
|
|
377
|
+
"digest": {
|
|
378
|
+
"type": "string",
|
|
379
|
+
"pattern": "^sha256:.+$"
|
|
380
|
+
},
|
|
381
|
+
"provider": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
384
|
+
},
|
|
385
|
+
"action": {
|
|
386
|
+
"enum": [
|
|
387
|
+
"git.commit",
|
|
388
|
+
"issue.update",
|
|
389
|
+
"knowledge.publish",
|
|
390
|
+
"issue.close"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
"target": {
|
|
394
|
+
"type": "object",
|
|
395
|
+
"additionalProperties": false,
|
|
396
|
+
"required": [
|
|
397
|
+
"kind",
|
|
398
|
+
"stableId"
|
|
399
|
+
],
|
|
400
|
+
"properties": {
|
|
401
|
+
"kind": {
|
|
402
|
+
"enum": [
|
|
403
|
+
"repository",
|
|
404
|
+
"issue",
|
|
405
|
+
"knowledge"
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
"stableId": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"minLength": 1,
|
|
411
|
+
"maxLength": 4096
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"sideEffects": {
|
|
416
|
+
"type": "array",
|
|
417
|
+
"minItems": 1,
|
|
418
|
+
"uniqueItems": true,
|
|
419
|
+
"items": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"minLength": 1,
|
|
422
|
+
"maxLength": 256
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"type": "object",
|
|
433
|
+
"additionalProperties": false,
|
|
434
|
+
"required": [
|
|
435
|
+
"action",
|
|
436
|
+
"problems"
|
|
437
|
+
],
|
|
438
|
+
"properties": {
|
|
439
|
+
"action": {
|
|
440
|
+
"const": "blocked"
|
|
441
|
+
},
|
|
442
|
+
"problems": {
|
|
443
|
+
"type": "array",
|
|
444
|
+
"minItems": 1,
|
|
445
|
+
"items": {
|
|
446
|
+
"type": "object",
|
|
447
|
+
"additionalProperties": false,
|
|
448
|
+
"required": [
|
|
449
|
+
"code",
|
|
450
|
+
"message",
|
|
451
|
+
"retryable"
|
|
452
|
+
],
|
|
453
|
+
"properties": {
|
|
454
|
+
"code": {
|
|
455
|
+
"type": "string",
|
|
456
|
+
"pattern": "^WSSPEC_[A-Z0-9_]+$"
|
|
457
|
+
},
|
|
458
|
+
"message": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"minLength": 1
|
|
461
|
+
},
|
|
462
|
+
"retryable": {
|
|
463
|
+
"type": "boolean"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"type": "object",
|
|
472
|
+
"additionalProperties": false,
|
|
473
|
+
"required": [
|
|
474
|
+
"action",
|
|
475
|
+
"summary"
|
|
476
|
+
],
|
|
477
|
+
"properties": {
|
|
478
|
+
"action": {
|
|
479
|
+
"const": "completed"
|
|
480
|
+
},
|
|
481
|
+
"summary": {
|
|
482
|
+
"type": "object",
|
|
483
|
+
"additionalProperties": false,
|
|
484
|
+
"required": [
|
|
485
|
+
"workItemId",
|
|
486
|
+
"status",
|
|
487
|
+
"message"
|
|
488
|
+
],
|
|
489
|
+
"properties": {
|
|
490
|
+
"workItemId": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"pattern": "^WSS-[A-Za-z0-9-]+$"
|
|
493
|
+
},
|
|
494
|
+
"status": {
|
|
495
|
+
"enum": [
|
|
496
|
+
"closed",
|
|
497
|
+
"cancelled"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"message": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"minLength": 1
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "builtin.application-acquire-input.v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"root",
|
|
8
|
+
"workItemId",
|
|
9
|
+
"actor"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"root": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
},
|
|
16
|
+
"workItemId": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^WSS-[A-Za-z0-9-]+$"
|
|
19
|
+
},
|
|
20
|
+
"actor": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|