sdd-agent-platform 0.4.2 → 0.5.1
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 +34 -41
- package/node_modules/@sdd-agent-platform/core/dist/ai-tools.js +56 -73
- package/node_modules/@sdd-agent-platform/core/dist/ai-tools.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/ingestion.js +9 -64
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/ingestion.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-evidence.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-evidence.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-result.js +17 -26
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-result.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/config/init-project.d.ts +8 -7
- package/node_modules/@sdd-agent-platform/core/dist/config/init-project.js +8 -12
- package/node_modules/@sdd-agent-platform/core/dist/config/init-project.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/config/project-config.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/config/project-config.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/config/project-config.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/config/starter-documents.d.ts +3 -4
- package/node_modules/@sdd-agent-platform/core/dist/config/starter-documents.js +377 -411
- package/node_modules/@sdd-agent-platform/core/dist/config/starter-documents.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/context/build-package.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/context/build-package.js +18 -25
- package/node_modules/@sdd-agent-platform/core/dist/context/build-package.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/context/evidence-summary.js +8 -26
- package/node_modules/@sdd-agent-platform/core/dist/context/evidence-summary.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/context/log-worker.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/context/log-worker.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/context-offload/contracts.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/contracts.d.ts +6 -1
- package/node_modules/@sdd-agent-platform/core/dist/contracts.js +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/contracts.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/delegation/model.d.ts +0 -3
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.d.ts +0 -3
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.js +4 -7
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/document-chain.js +3 -13
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/document-chain.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/local-run-index.js +1 -9
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/local-run-index.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/project.js +9 -9
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/project.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/registries.js +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/registries.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-evidence.js +4 -4
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-evidence.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-trust.js +24 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-trust.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/runtime-contracts.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/runtime-contracts.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/doctor/doctor.js +43 -180
- package/node_modules/@sdd-agent-platform/core/dist/doctor/doctor.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.js +7 -14
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime/coordination.js +110 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime/coordination.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/background-executor.js +4 -4
- package/node_modules/@sdd-agent-platform/core/dist/execution/background-executor.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/execution/foreground-subagents.js +3 -3
- package/node_modules/@sdd-agent-platform/core/dist/execution/foreground-subagents.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/execution/host-invocation.js +85 -86
- package/node_modules/@sdd-agent-platform/core/dist/execution/host-invocation.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/execution/resident-worker.js +2 -3
- package/node_modules/@sdd-agent-platform/core/dist/execution/resident-worker.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/execution/stage-team-runtime.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/execution/stage-team-runtime.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/governance/policy.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/governance/policy.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/governance/policy.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/instructions.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/instructions.js +31 -67
- package/node_modules/@sdd-agent-platform/core/dist/instructions.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/decision-gate.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/decision-gate.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.d.ts +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.js +59 -85
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph/contracts.d.ts +159 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph/contracts.js +7 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph/kernel.d.ts +16 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph/kernel.js +461 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph/kernel.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle-graph.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/contracts.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/runtime.d.ts +2 -12
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/runtime.js +32 -80
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/runtime.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-capability-catalog.d.ts +2 -5
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-capability-catalog.js +27 -69
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-capability-catalog.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-registry.js +118 -34
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-registry.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-runtime-static.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-runtime-static.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/capability-sources.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/command-team-runtime.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/command-team-runtime.js +8 -15
- package/node_modules/@sdd-agent-platform/core/dist/registries/command-team-runtime.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/eval-learning-context.js +4 -4
- package/node_modules/@sdd-agent-platform/core/dist/registries/eval-learning-context.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/plan-scout-domains.d.ts +13 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/plan-scout-domains.js +76 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/plan-scout-domains.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/query-status.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/registries/query-status.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/skill-capabilities.js +7 -7
- package/node_modules/@sdd-agent-platform/core/dist/registries/skill-capabilities.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-capabilities.js +4 -4
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-capabilities.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-plugins.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-plugins.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/worker-adapters.js +11 -11
- package/node_modules/@sdd-agent-platform/core/dist/registries/worker-adapters.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/workflow-gates.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/registries/workflow-gates.js +21 -21
- package/node_modules/@sdd-agent-platform/core/dist/registries/workflow-gates.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/risk/consumer-diagnostics.js +2 -1
- package/node_modules/@sdd-agent-platform/core/dist/risk/consumer-diagnostics.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/risk/kernel.js +6 -6
- package/node_modules/@sdd-agent-platform/core/dist/risk/kernel.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/risk/legacy-adapters.js +11 -23
- package/node_modules/@sdd-agent-platform/core/dist/risk/legacy-adapters.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/risk/workflow-gates.d.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/risk/workflow-gates.js +18 -20
- package/node_modules/@sdd-agent-platform/core/dist/risk/workflow-gates.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime.d.ts +0 -2
- package/node_modules/@sdd-agent-platform/core/dist/router/route-projection.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/route-projection.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/routing.js +16 -48
- package/node_modules/@sdd-agent-platform/core/dist/router/routing.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-import.js +11 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-import.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-validation.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-validation.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/stage-route-binding.d.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/router/stage-route-binding.js +20 -28
- package/node_modules/@sdd-agent-platform/core/dist/router/stage-route-binding.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router.d.ts +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/router.js +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/router.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state/artifacts.d.ts +6 -6
- package/node_modules/@sdd-agent-platform/core/dist/run-state/artifacts.js +13 -124
- package/node_modules/@sdd-agent-platform/core/dist/run-state/artifacts.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.js +5 -7
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state/model.d.ts +28 -28
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.d.ts +3 -2
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.js +15 -66
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-state.js +26 -36
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-state.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.d.ts +0 -4
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.js +5 -51
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state.d.ts +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state.js +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/build.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/build.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/findings.js +7 -16
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/findings.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/model.d.ts +1 -2
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.d.ts +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.js +1 -4
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/runtime-projection-p0.d.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/runtime-projection-p0.js +11 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-projection-p0.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/artifact-depth.d.ts +14 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/artifact-depth.js +179 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/artifact-depth.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.d.ts +0 -2
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.js +10 -97
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/run-binding.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/run-binding.js +6 -8
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/run-binding.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.d.ts +5 -2
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.js +85 -68
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-rendering.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-rendering.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/spec-entry.js +40 -0
- package/node_modules/@sdd-agent-platform/core/dist/spec-entry.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/spec-manager-contracts.d.ts +12 -0
- package/node_modules/@sdd-agent-platform/core/dist/spec-manager-contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/spec-manager-contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-artifacts.d.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/stage-artifacts.js +19 -26
- package/node_modules/@sdd-agent-platform/core/dist/stage-artifacts.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration-contracts.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration-contracts.js +3 -6
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration-contracts.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration.d.ts +111 -263
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration.js +1272 -1124
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/runtime.js +5 -5
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/runtime.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/status/project-status.d.ts +1 -44
- package/node_modules/@sdd-agent-platform/core/dist/status/project-status.js +47 -170
- package/node_modules/@sdd-agent-platform/core/dist/status/project-status.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/storage/runtime-store.js +73 -73
- package/node_modules/@sdd-agent-platform/core/dist/subagents/contracts.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/subagents/runtime.js +7 -7
- package/node_modules/@sdd-agent-platform/core/dist/subagents/runtime.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/task-execution-contract.d.ts +167 -0
- package/node_modules/@sdd-agent-platform/core/dist/task-execution-contract.js +377 -0
- package/node_modules/@sdd-agent-platform/core/dist/task-execution-contract.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/fixtures.js +329 -314
- package/node_modules/@sdd-agent-platform/core/dist/test-support/fixtures.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/test-support/run-state.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/run-state.js +53 -7
- package/node_modules/@sdd-agent-platform/core/dist/test-support/run-state.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/truth-reconciliation.js +9 -12
- package/node_modules/@sdd-agent-platform/core/dist/truth-reconciliation.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/goal-verify.d.ts +0 -48
- package/node_modules/@sdd-agent-platform/core/dist/verification/goal-verify.js +1 -520
- package/node_modules/@sdd-agent-platform/core/dist/verification/goal-verify.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.d.ts +5 -5
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.js +14 -14
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.js +111 -159
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/task-evidence-judgment.d.ts +49 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/task-evidence-judgment.js +521 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/task-evidence-judgment.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/test-runtime.js +21 -21
- package/node_modules/@sdd-agent-platform/core/dist/verification/test-runtime.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.d.ts +0 -18
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.js +5 -27
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/verify-contract.js +45 -45
- package/node_modules/@sdd-agent-platform/core/dist/verification/verify-contract.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification.d.ts +3 -3
- package/node_modules/@sdd-agent-platform/core/dist/verification.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/verification.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/work-units/contracts.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/evidence-packet.js +9 -227
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/evidence-packet.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.js +9 -50
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.js +4 -42
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/types.d.ts +2 -3
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.js +2 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/dependencies.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.js +23 -63
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.d.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.js +43 -65
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/package.json +5 -2
- package/node_modules/@sdd-agent-platform/core/src/ai-tools.test.ts +238 -185
- package/node_modules/@sdd-agent-platform/core/src/ai-tools.ts +56 -73
- package/node_modules/@sdd-agent-platform/core/src/artifacts/ingestion.test.ts +189 -227
- package/node_modules/@sdd-agent-platform/core/src/artifacts/ingestion.ts +222 -278
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-evidence.test.ts +28 -28
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-evidence.ts +301 -301
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-result.test.ts +181 -181
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-result.ts +231 -240
- package/node_modules/@sdd-agent-platform/core/src/artifacts/templates.ts +99 -99
- package/node_modules/@sdd-agent-platform/core/src/artifacts.ts +4 -4
- package/node_modules/@sdd-agent-platform/core/src/coding-facts/contracts.ts +79 -79
- package/node_modules/@sdd-agent-platform/core/src/coding-facts.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/config/init-project.test.ts +314 -318
- package/node_modules/@sdd-agent-platform/core/src/config/init-project.ts +128 -123
- package/node_modules/@sdd-agent-platform/core/src/config/project-config.ts +265 -265
- package/node_modules/@sdd-agent-platform/core/src/config/project-detection.ts +147 -147
- package/node_modules/@sdd-agent-platform/core/src/config/starter-documents.ts +400 -432
- package/node_modules/@sdd-agent-platform/core/src/context/budget.ts +30 -30
- package/node_modules/@sdd-agent-platform/core/src/context/build-package.ts +304 -311
- package/node_modules/@sdd-agent-platform/core/src/context/command-summary.ts +45 -45
- package/node_modules/@sdd-agent-platform/core/src/context/context-build.test.ts +188 -189
- package/node_modules/@sdd-agent-platform/core/src/context/evidence-summary.ts +144 -163
- package/node_modules/@sdd-agent-platform/core/src/context/log-worker.ts +48 -48
- package/node_modules/@sdd-agent-platform/core/src/context/source-refs.ts +41 -41
- package/node_modules/@sdd-agent-platform/core/src/context-offload/contracts.ts +47 -47
- package/node_modules/@sdd-agent-platform/core/src/context-offload/runtime.test.ts +71 -71
- package/node_modules/@sdd-agent-platform/core/src/context-offload/runtime.ts +178 -178
- package/node_modules/@sdd-agent-platform/core/src/context-offload.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/context.ts +6 -6
- package/node_modules/@sdd-agent-platform/core/src/contracts/issues.ts +13 -13
- package/node_modules/@sdd-agent-platform/core/src/contracts.test.ts +9 -9
- package/node_modules/@sdd-agent-platform/core/src/contracts.ts +121 -116
- package/node_modules/@sdd-agent-platform/core/src/delegation/delegation.test.ts +183 -183
- package/node_modules/@sdd-agent-platform/core/src/delegation/model.ts +23 -26
- package/node_modules/@sdd-agent-platform/core/src/delegation/queue.ts +58 -58
- package/node_modules/@sdd-agent-platform/core/src/delegation/run-state.ts +14 -14
- package/node_modules/@sdd-agent-platform/core/src/delegation/state-machine.ts +90 -90
- package/node_modules/@sdd-agent-platform/core/src/delegation/validation.ts +124 -127
- package/node_modules/@sdd-agent-platform/core/src/delegation.ts +26 -26
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/ai-entries.ts +28 -28
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/document-chain.ts +104 -112
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/local-run-index.ts +19 -27
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/project.ts +84 -84
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/registries.ts +252 -251
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-evidence.ts +330 -330
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-records.ts +79 -79
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-trust.ts +128 -107
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/runtime-contracts.ts +300 -300
- package/node_modules/@sdd-agent-platform/core/src/doctor/doctor.test.ts +628 -755
- package/node_modules/@sdd-agent-platform/core/src/doctor/doctor.ts +301 -453
- package/node_modules/@sdd-agent-platform/core/src/doctor/model.ts +13 -13
- package/node_modules/@sdd-agent-platform/core/src/doctor/summary.ts +11 -11
- package/node_modules/@sdd-agent-platform/core/src/doctor.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/evidence/lookup.ts +80 -88
- package/node_modules/@sdd-agent-platform/core/src/evidence-runtime/contracts.ts +48 -48
- package/node_modules/@sdd-agent-platform/core/src/evidence-runtime.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/execution/agent-execution-records.ts +195 -195
- package/node_modules/@sdd-agent-platform/core/src/execution/background-executor.test.ts +187 -235
- package/node_modules/@sdd-agent-platform/core/src/execution/background-executor.ts +305 -305
- package/node_modules/@sdd-agent-platform/core/src/execution/foreground-subagents.test.ts +97 -106
- package/node_modules/@sdd-agent-platform/core/src/execution/foreground-subagents.ts +453 -453
- package/node_modules/@sdd-agent-platform/core/src/execution/host-invocation.ts +225 -226
- package/node_modules/@sdd-agent-platform/core/src/execution/resident-worker.test.ts +132 -143
- package/node_modules/@sdd-agent-platform/core/src/execution/resident-worker.ts +436 -437
- package/node_modules/@sdd-agent-platform/core/src/execution/stage-team-runtime.test.ts +102 -102
- package/node_modules/@sdd-agent-platform/core/src/execution/stage-team-runtime.ts +271 -271
- package/node_modules/@sdd-agent-platform/core/src/execution/wave-executor.test.ts +111 -121
- package/node_modules/@sdd-agent-platform/core/src/execution/wave-executor.ts +231 -231
- package/node_modules/@sdd-agent-platform/core/src/execution.ts +5 -5
- package/node_modules/@sdd-agent-platform/core/src/governance/policy.test.ts +57 -65
- package/node_modules/@sdd-agent-platform/core/src/governance/policy.ts +175 -175
- package/node_modules/@sdd-agent-platform/core/src/governance.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/instructions.test.ts +80 -64
- package/node_modules/@sdd-agent-platform/core/src/instructions.ts +32 -68
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/decision-gate.test.ts +174 -174
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/decision-gate.ts +373 -373
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/rendering.ts +29 -29
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/risk-signals.ts +146 -146
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/ship.test.ts +47 -47
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/ship.ts +255 -280
- package/node_modules/@sdd-agent-platform/core/src/lifecycle-graph/contracts.ts +179 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle-graph/kernel.ts +522 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle-graph.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle.ts +4 -4
- package/node_modules/@sdd-agent-platform/core/src/orchestration/contracts.ts +50 -50
- package/node_modules/@sdd-agent-platform/core/src/orchestration/index.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/orchestration/runtime.ts +331 -394
- package/node_modules/@sdd-agent-platform/core/src/path-safety.test.ts +22 -22
- package/node_modules/@sdd-agent-platform/core/src/phase8-contracts.test.ts +243 -242
- package/node_modules/@sdd-agent-platform/core/src/phase8-projection-compat.test.ts +152 -153
- package/node_modules/@sdd-agent-platform/core/src/phase8-risk-kernel.test.ts +277 -277
- package/node_modules/@sdd-agent-platform/core/src/phase9-lifecycle-graph.test.ts +103 -0
- package/node_modules/@sdd-agent-platform/core/src/planning/task-graph.test.ts +88 -88
- package/node_modules/@sdd-agent-platform/core/src/planning/task-graph.ts +222 -222
- package/node_modules/@sdd-agent-platform/core/src/planning/wave-plan.test.ts +79 -79
- package/node_modules/@sdd-agent-platform/core/src/planning/wave-plan.ts +160 -160
- package/node_modules/@sdd-agent-platform/core/src/planning.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-capability-catalog.ts +426 -473
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-registry.ts +230 -146
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-runtime-static.ts +142 -142
- package/node_modules/@sdd-agent-platform/core/src/registries/capability-sources.ts +253 -253
- package/node_modules/@sdd-agent-platform/core/src/registries/command-team-runtime.ts +302 -309
- package/node_modules/@sdd-agent-platform/core/src/registries/eval-learning-context.ts +246 -246
- package/node_modules/@sdd-agent-platform/core/src/registries/plan-scout-domains.ts +89 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/query-status.ts +119 -119
- package/node_modules/@sdd-agent-platform/core/src/registries/registries.test.ts +454 -445
- package/node_modules/@sdd-agent-platform/core/src/registries/skill-capabilities.ts +37 -37
- package/node_modules/@sdd-agent-platform/core/src/registries/tool-capabilities.ts +135 -135
- package/node_modules/@sdd-agent-platform/core/src/registries/tool-plugins.ts +132 -132
- package/node_modules/@sdd-agent-platform/core/src/registries/worker-adapters.ts +144 -144
- package/node_modules/@sdd-agent-platform/core/src/registries/workflow-gates.ts +111 -111
- package/node_modules/@sdd-agent-platform/core/src/registries.ts +42 -42
- package/node_modules/@sdd-agent-platform/core/src/risk/consumer-diagnostics.ts +98 -97
- package/node_modules/@sdd-agent-platform/core/src/risk/contracts.ts +63 -63
- package/node_modules/@sdd-agent-platform/core/src/risk/kernel.ts +233 -233
- package/node_modules/@sdd-agent-platform/core/src/risk/legacy-adapters.ts +251 -263
- package/node_modules/@sdd-agent-platform/core/src/risk/workflow-gates.ts +203 -205
- package/node_modules/@sdd-agent-platform/core/src/risk.ts +5 -5
- package/node_modules/@sdd-agent-platform/core/src/router/agent-runtime-config.ts +327 -327
- package/node_modules/@sdd-agent-platform/core/src/router/agent-runtime.ts +388 -390
- package/node_modules/@sdd-agent-platform/core/src/router/profile-resolution.ts +154 -154
- package/node_modules/@sdd-agent-platform/core/src/router/risk-policy.ts +33 -33
- package/node_modules/@sdd-agent-platform/core/src/router/route-cache.ts +100 -100
- package/node_modules/@sdd-agent-platform/core/src/router/route-projection.ts +356 -356
- package/node_modules/@sdd-agent-platform/core/src/router/route-sdd-task.test.ts +428 -665
- package/node_modules/@sdd-agent-platform/core/src/router/route-sdd-task.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/router/routing-rules.ts +73 -73
- package/node_modules/@sdd-agent-platform/core/src/router/routing.ts +189 -223
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-import.ts +464 -453
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-inspection.ts +124 -124
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-registry.ts +123 -123
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-validation.ts +277 -277
- package/node_modules/@sdd-agent-platform/core/src/router/stage-route-binding.ts +273 -279
- package/node_modules/@sdd-agent-platform/core/src/router/team-mode.ts +170 -170
- package/node_modules/@sdd-agent-platform/core/src/router.ts +5 -6
- package/node_modules/@sdd-agent-platform/core/src/run-state/artifacts.ts +126 -240
- package/node_modules/@sdd-agent-platform/core/src/run-state/events.ts +27 -27
- package/node_modules/@sdd-agent-platform/core/src/run-state/inspect-run.ts +172 -172
- package/node_modules/@sdd-agent-platform/core/src/run-state/invocation-ledger.ts +109 -109
- package/node_modules/@sdd-agent-platform/core/src/run-state/model.ts +252 -253
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-index.test.ts +80 -52
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-index.ts +301 -352
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-state.test.ts +70 -118
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-state.ts +406 -416
- package/node_modules/@sdd-agent-platform/core/src/run-state/task-evidence.ts +198 -252
- package/node_modules/@sdd-agent-platform/core/src/run-state/timing.ts +146 -146
- package/node_modules/@sdd-agent-platform/core/src/run-state.ts +8 -9
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/build.ts +60 -60
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/findings.ts +249 -256
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/model.ts +139 -140
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis.test.ts +65 -66
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/runtime-paths.ts +249 -253
- package/node_modules/@sdd-agent-platform/core/src/runtime-projection-p0.test.ts +101 -96
- package/node_modules/@sdd-agent-platform/core/src/runtime-projection-p0.ts +314 -292
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/artifact-depth.test.ts +380 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/artifact-depth.ts +207 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/context.ts +111 -111
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/document-hashes.ts +207 -306
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/run-binding.ts +95 -97
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-inspection.ts +39 -39
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-parser.test.ts +467 -523
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-parser.ts +738 -709
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-rendering.ts +81 -81
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs.ts +5 -5
- package/node_modules/@sdd-agent-platform/core/src/spec-manager-contracts.ts +13 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-artifacts.ts +435 -450
- package/node_modules/@sdd-agent-platform/core/src/stage-collaboration-contracts.ts +316 -322
- package/node_modules/@sdd-agent-platform/core/src/stage-collaboration.test.ts +2963 -2902
- package/node_modules/@sdd-agent-platform/core/src/stage-collaboration.ts +5856 -5831
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/contracts.ts +40 -40
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/runtime.test.ts +209 -209
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/runtime.ts +360 -360
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/status/project-status.test.ts +288 -511
- package/node_modules/@sdd-agent-platform/core/src/status/project-status.ts +651 -851
- package/node_modules/@sdd-agent-platform/core/src/status.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/storage/json-io.ts +10 -10
- package/node_modules/@sdd-agent-platform/core/src/storage/runtime-store.test.ts +489 -681
- package/node_modules/@sdd-agent-platform/core/src/storage/runtime-store.ts +1981 -1981
- package/node_modules/@sdd-agent-platform/core/src/subagents/contracts.ts +45 -45
- package/node_modules/@sdd-agent-platform/core/src/subagents/runtime.test.ts +232 -232
- package/node_modules/@sdd-agent-platform/core/src/subagents/runtime.ts +307 -307
- package/node_modules/@sdd-agent-platform/core/src/subagents.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/task-execution-contract.test.ts +141 -0
- package/node_modules/@sdd-agent-platform/core/src/task-execution-contract.ts +566 -0
- package/node_modules/@sdd-agent-platform/core/src/task-risk-profile.ts +193 -193
- package/node_modules/@sdd-agent-platform/core/src/test-support/fixtures.ts +413 -398
- package/node_modules/@sdd-agent-platform/core/src/test-support/run-state.ts +102 -56
- package/node_modules/@sdd-agent-platform/core/src/test-support.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/truth-reconciliation.test.ts +72 -72
- package/node_modules/@sdd-agent-platform/core/src/truth-reconciliation.ts +9 -12
- package/node_modules/@sdd-agent-platform/core/src/verification/rendering.ts +137 -137
- package/node_modules/@sdd-agent-platform/core/src/verification/review-gate.test.ts +77 -84
- package/node_modules/@sdd-agent-platform/core/src/verification/review-gate.ts +77 -77
- package/node_modules/@sdd-agent-platform/core/src/verification/single-task-loop.ts +455 -506
- package/node_modules/@sdd-agent-platform/core/src/verification/{goal-verify.test.ts → task-evidence-judgment.test.ts} +261 -261
- package/node_modules/@sdd-agent-platform/core/src/verification/{goal-verify.ts → task-evidence-judgment.ts} +619 -619
- package/node_modules/@sdd-agent-platform/core/src/verification/test-runtime.ts +1190 -1190
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-cache.ts +106 -106
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-wave.ts +513 -556
- package/node_modules/@sdd-agent-platform/core/src/verification/verify-contract.ts +334 -334
- package/node_modules/@sdd-agent-platform/core/src/verification.ts +8 -8
- package/node_modules/@sdd-agent-platform/core/src/work-units/contracts.ts +26 -26
- package/node_modules/@sdd-agent-platform/core/src/work-units/runtime.test.ts +88 -88
- package/node_modules/@sdd-agent-platform/core/src/work-units/runtime.ts +112 -112
- package/node_modules/@sdd-agent-platform/core/src/work-units.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/evidence-packet.ts +190 -425
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/hard-checks.test.ts +169 -507
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/hard-checks.ts +136 -182
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/policy.test.ts +135 -174
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/policy.ts +153 -194
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/types.ts +111 -115
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/affected-file-conflicts.ts +95 -93
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/dependencies.test.ts +32 -32
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/dependencies.ts +114 -114
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/latest-eligible-run.ts +184 -224
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/migration-recovery.ts +158 -158
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/repair-contract.ts +77 -77
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve-task-run.ts +114 -114
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve.test.ts +969 -956
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve.ts +967 -992
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/runtime-projections.ts +712 -712
- package/node_modules/@sdd-agent-platform/core/src/workflow-state.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/worktree/isolation.ts +130 -130
- package/node_modules/@sdd-agent-platform/core/src/worktree/lifecycle.ts +269 -269
- package/node_modules/@sdd-agent-platform/core/src/worktree/worktree.test.ts +150 -150
- package/node_modules/@sdd-agent-platform/core/src/worktree.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/tsconfig.json +15 -15
- package/package.json +2 -2
- package/packages/cli/dist/args.js +2 -2
- package/packages/cli/dist/args.js.map +1 -1
- package/packages/cli/dist/commands/ai-tools.js +2 -13
- package/packages/cli/dist/commands/ai-tools.js.map +1 -1
- package/packages/cli/dist/commands/{verifies.d.ts → artifact.d.ts} +1 -1
- package/packages/cli/dist/commands/artifact.js +168 -0
- package/packages/cli/dist/commands/artifact.js.map +1 -0
- package/packages/cli/dist/commands/context.js +1 -1
- package/packages/cli/dist/commands/context.js.map +1 -1
- package/packages/cli/dist/commands/evidence.js.map +1 -0
- package/packages/cli/dist/commands/execution.js +127 -49
- package/packages/cli/dist/commands/execution.js.map +1 -1
- package/packages/cli/dist/commands/governance.js +1 -1
- package/packages/cli/dist/commands/governance.js.map +1 -1
- package/packages/cli/dist/commands/init.js +1 -6
- package/packages/cli/dist/commands/init.js.map +1 -1
- package/packages/cli/dist/commands/instructions.d.ts +1 -1
- package/packages/cli/dist/commands/instructions.js +15 -1
- package/packages/cli/dist/commands/instructions.js.map +1 -1
- package/packages/cli/dist/commands/registry/runtime.js +63 -40
- package/packages/cli/dist/commands/registry/runtime.js.map +1 -1
- package/packages/cli/dist/commands/run.js +13 -52
- package/packages/cli/dist/commands/run.js.map +1 -1
- package/packages/cli/dist/commands/stage-close.d.ts +60 -0
- package/packages/cli/dist/commands/stage-close.js +270 -41
- package/packages/cli/dist/commands/stage-close.js.map +1 -1
- package/packages/cli/dist/commands/status.js +9 -68
- package/packages/cli/dist/commands/status.js.map +1 -1
- package/packages/cli/dist/commands/tasks.js.map +1 -1
- package/packages/cli/dist/dispatch.js +6 -26
- package/packages/cli/dist/dispatch.js.map +1 -1
- package/packages/cli/dist/help.js +153 -159
- package/packages/cli/dist/help.js.map +1 -1
- package/packages/cli/dist/renderers/artifacts.d.ts +5 -0
- package/packages/cli/dist/renderers/artifacts.js +43 -0
- package/packages/cli/dist/renderers/artifacts.js.map +1 -0
- package/packages/cli/dist/renderers/doctor.js +1 -2
- package/packages/cli/dist/renderers/doctor.js.map +1 -1
- package/packages/cli/dist/renderers/execution.js +1 -1
- package/packages/cli/dist/renderers/execution.js.map +1 -1
- package/packages/cli/dist/renderers/json.d.ts +0 -1
- package/packages/cli/dist/renderers/json.js +0 -3
- package/packages/cli/dist/renderers/json.js.map +1 -1
- package/packages/cli/dist/renderers/registry-runtime.d.ts +1 -2
- package/packages/cli/dist/renderers/registry-runtime.js +0 -20
- package/packages/cli/dist/renderers/registry-runtime.js.map +1 -1
- package/packages/cli/dist/renderers/router.js +1 -1
- package/packages/cli/dist/renderers/router.js.map +1 -1
- package/packages/cli/dist/renderers/workflow.d.ts +53 -0
- package/packages/cli/dist/renderers/workflow.js +93 -34
- package/packages/cli/dist/renderers/workflow.js.map +1 -1
- package/packages/cli/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/cli/package.json +2 -2
- package/packages/core/dist/ai-tools.js +56 -73
- package/packages/core/dist/ai-tools.js.map +1 -1
- package/packages/core/dist/artifacts/ingestion.js +9 -64
- package/packages/core/dist/artifacts/ingestion.js.map +1 -1
- package/packages/core/dist/artifacts/sdd-evidence.js +1 -1
- package/packages/core/dist/artifacts/sdd-evidence.js.map +1 -1
- package/packages/core/dist/artifacts/sdd-result.js +17 -26
- package/packages/core/dist/artifacts/sdd-result.js.map +1 -1
- package/packages/core/dist/config/init-project.d.ts +8 -7
- package/packages/core/dist/config/init-project.js +8 -12
- package/packages/core/dist/config/init-project.js.map +1 -1
- package/packages/core/dist/config/project-config.d.ts +1 -1
- package/packages/core/dist/config/project-config.js +1 -1
- package/packages/core/dist/config/project-config.js.map +1 -1
- package/packages/core/dist/config/starter-documents.d.ts +3 -4
- package/packages/core/dist/config/starter-documents.js +377 -411
- package/packages/core/dist/config/starter-documents.js.map +1 -1
- package/packages/core/dist/context/build-package.d.ts +1 -1
- package/packages/core/dist/context/build-package.js +18 -25
- package/packages/core/dist/context/build-package.js.map +1 -1
- package/packages/core/dist/context/evidence-summary.js +8 -26
- package/packages/core/dist/context/evidence-summary.js.map +1 -1
- package/packages/core/dist/context/log-worker.js +2 -2
- package/packages/core/dist/context/log-worker.js.map +1 -1
- package/packages/core/dist/context-offload/contracts.d.ts +1 -1
- package/packages/core/dist/contracts.d.ts +6 -1
- package/packages/core/dist/contracts.js +5 -0
- package/packages/core/dist/contracts.js.map +1 -1
- package/packages/core/dist/delegation/model.d.ts +0 -3
- package/packages/core/dist/delegation/validation.d.ts +0 -3
- package/packages/core/dist/delegation/validation.js +4 -7
- package/packages/core/dist/delegation/validation.js.map +1 -1
- package/packages/core/dist/doctor/checks/document-chain.js +3 -13
- package/packages/core/dist/doctor/checks/document-chain.js.map +1 -1
- package/packages/core/dist/doctor/checks/local-run-index.js +1 -9
- package/packages/core/dist/doctor/checks/local-run-index.js.map +1 -1
- package/packages/core/dist/doctor/checks/project.js +9 -9
- package/packages/core/dist/doctor/checks/project.js.map +1 -1
- package/packages/core/dist/doctor/checks/registries.js +1 -0
- package/packages/core/dist/doctor/checks/registries.js.map +1 -1
- package/packages/core/dist/doctor/checks/run-evidence.js +4 -4
- package/packages/core/dist/doctor/checks/run-evidence.js.map +1 -1
- package/packages/core/dist/doctor/checks/run-trust.js +24 -0
- package/packages/core/dist/doctor/checks/run-trust.js.map +1 -1
- package/packages/core/dist/doctor/checks/runtime-contracts.js +2 -2
- package/packages/core/dist/doctor/checks/runtime-contracts.js.map +1 -1
- package/packages/core/dist/doctor/doctor.js +43 -180
- package/packages/core/dist/doctor/doctor.js.map +1 -1
- package/packages/core/dist/evidence/lookup.d.ts +1 -1
- package/packages/core/dist/evidence/lookup.js +7 -14
- package/packages/core/dist/evidence/lookup.js.map +1 -1
- package/packages/core/dist/evidence-runtime/coordination.js +110 -0
- package/packages/core/dist/evidence-runtime/coordination.js.map +1 -0
- package/packages/core/dist/execution/background-executor.js +4 -4
- package/packages/core/dist/execution/background-executor.js.map +1 -1
- package/packages/core/dist/execution/foreground-subagents.js +3 -3
- package/packages/core/dist/execution/foreground-subagents.js.map +1 -1
- package/packages/core/dist/execution/host-invocation.js +85 -86
- package/packages/core/dist/execution/host-invocation.js.map +1 -1
- package/packages/core/dist/execution/resident-worker.js +2 -3
- package/packages/core/dist/execution/resident-worker.js.map +1 -1
- package/packages/core/dist/execution/stage-team-runtime.js +2 -2
- package/packages/core/dist/execution/stage-team-runtime.js.map +1 -1
- package/packages/core/dist/governance/policy.d.ts +1 -1
- package/packages/core/dist/governance/policy.js +1 -1
- package/packages/core/dist/governance/policy.js.map +1 -1
- package/packages/core/dist/instructions.d.ts +1 -1
- package/packages/core/dist/instructions.js +31 -67
- package/packages/core/dist/instructions.js.map +1 -1
- package/packages/core/dist/lifecycle/decision-gate.js +1 -1
- package/packages/core/dist/lifecycle/decision-gate.js.map +1 -1
- package/packages/core/dist/lifecycle/ship.d.ts +0 -1
- package/packages/core/dist/lifecycle/ship.js +59 -85
- package/packages/core/dist/lifecycle/ship.js.map +1 -1
- package/packages/core/dist/lifecycle-graph/contracts.d.ts +159 -0
- package/packages/core/dist/lifecycle-graph/contracts.js +7 -0
- package/packages/core/dist/lifecycle-graph/contracts.js.map +1 -0
- package/packages/core/dist/lifecycle-graph/kernel.d.ts +16 -0
- package/packages/core/dist/lifecycle-graph/kernel.js +461 -0
- package/packages/core/dist/lifecycle-graph/kernel.js.map +1 -0
- package/packages/core/dist/lifecycle-graph.d.ts +2 -0
- package/packages/core/dist/lifecycle-graph.js +3 -0
- package/packages/core/dist/lifecycle-graph.js.map +1 -0
- package/packages/core/dist/orchestration/contracts.d.ts +1 -1
- package/packages/core/dist/orchestration/runtime.d.ts +2 -12
- package/packages/core/dist/orchestration/runtime.js +32 -80
- package/packages/core/dist/orchestration/runtime.js.map +1 -1
- package/packages/core/dist/registries/agent-capability-catalog.d.ts +2 -5
- package/packages/core/dist/registries/agent-capability-catalog.js +27 -69
- package/packages/core/dist/registries/agent-capability-catalog.js.map +1 -1
- package/packages/core/dist/registries/agent-registry.js +118 -34
- package/packages/core/dist/registries/agent-registry.js.map +1 -1
- package/packages/core/dist/registries/agent-runtime-static.js +1 -1
- package/packages/core/dist/registries/agent-runtime-static.js.map +1 -1
- package/packages/core/dist/registries/capability-sources.js +1 -1
- package/packages/core/dist/registries/command-team-runtime.d.ts +1 -1
- package/packages/core/dist/registries/command-team-runtime.js +8 -15
- package/packages/core/dist/registries/command-team-runtime.js.map +1 -1
- package/packages/core/dist/registries/eval-learning-context.js +4 -4
- package/packages/core/dist/registries/eval-learning-context.js.map +1 -1
- package/packages/core/dist/registries/plan-scout-domains.d.ts +13 -0
- package/packages/core/dist/registries/plan-scout-domains.js +76 -0
- package/packages/core/dist/registries/plan-scout-domains.js.map +1 -0
- package/packages/core/dist/registries/query-status.js +2 -2
- package/packages/core/dist/registries/query-status.js.map +1 -1
- package/packages/core/dist/registries/skill-capabilities.js +7 -7
- package/packages/core/dist/registries/skill-capabilities.js.map +1 -1
- package/packages/core/dist/registries/tool-capabilities.js +4 -4
- package/packages/core/dist/registries/tool-capabilities.js.map +1 -1
- package/packages/core/dist/registries/tool-plugins.js +2 -2
- package/packages/core/dist/registries/tool-plugins.js.map +1 -1
- package/packages/core/dist/registries/worker-adapters.js +11 -11
- package/packages/core/dist/registries/worker-adapters.js.map +1 -1
- package/packages/core/dist/registries/workflow-gates.d.ts +1 -1
- package/packages/core/dist/registries/workflow-gates.js +21 -21
- package/packages/core/dist/registries/workflow-gates.js.map +1 -1
- package/packages/core/dist/risk/consumer-diagnostics.js +2 -1
- package/packages/core/dist/risk/consumer-diagnostics.js.map +1 -1
- package/packages/core/dist/risk/kernel.js +6 -6
- package/packages/core/dist/risk/kernel.js.map +1 -1
- package/packages/core/dist/risk/legacy-adapters.js +11 -23
- package/packages/core/dist/risk/legacy-adapters.js.map +1 -1
- package/packages/core/dist/risk/workflow-gates.d.ts +2 -2
- package/packages/core/dist/risk/workflow-gates.js +18 -20
- package/packages/core/dist/risk/workflow-gates.js.map +1 -1
- package/packages/core/dist/router/agent-runtime.d.ts +0 -2
- package/packages/core/dist/router/route-projection.js +1 -1
- package/packages/core/dist/router/route-projection.js.map +1 -1
- package/packages/core/dist/router/routing.js +16 -48
- package/packages/core/dist/router/routing.js.map +1 -1
- package/packages/core/dist/router/runtime-import.js +11 -1
- package/packages/core/dist/router/runtime-import.js.map +1 -1
- package/packages/core/dist/router/runtime-validation.js +2 -2
- package/packages/core/dist/router/runtime-validation.js.map +1 -1
- package/packages/core/dist/router/stage-route-binding.d.ts +2 -2
- package/packages/core/dist/router/stage-route-binding.js +20 -28
- package/packages/core/dist/router/stage-route-binding.js.map +1 -1
- package/packages/core/dist/router.d.ts +0 -1
- package/packages/core/dist/router.js +0 -1
- package/packages/core/dist/router.js.map +1 -1
- package/packages/core/dist/run-state/artifacts.d.ts +6 -6
- package/packages/core/dist/run-state/artifacts.js +13 -124
- package/packages/core/dist/run-state/artifacts.js.map +1 -1
- package/packages/core/dist/run-state/inspect-run.d.ts +2 -0
- package/packages/core/dist/run-state/inspect-run.js +5 -7
- package/packages/core/dist/run-state/inspect-run.js.map +1 -1
- package/packages/core/dist/run-state/model.d.ts +28 -28
- package/packages/core/dist/run-state/run-index.d.ts +3 -2
- package/packages/core/dist/run-state/run-index.js +15 -66
- package/packages/core/dist/run-state/run-index.js.map +1 -1
- package/packages/core/dist/run-state/run-state.js +26 -36
- package/packages/core/dist/run-state/run-state.js.map +1 -1
- package/packages/core/dist/run-state/task-evidence.d.ts +0 -4
- package/packages/core/dist/run-state/task-evidence.js +5 -51
- package/packages/core/dist/run-state/task-evidence.js.map +1 -1
- package/packages/core/dist/run-state.d.ts +0 -1
- package/packages/core/dist/run-state.js +0 -1
- package/packages/core/dist/run-state.js.map +1 -1
- package/packages/core/dist/runtime-analysis/build.js +1 -1
- package/packages/core/dist/runtime-analysis/build.js.map +1 -1
- package/packages/core/dist/runtime-analysis/findings.js +7 -16
- package/packages/core/dist/runtime-analysis/findings.js.map +1 -1
- package/packages/core/dist/runtime-analysis/model.d.ts +1 -2
- package/packages/core/dist/runtime-paths.d.ts +0 -1
- package/packages/core/dist/runtime-paths.js +1 -4
- package/packages/core/dist/runtime-paths.js.map +1 -1
- package/packages/core/dist/runtime-projection-p0.d.ts +2 -2
- package/packages/core/dist/runtime-projection-p0.js +11 -0
- package/packages/core/dist/runtime-projection-p0.js.map +1 -1
- package/packages/core/dist/sdd-docs/artifact-depth.d.ts +14 -0
- package/packages/core/dist/sdd-docs/artifact-depth.js +179 -0
- package/packages/core/dist/sdd-docs/artifact-depth.js.map +1 -0
- package/packages/core/dist/sdd-docs/document-hashes.d.ts +0 -2
- package/packages/core/dist/sdd-docs/document-hashes.js +10 -97
- package/packages/core/dist/sdd-docs/document-hashes.js.map +1 -1
- package/packages/core/dist/sdd-docs/run-binding.d.ts +1 -1
- package/packages/core/dist/sdd-docs/run-binding.js +6 -8
- package/packages/core/dist/sdd-docs/run-binding.js.map +1 -1
- package/packages/core/dist/sdd-docs/task-parser.d.ts +5 -2
- package/packages/core/dist/sdd-docs/task-parser.js +85 -68
- package/packages/core/dist/sdd-docs/task-parser.js.map +1 -1
- package/packages/core/dist/sdd-docs/task-rendering.js +2 -2
- package/packages/core/dist/sdd-docs/task-rendering.js.map +1 -1
- package/packages/core/dist/spec-entry.js +40 -0
- package/packages/core/dist/spec-entry.js.map +1 -0
- package/packages/core/dist/spec-manager-contracts.d.ts +12 -0
- package/packages/core/dist/spec-manager-contracts.js +2 -0
- package/packages/core/dist/spec-manager-contracts.js.map +1 -0
- package/packages/core/dist/stage-artifacts.d.ts +2 -2
- package/packages/core/dist/stage-artifacts.js +19 -26
- package/packages/core/dist/stage-artifacts.js.map +1 -1
- package/packages/core/dist/stage-collaboration-contracts.d.ts +1 -1
- package/packages/core/dist/stage-collaboration-contracts.js +3 -6
- package/packages/core/dist/stage-collaboration-contracts.js.map +1 -1
- package/packages/core/dist/stage-collaboration.d.ts +111 -263
- package/packages/core/dist/stage-collaboration.js +1272 -1124
- package/packages/core/dist/stage-collaboration.js.map +1 -1
- package/packages/core/dist/stage-runtime/runtime.js +5 -5
- package/packages/core/dist/stage-runtime/runtime.js.map +1 -1
- package/packages/core/dist/status/project-status.d.ts +1 -44
- package/packages/core/dist/status/project-status.js +47 -170
- package/packages/core/dist/status/project-status.js.map +1 -1
- package/packages/core/dist/storage/runtime-store.js +73 -73
- package/packages/core/dist/subagents/contracts.d.ts +1 -1
- package/packages/core/dist/subagents/runtime.js +7 -7
- package/packages/core/dist/subagents/runtime.js.map +1 -1
- package/packages/core/dist/sync-back/apply.d.ts +1 -0
- package/packages/core/dist/sync-back/apply.js +2 -0
- package/packages/core/dist/sync-back/apply.js.map +1 -0
- package/packages/core/dist/sync-back/inspect.d.ts +1 -0
- package/packages/core/dist/sync-back/inspect.js +2 -0
- package/packages/core/dist/sync-back/inspect.js.map +1 -0
- package/packages/core/dist/sync-back.d.ts +1 -0
- package/packages/core/dist/sync-back.js +2 -0
- package/packages/core/dist/sync-back.js.map +1 -0
- package/packages/core/dist/task-execution-contract.d.ts +167 -0
- package/packages/core/dist/task-execution-contract.js +377 -0
- package/packages/core/dist/task-execution-contract.js.map +1 -0
- package/packages/core/dist/test-support/fixtures.js +329 -314
- package/packages/core/dist/test-support/fixtures.js.map +1 -1
- package/packages/core/dist/test-support/run-state.d.ts +1 -0
- package/packages/core/dist/test-support/run-state.js +53 -7
- package/packages/core/dist/test-support/run-state.js.map +1 -1
- package/packages/core/dist/truth-reconciliation.js +9 -12
- package/packages/core/dist/truth-reconciliation.js.map +1 -1
- package/packages/core/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/core/dist/verification/goal-verify.d.ts +0 -48
- package/packages/core/dist/verification/goal-verify.js +1 -520
- package/packages/core/dist/verification/goal-verify.js.map +1 -1
- package/packages/core/dist/verification/rendering.d.ts +5 -5
- package/packages/core/dist/verification/rendering.js +14 -14
- package/packages/core/dist/verification/rendering.js.map +1 -1
- package/packages/core/dist/verification/single-task-loop.d.ts +1 -0
- package/packages/core/dist/verification/single-task-loop.js +111 -159
- package/packages/core/dist/verification/single-task-loop.js.map +1 -1
- package/packages/core/dist/verification/task-evidence-judgment.d.ts +49 -0
- package/packages/core/dist/verification/task-evidence-judgment.js +521 -0
- package/packages/core/dist/verification/task-evidence-judgment.js.map +1 -0
- package/packages/core/dist/verification/test-runtime.js +21 -21
- package/packages/core/dist/verification/test-runtime.js.map +1 -1
- package/packages/core/dist/verification/validation-wave.d.ts +0 -18
- package/packages/core/dist/verification/validation-wave.js +5 -27
- package/packages/core/dist/verification/validation-wave.js.map +1 -1
- package/packages/core/dist/verification/verify-contract.js +45 -45
- package/packages/core/dist/verification/verify-contract.js.map +1 -1
- package/packages/core/dist/verification.d.ts +3 -3
- package/packages/core/dist/verification.js +2 -2
- package/packages/core/dist/verification.js.map +1 -1
- package/packages/core/dist/work-units/contracts.d.ts +1 -1
- package/packages/core/dist/workflow-gate/evidence-packet.js +9 -227
- package/packages/core/dist/workflow-gate/evidence-packet.js.map +1 -1
- package/packages/core/dist/workflow-gate/hard-checks.js +9 -50
- package/packages/core/dist/workflow-gate/hard-checks.js.map +1 -1
- package/packages/core/dist/workflow-gate/policy.js +4 -42
- package/packages/core/dist/workflow-gate/policy.js.map +1 -1
- package/packages/core/dist/workflow-gate/types.d.ts +2 -3
- package/packages/core/dist/workflow-state/affected-file-conflicts.d.ts +1 -0
- package/packages/core/dist/workflow-state/affected-file-conflicts.js +2 -1
- package/packages/core/dist/workflow-state/affected-file-conflicts.js.map +1 -1
- package/packages/core/dist/workflow-state/dependencies.js +1 -1
- package/packages/core/dist/workflow-state/latest-eligible-run.d.ts +1 -0
- package/packages/core/dist/workflow-state/latest-eligible-run.js +23 -63
- package/packages/core/dist/workflow-state/latest-eligible-run.js.map +1 -1
- package/packages/core/dist/workflow-state/resolve.d.ts +2 -2
- package/packages/core/dist/workflow-state/resolve.js +43 -65
- package/packages/core/dist/workflow-state/resolve.js.map +1 -1
- package/packages/core/package.json +5 -2
- package/tsconfig.build.json +6 -7
- package/node_modules/@sdd-agent-platform/core/src/verification/single-task-loop.test.ts +0 -269
- package/node_modules/@sdd-agent-platform/core/src/verification/test-runtime.test.ts +0 -492
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-wave.test.ts +0 -383
- package/node_modules/@sdd-agent-platform/core/src/verification/verify-contract.test.ts +0 -188
- package/packages/cli/dist/commands/lifecycle.d.ts +0 -6
- package/packages/cli/dist/commands/lifecycle.js +0 -125
- package/packages/cli/dist/commands/lifecycle.js.map +0 -1
- package/packages/cli/dist/commands/test.d.ts +0 -6
- package/packages/cli/dist/commands/test.js +0 -373
- package/packages/cli/dist/commands/test.js.map +0 -1
- package/packages/cli/dist/commands/verifies.js +0 -87
- package/packages/cli/dist/commands/verifies.js.map +0 -1
- package/packages/cli/dist/commands/verify.d.ts +0 -6
- package/packages/cli/dist/commands/verify.js +0 -330
- package/packages/cli/dist/commands/verify.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { SDD_VERSION } from './ai-tools.js';
|
|
|
2
2
|
|
|
3
3
|
export const SDD_INSTRUCTIONS_CONTRACT = 'sdd-instructions-v1';
|
|
4
4
|
|
|
5
|
-
export type InstructionAction = 'overview' | 'init' | 'doctor' | 'update' | 'spec' | 'plan' | 'tasks' | '
|
|
5
|
+
export type InstructionAction = 'overview' | 'init' | 'doctor' | 'update' | 'spec' | 'plan' | 'tasks' | 'execute' | 'ship';
|
|
6
6
|
|
|
7
7
|
export interface SddInstructionPayload {
|
|
8
8
|
contract: typeof SDD_INSTRUCTIONS_CONTRACT;
|
|
@@ -17,26 +17,25 @@ export interface SddInstructionPayload {
|
|
|
17
17
|
|
|
18
18
|
const INSTRUCTION_PAYLOADS: Record<InstructionAction, Omit<SddInstructionPayload, 'contract' | 'version' | 'action'>> = {
|
|
19
19
|
overview: {
|
|
20
|
-
summary: 'Route natural-language SDD intent
|
|
21
|
-
requiredCommands: ['sdd status', 'sdd
|
|
20
|
+
summary: 'Route natural-language SDD intent through the fixed public lifecycle spec -> plan -> tasks -> execute -> ship while keeping runtime projection, accepted evidence, checkpoint, and release readiness as CLI/core-owned truth.',
|
|
21
|
+
requiredCommands: ['sdd status', 'sdd doctor', 'sdd instructions spec --json', 'sdd instructions plan --json', 'sdd instructions tasks --json', 'sdd instructions execute --json', 'sdd execute --branch <branch> --json', 'sdd ship close --branch <branch> --json'],
|
|
22
22
|
allowedSideEffects: ['read .sdd state', 'read specs documents', 'read generated AI entries'],
|
|
23
23
|
forbiddenSideEffects: ['background write', 'worktree creation', 'auto commit', 'force push', 'publish or push release artifacts without explicit human confirmation'],
|
|
24
24
|
nextSteps: [
|
|
25
25
|
'Treat /sdd as a natural-language intent router, then run sdd status first to see branch/source context and the recommended next command; report only workflow state, blocker/current task, and next action unless the user asks for full detail.',
|
|
26
26
|
'Dynamic routing comes from CLI/core output; follow the recommended next command and do not infer dynamic state from generated markdown.',
|
|
27
|
-
'Use
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'If status
|
|
31
|
-
'
|
|
32
|
-
'After test closure is accepted, continue through /sdd:test with sdd test close --target goal-verify so runtime can record truthAlignment before ship readiness.'
|
|
27
|
+
'Use the fixed public lifecycle: /sdd:spec -> /sdd:plan -> /sdd:tasks -> /sdd:execute -> /sdd:ship.',
|
|
28
|
+
'Use /sdd:tasks to produce AI-ready implementation tickets with work-unit context, boundaries, rollback units, completion evidence, validation expected results, and failure routes; verification-design semantics belong in tasks, not a public verifies stage.',
|
|
29
|
+
'Use /sdd:execute for implementation, review, validation, debug, checkpoint, and evidence-judgment lanes; do not expose do/test/verify/goal-verify as public lifecycle stages.',
|
|
30
|
+
'If status reports generated entry drift, missing config, compatibility drift, or projection drift, run sdd doctor and follow its current-run repair or rebuild recommendation before normal execute/ship.',
|
|
31
|
+
'If status recommends a pending task, run sdd tasks inspect <task_id> and execute only the approved task boundary; scout/implementer/reviewer/validator participation should be recorded as stage evidence rather than hidden in the main chat.'
|
|
33
32
|
]
|
|
34
33
|
},
|
|
35
34
|
init: {
|
|
36
35
|
summary: 'Initialize .sdd project configuration and managed AI tool entries for the current repository; workflow partition documents are entered through the spec stage, not init.',
|
|
37
36
|
requiredCommands: ['sdd init --ai claude-code', 'sdd status', 'sdd instructions spec --json', 'sdd doctor'],
|
|
38
37
|
allowedSideEffects: ['write .sdd/project.yml', 'initialize runtime.sqlite state', 'write managed generated AI entries'],
|
|
39
|
-
forbiddenSideEffects: ['create workflow partition documents unless explicitly using the spec stage
|
|
38
|
+
forbiddenSideEffects: ['create workflow partition documents unless explicitly using the spec stage', 'overwrite foreign AI entry files', 'background write', 'auto commit'],
|
|
40
39
|
nextSteps: ['Run sdd init --ai claude-code.', 'Run sdd status to inspect current Git branch partition state and the recommended next command.', 'Use the spec stage to create or refine specs/<partition>/spec.md; omitted --branch uses the current Git branch, explicit --branch uses the requested partition.', 'Run sdd doctor after initialization.']
|
|
41
40
|
},
|
|
42
41
|
doctor: {
|
|
@@ -54,75 +53,40 @@ const INSTRUCTION_PAYLOADS: Record<InstructionAction, Omit<SddInstructionPayload
|
|
|
54
53
|
nextSteps: ['Run sdd update.', 'Run sdd doctor to verify drift is resolved.']
|
|
55
54
|
},
|
|
56
55
|
spec: {
|
|
57
|
-
summary: '
|
|
58
|
-
requiredCommands: ['sdd status', 'sdd
|
|
59
|
-
allowedSideEffects: ['read project context', '
|
|
60
|
-
forbiddenSideEffects: ['implement code', 'design technical solution in spec.md', 'silently advance to plan', 'auto commit'],
|
|
61
|
-
nextSteps: ['Resolve the workflow partition: omit --branch to use the current Git branch, or pass --branch <name> only when intentionally writing another partition.', '
|
|
56
|
+
summary: 'Enter the spec stage through projection-backed SpecStageWorkOrderHandoff, then let spec-manager produce or refine specs/<partition>/spec.md V3 as the only runtime primary spec artifact for plan/tasks.',
|
|
57
|
+
requiredCommands: ['sdd status', 'sdd instructions spec --json', 'read specs/<partition>/spec.md', 'write specs/<partition>/spec.md', 'sdd spec close --branch <branch> --json'],
|
|
58
|
+
allowedSideEffects: ['read project context', 'read the resolved specs/<partition> directory', 'write final spec.md V3 after spec-manager synthesis', 'optionally write spec-stage side logs under .sdd/runs/<branch>/spec/'],
|
|
59
|
+
forbiddenSideEffects: ['implement code', 'design technical solution in spec.md', 'write spec-stage subagent output as runtime primary evidence', 'silently advance to plan', 'auto commit'],
|
|
60
|
+
nextSteps: ['Resolve the workflow partition: omit --branch to use the current Git branch, or pass --branch <name> only when intentionally writing another partition.', 'Run sdd instructions spec --json and read specStageWorkOrderHandoff; if it is missing, stop on the runtime authority repair reason instead of writing spec.md directly.', 'Hand off to spec-manager with the user request, current spec.md when present, the spec.md V3 artifact-depth template, and the projection-backed handoff.', 'Spec-manager uses the content chain surface request -> reframed problem -> real intent -> scope boundary -> acceptance criterion -> evidence target; it resolves knowable or researchable uncertainty through scout evidence when useful and asks the user only for blocking user decisions.', 'Spec-reviewer pressure should identify changelog-only specs, hidden user decisions, weak acceptance evidence, and plan/task leakage as repairable content findings, not runtime primary evidence.', 'Final spec.md V3 should contain Problem Reframing / Intent Discovery, Change Delta, Scope, Requirements with reasoning, Acceptance Criteria / Evidence Targets, Definitions / Rules, Planning Constraints / Signals, Open Questions / Ambiguity Ledger, and Close Quality Evidence.', 'Treat scout output, review output, and manager trace as internal or side-log material; runtime spec close accepts final spec.md ref/hash plus boundary facts only.', 'Do not include legacy lifecycle metadata, runtime gate metadata, candidate/analyzer handoff wording, implementation plan, task list, validation plan, or subagent trace in spec.md.', 'If blocking user decisions remain before plan, spec-manager must ask the user before producing a close-ready final spec.md.', 'Run sdd spec close --branch <branch> --json after final spec.md V3 is ready; plan/tasks must consume only the runtime accepted spec ref/hash.']
|
|
62
61
|
},
|
|
63
62
|
plan: {
|
|
64
|
-
summary: '
|
|
65
|
-
requiredCommands: ['sdd status', '
|
|
66
|
-
allowedSideEffects: ['read project context', 'read spec document', 'write
|
|
67
|
-
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'implement code', 'silently advance to tasks', 'bypass unresolved spec gaps'],
|
|
68
|
-
nextSteps: ['
|
|
63
|
+
summary: 'Enter the plan stage through projection-backed PlanStageWorkOrderHandoff, then let plan-manager produce specs/<partition>/plan.md V3 as an AI-ready technical design artifact for tasks.',
|
|
64
|
+
requiredCommands: ['sdd status', 'sdd instructions plan --json', 'read planStageWorkOrderHandoff.acceptedSpecRef', 'read accepted specs/<partition>/spec.md by matching hash', 'write specs/<partition>/plan.md', 'sdd plan close --branch <branch> --json'],
|
|
65
|
+
allowedSideEffects: ['read project context', 'read runtime-accepted spec document by ref/hash', 'write final plan.md V3 after plan-manager synthesis', 'optionally write plan-stage side logs under .sdd/runs/<branch>/plan/'],
|
|
66
|
+
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'implement code', 'silently advance to tasks', 'bypass unresolved spec gaps', 'write plan-stage side logs as runtime primary evidence', 'put task topology or task decomposition in plan.md'],
|
|
67
|
+
nextSteps: ['Run sdd instructions plan --json and read planStageWorkOrderHandoff; if it is missing, stop on the runtime authority repair reason instead of planning from latest spec.md.', 'Verify the opened specs/<partition>/spec.md content hash matches planStageWorkOrderHandoff.acceptedSpecRef before planning.', 'Hand off to plan-manager with the accepted spec, current plan.md when present, the plan.md V3 technical design depth template, and the projection-backed handoff.', 'Plan-manager uses the content chain code/data fact -> design implication -> technical decision -> risk control -> validation scenario, grounded in concrete project files, APIs, SQL, UI, config, or tests.', 'Use plan-scout as bounded evidence-to-plan input when code/data/domain facts are missing, and use plan-review-agent to detect dense-but-shallow plans, vague mappings, missing risk controls, weak validation hooks, and task-list leakage.', 'Do not consume spec-stage side logs, subagent payload, warnings, or spec-manager internal trace as plan input; do not expose plan-stage side logs to tasks-stage as primary input.', 'Final plan.md V3 should contain Upstream Spec Trace, Planning Problem / Strategy Framing, Current Implementation Map, Target Design Overview, Change Topology / Responsibility Boundaries, Interface / API / Schema Design, State / Data / Concurrency Design, Key Design Decisions, Alternatives Considered, Risk Controls, Validation Strategy, Rollout / Rollback / Compatibility, Task-stage Constraints, Open Questions / User Decisions, and Plan Close Quality Evidence.', 'If blocking design decisions or open questions remain before tasks, plan-manager must ask the user before producing a close-ready final plan.md.', 'Plan side logs and professional agent findings may exist as optional/internal audit material, but runtime plan close accepts final plan.md ref/hash plus boundary facts only.', 'Do not include task graph, task units, task decomposition, code diff, validation results, runtime gate metadata, candidate/analyzer wording, or subagent trace in plan.md.', 'Run sdd plan close --branch <branch> --json after final plan.md V3 is ready; tasks must consume only the runtime accepted spec and plan refs/hashes.']
|
|
69
68
|
},
|
|
70
69
|
tasks: {
|
|
71
|
-
summary: '
|
|
72
|
-
requiredCommands: ['sdd status', '
|
|
73
|
-
allowedSideEffects: ['read spec and plan documents', 'write
|
|
74
|
-
forbiddenSideEffects: ['runtime-authored Markdown artifacts', '
|
|
75
|
-
nextSteps: ['
|
|
70
|
+
summary: 'Enter the tasks stage through projection-backed TasksStageWorkOrderHandoff, then let tasks-manager produce specs/<partition>/tasks.md V2 as a readable execute playbook, not a runtime metadata form.',
|
|
71
|
+
requiredCommands: ['sdd status', 'sdd instructions tasks --json', 'read tasksStageWorkOrderHandoff.acceptedSpecRef', 'read tasksStageWorkOrderHandoff.acceptedPlanRef', 'read accepted specs/<partition>/spec.md and plan.md by matching hashes', 'sdd tasks format', 'write specs/<partition>/tasks.md', 'sdd tasks close --branch <branch> --json'],
|
|
72
|
+
allowedSideEffects: ['read runtime-accepted spec and plan documents by ref/hash', 'write final tasks.md V2 after tasks-manager synthesis', 'optionally write tasks-stage side logs under .sdd/runs/<branch>/tasks/'],
|
|
73
|
+
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'implement code', 'execute dependency waves', 'run validation commands', 'silently advance to execute', 'turn tasks.md into project-management backlog', 'write tasks-stage side logs as runtime primary evidence'],
|
|
74
|
+
nextSteps: ['Run sdd instructions tasks --json and read tasksStageWorkOrderHandoff; if it is missing, stop on the runtime authority repair reason instead of slicing from latest docs.', 'Verify opened specs/<partition>/spec.md and plan.md content hashes match tasksStageWorkOrderHandoff accepted upstream refs before task slicing.', 'Hand off to tasks-manager with accepted spec, accepted plan, current tasks.md when present, the tasks.md V2 execution playbook rubric, and the projection-backed handoff.', 'Tasks-manager builds coverage across requirements, acceptance criteria, plan decisions, risks, and non-goals, then writes task units using the chain: plan decision -> work-unit boundary -> dependency / rollback rationale -> internal execution sequence -> completion evidence -> one-to-one validation task -> failure route.', 'Do not mechanically split by file type: if backend Java, SQL, XML/Dubbo wiring, UI/config, or other surfaces are one rollback unit, keep them in one implementation task and write ordered internal steps for execute.', 'Every implementation task must hand off to exactly one validation task, and every validation task must validate exactly one implementation task; split broad validation scenarios into per-task checks instead of many-to-one mappings.', 'Prefer readable execute context over schema-first metadata: each task should explain why it exists, where execute should start, what to change, what not to change, what proves completion, which validation task proves it, and where failure routes.', 'Implementation tasks do code review and basic code sanity only; validation closure belongs to validation task units and execute validation lanes.', 'Use task-slicer when rollback unit, dependency unlock, validation closure, shared writable ownership, or parallelism safety is unclear.', 'Use task-review-agent to detect TOO_THIN_FOR_EXECUTE, CHECKLIST_TASKS, SCHEMA_FIRST_TASKS, BOUNDARY_CONFLICT, VALIDATION_INSUFFICIENT, oversized-without-sequence, many-to-one validation, scope expansion, missing expected results, and missing failure routes.', 'Keep only minimal structured anchors needed for routing and parsing; do not add obligation matrices, runtime projection payloads, or metadata fields just to force quality.', 'Tasks side logs and review notes may exist as optional/internal audit material, but runtime tasks close accepts final tasks.md ref/hash plus boundary facts only.', 'Do not include code diff, validation execution results, long-term backlog state, runtime gate metadata, candidate/analyzer wording, subagent trace, or obligation/projection payloads in tasks.md.', 'Run sdd tasks close --branch <branch> --json after final tasks.md V2 is ready; execute must consume only the runtime accepted tasks ref/hash plus minimal task routing/read model.']
|
|
76
75
|
},
|
|
77
|
-
|
|
78
|
-
summary: '
|
|
79
|
-
requiredCommands: ['sdd status', '
|
|
80
|
-
allowedSideEffects: ['
|
|
81
|
-
forbiddenSideEffects: ['runtime-authored Markdown artifacts', '
|
|
82
|
-
nextSteps: ['Run sdd status and confirm
|
|
83
|
-
},
|
|
84
|
-
test: {
|
|
85
|
-
summary: 'Use /sdd:test as the user-visible bundle for test -> goal-verify: bind validation intent to an accepted verify.md validation unit, close test-stage evidence, then continue through the same bundle so runtime records truthAlignment before ship.',
|
|
86
|
-
requiredCommands: ['sdd status', 'sdd instructions test --json', 'sdd test <validation_unit_id-or-validation_text> --branch <branch>', 'write .sdd/runs/<branch>/test/test-execution-vN.md', 'write .sdd/runs/<branch>/test/test-review-vN.md', 'write .sdd/runs/<branch>/test/test-manager-vN.md', 'write .sdd/runs/<branch>/test/test-collaboration-contract-vN.md', 'sdd test close --branch <branch> --json', 'write .sdd/runs/<branch>/goal-verify/goal-verification-vN.md', 'sdd test close --branch <branch> --target goal-verify --json'],
|
|
87
|
-
allowedSideEffects: ['run declared validation-unit commands', 'write agent-authored .sdd/runs/<branch>/test/*.md evidence', 'write agent-authored .sdd/runs/<branch>/goal-verify/*.md evidence after a runtime handoff to goal-verify', 'update runtime.sqlite validation and closure projections'],
|
|
88
|
-
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'modify source files outside validation command effects', 'author or refresh verify.md', 'auto commit', 'publish or push', 'treat command success alone as semantic PASS'],
|
|
89
|
-
nextSteps: ['Run sdd status and resolve the verify.md validation-unit boundary plus branch.', 'Confirm accepted verify.md exists for the selected branch; if missing or stale, return through the /sdd:tasks bundle with target=verifies.', 'Run the declared validation unit through sdd test <validation_unit_id-or-validation_text>; PASS command output stays in runtime read models by default, while failure/blocker diagnostics may retain scoped payload refs.', 'Use sdd test task|batch|wave only for explicit low-level diagnostics, replay, or narrowed override flags.', 'Have test-runner/reviewer/test-manager author .sdd/runs/<branch>/test/*.md evidence including a StageCollaborationContract.', 'Run sdd test close --branch <branch> --json; runtime validates evidence refs/contracts and writes only .sdd/runtime.sqlite.', 'If runtime/status targets goal-verify inside the test bundle, have goal-verifier/reviewer author .sdd/runs/<branch>/goal-verify/*.md evidence.', 'Continue with sdd test close --branch <branch> --target goal-verify --json; runtime records truthAlignment before ship readiness.']
|
|
90
|
-
},
|
|
91
|
-
do: {
|
|
92
|
-
summary: 'Semantically bind /sdd:do or sdd do task input to one accepted task boundary, then run do-stage collaboration: implementer/reviewer/do-manager write .sdd/runs/<branch>/do/*.md evidence and runtime reconciles gate truth into SQLite.',
|
|
93
|
-
requiredCommands: ['sdd status', 'sdd instructions do --json', 'sdd tasks inspect <bound_task_id>', 'write/update source files within the bound task boundary', 'write .sdd/runs/<branch>/do/implementation-vN.md', 'write .sdd/runs/<branch>/do/code-review-vN.md', 'write .sdd/runs/<branch>/do/do-manager-vN.md', 'sdd do task <task_id-or-task-text> --branch <branch>'],
|
|
94
|
-
allowedSideEffects: ['modify files within selected task boundary', 'write agent-authored .sdd/runs/<branch>/do/*.md evidence files', 'update runtime.sqlite projections and run state'],
|
|
95
|
-
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'background write', 'worktree creation', 'auto commit', 'expand beyond selected task boundary without checkpoint', 'mark missing evidence as PASS'],
|
|
96
|
-
nextSteps: ['Run sdd status, then let CLI/core bind the user request or recommended next command to exactly one accepted task boundary; task id and accepted task title/text are equivalent when they bind to the same task.', 'If binding is ambiguous, missing, stale, or boundary-expanding, stop and follow the CLI nextAction instead of implementing.', 'Run sdd instructions do --json and sdd tasks inspect <bound_task_id>.', 'Restate only the bound task Boundary, blocking gaps, and validation commands before implementation.', 'Implement only within affected_files and capture changed file refs/hashes in .sdd/runs/<branch>/do/implementation-vN.md frontmatter.', 'Have code-reviewer write .sdd/runs/<branch>/do/code-review-vN.md against the implementation evidence hash, whether approved or blocked.', 'Have do-manager write .sdd/runs/<branch>/do/do-manager-vN.md as a closure request that references the reviewed implementation and review hash.', 'Run sdd do task <task_id-or-task-text> --branch <branch>; runtime must read .sdd/runs/<branch>/do/*.md, validate frontmatter/hash/review/manager closure, and write only SQLite projections/run state.', 'Report run id, final status, binding target, blocking gaps, accepted evidence refs, and next gate; for verification proceed to sdd test <validation_unit_id-or-validation_text> --branch <branch>.']
|
|
97
|
-
},
|
|
98
|
-
verify: {
|
|
99
|
-
summary: 'Run low-level task acceptance coverage from runtime-selected reviewer/validator evidence; `sdd test <validation_unit_id-or-validation_text>` is the primary runtime gate.',
|
|
100
|
-
requiredCommands: ['sdd status', 'sdd instructions verify --json', 'sdd verify task <task_id> [--branch <branch>] [--run <run_id>]'],
|
|
101
|
-
allowedSideEffects: ['write acceptance coverage runtime evidence', 'update runtime.sqlite diagnostic verification state'],
|
|
102
|
-
forbiddenSideEffects: ['auto commit', 'force push', 'auto-fix failures', 'mark completed with blocking validation gaps'],
|
|
103
|
-
nextSteps: ['Run goal-level verify without --run for the latest eligible partition/task run, unless inspecting an explicit run.', 'Use sdd test <validation_unit_id-or-validation_text> for primary lifecycle judgment.']
|
|
76
|
+
execute: {
|
|
77
|
+
summary: 'Use /sdd:execute to consume accepted tasks.md ref/hash and the selected task brief, then implement or validate from readable task context without reinterpreting spec.md or plan.md.',
|
|
78
|
+
requiredCommands: ['sdd status', 'sdd instructions execute --json', 'sdd tasks inspect <bound_task_id>', 'sdd execute --branch <branch> --json', 'sdd execute close --branch <branch> --json'],
|
|
79
|
+
allowedSideEffects: ['modify files within selected task boundaries', 'run declared validation commands', 'write optional agent-authored execute side evidence under .sdd/runs/<branch>/execute/', 'update runtime.sqlite projections and run state through runtime commands'],
|
|
80
|
+
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'background write', 'worktree creation', 'auto commit', 'expand beyond selected task boundary without checkpoint', 'treat command success alone as semantic PASS', 'publish or push'],
|
|
81
|
+
nextSteps: ['Run sdd status and confirm the active public stage is execute or the recommended next command routes to execute.', 'Use the accepted tasks -> execute handoff and selected task brief as the primary input; read spec.md/plan.md only as shallow constraints for ambiguity, acceptance mapping, and goal validation.', 'If the current tasks.md hash differs from the accepted tasks ref/hash, stop and route back to tasks close/repair before implementation.', 'Use implementation board lanes for implementation/review/debug work and validation/checkpoint/evidence-judgment work; report them as execute lane state, not separate public stages.', 'Start from task context: why the task exists, where to start, allowed/forbidden boundary, completion evidence, validation handoff, and failure route. Do not repair tasks.md during execute unless runtime routes back to tasks.', 'Close the public stage through sdd execute close --branch <branch> --json; execute close validates accepted tasks ref/hash and projections, not fixed execute Markdown evidence files.', 'Stop and route back to tasks/plan/spec if the task brief still lacks boundary, validation, checkpoint, acceptance, or routing context after reading the accepted tasks artifact.']
|
|
104
82
|
},
|
|
105
83
|
ship: {
|
|
106
84
|
summary: 'Close ship readiness through agent-authored .sdd/runs/<branch>/ship/*.md evidence; optional release.md is ship-agent authored, not runtime-authored.',
|
|
107
85
|
requiredCommands: ['sdd status', 'sdd instructions ship --json', 'write .sdd/runs/<branch>/ship/ship-readiness-vN.md', 'write .sdd/runs/<branch>/ship/release-review-vN.md', 'write .sdd/runs/<branch>/ship/ship-manager-vN.md', 'write .sdd/runs/<branch>/ship/ship-collaboration-contract-vN.md', 'sdd ship close --branch <branch> --json', 'npm run build', 'npm pack --dry-run --json', 'git status'],
|
|
108
86
|
allowedSideEffects: ['read project status', 'read SDD documents and run evidence', 'write agent-authored .sdd/runs/<branch>/ship/*.md evidence', 'write optional agent-authored specs/<branch>/release.md', 'run local validation commands', 'record runtime ship projections in .sdd/runtime.sqlite'],
|
|
109
87
|
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'npm publish', 'git push', 'git tag', 'create GitHub release', 'force push', 'auto commit', 'skip failed gates', 'treat historical doctor debt as a release blocker unless it affects current run evidence'],
|
|
110
|
-
nextSteps: ['Run sdd status and confirm
|
|
88
|
+
nextSteps: ['Run sdd status and confirm execute has accepted implementation, validation, checkpoint, and evidence-judgment evidence for the branch.', 'Have ship-manager/release agent author .sdd/runs/<branch>/ship/*.md evidence including a StageCollaborationContract; write specs/<branch>/release.md only as an explicit ship-agent artifact if needed.', 'Run sdd ship close --branch <branch> --json; runtime validates readiness refs/contracts/truthAlignment and writes only .sdd/runtime.sqlite.', 'Run package/build dry-run gates when preparing a real release.', 'Report PASS/BLOCKED by runtime ship readiness and local package checks.', 'Stop before npm publish, git push, git tag, or external release creation unless the user explicitly approves that separate action.']
|
|
111
89
|
},
|
|
112
|
-
'run-task': {
|
|
113
|
-
summary: 'Compatibility entry for running one task through do-stage runtime closure.',
|
|
114
|
-
requiredCommands: ['sdd tasks inspect <task_id>', 'sdd do task <task_id> --branch <branch>'],
|
|
115
|
-
allowedSideEffects: ['write agent-authored .sdd/runs/<branch>/do/*.md evidence', 'update runtime.sqlite run state'],
|
|
116
|
-
forbiddenSideEffects: ['runtime-authored Markdown artifacts', 'background write', 'worktree creation', 'auto commit'],
|
|
117
|
-
nextSteps: ['Inspect the task.', 'Run do-stage closure through sdd do task with .sdd/runs/<branch>/do/*.md evidence.']
|
|
118
|
-
},
|
|
119
|
-
'verify-task': {
|
|
120
|
-
summary: 'Verify task acceptance coverage using runtime-selected evidence and partition-aware run resolution.',
|
|
121
|
-
requiredCommands: ['sdd verify task <task_id> [--branch <branch>] [--run <run_id>]'],
|
|
122
|
-
allowedSideEffects: ['write acceptance coverage runtime evidence', 'update .sdd run state'],
|
|
123
|
-
forbiddenSideEffects: ['auto commit', 'force push'],
|
|
124
|
-
nextSteps: ['Run goal-level verify without --run for the latest eligible partition/task run, unless inspecting an explicit run.', 'Use sdd test task for primary lifecycle judgment.']
|
|
125
|
-
}
|
|
126
90
|
};
|
|
127
91
|
|
|
128
92
|
|
|
@@ -154,5 +118,5 @@ export function renderSddInstructions(payload: SddInstructionPayload): string {
|
|
|
154
118
|
}
|
|
155
119
|
|
|
156
120
|
function isInstructionAction(action: string): action is InstructionAction {
|
|
157
|
-
return action === 'overview' || action === 'init' || action === 'doctor' || action === 'update' || action === 'spec' || action === 'plan' || action === 'tasks' || action === '
|
|
121
|
+
return action === 'overview' || action === 'init' || action === 'doctor' || action === 'update' || action === 'spec' || action === 'plan' || action === 'tasks' || action === 'execute' || action === 'ship';
|
|
158
122
|
}
|
|
@@ -1,174 +1,174 @@
|
|
|
1
|
-
import test from 'node:test';
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import { mkdtemp, rm } from 'node:fs/promises';
|
|
4
|
-
import { tmpdir } from 'node:os';
|
|
5
|
-
import path from 'node:path';
|
|
6
|
-
|
|
7
|
-
import { initProject } from '../config/init-project.js';
|
|
8
|
-
import { readRunEvents } from '../run-state/events.js';
|
|
9
|
-
import { createRun, readRunState } from '../run-state/run-state.js';
|
|
10
|
-
import { evaluateLifecycleDecisionGate, recordLifecycleDecision } from './decision-gate.js';
|
|
11
|
-
import { renderLifecycleDecisionGate } from './rendering.js';
|
|
12
|
-
import { extractLifecycleRiskSignalsFromText } from './risk-signals.js';
|
|
13
|
-
|
|
14
|
-
test('lifecycle decision gate allows direct only through conservative whitelist', () => {
|
|
15
|
-
const result = evaluateLifecycleDecisionGate({
|
|
16
|
-
intent_clarity: 'high',
|
|
17
|
-
acceptance_clarity: 'high',
|
|
18
|
-
estimated_change_size: 'tiny',
|
|
19
|
-
task_count_estimate: 1,
|
|
20
|
-
file_count_estimate: 1,
|
|
21
|
-
impact_confidence: 'high',
|
|
22
|
-
risk_tags: [],
|
|
23
|
-
reversibility: 'reversible',
|
|
24
|
-
validation_clarity: 'clear',
|
|
25
|
-
validation_available: true,
|
|
26
|
-
validation_cost: 'cheap',
|
|
27
|
-
requires_agents: false,
|
|
28
|
-
handoff_count: 0,
|
|
29
|
-
artifact_dependency: false,
|
|
30
|
-
runtime_recovery_need: false,
|
|
31
|
-
orchestration_uncertainty: 'low'
|
|
32
|
-
}, new Date('2026-05-01T00:00:00.000Z'));
|
|
33
|
-
|
|
34
|
-
assert.equal(result.record.decision.profile, 'direct');
|
|
35
|
-
assert.equal(result.record.decision.confidence, 'high');
|
|
36
|
-
assert.equal(result.record.decision.hard_gate_hits.length, 0);
|
|
37
|
-
assert.equal(result.record.decision.human_checkpoint_required, false);
|
|
38
|
-
assert.equal(result.record.decision.skipped_stages.includes('full-spec'), true);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
test('lifecycle hard gates force full profile for contract and state risks', () => {
|
|
42
|
-
const result = evaluateLifecycleDecisionGate({
|
|
43
|
-
intent_clarity: 'high',
|
|
44
|
-
acceptance_clarity: 'high',
|
|
45
|
-
impact_confidence: 'high',
|
|
46
|
-
validation_clarity: 'clear',
|
|
47
|
-
validation_available: true,
|
|
48
|
-
validation_cost: 'cheap',
|
|
49
|
-
reversibility: 'reversible',
|
|
50
|
-
affected_contracts: ['public-api'],
|
|
51
|
-
risk_tags: ['state-machine']
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
assert.equal(result.record.decision.profile, 'full');
|
|
55
|
-
assert.equal(result.record.decision.hard_gate_hits.includes('api_schema_contract'), true);
|
|
56
|
-
assert.equal(result.record.decision.hard_gate_hits.includes('state_machine_concurrency_liveness'), true);
|
|
57
|
-
assert.equal(result.record.decision.required_stages.includes('
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
test('lifecycle database risk forces full hard gate and human checkpoint', () => {
|
|
61
|
-
const result = evaluateLifecycleDecisionGate({
|
|
62
|
-
intent_clarity: 'high',
|
|
63
|
-
acceptance_clarity: 'high',
|
|
64
|
-
impact_confidence: 'high',
|
|
65
|
-
validation_clarity: 'clear',
|
|
66
|
-
validation_available: true,
|
|
67
|
-
validation_cost: 'cheap',
|
|
68
|
-
reversibility: 'reversible',
|
|
69
|
-
risk_tags: ['database']
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
assert.equal(result.record.decision.profile, 'full');
|
|
73
|
-
assert.equal(result.record.decision.hard_gate_hits.includes('database_or_data_loss'), true);
|
|
74
|
-
assert.equal(result.record.decision.human_checkpoint_required, true);
|
|
75
|
-
assert.equal(result.checkpointRequired, true);
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
test('Phase 5.1 lifecycle risk extraction maps Chinese hard-gate text', () => {
|
|
79
|
-
const extraction = extractLifecycleRiskSignalsFromText('三线程状态流转,并发更新,SQL 拼接,数据一致性风险');
|
|
80
|
-
const categories = extraction.evidence.map((item) => item.category);
|
|
81
|
-
const result = evaluateLifecycleDecisionGate(extraction.signals);
|
|
82
|
-
const rendered = renderLifecycleDecisionGate(result);
|
|
83
|
-
|
|
84
|
-
assert.equal(extraction.source, 'from_text');
|
|
85
|
-
assert.equal(extraction.riskTags.includes('state-machine'), true);
|
|
86
|
-
assert.equal(extraction.riskTags.includes('concurrency'), true);
|
|
87
|
-
assert.equal(extraction.riskTags.includes('database'), true);
|
|
88
|
-
assert.equal(categories.includes('state_machine'), true);
|
|
89
|
-
assert.equal(categories.includes('concurrency'), true);
|
|
90
|
-
assert.equal(categories.includes('sql'), true);
|
|
91
|
-
assert.equal(categories.includes('database_data_loss'), true);
|
|
92
|
-
assert.equal(result.record.decision.profile, 'full');
|
|
93
|
-
assert.equal(result.record.decision.hard_gate_hits.includes('state_machine_concurrency_liveness'), true);
|
|
94
|
-
assert.equal(result.record.decision.hard_gate_hits.includes('database_or_data_loss'), true);
|
|
95
|
-
assert.equal(result.autonomyCeiling, 'full_sdd_with_checkpoint');
|
|
96
|
-
assert.equal(rendered.includes('Lifecycle checkpoint is required.'), true);
|
|
97
|
-
assert.equal(rendered.includes('Why:'), true);
|
|
98
|
-
assert.equal(rendered.includes('Next:'), true);
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
test('lifecycle checkpoint triggers are recorded without executing workflow', () => {
|
|
102
|
-
const result = evaluateLifecycleDecisionGate({
|
|
103
|
-
intent_clarity: 'high',
|
|
104
|
-
acceptance_clarity: 'high',
|
|
105
|
-
impact_confidence: 'high',
|
|
106
|
-
validation_clarity: 'clear',
|
|
107
|
-
validation_available: true,
|
|
108
|
-
validation_cost: 'cheap',
|
|
109
|
-
reversibility: 'reversible',
|
|
110
|
-
policy_hits: ['git_commit'],
|
|
111
|
-
permission_required: ['dependency_install'],
|
|
112
|
-
human_checkpoint_required: true
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
assert.equal(result.record.decision.profile, 'compact');
|
|
116
|
-
assert.equal(result.record.decision.human_checkpoint_required, true);
|
|
117
|
-
assert.equal(result.record.decision.hard_gate_hits.includes('policy_or_permission_checkpoint'), true);
|
|
118
|
-
assert.match(result.boundaries.join('\n'), /must not execute Phase 1.8 task implementation loop/);
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
test('lifecycle research gate handles unscoutable unknown impact', () => {
|
|
122
|
-
const result = evaluateLifecycleDecisionGate({
|
|
123
|
-
impact_confidence: 'low',
|
|
124
|
-
can_scout_impact: false
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
assert.equal(result.record.decision.profile, 'research');
|
|
128
|
-
assert.equal(result.record.decision.confidence, 'low');
|
|
129
|
-
assert.equal(result.record.decision.hard_gate_hits.includes('low_impact_confidence_unscoutable'), true);
|
|
130
|
-
assert.equal(result.record.decision.required_stages[0], 'research');
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
test('lifecycle decision gate emits canonical Phase 1.3 contract id for new records', () => {
|
|
134
|
-
const result = evaluateLifecycleDecisionGate({
|
|
135
|
-
intent_clarity: 'high',
|
|
136
|
-
acceptance_clarity: 'high',
|
|
137
|
-
impact_confidence: 'high',
|
|
138
|
-
validation_clarity: 'clear',
|
|
139
|
-
validation_available: true,
|
|
140
|
-
validation_cost: 'cheap',
|
|
141
|
-
reversibility: 'reversible'
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
assert.equal(result.record.contract, 'sdd-lifecycle-decision-v1');
|
|
145
|
-
assert.equal(result.record.version, '1.3.0');
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
test('recordLifecycleDecision persists command gate output to run state and events', async () => {
|
|
149
|
-
const root = await mkdtemp(path.join(tmpdir(), 'sdd-lifecycle-'));
|
|
150
|
-
try {
|
|
151
|
-
await initProject(root);
|
|
152
|
-
const state = await createRun(root, { runId: 'run-1' });
|
|
153
|
-
const result = evaluateLifecycleDecisionGate({
|
|
154
|
-
intent_clarity: 'high',
|
|
155
|
-
acceptance_clarity: 'high',
|
|
156
|
-
impact_confidence: 'high',
|
|
157
|
-
validation_clarity: 'clear',
|
|
158
|
-
validation_available: true,
|
|
159
|
-
validation_cost: 'cheap',
|
|
160
|
-
reversibility: 'reversible',
|
|
161
|
-
risk_tags: ['database']
|
|
162
|
-
}, new Date('2026-05-01T00:00:00.000Z'));
|
|
163
|
-
|
|
164
|
-
await recordLifecycleDecision(root, state.runId, result.record);
|
|
165
|
-
const restored = await readRunState(root, state.runId);
|
|
166
|
-
const events = await readRunEvents(root, state.runId);
|
|
167
|
-
assert.equal(restored.lifecycleDecision?.decision.profile, 'full');
|
|
168
|
-
assert.equal(restored.lifecycleDecision?.decision.hard_gate_hits.includes('database_or_data_loss'), true);
|
|
169
|
-
assert.equal(restored.lifecycleDecision?.decision.human_checkpoint_required, true);
|
|
170
|
-
assert.equal(events.some((event) => /Lifecycle decision recorded by Phase 1.7 command gate/.test(event.summary ?? '')), true);
|
|
171
|
-
} finally {
|
|
172
|
-
await rm(root, { recursive: true, force: true });
|
|
173
|
-
}
|
|
174
|
-
});
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { mkdtemp, rm } from 'node:fs/promises';
|
|
4
|
+
import { tmpdir } from 'node:os';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
|
|
7
|
+
import { initProject } from '../config/init-project.js';
|
|
8
|
+
import { readRunEvents } from '../run-state/events.js';
|
|
9
|
+
import { createRun, readRunState } from '../run-state/run-state.js';
|
|
10
|
+
import { evaluateLifecycleDecisionGate, recordLifecycleDecision } from './decision-gate.js';
|
|
11
|
+
import { renderLifecycleDecisionGate } from './rendering.js';
|
|
12
|
+
import { extractLifecycleRiskSignalsFromText } from './risk-signals.js';
|
|
13
|
+
|
|
14
|
+
test('lifecycle decision gate allows direct only through conservative whitelist', () => {
|
|
15
|
+
const result = evaluateLifecycleDecisionGate({
|
|
16
|
+
intent_clarity: 'high',
|
|
17
|
+
acceptance_clarity: 'high',
|
|
18
|
+
estimated_change_size: 'tiny',
|
|
19
|
+
task_count_estimate: 1,
|
|
20
|
+
file_count_estimate: 1,
|
|
21
|
+
impact_confidence: 'high',
|
|
22
|
+
risk_tags: [],
|
|
23
|
+
reversibility: 'reversible',
|
|
24
|
+
validation_clarity: 'clear',
|
|
25
|
+
validation_available: true,
|
|
26
|
+
validation_cost: 'cheap',
|
|
27
|
+
requires_agents: false,
|
|
28
|
+
handoff_count: 0,
|
|
29
|
+
artifact_dependency: false,
|
|
30
|
+
runtime_recovery_need: false,
|
|
31
|
+
orchestration_uncertainty: 'low'
|
|
32
|
+
}, new Date('2026-05-01T00:00:00.000Z'));
|
|
33
|
+
|
|
34
|
+
assert.equal(result.record.decision.profile, 'direct');
|
|
35
|
+
assert.equal(result.record.decision.confidence, 'high');
|
|
36
|
+
assert.equal(result.record.decision.hard_gate_hits.length, 0);
|
|
37
|
+
assert.equal(result.record.decision.human_checkpoint_required, false);
|
|
38
|
+
assert.equal(result.record.decision.skipped_stages.includes('full-spec'), true);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
test('lifecycle hard gates force full profile for contract and state risks', () => {
|
|
42
|
+
const result = evaluateLifecycleDecisionGate({
|
|
43
|
+
intent_clarity: 'high',
|
|
44
|
+
acceptance_clarity: 'high',
|
|
45
|
+
impact_confidence: 'high',
|
|
46
|
+
validation_clarity: 'clear',
|
|
47
|
+
validation_available: true,
|
|
48
|
+
validation_cost: 'cheap',
|
|
49
|
+
reversibility: 'reversible',
|
|
50
|
+
affected_contracts: ['public-api'],
|
|
51
|
+
risk_tags: ['state-machine']
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
assert.equal(result.record.decision.profile, 'full');
|
|
55
|
+
assert.equal(result.record.decision.hard_gate_hits.includes('api_schema_contract'), true);
|
|
56
|
+
assert.equal(result.record.decision.hard_gate_hits.includes('state_machine_concurrency_liveness'), true);
|
|
57
|
+
assert.equal(result.record.decision.required_stages.includes('verify'), true);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test('lifecycle database risk forces full hard gate and human checkpoint', () => {
|
|
61
|
+
const result = evaluateLifecycleDecisionGate({
|
|
62
|
+
intent_clarity: 'high',
|
|
63
|
+
acceptance_clarity: 'high',
|
|
64
|
+
impact_confidence: 'high',
|
|
65
|
+
validation_clarity: 'clear',
|
|
66
|
+
validation_available: true,
|
|
67
|
+
validation_cost: 'cheap',
|
|
68
|
+
reversibility: 'reversible',
|
|
69
|
+
risk_tags: ['database']
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
assert.equal(result.record.decision.profile, 'full');
|
|
73
|
+
assert.equal(result.record.decision.hard_gate_hits.includes('database_or_data_loss'), true);
|
|
74
|
+
assert.equal(result.record.decision.human_checkpoint_required, true);
|
|
75
|
+
assert.equal(result.checkpointRequired, true);
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
test('Phase 5.1 lifecycle risk extraction maps Chinese hard-gate text', () => {
|
|
79
|
+
const extraction = extractLifecycleRiskSignalsFromText('三线程状态流转,并发更新,SQL 拼接,数据一致性风险');
|
|
80
|
+
const categories = extraction.evidence.map((item) => item.category);
|
|
81
|
+
const result = evaluateLifecycleDecisionGate(extraction.signals);
|
|
82
|
+
const rendered = renderLifecycleDecisionGate(result);
|
|
83
|
+
|
|
84
|
+
assert.equal(extraction.source, 'from_text');
|
|
85
|
+
assert.equal(extraction.riskTags.includes('state-machine'), true);
|
|
86
|
+
assert.equal(extraction.riskTags.includes('concurrency'), true);
|
|
87
|
+
assert.equal(extraction.riskTags.includes('database'), true);
|
|
88
|
+
assert.equal(categories.includes('state_machine'), true);
|
|
89
|
+
assert.equal(categories.includes('concurrency'), true);
|
|
90
|
+
assert.equal(categories.includes('sql'), true);
|
|
91
|
+
assert.equal(categories.includes('database_data_loss'), true);
|
|
92
|
+
assert.equal(result.record.decision.profile, 'full');
|
|
93
|
+
assert.equal(result.record.decision.hard_gate_hits.includes('state_machine_concurrency_liveness'), true);
|
|
94
|
+
assert.equal(result.record.decision.hard_gate_hits.includes('database_or_data_loss'), true);
|
|
95
|
+
assert.equal(result.autonomyCeiling, 'full_sdd_with_checkpoint');
|
|
96
|
+
assert.equal(rendered.includes('Lifecycle checkpoint is required.'), true);
|
|
97
|
+
assert.equal(rendered.includes('Why:'), true);
|
|
98
|
+
assert.equal(rendered.includes('Next:'), true);
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
test('lifecycle checkpoint triggers are recorded without executing workflow', () => {
|
|
102
|
+
const result = evaluateLifecycleDecisionGate({
|
|
103
|
+
intent_clarity: 'high',
|
|
104
|
+
acceptance_clarity: 'high',
|
|
105
|
+
impact_confidence: 'high',
|
|
106
|
+
validation_clarity: 'clear',
|
|
107
|
+
validation_available: true,
|
|
108
|
+
validation_cost: 'cheap',
|
|
109
|
+
reversibility: 'reversible',
|
|
110
|
+
policy_hits: ['git_commit'],
|
|
111
|
+
permission_required: ['dependency_install'],
|
|
112
|
+
human_checkpoint_required: true
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
assert.equal(result.record.decision.profile, 'compact');
|
|
116
|
+
assert.equal(result.record.decision.human_checkpoint_required, true);
|
|
117
|
+
assert.equal(result.record.decision.hard_gate_hits.includes('policy_or_permission_checkpoint'), true);
|
|
118
|
+
assert.match(result.boundaries.join('\n'), /must not execute Phase 1.8 task implementation loop/);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test('lifecycle research gate handles unscoutable unknown impact', () => {
|
|
122
|
+
const result = evaluateLifecycleDecisionGate({
|
|
123
|
+
impact_confidence: 'low',
|
|
124
|
+
can_scout_impact: false
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
assert.equal(result.record.decision.profile, 'research');
|
|
128
|
+
assert.equal(result.record.decision.confidence, 'low');
|
|
129
|
+
assert.equal(result.record.decision.hard_gate_hits.includes('low_impact_confidence_unscoutable'), true);
|
|
130
|
+
assert.equal(result.record.decision.required_stages[0], 'research');
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
test('lifecycle decision gate emits canonical Phase 1.3 contract id for new records', () => {
|
|
134
|
+
const result = evaluateLifecycleDecisionGate({
|
|
135
|
+
intent_clarity: 'high',
|
|
136
|
+
acceptance_clarity: 'high',
|
|
137
|
+
impact_confidence: 'high',
|
|
138
|
+
validation_clarity: 'clear',
|
|
139
|
+
validation_available: true,
|
|
140
|
+
validation_cost: 'cheap',
|
|
141
|
+
reversibility: 'reversible'
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
assert.equal(result.record.contract, 'sdd-lifecycle-decision-v1');
|
|
145
|
+
assert.equal(result.record.version, '1.3.0');
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
test('recordLifecycleDecision persists command gate output to run state and events', async () => {
|
|
149
|
+
const root = await mkdtemp(path.join(tmpdir(), 'sdd-lifecycle-'));
|
|
150
|
+
try {
|
|
151
|
+
await initProject(root);
|
|
152
|
+
const state = await createRun(root, { runId: 'run-1' });
|
|
153
|
+
const result = evaluateLifecycleDecisionGate({
|
|
154
|
+
intent_clarity: 'high',
|
|
155
|
+
acceptance_clarity: 'high',
|
|
156
|
+
impact_confidence: 'high',
|
|
157
|
+
validation_clarity: 'clear',
|
|
158
|
+
validation_available: true,
|
|
159
|
+
validation_cost: 'cheap',
|
|
160
|
+
reversibility: 'reversible',
|
|
161
|
+
risk_tags: ['database']
|
|
162
|
+
}, new Date('2026-05-01T00:00:00.000Z'));
|
|
163
|
+
|
|
164
|
+
await recordLifecycleDecision(root, state.runId, result.record);
|
|
165
|
+
const restored = await readRunState(root, state.runId);
|
|
166
|
+
const events = await readRunEvents(root, state.runId);
|
|
167
|
+
assert.equal(restored.lifecycleDecision?.decision.profile, 'full');
|
|
168
|
+
assert.equal(restored.lifecycleDecision?.decision.hard_gate_hits.includes('database_or_data_loss'), true);
|
|
169
|
+
assert.equal(restored.lifecycleDecision?.decision.human_checkpoint_required, true);
|
|
170
|
+
assert.equal(events.some((event) => /Lifecycle decision recorded by Phase 1.7 command gate/.test(event.summary ?? '')), true);
|
|
171
|
+
} finally {
|
|
172
|
+
await rm(root, { recursive: true, force: true });
|
|
173
|
+
}
|
|
174
|
+
});
|