create-principles-disciple 1.86.0 → 1.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/console/dist/server/index.js +6 -50
- package/console/dist/server/models/ActivationsConsoleModel.d.ts +0 -4
- package/console/dist/server/models/ActivationsConsoleModel.js +64 -72
- package/console/dist/server/models/ApprovalsConsoleModel.d.ts +33 -7
- package/console/dist/server/models/ApprovalsConsoleModel.js +203 -57
- package/console/dist/server/models/ApprovalsGroupedConsoleModel.d.ts +4 -2
- package/console/dist/server/models/ApprovalsGroupedConsoleModel.js +179 -91
- package/console/dist/server/models/EvidenceChainConsoleModel.d.ts +4 -28
- package/console/dist/server/models/EvidenceChainConsoleModel.js +103 -298
- package/console/dist/server/models/GovernanceConsoleModel.d.ts +6 -4
- package/console/dist/server/models/GovernanceConsoleModel.js +269 -195
- package/console/dist/server/models/PrincipleClassifier.js +1 -1
- package/console/dist/server/models/PrincipleTrajectoryModel.d.ts +49 -0
- package/console/dist/server/models/PrincipleTrajectoryModel.js +485 -0
- package/console/dist/server/routes/approvals.js +65 -2
- package/console/dist/server/routes/principles.js +33 -0
- package/console/dist/server/routes/update.js +75 -26
- package/console/dist/ui/App.js +4 -2
- package/console/dist/ui/api.d.ts +6 -11
- package/console/dist/ui/api.js +19 -23
- package/console/dist/ui/components/focus/daily-thought-card.d.ts +1 -0
- package/console/dist/ui/components/focus/daily-thought-card.js +41 -0
- package/console/dist/ui/components/layout/app-sidebar.js +6 -4
- package/console/dist/ui/components/layout/page-loading.d.ts +13 -0
- package/console/dist/ui/components/layout/page-loading.js +14 -0
- package/console/dist/ui/components/layout/page-shell.d.ts +1 -0
- package/console/dist/ui/components/layout/page-shell.js +2 -1
- package/console/dist/ui/components/layout/section-title.js +1 -1
- package/console/dist/ui/components/notifications/NotificationProvider.d.ts +14 -0
- package/console/dist/ui/components/notifications/NotificationProvider.js +130 -0
- package/console/dist/ui/components/notifications/favicon-badge.d.ts +3 -0
- package/console/dist/ui/components/notifications/favicon-badge.js +68 -0
- package/console/dist/ui/components/notifications/notification-reducer.d.ts +9 -0
- package/console/dist/ui/components/notifications/notification-reducer.js +9 -0
- package/console/dist/ui/components/notifications/sound-storage.d.ts +3 -0
- package/console/dist/ui/components/notifications/sound-storage.js +37 -0
- package/console/dist/ui/components/notifications/useNotifications.d.ts +1 -0
- package/console/dist/ui/components/notifications/useNotifications.js +9 -0
- package/console/dist/ui/components/ui/badge.js +1 -1
- package/console/dist/ui/components/ui/button.d.ts +2 -2
- package/console/dist/ui/components/ui/button.js +1 -1
- package/console/dist/ui/components/ui/card.js +1 -1
- package/console/dist/ui/components/ui/input.js +1 -1
- package/console/dist/ui/components/ui/sheet.d.ts +1 -1
- package/console/dist/ui/data/daily-thoughts.d.ts +15 -0
- package/console/dist/ui/data/daily-thoughts.js +164 -0
- package/console/dist/ui/hooks/useNotificationSound.d.ts +12 -0
- package/console/dist/ui/hooks/useNotificationSound.js +74 -0
- package/console/dist/ui/i18n/en.json +94 -12
- package/console/dist/ui/i18n/zh-CN.json +94 -12
- package/console/dist/ui/pages/activation/ActivationPage.js +8 -15
- package/console/dist/ui/pages/control-center/ControlCenterPage.js +11 -9
- package/console/dist/ui/pages/focus/FocusPage.d.ts +13 -0
- package/console/dist/ui/pages/focus/FocusPage.js +140 -19
- package/console/dist/ui/pages/pain/PainPage.js +71 -32
- package/console/dist/ui/pages/pain/pain-card-helpers.d.ts +100 -0
- package/console/dist/ui/pages/pain/pain-card-helpers.js +103 -0
- package/console/dist/ui/pages/principles/PrincipleDetailPage.js +99 -20
- package/console/dist/ui/pages/principles/PrinciplesPage.js +8 -8
- package/console/dist/ui/pages/report-problem/ReportProblemPage.js +20 -18
- package/console/dist/ui/pages/settings/SettingsPage.js +9 -5
- package/console/dist/ui/pages/settings/UpdatePage.d.ts +0 -4
- package/console/dist/ui/pages/settings/UpdatePage.js +78 -75
- package/console/dist/ui/utils/control-center-helpers.d.ts +2 -0
- package/console/dist/ui/utils/enum-labels.d.ts +50 -0
- package/console/dist/ui/utils/enum-labels.js +164 -0
- package/console/dist/ui/utils/validators.d.ts +62 -6
- package/console/dist/ui/utils/validators.js +222 -22
- package/console/dist/web/assets/app.css +269 -122
- package/console/dist/web/assets/app.js +8134 -3177
- package/console/package.json +6 -3
- package/core/dist/evolution-store.js +0 -2
- package/core/dist/evolution-store.js.map +1 -1
- package/core/dist/index.d.ts +1 -10
- package/core/dist/index.d.ts.map +1 -1
- package/core/dist/index.js +1 -7
- package/core/dist/index.js.map +1 -1
- package/core/dist/io.d.ts +0 -1
- package/core/dist/io.d.ts.map +1 -1
- package/core/dist/io.js +0 -4
- package/core/dist/io.js.map +1 -1
- package/core/dist/principle-injector.d.ts +1 -1
- package/core/dist/principle-injector.d.ts.map +1 -1
- package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.js.map +1 -1
- package/core/dist/quality-scorecard/__tests__/quality-scorecard.test.d.ts +2 -0
- package/core/dist/quality-scorecard/__tests__/quality-scorecard.test.d.ts.map +1 -0
- package/core/dist/quality-scorecard/__tests__/quality-scorecard.test.js +531 -0
- package/core/dist/quality-scorecard/__tests__/quality-scorecard.test.js.map +1 -0
- package/core/dist/quality-scorecard/index.d.ts +11 -0
- package/core/dist/quality-scorecard/index.d.ts.map +1 -0
- package/core/dist/quality-scorecard/index.js +4 -0
- package/core/dist/quality-scorecard/index.js.map +1 -0
- package/core/dist/quality-scorecard/report-generator.d.ts +11 -0
- package/core/dist/quality-scorecard/report-generator.d.ts.map +1 -0
- package/core/dist/quality-scorecard/report-generator.js +204 -0
- package/core/dist/quality-scorecard/report-generator.js.map +1 -0
- package/core/dist/quality-scorecard/types.d.ts +106 -0
- package/core/dist/quality-scorecard/types.d.ts.map +1 -0
- package/core/dist/quality-scorecard/types.js +51 -0
- package/core/dist/quality-scorecard/types.js.map +1 -0
- package/core/dist/quality-scorecard/validation.d.ts +73 -0
- package/core/dist/quality-scorecard/validation.d.ts.map +1 -0
- package/core/dist/quality-scorecard/validation.js +251 -0
- package/core/dist/quality-scorecard/validation.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/activation-types-helpers.test.d.ts +20 -0
- package/core/dist/runtime-v2/__tests__/activation-types-helpers.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/activation-types-helpers.test.js +223 -0
- package/core/dist/runtime-v2/__tests__/activation-types-helpers.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/admission-gate.test.js +56 -3
- package/core/dist/runtime-v2/__tests__/admission-gate.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/adversarial-loop.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/adversarial-loop.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/adversarial-loop.test.js +381 -0
- package/core/dist/runtime-v2/__tests__/adversarial-loop.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +175 -83
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js +40 -80
- package/core/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js +126 -21
- package/core/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/build-golden-trace-from-artificer.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/build-golden-trace-from-artificer.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/build-golden-trace-from-artificer.test.js +169 -0
- package/core/dist/runtime-v2/__tests__/build-golden-trace-from-artificer.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/build-l2-principle-reader.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/build-l2-principle-reader.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/build-l2-principle-reader.test.js +200 -0
- package/core/dist/runtime-v2/__tests__/build-l2-principle-reader.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js +20 -3
- package/core/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/dreamer-output-validator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js +12 -0
- package/core/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/dreamer-runner.test.js +10 -5
- package/core/dist/runtime-v2/__tests__/dreamer-runner.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js +831 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +22 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evidence-chain-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/evidence-chain-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/evidence-chain-contract.test.js +344 -0
- package/core/dist/runtime-v2/__tests__/evidence-chain-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/evidence-guards.test.d.ts +18 -0
- package/core/dist/runtime-v2/__tests__/evidence-guards.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/evidence-guards.test.js +155 -0
- package/core/dist/runtime-v2/__tests__/evidence-guards.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/evidence-sanitizer.test.js +4 -3
- package/core/dist/runtime-v2/__tests__/evidence-sanitizer.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/feedback/privacy-preview.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/feedback/render-github-url.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/feedback/render-markdown.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts.map +1 -1
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js +3 -2
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js +19 -29
- package/core/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.js +2 -2
- package/core/dist/runtime-v2/__tests__/full-chain-real-llm.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/golden-path-diagnostician-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/golden-path-diagnostician-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/golden-path-diagnostician-e2e.test.js +372 -0
- package/core/dist/runtime-v2/__tests__/golden-path-diagnostician-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js +219 -2
- package/core/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js +96 -0
- package/core/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-consumer-product-path.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-consumer-product-path.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-consumer-product-path.test.js +226 -0
- package/core/dist/runtime-v2/__tests__/internalization-consumer-product-path.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-failure-persistence.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/internalization-failure-persistence.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-failure-persistence.test.js +153 -0
- package/core/dist/runtime-v2/__tests__/internalization-failure-persistence.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js +525 -5
- package/core/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +1 -3
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js +6 -0
- package/core/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js +0 -1
- package/core/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/mainline-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/mainline-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/mainline-contract.test.js +194 -0
- package/core/dist/runtime-v2/__tests__/mainline-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/mainline-product-path.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/mainline-product-path.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/mainline-product-path.test.js +429 -0
- package/core/dist/runtime-v2/__tests__/mainline-product-path.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.js +0 -1
- package/core/dist/runtime-v2/__tests__/pain-chain-read-model.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.js +5 -2
- package/core/dist/runtime-v2/__tests__/pain-evidence-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js +10 -6
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-short-circuit.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-short-circuit.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-short-circuit.test.js +211 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-short-circuit.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-workspace-dir.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-workspace-dir.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-workspace-dir.test.js +182 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-workspace-dir.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js +53 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js +4 -0
- package/core/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pitask-metadata.test.js +5 -1
- package/core/dist/runtime-v2/__tests__/pitask-metadata.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.js +85 -7
- package/core/dist/runtime-v2/__tests__/principle-compiler-core.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js +14 -1
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pruning-read-model.test.js +11 -6
- package/core/dist/runtime-v2/__tests__/pruning-read-model.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +8 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js +4 -0
- package/core/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/stalled-diagnostician-task.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/stalled-diagnostician-task.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/stalled-diagnostician-task.test.js +168 -0
- package/core/dist/runtime-v2/__tests__/stalled-diagnostician-task.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/task-three-strikes.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/trace-refiner-agent.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/trainer-output-validator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js +8 -0
- package/core/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js +7 -1
- package/core/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/approval-completion-service.test.d.ts +21 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-completion-service.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-completion-service.test.js +363 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-completion-service.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts +15 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.js +339 -164
- package/core/dist/runtime-v2/activation/__tests__/approval-queue.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js +0 -1
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/edit-then-approve.test.d.ts +20 -0
- package/core/dist/runtime-v2/activation/__tests__/edit-then-approve.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/edit-then-approve.test.js +145 -0
- package/core/dist/runtime-v2/activation/__tests__/edit-then-approve.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/low-risk-writers.test.d.ts +21 -0
- package/core/dist/runtime-v2/activation/__tests__/low-risk-writers.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/low-risk-writers.test.js +468 -0
- package/core/dist/runtime-v2/activation/__tests__/low-risk-writers.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/production-gate-deps.test.d.ts +15 -0
- package/core/dist/runtime-v2/activation/__tests__/production-gate-deps.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/production-gate-deps.test.js +272 -0
- package/core/dist/runtime-v2/activation/__tests__/production-gate-deps.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js +11 -0
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js +54 -1
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/story-a-acceptance.test.d.ts +35 -0
- package/core/dist/runtime-v2/activation/__tests__/story-a-acceptance.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/story-a-acceptance.test.js +511 -0
- package/core/dist/runtime-v2/activation/__tests__/story-a-acceptance.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/activation-dispatcher.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/activation-dispatcher.js +87 -1
- package/core/dist/runtime-v2/activation/activation-dispatcher.js.map +1 -1
- package/core/dist/runtime-v2/activation/activation-types.d.ts +49 -2
- package/core/dist/runtime-v2/activation/activation-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/activation-types.js +6 -0
- package/core/dist/runtime-v2/activation/activation-types.js.map +1 -1
- package/core/dist/runtime-v2/activation/approval-completion-service.d.ts +50 -0
- package/core/dist/runtime-v2/activation/approval-completion-service.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/approval-completion-service.js +160 -0
- package/core/dist/runtime-v2/activation/approval-completion-service.js.map +1 -0
- package/core/dist/runtime-v2/activation/approval-queue.d.ts +7 -1
- package/core/dist/runtime-v2/activation/approval-queue.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/approval-queue.js +14 -0
- package/core/dist/runtime-v2/activation/approval-queue.js.map +1 -1
- package/core/dist/runtime-v2/activation/index.d.ts +5 -2
- package/core/dist/runtime-v2/activation/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/index.js +8 -1
- package/core/dist/runtime-v2/activation/index.js.map +1 -1
- package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts +2 -1
- package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/memory-activation-state-store.js +11 -2
- package/core/dist/runtime-v2/activation/memory-activation-state-store.js.map +1 -1
- package/core/dist/runtime-v2/activation/memory-approval-store.d.ts +2 -1
- package/core/dist/runtime-v2/activation/memory-approval-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/memory-approval-store.js +18 -0
- package/core/dist/runtime-v2/activation/memory-approval-store.js.map +1 -1
- package/core/dist/runtime-v2/activation/production-gate-deps.d.ts +32 -0
- package/core/dist/runtime-v2/activation/production-gate-deps.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/production-gate-deps.js +213 -0
- package/core/dist/runtime-v2/activation/production-gate-deps.js.map +1 -0
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts +2 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js +21 -7
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -1
- package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts +2 -1
- package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/sqlite-approval-store.js +24 -0
- package/core/dist/runtime-v2/activation/sqlite-approval-store.js.map +1 -1
- package/core/dist/runtime-v2/adapter/__tests__/artificer-l2-adapter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/artificer-l2-adapter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/artificer-l2-adapter.test.js +340 -0
- package/core/dist/runtime-v2/adapter/__tests__/artificer-l2-adapter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.d.ts +2 -0
- package/core/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.js +420 -0
- package/core/dist/runtime-v2/adapter/__tests__/l2-agent-loop-adapter.test.js.map +1 -0
- package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js +283 -1
- package/core/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js.map +1 -1
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js +4 -4
- package/core/dist/runtime-v2/adapter/__tests__/schema-prompt-adapter.test.js.map +1 -1
- package/core/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js.map +1 -1
- package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js +221 -0
- package/core/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js.map +1 -1
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.d.ts +49 -0
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js +319 -0
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts +78 -0
- package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts.map +1 -0
- package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.js +478 -0
- package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.js.map +1 -0
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +6 -0
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +33 -9
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -1
- package/core/dist/runtime-v2/adapter/structured-output-repair.js +0 -1
- package/core/dist/runtime-v2/adapter/structured-output-repair.js.map +1 -1
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts +7 -0
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js +40 -1
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js.map +1 -1
- package/core/dist/runtime-v2/admission-gate.d.ts +5 -1
- package/core/dist/runtime-v2/admission-gate.d.ts.map +1 -1
- package/core/dist/runtime-v2/admission-gate.js +12 -1
- package/core/dist/runtime-v2/admission-gate.js.map +1 -1
- package/core/dist/runtime-v2/adversarial-loop.d.ts +65 -0
- package/core/dist/runtime-v2/adversarial-loop.d.ts.map +1 -0
- package/core/dist/runtime-v2/adversarial-loop.js +181 -0
- package/core/dist/runtime-v2/adversarial-loop.js.map +1 -0
- package/core/dist/runtime-v2/agent-spec.d.ts +1 -1
- package/core/dist/runtime-v2/build-l2-principle-reader.d.ts +49 -0
- package/core/dist/runtime-v2/build-l2-principle-reader.d.ts.map +1 -0
- package/core/dist/runtime-v2/build-l2-principle-reader.js +70 -0
- package/core/dist/runtime-v2/build-l2-principle-reader.js.map +1 -0
- package/core/dist/runtime-v2/candidate-intake-service.js +0 -1
- package/core/dist/runtime-v2/candidate-intake-service.js.map +1 -1
- package/core/dist/runtime-v2/cli/diagnose.d.ts +8 -2
- package/core/dist/runtime-v2/cli/diagnose.d.ts.map +1 -1
- package/core/dist/runtime-v2/cli/diagnose.js +10 -0
- package/core/dist/runtime-v2/cli/diagnose.js.map +1 -1
- package/core/dist/runtime-v2/config/__tests__/pd-config-contract.test.js +46 -4
- package/core/dist/runtime-v2/config/__tests__/pd-config-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/config/__tests__/pd-config-redaction-deep.test.js +2 -2
- package/core/dist/runtime-v2/config/__tests__/pd-config-redaction-deep.test.js.map +1 -1
- package/core/dist/runtime-v2/config/__tests__/pd-config-validation-edge-cases.test.js +1 -1
- package/core/dist/runtime-v2/config/__tests__/pd-config-validation-edge-cases.test.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-agent-binding.d.ts +1 -0
- package/core/dist/runtime-v2/config/pd-config-agent-binding.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-agent-binding.js +3 -0
- package/core/dist/runtime-v2/config/pd-config-agent-binding.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-defaults.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-defaults.js +8 -18
- package/core/dist/runtime-v2/config/pd-config-defaults.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-effective.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-effective.js +16 -3
- package/core/dist/runtime-v2/config/pd-config-effective.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-feature-flags.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-feature-flags.js +11 -2
- package/core/dist/runtime-v2/config/pd-config-feature-flags.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-redaction.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-redaction.js +9 -0
- package/core/dist/runtime-v2/config/pd-config-redaction.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-types.d.ts +11 -1
- package/core/dist/runtime-v2/config/pd-config-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-types.js +5 -1
- package/core/dist/runtime-v2/config/pd-config-types.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-validate.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-validate.js +12 -0
- package/core/dist/runtime-v2/config/pd-config-validate.js.map +1 -1
- package/core/dist/runtime-v2/context-payload.d.ts +4 -6
- package/core/dist/runtime-v2/context-payload.d.ts.map +1 -1
- package/core/dist/runtime-v2/context-payload.js +0 -2
- package/core/dist/runtime-v2/context-payload.js.map +1 -1
- package/core/dist/runtime-v2/core-principles/__tests__/core-axiom-block.test.d.ts +5 -0
- package/core/dist/runtime-v2/core-principles/__tests__/core-axiom-block.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/core-principles/__tests__/core-axiom-block.test.js +91 -0
- package/core/dist/runtime-v2/core-principles/__tests__/core-axiom-block.test.js.map +1 -0
- package/core/dist/runtime-v2/core-principles/__tests__/core-principle-registry.test.d.ts +2 -0
- package/core/dist/runtime-v2/core-principles/__tests__/core-principle-registry.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/core-principles/__tests__/core-principle-registry.test.js +71 -0
- package/core/dist/runtime-v2/core-principles/__tests__/core-principle-registry.test.js.map +1 -0
- package/core/dist/runtime-v2/core-principles/__tests__/strip-fabricated-ids.test.d.ts +2 -0
- package/core/dist/runtime-v2/core-principles/__tests__/strip-fabricated-ids.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/core-principles/__tests__/strip-fabricated-ids.test.js +78 -0
- package/core/dist/runtime-v2/core-principles/__tests__/strip-fabricated-ids.test.js.map +1 -0
- package/core/dist/runtime-v2/core-principles/core-axiom-block.d.ts +67 -0
- package/core/dist/runtime-v2/core-principles/core-axiom-block.d.ts.map +1 -0
- package/core/dist/runtime-v2/core-principles/core-axiom-block.js +76 -0
- package/core/dist/runtime-v2/core-principles/core-axiom-block.js.map +1 -0
- package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts +41 -0
- package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts.map +1 -0
- package/core/dist/runtime-v2/core-principles/core-principle-registry.js +112 -0
- package/core/dist/runtime-v2/core-principles/core-principle-registry.js.map +1 -0
- package/core/dist/runtime-v2/core-principles/index.d.ts +6 -0
- package/core/dist/runtime-v2/core-principles/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/core-principles/index.js +4 -0
- package/core/dist/runtime-v2/core-principles/index.js.map +1 -0
- package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.d.ts +15 -0
- package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.d.ts.map +1 -0
- package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.js +28 -0
- package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-distiller-output.test.d.ts +2 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-distiller-output.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-distiller-output.test.js +45 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-distiller-output.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-rootcause-output.test.d.ts +2 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-rootcause-output.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-rootcause-output.test.js +91 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-rootcause-output.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/distiller-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/distiller-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/distiller-prompt-builder.test.js +39 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/distiller-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js +34 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/router-prompt-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/router-prompt-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/router-prompt-builder.test.js +57 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/router-prompt-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/diag-distiller-output.d.ts +80 -0
- package/core/dist/runtime-v2/diagnostician/diag-distiller-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/diag-distiller-output.js +103 -0
- package/core/dist/runtime-v2/diagnostician/diag-distiller-output.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.d.ts +117 -0
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.js +182 -0
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.d.ts +134 -0
- package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.js +149 -0
- package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts +96 -0
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js +212 -0
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/router-prompt-builder.d.ts +127 -0
- package/core/dist/runtime-v2/diagnostician/router-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/router-prompt-builder.js +131 -0
- package/core/dist/runtime-v2/diagnostician/router-prompt-builder.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts +10 -50
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js +0 -148
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/evidence-guards.d.ts +31 -0
- package/core/dist/runtime-v2/evidence-guards.d.ts.map +1 -0
- package/core/dist/runtime-v2/evidence-guards.js +29 -0
- package/core/dist/runtime-v2/evidence-guards.js.map +1 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +106 -7
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.js +3 -3
- package/core/dist/runtime-v2/feature-flags/__tests__/plugin-surface-registry.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +39 -4
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.js +27 -22
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.js.map +1 -1
- package/core/dist/runtime-v2/feedback/redact-sensitive.js.map +1 -1
- package/core/dist/runtime-v2/feedback/safe-stringify.js.map +1 -1
- package/core/dist/runtime-v2/full-trace-contract.d.ts +3 -3
- package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts +8 -0
- package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +1 -1
- package/core/dist/runtime-v2/golden-trace-replay-validator.js +3 -3
- package/core/dist/runtime-v2/golden-trace-replay-validator.js.map +1 -1
- package/core/dist/runtime-v2/golden-trace.d.ts +46 -1
- package/core/dist/runtime-v2/golden-trace.d.ts.map +1 -1
- package/core/dist/runtime-v2/golden-trace.js +70 -4
- package/core/dist/runtime-v2/golden-trace.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +62 -31
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +54 -18
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/split-pipeline-mock-outputs.d.ts +25 -0
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/split-pipeline-mock-outputs.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/split-pipeline-mock-outputs.js +123 -0
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/split-pipeline-mock-outputs.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-case.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-case.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-case.test.js +139 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-case.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-feedback.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-feedback.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-feedback.test.js +62 -0
- package/core/dist/runtime-v2/internalization/__tests__/adversarial-feedback.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder-v2.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder-v2.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder-v2.test.js +24 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder-v2.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js +5 -4
- package/core/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/artificer-rule-output.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-rule-output.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-rule-output.test.js +248 -0
- package/core/dist/runtime-v2/internalization/__tests__/artificer-rule-output.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-chain-e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-chain-e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-chain-e2e.test.js +803 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-chain-e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-distiller-runner.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-distiller-runner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-distiller-runner.test.js +441 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-distiller-runner.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-runner.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-runner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-runner.test.js +340 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-runner.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-runner.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-runner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-runner.test.js +441 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-runner.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-output-v2.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-output-v2.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-output-v2.test.js +209 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-output-v2.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder-v2.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder-v2.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder-v2.test.js +125 -0
- package/core/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder-v2.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-consumer-decision.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-consumer-decision.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-consumer-decision.test.js +223 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-consumer-decision.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/philosopher-runner-trust-boundary.test.js +4 -0
- package/core/dist/runtime-v2/internalization/__tests__/philosopher-runner-trust-boundary.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/rule-code-dialect.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/rule-code-dialect.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/rule-code-dialect.test.js +270 -0
- package/core/dist/runtime-v2/internalization/__tests__/rule-code-dialect.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/rule-host-input-builder.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/rule-host-input-builder.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/rule-host-input-builder.test.js +180 -0
- package/core/dist/runtime-v2/internalization/__tests__/rule-host-input-builder.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/runnerkind-seam.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/runnerkind-seam.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/runnerkind-seam.test.js +224 -0
- package/core/dist/runtime-v2/internalization/__tests__/runnerkind-seam.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js +13 -8
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-language.test.js +4 -3
- package/core/dist/runtime-v2/internalization/__tests__/scribe-prompt-language.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/split-diagnostician-runner-retry.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/split-diagnostician-runner-retry.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/split-diagnostician-runner-retry.test.js +227 -0
- package/core/dist/runtime-v2/internalization/__tests__/split-diagnostician-runner-retry.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/adversarial-case.d.ts +32 -0
- package/core/dist/runtime-v2/internalization/adversarial-case.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/adversarial-case.js +68 -0
- package/core/dist/runtime-v2/internalization/adversarial-case.js.map +1 -0
- package/core/dist/runtime-v2/internalization/adversarial-feedback.d.ts +23 -0
- package/core/dist/runtime-v2/internalization/adversarial-feedback.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/adversarial-feedback.js +20 -0
- package/core/dist/runtime-v2/internalization/adversarial-feedback.js.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-output.d.ts +54 -30
- package/core/dist/runtime-v2/internalization/artificer-output.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-output.js +144 -36
- package/core/dist/runtime-v2/internalization/artificer-output.js.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts +10 -2
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js +37 -20
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +19 -9
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.js +21 -9
- package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/correction-proposal.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/correction-proposal.js +27 -16
- package/core/dist/runtime-v2/internalization/correction-proposal.js.map +1 -1
- package/core/dist/runtime-v2/internalization/diag-distiller-runner.d.ts +83 -0
- package/core/dist/runtime-v2/internalization/diag-distiller-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/diag-distiller-runner.js +274 -0
- package/core/dist/runtime-v2/internalization/diag-distiller-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.d.ts +73 -0
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.js +229 -0
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/diag-router-runner.d.ts +85 -0
- package/core/dist/runtime-v2/internalization/diag-router-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/diag-router-runner.js +353 -0
- package/core/dist/runtime-v2/internalization/diag-router-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts +19 -1
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js +48 -8
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts +7 -1
- package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/dreamer-runner.js +13 -3
- package/core/dist/runtime-v2/internalization/dreamer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-output.d.ts +63 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-output.js +158 -0
- package/core/dist/runtime-v2/internalization/evaluator-output.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts +8 -1
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js +17 -4
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +114 -4
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +629 -7
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.d.ts +17 -0
- package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.js +451 -0
- package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.js.map +1 -0
- package/core/dist/runtime-v2/internalization/index.d.ts +21 -9
- package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/index.js +16 -6
- package/core/dist/runtime-v2/internalization/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts +25 -0
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js +67 -12
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-consumer-decision.d.ts +17 -0
- package/core/dist/runtime-v2/internalization/internalization-consumer-decision.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-consumer-decision.js +28 -0
- package/core/dist/runtime-v2/internalization/internalization-consumer-decision.js.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts +14 -1
- package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-job-graph.js +22 -0
- package/core/dist/runtime-v2/internalization/internalization-job-graph.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +9 -9
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js +32 -9
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts +2 -2
- package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-state-machine.js +35 -4
- package/core/dist/runtime-v2/internalization/internalization-state-machine.js.map +1 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +31 -4
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js +42 -12
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -1
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts +20 -1
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js +47 -6
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts +6 -1
- package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/philosopher-runner.js +10 -3
- package/core/dist/runtime-v2/internalization/philosopher-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts +9 -2
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.js +22 -11
- package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -1
- package/core/dist/runtime-v2/internalization/prompt-serializer.d.ts +3 -0
- package/core/dist/runtime-v2/internalization/prompt-serializer.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/prompt-serializer.js +22 -0
- package/core/dist/runtime-v2/internalization/prompt-serializer.js.map +1 -0
- package/core/dist/runtime-v2/internalization/queue-actionability.d.ts +3 -3
- package/core/dist/runtime-v2/internalization/queue-actionability.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js +16 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js +2 -2
- package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts +29 -0
- package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-code-validator.js +87 -1
- package/core/dist/runtime-v2/internalization/rule-code-validator.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.js +15 -1
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-input-builder.d.ts +62 -0
- package/core/dist/runtime-v2/internalization/rule-host-input-builder.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-input-builder.js +182 -0
- package/core/dist/runtime-v2/internalization/rule-host-input-builder.js.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-validator.d.ts +37 -0
- package/core/dist/runtime-v2/internalization/rule-host-validator.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/rule-host-validator.js +154 -0
- package/core/dist/runtime-v2/internalization/rule-host-validator.js.map +1 -0
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts +20 -6
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js +31 -15
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts +6 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js +10 -3
- package/core/dist/runtime-v2/internalization/scribe-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.d.ts +103 -0
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.js +286 -0
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/template-generator.d.ts +7 -2
- package/core/dist/runtime-v2/internalization/template-generator.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/template-generator.js +10 -5
- package/core/dist/runtime-v2/internalization/template-generator.js.map +1 -1
- package/core/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts +1 -1
- package/core/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/trainer-prompt-builder.js +2 -2
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts +5 -0
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js +48 -2
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js.map +1 -1
- package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts +67 -0
- package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization-integrity-remediation.js +802 -0
- package/core/dist/runtime-v2/internalization-integrity-remediation.js.map +1 -1
- package/core/dist/runtime-v2/internalization-queue-read-model.d.ts +7 -7
- package/core/dist/runtime-v2/internalization-queue-read-model.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization-queue-read-model.js +4 -4
- package/core/dist/runtime-v2/internalization-queue-read-model.js.map +1 -1
- package/core/dist/runtime-v2/mainline-contract.d.ts +138 -0
- package/core/dist/runtime-v2/mainline-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/mainline-contract.js +224 -0
- package/core/dist/runtime-v2/mainline-contract.js.map +1 -0
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js +29 -22
- package/core/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js.map +1 -1
- package/core/dist/runtime-v2/observer/agent-scheduler.js.map +1 -1
- package/core/dist/runtime-v2/observer/empathy-observer.js +1 -1
- package/core/dist/runtime-v2/observer/empathy-observer.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts +36 -4
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-bridge.js +81 -37
- package/core/dist/runtime-v2/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.d.ts +4 -0
- package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.js +58 -8
- package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts +20 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js +80 -23
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -1
- package/core/dist/runtime-v2/pain-to-principle-service.d.ts +5 -1
- package/core/dist/runtime-v2/pain-to-principle-service.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-to-principle-service.js +39 -0
- package/core/dist/runtime-v2/pain-to-principle-service.js.map +1 -1
- package/core/dist/runtime-v2/proven-channel-baseline.d.ts.map +1 -1
- package/core/dist/runtime-v2/proven-channel-baseline.js +14 -0
- package/core/dist/runtime-v2/proven-channel-baseline.js.map +1 -1
- package/core/dist/runtime-v2/recovery-sweep-service.d.ts +18 -0
- package/core/dist/runtime-v2/recovery-sweep-service.d.ts.map +1 -1
- package/core/dist/runtime-v2/recovery-sweep-service.js +46 -0
- package/core/dist/runtime-v2/recovery-sweep-service.js.map +1 -1
- package/core/dist/runtime-v2/runner/__tests__/base-peer-runner-trust-boundary.test.js +11 -2
- package/core/dist/runtime-v2/runner/__tests__/base-peer-runner-trust-boundary.test.js.map +1 -1
- package/core/dist/runtime-v2/runner/__tests__/diagnose.test.js.map +1 -1
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js +6 -0
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js.map +1 -1
- package/core/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts +10 -3
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.js +58 -15
- package/core/dist/runtime-v2/runner/base-peer-runner.js.map +1 -1
- package/core/dist/runtime-v2/runner/peer-runner-types.d.ts +10 -3
- package/core/dist/runtime-v2/runner/peer-runner-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/runtime-protocol.d.ts +3 -3
- package/core/dist/runtime-v2/runtime-protocol.d.ts.map +1 -1
- package/core/dist/runtime-v2/runtime-protocol.js +1 -0
- package/core/dist/runtime-v2/runtime-protocol.js.map +1 -1
- package/core/dist/runtime-v2/runtime-selector.d.ts +3 -3
- package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.d.ts +26 -0
- package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.js +59 -0
- package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.js.map +1 -0
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js +2 -2
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +1 -1
- package/core/dist/runtime-v2/store/concurrent-lease.test.js +13 -13
- package/core/dist/runtime-v2/store/concurrent-lease.test.js.map +1 -1
- package/core/dist/runtime-v2/store/context/index.d.ts +1 -0
- package/core/dist/runtime-v2/store/context/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts +8 -0
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js +54 -3
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js +373 -2
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.test.js.map +1 -1
- package/core/dist/runtime-v2/store/context/trajectory-turn-reader.d.ts +32 -0
- package/core/dist/runtime-v2/store/context/trajectory-turn-reader.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/context/trajectory-turn-reader.js +12 -0
- package/core/dist/runtime-v2/store/context/trajectory-turn-reader.js.map +1 -0
- package/core/dist/runtime-v2/store/event-emitter.js +0 -1
- package/core/dist/runtime-v2/store/event-emitter.js.map +1 -1
- package/core/dist/runtime-v2/store/history/sqlite-history-query.test.js +1 -1
- package/core/dist/runtime-v2/store/history/sqlite-history-query.test.js.map +1 -1
- package/core/dist/runtime-v2/store/idempotent-transitions.test.js +0 -5
- package/core/dist/runtime-v2/store/idempotent-transitions.test.js.map +1 -1
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.js +5 -0
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.js.map +1 -1
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.js +0 -2
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.test.js.map +1 -1
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js +0 -2
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js.map +1 -1
- package/core/dist/runtime-v2/store/run/memory-run-store.d.ts +2 -1
- package/core/dist/runtime-v2/store/run/memory-run-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/run/memory-run-store.js +5 -0
- package/core/dist/runtime-v2/store/run/memory-run-store.js.map +1 -1
- package/core/dist/runtime-v2/store/run/run-store.d.ts +27 -0
- package/core/dist/runtime-v2/store/run/run-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts +26 -2
- package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/run/sqlite-run-store.js +134 -20
- package/core/dist/runtime-v2/store/run/sqlite-run-store.js.map +1 -1
- package/core/dist/runtime-v2/store/runtime-state-manager-malformed-run-tolerance.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/runtime-state-manager-malformed-run-tolerance.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/runtime-state-manager-malformed-run-tolerance.test.js +160 -0
- package/core/dist/runtime-v2/store/runtime-state-manager-malformed-run-tolerance.test.js.map +1 -0
- package/core/dist/runtime-v2/store/runtime-state-manager.d.ts +25 -3
- package/core/dist/runtime-v2/store/runtime-state-manager.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/runtime-state-manager.js +55 -7
- package/core/dist/runtime-v2/store/runtime-state-manager.js.map +1 -1
- package/core/dist/runtime-v2/store/schema-conformance.test.js +0 -10
- package/core/dist/runtime-v2/store/schema-conformance.test.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js +2 -2
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +12 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-run-store.test.js +172 -2
- package/core/dist/runtime-v2/store/sqlite-run-store.test.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-task-store.test.js +0 -2
- package/core/dist/runtime-v2/store/sqlite-task-store.test.js.map +1 -1
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.js +0 -1
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.test.js.map +1 -1
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js +1 -1
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js.map +1 -1
- package/core/dist/runtime-v2/store/workspace-isolation.test.js +0 -2
- package/core/dist/runtime-v2/store/workspace-isolation.test.js.map +1 -1
- package/core/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.js +171 -0
- package/core/dist/runtime-v2/tools/__tests__/agent-tool-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-l2-tool-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-l2-tool-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-l2-tool-contract.test.js +322 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-l2-tool-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-output-typebox.test.d.ts +2 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-output-typebox.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-output-typebox.test.js +149 -0
- package/core/dist/runtime-v2/tools/__tests__/artificer-output-typebox.test.js.map +1 -0
- package/core/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.d.ts +2 -0
- package/core/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.js +109 -0
- package/core/dist/runtime-v2/tools/__tests__/dreamer-output-typebox.test.js.map +1 -0
- package/core/dist/runtime-v2/tools/agent-tool-contract.d.ts +76 -0
- package/core/dist/runtime-v2/tools/agent-tool-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/agent-tool-contract.js +136 -0
- package/core/dist/runtime-v2/tools/agent-tool-contract.js.map +1 -0
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts +72 -0
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js +275 -0
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js.map +1 -0
- package/core/dist/runtime-v2/tools/artificer-output-typebox.d.ts +78 -0
- package/core/dist/runtime-v2/tools/artificer-output-typebox.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/artificer-output-typebox.js +70 -0
- package/core/dist/runtime-v2/tools/artificer-output-typebox.js.map +1 -0
- package/core/dist/runtime-v2/tools/dreamer-output-typebox.d.ts +63 -0
- package/core/dist/runtime-v2/tools/dreamer-output-typebox.d.ts.map +1 -0
- package/core/dist/runtime-v2/tools/dreamer-output-typebox.js +55 -0
- package/core/dist/runtime-v2/tools/dreamer-output-typebox.js.map +1 -0
- package/core/dist/runtime-v2/types/event-types.d.ts +32 -3
- package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-types.js +8 -0
- package/core/dist/runtime-v2/types/event-types.js.map +1 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts +213 -0
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts.map +1 -0
- package/core/dist/runtime-v2/types/evidence-chain-contract.js +1064 -0
- package/core/dist/runtime-v2/types/evidence-chain-contract.js.map +1 -0
- package/core/dist/runtime-v2/types/index.d.ts +4 -2
- package/core/dist/runtime-v2/types/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/index.js +2 -1
- package/core/dist/runtime-v2/types/index.js.map +1 -1
- package/core/dist/runtime-v2/types/principle-enums.d.ts +2 -2
- package/core/dist/runtime-v2/types/principle-enums.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/principle-enums.js +1 -0
- package/core/dist/runtime-v2/types/principle-enums.js.map +1 -1
- package/core/dist/runtime-v2/types/principle-schema.d.ts +1 -1
- package/core/dist/runtime-v2/types/principle-tree-store.d.ts +1 -1
- package/core/dist/runtime-v2/utils/cli-process-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/utils/cli-process-runner.js +5 -2
- package/core/dist/runtime-v2/utils/cli-process-runner.js.map +1 -1
- package/core/dist/runtime-v2/utils/cli-process-runner.test.js +7 -5
- package/core/dist/runtime-v2/utils/cli-process-runner.test.js.map +1 -1
- package/core/dist/telemetry-event.d.ts +3 -3
- package/core/dist/telemetry-event.d.ts.map +1 -1
- package/core/dist/telemetry-event.js +34 -1
- package/core/dist/telemetry-event.js.map +1 -1
- package/core/dist/trajectory-store.js +0 -2
- package/core/dist/trajectory-store.js.map +1 -1
- package/core/package.json +10 -1
- package/dist/installer.d.ts +11 -0
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +47 -2
- package/dist/installer.js.map +1 -1
- package/dist/mvp-config.d.ts.map +1 -1
- package/dist/mvp-config.js +2 -0
- package/dist/mvp-config.js.map +1 -1
- package/package.json +3 -2
- package/pd-cli/dist/commands/__tests__/legacy-cleanup.test.d.ts +18 -0
- package/pd-cli/dist/commands/__tests__/legacy-cleanup.test.d.ts.map +1 -0
- package/pd-cli/dist/commands/__tests__/legacy-cleanup.test.js +459 -0
- package/pd-cli/dist/commands/__tests__/legacy-cleanup.test.js.map +1 -0
- package/pd-cli/dist/commands/__tests__/mvp-smoke.test.d.ts +15 -0
- package/pd-cli/dist/commands/__tests__/mvp-smoke.test.d.ts.map +1 -0
- package/pd-cli/dist/commands/__tests__/mvp-smoke.test.js +262 -0
- package/pd-cli/dist/commands/__tests__/mvp-smoke.test.js.map +1 -0
- package/pd-cli/dist/commands/__tests__/rulecode-flag-wiring.test.d.ts +21 -0
- package/pd-cli/dist/commands/__tests__/rulecode-flag-wiring.test.d.ts.map +1 -0
- package/pd-cli/dist/commands/__tests__/rulecode-flag-wiring.test.js +179 -0
- package/pd-cli/dist/commands/__tests__/rulecode-flag-wiring.test.js.map +1 -0
- package/pd-cli/dist/commands/__tests__/rulecode-handler.test.d.ts +16 -0
- package/pd-cli/dist/commands/__tests__/rulecode-handler.test.d.ts.map +1 -0
- package/pd-cli/dist/commands/__tests__/rulecode-handler.test.js +285 -0
- package/pd-cli/dist/commands/__tests__/rulecode-handler.test.js.map +1 -0
- package/pd-cli/dist/commands/__tests__/run-rulehost-flag-wiring.test.d.ts +24 -0
- package/pd-cli/dist/commands/__tests__/run-rulehost-flag-wiring.test.d.ts.map +1 -0
- package/pd-cli/dist/commands/__tests__/run-rulehost-flag-wiring.test.js +223 -0
- package/pd-cli/dist/commands/__tests__/run-rulehost-flag-wiring.test.js.map +1 -0
- package/pd-cli/dist/commands/__tests__/runtime-probe-config.test.d.ts +20 -0
- package/pd-cli/dist/commands/__tests__/runtime-probe-config.test.d.ts.map +1 -0
- package/pd-cli/dist/commands/__tests__/runtime-probe-config.test.js +388 -0
- package/pd-cli/dist/commands/__tests__/runtime-probe-config.test.js.map +1 -0
- package/pd-cli/dist/commands/build-trajectory-evidence.d.ts +21 -0
- package/pd-cli/dist/commands/build-trajectory-evidence.d.ts.map +1 -0
- package/pd-cli/dist/commands/build-trajectory-evidence.js +161 -0
- package/pd-cli/dist/commands/build-trajectory-evidence.js.map +1 -0
- package/pd-cli/dist/commands/candidate.d.ts +24 -0
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
- package/pd-cli/dist/commands/candidate.js +147 -75
- package/pd-cli/dist/commands/candidate.js.map +1 -1
- package/pd-cli/dist/commands/command-helpers.d.ts +19 -0
- package/pd-cli/dist/commands/command-helpers.d.ts.map +1 -0
- package/pd-cli/dist/commands/command-helpers.js +22 -0
- package/pd-cli/dist/commands/command-helpers.js.map +1 -0
- package/pd-cli/dist/commands/config-doctor.d.ts.map +1 -1
- package/pd-cli/dist/commands/config-doctor.js +4 -0
- package/pd-cli/dist/commands/config-doctor.js.map +1 -1
- package/pd-cli/dist/commands/diagnose.d.ts +1 -0
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +252 -149
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/evolution-tasks-show.js +0 -1
- package/pd-cli/dist/commands/evolution-tasks-show.js.map +1 -1
- package/pd-cli/dist/commands/legacy-cleanup.d.ts +72 -6
- package/pd-cli/dist/commands/legacy-cleanup.d.ts.map +1 -1
- package/pd-cli/dist/commands/legacy-cleanup.js +243 -23
- package/pd-cli/dist/commands/legacy-cleanup.js.map +1 -1
- package/pd-cli/dist/commands/mvp-smoke.d.ts +30 -0
- package/pd-cli/dist/commands/mvp-smoke.d.ts.map +1 -0
- package/pd-cli/dist/commands/mvp-smoke.js +139 -0
- package/pd-cli/dist/commands/mvp-smoke.js.map +1 -0
- package/pd-cli/dist/commands/pain-record.d.ts +2 -0
- package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-record.js +45 -7
- package/pd-cli/dist/commands/pain-record.js.map +1 -1
- package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +46 -43
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/quality-scorecard.d.ts +9 -0
- package/pd-cli/dist/commands/quality-scorecard.d.ts.map +1 -0
- package/pd-cli/dist/commands/quality-scorecard.js +241 -0
- package/pd-cli/dist/commands/quality-scorecard.js.map +1 -0
- package/pd-cli/dist/commands/rulecode.d.ts +85 -0
- package/pd-cli/dist/commands/rulecode.d.ts.map +1 -0
- package/pd-cli/dist/commands/rulecode.js +356 -0
- package/pd-cli/dist/commands/rulecode.js.map +1 -0
- package/pd-cli/dist/commands/runtime-activation.d.ts +37 -0
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +416 -2
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/dist/commands/runtime-features.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-features.js +2 -7
- package/pd-cli/dist/commands/runtime-features.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js +25 -15
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity.js +42 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-queue.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-queue.js +35 -3
- package/pd-cli/dist/commands/runtime-internalization-queue.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +316 -320
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.d.ts +23 -0
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js +361 -0
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js.map +1 -0
- package/pd-cli/dist/commands/runtime-recovery-failed-tasks.d.ts +10 -0
- package/pd-cli/dist/commands/runtime-recovery-failed-tasks.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-recovery-failed-tasks.js +164 -0
- package/pd-cli/dist/commands/runtime-recovery-failed-tasks.js.map +1 -0
- package/pd-cli/dist/commands/runtime-recovery.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-recovery.js +9 -8
- package/pd-cli/dist/commands/runtime-recovery.js.map +1 -1
- package/pd-cli/dist/commands/runtime.d.ts +7 -1
- package/pd-cli/dist/commands/runtime.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime.js +223 -30
- package/pd-cli/dist/commands/runtime.js.map +1 -1
- package/pd-cli/dist/commands/samples-list.js +0 -1
- package/pd-cli/dist/commands/samples-list.js.map +1 -1
- package/pd-cli/dist/commands/task.d.ts +11 -0
- package/pd-cli/dist/commands/task.d.ts.map +1 -1
- package/pd-cli/dist/commands/task.js +148 -6
- package/pd-cli/dist/commands/task.js.map +1 -1
- package/pd-cli/dist/index.d.ts +1 -1
- package/pd-cli/dist/index.js +155 -70
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/legacy/session-history-import.js +0 -19
- package/pd-cli/dist/legacy/session-history-import.js.map +1 -1
- package/pd-cli/dist/services/__tests__/cli-output.test.d.ts +18 -0
- package/pd-cli/dist/services/__tests__/cli-output.test.d.ts.map +1 -0
- package/pd-cli/dist/services/__tests__/cli-output.test.js +103 -0
- package/pd-cli/dist/services/__tests__/cli-output.test.js.map +1 -0
- package/pd-cli/dist/services/__tests__/runtime-adapter-resolver.test.d.ts +18 -0
- package/pd-cli/dist/services/__tests__/runtime-adapter-resolver.test.d.ts.map +1 -0
- package/pd-cli/dist/services/__tests__/runtime-adapter-resolver.test.js +651 -0
- package/pd-cli/dist/services/__tests__/runtime-adapter-resolver.test.js.map +1 -0
- package/pd-cli/dist/services/cli-output.d.ts +61 -0
- package/pd-cli/dist/services/cli-output.d.ts.map +1 -0
- package/pd-cli/dist/services/cli-output.js +72 -0
- package/pd-cli/dist/services/cli-output.js.map +1 -0
- package/pd-cli/dist/services/config-doctor.d.ts +2 -0
- package/pd-cli/dist/services/config-doctor.d.ts.map +1 -1
- package/pd-cli/dist/services/config-doctor.js +11 -8
- package/pd-cli/dist/services/config-doctor.js.map +1 -1
- package/pd-cli/dist/services/console-launcher.js +1 -1
- package/pd-cli/dist/services/console-launcher.js.map +1 -1
- package/pd-cli/dist/services/demo-rule-compiler.d.ts +24 -0
- package/pd-cli/dist/services/demo-rule-compiler.d.ts.map +1 -0
- package/pd-cli/dist/services/demo-rule-compiler.js +58 -0
- package/pd-cli/dist/services/demo-rule-compiler.js.map +1 -0
- package/pd-cli/dist/services/feature-flag-loader.js +0 -1
- package/pd-cli/dist/services/feature-flag-loader.js.map +1 -1
- package/pd-cli/dist/services/mainline-snapshot-assembler.d.ts +35 -0
- package/pd-cli/dist/services/mainline-snapshot-assembler.d.ts.map +1 -0
- package/pd-cli/dist/services/mainline-snapshot-assembler.js +428 -0
- package/pd-cli/dist/services/mainline-snapshot-assembler.js.map +1 -0
- package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/pain-flood-simulation-runner.js +95 -10
- package/pd-cli/dist/services/pain-flood-simulation-runner.js.map +1 -1
- package/pd-cli/dist/services/pd-config-loader.d.ts +4 -0
- package/pd-cli/dist/services/pd-config-loader.d.ts.map +1 -1
- package/pd-cli/dist/services/pd-config-loader.js +12 -0
- package/pd-cli/dist/services/pd-config-loader.js.map +1 -1
- package/pd-cli/dist/services/quality-scorecard/data-extractor.d.ts +28 -0
- package/pd-cli/dist/services/quality-scorecard/data-extractor.d.ts.map +1 -0
- package/pd-cli/dist/services/quality-scorecard/data-extractor.js +118 -0
- package/pd-cli/dist/services/quality-scorecard/data-extractor.js.map +1 -0
- package/pd-cli/dist/services/quality-scorecard/local-evaluator.d.ts +18 -0
- package/pd-cli/dist/services/quality-scorecard/local-evaluator.d.ts.map +1 -0
- package/pd-cli/dist/services/quality-scorecard/local-evaluator.js +112 -0
- package/pd-cli/dist/services/quality-scorecard/local-evaluator.js.map +1 -0
- package/pd-cli/dist/services/quality-scorecard/strong-model-gate.d.ts +14 -0
- package/pd-cli/dist/services/quality-scorecard/strong-model-gate.d.ts.map +1 -0
- package/pd-cli/dist/services/quality-scorecard/strong-model-gate.js +128 -0
- package/pd-cli/dist/services/quality-scorecard/strong-model-gate.js.map +1 -0
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.d.ts +70 -0
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.d.ts.map +1 -0
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.js +138 -0
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.js.map +1 -0
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts +132 -0
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -0
- package/pd-cli/dist/services/rulehost-pipeline-runner.js +392 -0
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -0
- package/pd-cli/dist/services/runtime-adapter-resolver.d.ts +105 -0
- package/pd-cli/dist/services/runtime-adapter-resolver.d.ts.map +1 -0
- package/pd-cli/dist/services/runtime-adapter-resolver.js +188 -0
- package/pd-cli/dist/services/runtime-adapter-resolver.js.map +1 -0
- package/pd-cli/dist/services/synthetic-baseline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/synthetic-baseline-runner.js +97 -6
- package/pd-cli/dist/services/synthetic-baseline-runner.js.map +1 -1
- package/pd-cli/dist/utils/production-workspace-guard.d.ts +0 -7
- package/pd-cli/dist/utils/production-workspace-guard.d.ts.map +1 -1
- package/pd-cli/dist/utils/production-workspace-guard.js +0 -11
- package/pd-cli/dist/utils/production-workspace-guard.js.map +1 -1
- package/pd-cli/dist/utils/production-workspace-guard.test.js +9 -2
- package/pd-cli/dist/utils/production-workspace-guard.test.js.map +1 -1
- package/pd-cli/package.json +3 -2
- package/plugin/dist/config/defaults/runtime.d.ts +0 -6
- package/plugin/dist/config/defaults/runtime.js +0 -7
- package/plugin/dist/core/code-implementation-storage.d.ts +0 -9
- package/plugin/dist/core/code-implementation-storage.js +0 -34
- package/plugin/dist/core/config-health.d.ts +27 -0
- package/plugin/dist/core/config-health.js +60 -0
- package/plugin/dist/core/event-log.d.ts +10 -1
- package/plugin/dist/core/event-log.js +11 -0
- package/plugin/dist/core/init.d.ts +1 -1
- package/plugin/dist/core/init.js +10 -14
- package/plugin/dist/core/paths.d.ts +0 -6
- package/plugin/dist/core/paths.js +0 -6
- package/plugin/dist/core/principle-compiler/code-validator.js +4 -1
- package/plugin/dist/core/principle-tree-ledger.d.ts +0 -4
- package/plugin/dist/core/principle-tree-ledger.js +0 -7
- package/plugin/dist/core/rule-host.d.ts +45 -15
- package/plugin/dist/core/rule-host.js +240 -81
- package/plugin/dist/core/rule-implementation-runtime.d.ts +13 -0
- package/plugin/dist/core/rule-implementation-runtime.js +91 -3
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.js +2 -2
- package/plugin/dist/core/thinking-models.d.ts +3 -2
- package/plugin/dist/core/thinking-models.js +9 -29
- package/plugin/dist/core/trajectory-types.d.ts +4 -0
- package/plugin/dist/core/trajectory.js +55 -5
- package/plugin/dist/core/workspace-dir-validation.d.ts +2 -2
- package/plugin/dist/core/workspace-dir-validation.js +2 -2
- package/plugin/dist/hooks/after-tool-call-helpers.d.ts +8 -9
- package/plugin/dist/hooks/after-tool-call-helpers.js +89 -100
- package/plugin/dist/hooks/after-tool-call-types.d.ts +2 -8
- package/plugin/dist/hooks/gate.js +1 -1
- package/plugin/dist/hooks/llm.js +11 -2
- package/plugin/dist/hooks/pain.d.ts +0 -1
- package/plugin/dist/hooks/pain.js +3 -2
- package/plugin/dist/hooks/raw-observation-adapter.d.ts +57 -0
- package/plugin/dist/hooks/raw-observation-adapter.js +170 -0
- package/plugin/dist/hooks/raw-observation-types.d.ts +62 -0
- package/plugin/dist/hooks/raw-observation-types.js +15 -0
- package/plugin/dist/hooks/trajectory-collector.d.ts +17 -28
- package/plugin/dist/hooks/trajectory-collector.js +71 -104
- package/plugin/dist/hooks/trajectory-evidence.js +23 -0
- package/plugin/dist/hooks/triage-adapter.d.ts +7 -31
- package/plugin/dist/hooks/triage-adapter.js +32 -61
- package/plugin/dist/hooks/trigger-cooldown-tracker.d.ts +30 -0
- package/plugin/dist/hooks/trigger-cooldown-tracker.js +55 -0
- package/plugin/dist/index.d.ts +11 -0
- package/plugin/dist/index.js +73 -27
- package/plugin/dist/openclaw-sdk.d.ts +1 -0
- package/plugin/dist/service/evolution-worker.d.ts +1 -1
- package/plugin/dist/service/internalization-auto-consumer-service.d.ts +8 -0
- package/plugin/dist/service/internalization-auto-consumer-service.js +322 -0
- package/plugin/dist/types/event-types.d.ts +1 -1
- package/plugin/dist/utils/io.js +24 -3
- package/plugin/package.json +4 -3
- package/plugin/scripts/sync-plugin.mjs +43 -0
- package/plugin/templates/langs/en/principles/THINKING_OS.md +12 -0
- package/plugin/templates/langs/en/skills/pd-runtime-v2/SKILL.md +1 -1
- package/plugin/templates/langs/zh/principles/THINKING_OS.md +12 -0
- package/plugin/templates/langs/zh/skills/pd-runtime-v2/SKILL.md +1 -1
- package/templates/langs/en/principles/THINKING_OS.md +12 -0
- package/templates/langs/zh/principles/THINKING_OS.md +12 -0
- package/console/dist/server/routes/state.d.ts +0 -11
- package/console/dist/server/routes/state.js +0 -97
- package/console/dist/ui/components/UpdateBanner.d.ts +0 -1
- package/console/dist/ui/components/UpdateBanner.js +0 -41
- package/console/dist/ui/components/UpdateProgressDialog.d.ts +0 -12
- package/console/dist/ui/components/UpdateProgressDialog.js +0 -28
- package/console/dist/ui/components/approval-card.d.ts +0 -8
- package/console/dist/ui/components/approval-card.js +0 -39
- package/console/dist/ui/components/approval-detail-dialog.d.ts +0 -9
- package/console/dist/ui/components/approval-detail-dialog.js +0 -20
- package/console/dist/ui/components/rejection-reason-dialog.d.ts +0 -6
- package/console/dist/ui/components/rejection-reason-dialog.js +0 -23
- package/core/dist/evolution-hook.d.ts +0 -70
- package/core/dist/evolution-hook.d.ts.map +0 -1
- package/core/dist/evolution-hook.js +0 -10
- package/core/dist/evolution-hook.js.map +0 -1
- package/core/dist/pain-flag-resolver.d.ts +0 -18
- package/core/dist/pain-flag-resolver.d.ts.map +0 -1
- package/core/dist/pain-flag-resolver.js +0 -21
- package/core/dist/pain-flag-resolver.js.map +0 -1
- package/core/dist/pain-recorder.d.ts +0 -38
- package/core/dist/pain-recorder.d.ts.map +0 -1
- package/core/dist/pain-recorder.js +0 -62
- package/core/dist/pain-recorder.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts +0 -2
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js +0 -170
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts +0 -2
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js +0 -396
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-language.test.d.ts +0 -13
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-language.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-language.test.js +0 -97
- package/core/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-language.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js +0 -378
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js +0 -682
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js +0 -286
- package/core/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js +0 -320
- package/core/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js +0 -261
- package/core/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js +0 -405
- package/core/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js +0 -347
- package/core/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js +0 -186
- package/core/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js +0 -355
- package/core/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js +0 -488
- package/core/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js +0 -171
- package/core/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.js +0 -182
- package/core/dist/runtime-v2/runner/__tests__/m9-e2e.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js +0 -276
- package/core/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js +0 -272
- package/core/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts +0 -2
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.js +0 -67
- package/core/dist/runtime-v2/runner/__tests__/start-run-input.test.js.map +0 -1
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.d.ts +0 -47
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.js +0 -20
- package/core/dist/runtime-v2/runner/diagnostician-runner-options.js.map +0 -1
- package/core/dist/runtime-v2/runner/diagnostician-runner.d.ts +0 -87
- package/core/dist/runtime-v2/runner/diagnostician-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/diagnostician-runner.js +0 -441
- package/core/dist/runtime-v2/runner/diagnostician-runner.js.map +0 -1
- package/core/dist/storage-adapter.d.ts +0 -59
- package/core/dist/storage-adapter.d.ts.map +0 -1
- package/core/dist/storage-adapter.js +0 -2
- package/core/dist/storage-adapter.js.map +0 -1
- package/core/dist/types/workspace-resolver.d.ts +0 -25
- package/core/dist/types/workspace-resolver.d.ts.map +0 -1
- package/core/dist/types/workspace-resolver.js +0 -10
- package/core/dist/types/workspace-resolver.js.map +0 -1
- package/core/dist/types.d.ts +0 -56
- package/core/dist/types.d.ts.map +0 -1
- package/core/dist/types.js +0 -16
- package/core/dist/types.js.map +0 -1
- package/pd-cli/dist/principle-tree-ledger-adapter.d.ts +0 -12
- package/pd-cli/dist/principle-tree-ledger-adapter.d.ts.map +0 -1
- package/pd-cli/dist/principle-tree-ledger-adapter.js +0 -12
- package/pd-cli/dist/principle-tree-ledger-adapter.js.map +0 -1
- package/plugin/dist/core/evolution-hook.d.ts +0 -54
- package/plugin/dist/core/evolution-hook.js +0 -9
- package/plugin/dist/core/file-storage-adapter.d.ts +0 -43
- package/plugin/dist/core/file-storage-adapter.js +0 -158
- package/plugin/dist/core/merge-gate-audit.d.ts +0 -21
- package/plugin/dist/core/merge-gate-audit.js +0 -241
- package/plugin/dist/core/pain-context-extractor.d.ts +0 -31
- package/plugin/dist/core/pain-context-extractor.js +0 -278
- package/plugin/dist/core/pain-lifecycle.d.ts +0 -15
- package/plugin/dist/core/pain-lifecycle.js +0 -37
- package/plugin/dist/core/pain-signal-adapter.d.ts +0 -37
- package/plugin/dist/core/pain-signal-adapter.js +0 -1
- package/plugin/dist/core/pain-signal.d.ts +0 -6
- package/plugin/dist/core/pain-signal.js +0 -3
- package/plugin/dist/core/principle-injector.d.ts +0 -55
- package/plugin/dist/core/principle-injector.js +0 -17
- package/plugin/dist/core/principle-tree-migration.d.ts +0 -35
- package/plugin/dist/core/principle-tree-migration.js +0 -137
- package/plugin/dist/core/storage-adapter.d.ts +0 -58
- package/plugin/dist/core/storage-adapter.js +0 -1
- package/plugin/dist/core/telemetry-event.d.ts +0 -66
- package/plugin/dist/core/telemetry-event.js +0 -86
- package/plugin/dist/core/training-program.d.ts +0 -233
- package/plugin/dist/core/training-program.js +0 -435
- package/plugin/dist/core/workspace-dir-service.d.ts +0 -33
- package/plugin/dist/core/workspace-dir-service.js +0 -71
- package/plugin/dist/hooks/lifecycle-routing.d.ts +0 -24
- package/plugin/dist/hooks/lifecycle-routing.js +0 -110
- package/plugin/dist/service/event-log-auditor.d.ts +0 -46
- package/plugin/dist/service/event-log-auditor.js +0 -236
- package/plugin/dist/service/evolution-queue-lock.d.ts +0 -18
- package/plugin/dist/service/evolution-queue-lock.js +0 -36
- package/plugin/dist/service/failure-classifier.d.ts +0 -46
- package/plugin/dist/service/failure-classifier.js +0 -57
- package/plugin/dist/service/internalization-trigger-adapter.d.ts +0 -51
- package/plugin/dist/service/internalization-trigger-adapter.js +0 -184
- package/plugin/dist/service/monitoring-query-service.d.ts +0 -21
- package/plugin/dist/service/monitoring-query-service.js +0 -45
- package/plugin/dist/service/subagent-workflow/index.d.ts +0 -3
- package/plugin/dist/service/subagent-workflow/index.js +0 -2
- package/plugin/dist/tools/critique-prompt.d.ts +0 -1
- package/plugin/dist/tools/critique-prompt.js +0 -1
- package/plugin/dist/tools/deep-reflect.d.ts +0 -1
- package/plugin/dist/tools/deep-reflect.js +0 -1
- package/plugin/dist/tools/model-index.d.ts +0 -1
- package/plugin/dist/tools/model-index.js +0 -1
- package/plugin/dist/types/event-payload.d.ts +0 -2
- package/plugin/dist/types/event-payload.js +0 -1
- package/plugin/dist/utils/glob-match.d.ts +0 -28
- package/plugin/dist/utils/glob-match.js +0 -49
- package/plugin/dist/utils/nlp.d.ts +0 -4
- package/plugin/dist/utils/nlp.js +0 -21
- package/plugin/dist/utils/plugin-logger.d.ts +0 -39
- package/plugin/dist/utils/plugin-logger.js +0 -70
- package/plugin/dist/utils/subagent-probe.d.ts +0 -35
- package/plugin/dist/utils/subagent-probe.js +0 -67
|
@@ -76,6 +76,80 @@ export class ActivationDispatcher {
|
|
|
76
76
|
if (input.rolloutDecision === 'reject') {
|
|
77
77
|
return { decision: 'refused', reason: 'rollout_rejected', channel: input.channel };
|
|
78
78
|
}
|
|
79
|
+
// 'approved' = approval already granted externally (ApprovalCompletionService).
|
|
80
|
+
// Bypass the approval queue check and activate directly. This is the
|
|
81
|
+
// post-approval dispatch path for high-risk channels (code_tool_hook).
|
|
82
|
+
//
|
|
83
|
+
// Security boundary (P1 fix): the dispatcher independently verifies the
|
|
84
|
+
// approval record — it does NOT trust the caller's rolloutDecision alone.
|
|
85
|
+
// Any caller passing rolloutDecision='approved' must also supply an
|
|
86
|
+
// approvalId that resolves to an approved record matching the artifact
|
|
87
|
+
// and channel. This prevents bypassing the owner approval boundary.
|
|
88
|
+
if (input.rolloutDecision === 'approved') {
|
|
89
|
+
if (!input.approvalId) {
|
|
90
|
+
return {
|
|
91
|
+
decision: 'refused',
|
|
92
|
+
reason: 'approved_dispatch_requires_approval_id',
|
|
93
|
+
nextAction: 'provide approvalId from a verified owner approval record',
|
|
94
|
+
channel: input.channel,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
if (!this.approvalQueueStore) {
|
|
98
|
+
return {
|
|
99
|
+
decision: 'refused',
|
|
100
|
+
reason: 'approved_dispatch_without_approval_store',
|
|
101
|
+
nextAction: 'configure dispatcher with approvalQueueStore to verify approvals',
|
|
102
|
+
channel: input.channel,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
let approvalRecord;
|
|
106
|
+
try {
|
|
107
|
+
approvalRecord = await this.approvalQueueStore.getById(input.approvalId);
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
return {
|
|
111
|
+
decision: 'refused',
|
|
112
|
+
reason: 'approval_record_read_failed',
|
|
113
|
+
nextAction: 'check_approval_store_availability',
|
|
114
|
+
channel: input.channel,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
if (!approvalRecord) {
|
|
118
|
+
return {
|
|
119
|
+
decision: 'refused',
|
|
120
|
+
reason: `approval_record_not_found: ${input.approvalId}`,
|
|
121
|
+
nextAction: 'verify_approval_id',
|
|
122
|
+
channel: input.channel,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
if (approvalRecord.status !== 'approved') {
|
|
126
|
+
return {
|
|
127
|
+
decision: 'refused',
|
|
128
|
+
reason: `approval_status_is_${approvalRecord.status}_expected_approved`,
|
|
129
|
+
nextAction: approvalRecord.status === 'pending'
|
|
130
|
+
? 'owner_must_approve_before_dispatch'
|
|
131
|
+
: 'rejected_or_expired_approvals_cannot_be_activated',
|
|
132
|
+
channel: input.channel,
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
if (approvalRecord.artifactId !== input.artifactId) {
|
|
136
|
+
return {
|
|
137
|
+
decision: 'refused',
|
|
138
|
+
reason: `approval_artifact_mismatch: approval=${approvalRecord.artifactId} dispatch=${input.artifactId}`,
|
|
139
|
+
nextAction: 'ensure_dispatch_artifact_matches_approved_artifact',
|
|
140
|
+
channel: input.channel,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
if (approvalRecord.channel !== input.channel) {
|
|
144
|
+
return {
|
|
145
|
+
decision: 'refused',
|
|
146
|
+
reason: `approval_channel_mismatch: approval=${approvalRecord.channel} dispatch=${input.channel}`,
|
|
147
|
+
nextAction: 'ensure_dispatch_channel_matches_approved_channel',
|
|
148
|
+
channel: input.channel,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
return this.activateArtifact(input, artifact, idempotencyKey);
|
|
152
|
+
}
|
|
79
153
|
// Auto-promotion bypasses both channel-risk gating AND explicit require_approval from the rollout gate.
|
|
80
154
|
// This is intentional: high-confidence skill artifacts are safe enough to activate without human review.
|
|
81
155
|
const needsApproval = input.rolloutDecision === 'require_approval' || !isLowRiskChannel(input.channel);
|
|
@@ -141,6 +215,11 @@ export class ActivationDispatcher {
|
|
|
141
215
|
}
|
|
142
216
|
}
|
|
143
217
|
async activateArtifact(input, artifact, idempotencyKey) {
|
|
218
|
+
// Resolve the principle ID for WriterInput.principleId. Rule artifacts
|
|
219
|
+
// (code_tool_hook channel) MUST carry sourcePrincipleId — without it,
|
|
220
|
+
// the activated rule cannot be traced back to the owner-approved principle,
|
|
221
|
+
// producing an untraceable behavior change (P1 #3 fix: removed the
|
|
222
|
+
// sourceRuleId/artifactId fallback that allowed untraceable activation).
|
|
144
223
|
const principleId = extractPrincipleId(artifact);
|
|
145
224
|
if (!principleId) {
|
|
146
225
|
return { decision: 'invalid_artifact', reason: 'no_principle_id' };
|
|
@@ -200,7 +279,14 @@ export class ActivationDispatcher {
|
|
|
200
279
|
try {
|
|
201
280
|
const result = await this.artifactReadModel.getArtifactById(artifactId);
|
|
202
281
|
if (!result) {
|
|
203
|
-
return {
|
|
282
|
+
return {
|
|
283
|
+
artifact: null,
|
|
284
|
+
decision: {
|
|
285
|
+
decision: 'invalid_artifact',
|
|
286
|
+
reason: 'artifact_not_found',
|
|
287
|
+
nextAction: 'check_pi_artifacts_table_or_remove_stale_activation',
|
|
288
|
+
},
|
|
289
|
+
};
|
|
204
290
|
}
|
|
205
291
|
return { artifact: result, decision: null };
|
|
206
292
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activation-dispatcher.js","sourceRoot":"","sources":["../../../src/runtime-v2/activation/activation-dispatcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activation-dispatcher.js","sourceRoot":"","sources":["../../../src/runtime-v2/activation/activation-dispatcher.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,KAAK,UAAU,gBAAgB,CAAC,MAAqB,EAAE,QAA4B;IACjF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,QAAQ,EAAE;oBACR,QAAQ,EAAE,SAAS;oBACnB,MAAM,EAAE,MAAM,CAAC,MAAM,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
|
20
|
+
* - 'auto_activate': low-risk channel, activate directly
|
|
21
|
+
* - 'require_approval': enqueue for owner approval
|
|
22
|
+
* - 'reject': refuse activation
|
|
23
|
+
* - 'approved': approval already granted externally (ApprovalCompletionService).
|
|
24
|
+
* Bypasses the approval queue check and activates directly. This is the
|
|
25
|
+
* post-approval dispatch path for high-risk channels.
|
|
26
|
+
*/
|
|
27
|
+
export type RolloutActivationDecision = 'auto_activate' | 'require_approval' | 'reject' | 'approved';
|
|
19
28
|
export interface DispatchInput {
|
|
20
29
|
artifactId: string;
|
|
21
30
|
channel: InternalizationChannel;
|
|
@@ -25,6 +34,13 @@ export interface DispatchInput {
|
|
|
25
34
|
now: string;
|
|
26
35
|
confirm: boolean;
|
|
27
36
|
confidence?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Required when rolloutDecision === 'approved'.
|
|
39
|
+
* The dispatcher independently verifies this approval record exists,
|
|
40
|
+
* is in 'approved' status, and matches the artifactId + channel.
|
|
41
|
+
* This prevents callers from bypassing the owner approval boundary.
|
|
42
|
+
*/
|
|
43
|
+
approvalId?: string;
|
|
28
44
|
}
|
|
29
45
|
export type ActivationDecision = {
|
|
30
46
|
decision: 'would_activate';
|
|
@@ -50,11 +66,13 @@ export type ActivationDecision = {
|
|
|
50
66
|
} | {
|
|
51
67
|
decision: 'refused';
|
|
52
68
|
reason: string;
|
|
69
|
+
nextAction?: string;
|
|
53
70
|
riskLevel?: ActivationRiskLevel;
|
|
54
71
|
channel?: InternalizationChannel;
|
|
55
72
|
} | {
|
|
56
73
|
decision: 'invalid_artifact';
|
|
57
74
|
reason: string;
|
|
75
|
+
nextAction?: string;
|
|
58
76
|
};
|
|
59
77
|
export interface PIArtifactSnapshot {
|
|
60
78
|
artifactId: string;
|
|
@@ -84,7 +102,8 @@ export interface ActivationStatusRecord {
|
|
|
84
102
|
export interface ActivationStateReadModel {
|
|
85
103
|
getActivationStatus(idempotencyKey: string): Promise<ActivationStatusRecord | null>;
|
|
86
104
|
recordActivation(record: ActivationStatusRecord): Promise<void>;
|
|
87
|
-
listPromptActivations(): Promise<ActivationStatusRecord[]>;
|
|
105
|
+
listPromptActivations(includeDeactivated?: boolean): Promise<ActivationStatusRecord[]>;
|
|
106
|
+
listCodeToolHookActivations(includeDeactivated?: boolean): Promise<ActivationStatusRecord[]>;
|
|
88
107
|
listAllActivations(): Promise<ActivationStatusRecord[]>;
|
|
89
108
|
deactivateActivation(activationId: string, deactivatedAt: string): Promise<boolean>;
|
|
90
109
|
}
|
|
@@ -129,6 +148,12 @@ export interface ApprovalRecord {
|
|
|
129
148
|
confidenceExplanation?: string;
|
|
130
149
|
effectDescription?: string;
|
|
131
150
|
rejectionEffect?: string;
|
|
151
|
+
/** Story A (PRI-408): Edit tracking — when owner edits the principle/rule before approving */
|
|
152
|
+
editedAt?: string;
|
|
153
|
+
editedBy?: string;
|
|
154
|
+
editReason?: string;
|
|
155
|
+
/** The previous artifactId before the edit (for lineage tracking) */
|
|
156
|
+
previousArtifactId?: string;
|
|
132
157
|
}
|
|
133
158
|
export type ConfidenceLabel = 'high' | 'medium' | 'low';
|
|
134
159
|
export declare function mapConfidenceToLabel(confidence: number | undefined): ConfidenceLabel;
|
|
@@ -198,7 +223,29 @@ export interface ApprovalQueueStore {
|
|
|
198
223
|
ok: false;
|
|
199
224
|
error: 'not_found' | 'not_approved';
|
|
200
225
|
}>;
|
|
226
|
+
/**
|
|
227
|
+
* Story A (PRI-408): Edit a pending approval's artifact to a new version.
|
|
228
|
+
* Updates artifactId, records edit metadata, keeps status as pending.
|
|
229
|
+
* The caller is responsible for creating the new artifact and performing
|
|
230
|
+
* schema validation + sandbox replay BEFORE calling this method.
|
|
231
|
+
* Returns error if the approval is not in 'pending' status.
|
|
232
|
+
*/
|
|
233
|
+
edit(input: ApprovalEditInput): Promise<ApprovalDecisionResult>;
|
|
234
|
+
}
|
|
235
|
+
export interface ApprovalEditInput {
|
|
236
|
+
approvalId: string;
|
|
237
|
+
editedBy: string;
|
|
238
|
+
newArtifactId: string;
|
|
239
|
+
editReason: string;
|
|
240
|
+
now: string;
|
|
241
|
+
}
|
|
242
|
+
export interface ArtifactLineageIdentity {
|
|
243
|
+
artifactId: string;
|
|
244
|
+
sourceTaskId: string;
|
|
245
|
+
sourcePrincipleId?: string;
|
|
246
|
+
lineageArtifactIds: string[];
|
|
201
247
|
}
|
|
248
|
+
export declare function isArtifactRevisionOf(candidate: ArtifactLineageIdentity, original: ArtifactLineageIdentity): boolean;
|
|
202
249
|
export declare function makeIdempotencyKey(artifactId: string, channel: InternalizationChannel): string;
|
|
203
250
|
export declare function isLowRiskChannel(channel: InternalizationChannel): boolean;
|
|
204
251
|
export declare function getChannelRiskLevel(channel: InternalizationChannel): ActivationRiskLevel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activation-types.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/activation/activation-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEtI,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAE,0BAA0B,EAAE,CAAC;AAEnF,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAEzE,eAAO,MAAM,iBAAiB,EAAE,SAAS,sBAAsB,EAAyC,CAAC;AAEzG,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAItE,CAAC;AAEX,eAAO,MAAM,mCAAmC,OAAO,CAAC;AAExD,eAAO,MAAM,wBAAwB,EAAE,SAAS,sBAAsB,EAAuB,CAAC;AAE9F,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAA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AG,OAAO,CAEzE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,sBAAsB,GAAG,mBAAmB,CAGxF"}
|
|
@@ -15,6 +15,12 @@ export function mapConfidenceToLabel(confidence) {
|
|
|
15
15
|
return 'medium';
|
|
16
16
|
return 'low';
|
|
17
17
|
}
|
|
18
|
+
export function isArtifactRevisionOf(candidate, original) {
|
|
19
|
+
const referencesOriginal = candidate.lineageArtifactIds.includes(original.artifactId);
|
|
20
|
+
const samePrinciple = Boolean(candidate.sourcePrincipleId)
|
|
21
|
+
&& candidate.sourcePrincipleId === original.sourcePrincipleId;
|
|
22
|
+
return candidate.sourceTaskId === original.sourceTaskId || referencesOriginal || samePrinciple;
|
|
23
|
+
}
|
|
18
24
|
export function makeIdempotencyKey(artifactId, channel) {
|
|
19
25
|
return `${artifactId}::${channel}`;
|
|
20
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activation-types.js","sourceRoot":"","sources":["../../../src/runtime-v2/activation/activation-types.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,iBAAiB,GAAsC,CAAC,QAAQ,EAAE,eAAe,CAAU,CAAC;AAEzG,MAAM,CAAC,MAAM,qBAAqB,GAAkD;IAClF,KAAK,EAAE,QAAQ;IACf,cAAc,EAAE,MAAM;IACtB,cAAc,EAAE,UAAU;CAClB,CAAC;AAEX,MAAM,CAAC,MAAM,mCAAmC,GAAG,IAAI,CAAC;AAExD,MAAM,CAAC,MAAM,wBAAwB,GAAsC,CAAC,OAAO,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"activation-types.js","sourceRoot":"","sources":["../../../src/runtime-v2/activation/activation-types.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,iBAAiB,GAAsC,CAAC,QAAQ,EAAE,eAAe,CAAU,CAAC;AAEzG,MAAM,CAAC,MAAM,qBAAqB,GAAkD;IAClF,KAAK,EAAE,QAAQ;IACf,cAAc,EAAE,MAAM;IACtB,cAA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Approval Completion Service — Story A (PRI-408)
|
|
3
|
+
*
|
|
4
|
+
* Formal production service that orchestrates activation AFTER an owner
|
|
5
|
+
* approves an approval record. Replaces the demo "approve → direct writer"
|
|
6
|
+
* pattern with a structured, idempotent, validated completion path.
|
|
7
|
+
*
|
|
8
|
+
* Product Contract B requirements:
|
|
9
|
+
* - Reads the approved approval record
|
|
10
|
+
* - Validates artifact/version/channel consistency
|
|
11
|
+
* - Prevents unapproved, rejected, or expired records from activating
|
|
12
|
+
* - Idempotent activation (duplicate submissions = no duplicate activation)
|
|
13
|
+
* - Calls the ActivationDispatcher with rolloutDecision='approved'
|
|
14
|
+
* - Records activation state (via dispatcher)
|
|
15
|
+
* - Returns structured decision/reason/nextAction
|
|
16
|
+
*
|
|
17
|
+
* ERR checklist:
|
|
18
|
+
* - ERR-001: Approval record fields validated at runtime, not via `as`
|
|
19
|
+
* - ERR-002: Every failure path carries reason + nextAction
|
|
20
|
+
* - ERR-009: Required fields fail loud when missing
|
|
21
|
+
* - ERR-015: Idempotency state distinguished from current dispatch state
|
|
22
|
+
* - ERR-025: Production-path service, not demo helper
|
|
23
|
+
*/
|
|
24
|
+
import type { ActivationActor, ActivationDecision, ActivationStateReadModel, ApprovalQueueStore } from './activation-types.js';
|
|
25
|
+
import type { ActivationDispatcher } from './activation-dispatcher.js';
|
|
26
|
+
export interface ApprovalCompletionInput {
|
|
27
|
+
approvalId: string;
|
|
28
|
+
actor: ActivationActor;
|
|
29
|
+
now: string;
|
|
30
|
+
}
|
|
31
|
+
export type ApprovalCompletionResult = {
|
|
32
|
+
ok: true;
|
|
33
|
+
decision: ActivationDecision;
|
|
34
|
+
activationId?: string;
|
|
35
|
+
approvalId: string;
|
|
36
|
+
} | {
|
|
37
|
+
ok: false;
|
|
38
|
+
error: 'not_found' | 'not_approved' | 'already_activated';
|
|
39
|
+
reason: string;
|
|
40
|
+
nextAction: string;
|
|
41
|
+
approvalId: string;
|
|
42
|
+
};
|
|
43
|
+
export declare class ApprovalCompletionService {
|
|
44
|
+
private readonly approvalStore;
|
|
45
|
+
private readonly dispatcher;
|
|
46
|
+
private readonly stateReadModel;
|
|
47
|
+
constructor(approvalStore: ApprovalQueueStore, dispatcher: ActivationDispatcher, stateReadModel: ActivationStateReadModel);
|
|
48
|
+
completeApproval(input: ApprovalCompletionInput): Promise<ApprovalCompletionResult>;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=approval-completion-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-completion-service.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/activation/approval-completion-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,eAAe,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,wBAAwB,GAChC;IACE,EAAE,EAAE,IAAI,CAAC;IACT,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,GACD;IACE,EAAE,EAAE,KAAK,CAAC;IACV,KAAK,EAAE,WAAW,GAAG,cAAc,GAAG,mBAAmB,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEN,qBAAa,yBAAyB;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAFd,aAAa,EAAE,kBAAkB,EACjC,UAAU,EAAE,oBAAoB,EAChC,cAAc,EAAE,wBAAwB;IAGrD,gBAAgB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAkI1F"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Approval Completion Service — Story A (PRI-408)
|
|
3
|
+
*
|
|
4
|
+
* Formal production service that orchestrates activation AFTER an owner
|
|
5
|
+
* approves an approval record. Replaces the demo "approve → direct writer"
|
|
6
|
+
* pattern with a structured, idempotent, validated completion path.
|
|
7
|
+
*
|
|
8
|
+
* Product Contract B requirements:
|
|
9
|
+
* - Reads the approved approval record
|
|
10
|
+
* - Validates artifact/version/channel consistency
|
|
11
|
+
* - Prevents unapproved, rejected, or expired records from activating
|
|
12
|
+
* - Idempotent activation (duplicate submissions = no duplicate activation)
|
|
13
|
+
* - Calls the ActivationDispatcher with rolloutDecision='approved'
|
|
14
|
+
* - Records activation state (via dispatcher)
|
|
15
|
+
* - Returns structured decision/reason/nextAction
|
|
16
|
+
*
|
|
17
|
+
* ERR checklist:
|
|
18
|
+
* - ERR-001: Approval record fields validated at runtime, not via `as`
|
|
19
|
+
* - ERR-002: Every failure path carries reason + nextAction
|
|
20
|
+
* - ERR-009: Required fields fail loud when missing
|
|
21
|
+
* - ERR-015: Idempotency state distinguished from current dispatch state
|
|
22
|
+
* - ERR-025: Production-path service, not demo helper
|
|
23
|
+
*/
|
|
24
|
+
import { makeIdempotencyKey } from './activation-types.js';
|
|
25
|
+
export class ApprovalCompletionService {
|
|
26
|
+
approvalStore;
|
|
27
|
+
dispatcher;
|
|
28
|
+
stateReadModel;
|
|
29
|
+
constructor(approvalStore, dispatcher, stateReadModel) {
|
|
30
|
+
this.approvalStore = approvalStore;
|
|
31
|
+
this.dispatcher = dispatcher;
|
|
32
|
+
this.stateReadModel = stateReadModel;
|
|
33
|
+
}
|
|
34
|
+
async completeApproval(input) {
|
|
35
|
+
// 1. Read the approval record
|
|
36
|
+
let record;
|
|
37
|
+
try {
|
|
38
|
+
record = await this.approvalStore.getById(input.approvalId);
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
return {
|
|
42
|
+
ok: false,
|
|
43
|
+
error: 'not_found',
|
|
44
|
+
reason: 'approval_record_read_failed',
|
|
45
|
+
nextAction: 'check_approval_store_or_retry',
|
|
46
|
+
approvalId: input.approvalId,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (!record) {
|
|
50
|
+
return {
|
|
51
|
+
ok: false,
|
|
52
|
+
error: 'not_found',
|
|
53
|
+
reason: `approval record ${input.approvalId} not found`,
|
|
54
|
+
nextAction: 'verify_approval_id_or_check_store',
|
|
55
|
+
approvalId: input.approvalId,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
// 2. Validate the approval is in 'approved' status
|
|
59
|
+
if (record.status !== 'approved') {
|
|
60
|
+
return {
|
|
61
|
+
ok: false,
|
|
62
|
+
error: 'not_approved',
|
|
63
|
+
reason: `approval status is ${record.status}, expected approved`,
|
|
64
|
+
nextAction: record.status === 'pending'
|
|
65
|
+
? 'owner_must_approve_before_completion'
|
|
66
|
+
: record.status === 'rejected'
|
|
67
|
+
? 'rejected_approvals_cannot_be_activated'
|
|
68
|
+
: 'check_approval_status',
|
|
69
|
+
approvalId: input.approvalId,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
// 2b. Validate required fields before generating idempotency key (EP-01)
|
|
73
|
+
if (!record.artifactId || typeof record.artifactId !== 'string') {
|
|
74
|
+
return {
|
|
75
|
+
ok: false,
|
|
76
|
+
error: 'not_approved',
|
|
77
|
+
reason: 'approval record has missing or invalid artifactId',
|
|
78
|
+
nextAction: 'check_artifact_store_integrity',
|
|
79
|
+
approvalId: input.approvalId,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
if (!record.channel || typeof record.channel !== 'string') {
|
|
83
|
+
return {
|
|
84
|
+
ok: false,
|
|
85
|
+
error: 'not_approved',
|
|
86
|
+
reason: 'approval record has missing or invalid channel',
|
|
87
|
+
nextAction: 'check_approval_store_integrity',
|
|
88
|
+
approvalId: input.approvalId,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
// 3. Check idempotency — has this already been activated?
|
|
92
|
+
const idempotencyKey = makeIdempotencyKey(record.artifactId, record.channel);
|
|
93
|
+
let existingActivation;
|
|
94
|
+
try {
|
|
95
|
+
existingActivation = await this.stateReadModel.getActivationStatus(idempotencyKey);
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
// If state read fails, proceed to dispatch — the dispatcher will
|
|
99
|
+
// also check idempotency and handle errors. Log the failure for
|
|
100
|
+
// observability (ERR-002: graceful degradation must include a reason).
|
|
101
|
+
const readErr = err instanceof Error ? err.message : String(err);
|
|
102
|
+
console.warn(`[ApprovalCompletionService] idempotency state read failed for key ${idempotencyKey}: ${readErr}; proceeding to dispatch`);
|
|
103
|
+
existingActivation = null;
|
|
104
|
+
}
|
|
105
|
+
if (existingActivation) {
|
|
106
|
+
return {
|
|
107
|
+
ok: true,
|
|
108
|
+
decision: {
|
|
109
|
+
decision: 'already_activated',
|
|
110
|
+
activationId: existingActivation.activationId,
|
|
111
|
+
action: existingActivation.action,
|
|
112
|
+
targetRef: existingActivation.targetRef,
|
|
113
|
+
},
|
|
114
|
+
activationId: existingActivation.activationId,
|
|
115
|
+
approvalId: input.approvalId,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
// 4. Dispatch with 'approved' — the dispatcher independently verifies
|
|
119
|
+
// the approval record via approvalId (security boundary, P1 #3 fix).
|
|
120
|
+
let dispatchDecision;
|
|
121
|
+
try {
|
|
122
|
+
dispatchDecision = await this.dispatcher.dispatch({
|
|
123
|
+
artifactId: record.artifactId,
|
|
124
|
+
channel: record.channel,
|
|
125
|
+
rolloutDecision: 'approved',
|
|
126
|
+
approvalId: input.approvalId,
|
|
127
|
+
actor: input.actor,
|
|
128
|
+
now: input.now,
|
|
129
|
+
confirm: true,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
catch (err) {
|
|
133
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
134
|
+
return {
|
|
135
|
+
ok: false,
|
|
136
|
+
error: 'not_approved',
|
|
137
|
+
reason: `dispatch_failed: ${message}`,
|
|
138
|
+
nextAction: 'check_dispatcher_writers_and_artifact_store',
|
|
139
|
+
approvalId: input.approvalId,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
// 5. Return structured result
|
|
143
|
+
if (dispatchDecision.decision === 'activated' || dispatchDecision.decision === 'already_activated') {
|
|
144
|
+
return {
|
|
145
|
+
ok: true,
|
|
146
|
+
decision: dispatchDecision,
|
|
147
|
+
activationId: dispatchDecision.activationId,
|
|
148
|
+
approvalId: input.approvalId,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
// The dispatch returned a non-activation decision (refused, invalid_artifact, etc.)
|
|
152
|
+
// This is not a service-level failure — the caller gets the dispatch decision.
|
|
153
|
+
return {
|
|
154
|
+
ok: true,
|
|
155
|
+
decision: dispatchDecision,
|
|
156
|
+
approvalId: input.approvalId,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=approval-completion-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-completion-service.js","sourceRoot":"","sources":["../../../src/runtime-v2/activation/approval-completion-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AASH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAwB3D,MAAM,OAAO,yBAAyB;IAEjB;IACA;IACA;IAHnB,YACmB,aAAiC,EACjC,UAAgC,EAChC,cAAwC;QAFxC,kBAAa,GAAb,aAAa,CAAoB;QACjC,eAAU,GAAV,UAAU,CAAsB;QAChC,mBAAc,GAAd,cAAc,CAA0B;IACxD,CAAC;IAEJ,KAAK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IACJ,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { InternalizationChannel } from '../internalization/peer-runner-contracts.js';
|
|
2
|
-
import type { ApprovalDecisionResult, ApprovalEnqueueInput, ApprovalFilter, ApprovalListFilter, ApprovalQueueStore, ApprovalRecord, ApprovalStats } from './activation-types.js';
|
|
2
|
+
import type { ApprovalDecisionResult, ApprovalEditInput, ApprovalEnqueueInput, ApprovalFilter, ApprovalListFilter, ApprovalQueueStore, ApprovalRecord, ApprovalStats } from './activation-types.js';
|
|
3
3
|
export declare function decideAutoPromotion(channel: InternalizationChannel, confidence: number | undefined): boolean;
|
|
4
4
|
export declare class ApprovalQueue {
|
|
5
5
|
private readonly store;
|
|
@@ -17,5 +17,11 @@ export declare class ApprovalQueue {
|
|
|
17
17
|
ok: false;
|
|
18
18
|
error: 'not_found' | 'not_approved';
|
|
19
19
|
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Story A (PRI-408): Edit a pending approval's artifact to a new version.
|
|
22
|
+
* The caller must create the new artifact and perform schema validation +
|
|
23
|
+
* sandbox replay BEFORE calling this method.
|
|
24
|
+
*/
|
|
25
|
+
edit(input: ApprovalEditInput): Promise<ApprovalDecisionResult>;
|
|
20
26
|
}
|
|
21
27
|
//# sourceMappingURL=approval-queue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-queue.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/activation/approval-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACd,MAAM,uBAAuB,CAAC;AAM/B,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAK5G;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sBAAsB,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAK5G;AAED,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,kBAAkB;IAEhD,OAAO,CAAC,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAI1E,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IAI3D,WAAW,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAI/D,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAS9F,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAS9F,OAAO,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAI/D,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC;IAIvC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG;QAAE,EAAE,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,WAAW,GAAG,cAAc,CAAA;KAAE,CAAC;IAIpH;;;;OAIG;IACG,IAAI,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAQtE"}
|
|
@@ -49,5 +49,19 @@ export class ApprovalQueue {
|
|
|
49
49
|
async resetToPending(approvalId) {
|
|
50
50
|
return this.store.resetToPending(approvalId);
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Story A (PRI-408): Edit a pending approval's artifact to a new version.
|
|
54
|
+
* The caller must create the new artifact and perform schema validation +
|
|
55
|
+
* sandbox replay BEFORE calling this method.
|
|
56
|
+
*/
|
|
57
|
+
async edit(input) {
|
|
58
|
+
const existing = await this.store.getById(input.approvalId);
|
|
59
|
+
if (!existing)
|
|
60
|
+
return { ok: false, error: 'not_found' };
|
|
61
|
+
if (existing.status !== 'pending') {
|
|
62
|
+
return { ok: false, error: 'already_decided', status: existing.status };
|
|
63
|
+
}
|
|
64
|
+
return this.store.edit(input);
|
|
65
|
+
}
|
|
52
66
|
}
|
|
53
67
|
//# sourceMappingURL=approval-queue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-queue.js","sourceRoot":"","sources":["../../../src/runtime-v2/activation/approval-queue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"approval-queue.js","sourceRoot":"","sources":["../../../src/runtime-v2/activation/approval-queue.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,wBAAwB,EACxB,mCAAmC,GACpC,MAAM,uBAAuB,CAAC;AAE/B,MAAM,UAAU,mBAAmB,CAAC,OAA+B,EAAE,UAA8B;IACjG,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,UAAU,GAAG,CAAC,IAAI,UAAU,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9D,OAAO,UAAU,IAAI,mCAAmC,CAAC;AAC3D,CAAC;AAED,MAAM,OAAO,aAAa;IACK;IAA7B,YAA6B,KAAyB;QAAzB,UAAK,GAAL,KAAK,CAAoB;IAAG,CAAC;IAE1D,KAAK,CAAC,OAAO,CAAC,KAA2B,EAAE,GAAW;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CA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EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAA2B;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,UAAkB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,IAAI,CAAC,KAAwB;QACjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC5D,IAAI,CAAC,QAAQ;YAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;QACxD,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAClC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC1E,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { ActivationRiskLevel, ActivationActor, RolloutActivationDecision, DispatchInput, ActivationDecision, PIArtifactSnapshot, ActivationArtifactReadModel, ActivationStatusRecord, ActivationStateReadModel, WriterInput, WriterResult, CanActivateResult, ChannelWriter, InternalizationChannel, PIArtifactKind, PIArtifactValidationStatus, ApprovalStatus, ApprovalRecord, ApprovalEnqueueInput, ApprovalFilter, ApprovalDecisionResult, ApprovalQueueStore, ConfidenceLabel, ApprovalWithContext, ApprovalListFilter, ApprovalStats, ApprovalListResult, } from './activation-types.js';
|
|
2
|
-
export { LOW_RISK_CHANNELS, HIGH_RISK_CHANNEL_MAP, makeIdempotencyKey, isLowRiskChannel, getChannelRiskLevel, AUTO_PROMOTION_CONFIDENCE_THRESHOLD, AUTO_PROMOTABLE_CHANNELS, mapConfidenceToLabel, } from './activation-types.js';
|
|
1
|
+
export type { ActivationRiskLevel, ActivationActor, RolloutActivationDecision, DispatchInput, ActivationDecision, PIArtifactSnapshot, ActivationArtifactReadModel, ActivationStatusRecord, ActivationStateReadModel, WriterInput, WriterResult, CanActivateResult, ChannelWriter, InternalizationChannel, PIArtifactKind, PIArtifactValidationStatus, ApprovalStatus, ApprovalRecord, ApprovalEnqueueInput, ApprovalFilter, ApprovalDecisionResult, ApprovalQueueStore, ConfidenceLabel, ApprovalWithContext, ApprovalListFilter, ArtifactLineageIdentity, ApprovalStats, ApprovalListResult, } from './activation-types.js';
|
|
2
|
+
export { isArtifactRevisionOf, LOW_RISK_CHANNELS, HIGH_RISK_CHANNEL_MAP, makeIdempotencyKey, isLowRiskChannel, getChannelRiskLevel, AUTO_PROMOTION_CONFIDENCE_THRESHOLD, AUTO_PROMOTABLE_CHANNELS, mapConfidenceToLabel, } from './activation-types.js';
|
|
3
3
|
export { ActivationDispatcher } from './activation-dispatcher.js';
|
|
4
4
|
export type { DispatcherConfig } from './activation-dispatcher.js';
|
|
5
5
|
export { PromptWriter, DeferArchiveWriter, extractPrincipleId, } from './low-risk-writers.js';
|
|
@@ -10,6 +10,9 @@ export { MemoryApprovalQueueStore } from './memory-approval-store.js';
|
|
|
10
10
|
export { SqliteApprovalQueueStore } from './sqlite-approval-store.js';
|
|
11
11
|
export { RuleHostWriter } from './writers/rule-host-writer.js';
|
|
12
12
|
export type { RuleHostWriterConfig } from './writers/rule-host-writer.js';
|
|
13
|
+
export { createProductionGateDeps } from './production-gate-deps.js';
|
|
14
|
+
export { ApprovalCompletionService } from './approval-completion-service.js';
|
|
15
|
+
export type { ApprovalCompletionInput, ApprovalCompletionResult } from './approval-completion-service.js';
|
|
13
16
|
export { RUNTIME_V2_PRINCIPLE_BUDGET, isRecord as isArtifactRecord, filterPromptActivations, resolvePrincipleFromArtifact, trimToBudget, renderPrinciplesToDirectives, } from './prompt-activation-reader-contract.js';
|
|
14
17
|
export type { ActivatedPrinciple, PromptActivationReaderResult, } from './prompt-activation-reader-contract.js';
|
|
15
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/activation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mCAAmC,EACnC,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/activation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mCAAmC,EACnC,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;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