sdd-agent-platform 0.4.0 → 0.4.2
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 +36 -39
- package/node_modules/@sdd-agent-platform/core/dist/ai-tools.js +72 -71
- 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 +64 -9
- 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 +0 -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 +26 -17
- 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 +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/init-project.js +13 -9
- 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 +3 -1
- package/node_modules/@sdd-agent-platform/core/dist/config/project-config.js +7 -3
- 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 +4 -4
- package/node_modules/@sdd-agent-platform/core/dist/config/starter-documents.js +16 -20
- 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 +1 -7
- 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 +26 -8
- 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 +4 -1
- package/node_modules/@sdd-agent-platform/core/dist/contracts.js +3 -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 +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.d.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.js +7 -4
- 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 +1 -1
- 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/project.js +8 -8
- 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 +0 -1
- 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 +7 -7
- 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 +0 -24
- 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 +1 -1
- 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 +277 -3
- 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 +23 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.js +61 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime/contracts.d.ts +11 -1
- package/node_modules/@sdd-agent-platform/core/dist/execution/agent-execution-records.js +15 -8
- package/node_modules/@sdd-agent-platform/core/dist/execution/agent-execution-records.js.map +1 -1
- 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 +5 -4
- 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 +16 -7
- 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.d.ts +112 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/stage-team-runtime.js +145 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/stage-team-runtime.js.map +1 -0
- 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 +59 -66
- 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 +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.js +55 -19
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.js.map +1 -1
- 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 +12 -2
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/runtime.js +62 -21
- 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 +20 -2
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-capability-catalog.js +218 -18
- 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 +17 -17
- 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.d.ts +10 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-runtime-static.js +32 -2
- 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.d.ts +2 -17
- package/node_modules/@sdd-agent-platform/core/dist/registries/capability-sources.js +222 -10
- package/node_modules/@sdd-agent-platform/core/dist/registries/capability-sources.js.map +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 +9 -9
- 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/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/tool-capabilities.js +3 -3
- 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.js +12 -12
- package/node_modules/@sdd-agent-platform/core/dist/registries/workflow-gates.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/risk/contracts.d.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/risk/kernel.js +4 -4
- 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 +4 -7
- 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 +19 -17
- 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-config.js +28 -13
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime-config.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime.d.ts +61 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/route-projection.d.ts +3 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/route-projection.js +192 -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 +73 -17
- 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.d.ts +28 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-import.js +373 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-import.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-inspection.js +11 -4
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-inspection.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-validation.js +31 -3
- 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 +37 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/stage-route-binding.js +235 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/stage-route-binding.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/router.js +2 -0
- 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 +16 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/artifacts.js +168 -18
- 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/events.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/run-state/events.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.d.ts +3 -3
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.js +22 -54
- 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/invocation-ledger.js +2 -2
- package/node_modules/@sdd-agent-platform/core/dist/run-state/invocation-ledger.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/run-state/model.d.ts +53 -9
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.d.ts +0 -2
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.js +1 -3
- 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 +51 -34
- 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 +65 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.js +169 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/timing.d.ts +8 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/timing.js +131 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/timing.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state.js +2 -0
- 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 +0 -3
- 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 +5 -44
- 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 -17
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.d.ts +20 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.js +109 -14
- 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 +64 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-projection-p0.js +200 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-projection-p0.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/context.js +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/context.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.js +276 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.js.map +1 -0
- 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 +15 -4
- 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 +21 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.js +139 -38
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/stage-artifacts.d.ts +55 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-artifacts.js +322 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-artifacts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration-contracts.d.ts +55 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration-contracts.js +241 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration-contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration.d.ts +888 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration.js +3870 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-collaboration.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/runtime.js +8 -1
- 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 +105 -1
- package/node_modules/@sdd-agent-platform/core/dist/status/project-status.js +343 -8
- 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.d.ts +348 -3
- package/node_modules/@sdd-agent-platform/core/dist/storage/runtime-store.js +1017 -8
- package/node_modules/@sdd-agent-platform/core/dist/storage/runtime-store.js.map +1 -1
- 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/test-support/fixtures.js +21 -0
- 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 -1
- package/node_modules/@sdd-agent-platform/core/dist/test-support/run-state.js +19 -20
- 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.d.ts +44 -0
- package/node_modules/@sdd-agent-platform/core/dist/truth-reconciliation.js +138 -0
- package/node_modules/@sdd-agent-platform/core/dist/truth-reconciliation.js.map +1 -0
- 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 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/goal-verify.js +44 -37
- 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 +0 -2
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.js +19 -49
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/review-gate.d.ts +22 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/review-gate.js +53 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/review-gate.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.d.ts +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.js +213 -111
- 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/test-runtime.d.ts +28 -3
- package/node_modules/@sdd-agent-platform/core/dist/verification/test-runtime.js +546 -125
- 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-cache.d.ts +26 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-cache.js +73 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-cache.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.d.ts +76 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.js +450 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/verify-contract.d.ts +3 -1
- package/node_modules/@sdd-agent-platform/core/dist/verification/verify-contract.js +105 -30
- 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 +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification.js +2 -0
- 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.d.ts +24 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/evidence-packet.js +395 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/evidence-packet.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.js +164 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.js +182 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/types.d.ts +88 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/types.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/types.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.js +17 -3
- 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.d.ts +8 -4
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/dependencies.js +25 -11
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/dependencies.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.d.ts +37 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.js +188 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/migration-recovery.d.ts +40 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/migration-recovery.js +110 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/migration-recovery.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/repair-contract.d.ts +12 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/repair-contract.js +63 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/repair-contract.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve-task-run.d.ts +21 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve-task-run.js +95 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve-task-run.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.d.ts +80 -3
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.js +674 -41
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/runtime-projections.d.ts +228 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/runtime-projections.js +452 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/runtime-projections.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state.js +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state.js.map +1 -1
- package/node_modules/@sdd-agent-platform/core/package.json +3 -3
- package/node_modules/@sdd-agent-platform/core/src/ai-tools.test.ts +49 -1
- package/node_modules/@sdd-agent-platform/core/src/ai-tools.ts +72 -71
- package/node_modules/@sdd-agent-platform/core/src/artifacts/ingestion.test.ts +38 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/ingestion.ts +65 -9
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-evidence.ts +0 -1
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-result.test.ts +52 -6
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-result.ts +26 -17
- package/node_modules/@sdd-agent-platform/core/src/config/init-project.test.ts +44 -29
- package/node_modules/@sdd-agent-platform/core/src/config/init-project.ts +15 -11
- package/node_modules/@sdd-agent-platform/core/src/config/project-config.ts +10 -4
- package/node_modules/@sdd-agent-platform/core/src/config/starter-documents.ts +17 -20
- package/node_modules/@sdd-agent-platform/core/src/context/build-package.ts +2 -8
- package/node_modules/@sdd-agent-platform/core/src/context/context-build.test.ts +3 -2
- package/node_modules/@sdd-agent-platform/core/src/context/evidence-summary.ts +27 -8
- package/node_modules/@sdd-agent-platform/core/src/context/log-worker.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/context-offload/contracts.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/contracts.ts +4 -1
- package/node_modules/@sdd-agent-platform/core/src/delegation/model.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation/validation.ts +8 -5
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/document-chain.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/project.ts +8 -8
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/registries.ts +0 -1
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-evidence.ts +7 -7
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-trust.ts +0 -21
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/runtime-contracts.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/doctor/doctor.test.ts +217 -7
- package/node_modules/@sdd-agent-platform/core/src/doctor/doctor.ts +301 -3
- package/node_modules/@sdd-agent-platform/core/src/evidence/lookup.ts +88 -0
- package/node_modules/@sdd-agent-platform/core/src/evidence-runtime/contracts.ts +12 -1
- package/node_modules/@sdd-agent-platform/core/src/execution/agent-execution-records.ts +16 -11
- package/node_modules/@sdd-agent-platform/core/src/execution/background-executor.test.ts +57 -2
- package/node_modules/@sdd-agent-platform/core/src/execution/background-executor.ts +4 -4
- package/node_modules/@sdd-agent-platform/core/src/execution/foreground-subagents.test.ts +11 -2
- package/node_modules/@sdd-agent-platform/core/src/execution/foreground-subagents.ts +3 -3
- package/node_modules/@sdd-agent-platform/core/src/execution/host-invocation.ts +5 -4
- package/node_modules/@sdd-agent-platform/core/src/execution/resident-worker.test.ts +17 -1
- package/node_modules/@sdd-agent-platform/core/src/execution/resident-worker.ts +16 -7
- package/node_modules/@sdd-agent-platform/core/src/execution/stage-team-runtime.test.ts +102 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/stage-team-runtime.ts +271 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/wave-executor.test.ts +14 -0
- package/node_modules/@sdd-agent-platform/core/src/governance/policy.test.ts +10 -0
- package/node_modules/@sdd-agent-platform/core/src/governance/policy.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/instructions.test.ts +34 -13
- package/node_modules/@sdd-agent-platform/core/src/instructions.ts +60 -67
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/decision-gate.test.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/decision-gate.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/ship.test.ts +47 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/ship.ts +58 -19
- package/node_modules/@sdd-agent-platform/core/src/orchestration/contracts.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/orchestration/runtime.ts +74 -22
- package/node_modules/@sdd-agent-platform/core/src/phase8-contracts.test.ts +3 -3
- package/node_modules/@sdd-agent-platform/core/src/phase8-risk-kernel.test.ts +8 -3
- package/node_modules/@sdd-agent-platform/core/src/planning/task-graph.test.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/planning/wave-plan.test.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-capability-catalog.ts +319 -20
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-registry.ts +17 -17
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-runtime-static.ts +42 -2
- package/node_modules/@sdd-agent-platform/core/src/registries/capability-sources.ts +238 -15
- package/node_modules/@sdd-agent-platform/core/src/registries/command-team-runtime.ts +10 -10
- package/node_modules/@sdd-agent-platform/core/src/registries/eval-learning-context.ts +4 -4
- package/node_modules/@sdd-agent-platform/core/src/registries/query-status.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/registries/registries.test.ts +45 -4
- package/node_modules/@sdd-agent-platform/core/src/registries/tool-capabilities.ts +3 -3
- package/node_modules/@sdd-agent-platform/core/src/registries/tool-plugins.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/registries/worker-adapters.ts +11 -11
- package/node_modules/@sdd-agent-platform/core/src/registries/workflow-gates.ts +12 -12
- package/node_modules/@sdd-agent-platform/core/src/risk/contracts.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/risk/kernel.ts +4 -4
- package/node_modules/@sdd-agent-platform/core/src/risk/legacy-adapters.ts +4 -7
- package/node_modules/@sdd-agent-platform/core/src/risk/workflow-gates.ts +20 -18
- package/node_modules/@sdd-agent-platform/core/src/router/agent-runtime-config.ts +32 -13
- package/node_modules/@sdd-agent-platform/core/src/router/agent-runtime.ts +68 -1
- package/node_modules/@sdd-agent-platform/core/src/router/route-projection.ts +212 -1
- package/node_modules/@sdd-agent-platform/core/src/router/route-sdd-task.test.ts +391 -6
- package/node_modules/@sdd-agent-platform/core/src/router/routing.ts +78 -17
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-import.ts +453 -0
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-inspection.ts +11 -4
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-validation.ts +32 -3
- package/node_modules/@sdd-agent-platform/core/src/router/stage-route-binding.ts +279 -0
- package/node_modules/@sdd-agent-platform/core/src/router.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/artifacts.ts +173 -18
- package/node_modules/@sdd-agent-platform/core/src/run-state/events.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/run-state/inspect-run.ts +24 -59
- package/node_modules/@sdd-agent-platform/core/src/run-state/invocation-ledger.ts +2 -2
- package/node_modules/@sdd-agent-platform/core/src/run-state/model.ts +59 -9
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-index.ts +1 -5
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-state.test.ts +53 -2
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-state.ts +55 -41
- package/node_modules/@sdd-agent-platform/core/src/run-state/task-evidence.ts +252 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/timing.ts +146 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/build.ts +0 -3
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/findings.ts +6 -46
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/model.ts +1 -13
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis.test.ts +0 -2
- package/node_modules/@sdd-agent-platform/core/src/runtime-paths.ts +131 -14
- package/node_modules/@sdd-agent-platform/core/src/runtime-projection-p0.test.ts +96 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-projection-p0.ts +292 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/context.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/document-hashes.ts +306 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/run-binding.ts +15 -4
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-parser.test.ts +261 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-parser.ts +169 -41
- package/node_modules/@sdd-agent-platform/core/src/stage-artifacts.ts +450 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-collaboration-contracts.ts +322 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-collaboration.test.ts +2903 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-collaboration.ts +5831 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/runtime.test.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/runtime.ts +9 -1
- package/node_modules/@sdd-agent-platform/core/src/status/project-status.test.ts +239 -16
- package/node_modules/@sdd-agent-platform/core/src/status/project-status.ts +497 -8
- package/node_modules/@sdd-agent-platform/core/src/storage/runtime-store.test.ts +560 -4
- package/node_modules/@sdd-agent-platform/core/src/storage/runtime-store.ts +1510 -9
- package/node_modules/@sdd-agent-platform/core/src/subagents/contracts.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/subagents/runtime.test.ts +3 -3
- package/node_modules/@sdd-agent-platform/core/src/subagents/runtime.ts +7 -7
- package/node_modules/@sdd-agent-platform/core/src/test-support/fixtures.ts +21 -0
- package/node_modules/@sdd-agent-platform/core/src/test-support/run-state.ts +20 -20
- package/node_modules/@sdd-agent-platform/core/src/truth-reconciliation.test.ts +72 -0
- package/node_modules/@sdd-agent-platform/core/src/truth-reconciliation.ts +177 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/goal-verify.test.ts +13 -87
- package/node_modules/@sdd-agent-platform/core/src/verification/goal-verify.ts +46 -42
- package/node_modules/@sdd-agent-platform/core/src/verification/rendering.ts +18 -52
- package/node_modules/@sdd-agent-platform/core/src/verification/review-gate.test.ts +84 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/review-gate.ts +77 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/single-task-loop.test.ts +138 -64
- package/node_modules/@sdd-agent-platform/core/src/verification/single-task-loop.ts +226 -116
- package/node_modules/@sdd-agent-platform/core/src/verification/test-runtime.test.ts +148 -48
- package/node_modules/@sdd-agent-platform/core/src/verification/test-runtime.ts +619 -136
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-cache.ts +106 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-wave.test.ts +383 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-wave.ts +556 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/verify-contract.test.ts +131 -8
- package/node_modules/@sdd-agent-platform/core/src/verification/verify-contract.ts +117 -30
- package/node_modules/@sdd-agent-platform/core/src/verification.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/work-units/contracts.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/evidence-packet.ts +425 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/hard-checks.test.ts +507 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/hard-checks.ts +182 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/policy.test.ts +174 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/policy.ts +194 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/types.ts +115 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/affected-file-conflicts.ts +19 -4
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/dependencies.test.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/dependencies.ts +33 -11
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/latest-eligible-run.ts +224 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/migration-recovery.ts +158 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/repair-contract.ts +77 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve-task-run.ts +114 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve.test.ts +851 -9
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve.ts +862 -45
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/runtime-projections.ts +712 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state.ts +1 -0
- package/package.json +1 -1
- 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 +13 -2
- package/packages/cli/dist/commands/ai-tools.js.map +1 -1
- package/packages/cli/dist/commands/context.js +1 -1
- package/packages/cli/dist/commands/context.js.map +1 -1
- package/packages/cli/dist/commands/execution.js +49 -1
- 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 +6 -1
- package/packages/cli/dist/commands/init.js.map +1 -1
- package/packages/cli/dist/commands/lifecycle.js +15 -2
- package/packages/cli/dist/commands/lifecycle.js.map +1 -1
- package/packages/cli/dist/commands/registry/runtime.js +48 -2
- package/packages/cli/dist/commands/registry/runtime.js.map +1 -1
- package/packages/cli/dist/commands/run.js +52 -2
- package/packages/cli/dist/commands/run.js.map +1 -1
- package/packages/cli/dist/commands/stage-close.d.ts +6 -0
- package/packages/cli/dist/commands/stage-close.js +295 -0
- package/packages/cli/dist/commands/stage-close.js.map +1 -0
- package/packages/cli/dist/commands/status.js +70 -4
- package/packages/cli/dist/commands/status.js.map +1 -1
- package/packages/cli/dist/commands/tasks.js +4 -4
- package/packages/cli/dist/commands/tasks.js.map +1 -1
- package/packages/cli/dist/commands/test.js +272 -5
- package/packages/cli/dist/commands/test.js.map +1 -1
- package/packages/cli/dist/commands/verifies.js +9 -5
- package/packages/cli/dist/commands/verifies.js.map +1 -1
- package/packages/cli/dist/commands/verify.js +257 -20
- package/packages/cli/dist/commands/verify.js.map +1 -1
- package/packages/cli/dist/dispatch.js +4 -9
- package/packages/cli/dist/dispatch.js.map +1 -1
- package/packages/cli/dist/help.js +42 -27
- package/packages/cli/dist/help.js.map +1 -1
- package/packages/cli/dist/renderers/doctor.js +1 -1
- 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 +1 -0
- package/packages/cli/dist/renderers/json.js +3 -0
- package/packages/cli/dist/renderers/json.js.map +1 -1
- package/packages/cli/dist/renderers/registry-runtime.d.ts +2 -1
- package/packages/cli/dist/renderers/registry-runtime.js +27 -2
- package/packages/cli/dist/renderers/registry-runtime.js.map +1 -1
- package/packages/cli/dist/renderers/router.js +5 -3
- package/packages/cli/dist/renderers/router.js.map +1 -1
- package/packages/cli/dist/renderers/workflow.d.ts +0 -4
- package/packages/cli/dist/renderers/workflow.js +46 -84
- package/packages/cli/dist/renderers/workflow.js.map +1 -1
- package/packages/cli/dist/skill-import-args.d.ts +10 -0
- package/packages/cli/dist/skill-import-args.js +47 -0
- package/packages/cli/dist/skill-import-args.js.map +1 -0
- package/packages/cli/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/cli/package.json +2 -2
- package/packages/core/dist/ai-tools.js +72 -71
- package/packages/core/dist/ai-tools.js.map +1 -1
- package/packages/core/dist/artifacts/ingestion.js +64 -9
- package/packages/core/dist/artifacts/ingestion.js.map +1 -1
- package/packages/core/dist/artifacts/sdd-evidence.js +0 -1
- package/packages/core/dist/artifacts/sdd-evidence.js.map +1 -1
- package/packages/core/dist/artifacts/sdd-result.js +26 -17
- package/packages/core/dist/artifacts/sdd-result.js.map +1 -1
- package/packages/core/dist/config/init-project.d.ts +3 -0
- package/packages/core/dist/config/init-project.js +13 -9
- package/packages/core/dist/config/init-project.js.map +1 -1
- package/packages/core/dist/config/project-config.d.ts +3 -1
- package/packages/core/dist/config/project-config.js +7 -3
- package/packages/core/dist/config/project-config.js.map +1 -1
- package/packages/core/dist/config/starter-documents.d.ts +4 -4
- package/packages/core/dist/config/starter-documents.js +16 -20
- 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 +1 -7
- package/packages/core/dist/context/build-package.js.map +1 -1
- package/packages/core/dist/context/evidence-summary.js +26 -8
- 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 +4 -1
- package/packages/core/dist/contracts.js +3 -0
- package/packages/core/dist/contracts.js.map +1 -1
- package/packages/core/dist/delegation/model.d.ts +3 -0
- package/packages/core/dist/delegation/validation.d.ts +3 -0
- package/packages/core/dist/delegation/validation.js +7 -4
- package/packages/core/dist/delegation/validation.js.map +1 -1
- package/packages/core/dist/doctor/checks/document-chain.js +1 -1
- package/packages/core/dist/doctor/checks/document-chain.js.map +1 -1
- package/packages/core/dist/doctor/checks/project.js +8 -8
- package/packages/core/dist/doctor/checks/project.js.map +1 -1
- package/packages/core/dist/doctor/checks/registries.js +0 -1
- package/packages/core/dist/doctor/checks/registries.js.map +1 -1
- package/packages/core/dist/doctor/checks/run-evidence.js +7 -7
- package/packages/core/dist/doctor/checks/run-evidence.js.map +1 -1
- package/packages/core/dist/doctor/checks/run-trust.js +0 -24
- package/packages/core/dist/doctor/checks/run-trust.js.map +1 -1
- package/packages/core/dist/doctor/checks/runtime-contracts.js +1 -1
- package/packages/core/dist/doctor/checks/runtime-contracts.js.map +1 -1
- package/packages/core/dist/doctor/doctor.js +277 -3
- package/packages/core/dist/doctor/doctor.js.map +1 -1
- package/packages/core/dist/evidence/lookup.d.ts +23 -0
- package/packages/core/dist/evidence/lookup.js +61 -0
- package/packages/core/dist/evidence/lookup.js.map +1 -0
- package/packages/core/dist/evidence-runtime/contracts.d.ts +11 -1
- package/packages/core/dist/execution/agent-execution-records.js +15 -8
- package/packages/core/dist/execution/agent-execution-records.js.map +1 -1
- 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 +5 -4
- package/packages/core/dist/execution/host-invocation.js.map +1 -1
- package/packages/core/dist/execution/resident-worker.js +16 -7
- package/packages/core/dist/execution/resident-worker.js.map +1 -1
- package/packages/core/dist/execution/stage-team-runtime.d.ts +112 -0
- package/packages/core/dist/execution/stage-team-runtime.js +145 -0
- package/packages/core/dist/execution/stage-team-runtime.js.map +1 -0
- 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 +59 -66
- 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 +3 -0
- package/packages/core/dist/lifecycle/ship.js +55 -19
- package/packages/core/dist/lifecycle/ship.js.map +1 -1
- package/packages/core/dist/orchestration/contracts.d.ts +1 -1
- package/packages/core/dist/orchestration/runtime.d.ts +12 -2
- package/packages/core/dist/orchestration/runtime.js +62 -21
- package/packages/core/dist/orchestration/runtime.js.map +1 -1
- package/packages/core/dist/registries/agent-capability-catalog.d.ts +20 -2
- package/packages/core/dist/registries/agent-capability-catalog.js +218 -18
- package/packages/core/dist/registries/agent-capability-catalog.js.map +1 -1
- package/packages/core/dist/registries/agent-registry.js +17 -17
- package/packages/core/dist/registries/agent-registry.js.map +1 -1
- package/packages/core/dist/registries/agent-runtime-static.d.ts +10 -0
- package/packages/core/dist/registries/agent-runtime-static.js +32 -2
- package/packages/core/dist/registries/agent-runtime-static.js.map +1 -1
- package/packages/core/dist/registries/capability-sources.d.ts +2 -17
- package/packages/core/dist/registries/capability-sources.js +222 -10
- package/packages/core/dist/registries/capability-sources.js.map +1 -1
- package/packages/core/dist/registries/command-team-runtime.d.ts +1 -1
- package/packages/core/dist/registries/command-team-runtime.js +9 -9
- 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/query-status.js +2 -2
- package/packages/core/dist/registries/query-status.js.map +1 -1
- package/packages/core/dist/registries/tool-capabilities.js +3 -3
- 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.js +12 -12
- package/packages/core/dist/registries/workflow-gates.js.map +1 -1
- package/packages/core/dist/risk/contracts.d.ts +2 -2
- package/packages/core/dist/risk/kernel.js +4 -4
- package/packages/core/dist/risk/kernel.js.map +1 -1
- package/packages/core/dist/risk/legacy-adapters.js +4 -7
- 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 +19 -17
- package/packages/core/dist/risk/workflow-gates.js.map +1 -1
- package/packages/core/dist/router/agent-runtime-config.js +28 -13
- package/packages/core/dist/router/agent-runtime-config.js.map +1 -1
- package/packages/core/dist/router/agent-runtime.d.ts +61 -1
- package/packages/core/dist/router/route-projection.d.ts +3 -1
- package/packages/core/dist/router/route-projection.js +192 -1
- package/packages/core/dist/router/route-projection.js.map +1 -1
- package/packages/core/dist/router/routing.js +73 -17
- package/packages/core/dist/router/routing.js.map +1 -1
- package/packages/core/dist/router/runtime-import.d.ts +28 -0
- package/packages/core/dist/router/runtime-import.js +373 -0
- package/packages/core/dist/router/runtime-import.js.map +1 -0
- package/packages/core/dist/router/runtime-inspection.js +11 -4
- package/packages/core/dist/router/runtime-inspection.js.map +1 -1
- package/packages/core/dist/router/runtime-validation.js +31 -3
- package/packages/core/dist/router/runtime-validation.js.map +1 -1
- package/packages/core/dist/router/stage-route-binding.d.ts +37 -0
- package/packages/core/dist/router/stage-route-binding.js +235 -0
- package/packages/core/dist/router/stage-route-binding.js.map +1 -0
- package/packages/core/dist/router.d.ts +2 -0
- package/packages/core/dist/router.js +2 -0
- package/packages/core/dist/router.js.map +1 -1
- package/packages/core/dist/run-state/artifacts.d.ts +16 -0
- package/packages/core/dist/run-state/artifacts.js +168 -18
- package/packages/core/dist/run-state/artifacts.js.map +1 -1
- package/packages/core/dist/run-state/events.js +2 -2
- package/packages/core/dist/run-state/events.js.map +1 -1
- package/packages/core/dist/run-state/inspect-run.d.ts +3 -3
- package/packages/core/dist/run-state/inspect-run.js +22 -54
- package/packages/core/dist/run-state/inspect-run.js.map +1 -1
- package/packages/core/dist/run-state/invocation-ledger.js +2 -2
- package/packages/core/dist/run-state/invocation-ledger.js.map +1 -1
- package/packages/core/dist/run-state/model.d.ts +53 -9
- package/packages/core/dist/run-state/run-index.d.ts +0 -2
- package/packages/core/dist/run-state/run-index.js +1 -3
- package/packages/core/dist/run-state/run-index.js.map +1 -1
- package/packages/core/dist/run-state/run-state.js +51 -34
- package/packages/core/dist/run-state/run-state.js.map +1 -1
- package/packages/core/dist/run-state/task-evidence.d.ts +65 -0
- package/packages/core/dist/run-state/task-evidence.js +169 -0
- package/packages/core/dist/run-state/task-evidence.js.map +1 -0
- package/packages/core/dist/run-state/timing.d.ts +8 -0
- package/packages/core/dist/run-state/timing.js +131 -0
- package/packages/core/dist/run-state/timing.js.map +1 -0
- package/packages/core/dist/run-state.d.ts +2 -0
- package/packages/core/dist/run-state.js +2 -0
- package/packages/core/dist/run-state.js.map +1 -1
- package/packages/core/dist/runtime-analysis/build.js +0 -3
- package/packages/core/dist/runtime-analysis/build.js.map +1 -1
- package/packages/core/dist/runtime-analysis/findings.js +5 -44
- package/packages/core/dist/runtime-analysis/findings.js.map +1 -1
- package/packages/core/dist/runtime-analysis/model.d.ts +1 -17
- package/packages/core/dist/runtime-paths.d.ts +20 -0
- package/packages/core/dist/runtime-paths.js +109 -14
- package/packages/core/dist/runtime-paths.js.map +1 -1
- package/packages/core/dist/runtime-projection-p0.d.ts +64 -0
- package/packages/core/dist/runtime-projection-p0.js +200 -0
- package/packages/core/dist/runtime-projection-p0.js.map +1 -0
- package/packages/core/dist/sdd-docs/context.js +1 -1
- package/packages/core/dist/sdd-docs/context.js.map +1 -1
- package/packages/core/dist/sdd-docs/document-hashes.d.ts +6 -0
- package/packages/core/dist/sdd-docs/document-hashes.js +276 -0
- package/packages/core/dist/sdd-docs/document-hashes.js.map +1 -0
- package/packages/core/dist/sdd-docs/run-binding.d.ts +1 -1
- package/packages/core/dist/sdd-docs/run-binding.js +15 -4
- package/packages/core/dist/sdd-docs/run-binding.js.map +1 -1
- package/packages/core/dist/sdd-docs/task-parser.d.ts +21 -0
- package/packages/core/dist/sdd-docs/task-parser.js +139 -38
- package/packages/core/dist/sdd-docs/task-parser.js.map +1 -1
- package/packages/core/dist/stage-artifacts.d.ts +55 -0
- package/packages/core/dist/stage-artifacts.js +322 -0
- package/packages/core/dist/stage-artifacts.js.map +1 -0
- package/packages/core/dist/stage-collaboration-contracts.d.ts +55 -0
- package/packages/core/dist/stage-collaboration-contracts.js +241 -0
- package/packages/core/dist/stage-collaboration-contracts.js.map +1 -0
- package/packages/core/dist/stage-collaboration.d.ts +888 -0
- package/packages/core/dist/stage-collaboration.js +3870 -0
- package/packages/core/dist/stage-collaboration.js.map +1 -0
- package/packages/core/dist/stage-runtime/runtime.js +8 -1
- package/packages/core/dist/stage-runtime/runtime.js.map +1 -1
- package/packages/core/dist/status/project-status.d.ts +105 -1
- package/packages/core/dist/status/project-status.js +343 -8
- package/packages/core/dist/status/project-status.js.map +1 -1
- package/packages/core/dist/storage/runtime-store.d.ts +348 -3
- package/packages/core/dist/storage/runtime-store.js +1017 -8
- package/packages/core/dist/storage/runtime-store.js.map +1 -1
- 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/test-support/fixtures.js +21 -0
- package/packages/core/dist/test-support/fixtures.js.map +1 -1
- package/packages/core/dist/test-support/run-state.d.ts +1 -1
- package/packages/core/dist/test-support/run-state.js +19 -20
- package/packages/core/dist/test-support/run-state.js.map +1 -1
- package/packages/core/dist/truth-reconciliation.d.ts +44 -0
- package/packages/core/dist/truth-reconciliation.js +138 -0
- package/packages/core/dist/truth-reconciliation.js.map +1 -0
- package/packages/core/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/core/dist/verification/goal-verify.d.ts +0 -1
- package/packages/core/dist/verification/goal-verify.js +44 -37
- package/packages/core/dist/verification/goal-verify.js.map +1 -1
- package/packages/core/dist/verification/rendering.d.ts +0 -2
- package/packages/core/dist/verification/rendering.js +19 -49
- package/packages/core/dist/verification/rendering.js.map +1 -1
- package/packages/core/dist/verification/review-gate.d.ts +22 -0
- package/packages/core/dist/verification/review-gate.js +53 -0
- package/packages/core/dist/verification/review-gate.js.map +1 -0
- package/packages/core/dist/verification/single-task-loop.d.ts +0 -1
- package/packages/core/dist/verification/single-task-loop.js +213 -111
- package/packages/core/dist/verification/single-task-loop.js.map +1 -1
- package/packages/core/dist/verification/test-runtime.d.ts +28 -3
- package/packages/core/dist/verification/test-runtime.js +546 -125
- package/packages/core/dist/verification/test-runtime.js.map +1 -1
- package/packages/core/dist/verification/validation-cache.d.ts +26 -0
- package/packages/core/dist/verification/validation-cache.js +73 -0
- package/packages/core/dist/verification/validation-cache.js.map +1 -0
- package/packages/core/dist/verification/validation-wave.d.ts +76 -0
- package/packages/core/dist/verification/validation-wave.js +450 -0
- package/packages/core/dist/verification/validation-wave.js.map +1 -0
- package/packages/core/dist/verification/verify-contract.d.ts +3 -1
- package/packages/core/dist/verification/verify-contract.js +105 -30
- package/packages/core/dist/verification/verify-contract.js.map +1 -1
- package/packages/core/dist/verification.d.ts +2 -0
- package/packages/core/dist/verification.js +2 -0
- 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.d.ts +24 -0
- package/packages/core/dist/workflow-gate/evidence-packet.js +395 -0
- package/packages/core/dist/workflow-gate/evidence-packet.js.map +1 -0
- package/packages/core/dist/workflow-gate/hard-checks.d.ts +4 -0
- package/packages/core/dist/workflow-gate/hard-checks.js +164 -0
- package/packages/core/dist/workflow-gate/hard-checks.js.map +1 -0
- package/packages/core/dist/workflow-gate/policy.d.ts +4 -0
- package/packages/core/dist/workflow-gate/policy.js +182 -0
- package/packages/core/dist/workflow-gate/policy.js.map +1 -0
- package/packages/core/dist/workflow-gate/types.d.ts +88 -0
- package/packages/core/dist/workflow-gate/types.js +2 -0
- package/packages/core/dist/workflow-gate/types.js.map +1 -0
- package/packages/core/dist/workflow-state/affected-file-conflicts.d.ts +1 -1
- package/packages/core/dist/workflow-state/affected-file-conflicts.js +17 -3
- package/packages/core/dist/workflow-state/affected-file-conflicts.js.map +1 -1
- package/packages/core/dist/workflow-state/dependencies.d.ts +8 -4
- package/packages/core/dist/workflow-state/dependencies.js +25 -11
- package/packages/core/dist/workflow-state/dependencies.js.map +1 -1
- package/packages/core/dist/workflow-state/latest-eligible-run.d.ts +37 -0
- package/packages/core/dist/workflow-state/latest-eligible-run.js +188 -0
- package/packages/core/dist/workflow-state/latest-eligible-run.js.map +1 -0
- package/packages/core/dist/workflow-state/migration-recovery.d.ts +40 -0
- package/packages/core/dist/workflow-state/migration-recovery.js +110 -0
- package/packages/core/dist/workflow-state/migration-recovery.js.map +1 -0
- package/packages/core/dist/workflow-state/repair-contract.d.ts +12 -0
- package/packages/core/dist/workflow-state/repair-contract.js +63 -0
- package/packages/core/dist/workflow-state/repair-contract.js.map +1 -0
- package/packages/core/dist/workflow-state/resolve-task-run.d.ts +21 -0
- package/packages/core/dist/workflow-state/resolve-task-run.js +95 -0
- package/packages/core/dist/workflow-state/resolve-task-run.js.map +1 -0
- package/packages/core/dist/workflow-state/resolve.d.ts +80 -3
- package/packages/core/dist/workflow-state/resolve.js +674 -41
- package/packages/core/dist/workflow-state/resolve.js.map +1 -1
- package/packages/core/dist/workflow-state/runtime-projections.d.ts +228 -0
- package/packages/core/dist/workflow-state/runtime-projections.js +452 -0
- package/packages/core/dist/workflow-state/runtime-projections.js.map +1 -0
- package/packages/core/dist/workflow-state.d.ts +1 -0
- package/packages/core/dist/workflow-state.js +1 -0
- package/packages/core/dist/workflow-state.js.map +1 -1
- package/packages/core/package.json +3 -3
- package/node_modules/@sdd-agent-platform/core/dist/doctor/render.d.ts +0 -2
- package/node_modules/@sdd-agent-platform/core/dist/doctor/render.js +0 -44
- package/node_modules/@sdd-agent-platform/core/dist/doctor/render.js.map +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.d.ts +0 -17
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.js +0 -221
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.js.map +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.d.ts +0 -91
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.js +0 -395
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.js.map +0 -1
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.d.ts +0 -2
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.js +0 -3
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.js.map +0 -1
- package/node_modules/@sdd-agent-platform/core/src/sync-back/apply.ts +0 -248
- package/node_modules/@sdd-agent-platform/core/src/sync-back/inspect.ts +0 -522
- package/node_modules/@sdd-agent-platform/core/src/sync-back/sync-back.test.ts +0 -446
- package/node_modules/@sdd-agent-platform/core/src/sync-back.ts +0 -2
- package/packages/cli/dist/commands/artifact.d.ts +0 -6
- package/packages/cli/dist/commands/artifact.js +0 -168
- package/packages/cli/dist/commands/artifact.js.map +0 -1
- package/packages/cli/dist/commands/sync-back.d.ts +0 -6
- package/packages/cli/dist/commands/sync-back.js +0 -82
- package/packages/cli/dist/commands/sync-back.js.map +0 -1
- package/packages/cli/dist/renderers/artifacts.d.ts +0 -5
- package/packages/cli/dist/renderers/artifacts.js +0 -43
- package/packages/cli/dist/renderers/artifacts.js.map +0 -1
- package/packages/core/dist/doctor/render.d.ts +0 -2
- package/packages/core/dist/doctor/render.js +0 -44
- package/packages/core/dist/doctor/render.js.map +0 -1
- package/packages/core/dist/sync-back/apply.d.ts +0 -17
- package/packages/core/dist/sync-back/apply.js +0 -221
- package/packages/core/dist/sync-back/apply.js.map +0 -1
- package/packages/core/dist/sync-back/inspect.d.ts +0 -91
- package/packages/core/dist/sync-back/inspect.js +0 -395
- package/packages/core/dist/sync-back/inspect.js.map +0 -1
- package/packages/core/dist/sync-back.d.ts +0 -2
- package/packages/core/dist/sync-back.js +0 -3
- package/packages/core/dist/sync-back.js.map +0 -1
|
@@ -1,30 +1,253 @@
|
|
|
1
1
|
import { CAPABILITY_SOURCE_CATALOG_VERSION } from '../contracts.js';
|
|
2
|
+
import type {
|
|
3
|
+
CapabilitySourceAllowedEvidenceType,
|
|
4
|
+
CapabilitySourceCatalogEntry,
|
|
5
|
+
CapabilitySourceKind,
|
|
6
|
+
CapabilitySourceQuarantineStatus,
|
|
7
|
+
CapabilityReuseDecision
|
|
8
|
+
} from '../router/agent-runtime.js';
|
|
2
9
|
|
|
3
|
-
|
|
4
|
-
|
|
10
|
+
const FORBIDDEN_RUNTIME_AUTHORITY = [
|
|
11
|
+
'lifecycle gate authority',
|
|
12
|
+
'stage completion decision',
|
|
13
|
+
'truth-alignment approval',
|
|
14
|
+
'ship readiness pass',
|
|
15
|
+
'permission escalation'
|
|
16
|
+
];
|
|
5
17
|
|
|
6
|
-
interface
|
|
7
|
-
version: typeof CAPABILITY_SOURCE_CATALOG_VERSION;
|
|
18
|
+
interface CapabilitySourceInput {
|
|
8
19
|
id: string;
|
|
9
20
|
name: string;
|
|
10
21
|
kind: CapabilitySourceKind;
|
|
11
22
|
sourceRef: string;
|
|
12
23
|
reuseDecision: CapabilityReuseDecision;
|
|
13
24
|
quarantineRequired: boolean;
|
|
25
|
+
quarantineStatus: CapabilitySourceQuarantineStatus;
|
|
26
|
+
permissionModel: string[];
|
|
27
|
+
provenanceRequirements: string[];
|
|
28
|
+
hostCompatibility: string[];
|
|
29
|
+
allowedEvidenceTypes: CapabilitySourceAllowedEvidenceType[];
|
|
30
|
+
forbiddenAuthority?: string[];
|
|
14
31
|
allowedUse: string;
|
|
15
32
|
attribution: string;
|
|
16
33
|
rationale: string;
|
|
17
34
|
}
|
|
18
35
|
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
|
|
36
|
+
function source(input: CapabilitySourceInput): CapabilitySourceCatalogEntry {
|
|
37
|
+
return {
|
|
38
|
+
version: CAPABILITY_SOURCE_CATALOG_VERSION,
|
|
39
|
+
forbiddenAuthority: input.forbiddenAuthority ?? FORBIDDEN_RUNTIME_AUTHORITY,
|
|
40
|
+
...input
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const BUILT_IN_CAPABILITY_SOURCES: CapabilitySourceCatalogEntry[] = [
|
|
45
|
+
source({
|
|
46
|
+
id: 'claude_code_native',
|
|
47
|
+
name: 'Claude Code native capabilities',
|
|
48
|
+
kind: 'native_host',
|
|
49
|
+
sourceRef: 'Claude Code subagents/skills/MCP/hooks/settings/background tasks',
|
|
50
|
+
reuseDecision: 'reuse_direct',
|
|
51
|
+
quarantineRequired: false,
|
|
52
|
+
quarantineStatus: 'not_required',
|
|
53
|
+
permissionModel: ['host allow/ask/deny permissions', 'skill allowed-tools preapproval', 'subagent tool isolation', 'MCP server trust boundary'],
|
|
54
|
+
provenanceRequirements: ['managed entry path or host surface', 'host session/task id when delegated', 'tool summary or artifact reference'],
|
|
55
|
+
hostCompatibility: ['claude-code:supported'],
|
|
56
|
+
allowedEvidenceTypes: ['execution_record', 'command_output', 'external_reference'],
|
|
57
|
+
allowedUse: 'host-native execution, permission projection, and provenance capture',
|
|
58
|
+
attribution: 'Claude Code host runtime',
|
|
59
|
+
rationale: 'Reuse execution mechanics while SDD retains lifecycle, evidence, and completion authority.'
|
|
60
|
+
}),
|
|
61
|
+
source({
|
|
62
|
+
id: 'context7_mcp',
|
|
63
|
+
name: 'Context7 MCP',
|
|
64
|
+
kind: 'mcp_tool',
|
|
65
|
+
sourceRef: 'Context7 documentation MCP',
|
|
66
|
+
reuseDecision: 'reuse_direct',
|
|
67
|
+
quarantineRequired: false,
|
|
68
|
+
quarantineStatus: 'not_required',
|
|
69
|
+
permissionModel: ['MCP tool call with host approval policy', 'read-only external documentation lookup'],
|
|
70
|
+
provenanceRequirements: ['MCP server id', 'library id or source URL', 'retrieval timestamp or command evidence'],
|
|
71
|
+
hostCompatibility: ['mcp:supported', 'claude-code:supported'],
|
|
72
|
+
allowedEvidenceTypes: ['external_reference'],
|
|
73
|
+
allowedUse: 'current library/API documentation lookup with source evidence',
|
|
74
|
+
attribution: 'Context7 MCP',
|
|
75
|
+
rationale: 'Mature docs lookup should be declared as capability, not rebuilt.'
|
|
76
|
+
}),
|
|
77
|
+
source({
|
|
78
|
+
id: 'playwright_mcp',
|
|
79
|
+
name: 'Playwright browser capability',
|
|
80
|
+
kind: 'mcp_tool',
|
|
81
|
+
sourceRef: 'Playwright MCP/CLI',
|
|
82
|
+
reuseDecision: 'reuse_direct',
|
|
83
|
+
quarantineRequired: false,
|
|
84
|
+
quarantineStatus: 'not_required',
|
|
85
|
+
permissionModel: ['browser automation with host approval policy', 'project-scoped local/browser access'],
|
|
86
|
+
provenanceRequirements: ['browser snapshot or trace path', 'command output', 'target URL or local route'],
|
|
87
|
+
hostCompatibility: ['mcp:supported', 'cli:supported', 'claude-code:supported'],
|
|
88
|
+
allowedEvidenceTypes: ['browser_snapshot', 'command_output'],
|
|
89
|
+
allowedUse: 'browser/UI validation evidence mapped into SDD artifacts',
|
|
90
|
+
attribution: 'Playwright',
|
|
91
|
+
rationale: 'Browser verification should be ingested as evidence rather than replaced by prompts.'
|
|
92
|
+
}),
|
|
93
|
+
source({
|
|
94
|
+
id: 'codex_host_future',
|
|
95
|
+
name: 'Codex host adapter placeholder',
|
|
96
|
+
kind: 'future_adapter',
|
|
97
|
+
sourceRef: 'Codex CLI/agent host behavior requires project validation before routing',
|
|
98
|
+
reuseDecision: 'avoid',
|
|
99
|
+
quarantineRequired: true,
|
|
100
|
+
quarantineStatus: 'denied',
|
|
101
|
+
permissionModel: ['unsupported until Codex sandbox, approval, and MCP behavior are verified'],
|
|
102
|
+
provenanceRequirements: ['future host session id', 'future approval/sandbox record', 'future artifact mapping'],
|
|
103
|
+
hostCompatibility: ['codex:unsupported'],
|
|
104
|
+
allowedEvidenceTypes: ['none'],
|
|
105
|
+
allowedUse: 'unsupported future host adapter research only',
|
|
106
|
+
attribution: 'Codex public docs and issue review',
|
|
107
|
+
rationale: 'Current evidence is insufficient for stable active adapter fields; keep Codex out of routing until verified.'
|
|
108
|
+
}),
|
|
109
|
+
source({
|
|
110
|
+
id: 'opencode_patterns',
|
|
111
|
+
name: 'OpenCode mechanism patterns',
|
|
112
|
+
kind: 'mechanism_reference',
|
|
113
|
+
sourceRef: 'OpenCode / Oh My OpenCode',
|
|
114
|
+
reuseDecision: 'borrow_mechanism',
|
|
115
|
+
quarantineRequired: false,
|
|
116
|
+
quarantineStatus: 'not_required',
|
|
117
|
+
permissionModel: ['permission-shape reference only', 'allow/ask/deny normalized by SDD before use'],
|
|
118
|
+
provenanceRequirements: ['referenced OpenCode docs or source path', 'SDD adapter mapping decision'],
|
|
119
|
+
hostCompatibility: ['opencode:future_adapter'],
|
|
120
|
+
allowedEvidenceTypes: ['none'],
|
|
121
|
+
allowedUse: 'adapter, model policy, permission and session discipline references',
|
|
122
|
+
attribution: 'OpenCode ecosystem',
|
|
123
|
+
rationale: 'Borrow host-neutral mechanisms without coupling SDD core to OpenCode APIs.'
|
|
124
|
+
}),
|
|
125
|
+
source({
|
|
126
|
+
id: 'ohmy_team_mode',
|
|
127
|
+
name: 'Oh My team-mode pattern',
|
|
128
|
+
kind: 'mechanism_reference',
|
|
129
|
+
sourceRef: 'Oh My OpenCode team-mode',
|
|
130
|
+
reuseDecision: 'borrow_mechanism',
|
|
131
|
+
quarantineRequired: false,
|
|
132
|
+
quarantineStatus: 'not_required',
|
|
133
|
+
permissionModel: ['mechanism reference only', 'SDD-owned delegation waves and artifact requirements'],
|
|
134
|
+
provenanceRequirements: ['referenced source material', 'SDD team-mode policy id'],
|
|
135
|
+
hostCompatibility: ['opencode:future_adapter', 'host-neutral:supported'],
|
|
136
|
+
allowedEvidenceTypes: ['none'],
|
|
137
|
+
allowedUse: 'adaptive chief/member/team-message/delegation-wave contract shape',
|
|
138
|
+
attribution: 'Oh My OpenCode',
|
|
139
|
+
rationale: 'Team runtime remains host capability; SDD records policy and evidence.'
|
|
140
|
+
}),
|
|
141
|
+
source({
|
|
142
|
+
id: 'figma_design_future',
|
|
143
|
+
name: 'Figma design tooling placeholder',
|
|
144
|
+
kind: 'future_adapter',
|
|
145
|
+
sourceRef: 'Figma Dev Mode/MCP design context tooling',
|
|
146
|
+
reuseDecision: 'adapt_via_host_adapter',
|
|
147
|
+
quarantineRequired: true,
|
|
148
|
+
quarantineStatus: 'required',
|
|
149
|
+
permissionModel: ['read-only design context by default', 'write/generation actions unsupported', 'account/seat/tool limits must be checked'],
|
|
150
|
+
provenanceRequirements: ['Figma file or node reference', 'tool/server id', 'timestamped design context artifact'],
|
|
151
|
+
hostCompatibility: ['figma:future_adapter', 'mcp:future_adapter'],
|
|
152
|
+
allowedEvidenceTypes: ['design_context', 'external_reference'],
|
|
153
|
+
allowedUse: 'design context, tokens, variables, screenshots, and Code Connect mapping as candidate evidence',
|
|
154
|
+
attribution: 'Figma Dev Mode/MCP documentation',
|
|
155
|
+
rationale: 'Design tooling may inform UI/UX work, but write actions and readiness authority stay unsupported until adapter validation.'
|
|
156
|
+
}),
|
|
157
|
+
source({
|
|
158
|
+
id: 'ui_ux_pro_max_external',
|
|
159
|
+
name: 'ui-ux-pro-max external skill material',
|
|
160
|
+
kind: 'open_source_material',
|
|
161
|
+
sourceRef: 'ui-ux-pro-max external skill or user-global material',
|
|
162
|
+
reuseDecision: 'adapt_via_host_adapter',
|
|
163
|
+
quarantineRequired: true,
|
|
164
|
+
quarantineStatus: 'quarantined',
|
|
165
|
+
permissionModel: ['external skill material requires source review', 'no direct prompt import', 'no design-tool write authority'],
|
|
166
|
+
provenanceRequirements: ['material source path or registry id', 'license/source attribution', 'quarantine scan result'],
|
|
167
|
+
hostCompatibility: ['claude-code:future_adapter', 'host-neutral:future_adapter'],
|
|
168
|
+
allowedEvidenceTypes: ['candidate_evidence', 'design_context'],
|
|
169
|
+
allowedUse: 'UI/UX critique, heuristic review, and design deliverable metadata after quarantine',
|
|
170
|
+
attribution: 'ui-ux-pro-max external material',
|
|
171
|
+
rationale: 'Named external UI/UX skills are useful sources, but must be routed as mapped material rather than copied into baseline packs.'
|
|
172
|
+
}),
|
|
173
|
+
source({
|
|
174
|
+
id: 'roo_cline_permissions',
|
|
175
|
+
name: 'Roo/Cline tool permission envelope',
|
|
176
|
+
kind: 'mechanism_reference',
|
|
177
|
+
sourceRef: 'Roo Code / Cline modes and approvals',
|
|
178
|
+
reuseDecision: 'borrow_mechanism',
|
|
179
|
+
quarantineRequired: false,
|
|
180
|
+
quarantineStatus: 'not_required',
|
|
181
|
+
permissionModel: ['tool group and approval-policy reference only', 'SDD normalizes permissions before host projection'],
|
|
182
|
+
provenanceRequirements: ['referenced permission docs or source path', 'SDD permission policy id'],
|
|
183
|
+
hostCompatibility: ['host-neutral:supported'],
|
|
184
|
+
allowedEvidenceTypes: ['none'],
|
|
185
|
+
allowedUse: 'tool group, approval and runtime validation policy reference',
|
|
186
|
+
attribution: 'Roo Code / Cline',
|
|
187
|
+
rationale: 'Permission semantics should be structured, not natural-language prompt rules.'
|
|
188
|
+
}),
|
|
189
|
+
source({
|
|
190
|
+
id: 'cc_sdd_completion_gate',
|
|
191
|
+
name: 'cc-sdd dispatch and completion gates',
|
|
192
|
+
kind: 'mechanism_reference',
|
|
193
|
+
sourceRef: 'cc-sdd',
|
|
194
|
+
reuseDecision: 'borrow_mechanism',
|
|
195
|
+
quarantineRequired: false,
|
|
196
|
+
quarantineStatus: 'not_required',
|
|
197
|
+
permissionModel: ['mechanism reference only', 'SDD task graph remains authoritative'],
|
|
198
|
+
provenanceRequirements: ['referenced dispatch/completion source', 'SDD evidence mapping decision'],
|
|
199
|
+
hostCompatibility: ['host-neutral:supported'],
|
|
200
|
+
allowedEvidenceTypes: ['none'],
|
|
201
|
+
allowedUse: 'bounded delegation and completion gate reference',
|
|
202
|
+
attribution: 'cc-sdd',
|
|
203
|
+
rationale: 'Useful dispatch pattern, but SDD task graph and evidence remain authoritative.'
|
|
204
|
+
}),
|
|
205
|
+
source({
|
|
206
|
+
id: 'agency_agents_material',
|
|
207
|
+
name: 'Agency agents material library',
|
|
208
|
+
kind: 'open_source_material',
|
|
209
|
+
sourceRef: 'msitarzewski/agency-agents',
|
|
210
|
+
reuseDecision: 'adapt_via_host_adapter',
|
|
211
|
+
quarantineRequired: true,
|
|
212
|
+
quarantineStatus: 'quarantined',
|
|
213
|
+
permissionModel: ['external prompt pack quarantine', 'metadata extraction only before approval', 'no direct execution'],
|
|
214
|
+
provenanceRequirements: ['source repository/ref', 'license/source attribution', 'secret/dangerous-command scan result'],
|
|
215
|
+
hostCompatibility: ['host-neutral:future_adapter'],
|
|
216
|
+
allowedEvidenceTypes: ['candidate_evidence', 'external_reference'],
|
|
217
|
+
allowedUse: 'domain taxonomy, guardrail and deliverable metadata after quarantine',
|
|
218
|
+
attribution: 'agency-agents',
|
|
219
|
+
rationale: 'Large prompt packs are material sources only and must be mapped before routing use.'
|
|
220
|
+
}),
|
|
221
|
+
source({
|
|
222
|
+
id: 'wshobson_manifest',
|
|
223
|
+
name: 'wshobson/BuildWithClaude manifest patterns',
|
|
224
|
+
kind: 'mechanism_reference',
|
|
225
|
+
sourceRef: 'wshobson agents / BuildWithClaude',
|
|
226
|
+
reuseDecision: 'borrow_mechanism',
|
|
227
|
+
quarantineRequired: true,
|
|
228
|
+
quarantineStatus: 'required',
|
|
229
|
+
permissionModel: ['manifest mechanism reference after inspection', 'no copied agent body before quarantine'],
|
|
230
|
+
provenanceRequirements: ['source repository/ref', 'manifest ownership mapping', 'license/source attribution'],
|
|
231
|
+
hostCompatibility: ['claude-code:future_adapter', 'host-neutral:future_adapter'],
|
|
232
|
+
allowedEvidenceTypes: ['none'],
|
|
233
|
+
allowedUse: 'marketplace manifest and file ownership reference after inspection',
|
|
234
|
+
attribution: 'wshobson / BuildWithClaude',
|
|
235
|
+
rationale: 'Borrow manifest/file ownership mechanics without copying agents.'
|
|
236
|
+
}),
|
|
237
|
+
source({
|
|
238
|
+
id: 'crewai_autogen_langgraph',
|
|
239
|
+
name: 'CrewAI/AutoGen/LangGraph workflow frameworks',
|
|
240
|
+
kind: 'future_adapter',
|
|
241
|
+
sourceRef: 'CrewAI / AutoGen / LangGraph',
|
|
242
|
+
reuseDecision: 'avoid',
|
|
243
|
+
quarantineRequired: false,
|
|
244
|
+
quarantineStatus: 'not_required',
|
|
245
|
+
permissionModel: ['unsupported workflow-framework adapter'],
|
|
246
|
+
provenanceRequirements: ['future adapter analysis before any runtime use'],
|
|
247
|
+
hostCompatibility: ['workflow-framework:unsupported'],
|
|
248
|
+
allowedEvidenceTypes: ['none'],
|
|
249
|
+
allowedUse: 'future optional adapter only after Phase 6 contracts stabilize',
|
|
250
|
+
attribution: 'CrewAI / AutoGen / LangGraph',
|
|
251
|
+
rationale: 'Avoid adding a workflow OS or scheduler to Phase 6 core.'
|
|
252
|
+
})
|
|
30
253
|
];
|
|
@@ -5,7 +5,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
5
5
|
import { inspectAgentCapabilityCatalog, type AgentCapabilityAuthority, type AgentCapabilityDomain, type AgentCapabilityMaterialPack, type MaterialPackLoadPolicy } from './agent-capability-catalog.js';
|
|
6
6
|
import { listRuntimeProjections, recordRuntimeProjection } from '../storage/runtime-store.js';
|
|
7
7
|
|
|
8
|
-
export type CommandTeamRuntimeCommand = 'spec' | 'plan' | 'tasks' | 'verifies' | 'do' | 'test' | 'verify' | '
|
|
8
|
+
export type CommandTeamRuntimeCommand = 'spec' | 'plan' | 'tasks' | 'verifies' | 'do' | 'test' | 'verify' | 'goal-verify' | 'ship' | 'doctor-deep' | 'recover';
|
|
9
9
|
export type CommandTeamMode = 'single' | 'team-lite' | 'team-required' | 'blocked';
|
|
10
10
|
export type CommandTeamActivation = 'auto' | 'force' | 'off';
|
|
11
11
|
export type CommandRoleKind = 'scout' | 'planner' | 'implementer' | 'reviewer' | 'validator' | 'risk-reviewer' | 'summarizer' | 'operator';
|
|
@@ -80,8 +80,8 @@ const ROLES: CommandRoleProfile[] = [
|
|
|
80
80
|
role('role.verification-designer', 'validator', ['verification_design'], 'gate_evidence', ['verification-design'], 'small', true, true),
|
|
81
81
|
role('role.evidence-runner', 'operator', ['evidence_collection'], 'validation_runner', ['verification-design'], 'small', true, true),
|
|
82
82
|
role('role.implementation-reviewer', 'reviewer', ['verification_design'], 'gate_evidence', ['verification-design'], 'small', true, true),
|
|
83
|
-
role('role.
|
|
84
|
-
role('role.release-summarizer', 'summarizer', ['release_summary'], 'advisory_only', ['
|
|
83
|
+
role('role.truth-alignment-reviewer', 'risk-reviewer', ['truth_alignment_review'], 'gate_evidence', ['truth-alignment-risk'], 'tiny', true, true),
|
|
84
|
+
role('role.release-summarizer', 'summarizer', ['release_summary'], 'advisory_only', ['truth-alignment-risk'], 'tiny', true, false),
|
|
85
85
|
role('role.context-curator', 'scout', ['context_curation'], 'advisory_only', ['project-norms', 'uncertainty-map', 'performance-risk'], 'tiny', true, false)
|
|
86
86
|
];
|
|
87
87
|
|
|
@@ -93,16 +93,16 @@ const COMMAND_PROFILES: CommandTeamRuntimeProfile[] = [
|
|
|
93
93
|
profile('do', 'single', ['implementation_review', 'shared_state'], ['role.implementation-reviewer'], ['role.context-curator'], 'gate_decides', 'route_when_triggered', 'small'),
|
|
94
94
|
profile('test', 'single', ['validation', 'runtime_evidence'], ['role.evidence-runner'], ['role.verification-designer'], 'gate_decides', 'route_when_triggered', 'small'),
|
|
95
95
|
profile('verify', 'team-lite', ['acceptance', 'runtime_evidence'], ['role.verification-designer', 'role.evidence-runner'], ['role.context-curator'], 'gate_decides', 'route_when_triggered', 'small'),
|
|
96
|
-
profile('
|
|
97
|
-
profile('ship', 'team-lite', ['release', 'external_state'], ['role.release-summarizer', 'role.
|
|
98
|
-
profile('doctor-deep', 'team-lite', ['runtime_evidence', 'stale_evidence'], ['role.context-curator', 'role.
|
|
99
|
-
profile('recover', 'team-required', ['blocked', 'stale_evidence', 'shared_state'], ['role.context-curator', 'role.
|
|
96
|
+
profile('goal-verify', 'team-lite', ['shared_state', 'semantic_update'], ['role.truth-alignment-reviewer'], ['role.context-curator'], 'gate_decides', 'summary_only', 'tiny'),
|
|
97
|
+
profile('ship', 'team-lite', ['release', 'external_state'], ['role.release-summarizer', 'role.truth-alignment-reviewer'], ['role.context-curator'], 'runner_decides', 'summary_only', 'tiny'),
|
|
98
|
+
profile('doctor-deep', 'team-lite', ['runtime_evidence', 'stale_evidence'], ['role.context-curator', 'role.truth-alignment-reviewer'], ['role.release-summarizer'], 'runner_decides', 'summary_only', 'tiny'),
|
|
99
|
+
profile('recover', 'team-required', ['blocked', 'stale_evidence', 'shared_state'], ['role.context-curator', 'role.truth-alignment-reviewer', 'role.verification-designer'], ['role.release-summarizer'], 'gate_decides', 'summary_only', 'small')
|
|
100
100
|
];
|
|
101
101
|
|
|
102
102
|
const INDEPENDENCE_RULES: CommandRoleIndependenceRule[] = [
|
|
103
103
|
independence('ind.verify.runner-designer', 'verify', 'role.evidence-runner', 'role.verification-designer', 'Verification design and executed evidence must remain distinguishable.'),
|
|
104
|
-
independence('ind.ship.summary-risk', 'ship', 'role.release-summarizer', 'role.
|
|
105
|
-
independence('ind.recover.context-risk', 'recover', 'role.context-curator', 'role.
|
|
104
|
+
independence('ind.ship.summary-risk', 'ship', 'role.release-summarizer', 'role.truth-alignment-reviewer', 'Release summary cannot replace truth-alignment risk review.'),
|
|
105
|
+
independence('ind.recover.context-risk', 'recover', 'role.context-curator', 'role.truth-alignment-reviewer', 'Recovery context selection cannot approve its own shared-state changes.'),
|
|
106
106
|
independence('ind.test.runner-designer', 'test', 'role.evidence-runner', 'role.verification-designer', 'Validation command execution must not be treated as verification design when both roles are active.')
|
|
107
107
|
];
|
|
108
108
|
|
|
@@ -244,7 +244,7 @@ function validateInspection(inspection: CommandTeamRuntimeInspection, domains: S
|
|
|
244
244
|
const issues: string[] = [];
|
|
245
245
|
const roleIds = new Set(inspection.roles.map((roleProfile) => roleProfile.id));
|
|
246
246
|
const commandIds = new Set<CommandTeamRuntimeCommand>();
|
|
247
|
-
const expectedCommands: CommandTeamRuntimeCommand[] = ['spec', 'plan', 'tasks', 'verifies', 'do', 'test', 'verify', '
|
|
247
|
+
const expectedCommands: CommandTeamRuntimeCommand[] = ['spec', 'plan', 'tasks', 'verifies', 'do', 'test', 'verify', 'goal-verify', 'ship', 'doctor-deep', 'recover'];
|
|
248
248
|
|
|
249
249
|
for (const roleProfile of inspection.roles) {
|
|
250
250
|
if (roleProfile.requiredDomains.length === 0) {
|
|
@@ -103,7 +103,7 @@ const HARNESS_LEARNING_SINKS: HarnessLearningSink[] = [
|
|
|
103
103
|
{ id: 'generated_entry_guidance', output: 'Managed command or skill wording update.', boundary: 'Must remain sdd-managed and refresh through update rather than user-file overwrite.' }
|
|
104
104
|
];
|
|
105
105
|
|
|
106
|
-
const HARNESS_LEARNING_FORBIDDEN_OUTPUTS = ['self-modifying runtime', 'hidden background automation', 'unapproved
|
|
106
|
+
const HARNESS_LEARNING_FORBIDDEN_OUTPUTS = ['self-modifying runtime', 'hidden background automation', 'unapproved truth-alignment approval', 'replacement of .sdd/project.yml/specs/runtime.sqlite/branch evidence as source of truth'];
|
|
107
107
|
|
|
108
108
|
const PROJECT_CONTEXT_PACK: ProjectContextPackContract = {
|
|
109
109
|
version: PROJECT_CONTEXT_PACK_CONTRACT_VERSION,
|
|
@@ -117,7 +117,7 @@ const PROJECT_CONTEXT_PACK: ProjectContextPackContract = {
|
|
|
117
117
|
'.sdd/project.yml for project configuration',
|
|
118
118
|
'specs/<branch>/spec.md, plan.md, and tasks.md for semantic state',
|
|
119
119
|
'.sdd/runtime.sqlite for runtime execution facts',
|
|
120
|
-
'.sdd/runs/<
|
|
120
|
+
'.sdd/runs/<branch>/<stage>/*.md for agent-authored stage evidence'
|
|
121
121
|
],
|
|
122
122
|
boundaries: [
|
|
123
123
|
'Context pack may prime future sessions but cannot mark tasks complete.',
|
|
@@ -213,8 +213,8 @@ export async function validateProjectContextPackContract(projectRoot: string): P
|
|
|
213
213
|
if (await shouldValidatePlatformProjectAssets(projectRoot) && !await exists(path.join(projectRoot, contract.entryPoint))) {
|
|
214
214
|
issues.push(contractIssue('projectContextPack.entryPoint', `Context pack entry point is missing: ${contract.entryPoint}.`, 'Restore context/memory/MEMORY.md or update the context pack entry point.'));
|
|
215
215
|
}
|
|
216
|
-
if (!contract.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/project.yml')) || !contract.runtimeSourcesOfTruth.some((source) => source.includes('specs/<branch>')) || !contract.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/runs'))) {
|
|
217
|
-
issues.push(contractIssue('projectContextPack.runtimeSourcesOfTruth', 'Context pack does not name the structured runtime sources of truth.', 'Declare .sdd/project.yml, specs/<branch>, and .sdd/runs as runtime sources of truth.'));
|
|
216
|
+
if (!contract.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/project.yml')) || !contract.runtimeSourcesOfTruth.some((source) => source.includes('specs/<branch>')) || !contract.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/runtime.sqlite')) || !contract.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/runs/<branch>/<stage>'))) {
|
|
217
|
+
issues.push(contractIssue('projectContextPack.runtimeSourcesOfTruth', 'Context pack does not name the structured runtime sources of truth.', 'Declare .sdd/project.yml, specs/<branch>, .sdd/runtime.sqlite, and .sdd/runs/<branch>/<stage> stage evidence as runtime sources of truth.'));
|
|
218
218
|
}
|
|
219
219
|
if (!contract.boundaries.some((boundary) => boundary.includes('cannot mark tasks complete'))) {
|
|
220
220
|
issues.push(contractIssue('projectContextPack.boundaries', 'Context pack boundary does not prevent runtime state mutation.', 'Declare that context memory cannot mark tasks complete or replace runtime evidence.'));
|
|
@@ -54,9 +54,9 @@ const QUERY_STATUS_SURFACES: QueryStatusSurface[] = [
|
|
|
54
54
|
id: 'run_inspect',
|
|
55
55
|
command: 'sdd run inspect <run_id>',
|
|
56
56
|
responsibility: 'Inspect one run as execution evidence.',
|
|
57
|
-
includes: ['run state', 'recent events', 'artifacts', 'artifact ingestions', 'validation', '
|
|
57
|
+
includes: ['run state', 'recent events', 'artifacts', 'artifact ingestions', 'validation', 'truth-alignment state', 'task-run evidence'],
|
|
58
58
|
excludes: ['project-wide health audit', 'branch route recommendation'],
|
|
59
|
-
nextActionRule: 'Point to evidence inspection, verify, or
|
|
59
|
+
nextActionRule: 'Point to evidence inspection, test, goal-verify, or ship based on run state.'
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
id: 'debug',
|
|
@@ -7,7 +7,7 @@ import path from 'node:path';
|
|
|
7
7
|
import { initProject } from '../config/init-project.js';
|
|
8
8
|
import { doctor } from '../doctor/doctor.js';
|
|
9
9
|
import { inspectAgentRegistryEntry, listAgentRegistry } from './agent-registry.js';
|
|
10
|
-
import { inspectAgentCapabilityCatalog, validateAgentCapabilityCatalog } from './agent-capability-catalog.js';
|
|
10
|
+
import { inspectAgentCapabilityCatalog, REQUIRED_PROFESSIONAL_CAPABILITY_DOMAINS, validateAgentCapabilityCatalog } from './agent-capability-catalog.js';
|
|
11
11
|
import { decideCommandTeamRuntime, inspectCommandTeamRuntime, validateCommandTeamRuntime } from './command-team-runtime.js';
|
|
12
12
|
import { buildContextBuildPackage } from '../context/build-package.js';
|
|
13
13
|
import {
|
|
@@ -44,7 +44,7 @@ test('Phase 5.2 workflow gates and agent registry expose inspectable contracts',
|
|
|
44
44
|
assert.equal(agents.agents.some((agent) => agent.id === 'validator'), true);
|
|
45
45
|
assert.ok(doWorkflow);
|
|
46
46
|
assert.equal(doWorkflow.allowedAgents.includes('implementer'), true);
|
|
47
|
-
assert.equal(doWorkflow.requiredArtifacts.includes('
|
|
47
|
+
assert.equal(doWorkflow.requiredArtifacts.includes('.sdd/runs/<branch>/do/do-manager-vN.md'), true);
|
|
48
48
|
assert.ok(implementer);
|
|
49
49
|
assert.equal(implementer.autonomyCeiling, 'foreground_write');
|
|
50
50
|
assert.equal(implementer.writeBoundary.includes('declared affected files'), true);
|
|
@@ -123,7 +123,9 @@ test('Phase 5.5 eval, learning, and context pack contracts validate against ERP
|
|
|
123
123
|
assert.equal(contextPack.entryPoint, 'context/memory/MEMORY.md');
|
|
124
124
|
assert.equal(contextPack.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/project.yml')), true);
|
|
125
125
|
assert.equal(contextPack.runtimeSourcesOfTruth.some((source) => source.includes('specs/<branch>')), true);
|
|
126
|
-
assert.equal(contextPack.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/
|
|
126
|
+
assert.equal(contextPack.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/runtime.sqlite')), true);
|
|
127
|
+
assert.equal(contextPack.runtimeSourcesOfTruth.some((source) => source.includes('.sdd/runs/<branch>/<stage>')), true);
|
|
128
|
+
assert.equal(contextPack.runtimeSourcesOfTruth.some((source) => source.includes('runs/<branch>/<stage>') && !source.includes('.sdd/runs/<branch>/<stage>')), false);
|
|
127
129
|
assert.equal(contextValidation.valid, true);
|
|
128
130
|
});
|
|
129
131
|
|
|
@@ -172,14 +174,53 @@ test('Phase 7.6 agent capability catalog routes domains and material packs witho
|
|
|
172
174
|
const verifiesMapping = catalog.commandMappings.find((mapping) => mapping.command === 'verifies');
|
|
173
175
|
const contextCapability = catalog.capabilities.find((capability) => capability.domain === 'context_curation');
|
|
174
176
|
|
|
177
|
+
const lifecycleHooks = new Set(catalog.capabilities.filter((capability) => capability.domainGroup === 'professional').flatMap((capability) => capability.lifecycleHooks));
|
|
178
|
+
const requiredLifecycleHooks = [
|
|
179
|
+
'spec.capability_review',
|
|
180
|
+
'plan.capability_strategy',
|
|
181
|
+
'tasks.capability_topology',
|
|
182
|
+
'do.capability_execution',
|
|
183
|
+
'test.capability_validation',
|
|
184
|
+
'goal_verify.capability_truth_alignment',
|
|
185
|
+
'ship.capability_release_risk'
|
|
186
|
+
];
|
|
175
187
|
assert.equal(catalog.version, 'phase-7.6-agent-capability-catalog-v1');
|
|
176
188
|
assert.equal(validation.valid, true);
|
|
177
|
-
assert.equal(catalog.capabilities.length,
|
|
189
|
+
assert.equal(catalog.capabilities.length, 19);
|
|
190
|
+
assert.equal(catalog.materialPacks.length, 16);
|
|
191
|
+
assert.equal(catalog.capabilities.filter((capability) => capability.domainGroup === 'professional').length, REQUIRED_PROFESSIONAL_CAPABILITY_DOMAINS.length);
|
|
178
192
|
assert.equal(catalog.materialPacks.every((pack) => pack.contextBudget !== 'medium'), true);
|
|
193
|
+
assert.equal(catalog.materialPacks.every((pack) => pack.expectedOutputs.length > 0 && pack.forbiddenUses.length > 0), true);
|
|
179
194
|
assert.equal(specMapping?.requiredDomains.includes('norm_discovery'), true);
|
|
180
195
|
assert.equal(specMapping?.requiredDomains.includes('uncertainty_resolution'), true);
|
|
181
196
|
assert.equal(verifiesMapping?.requiredDomains.includes('verification_design'), true);
|
|
182
197
|
assert.equal(contextCapability?.routing.materialPackIds.includes('performance-risk'), true);
|
|
198
|
+
const backendCapability = catalog.capabilities.find((capability) => capability.domain === 'backend-engineering');
|
|
199
|
+
const frontendCapability = catalog.capabilities.find((capability) => capability.domain === 'frontend-engineering');
|
|
200
|
+
const databaseCapability = catalog.capabilities.find((capability) => capability.domain === 'db-data-engineering');
|
|
201
|
+
const evidenceCapability = catalog.capabilities.find((capability) => capability.id === 'cap.evidence-collection');
|
|
202
|
+
|
|
203
|
+
for (const domain of REQUIRED_PROFESSIONAL_CAPABILITY_DOMAINS) {
|
|
204
|
+
const capability = catalog.capabilities.find((entry) => entry.domain === domain);
|
|
205
|
+
const pack = catalog.materialPacks.find((entry) => entry.sourceKind === 'sdd_native_baseline' && entry.domains.includes(domain));
|
|
206
|
+
assert.equal(capability?.domainGroup, 'professional');
|
|
207
|
+
assert.equal(capability?.authority, 'advisory_only');
|
|
208
|
+
assert.equal(capability?.routing.materialPackIds.includes(pack?.id ?? ''), true);
|
|
209
|
+
assert.equal(pack?.sourceId, 'sdd_professional_baseline');
|
|
210
|
+
assert.equal(pack?.loadPolicy, 'route_when_triggered');
|
|
211
|
+
assert.equal(pack?.forbiddenUses.includes('host-specific skill projection'), true);
|
|
212
|
+
}
|
|
213
|
+
for (const hook of requiredLifecycleHooks) {
|
|
214
|
+
assert.equal(lifecycleHooks.has(hook), true);
|
|
215
|
+
}
|
|
216
|
+
assert.equal(catalog.capabilities.every((capability) => capability.materialPolicy.length > 0 && capability.evidenceExpectation.length > 0), true);
|
|
217
|
+
assert.equal(catalog.capabilities.every((capability) => capability.routing.projectStackTags.length > 0), true);
|
|
218
|
+
assert.equal(catalog.capabilities.every((capability) => capability.lifecycleHooks.length > 0 && (capability.finalAuthority === 'sdd_contract' || capability.finalAuthority === 'sdd_gate')), true);
|
|
219
|
+
assert.equal(backendCapability?.routing.projectStackTags.includes('api'), true);
|
|
220
|
+
assert.equal(frontendCapability?.routing.projectStackTags.includes('tsx'), true);
|
|
221
|
+
assert.equal(databaseCapability?.routing.projectStackTags.includes('sql'), true);
|
|
222
|
+
assert.equal(evidenceCapability?.materialPolicy, 'runtime_evidence_required');
|
|
223
|
+
assert.equal(evidenceCapability?.evidenceExpectation, 'accepted_runtime_evidence');
|
|
183
224
|
assert.equal(catalog.commandMappings.some((mapping) => mapping.materialPolicy === 'never_inline'), false);
|
|
184
225
|
} finally {
|
|
185
226
|
await rm(root, { recursive: true, force: true });
|
|
@@ -34,7 +34,7 @@ const BUILT_IN_TOOL_CAPABILITIES: ToolCapability[] = [
|
|
|
34
34
|
defaultAvailable: true,
|
|
35
35
|
allowedStages: ['do', 'verify', 'doctor'],
|
|
36
36
|
requiredEvidence: ['sdd-result artifact', 'run event log', 'doctor report'],
|
|
37
|
-
forbiddenUses: ['delete run evidence', '
|
|
37
|
+
forbiddenUses: ['delete run evidence', 'claim truth-alignment approval', 'mark acceptance without validator evidence']
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
id: 'browser-ui-check',
|
|
@@ -87,9 +87,9 @@ const BUILT_IN_TOOL_CAPABILITIES: ToolCapability[] = [
|
|
|
87
87
|
summary: 'Read and update local SDD runtime state, semantic docs, artifacts, and generated entries through explicit commands.',
|
|
88
88
|
sideEffect: 'command_execution',
|
|
89
89
|
defaultAvailable: true,
|
|
90
|
-
allowedStages: ['status', 'do', '
|
|
90
|
+
allowedStages: ['status', 'do', 'test', 'goal-verify', 'ship', 'doctor'],
|
|
91
91
|
requiredEvidence: ['command output', 'state/event/artifact path when runtime changes'],
|
|
92
|
-
forbiddenUses: ['unapproved
|
|
92
|
+
forbiddenUses: ['unapproved truth-alignment approval', 'automatic commit or push', 'background write orchestration']
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
id: 'validation-command',
|
|
@@ -36,7 +36,7 @@ const BUILT_IN_TOOL_PLUGIN_CONTRACTS: ToolPluginContract[] = [
|
|
|
36
36
|
loadMode: 'static_manifest',
|
|
37
37
|
checksum: null,
|
|
38
38
|
requiredEvidence: ['sdd-result artifact', 'run event log', 'doctor report'],
|
|
39
|
-
forbiddenUses: ['dynamic plugin execution', 'delete run evidence', '
|
|
39
|
+
forbiddenUses: ['dynamic plugin execution', 'delete run evidence', 'claim truth-alignment approval', 'background write orchestration']
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
id: 'browser-ui-check-adapter',
|
|
@@ -96,7 +96,7 @@ const BUILT_IN_TOOL_PLUGIN_CONTRACTS: ToolPluginContract[] = [
|
|
|
96
96
|
loadMode: 'static_manifest',
|
|
97
97
|
checksum: null,
|
|
98
98
|
requiredEvidence: ['command output', 'state/event/artifact path when runtime changes'],
|
|
99
|
-
forbiddenUses: ['dynamic plugin execution', 'unapproved
|
|
99
|
+
forbiddenUses: ['dynamic plugin execution', 'unapproved truth-alignment approval', 'automatic commit or push', 'background write orchestration']
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
id: 'validation-command-runner',
|
|
@@ -62,15 +62,15 @@ const BUILT_IN_WORKER_ADAPTER_CONTRACTS: WorkerAdapterContract[] = [
|
|
|
62
62
|
stateMachineVersion: DELEGATION_STATE_MACHINE_VERSION
|
|
63
63
|
},
|
|
64
64
|
output: {
|
|
65
|
-
artifactReference: '
|
|
65
|
+
artifactReference: '.sdd/runs/<branch>/<stage>/<agent>-<task_id>.md',
|
|
66
66
|
terminalStatus: ['COMPLETED', 'FAILED', 'TIMED_OUT', 'CANCELLED'],
|
|
67
67
|
exitStatuses: ['completed', 'failed', 'timed_out', 'cancelled', 'blocked'],
|
|
68
68
|
requiredEvents: ['delegation_started', 'delegation_completed', 'delegation_failed', 'delegation_timeout', 'delegation_cancelled']
|
|
69
69
|
},
|
|
70
70
|
sideEffect: 'command_execution',
|
|
71
|
-
permissionPrompt: 'Run a Claude Code/subagent task for one queued delegation and persist only declared run events/
|
|
72
|
-
requiredEvidence: ['queue item id', 'delegation state transition event', '
|
|
73
|
-
forbiddenUses: ['bypass Claude Code permission prompts', 'execute undeclared wave scheduling', 'write outside .sdd/runs or
|
|
71
|
+
permissionPrompt: 'Run a Claude Code/subagent task for one queued delegation and persist only declared run events/stage evidence references.',
|
|
72
|
+
requiredEvidence: ['queue item id', 'delegation state transition event', 'stage evidence reference'],
|
|
73
|
+
forbiddenUses: ['bypass Claude Code permission prompts', 'execute undeclared wave scheduling', 'write outside declared .sdd/runs/<branch>/<stage> evidence or approved task scope', 'reopen terminal delegation ids']
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
id: 'manual-handoff-worker',
|
|
@@ -87,15 +87,15 @@ const BUILT_IN_WORKER_ADAPTER_CONTRACTS: WorkerAdapterContract[] = [
|
|
|
87
87
|
stateMachineVersion: DELEGATION_STATE_MACHINE_VERSION
|
|
88
88
|
},
|
|
89
89
|
output: {
|
|
90
|
-
artifactReference: '
|
|
90
|
+
artifactReference: '.sdd/runs/<branch>/<stage>/<agent>-<task_id>.md',
|
|
91
91
|
terminalStatus: ['COMPLETED', 'FAILED', 'CANCELLED'],
|
|
92
92
|
exitStatuses: ['completed', 'failed', 'cancelled', 'blocked'],
|
|
93
93
|
requiredEvents: ['delegation_started', 'delegation_completed', 'delegation_failed', 'delegation_cancelled']
|
|
94
94
|
},
|
|
95
95
|
sideEffect: 'read_only',
|
|
96
96
|
permissionPrompt: 'Prepare a manual delegation handoff without starting a background process.',
|
|
97
|
-
requiredEvidence: ['queue item id', 'manual handoff instructions', 'expected
|
|
98
|
-
forbiddenUses: ['start background worker', 'claim queue item', 'mark delegation completed without
|
|
97
|
+
requiredEvidence: ['queue item id', 'manual handoff instructions', 'expected stage evidence reference'],
|
|
98
|
+
forbiddenUses: ['start background worker', 'claim queue item', 'mark delegation completed without stage evidence']
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
id: 'sdd-cli-task-worker',
|
|
@@ -112,15 +112,15 @@ const BUILT_IN_WORKER_ADAPTER_CONTRACTS: WorkerAdapterContract[] = [
|
|
|
112
112
|
stateMachineVersion: DELEGATION_STATE_MACHINE_VERSION
|
|
113
113
|
},
|
|
114
114
|
output: {
|
|
115
|
-
artifactReference: '
|
|
115
|
+
artifactReference: '.sdd/runs/<branch>/<stage>/<agent>-<task_id>.md',
|
|
116
116
|
terminalStatus: ['COMPLETED', 'FAILED', 'TIMED_OUT', 'CANCELLED'],
|
|
117
117
|
exitStatuses: ['completed', 'failed', 'timed_out', 'cancelled', 'blocked'],
|
|
118
118
|
requiredEvents: ['delegation_started', 'delegation_completed', 'delegation_failed', 'delegation_timeout', 'delegation_cancelled']
|
|
119
119
|
},
|
|
120
120
|
sideEffect: 'local_write',
|
|
121
|
-
permissionPrompt: 'Run a bounded SDD CLI task adapter and write only declared
|
|
122
|
-
requiredEvidence: ['queue item id', 'command output', 'sdd-result
|
|
123
|
-
forbiddenUses: ['unapproved
|
|
121
|
+
permissionPrompt: 'Run a bounded SDD CLI task adapter and write only declared stage evidence/runtime metadata.',
|
|
122
|
+
requiredEvidence: ['queue item id', 'command output', 'sdd-result stage evidence reference'],
|
|
123
|
+
forbiddenUses: ['unapproved truth-alignment approval', 'dynamic plugin execution', 'background wave execution', 'write undeclared stage evidence']
|
|
124
124
|
}
|
|
125
125
|
];
|
|
126
126
|
|
|
@@ -51,10 +51,10 @@ const BUILT_IN_WORKFLOW_GATES: WorkflowGateContract[] = [
|
|
|
51
51
|
command: 'sdd instructions tasks --json',
|
|
52
52
|
requiredInputs: ['approved spec', 'approved plan', 'task boundary candidates'],
|
|
53
53
|
allowedAgents: ['planner', 'reviewer'],
|
|
54
|
-
requiredArtifacts: ['specs/<branch>/tasks.md'],
|
|
55
|
-
gateConditions: ['each task has boundary', 'affected files declared when knowable', 'validation declared'],
|
|
54
|
+
requiredArtifacts: ['specs/<branch>/tasks.md', '.sdd/runs/<branch>/tasks/*.md', 'specs/<branch>/verify.md', '.sdd/runs/<branch>/verifies/*.md'],
|
|
55
|
+
gateConditions: ['each task has boundary', 'affected files declared when knowable', 'validation declared', 'verifies closes only after tasks handoff'],
|
|
56
56
|
gapClosureBehavior: 'Run sdd tasks gaps and fix blocking task metadata before implementation.',
|
|
57
|
-
nextAction: '
|
|
57
|
+
nextAction: 'Close tasks, then close verifies through the /sdd:tasks bundle when runtime handoff targets verifies.'
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
version: WORKFLOW_GATE_CONTRACT_VERSION,
|
|
@@ -62,21 +62,21 @@ const BUILT_IN_WORKFLOW_GATES: WorkflowGateContract[] = [
|
|
|
62
62
|
command: 'sdd do task <task_id>',
|
|
63
63
|
requiredInputs: ['selected task', 'boundary', 'acceptance', 'declared validation'],
|
|
64
64
|
allowedAgents: ['scout', 'implementer', 'reviewer', 'debugger', 'validator'],
|
|
65
|
-
requiredArtifacts: ['
|
|
66
|
-
gateConditions: ['single selected task', 'no blocking task gaps', '
|
|
67
|
-
gapClosureBehavior: 'Block on missing boundary, missing validation, invalid
|
|
68
|
-
nextAction: 'Run inside the selected task boundary and record sdd
|
|
65
|
+
requiredArtifacts: ['.sdd/runs/<branch>/do/implementation-vN.md', '.sdd/runs/<branch>/do/code-review-vN.md', '.sdd/runs/<branch>/do/do-manager-vN.md'],
|
|
66
|
+
gateConditions: ['single selected task', 'no blocking task gaps', 'reviewed implementation evidence', 'manager closure request'],
|
|
67
|
+
gapClosureBehavior: 'Block on missing boundary, missing validation, invalid stage evidence, or expanded scope.',
|
|
68
|
+
nextAction: 'Run inside the selected task boundary and record .sdd/runs/<branch>/do/*.md evidence before test.'
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
version: WORKFLOW_GATE_CONTRACT_VERSION,
|
|
72
72
|
id: 'test',
|
|
73
|
-
command: 'sdd test
|
|
74
|
-
requiredInputs: ['
|
|
73
|
+
command: 'sdd test <validation_unit_id-or-validation_text>',
|
|
74
|
+
requiredInputs: ['verify.md validation unit boundary', 'validation command ledger', 'validation evidence'],
|
|
75
75
|
allowedAgents: ['validator', 'reviewer'],
|
|
76
|
-
requiredArtifacts: ['
|
|
77
|
-
gateConditions: ['acceptance mapped to evidence', 'validation gaps explicit', '
|
|
76
|
+
requiredArtifacts: ['.sdd/runs/<branch>/test/*.md', '.sdd/runs/<branch>/goal-verify/*.md', 'truthAlignment projection when goal-verify closes'],
|
|
77
|
+
gateConditions: ['acceptance mapped to evidence', 'validation gaps explicit', 'workflow gate policy known', 'goal-verify closes before ship'],
|
|
78
78
|
gapClosureBehavior: 'Return PASS, FAIL, or BLOCKED when command execution or acceptance evidence is incomplete.',
|
|
79
|
-
nextAction: '
|
|
79
|
+
nextAction: 'Close test evidence, then close goal-verify before ship readiness.'
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
version: WORKFLOW_GATE_CONTRACT_VERSION,
|