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
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
import type { RuntimeProjectionEnvelope, RuntimeRef, RuntimeScope, SddStage } from './contracts.js';
|
|
2
|
+
import { STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION } from './contracts.js';
|
|
3
|
+
import type { LifecycleRiskDecision } from './risk/contracts.js';
|
|
4
|
+
import type { WorkflowHandoff } from './stage-runtime/contracts.js';
|
|
5
|
+
import { type RuntimeProjectionEnvelopeWriteResult } from './storage/runtime-store.js';
|
|
6
|
+
import type { RegisteredStageArtifact } from './stage-artifacts.js';
|
|
7
|
+
import type { RegisteredStageCollaborationContract } from './stage-collaboration-contracts.js';
|
|
8
|
+
export type StageCollaborationIntensity = 'noop' | 'lightweight' | 'team-required' | 'scout-first' | 'blocked';
|
|
9
|
+
export type StageCollaborationHealth = 'no-op' | 'needs_clarification' | 'ready_for_plan' | 'ready_for_tasks' | 'ready_for_verifies' | 'ready_for_do' | 'ready_for_test' | 'ready_for_goal_verify' | 'ready_for_ship' | 'ship_ready' | 'rejected' | 'blocked';
|
|
10
|
+
export type SpecProposalItemKind = 'advisory_finding' | 'blocking_ambiguity' | 'capability_suggestion' | 'handoff_proposal';
|
|
11
|
+
export type SpecStageWorkOrderOutputKind = 'scout_context' | 'spec_review' | 'manager_closure_request';
|
|
12
|
+
export type SpecProposalAuthorityAttempt = 'stage_pass' | 'risk_decision' | 'gate_pass' | 'ship_ready' | 'truth_alignment_approved';
|
|
13
|
+
export type RuntimeProposalRejectionReason = 'missing_refs' | 'missing_required_review' | 'unsupported_stage' | 'authority_violation' | 'blocked_lifecycle' | 'invalid_proposal';
|
|
14
|
+
export type RuntimeNextActionReasonCode = 'authority_violation' | 'graph_illegal' | 'scope_unresolved' | 'ambiguous_target' | 'missing_canonical_artifact' | 'stale_upstream' | 'missing_handoff' | 'missing_required_review' | 'unresolved_conflict' | 'unresolved_ambiguity' | 'insufficient_evidence' | 'manager_rework_required' | 'human_required' | 'stage_ready' | 'handoff_ready' | 'report_only';
|
|
15
|
+
export type RuntimeNextActionKind = 'reject_proposal' | 'refresh_upstream_stage' | 'collect_required_review' | 'resolve_ambiguity' | 'request_manager_rework' | 'ask_user_clarification' | 'commit_stage_closure' | 'create_handoff' | 'report_status';
|
|
16
|
+
export type RuntimeNextActionScope = 'global' | 'stage' | 'human' | 'runtime';
|
|
17
|
+
export type RuntimeNextActionOwner = 'orchestrator' | 'stage-manager' | 'user' | 'runtime';
|
|
18
|
+
export type SpecStageManagerId = 'spec-manager';
|
|
19
|
+
export type SpecStageAgentId = 'spec-drafter' | 'spec-reviewer' | 'scout';
|
|
20
|
+
export type SpecStageCapabilityDomain = 'norm_discovery' | 'uncertainty_resolution' | 'context_curation' | 'solution-design' | 'frontend-engineering' | 'security-engineering' | 'ui-ux-product-design';
|
|
21
|
+
export type SpecStageParticipantKind = 'agent' | 'subagent' | 'skill' | 'material-pack';
|
|
22
|
+
export type SpecStageCollaborationTopology = 'none' | 'single-agent' | 'team-lite' | 'parallel-research' | 'team-required';
|
|
23
|
+
export interface RuntimeNextActionPriority {
|
|
24
|
+
reasonRank: number;
|
|
25
|
+
upstreamDistance: number;
|
|
26
|
+
actionRank: number;
|
|
27
|
+
stableOrder: number;
|
|
28
|
+
}
|
|
29
|
+
export interface RuntimeNextAction {
|
|
30
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
31
|
+
actionId: string;
|
|
32
|
+
stage: SddStage;
|
|
33
|
+
scope: RuntimeScope;
|
|
34
|
+
kind: RuntimeNextActionKind;
|
|
35
|
+
owner: RuntimeNextActionOwner;
|
|
36
|
+
actionScope: RuntimeNextActionScope;
|
|
37
|
+
reasonCode: RuntimeNextActionReasonCode;
|
|
38
|
+
priority: RuntimeNextActionPriority;
|
|
39
|
+
requiredInputs: string[];
|
|
40
|
+
blockedBy: RuntimeRef[];
|
|
41
|
+
createdAt: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const SPEC_STAGE_MANAGER = "spec-manager";
|
|
44
|
+
export declare const SPEC_STAGE_DRAFTER_AGENT = "spec-drafter";
|
|
45
|
+
export declare const SPEC_STAGE_REVIEW_AGENT = "spec-reviewer";
|
|
46
|
+
export declare const SPEC_STAGE_SCOUT_AGENT = "scout";
|
|
47
|
+
export declare const SPEC_STAGE_AGENT_TEAM: SpecStageAgentId[];
|
|
48
|
+
export declare const SPEC_STAGE_REQUIRED_CAPABILITIES: SpecStageCapabilityDomain[];
|
|
49
|
+
export declare const SPEC_STAGE_OPTIONAL_CAPABILITIES: SpecStageCapabilityDomain[];
|
|
50
|
+
export declare const SPEC_STAGE_MATERIAL_PACKS: readonly ["project-norms", "uncertainty-map", "baseline-solution-design", "baseline-frontend-engineering", "baseline-security-engineering", "baseline-ui-ux-product-design"];
|
|
51
|
+
export declare const STAGE_COLLABORATION_RUNTIME_PRODUCER_VERSION = "phase9.1-stage-collaboration-runtime-v1";
|
|
52
|
+
export declare const SPEC_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_1_spec_collaboration_adjudication";
|
|
53
|
+
export declare const PLAN_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_2_plan_collaboration_adjudication";
|
|
54
|
+
export declare const PLAN_STAGE_MANAGER = "plan-manager";
|
|
55
|
+
export declare const PLAN_STAGE_DRAFTER_AGENT = "plan-drafter";
|
|
56
|
+
export declare const PLAN_STAGE_REVIEW_AGENT = "plan-reviewer";
|
|
57
|
+
export declare const TASKS_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_3_tasks_collaboration_adjudication";
|
|
58
|
+
export declare const TASKS_STAGE_MANAGER = "tasks-manager";
|
|
59
|
+
export declare const TASKS_STAGE_DRAFTER_AGENT = "tasks-drafter";
|
|
60
|
+
export declare const TASKS_STAGE_REVIEW_AGENT = "tasks-reviewer";
|
|
61
|
+
export declare const TASKS_STAGE_SLICER_AGENT = "task-slicer";
|
|
62
|
+
export declare const VERIFIES_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_4_verifies_collaboration_adjudication";
|
|
63
|
+
export declare const VERIFIES_STAGE_MANAGER = "verifies-manager";
|
|
64
|
+
export declare const VERIFIES_STAGE_DRAFTER_AGENT = "verifies-drafter";
|
|
65
|
+
export declare const VERIFIES_STAGE_REVIEW_AGENT = "verifies-reviewer";
|
|
66
|
+
export declare const VERIFIES_STAGE_VERIFICATION_AGENT = "verification-agent";
|
|
67
|
+
export declare const DO_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_5_do_collaboration_adjudication";
|
|
68
|
+
export declare const DO_STAGE_MANAGER = "do-manager";
|
|
69
|
+
export declare const DO_STAGE_IMPLEMENTER_AGENT = "implementer";
|
|
70
|
+
export declare const DO_STAGE_CODE_REVIEW_AGENT = "code-reviewer";
|
|
71
|
+
export declare const DO_STAGE_DEBUGGER_AGENT = "debugger";
|
|
72
|
+
export declare const TEST_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_6_test_collaboration_adjudication";
|
|
73
|
+
export declare const TEST_STAGE_MANAGER = "test-manager";
|
|
74
|
+
export declare const TEST_STAGE_RUNNER_AGENT = "test-runner";
|
|
75
|
+
export declare const TEST_STAGE_VALIDATOR_AGENT = "validator";
|
|
76
|
+
export declare const TEST_STAGE_REVIEW_AGENT = "test-reviewer";
|
|
77
|
+
export declare const GOAL_VERIFY_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_7_goal_verify_collaboration_adjudication";
|
|
78
|
+
export declare const GOAL_VERIFY_STAGE_MANAGER = "goal-verify-manager";
|
|
79
|
+
export declare const GOAL_VERIFY_STAGE_VALIDATOR_AGENT = "goal-validator";
|
|
80
|
+
export declare const GOAL_VERIFY_STAGE_REVIEW_AGENT = "goal-reviewer";
|
|
81
|
+
export declare const TRUTH_ALIGNMENT_PROJECTION_TYPE = "phase9_12_truth_alignment";
|
|
82
|
+
export declare const TRUTH_ALIGNMENT_CONTRACT = "sdd-truth-alignment-v1";
|
|
83
|
+
export declare const SHIP_COLLABORATION_ADJUDICATION_PROJECTION_TYPE = "phase9_9_ship_collaboration_adjudication";
|
|
84
|
+
export declare const SHIP_STAGE_MANAGER = "ship-manager";
|
|
85
|
+
export declare const SHIP_STAGE_VALIDATOR_AGENT = "ship-validator";
|
|
86
|
+
export declare const SHIP_STAGE_REVIEW_AGENT = "release-reviewer";
|
|
87
|
+
export interface SpecStageCollaborationParticipant {
|
|
88
|
+
id: string;
|
|
89
|
+
kind: SpecStageParticipantKind;
|
|
90
|
+
role: string;
|
|
91
|
+
required: boolean;
|
|
92
|
+
capabilityDomain?: SpecStageCapabilityDomain;
|
|
93
|
+
parallelGroup: string | null;
|
|
94
|
+
}
|
|
95
|
+
export interface SpecStageCollaborationPlan {
|
|
96
|
+
topology: SpecStageCollaborationTopology;
|
|
97
|
+
participants: SpecStageCollaborationParticipant[];
|
|
98
|
+
maxParallelism: number;
|
|
99
|
+
fanIn: 'runtime_adjudication';
|
|
100
|
+
}
|
|
101
|
+
export interface StageCollaborationProfile {
|
|
102
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
103
|
+
stage: SddStage;
|
|
104
|
+
scope: RuntimeScope;
|
|
105
|
+
lifecycleProfile: LifecycleRiskDecision['profile'];
|
|
106
|
+
intensity: StageCollaborationIntensity;
|
|
107
|
+
required: boolean;
|
|
108
|
+
requiresStageClosure: boolean;
|
|
109
|
+
allowedProposalKinds: SpecProposalItemKind[];
|
|
110
|
+
stageManager: SpecStageManagerId | null;
|
|
111
|
+
agentTeam: SpecStageAgentId[];
|
|
112
|
+
requiredCapabilities: SpecStageCapabilityDomain[];
|
|
113
|
+
optionalCapabilities: SpecStageCapabilityDomain[];
|
|
114
|
+
materialPackIds: string[];
|
|
115
|
+
collaborationPlan: SpecStageCollaborationPlan;
|
|
116
|
+
inputRefs: RuntimeRef[];
|
|
117
|
+
reasons: string[];
|
|
118
|
+
generatedAt: string;
|
|
119
|
+
}
|
|
120
|
+
export interface SpecStageWorkOrder {
|
|
121
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
122
|
+
workOrderId: string;
|
|
123
|
+
stage: 'spec';
|
|
124
|
+
scope: RuntimeScope;
|
|
125
|
+
profileRef: RuntimeRef;
|
|
126
|
+
authorityCeiling: 'proposal_input';
|
|
127
|
+
requiredOutputKinds: SpecStageWorkOrderOutputKind[];
|
|
128
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
129
|
+
inputRefs: RuntimeRef[];
|
|
130
|
+
stageManager: SpecStageManagerId;
|
|
131
|
+
agentTeam: SpecStageAgentId[];
|
|
132
|
+
requiredCapabilities: SpecStageCapabilityDomain[];
|
|
133
|
+
optionalCapabilities: SpecStageCapabilityDomain[];
|
|
134
|
+
materialPackIds: string[];
|
|
135
|
+
collaborationPlan: SpecStageCollaborationPlan;
|
|
136
|
+
generatedAt: string;
|
|
137
|
+
}
|
|
138
|
+
export interface SpecDocumentCandidate {
|
|
139
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
140
|
+
candidateId: string;
|
|
141
|
+
stage: 'spec';
|
|
142
|
+
scope: RuntimeScope;
|
|
143
|
+
producedBy: SpecStageAgentId | 'fixture' | 'host-adapter';
|
|
144
|
+
inputRefs: RuntimeRef[];
|
|
145
|
+
evidenceRefs: RuntimeRef[];
|
|
146
|
+
acceptedItems: Array<{
|
|
147
|
+
id: string;
|
|
148
|
+
kind: SpecProposalItemKind;
|
|
149
|
+
summary: string;
|
|
150
|
+
refs: RuntimeRef[];
|
|
151
|
+
}>;
|
|
152
|
+
generatedAt: string;
|
|
153
|
+
}
|
|
154
|
+
export interface SpecReviewResult {
|
|
155
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
156
|
+
reviewId: string;
|
|
157
|
+
stage: 'spec';
|
|
158
|
+
scope: RuntimeScope;
|
|
159
|
+
reviewer: typeof SPEC_STAGE_REVIEW_AGENT;
|
|
160
|
+
candidateRef: RuntimeRef;
|
|
161
|
+
verdict: 'approved' | 'changes_requested' | 'blocked';
|
|
162
|
+
findings: string[];
|
|
163
|
+
evidenceRefs: RuntimeRef[];
|
|
164
|
+
generatedAt: string;
|
|
165
|
+
}
|
|
166
|
+
export interface CapabilityFinding {
|
|
167
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
168
|
+
findingId: string;
|
|
169
|
+
stage: 'spec';
|
|
170
|
+
scope: RuntimeScope;
|
|
171
|
+
capabilityDomain: SpecStageCapabilityDomain;
|
|
172
|
+
summary: string;
|
|
173
|
+
refs: RuntimeRef[];
|
|
174
|
+
generatedAt: string;
|
|
175
|
+
}
|
|
176
|
+
export interface SpecManagerCoordinationRecord {
|
|
177
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
178
|
+
coordinationId: string;
|
|
179
|
+
stage: 'spec';
|
|
180
|
+
scope: RuntimeScope;
|
|
181
|
+
stageManager: typeof SPEC_STAGE_MANAGER;
|
|
182
|
+
workOrderRef: RuntimeRef;
|
|
183
|
+
agentTeamRefs: RuntimeRef[];
|
|
184
|
+
recommendation: 'close_stage' | 'request_clarification' | 'reject' | 'blocked';
|
|
185
|
+
generatedAt: string;
|
|
186
|
+
}
|
|
187
|
+
export interface StageClosureRequest {
|
|
188
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
189
|
+
closureRequestId: string;
|
|
190
|
+
stage: 'spec';
|
|
191
|
+
scope: RuntimeScope;
|
|
192
|
+
submittedBy: typeof SPEC_STAGE_MANAGER | 'fixture' | 'host-adapter';
|
|
193
|
+
workOrderRef: RuntimeRef;
|
|
194
|
+
coordinationRef: RuntimeRef | null;
|
|
195
|
+
candidateRef: RuntimeRef | null;
|
|
196
|
+
reviewRefs: RuntimeRef[];
|
|
197
|
+
capabilityFindingRefs: RuntimeRef[];
|
|
198
|
+
evidenceRefs: RuntimeRef[];
|
|
199
|
+
candidate: SpecDocumentCandidate | null;
|
|
200
|
+
reviewResults: SpecReviewResult[];
|
|
201
|
+
capabilityFindings: CapabilityFinding[];
|
|
202
|
+
unresolvedAmbiguityIds: string[];
|
|
203
|
+
authorityAttempts: SpecProposalAuthorityAttempt[];
|
|
204
|
+
managerRecommendation: 'close_stage' | 'request_clarification' | 'reject' | 'blocked';
|
|
205
|
+
generatedAt: string;
|
|
206
|
+
}
|
|
207
|
+
export interface ClarificationGate {
|
|
208
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
209
|
+
gateId: string;
|
|
210
|
+
stage: 'spec';
|
|
211
|
+
scope: RuntimeScope;
|
|
212
|
+
status: 'needs_clarification' | 'answered';
|
|
213
|
+
questions: string[];
|
|
214
|
+
blockingItemIds: string[];
|
|
215
|
+
requiredResponder: 'user' | 'project-owner';
|
|
216
|
+
createdAt: string;
|
|
217
|
+
answeredAt?: string;
|
|
218
|
+
answerRefs: RuntimeRef[];
|
|
219
|
+
}
|
|
220
|
+
export interface SpecDecisionRecord {
|
|
221
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
222
|
+
decisionId: string;
|
|
223
|
+
stage: 'spec';
|
|
224
|
+
scope: RuntimeScope;
|
|
225
|
+
source: 'stage-closure-request' | 'clarification-answer' | 'runtime-noop';
|
|
226
|
+
acceptedItemIds: string[];
|
|
227
|
+
answerRefs: RuntimeRef[];
|
|
228
|
+
decisionRefs: RuntimeRef[];
|
|
229
|
+
mustNotAssume: string[];
|
|
230
|
+
createdAt: string;
|
|
231
|
+
}
|
|
232
|
+
export interface RuntimeProposalRejection {
|
|
233
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
234
|
+
rejectionId: string;
|
|
235
|
+
stage: SddStage;
|
|
236
|
+
scope: RuntimeScope;
|
|
237
|
+
closureRequestId: string | null;
|
|
238
|
+
reasonCode: RuntimeProposalRejectionReason;
|
|
239
|
+
explanation: string;
|
|
240
|
+
requiredNextAction: string;
|
|
241
|
+
retryAllowed: boolean;
|
|
242
|
+
retryBudgetRemaining: number;
|
|
243
|
+
fallbackRoute: 'ask-user' | 'revise-proposal' | 'runtime-blocked' | 'skip-spec';
|
|
244
|
+
createdAt: string;
|
|
245
|
+
}
|
|
246
|
+
export interface StageRuntimeDecision {
|
|
247
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
248
|
+
decisionId: string;
|
|
249
|
+
stage: SddStage;
|
|
250
|
+
scope: RuntimeScope;
|
|
251
|
+
status: 'skipped' | 'completed' | 'blocked' | 'rejected';
|
|
252
|
+
health: StageCollaborationHealth;
|
|
253
|
+
acceptedDecisionRefs: RuntimeRef[];
|
|
254
|
+
advisoryRefs: RuntimeRef[];
|
|
255
|
+
capabilityRefs: RuntimeRef[];
|
|
256
|
+
blockingReasons: string[];
|
|
257
|
+
createdAt: string;
|
|
258
|
+
}
|
|
259
|
+
export interface StageHandoffPacket {
|
|
260
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
261
|
+
handoffId: string;
|
|
262
|
+
scope: RuntimeScope;
|
|
263
|
+
fromStage: SddStage;
|
|
264
|
+
toStage: SddStage;
|
|
265
|
+
status: 'proposed' | 'blocked';
|
|
266
|
+
acceptedSpecDecisionRefs: RuntimeRef[];
|
|
267
|
+
advisoryRefs: RuntimeRef[];
|
|
268
|
+
capabilityRefs: RuntimeRef[];
|
|
269
|
+
unresolvedRisks: string[];
|
|
270
|
+
mustNotAssume: string[];
|
|
271
|
+
recommendedNextStageRoles: string[];
|
|
272
|
+
createdAt: string;
|
|
273
|
+
}
|
|
274
|
+
export interface RuntimeAdjudicationResult {
|
|
275
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
276
|
+
adjudicationId: string;
|
|
277
|
+
stage: 'spec';
|
|
278
|
+
scope: RuntimeScope;
|
|
279
|
+
health: StageCollaborationHealth;
|
|
280
|
+
acceptedItemIds: string[];
|
|
281
|
+
clarificationGate: ClarificationGate | null;
|
|
282
|
+
specDecisionRecord: SpecDecisionRecord | null;
|
|
283
|
+
stageDecision: StageRuntimeDecision | null;
|
|
284
|
+
handoffPacket: StageHandoffPacket | null;
|
|
285
|
+
rejection: RuntimeProposalRejection | null;
|
|
286
|
+
nextActions: RuntimeNextAction[];
|
|
287
|
+
closureRefs?: SpecCollaborationClosureRefs;
|
|
288
|
+
createdAt: string;
|
|
289
|
+
}
|
|
290
|
+
export type SpecArtifactAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_needs_clarification' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_spec' | 'not_accepted_starter_spec' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref';
|
|
291
|
+
export interface SpecCollaborationClosureRefs {
|
|
292
|
+
runRef: RuntimeRef;
|
|
293
|
+
acceptedSpecRef: RuntimeRef | null;
|
|
294
|
+
specAcceptanceStatus: SpecArtifactAcceptanceStatus;
|
|
295
|
+
specHash: string | null;
|
|
296
|
+
specContractHash: string | null;
|
|
297
|
+
artifactRefs: RuntimeRef[];
|
|
298
|
+
collaborationContractRef: RuntimeRef | null;
|
|
299
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
300
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
301
|
+
stageRunProjectionRef?: RuntimeRef;
|
|
302
|
+
workflowHandoffProjectionRef?: RuntimeRef;
|
|
303
|
+
reasons: string[];
|
|
304
|
+
}
|
|
305
|
+
export interface SpecCollaborationClosureInput {
|
|
306
|
+
decision: LifecycleRiskDecision;
|
|
307
|
+
coordination?: SpecManagerCoordinationRecord | null;
|
|
308
|
+
closureRequest?: StageClosureRequest | null;
|
|
309
|
+
answerRefs?: RuntimeRef[];
|
|
310
|
+
artifactRefs?: string[];
|
|
311
|
+
collaborationContractRefs?: string[];
|
|
312
|
+
generatedAt?: string;
|
|
313
|
+
runId?: string;
|
|
314
|
+
}
|
|
315
|
+
export interface SpecCollaborationClosureResult {
|
|
316
|
+
runId: string;
|
|
317
|
+
branch: string;
|
|
318
|
+
profile: StageCollaborationProfile;
|
|
319
|
+
workOrder: SpecStageWorkOrder | null;
|
|
320
|
+
coordination: SpecManagerCoordinationRecord | null;
|
|
321
|
+
candidate: SpecDocumentCandidate | null;
|
|
322
|
+
reviews: SpecReviewResult[];
|
|
323
|
+
capabilityFindings: CapabilityFinding[];
|
|
324
|
+
closureRequest: StageClosureRequest | null;
|
|
325
|
+
adjudication: RuntimeAdjudicationResult;
|
|
326
|
+
projectionRef: RuntimeRef;
|
|
327
|
+
artifactRefs: RuntimeRef[];
|
|
328
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
329
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
330
|
+
acceptedSpecRef: RuntimeRef | null;
|
|
331
|
+
}
|
|
332
|
+
export type PlanArtifactAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_plan' | 'not_accepted_starter_plan' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref' | 'not_accepted_missing_review' | 'not_accepted_missing_upstream';
|
|
333
|
+
export interface PlanStageWorkOrder {
|
|
334
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
335
|
+
workOrderId: string;
|
|
336
|
+
stage: 'plan';
|
|
337
|
+
scope: RuntimeScope;
|
|
338
|
+
profileRef: RuntimeRef;
|
|
339
|
+
authorityCeiling: 'proposal_input';
|
|
340
|
+
requiredOutputKinds: Array<'plan_context' | 'plan_review' | 'manager_closure_request'>;
|
|
341
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
342
|
+
inputRefs: RuntimeRef[];
|
|
343
|
+
stageManager: typeof PLAN_STAGE_MANAGER;
|
|
344
|
+
agentTeam: Array<typeof PLAN_STAGE_DRAFTER_AGENT | typeof PLAN_STAGE_REVIEW_AGENT | 'plan-scout'>;
|
|
345
|
+
requiredCapabilities: string[];
|
|
346
|
+
optionalCapabilities: string[];
|
|
347
|
+
materialPackIds: string[];
|
|
348
|
+
generatedAt: string;
|
|
349
|
+
}
|
|
350
|
+
export interface PlanCollaborationClosureRefs {
|
|
351
|
+
runRef: RuntimeRef;
|
|
352
|
+
acceptedPlanRef: RuntimeRef | null;
|
|
353
|
+
planAcceptanceStatus: PlanArtifactAcceptanceStatus;
|
|
354
|
+
planHash: string | null;
|
|
355
|
+
planContractHash: string | null;
|
|
356
|
+
acceptedSpecHandoffRef: RuntimeRef | null;
|
|
357
|
+
artifactRefs: RuntimeRef[];
|
|
358
|
+
collaborationContractRef: RuntimeRef | null;
|
|
359
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
360
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
361
|
+
stageRunProjectionRef: RuntimeRef;
|
|
362
|
+
workflowHandoffProjectionRef?: RuntimeRef;
|
|
363
|
+
reasons: string[];
|
|
364
|
+
}
|
|
365
|
+
export interface PlanCollaborationAdjudicationResult {
|
|
366
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
367
|
+
adjudicationId: string;
|
|
368
|
+
stage: 'plan';
|
|
369
|
+
scope: RuntimeScope;
|
|
370
|
+
health: StageCollaborationHealth;
|
|
371
|
+
stageDecision: StageRuntimeDecision;
|
|
372
|
+
handoffPacket: WorkflowHandoff | null;
|
|
373
|
+
rejection: RuntimeProposalRejection | null;
|
|
374
|
+
nextActions: RuntimeNextAction[];
|
|
375
|
+
closureRefs: PlanCollaborationClosureRefs;
|
|
376
|
+
createdAt: string;
|
|
377
|
+
}
|
|
378
|
+
export interface PlanCollaborationClosureInput {
|
|
379
|
+
decision: LifecycleRiskDecision;
|
|
380
|
+
artifactRefs?: string[];
|
|
381
|
+
collaborationContractRefs?: string[];
|
|
382
|
+
generatedAt?: string;
|
|
383
|
+
runId?: string;
|
|
384
|
+
}
|
|
385
|
+
export interface PlanCollaborationClosureResult {
|
|
386
|
+
runId: string;
|
|
387
|
+
branch: string;
|
|
388
|
+
workOrder: PlanStageWorkOrder | null;
|
|
389
|
+
adjudication: PlanCollaborationAdjudicationResult;
|
|
390
|
+
projectionRef: RuntimeRef;
|
|
391
|
+
artifactRefs: RuntimeRef[];
|
|
392
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
393
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
394
|
+
acceptedPlanRef: RuntimeRef | null;
|
|
395
|
+
}
|
|
396
|
+
export type TasksArtifactAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_tasks' | 'not_accepted_starter_tasks' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref' | 'not_accepted_missing_review' | 'not_accepted_invalid_task_ids' | 'not_accepted_duplicate_task_ids' | 'not_accepted_missing_upstream';
|
|
397
|
+
export interface TasksStageWorkOrder {
|
|
398
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
399
|
+
workOrderId: string;
|
|
400
|
+
stage: 'tasks';
|
|
401
|
+
scope: RuntimeScope;
|
|
402
|
+
profileRef: RuntimeRef;
|
|
403
|
+
authorityCeiling: 'proposal_input';
|
|
404
|
+
requiredOutputKinds: Array<'tasks_context' | 'tasks_review' | 'manager_closure_request'>;
|
|
405
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
406
|
+
inputRefs: RuntimeRef[];
|
|
407
|
+
stageManager: typeof TASKS_STAGE_MANAGER;
|
|
408
|
+
agentTeam: Array<typeof TASKS_STAGE_DRAFTER_AGENT | typeof TASKS_STAGE_REVIEW_AGENT | typeof TASKS_STAGE_SLICER_AGENT | 'tasks-capability'>;
|
|
409
|
+
requiredCapabilities: string[];
|
|
410
|
+
optionalCapabilities: string[];
|
|
411
|
+
materialPackIds: string[];
|
|
412
|
+
generatedAt: string;
|
|
413
|
+
}
|
|
414
|
+
export interface TasksCollaborationClosureRefs {
|
|
415
|
+
runRef: RuntimeRef;
|
|
416
|
+
acceptedTasksRef: RuntimeRef | null;
|
|
417
|
+
tasksAcceptanceStatus: TasksArtifactAcceptanceStatus;
|
|
418
|
+
tasksHash: string | null;
|
|
419
|
+
tasksContractHash: string | null;
|
|
420
|
+
acceptedPlanHandoffRef: RuntimeRef | null;
|
|
421
|
+
artifactRefs: RuntimeRef[];
|
|
422
|
+
collaborationContractRef: RuntimeRef | null;
|
|
423
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
424
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
425
|
+
stageRunProjectionRef: RuntimeRef;
|
|
426
|
+
workflowHandoffProjectionRef?: RuntimeRef;
|
|
427
|
+
reasons: string[];
|
|
428
|
+
}
|
|
429
|
+
export interface TasksCollaborationAdjudicationResult {
|
|
430
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
431
|
+
adjudicationId: string;
|
|
432
|
+
stage: 'tasks';
|
|
433
|
+
scope: RuntimeScope;
|
|
434
|
+
health: StageCollaborationHealth;
|
|
435
|
+
stageDecision: StageRuntimeDecision;
|
|
436
|
+
handoffPacket: WorkflowHandoff | null;
|
|
437
|
+
rejection: RuntimeProposalRejection | null;
|
|
438
|
+
nextActions: RuntimeNextAction[];
|
|
439
|
+
closureRefs: TasksCollaborationClosureRefs;
|
|
440
|
+
createdAt: string;
|
|
441
|
+
}
|
|
442
|
+
export interface TasksCollaborationClosureInput {
|
|
443
|
+
decision: LifecycleRiskDecision;
|
|
444
|
+
artifactRefs?: string[];
|
|
445
|
+
collaborationContractRefs?: string[];
|
|
446
|
+
generatedAt?: string;
|
|
447
|
+
runId?: string;
|
|
448
|
+
}
|
|
449
|
+
export interface TasksCollaborationClosureResult {
|
|
450
|
+
runId: string;
|
|
451
|
+
branch: string;
|
|
452
|
+
workOrder: TasksStageWorkOrder | null;
|
|
453
|
+
adjudication: TasksCollaborationAdjudicationResult;
|
|
454
|
+
projectionRef: RuntimeRef;
|
|
455
|
+
artifactRefs: RuntimeRef[];
|
|
456
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
457
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
458
|
+
acceptedTasksRef: RuntimeRef | null;
|
|
459
|
+
}
|
|
460
|
+
export type VerifiesArtifactAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_verify' | 'not_accepted_starter_verify' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref' | 'not_accepted_missing_review' | 'not_accepted_incomplete_coverage' | 'not_accepted_missing_upstream';
|
|
461
|
+
export interface VerifiesStageWorkOrder {
|
|
462
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
463
|
+
workOrderId: string;
|
|
464
|
+
stage: 'verifies';
|
|
465
|
+
scope: RuntimeScope;
|
|
466
|
+
profileRef: RuntimeRef;
|
|
467
|
+
authorityCeiling: 'proposal_input';
|
|
468
|
+
requiredOutputKinds: Array<'verifies_context' | 'verifies_review' | 'manager_closure_request'>;
|
|
469
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
470
|
+
inputRefs: RuntimeRef[];
|
|
471
|
+
stageManager: typeof VERIFIES_STAGE_MANAGER;
|
|
472
|
+
agentTeam: Array<typeof VERIFIES_STAGE_DRAFTER_AGENT | typeof VERIFIES_STAGE_REVIEW_AGENT | typeof VERIFIES_STAGE_VERIFICATION_AGENT | 'verifies-capability'>;
|
|
473
|
+
requiredCapabilities: string[];
|
|
474
|
+
optionalCapabilities: string[];
|
|
475
|
+
materialPackIds: string[];
|
|
476
|
+
generatedAt: string;
|
|
477
|
+
}
|
|
478
|
+
export interface VerifiesCollaborationClosureRefs {
|
|
479
|
+
runRef: RuntimeRef;
|
|
480
|
+
acceptedVerifyRef: RuntimeRef | null;
|
|
481
|
+
verifyAcceptanceStatus: VerifiesArtifactAcceptanceStatus;
|
|
482
|
+
verifyHash: string | null;
|
|
483
|
+
verifyContractHash: string | null;
|
|
484
|
+
acceptedTasksHandoffRef: RuntimeRef | null;
|
|
485
|
+
artifactRefs: RuntimeRef[];
|
|
486
|
+
collaborationContractRef: RuntimeRef | null;
|
|
487
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
488
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
489
|
+
stageRunProjectionRef: RuntimeRef;
|
|
490
|
+
workflowHandoffProjectionRef?: RuntimeRef;
|
|
491
|
+
reasons: string[];
|
|
492
|
+
}
|
|
493
|
+
export interface VerifiesCollaborationAdjudicationResult {
|
|
494
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
495
|
+
adjudicationId: string;
|
|
496
|
+
stage: 'verifies';
|
|
497
|
+
scope: RuntimeScope;
|
|
498
|
+
health: StageCollaborationHealth;
|
|
499
|
+
stageDecision: StageRuntimeDecision;
|
|
500
|
+
handoffPacket: WorkflowHandoff | null;
|
|
501
|
+
rejection: RuntimeProposalRejection | null;
|
|
502
|
+
nextActions: RuntimeNextAction[];
|
|
503
|
+
closureRefs: VerifiesCollaborationClosureRefs;
|
|
504
|
+
createdAt: string;
|
|
505
|
+
}
|
|
506
|
+
export interface VerifiesCollaborationClosureInput {
|
|
507
|
+
decision: LifecycleRiskDecision;
|
|
508
|
+
artifactRefs?: string[];
|
|
509
|
+
collaborationContractRefs?: string[];
|
|
510
|
+
generatedAt?: string;
|
|
511
|
+
runId?: string;
|
|
512
|
+
}
|
|
513
|
+
export interface VerifiesCollaborationClosureResult {
|
|
514
|
+
runId: string;
|
|
515
|
+
branch: string;
|
|
516
|
+
workOrder: VerifiesStageWorkOrder | null;
|
|
517
|
+
adjudication: VerifiesCollaborationAdjudicationResult;
|
|
518
|
+
projectionRef: RuntimeRef;
|
|
519
|
+
artifactRefs: RuntimeRef[];
|
|
520
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
521
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
522
|
+
acceptedVerifyRef: RuntimeRef | null;
|
|
523
|
+
}
|
|
524
|
+
export type DoArtifactAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_implementation' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref' | 'not_accepted_missing_review' | 'not_accepted_boundary_violation' | 'not_accepted_missing_upstream';
|
|
525
|
+
export interface DoStageWorkOrder {
|
|
526
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
527
|
+
workOrderId: string;
|
|
528
|
+
stage: 'do';
|
|
529
|
+
scope: RuntimeScope;
|
|
530
|
+
profileRef: RuntimeRef;
|
|
531
|
+
authorityCeiling: 'proposal_input';
|
|
532
|
+
requiredOutputKinds: Array<'implementation_evidence' | 'code_review' | 'manager_closure_request'>;
|
|
533
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
534
|
+
inputRefs: RuntimeRef[];
|
|
535
|
+
stageManager: typeof DO_STAGE_MANAGER;
|
|
536
|
+
agentTeam: Array<typeof DO_STAGE_IMPLEMENTER_AGENT | typeof DO_STAGE_CODE_REVIEW_AGENT | typeof DO_STAGE_DEBUGGER_AGENT>;
|
|
537
|
+
requiredCapabilities: string[];
|
|
538
|
+
optionalCapabilities: string[];
|
|
539
|
+
materialPackIds: string[];
|
|
540
|
+
generatedAt: string;
|
|
541
|
+
}
|
|
542
|
+
export interface DoCollaborationClosureRefs {
|
|
543
|
+
runRef: RuntimeRef;
|
|
544
|
+
acceptedImplementationRef: RuntimeRef | null;
|
|
545
|
+
implementationAcceptanceStatus: DoArtifactAcceptanceStatus;
|
|
546
|
+
implementationHash: string | null;
|
|
547
|
+
changedFileRefs: RuntimeRef[];
|
|
548
|
+
acceptedVerifyHandoffRef: RuntimeRef | null;
|
|
549
|
+
artifactRefs: RuntimeRef[];
|
|
550
|
+
collaborationContractRef: RuntimeRef | null;
|
|
551
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
552
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
553
|
+
stageRunProjectionRef: RuntimeRef;
|
|
554
|
+
workflowHandoffProjectionRef?: RuntimeRef;
|
|
555
|
+
reasons: string[];
|
|
556
|
+
}
|
|
557
|
+
export interface DoCollaborationAdjudicationResult {
|
|
558
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
559
|
+
adjudicationId: string;
|
|
560
|
+
stage: 'do';
|
|
561
|
+
scope: RuntimeScope;
|
|
562
|
+
health: StageCollaborationHealth;
|
|
563
|
+
stageDecision: StageRuntimeDecision;
|
|
564
|
+
handoffPacket: WorkflowHandoff | null;
|
|
565
|
+
rejection: RuntimeProposalRejection | null;
|
|
566
|
+
nextActions: RuntimeNextAction[];
|
|
567
|
+
closureRefs: DoCollaborationClosureRefs;
|
|
568
|
+
createdAt: string;
|
|
569
|
+
}
|
|
570
|
+
export interface DoCollaborationClosureInput {
|
|
571
|
+
decision: LifecycleRiskDecision;
|
|
572
|
+
artifactRefs?: string[];
|
|
573
|
+
collaborationContractRefs?: string[];
|
|
574
|
+
allowedChangedFileRefs?: string[];
|
|
575
|
+
generatedAt?: string;
|
|
576
|
+
runId?: string;
|
|
577
|
+
}
|
|
578
|
+
export interface DoCollaborationClosureResult {
|
|
579
|
+
runId: string;
|
|
580
|
+
branch: string;
|
|
581
|
+
workOrder: DoStageWorkOrder | null;
|
|
582
|
+
adjudication: DoCollaborationAdjudicationResult;
|
|
583
|
+
projectionRef: RuntimeRef;
|
|
584
|
+
artifactRefs: RuntimeRef[];
|
|
585
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
586
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
587
|
+
acceptedImplementationRef: RuntimeRef | null;
|
|
588
|
+
changedFileRefs: RuntimeRef[];
|
|
589
|
+
}
|
|
590
|
+
export type TestArtifactAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_execution' | 'not_accepted_missing_validation' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref' | 'not_accepted_missing_review' | 'not_accepted_failed_tests' | 'not_accepted_unmapped_acceptance' | 'not_accepted_missing_upstream';
|
|
591
|
+
export interface TestStageWorkOrder {
|
|
592
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
593
|
+
workOrderId: string;
|
|
594
|
+
stage: 'test';
|
|
595
|
+
scope: RuntimeScope;
|
|
596
|
+
profileRef: RuntimeRef;
|
|
597
|
+
authorityCeiling: 'proposal_input';
|
|
598
|
+
requiredOutputKinds: Array<'test_execution' | 'validation_evidence' | 'test_review' | 'manager_closure_request'>;
|
|
599
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
600
|
+
inputRefs: RuntimeRef[];
|
|
601
|
+
stageManager: typeof TEST_STAGE_MANAGER;
|
|
602
|
+
agentTeam: Array<typeof TEST_STAGE_RUNNER_AGENT | typeof TEST_STAGE_VALIDATOR_AGENT | typeof TEST_STAGE_REVIEW_AGENT>;
|
|
603
|
+
requiredCapabilities: string[];
|
|
604
|
+
optionalCapabilities: string[];
|
|
605
|
+
materialPackIds: string[];
|
|
606
|
+
generatedAt: string;
|
|
607
|
+
}
|
|
608
|
+
export interface TestCollaborationClosureRefs {
|
|
609
|
+
runRef: RuntimeRef;
|
|
610
|
+
acceptedTestEvidenceRef: RuntimeRef | null;
|
|
611
|
+
testAcceptanceStatus: TestArtifactAcceptanceStatus;
|
|
612
|
+
testEvidenceHash: string | null;
|
|
613
|
+
acceptedDoHandoffRef: RuntimeRef | null;
|
|
614
|
+
artifactRefs: RuntimeRef[];
|
|
615
|
+
collaborationContractRef: RuntimeRef | null;
|
|
616
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
617
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
618
|
+
stageRunProjectionRef: RuntimeRef;
|
|
619
|
+
workflowHandoffProjectionRef?: RuntimeRef;
|
|
620
|
+
reasons: string[];
|
|
621
|
+
}
|
|
622
|
+
export interface TestCollaborationAdjudicationResult {
|
|
623
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
624
|
+
adjudicationId: string;
|
|
625
|
+
stage: 'test';
|
|
626
|
+
scope: RuntimeScope;
|
|
627
|
+
health: StageCollaborationHealth;
|
|
628
|
+
stageDecision: StageRuntimeDecision;
|
|
629
|
+
handoffPacket: WorkflowHandoff | null;
|
|
630
|
+
rejection: RuntimeProposalRejection | null;
|
|
631
|
+
nextActions: RuntimeNextAction[];
|
|
632
|
+
closureRefs: TestCollaborationClosureRefs;
|
|
633
|
+
createdAt: string;
|
|
634
|
+
}
|
|
635
|
+
export interface TestCollaborationClosureInput {
|
|
636
|
+
decision: LifecycleRiskDecision;
|
|
637
|
+
artifactRefs?: string[];
|
|
638
|
+
collaborationContractRefs?: string[];
|
|
639
|
+
generatedAt?: string;
|
|
640
|
+
runId?: string;
|
|
641
|
+
}
|
|
642
|
+
export interface TestCollaborationClosureResult {
|
|
643
|
+
runId: string;
|
|
644
|
+
branch: string;
|
|
645
|
+
workOrder: TestStageWorkOrder | null;
|
|
646
|
+
adjudication: TestCollaborationAdjudicationResult;
|
|
647
|
+
projectionRef: RuntimeRef;
|
|
648
|
+
artifactRefs: RuntimeRef[];
|
|
649
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
650
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
651
|
+
acceptedTestEvidenceRef: RuntimeRef | null;
|
|
652
|
+
}
|
|
653
|
+
export type GoalVerifyArtifactAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_verification' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref' | 'not_accepted_missing_review' | 'not_accepted_failed_verification' | 'not_accepted_incomplete_coverage' | 'not_accepted_open_gap' | 'not_accepted_missing_upstream';
|
|
654
|
+
export interface GoalVerifyStageWorkOrder {
|
|
655
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
656
|
+
workOrderId: string;
|
|
657
|
+
stage: 'goal-verify';
|
|
658
|
+
scope: RuntimeScope;
|
|
659
|
+
profileRef: RuntimeRef;
|
|
660
|
+
authorityCeiling: 'proposal_input';
|
|
661
|
+
requiredOutputKinds: Array<'goal_verification' | 'goal_review' | 'manager_closure_request'>;
|
|
662
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
663
|
+
inputRefs: RuntimeRef[];
|
|
664
|
+
stageManager: typeof GOAL_VERIFY_STAGE_MANAGER;
|
|
665
|
+
agentTeam: Array<typeof GOAL_VERIFY_STAGE_VALIDATOR_AGENT | typeof GOAL_VERIFY_STAGE_REVIEW_AGENT>;
|
|
666
|
+
requiredCapabilities: string[];
|
|
667
|
+
optionalCapabilities: string[];
|
|
668
|
+
materialPackIds: string[];
|
|
669
|
+
generatedAt: string;
|
|
670
|
+
}
|
|
671
|
+
export type TruthAlignmentStatus = 'aligned' | 'drift_detected' | 'update_required' | 'blocked';
|
|
672
|
+
export type TruthAlignmentSemanticImpact = 'none' | 'bounded' | 'material';
|
|
673
|
+
export type TruthAlignmentOwnerStage = SddStage;
|
|
674
|
+
export interface TruthAlignmentProjection {
|
|
675
|
+
contract: typeof TRUTH_ALIGNMENT_CONTRACT;
|
|
676
|
+
branch: string;
|
|
677
|
+
sourceStage: 'goal-verify';
|
|
678
|
+
declaredTruthRefs: RuntimeRef[];
|
|
679
|
+
acceptedRealityRefs: RuntimeRef[];
|
|
680
|
+
status: TruthAlignmentStatus;
|
|
681
|
+
ownerStage: TruthAlignmentOwnerStage | null;
|
|
682
|
+
semanticImpact: TruthAlignmentSemanticImpact;
|
|
683
|
+
staleRefs: RuntimeRef[];
|
|
684
|
+
invalidatesStages: SddStage[];
|
|
685
|
+
reasons: string[];
|
|
686
|
+
createdAt: string;
|
|
687
|
+
}
|
|
688
|
+
export interface GoalVerifyCollaborationClosureRefs {
|
|
689
|
+
runRef: RuntimeRef;
|
|
690
|
+
acceptedGoalVerificationRef: RuntimeRef | null;
|
|
691
|
+
goalVerifyAcceptanceStatus: GoalVerifyArtifactAcceptanceStatus;
|
|
692
|
+
goalVerificationHash: string | null;
|
|
693
|
+
acceptedTestHandoffRef: RuntimeRef | null;
|
|
694
|
+
artifactRefs: RuntimeRef[];
|
|
695
|
+
collaborationContractRef: RuntimeRef | null;
|
|
696
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
697
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
698
|
+
stageRunProjectionRef: RuntimeRef;
|
|
699
|
+
workflowHandoffProjectionRef?: RuntimeRef;
|
|
700
|
+
truthAlignmentProjectionRef?: RuntimeRef;
|
|
701
|
+
reasons: string[];
|
|
702
|
+
}
|
|
703
|
+
export interface GoalVerifyCollaborationAdjudicationResult {
|
|
704
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
705
|
+
adjudicationId: string;
|
|
706
|
+
stage: 'goal-verify';
|
|
707
|
+
scope: RuntimeScope;
|
|
708
|
+
health: StageCollaborationHealth;
|
|
709
|
+
stageDecision: StageRuntimeDecision;
|
|
710
|
+
handoffPacket: WorkflowHandoff | null;
|
|
711
|
+
rejection: RuntimeProposalRejection | null;
|
|
712
|
+
nextActions: RuntimeNextAction[];
|
|
713
|
+
closureRefs: GoalVerifyCollaborationClosureRefs;
|
|
714
|
+
createdAt: string;
|
|
715
|
+
}
|
|
716
|
+
export interface GoalVerifyCollaborationClosureInput {
|
|
717
|
+
decision: LifecycleRiskDecision;
|
|
718
|
+
artifactRefs?: string[];
|
|
719
|
+
collaborationContractRefs?: string[];
|
|
720
|
+
generatedAt?: string;
|
|
721
|
+
runId?: string;
|
|
722
|
+
}
|
|
723
|
+
export interface GoalVerifyCollaborationClosureResult {
|
|
724
|
+
runId: string;
|
|
725
|
+
branch: string;
|
|
726
|
+
workOrder: GoalVerifyStageWorkOrder | null;
|
|
727
|
+
adjudication: GoalVerifyCollaborationAdjudicationResult;
|
|
728
|
+
projectionRef: RuntimeRef;
|
|
729
|
+
artifactRefs: RuntimeRef[];
|
|
730
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
731
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
732
|
+
acceptedGoalVerificationRef: RuntimeRef | null;
|
|
733
|
+
}
|
|
734
|
+
export type ShipReadinessAcceptanceStatus = 'accepted' | 'not_required_noop' | 'not_accepted_rejected' | 'not_accepted_blocked' | 'not_accepted_missing_readiness' | 'not_accepted_hash_mismatch' | 'not_accepted_wrong_ref' | 'not_accepted_missing_review' | 'not_accepted_open_blocker' | 'not_accepted_release_drift' | 'not_accepted_missing_upstream' | 'not_accepted_authority_violation';
|
|
735
|
+
export interface ShipStageWorkOrder {
|
|
736
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
737
|
+
workOrderId: string;
|
|
738
|
+
stage: 'ship';
|
|
739
|
+
scope: RuntimeScope;
|
|
740
|
+
profileRef: RuntimeRef;
|
|
741
|
+
authorityCeiling: 'proposal_input';
|
|
742
|
+
requiredOutputKinds: Array<'ship_readiness' | 'release_review' | 'manager_closure_request'>;
|
|
743
|
+
forbiddenActions: SpecProposalAuthorityAttempt[];
|
|
744
|
+
inputRefs: RuntimeRef[];
|
|
745
|
+
stageManager: typeof SHIP_STAGE_MANAGER;
|
|
746
|
+
agentTeam: Array<typeof SHIP_STAGE_VALIDATOR_AGENT | typeof SHIP_STAGE_REVIEW_AGENT>;
|
|
747
|
+
requiredCapabilities: string[];
|
|
748
|
+
optionalCapabilities: string[];
|
|
749
|
+
materialPackIds: string[];
|
|
750
|
+
generatedAt: string;
|
|
751
|
+
}
|
|
752
|
+
export interface ShipCollaborationClosureRefs {
|
|
753
|
+
runRef: RuntimeRef;
|
|
754
|
+
acceptedShipReadinessRef: RuntimeRef | null;
|
|
755
|
+
shipReadinessStatus: ShipReadinessAcceptanceStatus;
|
|
756
|
+
shipReadinessHash: string | null;
|
|
757
|
+
releaseDocumentRef: RuntimeRef | null;
|
|
758
|
+
truthAlignmentProjectionRef: RuntimeRef | null;
|
|
759
|
+
artifactRefs: RuntimeRef[];
|
|
760
|
+
collaborationContractRef: RuntimeRef | null;
|
|
761
|
+
lifecycleRiskProjectionRef: RuntimeRef;
|
|
762
|
+
adjudicationProjectionRef: RuntimeRef;
|
|
763
|
+
stageRunProjectionRef: RuntimeRef;
|
|
764
|
+
reasons: string[];
|
|
765
|
+
}
|
|
766
|
+
export interface ShipCollaborationAdjudicationResult {
|
|
767
|
+
contract: typeof STAGE_COLLABORATION_RUNTIME_CONTRACT_VERSION;
|
|
768
|
+
adjudicationId: string;
|
|
769
|
+
stage: 'ship';
|
|
770
|
+
scope: RuntimeScope;
|
|
771
|
+
health: StageCollaborationHealth;
|
|
772
|
+
stageDecision: StageRuntimeDecision;
|
|
773
|
+
handoffPacket: WorkflowHandoff | null;
|
|
774
|
+
rejection: RuntimeProposalRejection | null;
|
|
775
|
+
nextActions: RuntimeNextAction[];
|
|
776
|
+
closureRefs: ShipCollaborationClosureRefs;
|
|
777
|
+
createdAt: string;
|
|
778
|
+
}
|
|
779
|
+
export interface ShipCollaborationClosureInput {
|
|
780
|
+
decision: LifecycleRiskDecision;
|
|
781
|
+
artifactRefs?: string[];
|
|
782
|
+
collaborationContractRefs?: string[];
|
|
783
|
+
generatedAt?: string;
|
|
784
|
+
runId?: string;
|
|
785
|
+
}
|
|
786
|
+
export interface ShipCollaborationClosureResult {
|
|
787
|
+
runId: string;
|
|
788
|
+
branch: string;
|
|
789
|
+
workOrder: ShipStageWorkOrder | null;
|
|
790
|
+
adjudication: ShipCollaborationAdjudicationResult;
|
|
791
|
+
projectionRef: RuntimeRef;
|
|
792
|
+
artifactRefs: RuntimeRef[];
|
|
793
|
+
registeredArtifacts: RegisteredStageArtifact[];
|
|
794
|
+
registeredCollaborationContracts: RegisteredStageCollaborationContract[];
|
|
795
|
+
acceptedShipReadinessRef: RuntimeRef | null;
|
|
796
|
+
releaseDocumentRef: RuntimeRef | null;
|
|
797
|
+
}
|
|
798
|
+
export interface StageClosureAdjudicationInput {
|
|
799
|
+
profile: StageCollaborationProfile;
|
|
800
|
+
closureRequest?: StageClosureRequest | null;
|
|
801
|
+
answerRefs?: RuntimeRef[];
|
|
802
|
+
generatedAt?: string;
|
|
803
|
+
retryBudgetRemaining?: number;
|
|
804
|
+
}
|
|
805
|
+
export type SpecCollaborationDiagnosticStatus = 'missing' | 'incompatible' | StageCollaborationHealth;
|
|
806
|
+
export interface SpecCollaborationHealthDiagnostic {
|
|
807
|
+
status: SpecCollaborationDiagnosticStatus;
|
|
808
|
+
branch: string;
|
|
809
|
+
latest: RuntimeAdjudicationResult | null;
|
|
810
|
+
projectionCount: number;
|
|
811
|
+
latestClarificationGateId: string | null;
|
|
812
|
+
latestHandoffId: string | null;
|
|
813
|
+
latestRejectionReason: RuntimeProposalRejectionReason | null;
|
|
814
|
+
reasons: string[];
|
|
815
|
+
}
|
|
816
|
+
export type FullStageChainDiagnosticStatus = 'missing' | 'partial' | 'ready' | 'blocked' | 'rejected';
|
|
817
|
+
export interface FullStageChainStageDiagnostic {
|
|
818
|
+
stage: SddStage;
|
|
819
|
+
expectedHealth: StageCollaborationHealth;
|
|
820
|
+
projectionType: string;
|
|
821
|
+
projectionRef: RuntimeRef | null;
|
|
822
|
+
health: StageCollaborationHealth | null;
|
|
823
|
+
status: StageRuntimeDecision['status'] | null;
|
|
824
|
+
acceptedRef: RuntimeRef | null;
|
|
825
|
+
acceptedHash: string | null;
|
|
826
|
+
collaborationContractRef: RuntimeRef | null;
|
|
827
|
+
collaborationContractStatus: 'validated' | 'missing';
|
|
828
|
+
handoff: {
|
|
829
|
+
fromStage: SddStage;
|
|
830
|
+
toStage: SddStage;
|
|
831
|
+
status: string;
|
|
832
|
+
} | null;
|
|
833
|
+
handoffProjectionRef: RuntimeRef | null;
|
|
834
|
+
reasons: string[];
|
|
835
|
+
}
|
|
836
|
+
export interface FullStageChainDiagnostic {
|
|
837
|
+
contract: 'sdd-full-stage-chain-diagnostic-v1';
|
|
838
|
+
branch: string;
|
|
839
|
+
status: FullStageChainDiagnosticStatus;
|
|
840
|
+
stages: FullStageChainStageDiagnostic[];
|
|
841
|
+
projectionCounts: {
|
|
842
|
+
adjudications: number;
|
|
843
|
+
completedStages: number;
|
|
844
|
+
validatedCollaborationContracts: number;
|
|
845
|
+
handoffs: number;
|
|
846
|
+
};
|
|
847
|
+
finalHealth: StageCollaborationHealth | null;
|
|
848
|
+
reasons: string[];
|
|
849
|
+
}
|
|
850
|
+
export declare function deriveSpecCollaborationProfile(decision: LifecycleRiskDecision, generatedAt?: string): StageCollaborationProfile;
|
|
851
|
+
export declare function buildSpecStageWorkOrder(profile: StageCollaborationProfile, profileRef: RuntimeRef, generatedAt?: string): SpecStageWorkOrder;
|
|
852
|
+
export declare function planCollaborationScopeKey(scope: RuntimeScope): string;
|
|
853
|
+
export declare function buildPlanStageWorkOrder(scope: RuntimeScope, profileRef: RuntimeRef, inputRefs: RuntimeRef[], generatedAt?: string): PlanStageWorkOrder;
|
|
854
|
+
export declare function tasksCollaborationScopeKey(scope: RuntimeScope): string;
|
|
855
|
+
export declare function buildTasksStageWorkOrder(scope: RuntimeScope, profileRef: RuntimeRef, inputRefs: RuntimeRef[], generatedAt?: string): TasksStageWorkOrder;
|
|
856
|
+
export declare function verifiesCollaborationScopeKey(scope: RuntimeScope): string;
|
|
857
|
+
export declare function buildVerifiesStageWorkOrder(scope: RuntimeScope, profileRef: RuntimeRef, inputRefs: RuntimeRef[], generatedAt?: string): VerifiesStageWorkOrder;
|
|
858
|
+
export declare function doCollaborationScopeKey(scope: RuntimeScope): string;
|
|
859
|
+
export declare function buildDoStageWorkOrder(scope: RuntimeScope, profileRef: RuntimeRef, inputRefs: RuntimeRef[], generatedAt?: string): DoStageWorkOrder;
|
|
860
|
+
export declare function testCollaborationScopeKey(scope: RuntimeScope): string;
|
|
861
|
+
export declare function buildTestStageWorkOrder(scope: RuntimeScope, profileRef: RuntimeRef, inputRefs: RuntimeRef[], generatedAt?: string): TestStageWorkOrder;
|
|
862
|
+
export declare function goalVerifyCollaborationScopeKey(scope: RuntimeScope): string;
|
|
863
|
+
export declare function buildGoalVerifyStageWorkOrder(scope: RuntimeScope, profileRef: RuntimeRef, inputRefs: RuntimeRef[], generatedAt?: string): GoalVerifyStageWorkOrder;
|
|
864
|
+
export declare function truthAlignmentScopeKey(scope: RuntimeScope): string;
|
|
865
|
+
export declare function shipCollaborationScopeKey(scope: RuntimeScope): string;
|
|
866
|
+
export declare function buildShipStageWorkOrder(scope: RuntimeScope, profileRef: RuntimeRef, inputRefs: RuntimeRef[], generatedAt?: string): ShipStageWorkOrder;
|
|
867
|
+
export declare function specCollaborationScopeKey(scope: RuntimeScope): string;
|
|
868
|
+
export declare function recordSpecCollaborationAdjudicationProjection(projectRoot: string, result: RuntimeAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<RuntimeAdjudicationResult>>;
|
|
869
|
+
export declare function recordPlanCollaborationAdjudicationProjection(projectRoot: string, result: PlanCollaborationAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<PlanCollaborationAdjudicationResult>>;
|
|
870
|
+
export declare function recordTasksCollaborationAdjudicationProjection(projectRoot: string, result: TasksCollaborationAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<TasksCollaborationAdjudicationResult>>;
|
|
871
|
+
export declare function recordVerifiesCollaborationAdjudicationProjection(projectRoot: string, result: VerifiesCollaborationAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<VerifiesCollaborationAdjudicationResult>>;
|
|
872
|
+
export declare function recordDoCollaborationAdjudicationProjection(projectRoot: string, result: DoCollaborationAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<DoCollaborationAdjudicationResult>>;
|
|
873
|
+
export declare function recordTestCollaborationAdjudicationProjection(projectRoot: string, result: TestCollaborationAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<TestCollaborationAdjudicationResult>>;
|
|
874
|
+
export declare function recordGoalVerifyCollaborationAdjudicationProjection(projectRoot: string, result: GoalVerifyCollaborationAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<GoalVerifyCollaborationAdjudicationResult>>;
|
|
875
|
+
export declare function recordTruthAlignmentProjection(projectRoot: string, result: TruthAlignmentProjection): Promise<RuntimeProjectionEnvelopeWriteResult<TruthAlignmentProjection>>;
|
|
876
|
+
export declare function readTruthAlignmentProjection(projectRoot: string, scope: RuntimeScope): Promise<RuntimeProjectionEnvelope<TruthAlignmentProjection> | null>;
|
|
877
|
+
export declare function recordShipCollaborationAdjudicationProjection(projectRoot: string, result: ShipCollaborationAdjudicationResult): Promise<RuntimeProjectionEnvelopeWriteResult<ShipCollaborationAdjudicationResult>>;
|
|
878
|
+
export declare function reconcileSpecCollaborationClosure(projectRoot: string, input: SpecCollaborationClosureInput): Promise<SpecCollaborationClosureResult>;
|
|
879
|
+
export declare function reconcilePlanCollaborationClosure(projectRoot: string, input: PlanCollaborationClosureInput): Promise<PlanCollaborationClosureResult>;
|
|
880
|
+
export declare function reconcileTasksCollaborationClosure(projectRoot: string, input: TasksCollaborationClosureInput): Promise<TasksCollaborationClosureResult>;
|
|
881
|
+
export declare function reconcileVerifiesCollaborationClosure(projectRoot: string, input: VerifiesCollaborationClosureInput): Promise<VerifiesCollaborationClosureResult>;
|
|
882
|
+
export declare function reconcileDoCollaborationClosure(projectRoot: string, input: DoCollaborationClosureInput): Promise<DoCollaborationClosureResult>;
|
|
883
|
+
export declare function reconcileTestCollaborationClosure(projectRoot: string, input: TestCollaborationClosureInput): Promise<TestCollaborationClosureResult>;
|
|
884
|
+
export declare function reconcileGoalVerifyCollaborationClosure(projectRoot: string, input: GoalVerifyCollaborationClosureInput): Promise<GoalVerifyCollaborationClosureResult>;
|
|
885
|
+
export declare function reconcileShipCollaborationClosure(projectRoot: string, input: ShipCollaborationClosureInput): Promise<ShipCollaborationClosureResult>;
|
|
886
|
+
export declare function inspectFullStageChain(projectRoot: string, branch: string): Promise<FullStageChainDiagnostic>;
|
|
887
|
+
export declare function inspectSpecCollaborationHealth(projectRoot: string, branch: string): Promise<SpecCollaborationHealthDiagnostic>;
|
|
888
|
+
export declare function adjudicateSpecStageClosureRequest(input: StageClosureAdjudicationInput): RuntimeAdjudicationResult;
|