create-principles-disciple 1.93.0 → 1.95.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/config/WorkspaceConfigStore.js +2 -1
- package/console/dist/server/config/pd-config-store.d.ts +40 -1
- package/console/dist/server/config/pd-config-store.js +170 -1
- package/console/dist/server/index.js +28 -10
- package/console/dist/server/models/ApprovalsConsoleModel.js +4 -12
- package/console/dist/server/models/EvidenceChainConsoleModel.d.ts +0 -2
- package/console/dist/server/models/EvidenceChainConsoleModel.js +36 -2
- package/console/dist/server/models/HealthCheckModel.js +5 -3
- package/console/dist/server/models/IntentDecisionModel.d.ts +66 -0
- package/console/dist/server/models/IntentDecisionModel.js +207 -0
- package/console/dist/server/models/IntentPageModel.d.ts +18 -0
- package/console/dist/server/models/IntentPageModel.js +90 -0
- package/console/dist/server/models/PrinciplesConsoleModel.d.ts +2 -0
- package/console/dist/server/models/PrinciplesConsoleModel.js +37 -1
- package/console/dist/server/models/WorkspaceService.d.ts +0 -28
- package/console/dist/server/models/WorkspaceService.js +0 -115
- package/console/dist/server/routes/config.js +55 -1
- package/console/dist/server/routes/feedback-reports.js +1 -1
- package/console/dist/server/routes/intent-decisions.d.ts +33 -0
- package/console/dist/server/routes/intent-decisions.js +499 -0
- package/console/dist/server/routes/intent.d.ts +3 -0
- package/console/dist/server/routes/intent.js +35 -0
- package/console/dist/server/routes/principles.js +67 -1
- package/console/dist/server/routes/update.d.ts +0 -1
- package/console/dist/server/routes/update.js +14 -11
- package/console/dist/ui/App.js +2 -7
- package/console/dist/ui/api.d.ts +44 -18
- package/console/dist/ui/api.js +44 -5
- package/console/dist/ui/components/layout/app-sidebar.js +2 -1
- package/console/dist/ui/components/ui/badge.d.ts +1 -1
- package/console/dist/ui/components/ui/button.d.ts +1 -1
- package/console/dist/ui/components/ui/shiny-text.d.ts +28 -0
- package/console/dist/ui/components/ui/shiny-text.js +46 -0
- package/console/dist/ui/i18n/en.json +167 -3
- package/console/dist/ui/i18n/zh-CN.json +167 -3
- package/console/dist/ui/pages/activation/ActivationPage.js +2 -1
- package/console/dist/ui/pages/control-center/ControlCenterPage.js +28 -2
- package/console/dist/ui/pages/control-center/EmpathyObserverCostHint.d.ts +28 -0
- package/console/dist/ui/pages/control-center/EmpathyObserverCostHint.js +38 -0
- package/console/dist/ui/pages/debt/DebtPage.js +219 -2
- package/console/dist/ui/pages/focus/FocusPage.js +2 -1
- package/console/dist/ui/pages/intent/IntentPage.d.ts +1 -0
- package/console/dist/ui/pages/intent/IntentPage.js +147 -0
- package/console/dist/ui/pages/pain/PainPage.js +234 -4
- package/console/dist/ui/pages/pain/pain-card-helpers.d.ts +75 -0
- package/console/dist/ui/pages/pain/pain-card-helpers.js +78 -0
- package/console/dist/ui/pages/principles/PrinciplesPage.js +2 -1
- package/console/dist/ui/utils/validators.d.ts +163 -0
- package/console/dist/ui/utils/validators.js +433 -0
- package/console/dist/web/assets/app.css +138 -0
- package/console/dist/web/assets/app.js +3124 -1288
- package/console/package.json +3 -0
- package/core/dist/index.d.ts +2 -2
- package/core/dist/index.d.ts.map +1 -1
- package/core/dist/index.js +1 -1
- package/core/dist/index.js.map +1 -1
- package/core/dist/principle-tree-ledger.d.ts +55 -4
- package/core/dist/principle-tree-ledger.d.ts.map +1 -1
- package/core/dist/principle-tree-ledger.js +472 -13
- package/core/dist/principle-tree-ledger.js.map +1 -1
- package/core/dist/prompt-builder/__tests__/model-config.test.d.ts +2 -0
- package/core/dist/prompt-builder/__tests__/model-config.test.d.ts.map +1 -0
- package/core/dist/prompt-builder/__tests__/model-config.test.js +158 -0
- package/core/dist/prompt-builder/__tests__/model-config.test.js.map +1 -0
- package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.js +58 -0
- package/core/dist/prompt-builder/__tests__/prompt-builder-core.test.js.map +1 -1
- package/core/dist/prompt-builder/__tests__/xml-escape.test.d.ts +2 -0
- package/core/dist/prompt-builder/__tests__/xml-escape.test.d.ts.map +1 -0
- package/core/dist/prompt-builder/__tests__/xml-escape.test.js +42 -0
- package/core/dist/prompt-builder/__tests__/xml-escape.test.js.map +1 -0
- package/core/dist/prompt-builder/empathy-keyword-matching.d.ts.map +1 -1
- package/core/dist/prompt-builder/empathy-keyword-matching.js +9 -6
- package/core/dist/prompt-builder/empathy-keyword-matching.js.map +1 -1
- package/core/dist/prompt-builder/index.d.ts +3 -0
- package/core/dist/prompt-builder/index.d.ts.map +1 -1
- package/core/dist/prompt-builder/index.js +2 -0
- package/core/dist/prompt-builder/index.js.map +1 -1
- package/core/dist/prompt-builder/model-config.d.ts +42 -0
- package/core/dist/prompt-builder/model-config.d.ts.map +1 -0
- package/core/dist/prompt-builder/model-config.js +84 -0
- package/core/dist/prompt-builder/model-config.js.map +1 -0
- package/core/dist/prompt-builder/size-guard.d.ts +1 -0
- package/core/dist/prompt-builder/size-guard.d.ts.map +1 -1
- package/core/dist/prompt-builder/size-guard.js +21 -0
- package/core/dist/prompt-builder/size-guard.js.map +1 -1
- package/core/dist/prompt-builder/types.d.ts +2 -0
- package/core/dist/prompt-builder/types.d.ts.map +1 -1
- package/core/dist/prompt-builder/xml-escape.d.ts +12 -0
- package/core/dist/prompt-builder/xml-escape.d.ts.map +1 -0
- package/core/dist/prompt-builder/xml-escape.js +19 -0
- package/core/dist/prompt-builder/xml-escape.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +205 -48
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evidence-chain-intent-tension.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/evidence-chain-intent-tension.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/evidence-chain-intent-tension.test.js +284 -0
- package/core/dist/runtime-v2/__tests__/evidence-chain-intent-tension.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-result-shaping.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-result-shaping.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-result-shaping.test.js +500 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-bridge-result-shaping.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js +7 -5
- package/core/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.js +11 -0
- package/core/dist/runtime-v2/__tests__/pi-artifact-store.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js +15 -2
- package/core/dist/runtime-v2/__tests__/proven-channel-baseline.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/schema-float-precision.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/schema-float-precision.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/schema-float-precision.test.js +290 -0
- package/core/dist/runtime-v2/__tests__/schema-float-precision.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/schema-orphan-detection.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/schema-orphan-detection.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/schema-orphan-detection.test.js +158 -0
- package/core/dist/runtime-v2/__tests__/schema-orphan-detection.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js +15 -1
- package/core/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store-fk.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store-fk.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store-fk.test.js +62 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store-fk.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js +12 -2
- package/core/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store-fk.test.d.ts +2 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store-fk.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store-fk.test.js +56 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store-fk.test.js.map +1 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js +8 -0
- package/core/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/story-a-acceptance.test.js +20 -0
- package/core/dist/runtime-v2/activation/__tests__/story-a-acceptance.test.js.map +1 -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 +6 -0
- 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.map +1 -1
- package/core/dist/runtime-v2/activation/sqlite-approval-store.js +86 -32
- package/core/dist/runtime-v2/activation/sqlite-approval-store.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +65 -1
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js +33 -11
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -1
- package/core/dist/runtime-v2/bridge-result-shaper.d.ts +53 -0
- package/core/dist/runtime-v2/bridge-result-shaper.d.ts.map +1 -0
- package/core/dist/runtime-v2/bridge-result-shaper.js +117 -0
- package/core/dist/runtime-v2/bridge-result-shaper.js.map +1 -0
- package/core/dist/runtime-v2/detection/__tests__/detection-funnel-policy.test.d.ts +13 -0
- package/core/dist/runtime-v2/detection/__tests__/detection-funnel-policy.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/detection/__tests__/detection-funnel-policy.test.js +111 -0
- package/core/dist/runtime-v2/detection/__tests__/detection-funnel-policy.test.js.map +1 -0
- package/core/dist/runtime-v2/detection/detection-funnel-policy.d.ts +103 -0
- package/core/dist/runtime-v2/detection/detection-funnel-policy.d.ts.map +1 -0
- package/core/dist/runtime-v2/detection/detection-funnel-policy.js +135 -0
- package/core/dist/runtime-v2/detection/detection-funnel-policy.js.map +1 -0
- package/core/dist/runtime-v2/detection/index.d.ts +10 -0
- package/core/dist/runtime-v2/detection/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/detection/index.js +9 -0
- package/core/dist/runtime-v2/detection/index.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-rootcause-output.test.js +134 -15
- package/core/dist/runtime-v2/diagnostician/__tests__/diag-rootcause-output.test.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician/__tests__/intent-tension-schema.test.d.ts +18 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/intent-tension-schema.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/intent-tension-schema.test.js +251 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/intent-tension-schema.test.js.map +1 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js +73 -0
- package/core/dist/runtime-v2/diagnostician/__tests__/rootcause-prompt-builder.test.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.d.ts +98 -0
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.js +131 -0
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts +8 -0
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js +66 -3
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician-output.d.ts +23 -0
- package/core/dist/runtime-v2/diagnostician-output.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician-output.js +16 -0
- package/core/dist/runtime-v2/diagnostician-output.js.map +1 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts +32 -0
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/__tests__/observation-resolver.test.d.ts +12 -0
- package/core/dist/runtime-v2/evidence-triage/__tests__/observation-resolver.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/evidence-triage/__tests__/observation-resolver.test.js +181 -0
- package/core/dist/runtime-v2/evidence-triage/__tests__/observation-resolver.test.js.map +1 -0
- package/core/dist/runtime-v2/evidence-triage/__tests__/triage-policy.test.js +104 -1
- package/core/dist/runtime-v2/evidence-triage/__tests__/triage-policy.test.js.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/index.d.ts +3 -0
- package/core/dist/runtime-v2/evidence-triage/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/index.js +3 -0
- package/core/dist/runtime-v2/evidence-triage/index.js.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.d.ts +128 -0
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.d.ts.map +1 -0
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.js +203 -0
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.js.map +1 -0
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.d.ts +1 -1
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.js +1 -1
- package/core/dist/runtime-v2/evidence-triage/triage-policy.d.ts +4 -0
- package/core/dist/runtime-v2/evidence-triage/triage-policy.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/triage-policy.js +66 -9
- package/core/dist/runtime-v2/evidence-triage/triage-policy.js.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/types.d.ts +14 -0
- package/core/dist/runtime-v2/evidence-triage/types.d.ts.map +1 -1
- package/core/dist/runtime-v2/evidence-triage/types.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +56 -4
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/__tests__/intent-engineering-flag.test.d.ts +2 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/intent-engineering-flag.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/intent-engineering-flag.test.js +30 -0
- package/core/dist/runtime-v2/feature-flags/__tests__/intent-engineering-flag.test.js.map +1 -0
- 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 +11 -2
- 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 +0 -9
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.js.map +1 -1
- package/core/dist/runtime-v2/feedback/__tests__/redact-sensitive.test.d.ts +15 -0
- package/core/dist/runtime-v2/feedback/__tests__/redact-sensitive.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/__tests__/redact-sensitive.test.js +450 -0
- package/core/dist/runtime-v2/feedback/__tests__/redact-sensitive.test.js.map +1 -0
- package/core/dist/runtime-v2/feedback/__tests__/render-github-url.test.d.ts +13 -0
- package/core/dist/runtime-v2/feedback/__tests__/render-github-url.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/__tests__/render-github-url.test.js +243 -0
- package/core/dist/runtime-v2/feedback/__tests__/render-github-url.test.js.map +1 -0
- package/core/dist/runtime-v2/feedback/__tests__/safe-stringify.test.d.ts +12 -0
- package/core/dist/runtime-v2/feedback/__tests__/safe-stringify.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/feedback/__tests__/safe-stringify.test.js +172 -0
- package/core/dist/runtime-v2/feedback/__tests__/safe-stringify.test.js.map +1 -0
- package/core/dist/runtime-v2/index.d.ts +15 -6
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +15 -4
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/intent/__tests__/intent-decision-record.test.d.ts +2 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-decision-record.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-decision-record.test.js +185 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-decision-record.test.js.map +1 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-doc.test.d.ts +2 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-doc.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-doc.test.js +91 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-doc.test.js.map +1 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-friction-block.test.d.ts +2 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-friction-block.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-friction-block.test.js +168 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-friction-block.test.js.map +1 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-patch-proposal.test.d.ts +2 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-patch-proposal.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-patch-proposal.test.js +121 -0
- package/core/dist/runtime-v2/intent/__tests__/intent-patch-proposal.test.js.map +1 -0
- package/core/dist/runtime-v2/intent/index.d.ts +6 -0
- package/core/dist/runtime-v2/intent/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/index.js +6 -0
- package/core/dist/runtime-v2/intent/index.js.map +1 -0
- package/core/dist/runtime-v2/intent/intent-decision-record.d.ts +125 -0
- package/core/dist/runtime-v2/intent/intent-decision-record.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/intent-decision-record.js +21 -0
- package/core/dist/runtime-v2/intent/intent-decision-record.js.map +1 -0
- package/core/dist/runtime-v2/intent/intent-doc-reader-port.d.ts +95 -0
- package/core/dist/runtime-v2/intent/intent-doc-reader-port.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/intent-doc-reader-port.js +43 -0
- package/core/dist/runtime-v2/intent/intent-doc-reader-port.js.map +1 -0
- package/core/dist/runtime-v2/intent/intent-doc.d.ts +19 -0
- package/core/dist/runtime-v2/intent/intent-doc.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/intent-doc.js +70 -0
- package/core/dist/runtime-v2/intent/intent-doc.js.map +1 -0
- package/core/dist/runtime-v2/intent/intent-friction-block.d.ts +63 -0
- package/core/dist/runtime-v2/intent/intent-friction-block.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/intent-friction-block.js +129 -0
- package/core/dist/runtime-v2/intent/intent-friction-block.js.map +1 -0
- package/core/dist/runtime-v2/intent/intent-patch-proposal.d.ts +42 -0
- package/core/dist/runtime-v2/intent/intent-patch-proposal.d.ts.map +1 -0
- package/core/dist/runtime-v2/intent/intent-patch-proposal.js +81 -0
- package/core/dist/runtime-v2/intent/intent-patch-proposal.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/intent-tension-cases.d.ts +54 -0
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/intent-tension-cases.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/intent-tension-cases.js +219 -0
- package/core/dist/runtime-v2/internalization/__tests__/__fixtures__/intent-tension-cases.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js +306 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-intent-tension.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-intent-tension.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-intent-tension.test.js +360 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-rootcause-intent-tension.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-intent-tension.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-intent-tension.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-intent-tension.test.js +333 -0
- package/core/dist/runtime-v2/internalization/__tests__/diag-router-intent-tension.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/intent-tension-cases.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/intent-tension-cases.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/intent-tension-cases.test.js +113 -0
- package/core/dist/runtime-v2/internalization/__tests__/intent-tension-cases.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.d.ts +13 -0
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.js +42 -0
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/diag-router-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/diag-router-runner.js +27 -0
- package/core/dist/runtime-v2/internalization/diag-router-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/index.d.ts +0 -16
- package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/index.js +0 -8
- package/core/dist/runtime-v2/internalization/index.js.map +1 -1
- package/core/dist/runtime-v2/pain-gate/__tests__/pain-diagnostic-gate-policy.test.d.ts +15 -0
- package/core/dist/runtime-v2/pain-gate/__tests__/pain-diagnostic-gate-policy.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-gate/__tests__/pain-diagnostic-gate-policy.test.js +179 -0
- package/core/dist/runtime-v2/pain-gate/__tests__/pain-diagnostic-gate-policy.test.js.map +1 -0
- package/core/dist/runtime-v2/pain-gate/index.d.ts +10 -0
- package/core/dist/runtime-v2/pain-gate/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-gate/index.js +9 -0
- package/core/dist/runtime-v2/pain-gate/index.js.map +1 -0
- package/core/dist/runtime-v2/pain-gate/pain-diagnostic-gate-policy.d.ts +121 -0
- package/core/dist/runtime-v2/pain-gate/pain-diagnostic-gate-policy.d.ts.map +1 -0
- package/core/dist/runtime-v2/pain-gate/pain-diagnostic-gate-policy.js +157 -0
- package/core/dist/runtime-v2/pain-gate/pain-diagnostic-gate-policy.js.map +1 -0
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-bridge.js +14 -88
- package/core/dist/runtime-v2/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.js +272 -61
- package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts +12 -0
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js +1 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -1
- package/core/dist/runtime-v2/pain-to-principle-service.d.ts +6 -0
- package/core/dist/runtime-v2/pain-to-principle-service.d.ts.map +1 -1
- package/core/dist/runtime-v2/pain-to-principle-service.js +2 -0
- package/core/dist/runtime-v2/pain-to-principle-service.js.map +1 -1
- package/core/dist/runtime-v2/principle-tree/ledger-codec.js.map +1 -1
- package/core/dist/runtime-v2/proven-channel-baseline.js +1 -1
- package/core/dist/runtime-v2/proven-channel-baseline.js.map +1 -1
- package/core/dist/runtime-v2/store/artifact/__tests__/sqlite-pi-artifact-store-fk.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/artifact/__tests__/sqlite-pi-artifact-store-fk.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/artifact/__tests__/sqlite-pi-artifact-store-fk.test.js +55 -0
- package/core/dist/runtime-v2/store/artifact/__tests__/sqlite-pi-artifact-store-fk.test.js.map +1 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js +6 -0
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js.map +1 -1
- package/core/dist/runtime-v2/store/intent/__tests__/sqlite-intent-decision-store.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/intent/__tests__/sqlite-intent-decision-store.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/intent/__tests__/sqlite-intent-decision-store.test.js +272 -0
- package/core/dist/runtime-v2/store/intent/__tests__/sqlite-intent-decision-store.test.js.map +1 -0
- package/core/dist/runtime-v2/store/intent/index.d.ts +6 -0
- package/core/dist/runtime-v2/store/intent/index.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/intent/index.js +5 -0
- package/core/dist/runtime-v2/store/intent/index.js.map +1 -0
- package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.d.ts +51 -0
- package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.js +306 -0
- package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js +14 -3
- package/core/dist/runtime-v2/store/sqlite-connection-pragma.test.js.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.d.ts +2 -0
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.js +72 -0
- package/core/dist/runtime-v2/store/sqlite-connection-schema-version.test.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts +27 -0
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +124 -12
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/core/dist/runtime-v2/types/event-payload.d.ts +1 -20
- package/core/dist/runtime-v2/types/event-payload.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-payload.js +0 -12
- package/core/dist/runtime-v2/types/event-payload.js.map +1 -1
- package/core/dist/runtime-v2/types/event-types.d.ts +5 -61
- package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-types.js +2 -36
- package/core/dist/runtime-v2/types/event-types.js.map +1 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts +63 -0
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.js +234 -9
- package/core/dist/runtime-v2/types/evidence-chain-contract.js.map +1 -1
- package/core/dist/runtime-v2/types/index.d.ts +5 -5
- package/core/dist/runtime-v2/types/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/index.js +7 -3
- package/core/dist/runtime-v2/types/index.js.map +1 -1
- package/core/dist/runtime-v2/types/ledger-store.d.ts +30 -30
- package/core/dist/runtime-v2/types/ledger-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/ledger-store.js +10 -5
- package/core/dist/runtime-v2/types/ledger-store.js.map +1 -1
- package/core/dist/runtime-v2/types/pain-signal.d.ts +2 -2
- package/core/dist/runtime-v2/types/pain-signal.js +2 -2
- package/core/dist/workflow-funnel-loader.d.ts +2 -2
- package/core/dist/workflow-funnel-loader.d.ts.map +1 -1
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +16 -0
- package/dist/installer.js.map +1 -1
- package/dist/mvp-config.d.ts +0 -10
- package/dist/mvp-config.d.ts.map +1 -1
- package/dist/mvp-config.js +0 -65
- package/dist/mvp-config.js.map +1 -1
- package/package.json +1 -1
- package/pd-cli/dist/commands/__tests__/intent-flag-wiring.test.d.ts +9 -0
- package/pd-cli/dist/commands/__tests__/intent-flag-wiring.test.d.ts.map +1 -0
- package/pd-cli/dist/commands/__tests__/intent-flag-wiring.test.js +166 -0
- package/pd-cli/dist/commands/__tests__/intent-flag-wiring.test.js.map +1 -0
- package/pd-cli/dist/commands/intent.d.ts +59 -0
- package/pd-cli/dist/commands/intent.d.ts.map +1 -0
- package/pd-cli/dist/commands/intent.js +350 -0
- package/pd-cli/dist/commands/intent.js.map +1 -0
- package/pd-cli/dist/commands/mvp-smoke.js +1 -1
- package/pd-cli/dist/commands/mvp-smoke.js.map +1 -1
- package/pd-cli/dist/commands/rulecode.js +1 -1
- package/pd-cli/dist/commands/rulecode.js.map +1 -1
- package/pd-cli/dist/commands/runtime-canary.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-canary.js +10 -11
- package/pd-cli/dist/commands/runtime-canary.js.map +1 -1
- package/pd-cli/dist/commands/runtime-init.d.ts +43 -0
- package/pd-cli/dist/commands/runtime-init.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-init.js +264 -0
- package/pd-cli/dist/commands/runtime-init.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-queue.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-queue.js +13 -16
- 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 +3 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js +61 -7
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js.map +1 -1
- package/pd-cli/dist/commands/runtime.js +1 -1
- package/pd-cli/dist/commands/runtime.js.map +1 -1
- package/pd-cli/dist/index.js +92 -34
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/services/__tests__/rulehost-readiness.test.d.ts +2 -0
- package/pd-cli/dist/services/__tests__/rulehost-readiness.test.d.ts.map +1 -0
- package/pd-cli/dist/services/__tests__/rulehost-readiness.test.js +314 -0
- package/pd-cli/dist/services/__tests__/rulehost-readiness.test.js.map +1 -0
- package/pd-cli/dist/services/__tests__/runtime-adapter-resolver.test.js +20 -12
- package/pd-cli/dist/services/__tests__/runtime-adapter-resolver.test.js.map +1 -1
- package/pd-cli/dist/services/demo-story-a-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/demo-story-a-runner.js +6 -0
- package/pd-cli/dist/services/demo-story-a-runner.js.map +1 -1
- package/pd-cli/dist/services/rulehost-readiness.d.ts +62 -0
- package/pd-cli/dist/services/rulehost-readiness.d.ts.map +1 -0
- package/pd-cli/dist/services/rulehost-readiness.js +214 -0
- package/pd-cli/dist/services/rulehost-readiness.js.map +1 -0
- package/pd-cli/dist/services/runtime-adapter-resolver.d.ts +1 -1
- package/pd-cli/dist/services/runtime-adapter-resolver.js +3 -3
- package/pd-cli/dist/services/runtime-adapter-resolver.js.map +1 -1
- package/pd-cli/package.json +1 -0
- package/plugin/dist/commands/evolution-status.js +0 -2
- package/plugin/dist/commands/pain.js +2 -0
- package/plugin/dist/core/control-ui-db.d.ts +11 -0
- package/plugin/dist/core/control-ui-db.js +40 -16
- package/plugin/dist/core/detection-funnel.d.ts +25 -11
- package/plugin/dist/core/detection-funnel.js +32 -80
- package/plugin/dist/core/event-log.d.ts +1 -3
- package/plugin/dist/core/event-log.js +5 -21
- package/plugin/dist/core/evolution-reducer.d.ts +0 -8
- package/plugin/dist/core/evolution-reducer.js +9 -19
- package/plugin/dist/core/intent-doc-reader-adapter.d.ts +28 -0
- package/plugin/dist/core/intent-doc-reader-adapter.js +56 -0
- package/plugin/dist/core/intent-doc-reader.d.ts +80 -0
- package/plugin/dist/core/intent-doc-reader.js +189 -0
- package/plugin/dist/core/pain-diagnostic-gate.d.ts +37 -28
- package/plugin/dist/core/pain-diagnostic-gate.js +53 -89
- package/plugin/dist/core/pain.d.ts +0 -63
- package/plugin/dist/core/pain.js +0 -167
- package/plugin/dist/core/paths.d.ts +0 -1
- package/plugin/dist/core/paths.js +2 -1
- package/plugin/dist/core/principle-tree-ledger.d.ts +27 -79
- package/plugin/dist/core/principle-tree-ledger.js +39 -524
- package/plugin/dist/core/reflection/reflection-context.d.ts +2 -2
- package/plugin/dist/core/schema/migrations/001-init-trajectory.js +3 -6
- package/plugin/dist/core/schema/schema-definitions.js +4 -9
- package/plugin/dist/core/trajectory.d.ts +16 -16
- package/plugin/dist/core/trajectory.js +338 -311
- package/plugin/dist/core/workspace-context.d.ts +2 -3
- package/plugin/dist/hooks/after-tool-call-helpers.d.ts +4 -1
- package/plugin/dist/hooks/after-tool-call-helpers.js +13 -17
- package/plugin/dist/hooks/gate-block-helper.js +57 -17
- package/plugin/dist/hooks/lifecycle.js +3 -6
- package/plugin/dist/hooks/llm.js +66 -26
- package/plugin/dist/hooks/pain.d.ts +3 -1
- package/plugin/dist/hooks/pain.js +124 -49
- package/plugin/dist/hooks/prompt-helpers.d.ts +105 -0
- package/plugin/dist/hooks/prompt-helpers.js +288 -0
- package/plugin/dist/hooks/prompt-types.d.ts +74 -0
- package/plugin/dist/hooks/prompt-types.js +12 -0
- package/plugin/dist/hooks/prompt.d.ts +7 -38
- package/plugin/dist/hooks/prompt.js +433 -338
- package/plugin/dist/hooks/raw-observation-adapter.d.ts +9 -50
- package/plugin/dist/hooks/raw-observation-adapter.js +9 -164
- package/plugin/dist/hooks/raw-observation-types.d.ts +6 -57
- package/plugin/dist/hooks/raw-observation-types.js +5 -9
- package/plugin/dist/hooks/triage-adapter.js +6 -26
- package/plugin/dist/hooks/trigger-cooldown-tracker.d.ts +12 -0
- package/plugin/dist/hooks/trigger-cooldown-tracker.js +25 -0
- package/plugin/dist/index.d.ts +3 -1
- package/plugin/dist/index.js +9 -5
- package/plugin/dist/service/evolution-worker.js +6 -64
- package/plugin/dist/service/runtime-summary-service.d.ts +0 -2
- package/plugin/dist/service/runtime-summary-service.js +1 -5
- package/plugin/dist/service/subagent-workflow/workflow-store.d.ts +14 -0
- package/plugin/dist/service/subagent-workflow/workflow-store.js +91 -2
- package/plugin/dist/types/event-types.d.ts +1 -1
- package/plugin/package.json +6 -3
- package/plugin/scripts/acceptance-test.mjs +3 -3
- package/plugin/scripts/sync-plugin.mjs +33 -22
- package/plugin/templates/langs/en/skills/pd-cli-operator/SKILL.md +20 -11
- package/plugin/templates/langs/en/skills/pd-runtime-v2/SKILL.md +10 -0
- package/plugin/templates/langs/zh/skills/pd-cli-operator/SKILL.md +20 -11
- package/plugin/templates/langs/zh/skills/pd-runtime-v2/SKILL.md +10 -0
- package/console/dist/server/config/feature-flags.d.ts +0 -25
- package/console/dist/server/config/feature-flags.js +0 -101
- package/pd-cli/dist/commands/central-sync.d.ts +0 -10
- package/pd-cli/dist/commands/central-sync.d.ts.map +0 -1
- package/pd-cli/dist/commands/central-sync.js +0 -32
- package/pd-cli/dist/commands/central-sync.js.map +0 -1
- package/pd-cli/dist/services/feature-flag-loader.d.ts +0 -6
- package/pd-cli/dist/services/feature-flag-loader.d.ts.map +0 -1
- package/pd-cli/dist/services/feature-flag-loader.js +0 -53
- package/pd-cli/dist/services/feature-flag-loader.js.map +0 -1
- package/plugin/dist/core/observability.d.ts +0 -40
- package/plugin/dist/core/observability.js +0 -164
- package/plugin/dist/core/principle-tree-ledger-adapter.d.ts +0 -32
- package/plugin/dist/core/principle-tree-ledger-adapter.js +0 -125
- package/plugin/dist/hooks/subagent.d.ts +0 -9
- package/plugin/dist/hooks/subagent.js +0 -122
- package/plugin/dist/service/central-database.d.ts +0 -138
- package/plugin/dist/service/central-database.js +0 -731
- package/plugin/dist/service/central-sync-service.d.ts +0 -8
- package/plugin/dist/service/central-sync-service.js +0 -71
- package/plugin/scripts/validate-live-path.ts +0 -480
|
@@ -5,7 +5,6 @@ import { Type } from '@sinclair/typebox';
|
|
|
5
5
|
export const EventTypeSchema = Type.Union([
|
|
6
6
|
Type.Literal('tool_call'),
|
|
7
7
|
Type.Literal('pain_signal'),
|
|
8
|
-
Type.Literal('rule_match'),
|
|
9
8
|
Type.Literal('rule_promotion'),
|
|
10
9
|
Type.Literal('hook_execution'),
|
|
11
10
|
Type.Literal('gate_block'),
|
|
@@ -20,9 +19,6 @@ export const EventTypeSchema = Type.Union([
|
|
|
20
19
|
Type.Literal('diagnostician_report'),
|
|
21
20
|
Type.Literal('principle_candidate'),
|
|
22
21
|
Type.Literal('rule_enforced'),
|
|
23
|
-
Type.Literal('nocturnal_dreamer_completed'),
|
|
24
|
-
Type.Literal('nocturnal_artifact_persisted'),
|
|
25
|
-
Type.Literal('nocturnal_code_candidate_created'),
|
|
26
22
|
Type.Literal('rulehost_evaluated'),
|
|
27
23
|
Type.Literal('rulehost_blocked'),
|
|
28
24
|
Type.Literal('rulehost_requireApproval'),
|
|
@@ -98,12 +94,6 @@ export const PainSignalEventDataSchema = Type.Object({
|
|
|
98
94
|
raw_score: Type.Optional(Type.Number()),
|
|
99
95
|
calibrated_score: Type.Optional(Type.Number()),
|
|
100
96
|
});
|
|
101
|
-
export const RuleMatchEventDataSchema = Type.Object({
|
|
102
|
-
ruleId: Type.String(),
|
|
103
|
-
layer: Type.Union([Type.Literal('L1'), Type.Literal('L2'), Type.Literal('L3')]),
|
|
104
|
-
severity: Type.Number(),
|
|
105
|
-
textPreview: Type.String(),
|
|
106
|
-
});
|
|
107
97
|
export const RulePromotionEventDataSchema = Type.Object({
|
|
108
98
|
fingerprint: Type.String(),
|
|
109
99
|
ruleId: Type.String(),
|
|
@@ -175,7 +165,6 @@ export const PrincipleCandidateEventDataSchema = Type.Object({
|
|
|
175
165
|
taskId: Type.String(),
|
|
176
166
|
source: Type.Union([
|
|
177
167
|
Type.Literal('diagnostician'),
|
|
178
|
-
Type.Literal('nocturnal'),
|
|
179
168
|
Type.Literal('manual'),
|
|
180
169
|
]),
|
|
181
170
|
});
|
|
@@ -272,14 +261,6 @@ export const ErrorStatsSchema = Type.Object({
|
|
|
272
261
|
byType: Type.Record(Type.String(), Type.Number()),
|
|
273
262
|
byTool: Type.Record(Type.String(), Type.Number()),
|
|
274
263
|
});
|
|
275
|
-
export const PainStatsSchema = Type.Object({
|
|
276
|
-
signalsDetected: Type.Number(),
|
|
277
|
-
signalsBySource: Type.Record(Type.String(), Type.Number()),
|
|
278
|
-
rulesMatched: Type.Record(Type.String(), Type.Number()),
|
|
279
|
-
candidatesPromoted: Type.Number(),
|
|
280
|
-
avgScore: Type.Number(),
|
|
281
|
-
maxScore: Type.Number(),
|
|
282
|
-
});
|
|
283
264
|
export const EmpathyEventStatsSchema = Type.Object({
|
|
284
265
|
totalEvents: Type.Number(),
|
|
285
266
|
dedupedCount: Type.Number(),
|
|
@@ -335,10 +316,6 @@ export const EventEvolutionStatsSchema = Type.Object({
|
|
|
335
316
|
reportsIncompleteFields: Type.Number(),
|
|
336
317
|
principleCandidatesCreated: Type.Number(),
|
|
337
318
|
rulesEnforced: Type.Number(),
|
|
338
|
-
nocturnalDreamerCompleted: Type.Number(),
|
|
339
|
-
nocturnalTrinityCompleted: Type.Number(),
|
|
340
|
-
nocturnalArtifactPersisted: Type.Number(),
|
|
341
|
-
nocturnalCodeCandidateCreated: Type.Number(),
|
|
342
319
|
rulehostEvaluated: Type.Number(),
|
|
343
320
|
rulehostBlocked: Type.Number(),
|
|
344
321
|
rulehostRequireApproval: Type.Number(),
|
|
@@ -371,7 +348,7 @@ export const DailyStatsSchema = Type.Object({
|
|
|
371
348
|
}),
|
|
372
349
|
toolCalls: ToolCallStatsSchema,
|
|
373
350
|
errors: ErrorStatsSchema,
|
|
374
|
-
pain: PainStatsSchema
|
|
351
|
+
// pain: PainStatsSchema removed (PRI-451 Wave 1.5): no live reader.
|
|
375
352
|
empathy: EmpathyEventStatsSchema,
|
|
376
353
|
gfi: GfiStatsSchema,
|
|
377
354
|
evolution: EventEvolutionStatsSchema,
|
|
@@ -402,14 +379,7 @@ export function createEmptyDailyStats(date) {
|
|
|
402
379
|
byType: {},
|
|
403
380
|
byTool: {},
|
|
404
381
|
},
|
|
405
|
-
pain: {
|
|
406
|
-
signalsDetected: 0,
|
|
407
|
-
signalsBySource: {},
|
|
408
|
-
rulesMatched: {},
|
|
409
|
-
candidatesPromoted: 0,
|
|
410
|
-
avgScore: 0,
|
|
411
|
-
maxScore: 0,
|
|
412
|
-
},
|
|
382
|
+
// pain: { ... } zero-defaults removed (PRI-451 Wave 1.5): no live reader.
|
|
413
383
|
empathy: {
|
|
414
384
|
totalEvents: 0,
|
|
415
385
|
dedupedCount: 0,
|
|
@@ -461,10 +431,6 @@ export function createEmptyDailyStats(date) {
|
|
|
461
431
|
reportsIncompleteFields: 0,
|
|
462
432
|
principleCandidatesCreated: 0,
|
|
463
433
|
rulesEnforced: 0,
|
|
464
|
-
nocturnalDreamerCompleted: 0,
|
|
465
|
-
nocturnalTrinityCompleted: 0,
|
|
466
|
-
nocturnalArtifactPersisted: 0,
|
|
467
|
-
nocturnalCodeCandidateCreated: 0,
|
|
468
434
|
rulehostEvaluated: 0,
|
|
469
435
|
rulehostBlocked: 0,
|
|
470
436
|
rulehostRequireApproval: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-types.js","sourceRoot":"","sources":["../../../src/runtime-v2/types/event-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,IAAI,EAAe,MAAM,mBAAmB,CAAC;AAqCtD,M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b,UAAU,EAAE,CAAC;aACd;YACD,QAAQ,EAAE;gBACR,qBAAqB,EAAE,CAAC;gBACxB,WAAW,EAAE,CAAC;gBACd,YAAY,EAAE,CAAC;aAChB;YACD,sBAAsB,EAAE;gBACtB,IAAI,EAAE,CAAC;gBACP,MAAM,EAAE,CAAC;gBACT,GAAG,EAAE,CAAC;aACP;YACD,UAAU,EAAE,EAAE;SACf;QACD,GAAG,EAAE;YACH,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,CAAC;YACV,KAAK,EAAE,CAAC;YACR,UAAU,EAAE,CAAC;YACb,kBAAkB,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;SAC1C;QACD,SAAS,EAAE;YACT,aAAa,EAAE,CAAC;YAChB,cAAc,EAAE,CAAC;YACjB,aAAa,EAAE,CAAC;YAChB,qBAAqB,EAAE,CAAC;YACxB,kBAAkB,EAAE,CAAC;YACrB,2BAA2B,EAAE,CAAC;YAC9B,kBAAkB,EAAE,CAAC;YACrB,uBAAuB,EAAE,CAAC;YAC1B,0BAA0B,EAAE,CAAC;YAC7B,aAAa,EAAE,CAAC;YAChB,yBAAyB,EAAE,CAAC;YAC5B,yBAAyB,EAAE,CAAC;YAC5B,0BAA0B,EAAE,CAAC;YAC7B,6BAA6B,EAAE,CAAC;YAChC,iBAAiB,EAAE,CAAC;YACpB,eAAe,EAAE,CAAC;YAClB,uBAAuB,EAAE,CAAC;YAC1B,2BAA2B,EAAE,CAAC;YAC9B,0BAA0B,EAAE,CAAC;SAC9B;QACD,KAAK,EAAE;YACL,KAAK,EAAE,CAAC;YACR,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,CAAC;YACT,eAAe,EAAE,CAAC;SACnB;KACF,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"event-types.js","sourceRoot":"","sources":["../../../src/runtime-v2/types/event-types.ts"],"names":[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AAY,EAAE,CAAC;aAChB;YACD,sBAAsB,EAAE;gBACtB,IAAI,EAAE,CAAC;gBACP,MAAM,EAAE,CAAC;gBACT,GAAG,EAAE,CAAC;aACP;YACD,UAAU,EAAE,EAAE;SACf;QACD,GAAG,EAAE;YACH,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,CAAC;YACV,KAAK,EAAE,CAAC;YACR,UAAU,EAAE,CAAC;YACb,kBAAkB,EAAE,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;SAC1C;QACD,SAAS,EAAE;YACT,aAAa,EAAE,CAAC;YAChB,cAAc,EAAE,CAAC;YACjB,aAAa,EAAE,CAAC;YAChB,qBAAqB,EAAE,CAAC;YACxB,kBAAkB,EAAE,CAAC;YACrB,2BAA2B,EAAE,CAAC;YAC9B,kBAAkB,EAAE,CAAC;YACrB,uBAAuB,EAAE,CAAC;YAC1B,0BAA0B,EAAE,CAAC;YAC7B,aAAa,EAAE,CAAC;YAChB,iBAAiB,EAAE,CAAC;YACpB,eAAe,EAAE,CAAC;YAClB,uBAAuB,EAAE,CAAC;YAC1B,2BAA2B,EAAE,CAAC;YAC9B,0BAA0B,EAAE,CAAC;SAC9B;QACD,KAAK,EAAE;YACL,KAAK,EAAE,CAAC;YACR,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,MAAM,EAAE,EAAE;YACV,MAAM,EAAE,CAAC;YACT,eAAe,EAAE,CAAC;SACnB;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* lives inside principles-core to be shared by Console read models,
|
|
7
7
|
* CLI commands, and test fixtures.
|
|
8
8
|
*/
|
|
9
|
+
import { type IntentTension } from '../diagnostician/diag-rootcause-output.js';
|
|
10
|
+
export type { IntentTension };
|
|
9
11
|
export type EvidenceChainState = 'recorded-only' | 'evidence-only' | 'diagnosis-queued' | 'diagnosis-running' | 'diagnosis-succeeded' | 'diagnosis-failed' | 'diagnosis-retry-wait' | 'candidate-generated' | 'internalization-missing' | 'internalization-pending' | 'internalization-running' | 'internalization-failed' | 'internalization-succeeded' | 'owner-reviewable' | 'malformed' | 'degraded';
|
|
10
12
|
export declare const EvidenceChainStateSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"recorded-only">, import("@sinclair/typebox").TLiteral<"evidence-only">, import("@sinclair/typebox").TLiteral<"diagnosis-queued">, import("@sinclair/typebox").TLiteral<"diagnosis-running">, import("@sinclair/typebox").TLiteral<"diagnosis-succeeded">, import("@sinclair/typebox").TLiteral<"diagnosis-failed">, import("@sinclair/typebox").TLiteral<"diagnosis-retry-wait">, import("@sinclair/typebox").TLiteral<"candidate-generated">, import("@sinclair/typebox").TLiteral<"internalization-missing">, import("@sinclair/typebox").TLiteral<"internalization-pending">, import("@sinclair/typebox").TLiteral<"internalization-running">, import("@sinclair/typebox").TLiteral<"internalization-failed">, import("@sinclair/typebox").TLiteral<"internalization-succeeded">, import("@sinclair/typebox").TLiteral<"owner-reviewable">, import("@sinclair/typebox").TLiteral<"malformed">, import("@sinclair/typebox").TLiteral<"degraded">]>;
|
|
11
13
|
export interface EvidenceChainRecord {
|
|
@@ -36,6 +38,18 @@ export interface EvidenceChainRecord {
|
|
|
36
38
|
runtimeTaskId?: string;
|
|
37
39
|
/** PRI-406: How this record was linked — 'canonical' (precise via canonical_pain_id) or 'legacy' (timestamp/content heuristic). */
|
|
38
40
|
linkMode?: 'canonical' | 'legacy';
|
|
41
|
+
/**
|
|
42
|
+
* PRI-469: Optional intent tension surfaced from the diagnostician artifact
|
|
43
|
+
* (Stage A output, SPEC §16). Present only when:
|
|
44
|
+
* 1. The `intent_engineering` flag was on at diagnosis time, AND
|
|
45
|
+
* 2. The Stage A LLM chose to emit an intentTension, AND
|
|
46
|
+
* 3. The artifact content_json validated successfully.
|
|
47
|
+
*
|
|
48
|
+
* This field is for Owner-facing display only (SPEC §22.1.2). It MUST NOT
|
|
49
|
+
* directly create rules or modify ledger principle status (SPEC §22).
|
|
50
|
+
* `confidence` is forbidden on this object (SPEC §16.3).
|
|
51
|
+
*/
|
|
52
|
+
intentTension?: IntentTension;
|
|
39
53
|
}
|
|
40
54
|
export declare const EvidenceChainRecordSchema: import("@sinclair/typebox").TObject<{
|
|
41
55
|
id: import("@sinclair/typebox").TString;
|
|
@@ -62,6 +76,15 @@ export declare const EvidenceChainRecordSchema: import("@sinclair/typebox").TObj
|
|
|
62
76
|
canonicalPainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
63
77
|
runtimeTaskId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
64
78
|
linkMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"canonical">, import("@sinclair/typebox").TLiteral<"legacy">]>>;
|
|
79
|
+
intentTension: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
80
|
+
source: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"none">, import("@sinclair/typebox").TLiteral<"action_drift">, import("@sinclair/typebox").TLiteral<"intent_suspect">, import("@sinclair/typebox").TLiteral<"healthy_tension">]>;
|
|
81
|
+
evidenceStrength: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"weak">, import("@sinclair/typebox").TLiteral<"moderate">, import("@sinclair/typebox").TLiteral<"strong">]>;
|
|
82
|
+
relatedIntentFields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"why">, import("@sinclair/typebox").TLiteral<"desired_outcome">, import("@sinclair/typebox").TLiteral<"non_negotiables">, import("@sinclair/typebox").TLiteral<"stop_escalation">, import("@sinclair/typebox").TLiteral<"current_strategic_focus">]>>;
|
|
83
|
+
evidence: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
84
|
+
explanation: import("@sinclair/typebox").TString;
|
|
85
|
+
suggestedOwnerAction: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"confirm_drift">, import("@sinclair/typebox").TLiteral<"revise_intent">, import("@sinclair/typebox").TLiteral<"observe">, import("@sinclair/typebox").TLiteral<"dismiss">, import("@sinclair/typebox").TLiteral<"promote_to_principle">, import("@sinclair/typebox").TLiteral<"promote_to_rulehost">]>;
|
|
86
|
+
intentDocHash: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
87
|
+
}>>;
|
|
65
88
|
}>;
|
|
66
89
|
export interface EvidenceChainResponse {
|
|
67
90
|
records: EvidenceChainRecord[];
|
|
@@ -96,12 +119,35 @@ export declare const EvidenceChainResponseSchema: import("@sinclair/typebox").TO
|
|
|
96
119
|
canonicalPainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
97
120
|
runtimeTaskId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
98
121
|
linkMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"canonical">, import("@sinclair/typebox").TLiteral<"legacy">]>>;
|
|
122
|
+
intentTension: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
123
|
+
source: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"none">, import("@sinclair/typebox").TLiteral<"action_drift">, import("@sinclair/typebox").TLiteral<"intent_suspect">, import("@sinclair/typebox").TLiteral<"healthy_tension">]>;
|
|
124
|
+
evidenceStrength: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"weak">, import("@sinclair/typebox").TLiteral<"moderate">, import("@sinclair/typebox").TLiteral<"strong">]>;
|
|
125
|
+
relatedIntentFields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"why">, import("@sinclair/typebox").TLiteral<"desired_outcome">, import("@sinclair/typebox").TLiteral<"non_negotiables">, import("@sinclair/typebox").TLiteral<"stop_escalation">, import("@sinclair/typebox").TLiteral<"current_strategic_focus">]>>;
|
|
126
|
+
evidence: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
127
|
+
explanation: import("@sinclair/typebox").TString;
|
|
128
|
+
suggestedOwnerAction: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"confirm_drift">, import("@sinclair/typebox").TLiteral<"revise_intent">, import("@sinclair/typebox").TLiteral<"observe">, import("@sinclair/typebox").TLiteral<"dismiss">, import("@sinclair/typebox").TLiteral<"promote_to_principle">, import("@sinclair/typebox").TLiteral<"promote_to_rulehost">]>;
|
|
129
|
+
intentDocHash: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
130
|
+
}>>;
|
|
99
131
|
}>>;
|
|
100
132
|
generatedAt: import("@sinclair/typebox").TString;
|
|
101
133
|
degradedReason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
102
134
|
nextAction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
103
135
|
note: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
104
136
|
}>;
|
|
137
|
+
/**
|
|
138
|
+
* Validate an untrusted `intentTension` value from a diagnostician artifact.
|
|
139
|
+
*
|
|
140
|
+
* @returns The validated IntentTension (evidence truncated to max 3), or
|
|
141
|
+
* `undefined` when the value is malformed. Never throws.
|
|
142
|
+
*
|
|
143
|
+
* Runtime Contract rules applied:
|
|
144
|
+
* - Rule 1: input is `unknown`, validated before use (ERR-001)
|
|
145
|
+
* - Rule 2: no `as` bypass — all fields checked with typeof / Set.has (ERR-001/005)
|
|
146
|
+
* - Rule 4: array element types validated element-wise (ERR-005/007)
|
|
147
|
+
* - Rule 5: Object.hasOwn used for key checks (ERR-013)
|
|
148
|
+
* - Rule 9: callers must set a degradedReason when this returns undefined (ERR-002)
|
|
149
|
+
*/
|
|
150
|
+
export declare function validateIntentTension(value: unknown): IntentTension | undefined;
|
|
105
151
|
export declare function mapSourceKind(source: string): string;
|
|
106
152
|
export declare function inferAdmissionDecision(sourceKind: string): string;
|
|
107
153
|
export interface ChainStateParams {
|
|
@@ -146,6 +192,10 @@ export interface TaskMapEntry {
|
|
|
146
192
|
rootCauseSummary?: string;
|
|
147
193
|
diagnosticJsonDegraded?: boolean;
|
|
148
194
|
inputRef?: string;
|
|
195
|
+
/** PRI-469: intent tension extracted from the diagnostician artifact (Stage A output). */
|
|
196
|
+
intentTension?: IntentTension;
|
|
197
|
+
/** PRI-469: set when the artifact content_json could not be parsed or intentTension was malformed. */
|
|
198
|
+
artifactDegraded?: boolean;
|
|
149
199
|
}
|
|
150
200
|
export declare function crossReferenceByTimestamp(painEvents: {
|
|
151
201
|
painId: string;
|
|
@@ -209,5 +259,18 @@ export declare function assembleEvidenceChain(params: {
|
|
|
209
259
|
stateDbAvailable: boolean;
|
|
210
260
|
degradedReasons?: string[];
|
|
211
261
|
degradedNextActions?: string[];
|
|
262
|
+
/**
|
|
263
|
+
* PRI-469: Diagnostician artifacts (rows from the `artifacts` table where
|
|
264
|
+
* artifact_kind = 'diagnostician_output'). Each row is treated as untrusted
|
|
265
|
+
* `unknown` and must have `task_id` (string) and `content_json` (string of
|
|
266
|
+
* JSON containing the DiagnosticianOutputV1 with optional `rootCause` and
|
|
267
|
+
* `intentTension`).
|
|
268
|
+
*
|
|
269
|
+
* Production architecture: DiagnosticianCommitter writes the full Stage C
|
|
270
|
+
* output to the artifacts table, NOT to tasks.diagnostic_json. The artifact
|
|
271
|
+
* is the canonical source for both rootCause and intentTension.
|
|
272
|
+
* tasks.diagnostic_json remains as a test-fixture fallback only.
|
|
273
|
+
*/
|
|
274
|
+
diagnosticArtifacts?: unknown[];
|
|
212
275
|
}): EvidenceChainResponse;
|
|
213
276
|
//# sourceMappingURL=evidence-chain-contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence-chain-contract.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/types/evidence-chain-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"evidence-chain-contract.d.ts","sourceRoot":"","sources":["../../../src/runtime-v2/types/evidence-chain-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAEL,KAAK,aAAa,EAKnB,MAAM,2CAA2C,CAAC;AAKnD,YAAY,EAAE,aAAa,EAAE,CAAC;AAI9B,MAAM,MAAM,kBAAkB,GAC1B,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,GAClB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,GACzB,yBAAyB,GACzB,yBAAyB,GACzB,wBAAwB,GACxB,2BAA2B,GAC3B,kBAAkB,GAClB,WAAW,GACX,UAAU,CAAC;AAEf,eAAO,MAAM,wBAAwB,g+BAiBnC,CAAC;AAEH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CA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IACH,mBAAmB,CAAC,EAAE,OAAO,EAAE,CAAC;CACjC,GAAG,qBAAqB,CAmsBxB"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* CLI commands, and test fixtures.
|
|
8
8
|
*/
|
|
9
9
|
import { Type } from '@sinclair/typebox';
|
|
10
|
+
import { IntentTensionSchema, } from '../diagnostician/diag-rootcause-output.js';
|
|
10
11
|
export const EvidenceChainStateSchema = Type.Union([
|
|
11
12
|
Type.Literal('recorded-only'),
|
|
12
13
|
Type.Literal('evidence-only'),
|
|
@@ -50,6 +51,10 @@ export const EvidenceChainRecordSchema = Type.Object({
|
|
|
50
51
|
canonicalPainId: Type.Optional(Type.String()),
|
|
51
52
|
runtimeTaskId: Type.Optional(Type.String()),
|
|
52
53
|
linkMode: Type.Optional(Type.Union([Type.Literal('canonical'), Type.Literal('legacy')])),
|
|
54
|
+
// PRI-469: optional intent tension from diagnostician artifact (SPEC §16).
|
|
55
|
+
// `confidence` is forbidden on this object (SPEC §16.3); enforced by
|
|
56
|
+
// IntentTensionSchema's additionalProperties:false and by validateIntentTension.
|
|
57
|
+
intentTension: Type.Optional(IntentTensionSchema),
|
|
53
58
|
});
|
|
54
59
|
export const EvidenceChainResponseSchema = Type.Object({
|
|
55
60
|
records: Type.Array(EvidenceChainRecordSchema),
|
|
@@ -85,6 +90,121 @@ function coerceToString(value) {
|
|
|
85
90
|
return String(value);
|
|
86
91
|
return '';
|
|
87
92
|
}
|
|
93
|
+
// ── PRI-469: Intent Tension validation (SPEC §16) ────────────────────────────
|
|
94
|
+
//
|
|
95
|
+
// Pure helper that validates an untrusted `intentTension` object read from the
|
|
96
|
+
// diagnostician artifact's content_json. Returns the validated IntentTension
|
|
97
|
+
// (with evidence truncated to max 3 per SPEC §16.4) or `undefined` when the
|
|
98
|
+
// data is malformed. The caller is responsible for setting a degradedReason
|
|
99
|
+
// when validation fails (ERR-002: graceful degradation must include a reason).
|
|
100
|
+
//
|
|
101
|
+
// SPEC §16.3: `confidence` is FORBIDDEN on intentTension. The Stage A
|
|
102
|
+
// rootCause-level confidence is the only diagnostician confidence. This helper
|
|
103
|
+
// explicitly rejects any object carrying a `confidence` field, in addition to
|
|
104
|
+
// the TypeBox schema's additionalProperties:false guard — defense in depth
|
|
105
|
+
// (ERR-001: untrusted data from DB artifacts).
|
|
106
|
+
const VALID_INTENT_TENSION_SOURCES = new Set([
|
|
107
|
+
'none',
|
|
108
|
+
'action_drift',
|
|
109
|
+
'intent_suspect',
|
|
110
|
+
'healthy_tension',
|
|
111
|
+
]);
|
|
112
|
+
const VALID_EVIDENCE_STRENGTHS = new Set(['weak', 'moderate', 'strong']);
|
|
113
|
+
const VALID_INTENT_RELATED_FIELDS = new Set([
|
|
114
|
+
'why',
|
|
115
|
+
'desired_outcome',
|
|
116
|
+
'non_negotiables',
|
|
117
|
+
'stop_escalation',
|
|
118
|
+
'current_strategic_focus',
|
|
119
|
+
]);
|
|
120
|
+
const VALID_SUGGESTED_OWNER_ACTIONS = new Set([
|
|
121
|
+
'confirm_drift',
|
|
122
|
+
'revise_intent',
|
|
123
|
+
'observe',
|
|
124
|
+
'dismiss',
|
|
125
|
+
'promote_to_principle',
|
|
126
|
+
'promote_to_rulehost',
|
|
127
|
+
]);
|
|
128
|
+
/** SPEC §16.4: evidence array is capped at 3 items to limit Owner review burden. */
|
|
129
|
+
const INTENT_TENSION_EVIDENCE_MAX = 3;
|
|
130
|
+
/**
|
|
131
|
+
* Validate an untrusted `intentTension` value from a diagnostician artifact.
|
|
132
|
+
*
|
|
133
|
+
* @returns The validated IntentTension (evidence truncated to max 3), or
|
|
134
|
+
* `undefined` when the value is malformed. Never throws.
|
|
135
|
+
*
|
|
136
|
+
* Runtime Contract rules applied:
|
|
137
|
+
* - Rule 1: input is `unknown`, validated before use (ERR-001)
|
|
138
|
+
* - Rule 2: no `as` bypass — all fields checked with typeof / Set.has (ERR-001/005)
|
|
139
|
+
* - Rule 4: array element types validated element-wise (ERR-005/007)
|
|
140
|
+
* - Rule 5: Object.hasOwn used for key checks (ERR-013)
|
|
141
|
+
* - Rule 9: callers must set a degradedReason when this returns undefined (ERR-002)
|
|
142
|
+
*/
|
|
143
|
+
export function validateIntentTension(value) {
|
|
144
|
+
if (!isRecord(value))
|
|
145
|
+
return undefined;
|
|
146
|
+
// SPEC §16.3: confidence is forbidden on intentTension.
|
|
147
|
+
if (Object.hasOwn(value, 'confidence'))
|
|
148
|
+
return undefined;
|
|
149
|
+
const source = getOwnValue(value, 'source');
|
|
150
|
+
if (typeof source !== 'string' || !VALID_INTENT_TENSION_SOURCES.has(source)) {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
const evidenceStrength = getOwnValue(value, 'evidenceStrength');
|
|
154
|
+
if (typeof evidenceStrength !== 'string' || !VALID_EVIDENCE_STRENGTHS.has(evidenceStrength)) {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
// relatedIntentFields: must be an array of valid enum strings (ERR-005/007).
|
|
158
|
+
const relatedIntentFieldsRaw = getOwnValue(value, 'relatedIntentFields');
|
|
159
|
+
if (!Array.isArray(relatedIntentFieldsRaw))
|
|
160
|
+
return undefined;
|
|
161
|
+
const relatedIntentFields = [];
|
|
162
|
+
for (const f of relatedIntentFieldsRaw) {
|
|
163
|
+
// Runtime-validated against the enum Set; the `as` cast below is AFTER
|
|
164
|
+
// validation, which is the correct pattern (Rule 2 forbids using `as`
|
|
165
|
+
// INSTEAD of validation, not after it).
|
|
166
|
+
if (typeof f !== 'string' || !VALID_INTENT_RELATED_FIELDS.has(f))
|
|
167
|
+
return undefined;
|
|
168
|
+
relatedIntentFields.push(f);
|
|
169
|
+
}
|
|
170
|
+
// evidence: must be an array of strings. Truncate to max 3 (SPEC §16.4,
|
|
171
|
+
// graceful degradation — keep the first 3 rather than dropping the whole
|
|
172
|
+
// tension, so the Owner still sees the signal).
|
|
173
|
+
const evidenceRaw = getOwnValue(value, 'evidence');
|
|
174
|
+
if (!Array.isArray(evidenceRaw))
|
|
175
|
+
return undefined;
|
|
176
|
+
const evidence = [];
|
|
177
|
+
for (const e of evidenceRaw) {
|
|
178
|
+
if (typeof e !== 'string')
|
|
179
|
+
return undefined;
|
|
180
|
+
evidence.push(e);
|
|
181
|
+
}
|
|
182
|
+
const truncatedEvidence = evidence.slice(0, INTENT_TENSION_EVIDENCE_MAX);
|
|
183
|
+
const explanation = getOwnValue(value, 'explanation');
|
|
184
|
+
if (typeof explanation !== 'string' || explanation.length === 0)
|
|
185
|
+
return undefined;
|
|
186
|
+
const suggestedOwnerAction = getOwnValue(value, 'suggestedOwnerAction');
|
|
187
|
+
if (typeof suggestedOwnerAction !== 'string' ||
|
|
188
|
+
!VALID_SUGGESTED_OWNER_ACTIONS.has(suggestedOwnerAction)) {
|
|
189
|
+
return undefined;
|
|
190
|
+
}
|
|
191
|
+
// intentDocHash: optional string.
|
|
192
|
+
const intentDocHash = getOwnValue(value, 'intentDocHash');
|
|
193
|
+
if (intentDocHash !== undefined && typeof intentDocHash !== 'string')
|
|
194
|
+
return undefined;
|
|
195
|
+
const result = {
|
|
196
|
+
source: source,
|
|
197
|
+
evidenceStrength: evidenceStrength,
|
|
198
|
+
relatedIntentFields,
|
|
199
|
+
evidence: truncatedEvidence,
|
|
200
|
+
explanation,
|
|
201
|
+
suggestedOwnerAction: suggestedOwnerAction,
|
|
202
|
+
};
|
|
203
|
+
if (typeof intentDocHash === 'string') {
|
|
204
|
+
result.intentDocHash = intentDocHash;
|
|
205
|
+
}
|
|
206
|
+
return result;
|
|
207
|
+
}
|
|
88
208
|
// ── Mapping & State Resolution ────────────────────────────────────────────────
|
|
89
209
|
export function mapSourceKind(source) {
|
|
90
210
|
switch (source) {
|
|
@@ -523,7 +643,7 @@ function dedupeRecords(records) {
|
|
|
523
643
|
return records.filter(record => !idsToRemove.has(record.id));
|
|
524
644
|
}
|
|
525
645
|
export function assembleEvidenceChain(params) {
|
|
526
|
-
const { workspaceDir, painEvents: rawPainEvents, tasks: rawTasks, candidates: rawCandidates, dreamerTasks: rawDreamerTasks, ledgerPrinciples, trajectoryDbAvailable, stateDbAvailable, } = params;
|
|
646
|
+
const { workspaceDir, painEvents: rawPainEvents, tasks: rawTasks, candidates: rawCandidates, dreamerTasks: rawDreamerTasks, ledgerPrinciples, trajectoryDbAvailable, stateDbAvailable, diagnosticArtifacts: rawDiagnosticArtifacts, } = params;
|
|
527
647
|
const generatedAt = new Date().toISOString();
|
|
528
648
|
const records = [];
|
|
529
649
|
const degradedReasons = params.degradedReasons ? [...params.degradedReasons] : [];
|
|
@@ -533,6 +653,22 @@ export function assembleEvidenceChain(params) {
|
|
|
533
653
|
const tasks = rawTasks.filter(isRecord);
|
|
534
654
|
const candidates = rawCandidates.filter(isRecord);
|
|
535
655
|
const dreamerTasks = rawDreamerTasks.filter(isRecord);
|
|
656
|
+
const diagnosticArtifacts = (rawDiagnosticArtifacts ?? []).filter(isRecord);
|
|
657
|
+
// PRI-469: Build artifact lookup by task_id. Each artifact row has
|
|
658
|
+
// { task_id: string, content_json: string }. content_json holds the
|
|
659
|
+
// DiagnosticianOutputV1 JSON (including rootCause and optional intentTension).
|
|
660
|
+
// Artifact is the CANONICAL source; tasks.diagnostic_json is a fallback.
|
|
661
|
+
const artifactByTaskId = new Map();
|
|
662
|
+
for (const artifact of diagnosticArtifacts) {
|
|
663
|
+
const taskId = readOwnString(artifact, 'task_id');
|
|
664
|
+
if (!taskId)
|
|
665
|
+
continue;
|
|
666
|
+
// First artifact wins — duplicate task_ids should not happen, but if they
|
|
667
|
+
// do we keep the first to avoid silent data swapping (ERR-015).
|
|
668
|
+
if (!artifactByTaskId.has(taskId)) {
|
|
669
|
+
artifactByTaskId.set(taskId, artifact);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
536
672
|
// 1. Process tasks into a map
|
|
537
673
|
const taskMap = new Map();
|
|
538
674
|
for (const task of tasks) {
|
|
@@ -546,18 +682,79 @@ export function assembleEvidenceChain(params) {
|
|
|
546
682
|
else {
|
|
547
683
|
painId = taskId.startsWith('diagnosis_') ? taskId.slice('diagnosis_'.length) : taskId;
|
|
548
684
|
}
|
|
685
|
+
// PRI-469: Extract rootCause and intentTension from the diagnostician
|
|
686
|
+
// artifact (canonical source). Artifact takes precedence over
|
|
687
|
+
// tasks.diagnostic_json, which is kept only as a test-fixture fallback.
|
|
549
688
|
let rootCauseSummary;
|
|
689
|
+
let intentTension;
|
|
690
|
+
let artifactDegraded = false;
|
|
550
691
|
let diagnosticJsonDegraded = false;
|
|
551
|
-
const
|
|
552
|
-
if (
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
692
|
+
const artifact = taskId ? artifactByTaskId.get(taskId) : undefined;
|
|
693
|
+
if (artifact) {
|
|
694
|
+
const contentJson = readOwnString(artifact, 'content_json');
|
|
695
|
+
if (typeof contentJson === 'string') {
|
|
696
|
+
try {
|
|
697
|
+
const parsed = JSON.parse(contentJson);
|
|
698
|
+
if (isRecord(parsed)) {
|
|
699
|
+
// rootCause from artifact (canonical, takes precedence).
|
|
700
|
+
// The artifact stores DiagnosticianOutputV1 where rootCause is an
|
|
701
|
+
// object: { summary: string, confidence: number, ... }. Legacy
|
|
702
|
+
// test fixtures may store rootCause as a plain string. Handle both.
|
|
703
|
+
const artifactRootCause = getOwnValue(parsed, 'rootCause');
|
|
704
|
+
if (typeof artifactRootCause === 'string') {
|
|
705
|
+
rootCauseSummary = artifactRootCause;
|
|
706
|
+
}
|
|
707
|
+
else if (isRecord(artifactRootCause)) {
|
|
708
|
+
const rootCauseSummaryValue = getOwnValue(artifactRootCause, 'summary');
|
|
709
|
+
if (typeof rootCauseSummaryValue === 'string') {
|
|
710
|
+
rootCauseSummary = rootCauseSummaryValue;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
// intentTension from artifact — validated with runtime guards.
|
|
714
|
+
// Only extract when the key is present (optional field).
|
|
715
|
+
if (Object.hasOwn(parsed, 'intentTension')) {
|
|
716
|
+
const validated = validateIntentTension(getOwnValue(parsed, 'intentTension'));
|
|
717
|
+
if (validated) {
|
|
718
|
+
intentTension = validated;
|
|
719
|
+
}
|
|
720
|
+
else {
|
|
721
|
+
// intentTension was present but malformed — degrade visibly
|
|
722
|
+
// (ERR-002). rootCause may still be valid, so we do NOT clobber
|
|
723
|
+
// it; we only flag the artifact as partially degraded.
|
|
724
|
+
artifactDegraded = true;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
// content_json parsed but not an object — degrade.
|
|
730
|
+
artifactDegraded = true;
|
|
731
|
+
}
|
|
557
732
|
}
|
|
733
|
+
catch {
|
|
734
|
+
// content_json is not valid JSON — degrade. rootCause and
|
|
735
|
+
// intentTension both unavailable from the artifact.
|
|
736
|
+
artifactDegraded = true;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
else {
|
|
740
|
+
// content_json missing or not a string — degrade.
|
|
741
|
+
artifactDegraded = true;
|
|
558
742
|
}
|
|
559
|
-
|
|
560
|
-
|
|
743
|
+
}
|
|
744
|
+
// Fallback: tasks.diagnostic_json (test-fixture compat). Only used when
|
|
745
|
+
// the artifact did not provide a rootCause.
|
|
746
|
+
if (rootCauseSummary === undefined) {
|
|
747
|
+
const dj = getOwnValue(task, 'diagnostic_json');
|
|
748
|
+
if (isString(dj)) {
|
|
749
|
+
try {
|
|
750
|
+
const parsed = JSON.parse(dj);
|
|
751
|
+
if (isRecord(parsed) && Object.hasOwn(parsed, 'rootCause') && isString(parsed.rootCause)) {
|
|
752
|
+
rootCauseSummary = parsed.rootCause;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
catch {
|
|
756
|
+
diagnosticJsonDegraded = true;
|
|
757
|
+
}
|
|
561
758
|
}
|
|
562
759
|
}
|
|
563
760
|
taskMap.set(painId, {
|
|
@@ -568,6 +765,8 @@ export function assembleEvidenceChain(params) {
|
|
|
568
765
|
rootCauseSummary,
|
|
569
766
|
diagnosticJsonDegraded,
|
|
570
767
|
inputRef,
|
|
768
|
+
intentTension,
|
|
769
|
+
artifactDegraded,
|
|
571
770
|
});
|
|
572
771
|
}
|
|
573
772
|
// 2. Build dreamer map
|
|
@@ -753,6 +952,16 @@ export function assembleEvidenceChain(params) {
|
|
|
753
952
|
if (linkedTask.diagnosticJsonDegraded) {
|
|
754
953
|
record.degradedReason = 'Diagnostic data for this record could not be parsed';
|
|
755
954
|
}
|
|
955
|
+
// PRI-469: surface intentTension from the diagnostician artifact.
|
|
956
|
+
if (linkedTask.intentTension) {
|
|
957
|
+
record.intentTension = linkedTask.intentTension;
|
|
958
|
+
}
|
|
959
|
+
// PRI-469: artifact degraded (content_json unparseable or intentTension
|
|
960
|
+
// malformed) — degrade visibly (ERR-002). Do not clobber an existing
|
|
961
|
+
// degradedReason from diagnosticJsonDegraded; append instead.
|
|
962
|
+
if (linkedTask.artifactDegraded && !record.degradedReason) {
|
|
963
|
+
record.degradedReason = 'Diagnostician artifact for this record could not be fully parsed; intentTension may be unavailable.';
|
|
964
|
+
}
|
|
756
965
|
}
|
|
757
966
|
if (dreamerInfo) {
|
|
758
967
|
record.internalizationTaskId = dreamerInfo.taskId;
|
|
@@ -917,6 +1126,10 @@ export function assembleEvidenceChain(params) {
|
|
|
917
1126
|
if (crossRefTask.rootCauseSummary) {
|
|
918
1127
|
record.rootCauseSummary = crossRefTask.rootCauseSummary;
|
|
919
1128
|
}
|
|
1129
|
+
// PRI-469: surface intentTension from the cross-referenced task's artifact.
|
|
1130
|
+
if (crossRefTask.intentTension) {
|
|
1131
|
+
record.intentTension = crossRefTask.intentTension;
|
|
1132
|
+
}
|
|
920
1133
|
if (crossRefTask.lastError && (state === 'diagnosis-failed' || state === 'diagnosis-retry-wait')) {
|
|
921
1134
|
record.failureReason = crossRefTask.lastError;
|
|
922
1135
|
}
|
|
@@ -931,6 +1144,10 @@ export function assembleEvidenceChain(params) {
|
|
|
931
1144
|
if (crossRefTask.diagnosticJsonDegraded) {
|
|
932
1145
|
record.degradedReason = 'Diagnostic data for this record could not be parsed';
|
|
933
1146
|
}
|
|
1147
|
+
// PRI-469: artifact degraded — degrade visibly (ERR-002).
|
|
1148
|
+
if (crossRefTask.artifactDegraded && !record.degradedReason) {
|
|
1149
|
+
record.degradedReason = 'Diagnostician artifact for this record could not be fully parsed; intentTension may be unavailable.';
|
|
1150
|
+
}
|
|
934
1151
|
records.push(record);
|
|
935
1152
|
}
|
|
936
1153
|
// 6. Include tasks that have no matching pain_event (e.g. CLI direct records)
|
|
@@ -1000,6 +1217,10 @@ export function assembleEvidenceChain(params) {
|
|
|
1000
1217
|
if (task.rootCauseSummary) {
|
|
1001
1218
|
record.rootCauseSummary = task.rootCauseSummary;
|
|
1002
1219
|
}
|
|
1220
|
+
// PRI-469: surface intentTension from the task's diagnostician artifact.
|
|
1221
|
+
if (task.intentTension) {
|
|
1222
|
+
record.intentTension = task.intentTension;
|
|
1223
|
+
}
|
|
1003
1224
|
if (task.lastError && (state === 'diagnosis-failed' || state === 'diagnosis-retry-wait')) {
|
|
1004
1225
|
record.failureReason = task.lastError;
|
|
1005
1226
|
}
|
|
@@ -1014,6 +1235,10 @@ export function assembleEvidenceChain(params) {
|
|
|
1014
1235
|
if (task.diagnosticJsonDegraded) {
|
|
1015
1236
|
record.degradedReason = 'Diagnostic data for this record could not be parsed';
|
|
1016
1237
|
}
|
|
1238
|
+
// PRI-469: artifact degraded — degrade visibly (ERR-002).
|
|
1239
|
+
if (task.artifactDegraded && !record.degradedReason) {
|
|
1240
|
+
record.degradedReason = 'Diagnostician artifact for this record could not be fully parsed; intentTension may be unavailable.';
|
|
1241
|
+
}
|
|
1017
1242
|
records.push(record);
|
|
1018
1243
|
}
|
|
1019
1244
|
// Sort by observedAt descending
|