create-principles-disciple 1.147.13 → 1.147.16
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/_release/product-identity.json +1 -1
- package/codex-adapter/dist/codex-evidence-recorder.d.ts +1 -1
- package/codex-adapter/dist/ingestion/admission.d.ts +1 -1
- package/codex-adapter/dist/ingestion/admission.js +1 -1
- package/codex-adapter/dist/ingestion/catch-up.js +1 -1
- package/codex-adapter/dist/ingestion/turn-context.js +1 -1
- package/codex-adapter/dist/pd-hook.js +3 -3
- package/codex-adapter/dist/tool-semantics.d.ts +1 -1
- package/codex-adapter/dist/tool-semantics.js +1 -1
- package/codex-adapter/dist/worker/workspace-worker.js +2 -2
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/config/pd-config-store.d.ts +2 -2
- package/console/dist/server/config/pd-config-store.js +34 -20
- package/console/dist/server/feedback/github-adapter.d.ts +1 -1
- package/console/dist/server/feedback/github-adapter.js +3 -2
- package/console/dist/server/feedback/ingest-adapter.d.ts +1 -1
- package/console/dist/server/feedback/ingest-adapter.js +3 -2
- package/console/dist/server/feedback/submit-service.d.ts +1 -1
- package/console/dist/server/feedback/submit-service.js +1 -1
- package/console/dist/server/index.js +13 -10
- package/console/dist/server/models/ActivationsConsoleModel.d.ts +5 -5
- package/console/dist/server/models/ActivationsConsoleModel.js +19 -12
- package/console/dist/server/models/ApprovalsConsoleModel.d.ts +2 -2
- package/console/dist/server/models/ApprovalsConsoleModel.js +42 -12
- package/console/dist/server/models/ApprovalsGroupedConsoleModel.js +47 -6
- package/console/dist/server/models/CodexGovernanceHealthModel.js +2 -1
- package/console/dist/server/models/ConsoleLifecycleDatasource.d.ts +2 -2
- package/console/dist/server/models/ConsoleLifecycleDatasource.js +2 -1
- package/console/dist/server/models/EvidenceChainConsoleModel.d.ts +1 -1
- package/console/dist/server/models/EvidenceChainConsoleModel.js +4 -3
- package/console/dist/server/models/ExaminerEvidenceModel.d.ts +1 -1
- package/console/dist/server/models/ExaminerEvidenceModel.js +2 -1
- package/console/dist/server/models/FeedbackReportConsoleModel.d.ts +1 -1
- package/console/dist/server/models/FeedbackReportConsoleModel.js +8 -7
- package/console/dist/server/models/GovernanceConsoleModel.js +3 -2
- package/console/dist/server/models/GovernanceExperienceCollector.d.ts +1 -1
- package/console/dist/server/models/GovernanceExperienceCollector.js +1 -1
- package/console/dist/server/models/GovernanceProjectionCollector.d.ts +1 -1
- package/console/dist/server/models/GovernanceProjectionCollector.js +1 -1
- package/console/dist/server/models/HealthCheckModel.js +3 -2
- package/console/dist/server/models/IntentDecisionModel.d.ts +1 -1
- package/console/dist/server/models/IntentDecisionModel.js +1 -1
- package/console/dist/server/models/IntentPageModel.d.ts +1 -1
- package/console/dist/server/models/IntentPageModel.js +99 -27
- package/console/dist/server/models/LifecycleConsoleModel.js +1 -1
- package/console/dist/server/models/OwnerDecisionConsoleModel.d.ts +1 -1
- package/console/dist/server/models/OwnerDecisionConsoleModel.js +1 -1
- package/console/dist/server/models/OwnerDecisionViewModel.d.ts +1 -1
- package/console/dist/server/models/OwnerDecisionViewModel.js +5 -5
- package/console/dist/server/models/PrincipleClassifier.js +1 -1
- package/console/dist/server/models/PrincipleTrajectoryModel.js +8 -7
- package/console/dist/server/models/PrinciplesConsoleModel.d.ts +1 -1
- package/console/dist/server/models/PrinciplesConsoleModel.js +10 -3
- package/console/dist/server/models/ReceiptsConsoleModel.d.ts +1 -1
- package/console/dist/server/models/ReceiptsConsoleModel.js +5 -4
- package/console/dist/server/models/RuleCandidateBindingConsoleModel.d.ts +3 -3
- package/console/dist/server/models/RuleCandidateBindingConsoleModel.js +1 -1
- package/console/dist/server/models/artifact-principle-resolver.d.ts +1 -1
- package/console/dist/server/models/artifact-principle-resolver.js +1 -1
- package/console/dist/server/models/principle-id-resolution.d.ts +3 -3
- package/console/dist/server/models/principle-id-resolution.js +2 -2
- package/console/dist/server/routes/activations.d.ts +1 -1
- package/console/dist/server/routes/activations.js +10 -10
- package/console/dist/server/routes/approvals-grouped.js +2 -2
- package/console/dist/server/routes/approvals.js +8 -11
- package/console/dist/server/routes/design-gate.js +1 -1
- package/console/dist/server/routes/evidence-chain.js +2 -2
- package/console/dist/server/routes/evidence-outcomes.js +1 -1
- package/console/dist/server/routes/failed-tasks.d.ts +1 -1
- package/console/dist/server/routes/failed-tasks.js +3 -6
- package/console/dist/server/routes/feedback-reports.js +5 -8
- package/console/dist/server/routes/governance.d.ts +1 -1
- package/console/dist/server/routes/governance.js +3 -3
- package/console/dist/server/routes/health.js +2 -2
- package/console/dist/server/routes/intent-decisions.js +7 -10
- package/console/dist/server/routes/lifecycle.js +2 -2
- package/console/dist/server/routes/onboarding.d.ts +1 -1
- package/console/dist/server/routes/onboarding.js +3 -3
- package/console/dist/server/routes/owner-decision.js +4 -4
- package/console/dist/server/routes/owner-decisions.js +4 -4
- package/console/dist/server/routes/owner-identity.d.ts +1 -1
- package/console/dist/server/routes/owner-identity.js +1 -1
- package/console/dist/server/routes/principles.js +13 -13
- package/console/dist/server/routes/receipts.js +4 -4
- package/console/dist/server/routes/update-transaction.js +4 -4
- package/console/dist/server/routes/update.js +3 -3
- package/console/dist/server/routes/workspaces.js +5 -8
- package/console/dist/server/utils/cli-smoke.js +2 -1
- package/console/dist/server/utils/gateway.js +2 -1
- package/console/dist/server/utils/pd-backups.js +3 -2
- package/console/dist/server/utils/request.js +8 -6
- package/console/dist/server/utils/response.d.ts +10 -0
- package/console/dist/server/utils/response.js +18 -0
- package/console/dist/shared/approved-rule-revision-contract.d.ts +1 -1
- package/console/dist/shared/prompt-injection-contract.d.ts +31 -4
- package/console/dist/web/assets/app.css +4 -0
- package/console/dist/web/assets/app.js +31 -31
- package/console/lab/lib/examiner-injection-evidence.mjs +1 -1
- package/core/dist/host/host-adapter.d.ts +3 -3
- package/core/dist/host/host-adapter.d.ts.map +1 -1
- package/core/dist/index.d.ts +26 -26
- package/core/dist/index.d.ts.map +1 -1
- package/core/dist/index.js +16 -16
- package/core/dist/index.js.map +1 -1
- package/core/dist/principle-tree-ledger.d.ts +5 -5
- package/core/dist/principle-tree-ledger.d.ts.map +1 -1
- package/core/dist/principle-tree-ledger.js +17 -4
- package/core/dist/principle-tree-ledger.js.map +1 -1
- package/core/dist/prompt-builder/model-config.js +1 -1
- package/core/dist/prompt-builder/model-config.js.map +1 -1
- package/core/dist/prompt-builder/size-guard.d.ts.map +1 -1
- package/core/dist/prompt-builder/size-guard.js +39 -6
- package/core/dist/prompt-builder/size-guard.js.map +1 -1
- package/core/dist/prompt-builder/xml-escape.d.ts +1 -1
- package/core/dist/prompt-builder/xml-escape.js +1 -1
- package/core/dist/runtime/activation/activation-control-types.d.ts.map +1 -0
- package/core/dist/runtime/activation/activation-control-types.js.map +1 -0
- package/core/dist/runtime/activation/activation-dispatcher.d.ts.map +1 -0
- package/core/dist/runtime/activation/activation-dispatcher.js.map +1 -0
- package/core/dist/runtime/activation/activation-types.d.ts.map +1 -0
- package/core/dist/runtime/activation/activation-types.js.map +1 -0
- package/core/dist/runtime/activation/adaptive-delivery-record.d.ts.map +1 -0
- package/core/dist/runtime/activation/adaptive-delivery-record.js.map +1 -0
- package/core/dist/runtime/activation/adaptive-principle-intervention.d.ts +83 -0
- package/core/dist/runtime/activation/adaptive-principle-intervention.d.ts.map +1 -0
- package/core/dist/runtime/activation/adaptive-principle-intervention.js.map +1 -0
- package/core/dist/runtime/activation/approval-completion-service.d.ts.map +1 -0
- package/core/dist/runtime/activation/approval-completion-service.js.map +1 -0
- package/core/dist/runtime/activation/approval-queue.d.ts.map +1 -0
- package/core/dist/runtime/activation/approval-queue.js.map +1 -0
- package/core/dist/runtime/activation/approval-review-guard.d.ts.map +1 -0
- package/core/dist/runtime/activation/approval-review-guard.js.map +1 -0
- package/core/dist/runtime/activation/index.d.ts +48 -0
- package/core/dist/runtime/activation/index.d.ts.map +1 -0
- package/core/dist/runtime/activation/index.js +41 -0
- package/core/dist/runtime/activation/index.js.map +1 -0
- package/core/dist/runtime/activation/ledger-identity.d.ts.map +1 -0
- package/core/dist/runtime/activation/ledger-identity.js.map +1 -0
- package/core/dist/runtime/activation/low-risk-writers.d.ts.map +1 -0
- package/core/dist/runtime/activation/low-risk-writers.js.map +1 -0
- package/core/dist/runtime/activation/memory-activation-state-store.d.ts.map +1 -0
- package/core/dist/runtime/activation/memory-activation-state-store.js.map +1 -0
- package/core/dist/runtime/activation/memory-approval-store.d.ts.map +1 -0
- package/core/dist/runtime/activation/memory-approval-store.js.map +1 -0
- package/core/dist/runtime/activation/openclaw-promotion-checks.d.ts.map +1 -0
- package/core/dist/runtime/activation/openclaw-promotion-checks.js.map +1 -0
- package/core/dist/runtime/activation/production-gate-deps.d.ts.map +1 -0
- package/core/dist/runtime/activation/production-gate-deps.js.map +1 -0
- package/core/dist/runtime/activation/promotion-evidence-snapshot.d.ts.map +1 -0
- package/core/dist/runtime/activation/promotion-evidence-snapshot.js.map +1 -0
- package/core/dist/runtime/activation/promotion-readiness-evaluator.d.ts.map +1 -0
- package/core/dist/runtime/activation/promotion-readiness-evaluator.js.map +1 -0
- package/core/dist/runtime/activation/promotion-readiness-reader.d.ts.map +1 -0
- package/core/dist/runtime/activation/promotion-readiness-reader.js.map +1 -0
- package/core/dist/runtime/activation/prompt-activation-reader-contract.d.ts +138 -0
- package/core/dist/runtime/activation/prompt-activation-reader-contract.d.ts.map +1 -0
- package/core/dist/runtime/activation/prompt-activation-reader-contract.js +268 -0
- package/core/dist/runtime/activation/prompt-activation-reader-contract.js.map +1 -0
- package/core/dist/runtime/activation/prompt-budget-policy.d.ts.map +1 -0
- package/core/dist/runtime/activation/prompt-budget-policy.js +326 -0
- package/core/dist/runtime/activation/prompt-budget-policy.js.map +1 -0
- package/core/dist/runtime/activation/prompt-replacement.d.ts.map +1 -0
- package/core/dist/runtime/activation/prompt-replacement.js.map +1 -0
- package/core/dist/runtime/activation/recovery-composition.d.ts.map +1 -0
- package/core/dist/runtime/activation/recovery-composition.js.map +1 -0
- package/core/dist/runtime/activation/recovery-control-surfaces.d.ts.map +1 -0
- package/core/dist/runtime/activation/recovery-control-surfaces.js.map +1 -0
- package/core/dist/runtime/activation/rule-replacement.d.ts.map +1 -0
- package/core/dist/runtime/activation/rule-replacement.js.map +1 -0
- package/core/dist/runtime/activation/rulecode-owner-decision-service.d.ts.map +1 -0
- package/core/dist/runtime/activation/rulecode-owner-decision-service.js.map +1 -0
- package/core/dist/runtime/activation/rulecode-safety-circuit-breaker.d.ts.map +1 -0
- package/core/dist/runtime/activation/rulecode-safety-circuit-breaker.js.map +1 -0
- package/core/dist/runtime/activation/rulecode-shadow-summary.d.ts.map +1 -0
- package/core/dist/runtime/activation/rulecode-shadow-summary.js.map +1 -0
- package/core/dist/runtime/activation/sqlite-activation-safety-store.d.ts.map +1 -0
- package/core/dist/runtime/activation/sqlite-activation-safety-store.js.map +1 -0
- package/core/dist/runtime/activation/sqlite-activation-state-store.d.ts.map +1 -0
- package/core/dist/runtime/activation/sqlite-activation-state-store.js.map +1 -0
- package/core/dist/runtime/activation/sqlite-approval-store.d.ts.map +1 -0
- package/core/dist/runtime/activation/sqlite-approval-store.js.map +1 -0
- package/core/dist/runtime/activation/writers/index.d.ts.map +1 -0
- package/core/dist/runtime/activation/writers/index.js.map +1 -0
- package/core/dist/runtime/activation/writers/rule-host-writer.d.ts.map +1 -0
- package/core/dist/runtime/activation/writers/rule-host-writer.js.map +1 -0
- package/core/dist/runtime/activation-compatibility-read-model.d.ts.map +1 -0
- package/core/dist/runtime/activation-compatibility-read-model.js.map +1 -0
- package/core/dist/runtime/adapter/artificer-l2-adapter.d.ts.map +1 -0
- package/core/dist/runtime/adapter/artificer-l2-adapter.js.map +1 -0
- package/core/dist/runtime/adapter/index.d.ts.map +1 -0
- package/core/dist/runtime/adapter/index.js.map +1 -0
- package/core/dist/runtime/adapter/json-extractor.d.ts.map +1 -0
- package/core/dist/runtime/adapter/json-extractor.js.map +1 -0
- package/core/dist/runtime/adapter/l2-agent-loop-adapter.d.ts.map +1 -0
- package/core/dist/runtime/adapter/l2-agent-loop-adapter.js.map +1 -0
- package/core/dist/runtime/adapter/output-repair-contract.d.ts.map +1 -0
- package/core/dist/runtime/adapter/output-repair-contract.js +99 -0
- package/core/dist/runtime/adapter/output-repair-contract.js.map +1 -0
- package/core/dist/runtime/adapter/output-schema-registry.d.ts.map +1 -0
- package/core/dist/runtime/adapter/output-schema-registry.js.map +1 -0
- package/core/dist/runtime/adapter/pi-ai-catalog.d.ts.map +1 -0
- package/core/dist/runtime/adapter/pi-ai-catalog.js.map +1 -0
- package/core/dist/runtime/adapter/pi-ai-http-transport.d.ts.map +1 -0
- package/core/dist/runtime/adapter/pi-ai-http-transport.js.map +1 -0
- package/core/dist/runtime/adapter/pi-ai-runtime-adapter.d.ts.map +1 -0
- package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js +1489 -0
- package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js.map +1 -0
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.d.ts +98 -0
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.d.ts.map +1 -0
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.js +243 -0
- package/core/dist/runtime/adapter/principle-tree-ledger-adapter.js.map +1 -0
- package/core/dist/runtime/adapter/schema-json-converter.d.ts.map +1 -0
- package/core/dist/runtime/adapter/schema-json-converter.js.map +1 -0
- package/core/dist/runtime/adapter/schema-prompt-adapter.d.ts.map +1 -0
- package/core/dist/runtime/adapter/schema-prompt-adapter.js.map +1 -0
- package/core/dist/runtime/adapter/split-pipeline-fixtures.d.ts.map +1 -0
- package/core/dist/runtime/adapter/split-pipeline-fixtures.js.map +1 -0
- package/core/dist/runtime/adapter/structured-output-repair.d.ts.map +1 -0
- package/core/dist/runtime/adapter/structured-output-repair.js +298 -0
- package/core/dist/runtime/adapter/structured-output-repair.js.map +1 -0
- package/core/dist/runtime/adapter/test-double-runtime-adapter.d.ts.map +1 -0
- package/core/dist/runtime/adapter/test-double-runtime-adapter.js.map +1 -0
- package/core/dist/runtime/adapter/tools/diagnostician-tool.d.ts.map +1 -0
- package/core/dist/runtime/adapter/tools/diagnostician-tool.js.map +1 -0
- package/core/dist/runtime/admission-gate.d.ts.map +1 -0
- package/core/dist/runtime/admission-gate.js.map +1 -0
- package/core/dist/runtime/adversarial-loop.d.ts.map +1 -0
- package/core/dist/runtime/adversarial-loop.js.map +1 -0
- package/core/dist/runtime/agent-spec.d.ts.map +1 -0
- package/core/dist/runtime/agent-spec.js.map +1 -0
- package/core/dist/runtime/bridge-result-shaper.d.ts.map +1 -0
- package/core/dist/runtime/bridge-result-shaper.js.map +1 -0
- package/core/dist/runtime/build-l2-principle-reader.d.ts.map +1 -0
- package/core/dist/runtime/build-l2-principle-reader.js.map +1 -0
- package/core/dist/runtime/candidate-audit.d.ts.map +1 -0
- package/core/dist/runtime/candidate-audit.js.map +1 -0
- package/core/dist/runtime/candidate-intake-service.d.ts.map +1 -0
- package/core/dist/runtime/candidate-intake-service.js.map +1 -0
- package/core/dist/runtime/candidate-intake.d.ts.map +1 -0
- package/core/dist/runtime/candidate-intake.js.map +1 -0
- package/core/dist/runtime/cli/diagnose.d.ts.map +1 -0
- package/core/dist/runtime/cli/diagnose.js.map +1 -0
- package/core/dist/runtime/cli/index.d.ts.map +1 -0
- package/core/dist/runtime/cli/index.js.map +1 -0
- package/core/dist/runtime/cli/probe.d.ts.map +1 -0
- package/core/dist/runtime/cli/probe.js.map +1 -0
- package/core/dist/runtime/config/index.d.ts.map +1 -0
- package/core/dist/runtime/config/index.js.map +1 -0
- package/core/dist/runtime/config/pd-config-agent-binding.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-config-agent-binding.js.map +1 -0
- package/core/dist/runtime/config/pd-config-defaults.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-config-defaults.js.map +1 -0
- package/core/dist/runtime/config/pd-config-effective.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-config-effective.js.map +1 -0
- package/core/dist/runtime/config/pd-config-feature-flags.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-config-feature-flags.js.map +1 -0
- package/core/dist/runtime/config/pd-config-redaction.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-config-redaction.js +202 -0
- package/core/dist/runtime/config/pd-config-redaction.js.map +1 -0
- package/core/dist/runtime/config/pd-config-types.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-config-types.js.map +1 -0
- package/core/dist/runtime/config/pd-config-validate.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-config-validate.js.map +1 -0
- package/core/dist/runtime/config/pd-profile-constants.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-profile-constants.js.map +1 -0
- package/core/dist/runtime/config/pd-validate-profile.d.ts.map +1 -0
- package/core/dist/runtime/config/pd-validate-profile.js.map +1 -0
- package/core/dist/runtime/context-payload.d.ts.map +1 -0
- package/core/dist/runtime/context-payload.js.map +1 -0
- package/core/dist/runtime/control-plane-triage.d.ts.map +1 -0
- package/core/dist/runtime/control-plane-triage.js.map +1 -0
- package/core/dist/runtime/core-principles/core-axiom-block.d.ts.map +1 -0
- package/core/dist/runtime/core-principles/core-axiom-block.js.map +1 -0
- package/core/dist/runtime/core-principles/core-principle-registry.d.ts.map +1 -0
- package/core/dist/runtime/core-principles/core-principle-registry.js.map +1 -0
- package/core/dist/runtime/core-principles/index.d.ts.map +1 -0
- package/core/dist/runtime/core-principles/index.js.map +1 -0
- package/core/dist/runtime/core-principles/strip-fabricated-ids.d.ts.map +1 -0
- package/core/dist/runtime/core-principles/strip-fabricated-ids.js.map +1 -0
- package/core/dist/runtime/correction/correction-types.d.ts.map +1 -0
- package/core/dist/runtime/correction/correction-types.js.map +1 -0
- package/core/dist/runtime/correction/index.d.ts.map +1 -0
- package/core/dist/runtime/correction/index.js.map +1 -0
- package/core/dist/runtime/detection/detection-funnel-policy.d.ts.map +1 -0
- package/core/dist/runtime/detection/detection-funnel-policy.js.map +1 -0
- package/core/dist/runtime/detection/index.d.ts.map +1 -0
- package/core/dist/runtime/detection/index.js.map +1 -0
- package/core/dist/runtime/diagnostician/diag-distiller-output.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician/diag-distiller-output.js.map +1 -0
- package/core/dist/runtime/diagnostician/diag-rootcause-output.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician/diag-rootcause-output.js.map +1 -0
- package/core/dist/runtime/diagnostician/distiller-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician/distiller-prompt-builder.js.map +1 -0
- package/core/dist/runtime/diagnostician/evidence-ref-binding.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician/evidence-ref-binding.js.map +1 -0
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -0
- package/core/dist/runtime/diagnostician/router-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician/router-prompt-builder.js.map +1 -0
- package/core/dist/runtime/diagnostician-association-shadow.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician-association-shadow.js.map +1 -0
- package/core/dist/runtime/diagnostician-association-validation.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician-association-validation.js.map +1 -0
- package/core/dist/runtime/diagnostician-capability.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician-capability.js.map +1 -0
- package/core/dist/runtime/diagnostician-output.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician-output.js.map +1 -0
- package/core/dist/runtime/diagnostician-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/diagnostician-prompt-builder.js.map +1 -0
- package/core/dist/runtime/error-categories.d.ts +42 -0
- package/core/dist/runtime/error-categories.d.ts.map +1 -0
- package/core/dist/runtime/error-categories.js +122 -0
- package/core/dist/runtime/error-categories.js.map +1 -0
- package/core/dist/runtime/evidence-guards.d.ts.map +1 -0
- package/core/dist/runtime/evidence-guards.js.map +1 -0
- package/core/dist/runtime/evidence-sanitizer.d.ts.map +1 -0
- package/core/dist/runtime/evidence-sanitizer.js.map +1 -0
- package/core/dist/runtime/evidence-triage/index.d.ts.map +1 -0
- package/core/dist/runtime/evidence-triage/index.js.map +1 -0
- package/core/dist/runtime/evidence-triage/observation-resolver.d.ts.map +1 -0
- package/core/dist/runtime/evidence-triage/observation-resolver.js.map +1 -0
- package/core/dist/runtime/evidence-triage/source-descriptors.d.ts.map +1 -0
- package/core/dist/runtime/evidence-triage/source-descriptors.js.map +1 -0
- package/core/dist/runtime/evidence-triage/triage-policy.d.ts.map +1 -0
- package/core/dist/runtime/evidence-triage/triage-policy.js.map +1 -0
- package/core/dist/runtime/evidence-triage/trigger-controller.d.ts.map +1 -0
- package/core/dist/runtime/evidence-triage/trigger-controller.js.map +1 -0
- package/core/dist/runtime/evidence-triage/types.d.ts.map +1 -0
- package/core/dist/runtime/evidence-triage/types.js.map +1 -0
- package/core/dist/runtime/evolution/evolution-types.d.ts.map +1 -0
- package/core/dist/runtime/evolution/evolution-types.js.map +1 -0
- package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -0
- package/core/dist/runtime/feature-flags/feature-flag-contract.js +432 -0
- package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -0
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -0
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +265 -0
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -0
- package/core/dist/runtime/feature-flags/index.d.ts.map +1 -0
- package/core/dist/runtime/feature-flags/index.js.map +1 -0
- package/core/dist/runtime/feature-flags/plugin-surface-registry.d.ts.map +1 -0
- package/core/dist/runtime/feature-flags/plugin-surface-registry.js.map +1 -0
- package/core/dist/runtime/feature-flags/surface-guard-policy.d.ts.map +1 -0
- package/core/dist/runtime/feature-flags/surface-guard-policy.js.map +1 -0
- package/core/dist/runtime/feedback/create-report.d.ts.map +1 -0
- package/core/dist/runtime/feedback/create-report.js.map +1 -0
- package/core/dist/runtime/feedback/feedback-types.d.ts.map +1 -0
- package/core/dist/runtime/feedback/feedback-types.js.map +1 -0
- package/core/dist/runtime/feedback/fingerprint.d.ts.map +1 -0
- package/core/dist/runtime/feedback/fingerprint.js.map +1 -0
- package/core/dist/runtime/feedback/index.d.ts.map +1 -0
- package/core/dist/runtime/feedback/index.js +18 -0
- package/core/dist/runtime/feedback/index.js.map +1 -0
- package/core/dist/runtime/feedback/internal-guards.d.ts.map +1 -0
- package/core/dist/runtime/feedback/internal-guards.js.map +1 -0
- package/core/dist/runtime/feedback/pending-agent-draft-store.d.ts.map +1 -0
- package/core/dist/runtime/feedback/pending-agent-draft-store.js.map +1 -0
- package/core/dist/runtime/feedback/privacy-preview.d.ts.map +1 -0
- package/core/dist/runtime/feedback/privacy-preview.js.map +1 -0
- package/core/dist/runtime/feedback/redact-sensitive.d.ts.map +1 -0
- package/core/dist/runtime/feedback/redact-sensitive.js +318 -0
- package/core/dist/runtime/feedback/redact-sensitive.js.map +1 -0
- package/core/dist/runtime/feedback/render-github-url.d.ts.map +1 -0
- package/core/dist/runtime/feedback/render-github-url.js.map +1 -0
- package/core/dist/runtime/feedback/render-markdown.d.ts.map +1 -0
- package/core/dist/runtime/feedback/render-markdown.js.map +1 -0
- package/core/dist/runtime/feedback/safe-stringify.d.ts.map +1 -0
- package/core/dist/runtime/feedback/safe-stringify.js.map +1 -0
- package/core/dist/runtime/full-trace-contract.d.ts.map +1 -0
- package/core/dist/runtime/full-trace-contract.js +481 -0
- package/core/dist/runtime/full-trace-contract.js.map +1 -0
- package/core/dist/runtime/golden-trace-replay-validator.d.ts.map +1 -0
- package/core/dist/runtime/golden-trace-replay-validator.js.map +1 -0
- package/core/dist/runtime/golden-trace.d.ts.map +1 -0
- package/core/dist/runtime/golden-trace.js.map +1 -0
- package/core/dist/runtime/governance-experience-contract.d.ts.map +1 -0
- package/core/dist/runtime/governance-experience-contract.js.map +1 -0
- package/core/dist/runtime/governance-experience.d.ts.map +1 -0
- package/core/dist/runtime/governance-experience.js.map +1 -0
- package/core/dist/runtime/governance-projection-contract.d.ts.map +1 -0
- package/core/dist/runtime/governance-projection-contract.js.map +1 -0
- package/core/dist/runtime/governance-projection.d.ts.map +1 -0
- package/core/dist/runtime/governance-projection.js.map +1 -0
- package/core/dist/runtime/governance-timestamp-schema.d.ts.map +1 -0
- package/core/dist/runtime/governance-timestamp-schema.js.map +1 -0
- package/core/dist/runtime/index.d.ts +446 -0
- package/core/dist/runtime/index.d.ts.map +1 -0
- package/core/dist/runtime/index.js +411 -0
- package/core/dist/runtime/index.js.map +1 -0
- package/core/dist/runtime/intent/index.d.ts.map +1 -0
- package/core/dist/runtime/intent/index.js.map +1 -0
- package/core/dist/runtime/intent/intent-browser.d.ts +23 -0
- package/core/dist/runtime/intent/intent-browser.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-browser.js +21 -0
- package/core/dist/runtime/intent/intent-browser.js.map +1 -0
- package/core/dist/runtime/intent/intent-decision-record.d.ts +125 -0
- package/core/dist/runtime/intent/intent-decision-record.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-decision-record.js +21 -0
- package/core/dist/runtime/intent/intent-decision-record.js.map +1 -0
- package/core/dist/runtime/intent/intent-doc-reader-port.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-doc-reader-port.js.map +1 -0
- package/core/dist/runtime/intent/intent-doc-version.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-doc-version.js.map +1 -0
- package/core/dist/runtime/intent/intent-doc.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-doc.js.map +1 -0
- package/core/dist/runtime/intent/intent-friction-block.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-friction-block.js.map +1 -0
- package/core/dist/runtime/intent/intent-hash.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-hash.js.map +1 -0
- package/core/dist/runtime/intent/intent-patch-proposal.d.ts.map +1 -0
- package/core/dist/runtime/intent/intent-patch-proposal.js.map +1 -0
- package/core/dist/runtime/internalization/adversarial-case.d.ts.map +1 -0
- package/core/dist/runtime/internalization/adversarial-case.js.map +1 -0
- package/core/dist/runtime/internalization/adversarial-feedback.d.ts.map +1 -0
- package/core/dist/runtime/internalization/adversarial-feedback.js.map +1 -0
- package/core/dist/runtime/internalization/approved-rule-revision.d.ts.map +1 -0
- package/core/dist/runtime/internalization/approved-rule-revision.js.map +1 -0
- package/core/dist/runtime/internalization/artifact-content-hash.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artifact-content-hash.js.map +1 -0
- package/core/dist/runtime/internalization/artifact-summary.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artifact-summary.js.map +1 -0
- package/core/dist/runtime/internalization/artificer-code-bearing.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artificer-code-bearing.js.map +1 -0
- package/core/dist/runtime/internalization/artificer-intent-preflight.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artificer-intent-preflight.js.map +1 -0
- package/core/dist/runtime/internalization/artificer-output.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artificer-output.js.map +1 -0
- package/core/dist/runtime/internalization/artificer-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artificer-prompt-builder.js.map +1 -0
- package/core/dist/runtime/internalization/artificer-run-correlation.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artificer-run-correlation.js.map +1 -0
- package/core/dist/runtime/internalization/artificer-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/artificer-runner.js.map +1 -0
- package/core/dist/runtime/internalization/bash-risk.d.ts.map +1 -0
- package/core/dist/runtime/internalization/bash-risk.js +908 -0
- package/core/dist/runtime/internalization/bash-risk.js.map +1 -0
- package/core/dist/runtime/internalization/behavior-example-pack.d.ts +47 -0
- package/core/dist/runtime/internalization/behavior-example-pack.d.ts.map +1 -0
- package/core/dist/runtime/internalization/behavior-example-pack.js +214 -0
- package/core/dist/runtime/internalization/behavior-example-pack.js.map +1 -0
- package/core/dist/runtime/internalization/candidate-identity.d.ts.map +1 -0
- package/core/dist/runtime/internalization/candidate-identity.js.map +1 -0
- package/core/dist/runtime/internalization/compile-result.d.ts.map +1 -0
- package/core/dist/runtime/internalization/compile-result.js.map +1 -0
- package/core/dist/runtime/internalization/consumer-evidence-preflight.d.ts.map +1 -0
- package/core/dist/runtime/internalization/consumer-evidence-preflight.js.map +1 -0
- package/core/dist/runtime/internalization/correction-proposal.d.ts.map +1 -0
- package/core/dist/runtime/internalization/correction-proposal.js +352 -0
- package/core/dist/runtime/internalization/correction-proposal.js.map +1 -0
- package/core/dist/runtime/internalization/deprecated-readiness.d.ts.map +1 -0
- package/core/dist/runtime/internalization/deprecated-readiness.js.map +1 -0
- package/core/dist/runtime/internalization/design-gate-facts.d.ts.map +1 -0
- package/core/dist/runtime/internalization/design-gate-facts.js.map +1 -0
- package/core/dist/runtime/internalization/diag-distiller-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/diag-distiller-runner.js.map +1 -0
- package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -0
- package/core/dist/runtime/internalization/diag-router-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/diag-router-runner.js.map +1 -0
- package/core/dist/runtime/internalization/dreamer-output.d.ts.map +1 -0
- package/core/dist/runtime/internalization/dreamer-output.js.map +1 -0
- package/core/dist/runtime/internalization/dreamer-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/internalization/dreamer-prompt-builder.js.map +1 -0
- package/core/dist/runtime/internalization/dreamer-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/dreamer-runner.js.map +1 -0
- package/core/dist/runtime/internalization/evaluator-output.d.ts.map +1 -0
- package/core/dist/runtime/internalization/evaluator-output.js.map +1 -0
- package/core/dist/runtime/internalization/evaluator-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/internalization/evaluator-prompt-builder.js.map +1 -0
- package/core/dist/runtime/internalization/evaluator-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/evaluator-runner.js.map +1 -0
- package/core/dist/runtime/internalization/evidence-readiness.d.ts.map +1 -0
- package/core/dist/runtime/internalization/evidence-readiness.js.map +1 -0
- package/core/dist/runtime/internalization/formation-context.d.ts.map +1 -0
- package/core/dist/runtime/internalization/formation-context.js.map +1 -0
- package/core/dist/runtime/internalization/golden-dogfood-fixtures.d.ts.map +1 -0
- package/core/dist/runtime/internalization/golden-dogfood-fixtures.js.map +1 -0
- package/core/dist/runtime/internalization/index.d.ts.map +1 -0
- package/core/dist/runtime/internalization/index.js.map +1 -0
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts.map +1 -0
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.js.map +1 -0
- package/core/dist/runtime/internalization/intent-contract.d.ts.map +1 -0
- package/core/dist/runtime/internalization/intent-contract.js.map +1 -0
- package/core/dist/runtime/internalization/internalization-consumer-decision.d.ts.map +1 -0
- package/core/dist/runtime/internalization/internalization-consumer-decision.js.map +1 -0
- package/core/dist/runtime/internalization/internalization-job-graph.d.ts.map +1 -0
- package/core/dist/runtime/internalization/internalization-job-graph.js.map +1 -0
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -0
- package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -0
- package/core/dist/runtime/internalization/internalization-route.d.ts.map +1 -0
- package/core/dist/runtime/internalization/internalization-route.js.map +1 -0
- package/core/dist/runtime/internalization/internalization-state-machine.d.ts.map +1 -0
- package/core/dist/runtime/internalization/internalization-state-machine.js.map +1 -0
- package/core/dist/runtime/internalization/internalization-task-guards.d.ts.map +1 -0
- package/core/dist/runtime/internalization/internalization-task-guards.js.map +1 -0
- package/core/dist/runtime/internalization/internalization-transition-decision.d.ts.map +1 -0
- package/core/dist/runtime/internalization/internalization-transition-decision.js.map +1 -0
- package/core/dist/runtime/internalization/legacy-rule-contract-scanner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/legacy-rule-contract-scanner.js.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-datasource.d.ts.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-datasource.js.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-metrics.d.ts.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-metrics.js.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-read-model.d.ts.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-read-model.js.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-types.d.ts.map +1 -0
- package/core/dist/runtime/internalization/lifecycle-types.js.map +1 -0
- package/core/dist/runtime/internalization/owner-decision-review.d.ts.map +1 -0
- package/core/dist/runtime/internalization/owner-decision-review.js.map +1 -0
- package/core/dist/runtime/internalization/owner-evidence-recovery.d.ts.map +1 -0
- package/core/dist/runtime/internalization/owner-evidence-recovery.js.map +1 -0
- package/core/dist/runtime/internalization/owner-resolution-service.d.ts.map +1 -0
- package/core/dist/runtime/internalization/owner-resolution-service.js.map +1 -0
- package/core/dist/runtime/internalization/owner-retry.d.ts.map +1 -0
- package/core/dist/runtime/internalization/owner-retry.js.map +1 -0
- package/core/dist/runtime/internalization/owner-review.d.ts.map +1 -0
- package/core/dist/runtime/internalization/owner-review.js.map +1 -0
- package/core/dist/runtime/internalization/peer-runner-contracts.d.ts.map +1 -0
- package/core/dist/runtime/internalization/peer-runner-contracts.js.map +1 -0
- package/core/dist/runtime/internalization/philosopher-output.d.ts.map +1 -0
- package/core/dist/runtime/internalization/philosopher-output.js.map +1 -0
- package/core/dist/runtime/internalization/philosopher-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/internalization/philosopher-prompt-builder.js.map +1 -0
- package/core/dist/runtime/internalization/philosopher-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/philosopher-runner.js.map +1 -0
- package/core/dist/runtime/internalization/pi-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime/internalization/pi-artifact-store.js.map +1 -0
- package/core/dist/runtime/internalization/pi-artifact.d.ts.map +1 -0
- package/core/dist/runtime/internalization/pi-artifact.js.map +1 -0
- package/core/dist/runtime/internalization/pitask-metadata.d.ts.map +1 -0
- package/core/dist/runtime/internalization/pitask-metadata.js +1030 -0
- package/core/dist/runtime/internalization/pitask-metadata.js.map +1 -0
- package/core/dist/runtime/internalization/prompt-serializer.d.ts.map +1 -0
- package/core/dist/runtime/internalization/prompt-serializer.js.map +1 -0
- package/core/dist/runtime/internalization/queue-actionability.d.ts.map +1 -0
- package/core/dist/runtime/internalization/queue-actionability.js.map +1 -0
- package/core/dist/runtime/internalization/refiner-rulehost-gate.d.ts.map +1 -0
- package/core/dist/runtime/internalization/refiner-rulehost-gate.js.map +1 -0
- package/core/dist/runtime/internalization/refiner-sandbox-wrapper.d.ts.map +1 -0
- package/core/dist/runtime/internalization/refiner-sandbox-wrapper.js.map +1 -0
- package/core/dist/runtime/internalization/repair-replay-resolver.d.ts.map +1 -0
- package/core/dist/runtime/internalization/repair-replay-resolver.js.map +1 -0
- package/core/dist/runtime/internalization/revision-reopen.d.ts.map +1 -0
- package/core/dist/runtime/internalization/revision-reopen.js.map +1 -0
- package/core/dist/runtime/internalization/rollout-reviewer-output.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rollout-reviewer-output.js.map +1 -0
- package/core/dist/runtime/internalization/rollout-reviewer-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rollout-reviewer-prompt-builder.js.map +1 -0
- package/core/dist/runtime/internalization/rollout-reviewer-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rollout-reviewer-runner.js.map +1 -0
- package/core/dist/runtime/internalization/router-context-evidence.d.ts.map +1 -0
- package/core/dist/runtime/internalization/router-context-evidence.js.map +1 -0
- package/core/dist/runtime/internalization/routing-policy.d.ts.map +1 -0
- package/core/dist/runtime/internalization/routing-policy.js.map +1 -0
- package/core/dist/runtime/internalization/rule-activation-contract.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-activation-contract.js.map +1 -0
- package/core/dist/runtime/internalization/rule-binding-revision.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-binding-revision.js.map +1 -0
- package/core/dist/runtime/internalization/rule-code-validator.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-code-validator.js.map +1 -0
- package/core/dist/runtime/internalization/rule-context-v2.d.ts +64 -0
- package/core/dist/runtime/internalization/rule-context-v2.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-context-v2.js +285 -0
- package/core/dist/runtime/internalization/rule-context-v2.js.map +1 -0
- package/core/dist/runtime/internalization/rule-host-adapter.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-host-adapter.js.map +1 -0
- package/core/dist/runtime/internalization/rule-host-contracts.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-host-contracts.js.map +1 -0
- package/core/dist/runtime/internalization/rule-host-evaluator.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-host-evaluator.js.map +1 -0
- package/core/dist/runtime/internalization/rule-host-helpers.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-host-helpers.js.map +1 -0
- package/core/dist/runtime/internalization/rule-host-input-builder.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-host-input-builder.js.map +1 -0
- package/core/dist/runtime/internalization/rule-host-validator.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-host-validator.js.map +1 -0
- package/core/dist/runtime/internalization/rule-reliability-validation.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-reliability-validation.js.map +1 -0
- package/core/dist/runtime/internalization/rule-source-correction.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rule-source-correction.js.map +1 -0
- package/core/dist/runtime/internalization/rulecode-verification-obligations.d.ts.map +1 -0
- package/core/dist/runtime/internalization/rulecode-verification-obligations.js.map +1 -0
- package/core/dist/runtime/internalization/scribe-output.d.ts.map +1 -0
- package/core/dist/runtime/internalization/scribe-output.js.map +1 -0
- package/core/dist/runtime/internalization/scribe-prompt-builder.d.ts.map +1 -0
- package/core/dist/runtime/internalization/scribe-prompt-builder.js.map +1 -0
- package/core/dist/runtime/internalization/scribe-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/scribe-runner.js.map +1 -0
- package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts.map +1 -0
- package/core/dist/runtime/internalization/split-diagnostician-runner.js.map +1 -0
- package/core/dist/runtime/internalization/template-generator.d.ts.map +1 -0
- package/core/dist/runtime/internalization/template-generator.js.map +1 -0
- package/core/dist/runtime/internalization/textual-basis-anchor.d.ts.map +1 -0
- package/core/dist/runtime/internalization/textual-basis-anchor.js.map +1 -0
- package/core/dist/runtime/internalization/tool-semantic-baseline.d.ts.map +1 -0
- package/core/dist/runtime/internalization/tool-semantic-baseline.js.map +1 -0
- package/core/dist/runtime/internalization/tool-semantic-registry.d.ts.map +1 -0
- package/core/dist/runtime/internalization/tool-semantic-registry.js.map +1 -0
- package/core/dist/runtime/internalization/v2-adversarial-cases.d.ts.map +1 -0
- package/core/dist/runtime/internalization/v2-adversarial-cases.js.map +1 -0
- package/core/dist/runtime/internalization-chain-integrity-read-model.d.ts.map +1 -0
- package/core/dist/runtime/internalization-chain-integrity-read-model.js.map +1 -0
- package/core/dist/runtime/internalization-integrity-remediation.d.ts.map +1 -0
- package/core/dist/runtime/internalization-integrity-remediation.js.map +1 -0
- package/core/dist/runtime/internalization-queue-read-model.d.ts.map +1 -0
- package/core/dist/runtime/internalization-queue-read-model.js.map +1 -0
- package/core/dist/runtime/intervention-evidence-normalizer.d.ts.map +1 -0
- package/core/dist/runtime/intervention-evidence-normalizer.js.map +1 -0
- package/core/dist/runtime/l1-hard-cap.d.ts.map +1 -0
- package/core/dist/runtime/l1-hard-cap.js.map +1 -0
- package/core/dist/runtime/language-directive.d.ts.map +1 -0
- package/core/dist/runtime/language-directive.js.map +1 -0
- package/core/dist/runtime/learning-lab/actor-action-output.d.ts.map +1 -0
- package/core/dist/runtime/learning-lab/actor-action-output.js.map +1 -0
- package/core/dist/runtime/mainline-contract.d.ts.map +1 -0
- package/core/dist/runtime/mainline-contract.js.map +1 -0
- package/core/dist/runtime/observer/agent-scheduler.d.ts.map +1 -0
- package/core/dist/runtime/observer/agent-scheduler.js.map +1 -0
- package/core/dist/runtime/observer/correction-observer.d.ts.map +1 -0
- package/core/dist/runtime/observer/correction-observer.js.map +1 -0
- package/core/dist/runtime/operator-health-read-model.d.ts.map +1 -0
- package/core/dist/runtime/operator-health-read-model.js +135 -0
- package/core/dist/runtime/operator-health-read-model.js.map +1 -0
- package/core/dist/runtime/owner-decision/owner-decision-view-contract.d.ts.map +1 -0
- package/core/dist/runtime/owner-decision/owner-decision-view-contract.js.map +1 -0
- package/core/dist/runtime/owner-decision/owner-decision-view.d.ts.map +1 -0
- package/core/dist/runtime/owner-decision/owner-decision-view.js.map +1 -0
- package/core/dist/runtime/owner-decision/semantic-selector.d.ts.map +1 -0
- package/core/dist/runtime/owner-decision/semantic-selector.js.map +1 -0
- package/core/dist/runtime/owner-identity.d.ts.map +1 -0
- package/core/dist/runtime/owner-identity.js.map +1 -0
- package/core/dist/runtime/pain-chain-read-model.d.ts.map +1 -0
- package/core/dist/runtime/pain-chain-read-model.js +327 -0
- package/core/dist/runtime/pain-chain-read-model.js.map +1 -0
- package/core/dist/runtime/pain-flood-simulation.d.ts.map +1 -0
- package/core/dist/runtime/pain-flood-simulation.js +152 -0
- package/core/dist/runtime/pain-flood-simulation.js.map +1 -0
- package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -0
- package/core/dist/runtime/pain-ingress-payload.js.map +1 -0
- package/core/dist/runtime/pain-ingress.d.ts.map +1 -0
- package/core/dist/runtime/pain-ingress.js.map +1 -0
- package/core/dist/runtime/pain-recall-capability.d.ts.map +1 -0
- package/core/dist/runtime/pain-recall-capability.js.map +1 -0
- package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -0
- package/core/dist/runtime/pain-recall-read-model.js.map +1 -0
- package/core/dist/runtime/pain-recall-snapshot-hooks.d.ts.map +1 -0
- package/core/dist/runtime/pain-recall-snapshot-hooks.js.map +1 -0
- package/core/dist/runtime/pain-signal-bridge.d.ts +389 -0
- package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -0
- package/core/dist/runtime/pain-signal-bridge.js +1460 -0
- package/core/dist/runtime/pain-signal-bridge.js.map +1 -0
- package/core/dist/runtime/pain-signal-observability.d.ts +36 -0
- package/core/dist/runtime/pain-signal-observability.d.ts.map +1 -0
- package/core/dist/runtime/pain-signal-observability.js.map +1 -0
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts +254 -0
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -0
- package/core/dist/runtime/pain-signal-runtime-factory.js +780 -0
- package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -0
- package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -0
- package/core/dist/runtime/pain-to-principle-service.js.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-domain.d.ts +89 -0
- package/core/dist/runtime/principle-reuse/reuse-domain.d.ts.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-domain.js +16 -0
- package/core/dist/runtime/principle-reuse/reuse-domain.js.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-evaluation-output.d.ts.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-evaluation-output.js.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-evaluation-runner.d.ts.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-evaluation-runner.js.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-proposal.d.ts.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-proposal.js.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-retrieval.d.ts.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-retrieval.js.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-shortlist.d.ts.map +1 -0
- package/core/dist/runtime/principle-reuse/reuse-shortlist.js.map +1 -0
- package/core/dist/runtime/principle-tree/ledger-codec.d.ts.map +1 -0
- package/core/dist/runtime/principle-tree/ledger-codec.js.map +1 -0
- package/core/dist/runtime/principle-tree/rule-candidate-binding.d.ts.map +1 -0
- package/core/dist/runtime/principle-tree/rule-candidate-binding.js.map +1 -0
- package/core/dist/runtime/product-telemetry/daily-identity.d.ts.map +1 -0
- package/core/dist/runtime/product-telemetry/daily-identity.js.map +1 -0
- package/core/dist/runtime/product-telemetry/snapshot-contract.d.ts.map +1 -0
- package/core/dist/runtime/product-telemetry/snapshot-contract.js.map +1 -0
- package/core/dist/runtime/proven-channel-baseline.d.ts.map +1 -0
- package/core/dist/runtime/proven-channel-baseline.js +547 -0
- package/core/dist/runtime/proven-channel-baseline.js.map +1 -0
- package/core/dist/runtime/pruning-read-model.d.ts.map +1 -0
- package/core/dist/runtime/pruning-read-model.js.map +1 -0
- package/core/dist/runtime/receipt-coverage.d.ts.map +1 -0
- package/core/dist/runtime/receipt-coverage.js.map +1 -0
- package/core/dist/runtime/recovery-actions-log.d.ts.map +1 -0
- package/core/dist/runtime/recovery-actions-log.js.map +1 -0
- package/core/dist/runtime/recovery-sweep-service.d.ts.map +1 -0
- package/core/dist/runtime/recovery-sweep-service.js.map +1 -0
- package/core/dist/runtime/remediation-contract.d.ts.map +1 -0
- package/core/dist/runtime/remediation-contract.js.map +1 -0
- package/core/dist/runtime/risk/index.d.ts.map +1 -0
- package/core/dist/runtime/risk/index.js.map +1 -0
- package/core/dist/runtime/risk/risk-calculator-policy.d.ts.map +1 -0
- package/core/dist/runtime/risk/risk-calculator-policy.js.map +1 -0
- package/core/dist/runtime/runner/base-peer-runner.d.ts.map +1 -0
- package/core/dist/runtime/runner/base-peer-runner.js.map +1 -0
- package/core/dist/runtime/runner/default-validator.d.ts.map +1 -0
- package/core/dist/runtime/runner/default-validator.js.map +1 -0
- package/core/dist/runtime/runner/diagnostician-validator.d.ts.map +1 -0
- package/core/dist/runtime/runner/diagnostician-validator.js.map +1 -0
- package/core/dist/runtime/runner/peer-runner-types.d.ts.map +1 -0
- package/core/dist/runtime/runner/peer-runner-types.js.map +1 -0
- package/core/dist/runtime/runner/runner-phase.d.ts.map +1 -0
- package/core/dist/runtime/runner/runner-phase.js.map +1 -0
- package/core/dist/runtime/runner/runner-result.d.ts.map +1 -0
- package/core/dist/runtime/runner/runner-result.js.map +1 -0
- package/core/dist/runtime/runtime-protocol.d.ts.map +1 -0
- package/core/dist/runtime/runtime-protocol.js.map +1 -0
- package/core/dist/runtime/runtime-state-handle.d.ts.map +1 -0
- package/core/dist/runtime/runtime-state-handle.js.map +1 -0
- package/core/dist/runtime/schema-conformance-read-model.d.ts.map +1 -0
- package/core/dist/runtime/schema-conformance-read-model.js.map +1 -0
- package/core/dist/runtime/schema-version.d.ts +20 -0
- package/core/dist/runtime/schema-version.d.ts.map +1 -0
- package/core/dist/runtime/schema-version.js +20 -0
- package/core/dist/runtime/schema-version.js.map +1 -0
- package/core/dist/runtime/signal-collector/confidence-gate.d.ts.map +1 -0
- package/core/dist/runtime/signal-collector/confidence-gate.js.map +1 -0
- package/core/dist/runtime/signal-collector/index.d.ts.map +1 -0
- package/core/dist/runtime/signal-collector/index.js.map +1 -0
- package/core/dist/runtime/signal-collector/keyword-stage.d.ts.map +1 -0
- package/core/dist/runtime/signal-collector/keyword-stage.js.map +1 -0
- package/core/dist/runtime/signal-collector/llm-stage.d.ts.map +1 -0
- package/core/dist/runtime/signal-collector/llm-stage.js.map +1 -0
- package/core/dist/runtime/signal-collector/signal-collector.d.ts.map +1 -0
- package/core/dist/runtime/signal-collector/signal-collector.js.map +1 -0
- package/core/dist/runtime/signal-collector/types.d.ts.map +1 -0
- package/core/dist/runtime/signal-collector/types.js.map +1 -0
- package/core/dist/runtime/stalled-diagnostician-task-read-model.d.ts.map +1 -0
- package/core/dist/runtime/stalled-diagnostician-task-read-model.js.map +1 -0
- package/core/dist/runtime/store/artifact/artifact-store.d.ts.map +1 -0
- package/core/dist/runtime/store/artifact/artifact-store.js.map +1 -0
- package/core/dist/runtime/store/artifact/index.d.ts.map +1 -0
- package/core/dist/runtime/store/artifact/index.js.map +1 -0
- package/core/dist/runtime/store/artifact/memory-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime/store/artifact/memory-artifact-store.js.map +1 -0
- package/core/dist/runtime/store/artifact/sqlite-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime/store/artifact/sqlite-artifact-store.js.map +1 -0
- package/core/dist/runtime/store/artifact/sqlite-pi-artifact-store.d.ts.map +1 -0
- package/core/dist/runtime/store/artifact/sqlite-pi-artifact-store.js.map +1 -0
- package/core/dist/runtime/store/candidate/admission-document.d.ts.map +1 -0
- package/core/dist/runtime/store/candidate/admission-document.js.map +1 -0
- package/core/dist/runtime/store/candidate/candidate-store.d.ts.map +1 -0
- package/core/dist/runtime/store/candidate/candidate-store.js.map +1 -0
- package/core/dist/runtime/store/candidate/index.d.ts.map +1 -0
- package/core/dist/runtime/store/candidate/index.js.map +1 -0
- package/core/dist/runtime/store/candidate/memory-candidate-store.d.ts.map +1 -0
- package/core/dist/runtime/store/candidate/memory-candidate-store.js.map +1 -0
- package/core/dist/runtime/store/candidate/recommendation-kind-resolver.d.ts.map +1 -0
- package/core/dist/runtime/store/candidate/recommendation-kind-resolver.js.map +1 -0
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.d.ts.map +1 -0
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.js.map +1 -0
- package/core/dist/runtime/store/commit/commit-store.d.ts.map +1 -0
- package/core/dist/runtime/store/commit/commit-store.js.map +1 -0
- package/core/dist/runtime/store/commit/diagnostician-committer.d.ts.map +1 -0
- package/core/dist/runtime/store/commit/diagnostician-committer.js.map +1 -0
- package/core/dist/runtime/store/commit/index.d.ts.map +1 -0
- package/core/dist/runtime/store/commit/index.js.map +1 -0
- package/core/dist/runtime/store/commit/memory-commit-store.d.ts.map +1 -0
- package/core/dist/runtime/store/commit/memory-commit-store.js.map +1 -0
- package/core/dist/runtime/store/commit/sqlite-commit-store.d.ts.map +1 -0
- package/core/dist/runtime/store/commit/sqlite-commit-store.js.map +1 -0
- package/core/dist/runtime/store/context/context-assembler.d.ts.map +1 -0
- package/core/dist/runtime/store/context/context-assembler.js.map +1 -0
- package/core/dist/runtime/store/context/index.d.ts.map +1 -0
- package/core/dist/runtime/store/context/index.js.map +1 -0
- package/core/dist/runtime/store/context/resilient-context-assembler.d.ts.map +1 -0
- package/core/dist/runtime/store/context/resilient-context-assembler.js.map +1 -0
- package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -0
- package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -0
- package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts.map +1 -0
- package/core/dist/runtime/store/context/trajectory-turn-reader.js.map +1 -0
- package/core/dist/runtime/store/design-gate/sqlite-design-gate-store.d.ts.map +1 -0
- package/core/dist/runtime/store/design-gate/sqlite-design-gate-store.js.map +1 -0
- package/core/dist/runtime/store/event-emitter.d.ts.map +1 -0
- package/core/dist/runtime/store/event-emitter.js.map +1 -0
- package/core/dist/runtime/store/history/history-query.d.ts.map +1 -0
- package/core/dist/runtime/store/history/history-query.js.map +1 -0
- package/core/dist/runtime/store/history/index.d.ts.map +1 -0
- package/core/dist/runtime/store/history/index.js.map +1 -0
- package/core/dist/runtime/store/history/resilient-history-query.d.ts.map +1 -0
- package/core/dist/runtime/store/history/resilient-history-query.js.map +1 -0
- package/core/dist/runtime/store/history/sqlite-history-query.d.ts.map +1 -0
- package/core/dist/runtime/store/history/sqlite-history-query.js.map +1 -0
- package/core/dist/runtime/store/intent/index.d.ts.map +1 -0
- package/core/dist/runtime/store/intent/index.js.map +1 -0
- package/core/dist/runtime/store/intent/sqlite-intent-decision-store.d.ts.map +1 -0
- package/core/dist/runtime/store/intent/sqlite-intent-decision-store.js.map +1 -0
- package/core/dist/runtime/store/intent/sqlite-intent-doc-version-store.d.ts.map +1 -0
- package/core/dist/runtime/store/intent/sqlite-intent-doc-version-store.js.map +1 -0
- package/core/dist/runtime/store/intervention-evidence-schema.d.ts.map +1 -0
- package/core/dist/runtime/store/intervention-evidence-schema.js.map +1 -0
- package/core/dist/runtime/store/lifecycle/index.d.ts.map +1 -0
- package/core/dist/runtime/store/lifecycle/index.js.map +1 -0
- package/core/dist/runtime/store/lifecycle/lease-manager.d.ts.map +1 -0
- package/core/dist/runtime/store/lifecycle/lease-manager.js.map +1 -0
- package/core/dist/runtime/store/lifecycle/recovery-sweep.d.ts.map +1 -0
- package/core/dist/runtime/store/lifecycle/recovery-sweep.js.map +1 -0
- package/core/dist/runtime/store/lifecycle/retry-policy.d.ts.map +1 -0
- package/core/dist/runtime/store/lifecycle/retry-policy.js.map +1 -0
- package/core/dist/runtime/store/pain/index.d.ts.map +1 -0
- package/core/dist/runtime/store/pain/index.js.map +1 -0
- package/core/dist/runtime/store/pain/sqlite-dead-letter-store.d.ts.map +1 -0
- package/core/dist/runtime/store/pain/sqlite-dead-letter-store.js.map +1 -0
- package/core/dist/runtime/store/pain-diagnosis/pain-diagnosis-store.d.ts.map +1 -0
- package/core/dist/runtime/store/pain-diagnosis/pain-diagnosis-store.js.map +1 -0
- package/core/dist/runtime/store/pain-diagnosis/sqlite-pain-diagnosis-store.d.ts.map +1 -0
- package/core/dist/runtime/store/pain-diagnosis/sqlite-pain-diagnosis-store.js.map +1 -0
- package/core/dist/runtime/store/reconciliation-cursor-store.d.ts.map +1 -0
- package/core/dist/runtime/store/reconciliation-cursor-store.js.map +1 -0
- package/core/dist/runtime/store/run/index.d.ts.map +1 -0
- package/core/dist/runtime/store/run/index.js.map +1 -0
- package/core/dist/runtime/store/run/memory-run-store.d.ts.map +1 -0
- package/core/dist/runtime/store/run/memory-run-store.js.map +1 -0
- package/core/dist/runtime/store/run/run-store.d.ts.map +1 -0
- package/core/dist/runtime/store/run/run-store.js.map +1 -0
- package/core/dist/runtime/store/run/sqlite-run-store.d.ts.map +1 -0
- package/core/dist/runtime/store/run/sqlite-run-store.js.map +1 -0
- package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -0
- package/core/dist/runtime/store/runtime-state-manager.js.map +1 -0
- package/core/dist/runtime/store/sqlite-connection.d.ts.map +1 -0
- package/core/dist/runtime/store/sqlite-connection.js.map +1 -0
- package/core/dist/runtime/store/sqlite-intervention-evidence-store.d.ts.map +1 -0
- package/core/dist/runtime/store/sqlite-intervention-evidence-store.js.map +1 -0
- package/core/dist/runtime/store/task/index.d.ts.map +1 -0
- package/core/dist/runtime/store/task/index.js.map +1 -0
- package/core/dist/runtime/store/task/memory-task-store.d.ts.map +1 -0
- package/core/dist/runtime/store/task/memory-task-store.js.map +1 -0
- package/core/dist/runtime/store/task/sqlite-approved-rule-revision.d.ts.map +1 -0
- package/core/dist/runtime/store/task/sqlite-approved-rule-revision.js.map +1 -0
- package/core/dist/runtime/store/task/sqlite-family-reopen.d.ts.map +1 -0
- package/core/dist/runtime/store/task/sqlite-family-reopen.js.map +1 -0
- package/core/dist/runtime/store/task/sqlite-task-store.d.ts.map +1 -0
- package/core/dist/runtime/store/task/sqlite-task-store.js.map +1 -0
- package/core/dist/runtime/store/task/task-store.d.ts.map +1 -0
- package/core/dist/runtime/store/task/task-store.js.map +1 -0
- package/core/dist/runtime/store/task/task-types.d.ts.map +1 -0
- package/core/dist/runtime/store/task/task-types.js.map +1 -0
- package/core/dist/runtime/store/trajectory/index.d.ts.map +1 -0
- package/core/dist/runtime/store/trajectory/index.js.map +1 -0
- package/core/dist/runtime/store/trajectory/source-trace-locator.d.ts.map +1 -0
- package/core/dist/runtime/store/trajectory/source-trace-locator.js.map +1 -0
- package/core/dist/runtime/store/trajectory/sqlite-source-trace-locator.d.ts.map +1 -0
- package/core/dist/runtime/store/trajectory/sqlite-source-trace-locator.js.map +1 -0
- package/core/dist/runtime/store/trajectory/sqlite-trajectory-locator.d.ts.map +1 -0
- package/core/dist/runtime/store/trajectory/sqlite-trajectory-locator.js.map +1 -0
- package/core/dist/runtime/store/trajectory/trajectory-locator.d.ts.map +1 -0
- package/core/dist/runtime/store/trajectory/trajectory-locator.js.map +1 -0
- package/core/dist/runtime/store/workspace-leak-guard.d.ts.map +1 -0
- package/core/dist/runtime/store/workspace-leak-guard.js.map +1 -0
- package/core/dist/runtime/story-a-demo.d.ts +77 -0
- package/core/dist/runtime/story-a-demo.d.ts.map +1 -0
- package/core/dist/runtime/story-a-demo.js.map +1 -0
- package/core/dist/runtime/synthetic-baseline.d.ts.map +1 -0
- package/core/dist/runtime/synthetic-baseline.js +116 -0
- package/core/dist/runtime/synthetic-baseline.js.map +1 -0
- package/core/dist/runtime/system-prompt-merge.d.ts.map +1 -0
- package/core/dist/runtime/system-prompt-merge.js.map +1 -0
- package/core/dist/runtime/task-status.d.ts.map +1 -0
- package/core/dist/runtime/task-status.js.map +1 -0
- package/core/dist/runtime/tools/agent-tool-contract.d.ts.map +1 -0
- package/core/dist/runtime/tools/agent-tool-contract.js.map +1 -0
- package/core/dist/runtime/tools/artificer-l2-tool-contract.d.ts.map +1 -0
- package/core/dist/runtime/tools/artificer-l2-tool-contract.js.map +1 -0
- package/core/dist/runtime/tools/artificer-output-typebox.d.ts.map +1 -0
- package/core/dist/runtime/tools/artificer-output-typebox.js.map +1 -0
- package/core/dist/runtime/tools/dreamer-output-typebox.d.ts.map +1 -0
- package/core/dist/runtime/tools/dreamer-output-typebox.js.map +1 -0
- package/core/dist/runtime/trajectory-schema.d.ts.map +1 -0
- package/core/dist/runtime/trajectory-schema.js.map +1 -0
- package/core/dist/runtime/types/artifact-lineage.d.ts.map +1 -0
- package/core/dist/runtime/types/artifact-lineage.js.map +1 -0
- package/core/dist/runtime/types/event-payload.d.ts.map +1 -0
- package/core/dist/runtime/types/event-payload.js.map +1 -0
- package/core/dist/runtime/types/event-types.d.ts +940 -0
- package/core/dist/runtime/types/event-types.d.ts.map +1 -0
- package/core/dist/runtime/types/event-types.js +520 -0
- package/core/dist/runtime/types/event-types.js.map +1 -0
- package/core/dist/runtime/types/evidence-chain-contract.d.ts +282 -0
- package/core/dist/runtime/types/evidence-chain-contract.d.ts.map +1 -0
- package/core/dist/runtime/types/evidence-chain-contract.js +1301 -0
- package/core/dist/runtime/types/evidence-chain-contract.js.map +1 -0
- package/core/dist/runtime/types/hygiene-types.d.ts.map +1 -0
- package/core/dist/runtime/types/hygiene-types.js.map +1 -0
- package/core/dist/runtime/types/index.d.ts +32 -0
- package/core/dist/runtime/types/index.d.ts.map +1 -0
- package/core/dist/runtime/types/index.js +21 -0
- package/core/dist/runtime/types/index.js.map +1 -0
- package/core/dist/runtime/types/intervention-evidence-contract.d.ts.map +1 -0
- package/core/dist/runtime/types/intervention-evidence-contract.js.map +1 -0
- package/core/dist/runtime/types/ledger-store.d.ts.map +1 -0
- package/core/dist/runtime/types/ledger-store.js.map +1 -0
- package/core/dist/runtime/types/pain-signal.d.ts.map +1 -0
- package/core/dist/runtime/types/pain-signal.js.map +1 -0
- package/core/dist/runtime/types/pd-task-types.d.ts.map +1 -0
- package/core/dist/runtime/types/pd-task-types.js.map +1 -0
- package/core/dist/runtime/types/principle-dependency.d.ts.map +1 -0
- package/core/dist/runtime/types/principle-dependency.js.map +1 -0
- package/core/dist/runtime/types/principle-enums.d.ts.map +1 -0
- package/core/dist/runtime/types/principle-enums.js.map +1 -0
- package/core/dist/runtime/types/principle-lifecycle-event.d.ts.map +1 -0
- package/core/dist/runtime/types/principle-lifecycle-event.js.map +1 -0
- package/core/dist/runtime/types/principle-schema.d.ts.map +1 -0
- package/core/dist/runtime/types/principle-schema.js.map +1 -0
- package/core/dist/runtime/types/principle-tree-store.d.ts.map +1 -0
- package/core/dist/runtime/types/principle-tree-store.js.map +1 -0
- package/core/dist/runtime/types/principle-value-metrics.d.ts.map +1 -0
- package/core/dist/runtime/types/principle-value-metrics.js.map +1 -0
- package/core/dist/runtime/types/replay-types.d.ts.map +1 -0
- package/core/dist/runtime/types/replay-types.js.map +1 -0
- package/core/dist/runtime/types/rule-candidate-binding.d.ts.map +1 -0
- package/core/dist/runtime/types/rule-candidate-binding.js.map +1 -0
- package/core/dist/trajectory-types.d.ts +1 -1
- package/core/dist/trajectory-types.d.ts.map +1 -1
- package/core/dist/workflow-funnel-loader.d.ts +1 -1
- package/core/dist/workflow-funnel-loader.d.ts.map +1 -1
- package/core/package.json +55 -55
- package/dist/installer.js +1 -1
- package/dist/installer.js.map +1 -1
- package/dist/installers/workbuddy-host-installer.js +1 -1
- package/dist/mvp-config.d.ts +4 -0
- package/dist/mvp-config.d.ts.map +1 -1
- package/dist/mvp-config.js +4 -0
- package/dist/mvp-config.js.map +1 -1
- package/dist/utils/config-file-io.d.ts +1 -1
- package/dist/utils/config-file-io.d.ts.map +1 -1
- package/dist/utils/config-file-io.js +1 -1
- package/dist/utils/config-file-io.js.map +1 -1
- package/dist/utils/env.js +1 -1
- package/dist/utils/env.js.map +1 -1
- package/host-runtime/dist/active-principle-prompt.d.ts +88 -3
- package/host-runtime/dist/active-principle-prompt.js +132 -41
- package/host-runtime/dist/adaptive-journal-reconciliation.js +1 -1
- package/host-runtime/dist/adaptive-principle-revalidation.d.ts +1 -1
- package/host-runtime/dist/adaptive-principle-revalidation.js +1 -1
- package/host-runtime/dist/behavior-example-pack-assembler.d.ts +2 -2
- package/host-runtime/dist/behavior-example-pack-assembler.js +6 -6
- package/host-runtime/dist/behavior-history.d.ts +1 -1
- package/host-runtime/dist/behavior-history.js +1 -1
- package/host-runtime/dist/cli-recovery-probe.d.ts +1 -1
- package/host-runtime/dist/codex-artificer-trusted-facts.d.ts +1 -1
- package/host-runtime/dist/codex-rule-context-provider.d.ts +1 -1
- package/host-runtime/dist/codex-rule-context-provider.js +1 -1
- package/host-runtime/dist/codex-worker-status.js +1 -1
- package/host-runtime/dist/design-gate-facts.d.ts +1 -1
- package/host-runtime/dist/design-gate-facts.js +1 -1
- package/host-runtime/dist/evaluator-runtime-context.d.ts +1 -1
- package/host-runtime/dist/evaluator-runtime-context.js +1 -1
- package/host-runtime/dist/governance-observation-store.js +1 -1
- package/host-runtime/dist/governance-signal-admission.d.ts +2 -2
- package/host-runtime/dist/governance-signal-admission.js +3 -3
- package/host-runtime/dist/host-liveness-contract.d.ts +1 -1
- package/host-runtime/dist/host-tool-declaration.d.ts +1 -1
- package/host-runtime/dist/host-tool-declaration.js +1 -1
- package/host-runtime/dist/host-tool-semantic-resolver.d.ts +1 -1
- package/host-runtime/dist/host-tool-semantic-resolver.js +1 -1
- package/host-runtime/dist/index.d.ts +11 -1
- package/host-runtime/dist/index.js +33 -15
- package/host-runtime/dist/internalization-consumer-cycle.d.ts +2 -2
- package/host-runtime/dist/internalization-consumer-cycle.js +2 -2
- package/host-runtime/dist/internalization-consumer-governance.d.ts +1 -1
- package/host-runtime/dist/internalization-consumer-governance.js +1 -1
- package/host-runtime/dist/intervention-evidence-ingress.d.ts +1 -1
- package/host-runtime/dist/intervention-evidence-ingress.js +1 -1
- package/host-runtime/dist/pd-config.d.ts +1 -1
- package/host-runtime/dist/pd-config.js +1 -1
- package/host-runtime/dist/product-telemetry/consent-store.js +1 -1
- package/host-runtime/dist/product-telemetry/exporter.d.ts +1 -1
- package/host-runtime/dist/product-telemetry/milestone-readers.d.ts +1 -1
- package/host-runtime/dist/product-telemetry/service.d.ts +1 -1
- package/host-runtime/dist/product-telemetry/service.js +1 -1
- package/host-runtime/dist/product-telemetry/workspace-scope.js +1 -1
- package/host-runtime/dist/production-pain-evidence.d.ts +1 -1
- package/host-runtime/dist/production-pain-evidence.js +3 -3
- package/host-runtime/dist/production-rulehost-gate.d.ts +1 -1
- package/host-runtime/dist/production-rulehost-gate.js +3 -3
- package/host-runtime/dist/prompt-activation-authority.d.ts +1 -1
- package/host-runtime/dist/prompt-activation-deliverability.d.ts +26 -16
- package/host-runtime/dist/prompt-activation-deliverability.js +60 -30
- package/host-runtime/dist/prompt-injection-budget-observation.d.ts +16 -5
- package/host-runtime/dist/prompt-injection-budget-observation.js +23 -9
- package/host-runtime/dist/prompt-injection-projection.d.ts +106 -49
- package/host-runtime/dist/prompt-injection-projection.js +190 -212
- package/host-runtime/dist/prompt-injection-status.d.ts +1 -1
- package/host-runtime/dist/prompt-injection-status.js +17 -8
- package/host-runtime/dist/signal-classifier.d.ts +2 -2
- package/host-runtime/dist/signal-classifier.js +3 -3
- package/host-runtime/dist/workbuddy-rule-context-provider.d.ts +1 -1
- package/host-runtime/dist/workbuddy-rule-context-provider.js +1 -1
- package/host-runtime/dist/workbuddy-worker-status.js +1 -1
- package/host-runtime/dist/workspace-behavior-evidence.d.ts +1 -1
- package/host-runtime/dist/workspace-behavior-evidence.js +2 -2
- package/host-runtime/dist/workspace-telemetry-emitter.d.ts +1 -1
- package/host-runtime/dist/workspace-telemetry-emitter.js +1 -1
- package/host-runtime/package.json +1 -1
- package/package.json +3 -3
- package/pd-cli/dist/commands/admission-gate.d.ts +1 -1
- package/pd-cli/dist/commands/admission-gate.d.ts.map +1 -1
- package/pd-cli/dist/commands/admission-gate.js +1 -1
- package/pd-cli/dist/commands/admission-gate.js.map +1 -1
- package/pd-cli/dist/commands/artifact.js +1 -1
- package/pd-cli/dist/commands/artifact.js.map +1 -1
- package/pd-cli/dist/commands/build-trajectory-evidence.d.ts +1 -1
- package/pd-cli/dist/commands/build-trajectory-evidence.d.ts.map +1 -1
- package/pd-cli/dist/commands/build-trajectory-evidence.js +1 -1
- package/pd-cli/dist/commands/build-trajectory-evidence.js.map +1 -1
- package/pd-cli/dist/commands/candidate.d.ts +1 -1
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
- package/pd-cli/dist/commands/candidate.js +1 -1
- package/pd-cli/dist/commands/candidate.js.map +1 -1
- package/pd-cli/dist/commands/codex-reconcile.js +2 -2
- package/pd-cli/dist/commands/codex-reconcile.js.map +1 -1
- package/pd-cli/dist/commands/codex-setup.js +1 -1
- package/pd-cli/dist/commands/codex-setup.js.map +1 -1
- package/pd-cli/dist/commands/console.d.ts +1 -1
- package/pd-cli/dist/commands/console.js +5 -5
- package/pd-cli/dist/commands/console.js.map +1 -1
- package/pd-cli/dist/commands/demo-story-a.d.ts.map +1 -1
- package/pd-cli/dist/commands/demo-story-a.js +18 -8
- package/pd-cli/dist/commands/demo-story-a.js.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +2 -2
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/health-codex.js +2 -2
- package/pd-cli/dist/commands/health-codex.js.map +1 -1
- package/pd-cli/dist/commands/health.d.ts +3 -3
- package/pd-cli/dist/commands/health.js +4 -4
- package/pd-cli/dist/commands/health.js.map +1 -1
- package/pd-cli/dist/commands/intent.d.ts +1 -1
- package/pd-cli/dist/commands/intent.d.ts.map +1 -1
- package/pd-cli/dist/commands/intent.js +116 -23
- package/pd-cli/dist/commands/intent.js.map +1 -1
- package/pd-cli/dist/commands/legacy-cleanup.js +1 -1
- package/pd-cli/dist/commands/legacy-cleanup.js.map +1 -1
- package/pd-cli/dist/commands/legacy-import.js +2 -2
- package/pd-cli/dist/commands/pain-recall.js +1 -1
- package/pd-cli/dist/commands/pain-recall.js.map +1 -1
- package/pd-cli/dist/commands/pain-record.js +1 -1
- package/pd-cli/dist/commands/pain-record.js.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +1 -1
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/principles-stats.js +1 -1
- package/pd-cli/dist/commands/principles-stats.js.map +1 -1
- package/pd-cli/dist/commands/proven-channel-baseline.js +1 -1
- package/pd-cli/dist/commands/proven-channel-baseline.js.map +1 -1
- package/pd-cli/dist/commands/recovery-reachability-probe.d.ts +1 -1
- package/pd-cli/dist/commands/recovery-reachability-probe.d.ts.map +1 -1
- package/pd-cli/dist/commands/rulecode.d.ts +1 -1
- package/pd-cli/dist/commands/rulecode.d.ts.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-activation.d.ts +3 -3
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +10 -6
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/dist/commands/runtime-artifact-repair.js +1 -1
- package/pd-cli/dist/commands/runtime-artifact-repair.js.map +1 -1
- package/pd-cli/dist/commands/runtime-canary.js +1 -1
- package/pd-cli/dist/commands/runtime-canary.js.map +1 -1
- package/pd-cli/dist/commands/runtime-compatibility-scan.js +1 -1
- package/pd-cli/dist/commands/runtime-compatibility-scan.js.map +1 -1
- package/pd-cli/dist/commands/runtime-diagnostics-export.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-diagnostics-export.js +8 -3
- package/pd-cli/dist/commands/runtime-diagnostics-export.js.map +1 -1
- package/pd-cli/dist/commands/runtime-health-snapshot.js +2 -2
- package/pd-cli/dist/commands/runtime-health-snapshot.js.map +1 -1
- package/pd-cli/dist/commands/runtime-init.js +3 -3
- package/pd-cli/dist/commands/runtime-init.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-audit-artificer-evidence.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-audit-artificer-evidence.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-evidence.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-evidence.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-integrity.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-queue.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-queue.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-retry.js +1 -1
- package/pd-cli/dist/commands/runtime-internalization-retry.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +2 -2
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js +3 -3
- package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js +2 -2
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -1
- package/pd-cli/dist/commands/runtime-pruning.js +1 -1
- package/pd-cli/dist/commands/runtime-pruning.js.map +1 -1
- package/pd-cli/dist/commands/runtime-recovery-failed-task.js +1 -1
- package/pd-cli/dist/commands/runtime-recovery-failed-task.js.map +1 -1
- package/pd-cli/dist/commands/runtime-recovery-failed-tasks.js +1 -1
- package/pd-cli/dist/commands/runtime-recovery-failed-tasks.js.map +1 -1
- package/pd-cli/dist/commands/runtime-recovery.js +1 -1
- package/pd-cli/dist/commands/runtime-recovery.js.map +1 -1
- package/pd-cli/dist/commands/runtime-uat.js +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/commands/trace.js +1 -1
- package/pd-cli/dist/commands/trace.js.map +1 -1
- package/pd-cli/dist/commands/workbuddy-worker.js +1 -1
- package/pd-cli/dist/commands/workbuddy-worker.js.map +1 -1
- package/pd-cli/dist/config-reader.d.ts +1 -1
- package/pd-cli/dist/config-reader.d.ts.map +1 -1
- package/pd-cli/dist/config-reader.js +1 -1
- package/pd-cli/dist/config-reader.js.map +1 -1
- package/pd-cli/dist/legacy/session-history-import.d.ts +2 -2
- package/pd-cli/dist/legacy/session-history-import.js +2 -2
- package/pd-cli/dist/services/admission-write-gate.d.ts +1 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.js +1 -1
- package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
- package/pd-cli/dist/services/config-doctor.js +1 -1
- package/pd-cli/dist/services/config-doctor.js.map +1 -1
- package/pd-cli/dist/services/demo-rule-compiler.d.ts +1 -1
- package/pd-cli/dist/services/demo-rule-compiler.d.ts.map +1 -1
- package/pd-cli/dist/services/demo-rule-compiler.js +1 -1
- package/pd-cli/dist/services/demo-rule-compiler.js.map +1 -1
- package/pd-cli/dist/services/demo-story-a-runner.d.ts +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 +3 -3
- package/pd-cli/dist/services/demo-story-a-runner.js.map +1 -1
- package/pd-cli/dist/services/mainline-snapshot-assembler.d.ts +3 -3
- package/pd-cli/dist/services/mainline-snapshot-assembler.d.ts.map +1 -1
- package/pd-cli/dist/services/mainline-snapshot-assembler.js +3 -3
- package/pd-cli/dist/services/mainline-snapshot-assembler.js.map +1 -1
- package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts +1 -1
- package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/pain-flood-simulation-runner.js +12 -12
- package/pd-cli/dist/services/pain-flood-simulation-runner.js.map +1 -1
- package/pd-cli/dist/services/pd-config-loader.d.ts +1 -1
- package/pd-cli/dist/services/pd-config-loader.d.ts.map +1 -1
- package/pd-cli/dist/services/pd-config-loader.js +1 -1
- package/pd-cli/dist/services/pd-config-loader.js.map +1 -1
- package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts +1 -1
- package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/proven-channel-baseline-runner.js +1 -1
- package/pd-cli/dist/services/proven-channel-baseline-runner.js.map +1 -1
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.d.ts +2 -2
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.d.ts.map +1 -1
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.js +1 -1
- package/pd-cli/dist/services/resolve-runtime-from-pd-config.js.map +1 -1
- package/pd-cli/dist/services/reuse-gated-intake.d.ts +2 -2
- package/pd-cli/dist/services/reuse-gated-intake.d.ts.map +1 -1
- package/pd-cli/dist/services/reuse-gated-intake.js +1 -1
- package/pd-cli/dist/services/reuse-gated-intake.js.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts +3 -3
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.js +2 -2
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
- package/pd-cli/dist/services/rulehost-readiness.js +1 -1
- package/pd-cli/dist/services/rulehost-readiness.js.map +1 -1
- package/pd-cli/dist/services/runtime-adapter-resolver.d.ts +2 -2
- package/pd-cli/dist/services/runtime-adapter-resolver.d.ts.map +1 -1
- package/pd-cli/dist/services/runtime-adapter-resolver.js +1 -1
- package/pd-cli/dist/services/runtime-adapter-resolver.js.map +1 -1
- package/pd-cli/dist/services/synthetic-baseline-runner.d.ts +1 -1
- package/pd-cli/dist/services/synthetic-baseline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/synthetic-baseline-runner.js +15 -15
- package/pd-cli/dist/services/synthetic-baseline-runner.js.map +1 -1
- package/pd-cli/dist/services/workspace-telemetry.js +1 -1
- package/pd-cli/dist/services/workspace-telemetry.js.map +1 -1
- package/pd-cli/dist/services/workspace-tool-semantics.d.ts +1 -1
- package/pd-cli/dist/services/workspace-tool-semantics.d.ts.map +1 -1
- package/pd-cli/package.json +1 -1
- package/pd-mcp-server/dist/envelope.d.ts +1 -1
- package/pd-mcp-server/dist/envelope.js +1 -1
- package/pd-mcp-server/dist/server.d.ts +2 -2
- package/pd-mcp-server/dist/server.js +2 -2
- package/pd-mcp-server/dist/version.d.ts +1 -1
- package/pd-mcp-server/dist/version.js +1 -1
- package/pd-mcp-server/package.json +1 -1
- package/plugin/dist/bundle.js +478 -482
- package/plugin/dist/commands/promote-impl.d.ts +1 -1
- package/plugin/dist/constants/tool-semantics.d.ts +1 -1
- package/plugin/dist/core/correction-types.d.ts +2 -2
- package/plugin/dist/core/event-log.d.ts +3 -3
- package/plugin/dist/core/evolution-types.d.ts +5 -5
- package/plugin/dist/core/intent-doc-reader-adapter.d.ts +1 -1
- package/plugin/dist/core/intent-doc-reader.d.ts +1 -1
- package/plugin/dist/core/pd-task-types.d.ts +2 -2
- package/plugin/dist/core/principle-compiler/code-validator.d.ts +2 -2
- package/plugin/dist/core/principle-compiler/compiler.d.ts +2 -2
- package/plugin/dist/core/principle-compiler/template-generator.d.ts +1 -1
- package/plugin/dist/core/principle-internalization/filesystem-lifecycle-datasource.d.ts +2 -2
- package/plugin/dist/core/principle-internalization/lifecycle-read-model.d.ts +5 -5
- package/plugin/dist/core/principle-internalization/principle-lifecycle-service.d.ts +3 -3
- package/plugin/dist/core/principle-tree-ledger.d.ts +1 -1
- package/plugin/dist/core/replay-engine.d.ts +1 -1
- package/plugin/dist/core/rule-context-assembler.d.ts +1 -1
- package/plugin/dist/core/rule-host.d.ts +3 -3
- package/plugin/dist/core/runtime-prompt-activation-reader.d.ts +30 -0
- package/plugin/dist/core/signal-collector-host.d.ts +28 -8
- package/plugin/dist/core/workspace-context.d.ts +1 -1
- package/plugin/dist/governance-audit.d.ts +2 -2
- package/plugin/dist/governance-audit.js +1 -1
- package/plugin/dist/hooks/gate.d.ts +1 -1
- package/plugin/dist/hooks/message-sanitize.d.ts +1 -1
- package/plugin/dist/hooks/pain-ingress-adapter.d.ts +1 -1
- package/plugin/dist/hooks/prompt-presence-expectations.d.ts +69 -0
- package/plugin/dist/hooks/prompt.d.ts +40 -0
- package/plugin/dist/hooks/raw-observation-adapter.d.ts +2 -2
- package/plugin/dist/hooks/raw-observation-types.d.ts +2 -2
- package/plugin/dist/hooks/trajectory-evidence.d.ts +1 -1
- package/plugin/dist/hooks/triage-adapter.d.ts +1 -1
- package/plugin/dist/host-runtime/openclaw-host-runtime.d.ts +24 -1
- package/plugin/dist/index.d.ts +17 -10
- package/plugin/dist/openclaw-sdk.d.ts +16 -0
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/dist/service/correction-observer-service.d.ts +1 -1
- package/plugin/dist/service/keyword-optimization-service.d.ts +2 -2
- package/plugin/dist/types/event-types.d.ts +2 -2
- package/plugin/dist/types/hygiene-types.d.ts +2 -2
- package/plugin/dist/types/principle-tree-schema.d.ts +2 -2
- package/plugin/dist/utils/workspace-resolver.d.ts +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/release-manager/dist/installer.js +1 -1
- package/release-manager/dist/installers/workbuddy-host-installer.js +1 -1
- package/release-manager/dist/mvp-config.js +4 -0
- package/release-manager/dist/utils/config-file-io.js +1 -1
- package/release-manager/dist/utils/env.js +1 -1
- package/release-manager/package.json +1 -1
- package/workbuddy-adapter/dist/pd-hook.js +3 -3
- package/workbuddy-adapter/dist/tool-semantics.d.ts +1 -1
- package/workbuddy-adapter/dist/tool-semantics.js +1 -1
- package/workbuddy-adapter/dist/workbuddy-evidence-recorder.d.ts +1 -1
- package/workbuddy-adapter/dist/worker/workspace-worker.js +2 -2
- package/workbuddy-adapter/package.json +1 -1
- package/workbuddy-adapter/plugin/.codebuddy-plugin/plugin.json +1 -1
- package/core/dist/runtime-v2/activation/activation-control-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/activation-control-types.js.map +0 -1
- package/core/dist/runtime-v2/activation/activation-dispatcher.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/activation-dispatcher.js.map +0 -1
- package/core/dist/runtime-v2/activation/activation-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/activation-types.js.map +0 -1
- package/core/dist/runtime-v2/activation/adaptive-delivery-record.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/adaptive-delivery-record.js.map +0 -1
- package/core/dist/runtime-v2/activation/adaptive-principle-intervention.d.ts +0 -83
- package/core/dist/runtime-v2/activation/adaptive-principle-intervention.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/adaptive-principle-intervention.js.map +0 -1
- package/core/dist/runtime-v2/activation/approval-completion-service.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/approval-completion-service.js.map +0 -1
- package/core/dist/runtime-v2/activation/approval-queue.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/approval-queue.js.map +0 -1
- package/core/dist/runtime-v2/activation/approval-review-guard.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/approval-review-guard.js.map +0 -1
- package/core/dist/runtime-v2/activation/index.d.ts +0 -48
- package/core/dist/runtime-v2/activation/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/index.js +0 -38
- package/core/dist/runtime-v2/activation/index.js.map +0 -1
- package/core/dist/runtime-v2/activation/ledger-identity.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/ledger-identity.js.map +0 -1
- package/core/dist/runtime-v2/activation/low-risk-writers.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/low-risk-writers.js.map +0 -1
- package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/memory-activation-state-store.js.map +0 -1
- package/core/dist/runtime-v2/activation/memory-approval-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/memory-approval-store.js.map +0 -1
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/openclaw-promotion-checks.js.map +0 -1
- package/core/dist/runtime-v2/activation/production-gate-deps.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/production-gate-deps.js.map +0 -1
- package/core/dist/runtime-v2/activation/promotion-evidence-snapshot.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/promotion-evidence-snapshot.js.map +0 -1
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.js.map +0 -1
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/promotion-readiness-reader.js.map +0 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +0 -118
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js +0 -209
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +0 -1
- package/core/dist/runtime-v2/activation/prompt-budget-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/prompt-budget-policy.js +0 -326
- package/core/dist/runtime-v2/activation/prompt-budget-policy.js.map +0 -1
- package/core/dist/runtime-v2/activation/prompt-replacement.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/prompt-replacement.js.map +0 -1
- package/core/dist/runtime-v2/activation/recovery-composition.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/recovery-composition.js.map +0 -1
- package/core/dist/runtime-v2/activation/recovery-control-surfaces.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/recovery-control-surfaces.js.map +0 -1
- package/core/dist/runtime-v2/activation/rule-replacement.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/rule-replacement.js.map +0 -1
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.js.map +0 -1
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js.map +0 -1
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/rulecode-shadow-summary.js.map +0 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.js.map +0 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +0 -1
- package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/sqlite-approval-store.js.map +0 -1
- package/core/dist/runtime-v2/activation/writers/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/writers/index.js.map +0 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation/writers/rule-host-writer.js.map +0 -1
- package/core/dist/runtime-v2/activation-compatibility-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/activation-compatibility-read-model.js.map +0 -1
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js.map +0 -1
- package/core/dist/runtime-v2/adapter/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/index.js.map +0 -1
- package/core/dist/runtime-v2/adapter/json-extractor.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/json-extractor.js.map +0 -1
- package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.js.map +0 -1
- package/core/dist/runtime-v2/adapter/output-repair-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/output-repair-contract.js +0 -99
- package/core/dist/runtime-v2/adapter/output-repair-contract.js.map +0 -1
- package/core/dist/runtime-v2/adapter/output-schema-registry.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/output-schema-registry.js.map +0 -1
- package/core/dist/runtime-v2/adapter/pi-ai-catalog.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/pi-ai-catalog.js.map +0 -1
- package/core/dist/runtime-v2/adapter/pi-ai-http-transport.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/pi-ai-http-transport.js.map +0 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +0 -1489
- package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +0 -1
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts +0 -98
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js +0 -243
- package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js.map +0 -1
- package/core/dist/runtime-v2/adapter/schema-json-converter.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/schema-json-converter.js.map +0 -1
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js.map +0 -1
- package/core/dist/runtime-v2/adapter/split-pipeline-fixtures.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/split-pipeline-fixtures.js.map +0 -1
- package/core/dist/runtime-v2/adapter/structured-output-repair.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/structured-output-repair.js +0 -298
- package/core/dist/runtime-v2/adapter/structured-output-repair.js.map +0 -1
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js.map +0 -1
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +0 -1
- package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +0 -1
- package/core/dist/runtime-v2/admission-gate.d.ts.map +0 -1
- package/core/dist/runtime-v2/admission-gate.js.map +0 -1
- package/core/dist/runtime-v2/adversarial-loop.d.ts.map +0 -1
- package/core/dist/runtime-v2/adversarial-loop.js.map +0 -1
- package/core/dist/runtime-v2/agent-spec.d.ts.map +0 -1
- package/core/dist/runtime-v2/agent-spec.js.map +0 -1
- package/core/dist/runtime-v2/bridge-result-shaper.d.ts.map +0 -1
- package/core/dist/runtime-v2/bridge-result-shaper.js.map +0 -1
- package/core/dist/runtime-v2/build-l2-principle-reader.d.ts.map +0 -1
- package/core/dist/runtime-v2/build-l2-principle-reader.js.map +0 -1
- package/core/dist/runtime-v2/candidate-audit.d.ts.map +0 -1
- package/core/dist/runtime-v2/candidate-audit.js.map +0 -1
- package/core/dist/runtime-v2/candidate-intake-service.d.ts.map +0 -1
- package/core/dist/runtime-v2/candidate-intake-service.js.map +0 -1
- package/core/dist/runtime-v2/candidate-intake.d.ts.map +0 -1
- package/core/dist/runtime-v2/candidate-intake.js.map +0 -1
- package/core/dist/runtime-v2/cli/diagnose.d.ts.map +0 -1
- package/core/dist/runtime-v2/cli/diagnose.js.map +0 -1
- package/core/dist/runtime-v2/cli/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/cli/index.js.map +0 -1
- package/core/dist/runtime-v2/cli/probe.d.ts.map +0 -1
- package/core/dist/runtime-v2/cli/probe.js.map +0 -1
- package/core/dist/runtime-v2/config/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/index.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-agent-binding.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-agent-binding.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-defaults.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-defaults.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-effective.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-effective.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-feature-flags.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-feature-flags.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-redaction.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-redaction.js +0 -202
- package/core/dist/runtime-v2/config/pd-config-redaction.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-types.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-validate.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-config-validate.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-profile-constants.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-profile-constants.js.map +0 -1
- package/core/dist/runtime-v2/config/pd-validate-profile.d.ts.map +0 -1
- package/core/dist/runtime-v2/config/pd-validate-profile.js.map +0 -1
- package/core/dist/runtime-v2/context-payload.d.ts.map +0 -1
- package/core/dist/runtime-v2/context-payload.js.map +0 -1
- package/core/dist/runtime-v2/control-plane-triage.d.ts.map +0 -1
- package/core/dist/runtime-v2/control-plane-triage.js.map +0 -1
- package/core/dist/runtime-v2/core-principles/core-axiom-block.d.ts.map +0 -1
- package/core/dist/runtime-v2/core-principles/core-axiom-block.js.map +0 -1
- package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts.map +0 -1
- package/core/dist/runtime-v2/core-principles/core-principle-registry.js.map +0 -1
- package/core/dist/runtime-v2/core-principles/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/core-principles/index.js.map +0 -1
- package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.d.ts.map +0 -1
- package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.js.map +0 -1
- package/core/dist/runtime-v2/correction/correction-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/correction/correction-types.js.map +0 -1
- package/core/dist/runtime-v2/correction/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/correction/index.js.map +0 -1
- package/core/dist/runtime-v2/detection/detection-funnel-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/detection/detection-funnel-policy.js.map +0 -1
- package/core/dist/runtime-v2/detection/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/detection/index.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/diag-distiller-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/diag-distiller-output.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/evidence-ref-binding.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/evidence-ref-binding.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician/router-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician/router-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician-association-shadow.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician-association-shadow.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician-association-validation.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician-association-validation.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician-capability.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician-capability.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician-output.js.map +0 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/error-categories.d.ts +0 -42
- package/core/dist/runtime-v2/error-categories.d.ts.map +0 -1
- package/core/dist/runtime-v2/error-categories.js +0 -122
- package/core/dist/runtime-v2/error-categories.js.map +0 -1
- package/core/dist/runtime-v2/evidence-guards.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-guards.js.map +0 -1
- package/core/dist/runtime-v2/evidence-sanitizer.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-sanitizer.js.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/index.js.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/observation-resolver.js.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/source-descriptors.js.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/triage-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/triage-policy.js.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/trigger-controller.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/trigger-controller.js.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/types.d.ts.map +0 -1
- package/core/dist/runtime-v2/evidence-triage/types.js.map +0 -1
- package/core/dist/runtime-v2/evolution/evolution-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/evolution/evolution-types.js.map +0 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +0 -427
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +0 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.d.ts.map +0 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js +0 -273
- package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js.map +0 -1
- package/core/dist/runtime-v2/feature-flags/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/feature-flags/index.js.map +0 -1
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.d.ts.map +0 -1
- package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.js.map +0 -1
- package/core/dist/runtime-v2/feature-flags/surface-guard-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/feature-flags/surface-guard-policy.js.map +0 -1
- package/core/dist/runtime-v2/feedback/create-report.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/create-report.js.map +0 -1
- package/core/dist/runtime-v2/feedback/feedback-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/feedback-types.js.map +0 -1
- package/core/dist/runtime-v2/feedback/fingerprint.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/fingerprint.js.map +0 -1
- package/core/dist/runtime-v2/feedback/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/index.js +0 -18
- package/core/dist/runtime-v2/feedback/index.js.map +0 -1
- package/core/dist/runtime-v2/feedback/internal-guards.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/internal-guards.js.map +0 -1
- package/core/dist/runtime-v2/feedback/pending-agent-draft-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/pending-agent-draft-store.js.map +0 -1
- package/core/dist/runtime-v2/feedback/privacy-preview.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/privacy-preview.js.map +0 -1
- package/core/dist/runtime-v2/feedback/redact-sensitive.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/redact-sensitive.js +0 -301
- package/core/dist/runtime-v2/feedback/redact-sensitive.js.map +0 -1
- package/core/dist/runtime-v2/feedback/render-github-url.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/render-github-url.js.map +0 -1
- package/core/dist/runtime-v2/feedback/render-markdown.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/render-markdown.js.map +0 -1
- package/core/dist/runtime-v2/feedback/safe-stringify.d.ts.map +0 -1
- package/core/dist/runtime-v2/feedback/safe-stringify.js.map +0 -1
- package/core/dist/runtime-v2/full-trace-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/full-trace-contract.js +0 -466
- package/core/dist/runtime-v2/full-trace-contract.js.map +0 -1
- package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +0 -1
- package/core/dist/runtime-v2/golden-trace-replay-validator.js.map +0 -1
- package/core/dist/runtime-v2/golden-trace.d.ts.map +0 -1
- package/core/dist/runtime-v2/golden-trace.js.map +0 -1
- package/core/dist/runtime-v2/governance-experience-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/governance-experience-contract.js.map +0 -1
- package/core/dist/runtime-v2/governance-experience.d.ts.map +0 -1
- package/core/dist/runtime-v2/governance-experience.js.map +0 -1
- package/core/dist/runtime-v2/governance-projection-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/governance-projection-contract.js.map +0 -1
- package/core/dist/runtime-v2/governance-projection.d.ts.map +0 -1
- package/core/dist/runtime-v2/governance-projection.js.map +0 -1
- package/core/dist/runtime-v2/governance-timestamp-schema.d.ts.map +0 -1
- package/core/dist/runtime-v2/governance-timestamp-schema.js.map +0 -1
- package/core/dist/runtime-v2/index.d.ts +0 -446
- package/core/dist/runtime-v2/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/index.js +0 -409
- package/core/dist/runtime-v2/index.js.map +0 -1
- package/core/dist/runtime-v2/intent/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/index.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-browser.d.ts +0 -23
- package/core/dist/runtime-v2/intent/intent-browser.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-browser.js +0 -21
- package/core/dist/runtime-v2/intent/intent-browser.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-decision-record.d.ts +0 -125
- package/core/dist/runtime-v2/intent/intent-decision-record.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-decision-record.js +0 -21
- package/core/dist/runtime-v2/intent/intent-decision-record.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-doc-reader-port.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-doc-reader-port.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-doc-version.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-doc-version.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-doc.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-doc.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-friction-block.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-friction-block.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-hash.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-hash.js.map +0 -1
- package/core/dist/runtime-v2/intent/intent-patch-proposal.d.ts.map +0 -1
- package/core/dist/runtime-v2/intent/intent-patch-proposal.js.map +0 -1
- package/core/dist/runtime-v2/internalization/adversarial-case.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/adversarial-case.js.map +0 -1
- package/core/dist/runtime-v2/internalization/adversarial-feedback.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/adversarial-feedback.js.map +0 -1
- package/core/dist/runtime-v2/internalization/approved-rule-revision.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/approved-rule-revision.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artifact-content-hash.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artifact-content-hash.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artifact-summary.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artifact-summary.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-code-bearing.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-code-bearing.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-intent-preflight.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-intent-preflight.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-output.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-run-correlation.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-run-correlation.js.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/bash-risk.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/bash-risk.js +0 -905
- package/core/dist/runtime-v2/internalization/bash-risk.js.map +0 -1
- package/core/dist/runtime-v2/internalization/behavior-example-pack.d.ts +0 -47
- package/core/dist/runtime-v2/internalization/behavior-example-pack.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/behavior-example-pack.js +0 -214
- package/core/dist/runtime-v2/internalization/behavior-example-pack.js.map +0 -1
- package/core/dist/runtime-v2/internalization/candidate-identity.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/candidate-identity.js.map +0 -1
- package/core/dist/runtime-v2/internalization/compile-result.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/compile-result.js.map +0 -1
- package/core/dist/runtime-v2/internalization/consumer-evidence-preflight.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/consumer-evidence-preflight.js.map +0 -1
- package/core/dist/runtime-v2/internalization/correction-proposal.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/correction-proposal.js +0 -333
- package/core/dist/runtime-v2/internalization/correction-proposal.js.map +0 -1
- package/core/dist/runtime-v2/internalization/deprecated-readiness.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/deprecated-readiness.js.map +0 -1
- package/core/dist/runtime-v2/internalization/design-gate-facts.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/design-gate-facts.js.map +0 -1
- package/core/dist/runtime-v2/internalization/diag-distiller-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/diag-distiller-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/diag-rootcause-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/diag-router-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/diag-router-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/dreamer-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/dreamer-output.js.map +0 -1
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/dreamer-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/evaluator-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/evaluator-output.js.map +0 -1
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/evidence-readiness.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/evidence-readiness.js.map +0 -1
- package/core/dist/runtime-v2/internalization/formation-context.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/formation-context.js.map +0 -1
- package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.js.map +0 -1
- package/core/dist/runtime-v2/internalization/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/index.js.map +0 -1
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js.map +0 -1
- package/core/dist/runtime-v2/internalization/intent-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/intent-contract.js.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-consumer-decision.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-consumer-decision.js.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-job-graph.js.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-route.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-route.js.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-state-machine.js.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.js.map +0 -1
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-datasource.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-datasource.js.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-metrics.js.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-read-model.js.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/lifecycle-types.js.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-decision-review.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-decision-review.js.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-evidence-recovery.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-evidence-recovery.js.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-resolution-service.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-resolution-service.js.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-retry.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-retry.js.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-review.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/owner-review.js.map +0 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +0 -1
- package/core/dist/runtime-v2/internalization/philosopher-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/philosopher-output.js.map +0 -1
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/philosopher-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/pi-artifact-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/pi-artifact-store.js.map +0 -1
- package/core/dist/runtime-v2/internalization/pi-artifact.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/pi-artifact.js.map +0 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.js +0 -1030
- package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +0 -1
- package/core/dist/runtime-v2/internalization/prompt-serializer.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/prompt-serializer.js.map +0 -1
- package/core/dist/runtime-v2/internalization/queue-actionability.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/queue-actionability.js.map +0 -1
- package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.js.map +0 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +0 -1
- package/core/dist/runtime-v2/internalization/repair-replay-resolver.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/repair-replay-resolver.js.map +0 -1
- package/core/dist/runtime-v2/internalization/revision-reopen.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/revision-reopen.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-output.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/router-context-evidence.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/router-context-evidence.js.map +0 -1
- package/core/dist/runtime-v2/internalization/routing-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/routing-policy.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-activation-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-activation-contract.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-binding-revision.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-binding-revision.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-code-validator.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-context-v2.d.ts +0 -64
- package/core/dist/runtime-v2/internalization/rule-context-v2.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-context-v2.js +0 -285
- package/core/dist/runtime-v2/internalization/rule-context-v2.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-adapter.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-adapter.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-contracts.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-evaluator.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-helpers.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-input-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-input-builder.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-validator.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-host-validator.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-reliability-validation.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-reliability-validation.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-source-correction.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rule-source-correction.js.map +0 -1
- package/core/dist/runtime-v2/internalization/rulecode-verification-obligations.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/rulecode-verification-obligations.js.map +0 -1
- package/core/dist/runtime-v2/internalization/scribe-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/scribe-output.js.map +0 -1
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +0 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/split-diagnostician-runner.js.map +0 -1
- package/core/dist/runtime-v2/internalization/template-generator.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/template-generator.js.map +0 -1
- package/core/dist/runtime-v2/internalization/textual-basis-anchor.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/textual-basis-anchor.js.map +0 -1
- package/core/dist/runtime-v2/internalization/tool-semantic-baseline.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/tool-semantic-baseline.js.map +0 -1
- package/core/dist/runtime-v2/internalization/tool-semantic-registry.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/tool-semantic-registry.js.map +0 -1
- package/core/dist/runtime-v2/internalization/v2-adversarial-cases.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization/v2-adversarial-cases.js.map +0 -1
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js.map +0 -1
- package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization-integrity-remediation.js.map +0 -1
- package/core/dist/runtime-v2/internalization-queue-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/internalization-queue-read-model.js.map +0 -1
- package/core/dist/runtime-v2/intervention-evidence-normalizer.d.ts.map +0 -1
- package/core/dist/runtime-v2/intervention-evidence-normalizer.js.map +0 -1
- package/core/dist/runtime-v2/l1-hard-cap.d.ts.map +0 -1
- package/core/dist/runtime-v2/l1-hard-cap.js.map +0 -1
- package/core/dist/runtime-v2/language-directive.d.ts.map +0 -1
- package/core/dist/runtime-v2/language-directive.js.map +0 -1
- package/core/dist/runtime-v2/learning-lab/actor-action-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/learning-lab/actor-action-output.js.map +0 -1
- package/core/dist/runtime-v2/mainline-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/mainline-contract.js.map +0 -1
- package/core/dist/runtime-v2/observer/agent-scheduler.d.ts.map +0 -1
- package/core/dist/runtime-v2/observer/agent-scheduler.js.map +0 -1
- package/core/dist/runtime-v2/observer/correction-observer.d.ts.map +0 -1
- package/core/dist/runtime-v2/observer/correction-observer.js.map +0 -1
- package/core/dist/runtime-v2/operator-health-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/operator-health-read-model.js +0 -135
- package/core/dist/runtime-v2/operator-health-read-model.js.map +0 -1
- package/core/dist/runtime-v2/owner-decision/owner-decision-view-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/owner-decision/owner-decision-view-contract.js.map +0 -1
- package/core/dist/runtime-v2/owner-decision/owner-decision-view.d.ts.map +0 -1
- package/core/dist/runtime-v2/owner-decision/owner-decision-view.js.map +0 -1
- package/core/dist/runtime-v2/owner-decision/semantic-selector.d.ts.map +0 -1
- package/core/dist/runtime-v2/owner-decision/semantic-selector.js.map +0 -1
- package/core/dist/runtime-v2/owner-identity.d.ts.map +0 -1
- package/core/dist/runtime-v2/owner-identity.js.map +0 -1
- package/core/dist/runtime-v2/pain-chain-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-chain-read-model.js +0 -327
- package/core/dist/runtime-v2/pain-chain-read-model.js.map +0 -1
- package/core/dist/runtime-v2/pain-flood-simulation.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-flood-simulation.js +0 -152
- package/core/dist/runtime-v2/pain-flood-simulation.js.map +0 -1
- package/core/dist/runtime-v2/pain-ingress-payload.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-ingress-payload.js.map +0 -1
- package/core/dist/runtime-v2/pain-ingress.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-ingress.js.map +0 -1
- package/core/dist/runtime-v2/pain-recall-capability.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-recall-capability.js.map +0 -1
- package/core/dist/runtime-v2/pain-recall-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-recall-read-model.js.map +0 -1
- package/core/dist/runtime-v2/pain-recall-snapshot-hooks.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-recall-snapshot-hooks.js.map +0 -1
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts +0 -389
- package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-signal-bridge.js +0 -1460
- package/core/dist/runtime-v2/pain-signal-bridge.js.map +0 -1
- package/core/dist/runtime-v2/pain-signal-observability.d.ts +0 -36
- package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-signal-observability.js.map +0 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts +0 -254
- package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js +0 -780
- package/core/dist/runtime-v2/pain-signal-runtime-factory.js.map +0 -1
- package/core/dist/runtime-v2/pain-to-principle-service.d.ts.map +0 -1
- package/core/dist/runtime-v2/pain-to-principle-service.js.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-domain.d.ts +0 -89
- package/core/dist/runtime-v2/principle-reuse/reuse-domain.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-domain.js +0 -16
- package/core/dist/runtime-v2/principle-reuse/reuse-domain.js.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-output.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-output.js.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-runner.js.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-proposal.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-proposal.js.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-retrieval.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-retrieval.js.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-shortlist.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-reuse/reuse-shortlist.js.map +0 -1
- package/core/dist/runtime-v2/principle-tree/ledger-codec.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-tree/ledger-codec.js.map +0 -1
- package/core/dist/runtime-v2/principle-tree/rule-candidate-binding.d.ts.map +0 -1
- package/core/dist/runtime-v2/principle-tree/rule-candidate-binding.js.map +0 -1
- package/core/dist/runtime-v2/product-telemetry/daily-identity.d.ts.map +0 -1
- package/core/dist/runtime-v2/product-telemetry/daily-identity.js.map +0 -1
- package/core/dist/runtime-v2/product-telemetry/snapshot-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/product-telemetry/snapshot-contract.js.map +0 -1
- package/core/dist/runtime-v2/proven-channel-baseline.d.ts.map +0 -1
- package/core/dist/runtime-v2/proven-channel-baseline.js +0 -547
- package/core/dist/runtime-v2/proven-channel-baseline.js.map +0 -1
- package/core/dist/runtime-v2/pruning-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/pruning-read-model.js.map +0 -1
- package/core/dist/runtime-v2/receipt-coverage.d.ts.map +0 -1
- package/core/dist/runtime-v2/receipt-coverage.js.map +0 -1
- package/core/dist/runtime-v2/recovery-actions-log.d.ts.map +0 -1
- package/core/dist/runtime-v2/recovery-actions-log.js.map +0 -1
- package/core/dist/runtime-v2/recovery-sweep-service.d.ts.map +0 -1
- package/core/dist/runtime-v2/recovery-sweep-service.js.map +0 -1
- package/core/dist/runtime-v2/remediation-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/remediation-contract.js.map +0 -1
- package/core/dist/runtime-v2/risk/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/risk/index.js.map +0 -1
- package/core/dist/runtime-v2/risk/risk-calculator-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/risk/risk-calculator-policy.js.map +0 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.js.map +0 -1
- package/core/dist/runtime-v2/runner/default-validator.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/default-validator.js.map +0 -1
- package/core/dist/runtime-v2/runner/diagnostician-validator.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/diagnostician-validator.js.map +0 -1
- package/core/dist/runtime-v2/runner/peer-runner-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/peer-runner-types.js.map +0 -1
- package/core/dist/runtime-v2/runner/runner-phase.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/runner-phase.js.map +0 -1
- package/core/dist/runtime-v2/runner/runner-result.d.ts.map +0 -1
- package/core/dist/runtime-v2/runner/runner-result.js.map +0 -1
- package/core/dist/runtime-v2/runtime-protocol.d.ts.map +0 -1
- package/core/dist/runtime-v2/runtime-protocol.js.map +0 -1
- package/core/dist/runtime-v2/runtime-state-handle.d.ts.map +0 -1
- package/core/dist/runtime-v2/runtime-state-handle.js.map +0 -1
- package/core/dist/runtime-v2/schema-conformance-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/schema-conformance-read-model.js.map +0 -1
- package/core/dist/runtime-v2/schema-version.d.ts +0 -20
- package/core/dist/runtime-v2/schema-version.d.ts.map +0 -1
- package/core/dist/runtime-v2/schema-version.js +0 -20
- package/core/dist/runtime-v2/schema-version.js.map +0 -1
- package/core/dist/runtime-v2/signal-collector/confidence-gate.d.ts.map +0 -1
- package/core/dist/runtime-v2/signal-collector/confidence-gate.js.map +0 -1
- package/core/dist/runtime-v2/signal-collector/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/signal-collector/index.js.map +0 -1
- package/core/dist/runtime-v2/signal-collector/keyword-stage.d.ts.map +0 -1
- package/core/dist/runtime-v2/signal-collector/keyword-stage.js.map +0 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts.map +0 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.js.map +0 -1
- package/core/dist/runtime-v2/signal-collector/signal-collector.d.ts.map +0 -1
- package/core/dist/runtime-v2/signal-collector/signal-collector.js.map +0 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts.map +0 -1
- package/core/dist/runtime-v2/signal-collector/types.js.map +0 -1
- package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.d.ts.map +0 -1
- package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.js.map +0 -1
- package/core/dist/runtime-v2/store/artifact/artifact-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/artifact/artifact-store.js.map +0 -1
- package/core/dist/runtime-v2/store/artifact/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/artifact/index.js.map +0 -1
- package/core/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/artifact/memory-artifact-store.js.map +0 -1
- package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.js.map +0 -1
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js.map +0 -1
- package/core/dist/runtime-v2/store/candidate/admission-document.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/candidate/admission-document.js.map +0 -1
- package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/candidate/candidate-store.js.map +0 -1
- package/core/dist/runtime-v2/store/candidate/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/candidate/index.js.map +0 -1
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js.map +0 -1
- package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js.map +0 -1
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +0 -1
- package/core/dist/runtime-v2/store/commit/commit-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/commit/commit-store.js.map +0 -1
- package/core/dist/runtime-v2/store/commit/diagnostician-committer.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/commit/diagnostician-committer.js.map +0 -1
- package/core/dist/runtime-v2/store/commit/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/commit/index.js.map +0 -1
- package/core/dist/runtime-v2/store/commit/memory-commit-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/commit/memory-commit-store.js.map +0 -1
- package/core/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/commit/sqlite-commit-store.js.map +0 -1
- package/core/dist/runtime-v2/store/context/context-assembler.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/context/context-assembler.js.map +0 -1
- package/core/dist/runtime-v2/store/context/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/context/index.js.map +0 -1
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/context/resilient-context-assembler.js.map +0 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +0 -1
- package/core/dist/runtime-v2/store/context/trajectory-turn-reader.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/context/trajectory-turn-reader.js.map +0 -1
- package/core/dist/runtime-v2/store/design-gate/sqlite-design-gate-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/design-gate/sqlite-design-gate-store.js.map +0 -1
- package/core/dist/runtime-v2/store/event-emitter.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/event-emitter.js.map +0 -1
- package/core/dist/runtime-v2/store/history/history-query.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/history/history-query.js.map +0 -1
- package/core/dist/runtime-v2/store/history/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/history/index.js.map +0 -1
- package/core/dist/runtime-v2/store/history/resilient-history-query.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/history/resilient-history-query.js.map +0 -1
- package/core/dist/runtime-v2/store/history/sqlite-history-query.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/history/sqlite-history-query.js.map +0 -1
- package/core/dist/runtime-v2/store/intent/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/intent/index.js.map +0 -1
- package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.js.map +0 -1
- package/core/dist/runtime-v2/store/intent/sqlite-intent-doc-version-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/intent/sqlite-intent-doc-version-store.js.map +0 -1
- package/core/dist/runtime-v2/store/intervention-evidence-schema.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/intervention-evidence-schema.js.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/index.js.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/lease-manager.js.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.js.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/lifecycle/retry-policy.js.map +0 -1
- package/core/dist/runtime-v2/store/pain/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/pain/index.js.map +0 -1
- package/core/dist/runtime-v2/store/pain/sqlite-dead-letter-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/pain/sqlite-dead-letter-store.js.map +0 -1
- package/core/dist/runtime-v2/store/pain-diagnosis/pain-diagnosis-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/pain-diagnosis/pain-diagnosis-store.js.map +0 -1
- package/core/dist/runtime-v2/store/pain-diagnosis/sqlite-pain-diagnosis-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/pain-diagnosis/sqlite-pain-diagnosis-store.js.map +0 -1
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.js.map +0 -1
- package/core/dist/runtime-v2/store/run/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/run/index.js.map +0 -1
- package/core/dist/runtime-v2/store/run/memory-run-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/run/memory-run-store.js.map +0 -1
- package/core/dist/runtime-v2/store/run/run-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/run/run-store.js.map +0 -1
- package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/run/sqlite-run-store.js.map +0 -1
- package/core/dist/runtime-v2/store/runtime-state-manager.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/runtime-state-manager.js.map +0 -1
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +0 -1
- package/core/dist/runtime-v2/store/sqlite-intervention-evidence-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/sqlite-intervention-evidence-store.js.map +0 -1
- package/core/dist/runtime-v2/store/task/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/task/index.js.map +0 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.js.map +0 -1
- package/core/dist/runtime-v2/store/task/sqlite-approved-rule-revision.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/task/sqlite-approved-rule-revision.js.map +0 -1
- package/core/dist/runtime-v2/store/task/sqlite-family-reopen.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/task/sqlite-family-reopen.js.map +0 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +0 -1
- package/core/dist/runtime-v2/store/task/task-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/task/task-store.js.map +0 -1
- package/core/dist/runtime-v2/store/task/task-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/task/task-types.js.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/index.js.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/source-trace-locator.js.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/trajectory/trajectory-locator.js.map +0 -1
- package/core/dist/runtime-v2/store/workspace-leak-guard.d.ts.map +0 -1
- package/core/dist/runtime-v2/store/workspace-leak-guard.js.map +0 -1
- package/core/dist/runtime-v2/story-a-demo.d.ts +0 -77
- package/core/dist/runtime-v2/story-a-demo.d.ts.map +0 -1
- package/core/dist/runtime-v2/story-a-demo.js.map +0 -1
- package/core/dist/runtime-v2/synthetic-baseline.d.ts.map +0 -1
- package/core/dist/runtime-v2/synthetic-baseline.js +0 -116
- package/core/dist/runtime-v2/synthetic-baseline.js.map +0 -1
- package/core/dist/runtime-v2/system-prompt-merge.d.ts.map +0 -1
- package/core/dist/runtime-v2/system-prompt-merge.js.map +0 -1
- package/core/dist/runtime-v2/task-status.d.ts.map +0 -1
- package/core/dist/runtime-v2/task-status.js.map +0 -1
- package/core/dist/runtime-v2/tools/agent-tool-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/tools/agent-tool-contract.js.map +0 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js.map +0 -1
- package/core/dist/runtime-v2/tools/artificer-output-typebox.d.ts.map +0 -1
- package/core/dist/runtime-v2/tools/artificer-output-typebox.js.map +0 -1
- package/core/dist/runtime-v2/tools/dreamer-output-typebox.d.ts.map +0 -1
- package/core/dist/runtime-v2/tools/dreamer-output-typebox.js.map +0 -1
- package/core/dist/runtime-v2/trajectory-schema.d.ts.map +0 -1
- package/core/dist/runtime-v2/trajectory-schema.js.map +0 -1
- package/core/dist/runtime-v2/types/artifact-lineage.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/artifact-lineage.js.map +0 -1
- package/core/dist/runtime-v2/types/event-payload.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/event-payload.js.map +0 -1
- package/core/dist/runtime-v2/types/event-types.d.ts +0 -940
- package/core/dist/runtime-v2/types/event-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/event-types.js +0 -520
- package/core/dist/runtime-v2/types/event-types.js.map +0 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts +0 -282
- package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/evidence-chain-contract.js +0 -1301
- package/core/dist/runtime-v2/types/evidence-chain-contract.js.map +0 -1
- package/core/dist/runtime-v2/types/hygiene-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/hygiene-types.js.map +0 -1
- package/core/dist/runtime-v2/types/index.d.ts +0 -32
- package/core/dist/runtime-v2/types/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/index.js +0 -21
- package/core/dist/runtime-v2/types/index.js.map +0 -1
- package/core/dist/runtime-v2/types/intervention-evidence-contract.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/intervention-evidence-contract.js.map +0 -1
- package/core/dist/runtime-v2/types/ledger-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/ledger-store.js.map +0 -1
- package/core/dist/runtime-v2/types/pain-signal.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/pain-signal.js.map +0 -1
- package/core/dist/runtime-v2/types/pd-task-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/pd-task-types.js.map +0 -1
- package/core/dist/runtime-v2/types/principle-dependency.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/principle-dependency.js.map +0 -1
- package/core/dist/runtime-v2/types/principle-enums.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/principle-enums.js.map +0 -1
- package/core/dist/runtime-v2/types/principle-lifecycle-event.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/principle-lifecycle-event.js.map +0 -1
- package/core/dist/runtime-v2/types/principle-schema.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/principle-schema.js.map +0 -1
- package/core/dist/runtime-v2/types/principle-tree-store.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/principle-tree-store.js.map +0 -1
- package/core/dist/runtime-v2/types/principle-value-metrics.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/principle-value-metrics.js.map +0 -1
- package/core/dist/runtime-v2/types/replay-types.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/replay-types.js.map +0 -1
- package/core/dist/runtime-v2/types/rule-candidate-binding.d.ts.map +0 -1
- package/core/dist/runtime-v2/types/rule-candidate-binding.js.map +0 -1
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +0 -30
- /package/core/dist/{runtime-v2 → runtime}/activation/activation-control-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/activation-control-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/activation-dispatcher.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/activation-dispatcher.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/activation-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/activation-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/adaptive-delivery-record.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/adaptive-delivery-record.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/adaptive-principle-intervention.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/approval-completion-service.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/approval-completion-service.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/approval-queue.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/approval-queue.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/approval-review-guard.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/approval-review-guard.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/ledger-identity.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/ledger-identity.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/low-risk-writers.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/low-risk-writers.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/memory-activation-state-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/memory-activation-state-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/memory-approval-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/memory-approval-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/openclaw-promotion-checks.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/openclaw-promotion-checks.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/production-gate-deps.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/production-gate-deps.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/promotion-evidence-snapshot.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/promotion-evidence-snapshot.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-evaluator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-evaluator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-reader.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-reader.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/prompt-budget-policy.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/prompt-replacement.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/prompt-replacement.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/recovery-composition.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/recovery-composition.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/recovery-control-surfaces.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/recovery-control-surfaces.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rule-replacement.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rule-replacement.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-owner-decision-service.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-owner-decision-service.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-safety-circuit-breaker.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-safety-circuit-breaker.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-shadow-summary.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-shadow-summary.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-safety-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-safety-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-state-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-state-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-approval-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-approval-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/writers/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/writers/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/writers/rule-host-writer.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation/writers/rule-host-writer.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation-compatibility-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/activation-compatibility-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/artificer-l2-adapter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/artificer-l2-adapter.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/json-extractor.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/json-extractor.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/l2-agent-loop-adapter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/l2-agent-loop-adapter.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/output-repair-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/output-schema-registry.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/output-schema-registry.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-catalog.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-catalog.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-http-transport.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-http-transport.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-runtime-adapter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/schema-json-converter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/schema-json-converter.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/schema-prompt-adapter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/schema-prompt-adapter.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/split-pipeline-fixtures.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/split-pipeline-fixtures.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/structured-output-repair.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/test-double-runtime-adapter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/test-double-runtime-adapter.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/tools/diagnostician-tool.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adapter/tools/diagnostician-tool.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/admission-gate.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/admission-gate.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adversarial-loop.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/adversarial-loop.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/agent-spec.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/agent-spec.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/bridge-result-shaper.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/bridge-result-shaper.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/build-l2-principle-reader.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/build-l2-principle-reader.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/candidate-audit.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/candidate-audit.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/candidate-intake-service.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/candidate-intake-service.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/candidate-intake.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/candidate-intake.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/cli/diagnose.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/cli/diagnose.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/cli/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/cli/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/cli/probe.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/cli/probe.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-agent-binding.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-agent-binding.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-defaults.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-defaults.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-effective.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-effective.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-feature-flags.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-feature-flags.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-redaction.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-validate.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-config-validate.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-profile-constants.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-profile-constants.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-validate-profile.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/config/pd-validate-profile.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/context-payload.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/context-payload.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/control-plane-triage.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/control-plane-triage.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/core-axiom-block.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/core-axiom-block.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/core-principle-registry.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/core-principle-registry.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/strip-fabricated-ids.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/core-principles/strip-fabricated-ids.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/correction/correction-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/correction/correction-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/correction/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/correction/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/detection/detection-funnel-policy.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/detection/detection-funnel-policy.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/detection/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/detection/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-distiller-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-distiller-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-rootcause-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-rootcause-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/distiller-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/distiller-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/evidence-ref-binding.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/evidence-ref-binding.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/rootcause-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/rootcause-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/router-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician/router-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-shadow.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-shadow.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-validation.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-validation.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-capability.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-capability.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/diagnostician-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-guards.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-guards.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-sanitizer.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-sanitizer.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/observation-resolver.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/observation-resolver.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/source-descriptors.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/source-descriptors.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/triage-policy.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/triage-policy.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/trigger-controller.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/trigger-controller.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evidence-triage/types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evolution/evolution-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/evolution/evolution-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/feature-flag-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/feature-flag-lifecycle.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/plugin-surface-registry.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/plugin-surface-registry.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/surface-guard-policy.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feature-flags/surface-guard-policy.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/create-report.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/create-report.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/feedback-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/feedback-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/fingerprint.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/fingerprint.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/internal-guards.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/internal-guards.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/pending-agent-draft-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/pending-agent-draft-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/privacy-preview.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/privacy-preview.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/redact-sensitive.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/render-github-url.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/render-github-url.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/render-markdown.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/render-markdown.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/safe-stringify.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/feedback/safe-stringify.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/full-trace-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/golden-trace-replay-validator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/golden-trace-replay-validator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/golden-trace.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/golden-trace.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-experience-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-experience-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-experience.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-experience.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-projection-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-projection-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-projection.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-projection.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-timestamp-schema.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/governance-timestamp-schema.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-reader-port.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-reader-port.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-version.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-version.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-friction-block.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-friction-block.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-hash.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-hash.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-patch-proposal.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intent/intent-patch-proposal.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-case.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-case.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-feedback.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-feedback.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/approved-rule-revision.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/approved-rule-revision.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-content-hash.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-content-hash.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-summary.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-summary.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-code-bearing.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-code-bearing.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-intent-preflight.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-intent-preflight.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-run-correlation.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-run-correlation.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/bash-risk.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/candidate-identity.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/candidate-identity.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/compile-result.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/compile-result.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/consumer-evidence-preflight.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/consumer-evidence-preflight.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/correction-proposal.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/deprecated-readiness.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/deprecated-readiness.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/design-gate-facts.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/design-gate-facts.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/diag-distiller-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/diag-distiller-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/diag-rootcause-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/diag-rootcause-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/diag-router-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/diag-router-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evidence-readiness.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/evidence-readiness.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/formation-context.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/formation-context.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/golden-dogfood-fixtures.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/golden-dogfood-fixtures.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/intake-to-internalization-bridge.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/intake-to-internalization-bridge.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/intent-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/intent-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-consumer-decision.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-consumer-decision.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-job-graph.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-job-graph.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-orchestrator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-orchestrator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-route.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-route.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-state-machine.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-state-machine.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-task-guards.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-task-guards.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-transition-decision.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-transition-decision.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/legacy-rule-contract-scanner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/legacy-rule-contract-scanner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-datasource.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-datasource.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-metrics.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-metrics.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-decision-review.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-decision-review.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-evidence-recovery.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-evidence-recovery.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-resolution-service.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-resolution-service.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-retry.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-retry.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-review.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/owner-review.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/peer-runner-contracts.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/peer-runner-contracts.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/pitask-metadata.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/prompt-serializer.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/prompt-serializer.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/queue-actionability.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/queue-actionability.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-rulehost-gate.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-rulehost-gate.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-sandbox-wrapper.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-sandbox-wrapper.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/repair-replay-resolver.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/repair-replay-resolver.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/revision-reopen.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/revision-reopen.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/router-context-evidence.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/router-context-evidence.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/routing-policy.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/routing-policy.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-activation-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-activation-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-binding-revision.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-binding-revision.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-code-validator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-code-validator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-adapter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-adapter.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-contracts.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-contracts.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-evaluator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-evaluator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-helpers.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-helpers.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-input-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-input-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-validator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-validator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-reliability-validation.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-reliability-validation.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-source-correction.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rule-source-correction.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rulecode-verification-obligations.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/rulecode-verification-obligations.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-prompt-builder.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-prompt-builder.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/split-diagnostician-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/split-diagnostician-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/template-generator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/template-generator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/textual-basis-anchor.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/textual-basis-anchor.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-baseline.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-baseline.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-registry.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-registry.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/v2-adversarial-cases.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization/v2-adversarial-cases.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization-chain-integrity-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization-chain-integrity-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization-integrity-remediation.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization-integrity-remediation.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization-queue-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/internalization-queue-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intervention-evidence-normalizer.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/intervention-evidence-normalizer.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/l1-hard-cap.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/l1-hard-cap.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/language-directive.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/language-directive.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/learning-lab/actor-action-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/learning-lab/actor-action-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/mainline-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/mainline-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/observer/agent-scheduler.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/observer/agent-scheduler.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/observer/correction-observer.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/observer/correction-observer.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/operator-health-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-decision/semantic-selector.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-decision/semantic-selector.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-identity.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/owner-identity.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-chain-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-flood-simulation.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-ingress-payload.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-ingress-payload.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-ingress.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-ingress.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-recall-capability.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-recall-capability.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-recall-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-recall-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-recall-snapshot-hooks.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-recall-snapshot-hooks.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-signal-observability.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-to-principle-service.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pain-to-principle-service.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-output.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-output.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-proposal.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-proposal.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-retrieval.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-retrieval.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-shortlist.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-shortlist.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-tree/ledger-codec.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-tree/ledger-codec.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-tree/rule-candidate-binding.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/principle-tree/rule-candidate-binding.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/product-telemetry/daily-identity.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/product-telemetry/daily-identity.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/product-telemetry/snapshot-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/product-telemetry/snapshot-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/proven-channel-baseline.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pruning-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/pruning-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/receipt-coverage.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/receipt-coverage.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/recovery-actions-log.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/recovery-actions-log.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/recovery-sweep-service.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/recovery-sweep-service.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/remediation-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/remediation-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/risk/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/risk/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/risk/risk-calculator-policy.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/risk/risk-calculator-policy.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/base-peer-runner.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/base-peer-runner.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/default-validator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/default-validator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/diagnostician-validator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/diagnostician-validator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/peer-runner-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/peer-runner-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/runner-phase.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/runner-phase.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/runner-result.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runner/runner-result.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runtime-protocol.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runtime-protocol.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runtime-state-handle.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/runtime-state-handle.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/schema-conformance-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/schema-conformance-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/confidence-gate.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/confidence-gate.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/keyword-stage.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/keyword-stage.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/llm-stage.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/llm-stage.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/signal-collector.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/signal-collector.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/signal-collector/types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/stalled-diagnostician-task-read-model.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/stalled-diagnostician-task-read-model.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/artifact-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/artifact-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/memory-artifact-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/memory-artifact-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-artifact-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-artifact-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-pi-artifact-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-pi-artifact-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/admission-document.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/admission-document.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/candidate-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/candidate-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/memory-candidate-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/memory-candidate-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/recommendation-kind-resolver.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/recommendation-kind-resolver.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/sqlite-candidate-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/candidate/sqlite-candidate-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/commit-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/commit-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/diagnostician-committer.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/diagnostician-committer.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/memory-commit-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/memory-commit-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/sqlite-commit-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/commit/sqlite-commit-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/context-assembler.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/context-assembler.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/resilient-context-assembler.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/resilient-context-assembler.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/sqlite-context-assembler.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/sqlite-context-assembler.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/trajectory-turn-reader.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/context/trajectory-turn-reader.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/design-gate/sqlite-design-gate-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/design-gate/sqlite-design-gate-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/event-emitter.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/event-emitter.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/history-query.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/history-query.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/resilient-history-query.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/resilient-history-query.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/sqlite-history-query.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/history/sqlite-history-query.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intent/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intent/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-decision-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-decision-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-doc-version-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-doc-version-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intervention-evidence-schema.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/intervention-evidence-schema.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/lease-manager.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/lease-manager.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/recovery-sweep.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/recovery-sweep.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/retry-policy.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/retry-policy.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain/sqlite-dead-letter-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain/sqlite-dead-letter-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/pain-diagnosis-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/pain-diagnosis-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/sqlite-pain-diagnosis-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/sqlite-pain-diagnosis-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/reconciliation-cursor-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/reconciliation-cursor-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/memory-run-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/memory-run-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/run-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/run-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/sqlite-run-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/run/sqlite-run-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/runtime-state-manager.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/runtime-state-manager.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/sqlite-connection.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/sqlite-connection.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/sqlite-intervention-evidence-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/sqlite-intervention-evidence-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/memory-task-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/memory-task-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-approved-rule-revision.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-approved-rule-revision.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-family-reopen.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-family-reopen.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-task-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-task-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/task-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/task-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/task-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/task/task-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/index.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/index.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/source-trace-locator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/source-trace-locator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-source-trace-locator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-source-trace-locator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-trajectory-locator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-trajectory-locator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/trajectory-locator.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/trajectory/trajectory-locator.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/workspace-leak-guard.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/store/workspace-leak-guard.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/story-a-demo.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/synthetic-baseline.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/system-prompt-merge.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/system-prompt-merge.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/task-status.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/task-status.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/agent-tool-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/agent-tool-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/artificer-l2-tool-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/artificer-l2-tool-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/artificer-output-typebox.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/artificer-output-typebox.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/dreamer-output-typebox.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/tools/dreamer-output-typebox.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/trajectory-schema.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/trajectory-schema.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/artifact-lineage.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/artifact-lineage.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/event-payload.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/event-payload.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/hygiene-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/hygiene-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/intervention-evidence-contract.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/intervention-evidence-contract.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/ledger-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/ledger-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/pain-signal.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/pain-signal.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/pd-task-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/pd-task-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-dependency.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-dependency.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-enums.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-enums.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-lifecycle-event.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-lifecycle-event.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-schema.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-schema.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-tree-store.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-tree-store.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-value-metrics.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/principle-value-metrics.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/replay-types.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/replay-types.js +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/rule-candidate-binding.d.ts +0 -0
- /package/core/dist/{runtime-v2 → runtime}/types/rule-candidate-binding.js +0 -0
|
@@ -0,0 +1,1489 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PiAiRuntimeAdapter — PDRuntimeAdapter implementation for direct LLM completion.
|
|
3
|
+
*
|
|
4
|
+
* Uses @earendil-works/pi-ai (compat facade) to call LLM providers directly, bypassing the OpenClaw CLI.
|
|
5
|
+
* Solves the m8-03 UAT blocker where the main agent takes >300s.
|
|
6
|
+
*
|
|
7
|
+
* One-shot run: startRun() calls pi-ai complete(), blocks until LLM responds,
|
|
8
|
+
* stores output in memory. pollRun()/fetchOutput() operate on stored state.
|
|
9
|
+
*
|
|
10
|
+
* Error mapping:
|
|
11
|
+
* AbortError (signal.timeout) → timeout
|
|
12
|
+
* JSON extraction failure → output_invalid
|
|
13
|
+
* DiagnosticianOutputV1Schema validation failure → output_invalid
|
|
14
|
+
* Missing apiKeyEnv → runtime_unavailable
|
|
15
|
+
* Retries exhausted → execution_failed
|
|
16
|
+
*/
|
|
17
|
+
// PRI-621 PR2: migrated @mariozechner/pi-ai 0.73.1 → @earendil-works/pi-ai 0.84.2.
|
|
18
|
+
// Values come from the /compat facade (getModel is the builtin-catalog read;
|
|
19
|
+
// completeSimple unchanged); types come from the root — the root `types.ts`
|
|
20
|
+
// remains the unified Model/Context/Message contract in 0.84.
|
|
21
|
+
import { getModel, completeSimple } from '@earendil-works/pi-ai/compat';
|
|
22
|
+
import { builtinPiAiProviderIds } from './pi-ai-catalog.js';
|
|
23
|
+
import { getPiAiFetchForApi } from './pi-ai-http-transport.js';
|
|
24
|
+
import { Value } from '@sinclair/typebox/value';
|
|
25
|
+
import { PDRuntimeError } from '../error-categories.js';
|
|
26
|
+
import { extractJsonObject, extractJsonObjectForSchema, extractJsonObjects, selectBestJsonObject } from './json-extractor.js';
|
|
27
|
+
import { resolveOutputSchema } from './output-schema-registry.js';
|
|
28
|
+
import { storeEmitter } from '../store/event-emitter.js';
|
|
29
|
+
import { attemptStructuredOutputRepair, deriveSchemaSummary } from './structured-output-repair.js';
|
|
30
|
+
import { typeboxToOpenAIJsonSchema, sanitizeSchemaName } from './schema-json-converter.js';
|
|
31
|
+
import { formatValidationErrorEntry, safeStringifyPreview, stripLineageFields } from './output-repair-contract.js';
|
|
32
|
+
import { buildSchemaToolDefinition } from './tools/diagnostician-tool.js';
|
|
33
|
+
import { DefaultSchemaPromptAdapter } from './schema-prompt-adapter.js';
|
|
34
|
+
import { mergeSystemPromptLayers } from '../system-prompt-merge.js';
|
|
35
|
+
/**
|
|
36
|
+
* PRI-1011: ceiling pi-ai applies itself when no explicit max_tokens is sent
|
|
37
|
+
* (`options.maxTokens ?? min(model.maxTokens, 32000)`). A downshift must start
|
|
38
|
+
* from this number when the profile leaves the budget to native defaulting,
|
|
39
|
+
* otherwise the next attempt would send `undefined` again — the exact value the
|
|
40
|
+
* provider just rejected.
|
|
41
|
+
*/
|
|
42
|
+
const PI_AI_NATIVE_MAX_TOKENS_CAP = 32_000;
|
|
43
|
+
/**
|
|
44
|
+
* PRI-1011: floor for the downshift ladder. Below this a structured answer is
|
|
45
|
+
* routinely cut off (finish_reason=length), so continuing to halve would trade
|
|
46
|
+
* a provider rejection for a truncation instead of recovering.
|
|
47
|
+
*/
|
|
48
|
+
const MIN_MAX_TOKENS_BUDGET = 4_096;
|
|
49
|
+
/**
|
|
50
|
+
* PRI-1011: provider signatures that mean "the output budget you asked for is
|
|
51
|
+
* above what this deployment allows right now" — a *parameter* rejection, not a
|
|
52
|
+
* transport failure. Deliberately narrow: rate limits, timeouts and generic 4xx
|
|
53
|
+
* must keep their existing classification and must not trigger a downshift.
|
|
54
|
+
*/
|
|
55
|
+
const MAX_TOKENS_REJECTED_PATTERN = /max[_ ]?tokens\b[^\n]{0,120}exceed|[Ee]xceeds the maximum output tokens/;
|
|
56
|
+
/** PRI-966 G2 P1-03: bounded usage summary from an AssistantMessage. Fields
|
|
57
|
+
* stay null when the provider did not surface a count — never guessed. An
|
|
58
|
+
* all-zero usage object is pi-ai's "provider surfaced nothing" placeholder
|
|
59
|
+
* (stream outputs initialize usage at 0 and only overwrite it when the
|
|
60
|
+
* provider sends usage), so {0,0} is reported as null: understating beats
|
|
61
|
+
* fabricating. */
|
|
62
|
+
function usageSummaryOf(usage) {
|
|
63
|
+
if (usage === undefined || usage === null || typeof usage !== 'object')
|
|
64
|
+
return null;
|
|
65
|
+
const input = typeof usage.input === 'number' && Number.isFinite(usage.input) ? usage.input : null;
|
|
66
|
+
const output = typeof usage.output === 'number' && Number.isFinite(usage.output) ? usage.output : null;
|
|
67
|
+
if ((input === null || input === 0) && (output === null || output === 0))
|
|
68
|
+
return null;
|
|
69
|
+
return { inputTokens: input, outputTokens: output, source: 'adapter_response_usage' };
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* PRI-1011: next budget for a retry after a max_tokens rejection. Halves the
|
|
73
|
+
* budget the provider just rejected (materialising pi-ai's native ceiling when
|
|
74
|
+
* the profile set none) and never goes below MIN_MAX_TOKENS_BUDGET.
|
|
75
|
+
* Returns the `from`/`to` pair, or `undefined` when no smaller budget is
|
|
76
|
+
* available — the ladder reached its floor, or the ceiling is already below it.
|
|
77
|
+
*/
|
|
78
|
+
function nextMaxTokensBudget(current, modelMaxTokens) {
|
|
79
|
+
const from = current
|
|
80
|
+
?? Math.min(modelMaxTokens ?? PI_AI_NATIVE_MAX_TOKENS_CAP, PI_AI_NATIVE_MAX_TOKENS_CAP);
|
|
81
|
+
const to = Math.max(MIN_MAX_TOKENS_BUDGET, Math.floor(from / 2));
|
|
82
|
+
return to < from ? { from, to } : undefined;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Resolve a pi-ai Model from dynamic config values.
|
|
86
|
+
*
|
|
87
|
+
* Catalog-first resolution (PRI-621):
|
|
88
|
+
* 1. Built-in provider (no baseUrl) — getModel(), fail loud when the model id
|
|
89
|
+
* is unknown to the catalog (getModel returns undefined; downstream
|
|
90
|
+
* resolveApiProvider would TypeError on an undefined Model).
|
|
91
|
+
* 2. Custom provider with baseUrl — look the model id up across ALL built-in
|
|
92
|
+
* provider catalogs. A hit means the endpoint serves a catalog-known model
|
|
93
|
+
* (e.g. Bai relaying deepseek-v4-flash), so reuse the catalog metadata
|
|
94
|
+
* (reasoning, contextWindow, maxTokens, compat, thinkingFormat) and only
|
|
95
|
+
* override provider (keep the configured name for auth/telemetry) and
|
|
96
|
+
* baseUrl. This prevents hardcoded fallback metadata from silently
|
|
97
|
+
* misclassifying reasoning models.
|
|
98
|
+
* 3. Unknown model id anywhere — conservative hardcoded fallback (unchanged).
|
|
99
|
+
*/
|
|
100
|
+
function resolveModel(provider, modelId, baseUrl) {
|
|
101
|
+
const knownProviders = builtinPiAiProviderIds();
|
|
102
|
+
if (knownProviders.includes(provider) && !baseUrl) {
|
|
103
|
+
// Built-in provider — use getModel()
|
|
104
|
+
// @ts-expect-error — getModel requires literal provider/model ID types; runtime strings from config are acceptable
|
|
105
|
+
const builtin = getModel(provider, modelId);
|
|
106
|
+
if (!builtin) {
|
|
107
|
+
throw new PDRuntimeError('runtime_unavailable', `Model '${modelId}' is not in the pi-ai catalog for provider '${provider}'. ` +
|
|
108
|
+
`Check the model id, or configure a baseUrl to use a custom OpenAI-compatible endpoint.`);
|
|
109
|
+
}
|
|
110
|
+
return builtin;
|
|
111
|
+
}
|
|
112
|
+
// Custom provider — baseUrl is required
|
|
113
|
+
if (!baseUrl) {
|
|
114
|
+
throw new PDRuntimeError('runtime_unavailable', `Provider '${provider}' is not a built-in pi-ai provider and requires a custom baseUrl. ` +
|
|
115
|
+
`Pass --baseUrl <url> or add 'baseUrl' to your workflows.yaml policy.`);
|
|
116
|
+
}
|
|
117
|
+
// Catalog-first: a custom endpoint relaying a catalog-known model keeps the
|
|
118
|
+
// catalog's metadata (reasoning/maxTokens/compat) with only the transport
|
|
119
|
+
// (provider name + baseUrl) overridden. getModel is a Map lookup per
|
|
120
|
+
// provider, so scanning the registry is cheap. Guard: only openai-completions
|
|
121
|
+
// catalog entries are adopted — a custom baseUrl is assumed OpenAI-compatible,
|
|
122
|
+
// and reusing e.g. an anthropic-messages entry against it would send the
|
|
123
|
+
// wrong protocol.
|
|
124
|
+
for (const catalogProvider of knownProviders) {
|
|
125
|
+
// @ts-expect-error — runtime strings from config are acceptable against the literal-typed signature
|
|
126
|
+
const catalogModel = getModel(catalogProvider, modelId);
|
|
127
|
+
if (catalogModel && catalogModel.api === 'openai-completions') {
|
|
128
|
+
return { ...catalogModel, provider, baseUrl };
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
// Unknown model id — construct a conservative Model object directly
|
|
132
|
+
// Default to openai-completions API for custom OpenAI-compatible endpoints
|
|
133
|
+
const model = {
|
|
134
|
+
id: modelId,
|
|
135
|
+
name: modelId,
|
|
136
|
+
api: 'openai-completions',
|
|
137
|
+
provider,
|
|
138
|
+
baseUrl,
|
|
139
|
+
reasoning: false,
|
|
140
|
+
input: ['text'],
|
|
141
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
|
|
142
|
+
contextWindow: 128000,
|
|
143
|
+
maxTokens: 32000,
|
|
144
|
+
compat: {
|
|
145
|
+
supportsStore: false,
|
|
146
|
+
supportsDeveloperRole: false,
|
|
147
|
+
supportsReasoningEffort: false,
|
|
148
|
+
supportsUsageInStreaming: true,
|
|
149
|
+
maxTokensField: 'max_tokens',
|
|
150
|
+
requiresToolResultName: false,
|
|
151
|
+
requiresAssistantAfterToolResult: false,
|
|
152
|
+
requiresThinkingAsText: false,
|
|
153
|
+
requiresReasoningContentOnAssistantMessages: false,
|
|
154
|
+
thinkingFormat: 'deepseek',
|
|
155
|
+
supportsStrictMode: false,
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
return model;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Required top-level keys of a registry TypeBox object schema, for
|
|
162
|
+
* schema-aware JSON candidate selection (PRI-621 RC3). Registry schemas are
|
|
163
|
+
* internal trusted definitions (not untrusted runtime data), so a plain
|
|
164
|
+
* structural read is sufficient — no schema validation needed here.
|
|
165
|
+
*/
|
|
166
|
+
function schemaRequiredKeys(schema) {
|
|
167
|
+
if (!schema || typeof schema !== 'object' || !Object.hasOwn(schema, 'required'))
|
|
168
|
+
return undefined;
|
|
169
|
+
const { required } = schema;
|
|
170
|
+
if (!Array.isArray(required))
|
|
171
|
+
return undefined;
|
|
172
|
+
const keys = required.filter((k) => typeof k === 'string');
|
|
173
|
+
return keys.length > 0 ? keys : undefined;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Detection for abort/timeout errors from provider SDKs.
|
|
177
|
+
*
|
|
178
|
+
* Checks:
|
|
179
|
+
* 1. AbortSignal already aborted
|
|
180
|
+
* 2. DOMException AbortError (native fetch/Node abort)
|
|
181
|
+
* 3. Error objects with name === 'AbortError' (some SDKs)
|
|
182
|
+
* 4. Non-PDRuntimeError Error with "timeout" or "abort" in message
|
|
183
|
+
* (provider SDKs that throw plain Error on timeout)
|
|
184
|
+
*
|
|
185
|
+
* Excludes PDRuntimeError to avoid false positives from our own wrapped
|
|
186
|
+
* error messages that may contain "timed out".
|
|
187
|
+
*/
|
|
188
|
+
function isObjectWithKey(obj, key) {
|
|
189
|
+
return typeof obj === 'object' && obj !== null && Object.hasOwn(obj, key);
|
|
190
|
+
}
|
|
191
|
+
function isAbortError(err, signal) {
|
|
192
|
+
if (signal?.aborted)
|
|
193
|
+
return true;
|
|
194
|
+
if (err instanceof DOMException && err.name === 'AbortError')
|
|
195
|
+
return true;
|
|
196
|
+
if (isObjectWithKey(err, 'name')) {
|
|
197
|
+
const rawName = err.name;
|
|
198
|
+
if (typeof rawName === 'string' && rawName === 'AbortError') {
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (err instanceof Error && !(err instanceof PDRuntimeError) && (/abort/i.test(err.message) || /timeout/i.test(err.message)))
|
|
203
|
+
return true;
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
function classifyFailure(err, signal) {
|
|
207
|
+
if (signal?.aborted) {
|
|
208
|
+
return {
|
|
209
|
+
category: 'timeout',
|
|
210
|
+
classification: 'client_timeout_budget_exhausted',
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
let errorMsg = '';
|
|
214
|
+
let name = '';
|
|
215
|
+
if (err instanceof Error) {
|
|
216
|
+
const { message, name: errName } = err;
|
|
217
|
+
errorMsg = message;
|
|
218
|
+
name = errName;
|
|
219
|
+
}
|
|
220
|
+
else if (typeof err === 'object' && err !== null) {
|
|
221
|
+
if (isObjectWithKey(err, 'message')) {
|
|
222
|
+
const rawMessage = err.message;
|
|
223
|
+
if (typeof rawMessage === 'string') {
|
|
224
|
+
errorMsg = rawMessage;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
if (isObjectWithKey(err, 'name')) {
|
|
228
|
+
const rawName = err.name;
|
|
229
|
+
if (typeof rawName === 'string') {
|
|
230
|
+
name = rawName;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
errorMsg = String(err);
|
|
236
|
+
}
|
|
237
|
+
const isAbort = name === 'AbortError' || (err instanceof DOMException && err.name === 'AbortError');
|
|
238
|
+
const hasTimeoutKeywords = /timeout|timed\s*out/i.test(errorMsg) || /abort/i.test(errorMsg);
|
|
239
|
+
if (isAbort || hasTimeoutKeywords) {
|
|
240
|
+
return {
|
|
241
|
+
category: 'timeout',
|
|
242
|
+
classification: 'provider_transient_timeout',
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
return {
|
|
246
|
+
category: 'execution_failed',
|
|
247
|
+
classification: 'not_applicable',
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Extract text content from an AssistantMessage, or throw PDRuntimeError.
|
|
252
|
+
*
|
|
253
|
+
* pi-ai complete() may RESOLVE (not reject) with stopReason:'error' when
|
|
254
|
+
* the provider returns an error response (e.g., 401, rate limit).
|
|
255
|
+
* This helper normalizes those resolved-error responses into PDRuntimeError
|
|
256
|
+
* so downstream code never sees a "successful" response that is actually broken.
|
|
257
|
+
*
|
|
258
|
+
* Error classification:
|
|
259
|
+
* stopReason:'aborted' → timeout
|
|
260
|
+
* stopReason:'error' + timeout/abort in errorMessage → timeout
|
|
261
|
+
* stopReason:'error' + other → execution_failed
|
|
262
|
+
* stopReason:'length' + no extractable content → output_invalid (truncated)
|
|
263
|
+
* no text or thinking content block → output_invalid
|
|
264
|
+
*
|
|
265
|
+
* Reasoning-model fallback (BUG-007a):
|
|
266
|
+
* When all content blocks have empty text (common with reasoning models that
|
|
267
|
+
* spend the entire token budget on thinking), extract JSON from ThinkingContent
|
|
268
|
+
* blocks. The thinking text is treated as untrusted (EP-01) and must go through
|
|
269
|
+
* the same extractJsonObject → schema validation path as normal text.
|
|
270
|
+
*/
|
|
271
|
+
function extractAssistantTextOrThrow(response, signal) {
|
|
272
|
+
// Handle resolved-error responses from pi-ai
|
|
273
|
+
if (response.stopReason === 'error' || response.stopReason === 'aborted') {
|
|
274
|
+
const rawMessage = response.errorMessage ?? 'unknown provider error';
|
|
275
|
+
// Truncate to 300 chars to avoid leaking huge payloads into logs/telemetry
|
|
276
|
+
const boundedMessage = rawMessage.length > 300 ? rawMessage.substring(0, 300) + '...' : rawMessage;
|
|
277
|
+
const isTimeout = response.stopReason === 'aborted'
|
|
278
|
+
|| signal?.aborted
|
|
279
|
+
|| /timeout|timed\s*out/i.test(rawMessage)
|
|
280
|
+
|| /abort/i.test(rawMessage);
|
|
281
|
+
throw new PDRuntimeError(isTimeout ? 'timeout' : 'execution_failed', isTimeout
|
|
282
|
+
? `LLM request timed out: ${boundedMessage}`
|
|
283
|
+
: `LLM execution failed: ${boundedMessage}`);
|
|
284
|
+
}
|
|
285
|
+
// Find text content (may be mixed with thinking content from reasoning-enabled models)
|
|
286
|
+
const textContent = response.content.find(c => c.type === 'text' && c.text && c.text.trim().length > 0);
|
|
287
|
+
if (textContent && textContent.type === 'text' && textContent.text) {
|
|
288
|
+
return textContent.text;
|
|
289
|
+
}
|
|
290
|
+
// BUG-007a: Reasoning-model fallback — extract from ThinkingContent blocks
|
|
291
|
+
// When reasoning models spend all token budget on thinking, content is empty
|
|
292
|
+
// but thinking (reasoning_content) may contain the structured output.
|
|
293
|
+
// EP-01: thinking field is untrusted LLM output — validate type before use.
|
|
294
|
+
const thinkingBlock = response.content.find(c => c.type === 'thinking' && typeof c.thinking === 'string' && c.thinking.trim().length > 0);
|
|
295
|
+
if (thinkingBlock && thinkingBlock.type === 'thinking' && typeof thinkingBlock.thinking === 'string' && thinkingBlock.thinking.trim().length > 0) {
|
|
296
|
+
return thinkingBlock.thinking;
|
|
297
|
+
}
|
|
298
|
+
// BUG-007b: finish_reason=length with no extractable content → fail-loud (EP-03)
|
|
299
|
+
if (response.stopReason === 'length') {
|
|
300
|
+
throw new PDRuntimeError('output_invalid', 'LLM response truncated (finish_reason=length); no extractable content', {
|
|
301
|
+
// PRI-707: same truncation evidence shape as the extraction-failure
|
|
302
|
+
// path, so diagnosticJson.output_failure_details is uniform.
|
|
303
|
+
truncated: true,
|
|
304
|
+
stopReason: response.stopReason,
|
|
305
|
+
outputTokens: typeof response.usage?.output === 'number' && Number.isFinite(response.usage.output)
|
|
306
|
+
? response.usage.output
|
|
307
|
+
: undefined,
|
|
308
|
+
nextAction: 'reduce input size or increase maxTokens in .pd/config.yaml',
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
throw new PDRuntimeError('output_invalid', `No text or reasoning content in LLM response. Content types: ${response.content.map(c => c.type).join(', ')}`, { nextAction: 'check if the model supports structured output or increase maxTokens' });
|
|
312
|
+
}
|
|
313
|
+
export class PiAiRuntimeAdapter {
|
|
314
|
+
config;
|
|
315
|
+
runs = new Map();
|
|
316
|
+
eventEmitter;
|
|
317
|
+
runtimeKind = 'pi-ai';
|
|
318
|
+
defaultCapabilities = {
|
|
319
|
+
supportsStructuredJsonOutput: true,
|
|
320
|
+
supportsToolUse: false,
|
|
321
|
+
supportsWorkingDirectory: false,
|
|
322
|
+
supportsModelSelection: true,
|
|
323
|
+
supportsLongRunningSessions: false,
|
|
324
|
+
supportsCancellation: true,
|
|
325
|
+
supportsArtifactWriteBack: false,
|
|
326
|
+
supportsConcurrentRuns: false,
|
|
327
|
+
supportsStreaming: false,
|
|
328
|
+
};
|
|
329
|
+
constructor(config) {
|
|
330
|
+
this.config = config;
|
|
331
|
+
this.eventEmitter = config.eventEmitter ?? storeEmitter;
|
|
332
|
+
}
|
|
333
|
+
kind() {
|
|
334
|
+
return this.runtimeKind;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Resolve the effective max_tokens budget for LLM calls.
|
|
338
|
+
*
|
|
339
|
+
* PRI-621: pass through ONLY the explicit profile config. When unset, the
|
|
340
|
+
* budget is left to pi-ai's native defaulting — `options.maxTokens ??
|
|
341
|
+
* min(model.maxTokens, 32000)` with thinking-budget management that keeps
|
|
342
|
+
* answer tokens available when chain-of-thought shares the ceiling. The old
|
|
343
|
+
* heuristic (forced 4096, or 16K when `/deepseek/i` matched the PROVIDER
|
|
344
|
+
* name) misfired on relays (provider "Bai" serving deepseek-v4-flash got
|
|
345
|
+
* the 4096 cap that BUG-007a was written to prevent) and bypassed pi-ai's
|
|
346
|
+
* catalog metadata entirely. Catalog-first resolveModel() now supplies the
|
|
347
|
+
* correct per-model ceiling, so the heuristic is retired.
|
|
348
|
+
*/
|
|
349
|
+
resolveMaxTokens() {
|
|
350
|
+
return this.config.maxTokens;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Effective per-run output budget: StartRunInput.maxTokens (PRI-966 G2 lab
|
|
354
|
+
* actor / I0) when the caller supplies one, else exactly the pre-existing
|
|
355
|
+
* resolveMaxTokens() behavior (profile value or pi-ai native defaulting —
|
|
356
|
+
* byte-identical legacy behavior for callers that do not pass the field).
|
|
357
|
+
*
|
|
358
|
+
* A present per-request budget is a HARD cap for this run's requests, but it
|
|
359
|
+
* can never RAISE the budget above an existing authority: effective =
|
|
360
|
+
* min(per-request, profile config.maxTokens, model ceiling). Bogus
|
|
361
|
+
* non-positive profile values are ignored as ceilings (they were never
|
|
362
|
+
* honored budgets); the per-request value itself must be a positive finite
|
|
363
|
+
* integer — anything else fails loud (input_invalid) BEFORE any request is
|
|
364
|
+
* built (rc-3), so a broken budget can never silently disable budgeting.
|
|
365
|
+
*/
|
|
366
|
+
resolveEffectiveMaxTokens(input, model) {
|
|
367
|
+
const perRequest = input.maxTokens;
|
|
368
|
+
if (perRequest === undefined) {
|
|
369
|
+
return this.resolveMaxTokens();
|
|
370
|
+
}
|
|
371
|
+
if (typeof perRequest !== 'number' || !Number.isFinite(perRequest) || !Number.isInteger(perRequest) || perRequest < 1) {
|
|
372
|
+
throw new PDRuntimeError('input_invalid', `StartRunInput.maxTokens must be a positive finite integer, got ${String(perRequest)}`, {
|
|
373
|
+
maxTokens: perRequest,
|
|
374
|
+
nextAction: 'Pass a positive integer output-token budget, or omit maxTokens to use the profile default.',
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
let effective = perRequest;
|
|
378
|
+
const profile = this.config.maxTokens;
|
|
379
|
+
if (typeof profile === 'number' && Number.isFinite(profile) && profile >= 1 && profile < effective) {
|
|
380
|
+
effective = profile;
|
|
381
|
+
}
|
|
382
|
+
const modelCeiling = model.maxTokens;
|
|
383
|
+
if (typeof modelCeiling === 'number' && Number.isFinite(modelCeiling) && modelCeiling >= 1 && modelCeiling < effective) {
|
|
384
|
+
effective = modelCeiling;
|
|
385
|
+
}
|
|
386
|
+
return effective;
|
|
387
|
+
}
|
|
388
|
+
async getCapabilities() {
|
|
389
|
+
return this.defaultCapabilities;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Three-stage health probe (per M6 lesson: binary/list-only checks are fake probes).
|
|
393
|
+
*
|
|
394
|
+
* 1. apiKey exists in environment
|
|
395
|
+
* 2. getModel validates without throwing
|
|
396
|
+
* 3. Minimal complete probe with {"ok":true} verification
|
|
397
|
+
*/
|
|
398
|
+
async healthCheck() {
|
|
399
|
+
const lastCheckedAt = new Date().toISOString();
|
|
400
|
+
// Stage 1: apiKey exists
|
|
401
|
+
const apiKey = process.env[this.config.apiKeyEnv];
|
|
402
|
+
if (!apiKey) {
|
|
403
|
+
return {
|
|
404
|
+
healthy: false,
|
|
405
|
+
degraded: false,
|
|
406
|
+
warnings: [`API key not found in env: ${this.config.apiKeyEnv}`],
|
|
407
|
+
lastCheckedAt,
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
// Stage 2+3: getModel valid + minimal complete probe
|
|
411
|
+
try {
|
|
412
|
+
const model = resolveModel(this.config.provider, this.config.model, this.config.baseUrl);
|
|
413
|
+
const timeoutMs = this.config.timeoutMs ?? 120_000;
|
|
414
|
+
const signal = AbortSignal.timeout(timeoutMs);
|
|
415
|
+
const probeContext = {
|
|
416
|
+
messages: [{
|
|
417
|
+
role: 'user',
|
|
418
|
+
content: 'Reply with {"ok":true} only.',
|
|
419
|
+
timestamp: Date.now(),
|
|
420
|
+
}],
|
|
421
|
+
};
|
|
422
|
+
const response = await completeSimple(model, probeContext, {
|
|
423
|
+
signal,
|
|
424
|
+
apiKey,
|
|
425
|
+
timeoutMs,
|
|
426
|
+
maxRetries: 0,
|
|
427
|
+
maxTokens: this.resolveMaxTokens(),
|
|
428
|
+
fetch: this.config.fetch ?? getPiAiFetchForApi(model.api),
|
|
429
|
+
});
|
|
430
|
+
// extractAssistantTextOrThrow normalizes resolved-error responses
|
|
431
|
+
const text = extractAssistantTextOrThrow(response, signal);
|
|
432
|
+
const parsed = extractJsonObject(text);
|
|
433
|
+
if (typeof parsed !== 'object' ||
|
|
434
|
+
parsed === null ||
|
|
435
|
+
!Object.hasOwn(parsed, 'ok') ||
|
|
436
|
+
parsed.ok !== true) {
|
|
437
|
+
return {
|
|
438
|
+
healthy: false,
|
|
439
|
+
degraded: true,
|
|
440
|
+
warnings: [`probe returned unexpected result: ${text.substring(0, 200)}`],
|
|
441
|
+
lastCheckedAt,
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
catch (err) {
|
|
446
|
+
// PDRuntimeError from extractAssistantTextOrThrow (timeout/execution_failed)
|
|
447
|
+
// or thrown errors from complete() (AbortError, network, etc.)
|
|
448
|
+
if (err instanceof PDRuntimeError && err.category === 'timeout') {
|
|
449
|
+
return {
|
|
450
|
+
healthy: false,
|
|
451
|
+
degraded: true,
|
|
452
|
+
warnings: [`probe timed out: ${err.message}`],
|
|
453
|
+
lastCheckedAt,
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
if (err instanceof PDRuntimeError) {
|
|
457
|
+
return {
|
|
458
|
+
healthy: false,
|
|
459
|
+
degraded: err.category === 'output_invalid',
|
|
460
|
+
warnings: [`probe failed: ${err.message}`],
|
|
461
|
+
lastCheckedAt,
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
if (isAbortError(err)) {
|
|
465
|
+
return {
|
|
466
|
+
healthy: false,
|
|
467
|
+
degraded: true,
|
|
468
|
+
warnings: ['probe timed out'],
|
|
469
|
+
lastCheckedAt,
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
return {
|
|
473
|
+
healthy: false,
|
|
474
|
+
degraded: false,
|
|
475
|
+
warnings: [`probe failed: ${err instanceof Error ? err.message : String(err)}`],
|
|
476
|
+
lastCheckedAt,
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
return { healthy: true, degraded: false, warnings: [], lastCheckedAt };
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* One-shot run: call LLM via pi-ai complete(), parse and validate output.
|
|
483
|
+
* Blocks until LLM responds (or times out). Run is terminal on return.
|
|
484
|
+
*
|
|
485
|
+
* Timeout priority: input.timeoutMs (from runner) > this.config.timeoutMs (from workflows.yaml) > 300_000 (default)
|
|
486
|
+
* The resolved effectiveTimeoutMs is passed through to completeWithRetry and pi-ai complete()
|
|
487
|
+
* so that the provider request timeout always matches the runner's intent.
|
|
488
|
+
*/
|
|
489
|
+
async startRun(input) {
|
|
490
|
+
const runId = crypto.randomUUID();
|
|
491
|
+
const startedAt = new Date().toISOString();
|
|
492
|
+
// Read API key
|
|
493
|
+
const apiKey = process.env[this.config.apiKeyEnv];
|
|
494
|
+
if (!apiKey) {
|
|
495
|
+
throw new PDRuntimeError('runtime_unavailable', `API key not found in env: ${this.config.apiKeyEnv}`);
|
|
496
|
+
}
|
|
497
|
+
// Create run state immediately — failed runs are always trackable
|
|
498
|
+
const runState = {
|
|
499
|
+
runId,
|
|
500
|
+
startedAt,
|
|
501
|
+
endedAt: startedAt, // will be updated on completion
|
|
502
|
+
status: 'failed', // default until succeeded
|
|
503
|
+
};
|
|
504
|
+
this.runs.set(runId, runState);
|
|
505
|
+
// AbortSignal.timeout for clean timeout control
|
|
506
|
+
// Priority: input.timeoutMs (runner) > config.timeoutMs (workflows.yaml) > 300_000 (default)
|
|
507
|
+
const effectiveTimeoutMs = input.timeoutMs ?? this.config.timeoutMs ?? 300_000;
|
|
508
|
+
const timeoutSource = input.timeoutMs !== undefined ? 'runner_input'
|
|
509
|
+
: this.config.timeoutMs !== undefined ? 'adapter_config'
|
|
510
|
+
: 'default';
|
|
511
|
+
const signal = AbortSignal.timeout(effectiveTimeoutMs);
|
|
512
|
+
// Build pi-ai Context from inputPayload
|
|
513
|
+
const messageContent = typeof input.inputPayload === 'string'
|
|
514
|
+
? input.inputPayload
|
|
515
|
+
: JSON.stringify(input.inputPayload);
|
|
516
|
+
const userMessage = {
|
|
517
|
+
role: 'user',
|
|
518
|
+
content: messageContent,
|
|
519
|
+
timestamp: Date.now(),
|
|
520
|
+
};
|
|
521
|
+
// PRI-633: layered system prompt — base layer from the run's prompt
|
|
522
|
+
// builder (input.systemPrompt: agent role + protocol) + append layer from
|
|
523
|
+
// the profile config (this.config.systemPrompt). When both are absent the
|
|
524
|
+
// Context keeps its pre-PRI-633 shape (no systemPrompt field).
|
|
525
|
+
const systemPrompt = mergeSystemPromptLayers(input.systemPrompt, this.config.systemPrompt);
|
|
526
|
+
const context = {
|
|
527
|
+
messages: [userMessage],
|
|
528
|
+
...(systemPrompt ? { systemPrompt } : {}),
|
|
529
|
+
};
|
|
530
|
+
// Get model
|
|
531
|
+
const model = resolveModel(this.config.provider, this.config.model, this.config.baseUrl);
|
|
532
|
+
// Per-run output budget: each output path below resolves it through
|
|
533
|
+
// resolveEffectiveMaxTokens(input, model) — validating an explicit
|
|
534
|
+
// per-request budget BEFORE its first request is built, and applying the
|
|
535
|
+
// min(per-request, profile, model-ceiling) hard cap.
|
|
536
|
+
// Emit runtime_invocation_started telemetry
|
|
537
|
+
this.eventEmitter.emitTelemetry({
|
|
538
|
+
eventType: 'runtime_invocation_started',
|
|
539
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
540
|
+
timestamp: startedAt,
|
|
541
|
+
sessionId: 'pi-ai-adapter',
|
|
542
|
+
agentId: 'pi-ai-adapter',
|
|
543
|
+
payload: {
|
|
544
|
+
runId,
|
|
545
|
+
runtimeKind: 'pi-ai',
|
|
546
|
+
runnerKind: input.agentSpec.agentId,
|
|
547
|
+
provider: this.config.provider,
|
|
548
|
+
model: this.config.model,
|
|
549
|
+
timeoutMs: effectiveTimeoutMs,
|
|
550
|
+
timeoutSource,
|
|
551
|
+
outputSchemaRef: input.outputSchemaRef ?? 'unknown',
|
|
552
|
+
},
|
|
553
|
+
});
|
|
554
|
+
try {
|
|
555
|
+
// PRI-271 B3: Three-path fallback chain for structured output
|
|
556
|
+
const schemaRef = input.outputSchemaRef;
|
|
557
|
+
const schema = resolveOutputSchema(schemaRef);
|
|
558
|
+
// rc-3-fail-loud-missing: a non-empty outputSchemaRef that cannot be
|
|
559
|
+
// resolved is a bug (typo or unregistered schema). Fail loud instead of
|
|
560
|
+
// silently skipping schema-gated validation paths.
|
|
561
|
+
if (schemaRef && !schema) {
|
|
562
|
+
throw new PDRuntimeError('output_invalid', `Unknown outputSchemaRef: ${schemaRef}`, {
|
|
563
|
+
parseFailureReason: 'unknown_output_schema_ref',
|
|
564
|
+
outputSchemaRef: schemaRef,
|
|
565
|
+
nextAction: `Register the schema in OUTPUT_SCHEMA_REGISTRY or pass a known ref (e.g. 'diag-rootcause-output-v1')`,
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
const strategy = this.config.outputPathStrategy ?? 'tool_call_first';
|
|
569
|
+
let validatedOutput = undefined;
|
|
570
|
+
let responseUsage = null;
|
|
571
|
+
const schemaSummary = (schema && schemaRef) ? deriveSchemaSummary(schema) : undefined;
|
|
572
|
+
// PRI-621 RC2: full serialized schema for the repair loop — the summary
|
|
573
|
+
// alone leaves nested enums/constraints invisible to the repair LLM.
|
|
574
|
+
// Serialization is defensive: if it ever fails, the repair loop falls
|
|
575
|
+
// back to the summary instead of losing the repair path entirely.
|
|
576
|
+
let schemaJson;
|
|
577
|
+
if (schema && schemaRef) {
|
|
578
|
+
try {
|
|
579
|
+
schemaJson = JSON.stringify(typeboxToOpenAIJsonSchema(schema));
|
|
580
|
+
}
|
|
581
|
+
catch {
|
|
582
|
+
schemaJson = undefined;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
// ── Path 1: Tool calling (PRI-271 B2) ──
|
|
586
|
+
if (strategy === 'tool_call_first' && schema && schemaRef) {
|
|
587
|
+
const toolResult = await this.tryToolCallPath({ model, baseContext: context, schemaRef, schema, signal, apiKey, effectiveTimeoutMs, input, runId });
|
|
588
|
+
if (toolResult.success && toolResult.output !== undefined) {
|
|
589
|
+
validatedOutput = toolResult.output;
|
|
590
|
+
responseUsage = toolResult.usage ?? null;
|
|
591
|
+
this.emitOutputPathTelemetry({ runId, input, path: 'tool_call', fallbackReason: null });
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
this.emitOutputPathTelemetry({ runId, input, path: null, fallbackReason: toolResult.fallbackReason ?? 'provider_no_tool_use' });
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
// ── Path 2: JSON mode (PRI-271 B1) ──
|
|
598
|
+
if (!validatedOutput && (strategy === 'tool_call_first' || strategy === 'json_mode_first') && schema && schemaRef) {
|
|
599
|
+
const jsonResult = await this.tryJsonModePath({ model, baseContext: context, schemaRef, schema, signal, apiKey, effectiveTimeoutMs, input, runId });
|
|
600
|
+
if (jsonResult.success && jsonResult.output !== undefined) {
|
|
601
|
+
validatedOutput = jsonResult.output;
|
|
602
|
+
responseUsage = jsonResult.usage ?? null;
|
|
603
|
+
this.emitOutputPathTelemetry({ runId, input, path: 'json_object_mode', fallbackReason: null });
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
this.emitOutputPathTelemetry({ runId, input, path: null, fallbackReason: jsonResult.fallbackReason ?? 'json_parse_failed' });
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
// ── Path 3: Free-form + repair (current behavior, enhanced) ──
|
|
610
|
+
if (!validatedOutput) {
|
|
611
|
+
const response = await this.completeWithRetry(model, context, { signal, apiKey, effectiveTimeoutMs, timeoutSource, input, runId });
|
|
612
|
+
const text = extractAssistantTextOrThrow(response, signal);
|
|
613
|
+
// PRI-707: preserve what the provider actually told us about how the
|
|
614
|
+
// response ended. Before this, finish metadata (stopReason/usage) was
|
|
615
|
+
// read only for the error/aborted/no-text branches and silently
|
|
616
|
+
// dropped whenever any text was extractable — so a token-limit cut
|
|
617
|
+
// was indistinguishable from a true format error ("No valid JSON").
|
|
618
|
+
// Fields are kept undefined when the provider did not supply them
|
|
619
|
+
// (rc-3: no fabrication; rc-9: degradation stays observable).
|
|
620
|
+
responseUsage = usageSummaryOf(response.usage);
|
|
621
|
+
const finishStopReason = typeof response.stopReason === 'string' ? response.stopReason : undefined;
|
|
622
|
+
const finishOutputTokens = typeof response.usage?.output === 'number' && Number.isFinite(response.usage.output)
|
|
623
|
+
? response.usage.output
|
|
624
|
+
: undefined;
|
|
625
|
+
const truncatedByProvider = finishStopReason === 'length';
|
|
626
|
+
// PRI-621 RC3: schema-aware selection — when the answer contains
|
|
627
|
+
// several complete objects (truncated outer answer + parseable inner
|
|
628
|
+
// fragment), pick the one matching the schema's required keys instead
|
|
629
|
+
// of whichever balanced brace came first.
|
|
630
|
+
const extractionCandidates = extractJsonObjects(text);
|
|
631
|
+
const requiredKeys = schemaRequiredKeys(schema);
|
|
632
|
+
let parsedOutput = selectBestJsonObject(extractionCandidates, requiredKeys);
|
|
633
|
+
const extractionCandidateCount = extractionCandidates.length;
|
|
634
|
+
// Classic truncation signature: the selected object carries NONE of
|
|
635
|
+
// the schema's required top-level keys.
|
|
636
|
+
const truncationSuspected = requiredKeys !== undefined
|
|
637
|
+
&& parsedOutput !== null
|
|
638
|
+
&& !requiredKeys.some((key) => Object.hasOwn(parsedOutput, key));
|
|
639
|
+
if (!parsedOutput) {
|
|
640
|
+
this.eventEmitter.emitTelemetry({
|
|
641
|
+
eventType: 'output_extraction_failed',
|
|
642
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
643
|
+
timestamp: new Date().toISOString(),
|
|
644
|
+
sessionId: 'pi-ai-adapter',
|
|
645
|
+
agentId: 'pi-ai-adapter',
|
|
646
|
+
payload: {
|
|
647
|
+
runId,
|
|
648
|
+
runtimeKind: 'pi-ai',
|
|
649
|
+
provider: this.config.provider,
|
|
650
|
+
model: this.config.model,
|
|
651
|
+
outputSchemaRef: input.outputSchemaRef ?? 'unknown',
|
|
652
|
+
rawOutputPreview: text.slice(0, 500),
|
|
653
|
+
// PRI-707: finish metadata travels with the failure evidence.
|
|
654
|
+
stopReason: finishStopReason,
|
|
655
|
+
outputTokens: finishOutputTokens,
|
|
656
|
+
truncated: truncatedByProvider || undefined,
|
|
657
|
+
},
|
|
658
|
+
});
|
|
659
|
+
if (truncatedByProvider) {
|
|
660
|
+
throw new PDRuntimeError('output_invalid', 'LLM response truncated (finish_reason=length); no valid JSON could be extracted', {
|
|
661
|
+
truncated: true,
|
|
662
|
+
stopReason: finishStopReason,
|
|
663
|
+
outputTokens: finishOutputTokens,
|
|
664
|
+
rawOutputPreview: text.slice(0, 500),
|
|
665
|
+
nextAction: 'The output hit the token limit, it is not a format error: shorten the expected output (split the task, reduce payload) or increase maxTokens in the runtime profile config.',
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
throw new PDRuntimeError('output_invalid', 'No valid JSON found in LLM response');
|
|
669
|
+
}
|
|
670
|
+
if (schema && !Value.Check(schema, parsedOutput)) {
|
|
671
|
+
// Schema validation failed — attempt repair with enhanced config (PRI-271 A1/A2/A3)
|
|
672
|
+
const schemaErrors = [...Value.Errors(schema, parsedOutput)]
|
|
673
|
+
.map(e => ({ path: e.path, message: e.message, value: e.value }));
|
|
674
|
+
const validationErrorEntries = schemaErrors
|
|
675
|
+
.slice(0, 10)
|
|
676
|
+
.map(e => formatValidationErrorEntry(e.path, e.message, e.value));
|
|
677
|
+
const rawOutputPreview = safeStringifyPreview(parsedOutput);
|
|
678
|
+
this.eventEmitter.emitTelemetry({
|
|
679
|
+
eventType: 'output_schema_invalid',
|
|
680
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
681
|
+
timestamp: new Date().toISOString(),
|
|
682
|
+
sessionId: 'pi-ai-adapter',
|
|
683
|
+
agentId: 'pi-ai-adapter',
|
|
684
|
+
payload: {
|
|
685
|
+
runId,
|
|
686
|
+
runtimeKind: 'pi-ai',
|
|
687
|
+
outputSchemaRef: schemaRef ?? 'unknown',
|
|
688
|
+
provider: this.config.provider,
|
|
689
|
+
model: this.config.model,
|
|
690
|
+
rawOutputPreview,
|
|
691
|
+
validationErrors: validationErrorEntries,
|
|
692
|
+
},
|
|
693
|
+
});
|
|
694
|
+
const originalOutput = typeof parsedOutput === 'object'
|
|
695
|
+
? parsedOutput
|
|
696
|
+
: undefined;
|
|
697
|
+
const repairResult = await attemptStructuredOutputRepair(parsedOutput, schemaErrors, {
|
|
698
|
+
llmCaller: (prompt) => this.repairLLMCall(model, prompt, { signal, apiKey, systemPrompt, input }),
|
|
699
|
+
schemaCheck: (value) => Value.Check(schema, value),
|
|
700
|
+
schemaErrors: (value) => [...Value.Errors(schema, value)].map(e => ({ path: e.path, message: e.message, value: e.value })),
|
|
701
|
+
}, {
|
|
702
|
+
schemaRef: schemaRef ?? 'unknown',
|
|
703
|
+
originalOutput,
|
|
704
|
+
schemaSummary,
|
|
705
|
+
schemaJson,
|
|
706
|
+
requiredKeys,
|
|
707
|
+
maxRepairAttempts: this.config.maxRepairAttempts,
|
|
708
|
+
// PRI-707: when finish metadata proves the output was cut by the
|
|
709
|
+
// token limit, the repair LLM must know — repairing a truncated
|
|
710
|
+
// fragment like a schema misunderstanding produced blind fixes.
|
|
711
|
+
truncationNotice: truncatedByProvider
|
|
712
|
+
? `The previous output was cut off by the token limit (finish_reason=length${finishOutputTokens !== undefined ? `, ${finishOutputTokens} output tokens` : ''}). It is incomplete, not misunderstood. Do NOT invent missing content beyond the schema; produce the SHORTEST complete JSON object that satisfies the schema.`
|
|
713
|
+
: undefined,
|
|
714
|
+
});
|
|
715
|
+
this.eventEmitter.emitTelemetry({
|
|
716
|
+
eventType: 'output_repair_attempted',
|
|
717
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
718
|
+
timestamp: new Date().toISOString(),
|
|
719
|
+
sessionId: 'pi-ai-adapter',
|
|
720
|
+
agentId: 'pi-ai-adapter',
|
|
721
|
+
payload: {
|
|
722
|
+
runId,
|
|
723
|
+
runtimeKind: 'pi-ai',
|
|
724
|
+
outputSchemaRef: schemaRef ?? 'unknown',
|
|
725
|
+
repaired: repairResult.repaired,
|
|
726
|
+
attemptsUsed: repairResult.attemptsUsed,
|
|
727
|
+
repairSummary: repairResult.repairSummary,
|
|
728
|
+
repairAttempts: repairResult.repairAttempts,
|
|
729
|
+
outputPath: 'free_form_with_repair',
|
|
730
|
+
},
|
|
731
|
+
});
|
|
732
|
+
if (repairResult.repaired && repairResult.output) {
|
|
733
|
+
parsedOutput = repairResult.output;
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
736
|
+
const evidencePack = {
|
|
737
|
+
schemaRef: schemaRef ?? 'unknown',
|
|
738
|
+
provider: this.config.provider,
|
|
739
|
+
model: this.config.model,
|
|
740
|
+
rawOutputPreview,
|
|
741
|
+
validationErrors: validationErrorEntries,
|
|
742
|
+
repairAttempts: repairResult.repairAttempts,
|
|
743
|
+
finalFailureReason: 'repair_exhausted',
|
|
744
|
+
// PRI-621 RC3 diagnostics: how many complete objects the answer
|
|
745
|
+
// contained, and whether the selected one matches none of the
|
|
746
|
+
// schema's required keys (classic truncation signature).
|
|
747
|
+
extractionCandidateCount,
|
|
748
|
+
truncationSuspected: truncationSuspected || undefined,
|
|
749
|
+
// PRI-707: definitive truncation evidence comes from provider
|
|
750
|
+
// finish metadata — kept only when the response carried it.
|
|
751
|
+
stopReason: finishStopReason,
|
|
752
|
+
truncated: truncatedByProvider || undefined,
|
|
753
|
+
outputTokens: finishOutputTokens,
|
|
754
|
+
};
|
|
755
|
+
this.eventEmitter.emitTelemetry({
|
|
756
|
+
eventType: 'output_repair_exhausted',
|
|
757
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
758
|
+
timestamp: new Date().toISOString(),
|
|
759
|
+
sessionId: 'pi-ai-adapter',
|
|
760
|
+
agentId: 'pi-ai-adapter',
|
|
761
|
+
payload: {
|
|
762
|
+
runId,
|
|
763
|
+
runtimeKind: 'pi-ai',
|
|
764
|
+
outputSchemaRef: schemaRef ?? 'unknown',
|
|
765
|
+
provider: this.config.provider,
|
|
766
|
+
model: this.config.model,
|
|
767
|
+
rawOutputPreview,
|
|
768
|
+
validationErrors: validationErrorEntries,
|
|
769
|
+
repairAttempts: evidencePack.repairAttempts,
|
|
770
|
+
finalFailureReason: evidencePack.finalFailureReason,
|
|
771
|
+
// PRI-707: keep the terminal repair-exhausted event able to
|
|
772
|
+
// distinguish a token-limit cut from an ordinary schema
|
|
773
|
+
// failure — mirror the evidencePack finish metadata (PR #1574
|
|
774
|
+
// review finding).
|
|
775
|
+
stopReason: finishStopReason,
|
|
776
|
+
truncated: truncatedByProvider || undefined,
|
|
777
|
+
outputTokens: finishOutputTokens,
|
|
778
|
+
},
|
|
779
|
+
});
|
|
780
|
+
throw new PDRuntimeError('output_invalid', `LLM output does not match ${schemaRef ?? 'unknown'} schema`, { evidencePack });
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
// Lineage fields (taskId/sourcePainId/sourceTaskId/etc.) are
|
|
784
|
+
// intentionally stripped from LLM output. Downstream consumers
|
|
785
|
+
// (DiagnosticianRunner, committer) MUST get these values from
|
|
786
|
+
// RunnerContext / TaskRecord, never from validated output.
|
|
787
|
+
// This prevents LLM-supplied lineage from poisoning downstream
|
|
788
|
+
// commits (ERR-008 family). See PRI-272.
|
|
789
|
+
const protectedFreeForm = typeof parsedOutput === 'object' && parsedOutput !== null
|
|
790
|
+
? stripLineageFields(parsedOutput)
|
|
791
|
+
: parsedOutput;
|
|
792
|
+
validatedOutput = protectedFreeForm;
|
|
793
|
+
this.emitOutputPathTelemetry({ runId, input, path: 'free_form_with_repair', fallbackReason: null });
|
|
794
|
+
}
|
|
795
|
+
// Update run state to succeeded
|
|
796
|
+
const endedAt = new Date().toISOString();
|
|
797
|
+
runState.status = 'succeeded';
|
|
798
|
+
runState.endedAt = endedAt;
|
|
799
|
+
runState.output = { runId, payload: validatedOutput };
|
|
800
|
+
// Emit runtime_invocation_succeeded telemetry
|
|
801
|
+
this.eventEmitter.emitTelemetry({
|
|
802
|
+
eventType: 'runtime_invocation_succeeded',
|
|
803
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
804
|
+
timestamp: endedAt,
|
|
805
|
+
sessionId: 'pi-ai-adapter',
|
|
806
|
+
agentId: 'pi-ai-adapter',
|
|
807
|
+
payload: {
|
|
808
|
+
runId,
|
|
809
|
+
runtimeKind: 'pi-ai',
|
|
810
|
+
// PRI-966 G2 P1-03: actual usage from the provider response that
|
|
811
|
+
// produced the run's output (null fields when the provider did not
|
|
812
|
+
// surface counts — never guessed). Repair/retry attempts are
|
|
813
|
+
// accounted separately at the HTTP ledger layer.
|
|
814
|
+
usage: responseUsage,
|
|
815
|
+
},
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
catch (err) {
|
|
819
|
+
// Update run state to failed
|
|
820
|
+
const endedAt = new Date().toISOString();
|
|
821
|
+
runState.endedAt = endedAt;
|
|
822
|
+
const elapsedMs = Date.now() - Date.parse(startedAt);
|
|
823
|
+
const maxRetries = this.config.maxRetries ?? 2;
|
|
824
|
+
let timeoutClassification = 'not_applicable';
|
|
825
|
+
let providerEvidence = '';
|
|
826
|
+
let retryAttempt = 0;
|
|
827
|
+
if (err instanceof PDRuntimeError && err.details) {
|
|
828
|
+
const { details } = err;
|
|
829
|
+
if (isObjectWithKey(details, 'timeoutClassification')) {
|
|
830
|
+
const { timeoutClassification: tc } = details;
|
|
831
|
+
if (typeof tc === 'string')
|
|
832
|
+
timeoutClassification = tc;
|
|
833
|
+
}
|
|
834
|
+
if (isObjectWithKey(details, 'providerEvidence')) {
|
|
835
|
+
const { providerEvidence: pe } = details;
|
|
836
|
+
if (typeof pe === 'string')
|
|
837
|
+
providerEvidence = pe;
|
|
838
|
+
}
|
|
839
|
+
if (isObjectWithKey(details, 'retryAttempt')) {
|
|
840
|
+
const { retryAttempt: ra } = details;
|
|
841
|
+
if (typeof ra === 'number')
|
|
842
|
+
retryAttempt = ra;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
if (isAbortError(err, signal)) {
|
|
846
|
+
runState.status = 'timed_out';
|
|
847
|
+
runState.reason = `[timeout] LLM request timed out after ${effectiveTimeoutMs}ms (timeoutSource=${timeoutSource})`;
|
|
848
|
+
if (timeoutClassification === 'not_applicable') {
|
|
849
|
+
timeoutClassification = signal?.aborted ? 'client_timeout_budget_exhausted' : 'provider_transient_timeout';
|
|
850
|
+
}
|
|
851
|
+
if (!providerEvidence) {
|
|
852
|
+
providerEvidence = safeStringifyPreview(err, 300);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
else if (err instanceof PDRuntimeError) {
|
|
856
|
+
runState.status = 'failed';
|
|
857
|
+
runState.reason = err.message;
|
|
858
|
+
if (err.category === 'timeout') {
|
|
859
|
+
runState.status = 'timed_out';
|
|
860
|
+
if (timeoutClassification === 'not_applicable') {
|
|
861
|
+
timeoutClassification = 'provider_transient_timeout';
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
if (!providerEvidence) {
|
|
865
|
+
providerEvidence = safeStringifyPreview(err, 300);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
else {
|
|
869
|
+
runState.status = 'failed';
|
|
870
|
+
runState.reason = err instanceof Error ? err.message : String(err);
|
|
871
|
+
providerEvidence = safeStringifyPreview(err, 300);
|
|
872
|
+
}
|
|
873
|
+
// Emit runtime_invocation_failed telemetry
|
|
874
|
+
const errorCategory = err instanceof PDRuntimeError ? err.category : 'execution_failed';
|
|
875
|
+
this.eventEmitter.emitTelemetry({
|
|
876
|
+
eventType: 'runtime_invocation_failed',
|
|
877
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
878
|
+
timestamp: endedAt,
|
|
879
|
+
sessionId: 'pi-ai-adapter',
|
|
880
|
+
agentId: 'pi-ai-adapter',
|
|
881
|
+
payload: {
|
|
882
|
+
runId,
|
|
883
|
+
runtimeKind: 'pi-ai',
|
|
884
|
+
runnerKind: input.agentSpec.agentId,
|
|
885
|
+
provider: this.config.provider,
|
|
886
|
+
model: this.config.model,
|
|
887
|
+
effectiveTimeoutMs,
|
|
888
|
+
timeoutSource,
|
|
889
|
+
elapsedMs,
|
|
890
|
+
timeoutClassification,
|
|
891
|
+
retryAttempt,
|
|
892
|
+
maxRetries,
|
|
893
|
+
providerEvidence,
|
|
894
|
+
errorMessage: runState.reason,
|
|
895
|
+
errorCategory,
|
|
896
|
+
finalFailure: true,
|
|
897
|
+
},
|
|
898
|
+
});
|
|
899
|
+
// Re-throw PDRuntimeError as-is, wrap others
|
|
900
|
+
if (err instanceof PDRuntimeError) {
|
|
901
|
+
throw err;
|
|
902
|
+
}
|
|
903
|
+
throw new PDRuntimeError('execution_failed', `LLM completion failed: ${err instanceof Error ? err.message : String(err)}`, {
|
|
904
|
+
elapsedMs,
|
|
905
|
+
providerEvidence,
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
return { runId, runtimeKind: 'pi-ai', startedAt };
|
|
909
|
+
}
|
|
910
|
+
async pollRun(runId) {
|
|
911
|
+
const state = this.runs.get(runId);
|
|
912
|
+
if (!state) {
|
|
913
|
+
throw new PDRuntimeError('input_invalid', `Run ${runId} not found`);
|
|
914
|
+
}
|
|
915
|
+
return {
|
|
916
|
+
runId,
|
|
917
|
+
status: state.status,
|
|
918
|
+
startedAt: state.startedAt,
|
|
919
|
+
endedAt: state.endedAt,
|
|
920
|
+
reason: state.reason,
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
async cancelRun(runId) {
|
|
924
|
+
// One-shot mode: startRun() blocks until LLM responds, so cancel is always a no-op.
|
|
925
|
+
// The run is already terminal by the time cancelRun could be called.
|
|
926
|
+
const state = this.runs.get(runId);
|
|
927
|
+
if (state && state.status === 'succeeded') {
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
async fetchOutput(runId) {
|
|
932
|
+
const state = this.runs.get(runId);
|
|
933
|
+
if (!state || !state.output) {
|
|
934
|
+
return null;
|
|
935
|
+
}
|
|
936
|
+
return state.output;
|
|
937
|
+
}
|
|
938
|
+
async fetchArtifacts(runId) {
|
|
939
|
+
// Artifact refs are not yet exposed by the pi-ai adapter.
|
|
940
|
+
// The DiagnosticianRunner stores artifacts via committer.writeArtifact() directly.
|
|
941
|
+
// Validate runId exists for API consistency with other methods.
|
|
942
|
+
if (!this.runs.has(runId)) {
|
|
943
|
+
throw new PDRuntimeError('input_invalid', `Run '${runId}' not found`);
|
|
944
|
+
}
|
|
945
|
+
return [];
|
|
946
|
+
}
|
|
947
|
+
// ── Private helpers ──
|
|
948
|
+
// ── PRI-271: Three-path output extraction ──
|
|
949
|
+
/**
|
|
950
|
+
* Path 1: Tool calling (PRI-271 B2).
|
|
951
|
+
*
|
|
952
|
+
* Passes a schema-derived tool definition via context.tools and injects
|
|
953
|
+
* `tool_choice: 'required'` via onPayload. If the provider supports tool
|
|
954
|
+
* calling, the response contains ToolCall content blocks with pre-parsed
|
|
955
|
+
* arguments that we validate against the schema.
|
|
956
|
+
*
|
|
957
|
+
* PRI-284: Tool definition uses params.schema (per-runner) instead of
|
|
958
|
+
* hardcoded DiagnosticianOutputV1Schema.
|
|
959
|
+
*/
|
|
960
|
+
async tryToolCallPath(params) {
|
|
961
|
+
try {
|
|
962
|
+
const toolContext = {
|
|
963
|
+
...params.baseContext,
|
|
964
|
+
tools: [buildSchemaToolDefinition(params.schemaRef, params.schema, new DefaultSchemaPromptAdapter())],
|
|
965
|
+
};
|
|
966
|
+
const completeOptions = {
|
|
967
|
+
signal: params.signal,
|
|
968
|
+
apiKey: params.apiKey,
|
|
969
|
+
timeoutMs: params.effectiveTimeoutMs,
|
|
970
|
+
maxRetries: 0,
|
|
971
|
+
maxTokens: this.resolveEffectiveMaxTokens(params.input, params.model),
|
|
972
|
+
fetch: this.config.fetch ?? getPiAiFetchForApi(params.model.api),
|
|
973
|
+
onPayload: (payload) => {
|
|
974
|
+
if (typeof payload === 'object' && payload !== null) {
|
|
975
|
+
const p = payload;
|
|
976
|
+
p.tool_choice = 'required';
|
|
977
|
+
}
|
|
978
|
+
return payload;
|
|
979
|
+
},
|
|
980
|
+
};
|
|
981
|
+
const response = await completeSimple(params.model, toolContext, completeOptions);
|
|
982
|
+
if (response.stopReason !== 'toolUse') {
|
|
983
|
+
return { success: false, fallbackReason: 'provider_no_tool_use' };
|
|
984
|
+
}
|
|
985
|
+
// Pi 1.2 (pi-ai 0.86): ToolCall.arguments narrowed to JsonObject —
|
|
986
|
+
// narrow with the SDK's own ToolCall type instead of a widened literal.
|
|
987
|
+
const toolCallBlock = response.content.find((block) => typeof block === 'object' && block !== null && Object.hasOwn(block, 'type') && block.type === 'toolCall');
|
|
988
|
+
if (!toolCallBlock) {
|
|
989
|
+
return { success: false, fallbackReason: 'tool_call_extraction_failed' };
|
|
990
|
+
}
|
|
991
|
+
const toolArgs = toolCallBlock.arguments;
|
|
992
|
+
if (!Value.Check(params.schema, toolArgs)) {
|
|
993
|
+
return { success: false, fallbackReason: 'tool_call_schema_invalid' };
|
|
994
|
+
}
|
|
995
|
+
// Lineage fields (taskId/sourcePainId/sourceTaskId/etc.) are
|
|
996
|
+
// intentionally stripped from LLM output. Downstream consumers
|
|
997
|
+
// (DiagnosticianRunner, committer) MUST get these values from
|
|
998
|
+
// RunnerContext / TaskRecord, never from validated output.
|
|
999
|
+
// This prevents LLM-supplied lineage from poisoning downstream
|
|
1000
|
+
// commits (ERR-008 family). See PRI-271 D4 in PR description.
|
|
1001
|
+
const protectedArgs = typeof toolArgs === 'object' && toolArgs !== null
|
|
1002
|
+
? stripLineageFields(toolArgs)
|
|
1003
|
+
: toolArgs;
|
|
1004
|
+
return { success: true, output: protectedArgs, usage: usageSummaryOf(response.usage) };
|
|
1005
|
+
}
|
|
1006
|
+
catch (err) {
|
|
1007
|
+
if (err instanceof PDRuntimeError && (err.category === 'timeout' || err.category === 'runtime_unavailable')) {
|
|
1008
|
+
throw err;
|
|
1009
|
+
}
|
|
1010
|
+
const reason = err instanceof PDRuntimeError && err.category === 'output_invalid'
|
|
1011
|
+
? 'tool_call_extraction_failed'
|
|
1012
|
+
: 'provider_no_tool_use';
|
|
1013
|
+
return { success: false, fallbackReason: reason };
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Path 2: JSON mode (PRI-271 B1).
|
|
1018
|
+
*
|
|
1019
|
+
* Injects `response_format: { type: 'json_object' }` via onPayload
|
|
1020
|
+
* to force the provider to output valid JSON. Then parses and validates.
|
|
1021
|
+
*/
|
|
1022
|
+
async tryJsonModePath(params) {
|
|
1023
|
+
try {
|
|
1024
|
+
const completeOptions = {
|
|
1025
|
+
signal: params.signal,
|
|
1026
|
+
apiKey: params.apiKey,
|
|
1027
|
+
timeoutMs: params.effectiveTimeoutMs,
|
|
1028
|
+
maxRetries: 0,
|
|
1029
|
+
maxTokens: this.resolveEffectiveMaxTokens(params.input, params.model),
|
|
1030
|
+
fetch: this.config.fetch ?? getPiAiFetchForApi(params.model.api),
|
|
1031
|
+
onPayload: (payload) => {
|
|
1032
|
+
if (typeof payload === 'object' && payload !== null) {
|
|
1033
|
+
const p = payload;
|
|
1034
|
+
// PRI-559: json_object 只保证“是 JSON”,不保证符合 schema(实测丢字段)。
|
|
1035
|
+
// 升级为 json_schema 约束:llamacpp / OpenAI 兼容端点原生支持,
|
|
1036
|
+
// 由模型侧约束解码,输出直接符合 schema。
|
|
1037
|
+
p.response_format = {
|
|
1038
|
+
type: 'json_schema',
|
|
1039
|
+
json_schema: {
|
|
1040
|
+
name: sanitizeSchemaName(params.schemaRef),
|
|
1041
|
+
schema: typeboxToOpenAIJsonSchema(params.schema),
|
|
1042
|
+
},
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
return payload;
|
|
1046
|
+
},
|
|
1047
|
+
};
|
|
1048
|
+
const response = await completeSimple(params.model, params.baseContext, completeOptions);
|
|
1049
|
+
const text = extractAssistantTextOrThrow(response, params.signal);
|
|
1050
|
+
// PRI-621 RC3: schema-aware selection (same rationale as Path 3).
|
|
1051
|
+
const parsed = extractJsonObjectForSchema(text, schemaRequiredKeys(params.schema));
|
|
1052
|
+
if (!parsed) {
|
|
1053
|
+
return { success: false, fallbackReason: 'json_parse_failed' };
|
|
1054
|
+
}
|
|
1055
|
+
if (!Value.Check(params.schema, parsed)) {
|
|
1056
|
+
return { success: false, fallbackReason: 'json_schema_invalid' };
|
|
1057
|
+
}
|
|
1058
|
+
// Lineage fields (taskId/sourcePainId/sourceTaskId/etc.) are
|
|
1059
|
+
// intentionally stripped from LLM output. Downstream consumers
|
|
1060
|
+
// (DiagnosticianRunner, committer) MUST get these values from
|
|
1061
|
+
// RunnerContext / TaskRecord, never from validated output.
|
|
1062
|
+
// This prevents LLM-supplied lineage from poisoning downstream
|
|
1063
|
+
// commits (ERR-008 family). See PRI-271 D4 in PR description.
|
|
1064
|
+
const protectedParsed = typeof parsed === 'object'
|
|
1065
|
+
? stripLineageFields(parsed)
|
|
1066
|
+
: parsed;
|
|
1067
|
+
return { success: true, output: protectedParsed, usage: usageSummaryOf(response.usage) };
|
|
1068
|
+
}
|
|
1069
|
+
catch (err) {
|
|
1070
|
+
if (err instanceof PDRuntimeError && (err.category === 'timeout' || err.category === 'runtime_unavailable')) {
|
|
1071
|
+
throw err;
|
|
1072
|
+
}
|
|
1073
|
+
if (err instanceof PDRuntimeError && err.category === 'output_invalid') {
|
|
1074
|
+
return { success: false, fallbackReason: 'json_parse_failed' };
|
|
1075
|
+
}
|
|
1076
|
+
return { success: false, fallbackReason: 'provider_no_json_mode' };
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Emit output_path_chosen telemetry (PRI-271 B3).
|
|
1081
|
+
*
|
|
1082
|
+
* Every path selection and fallback emits structured telemetry.
|
|
1083
|
+
* `path` is set when a path succeeds; null when recording a fallback reason.
|
|
1084
|
+
*/
|
|
1085
|
+
emitOutputPathTelemetry(params) {
|
|
1086
|
+
this.eventEmitter.emitTelemetry({
|
|
1087
|
+
eventType: params.path ? 'output_path_chosen' : 'output_path_fallback',
|
|
1088
|
+
traceId: params.input.taskRef?.taskId ?? params.runId,
|
|
1089
|
+
timestamp: new Date().toISOString(),
|
|
1090
|
+
sessionId: 'pi-ai-adapter',
|
|
1091
|
+
agentId: 'pi-ai-adapter',
|
|
1092
|
+
payload: {
|
|
1093
|
+
runId: params.runId,
|
|
1094
|
+
runtimeKind: 'pi-ai',
|
|
1095
|
+
provider: this.config.provider,
|
|
1096
|
+
model: this.config.model,
|
|
1097
|
+
outputSchemaRef: params.input.outputSchemaRef ?? 'unknown',
|
|
1098
|
+
outputPath: params.path,
|
|
1099
|
+
fallbackReason: params.fallbackReason,
|
|
1100
|
+
},
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Make a single LLM call for output repair (PRI-71).
|
|
1105
|
+
* Returns extracted text response or null if no content.
|
|
1106
|
+
* Reuses same provider/model/apiKey as the original call.
|
|
1107
|
+
*
|
|
1108
|
+
* Uses an independent AbortSignal (fixed 60s timeout) to avoid the repair
|
|
1109
|
+
* call immediately timing out when the original call consumed most of the
|
|
1110
|
+
* original timeout budget (e.g., 5min original → 4m50s elapsed → 10s left).
|
|
1111
|
+
*/
|
|
1112
|
+
async repairLLMCall(model, prompt, options) {
|
|
1113
|
+
const REPAIR_TIMEOUT_MS = 60_000;
|
|
1114
|
+
const repairSignal = AbortSignal.timeout(REPAIR_TIMEOUT_MS);
|
|
1115
|
+
const repairMessage = {
|
|
1116
|
+
role: 'user',
|
|
1117
|
+
content: prompt,
|
|
1118
|
+
timestamp: Date.now(),
|
|
1119
|
+
};
|
|
1120
|
+
// PRI-633: repair calls keep the run's layered system prompt so the role/
|
|
1121
|
+
// protocol contract holds across repair attempts too.
|
|
1122
|
+
const repairContext = {
|
|
1123
|
+
messages: [repairMessage],
|
|
1124
|
+
...(options.systemPrompt ? { systemPrompt: options.systemPrompt } : {}),
|
|
1125
|
+
};
|
|
1126
|
+
const response = await completeSimple(model, repairContext, {
|
|
1127
|
+
signal: repairSignal,
|
|
1128
|
+
apiKey: options.apiKey,
|
|
1129
|
+
timeoutMs: REPAIR_TIMEOUT_MS,
|
|
1130
|
+
maxRetries: 0,
|
|
1131
|
+
maxTokens: this.resolveEffectiveMaxTokens(options.input, model),
|
|
1132
|
+
// PRI-683 transport ownership: repair calls ride the same dedicated PD
|
|
1133
|
+
// undici transport as every other path. This was the only completeSimple
|
|
1134
|
+
// call site missing `fetch` — repair requests silently bypassed the PD
|
|
1135
|
+
// transport (300s-cap bypass fix) AND the AC-6 wire recorder could not
|
|
1136
|
+
// count them, so an authorized request budget was not enforceable on
|
|
1137
|
+
// the repair path.
|
|
1138
|
+
fetch: this.config.fetch ?? getPiAiFetchForApi(model.api),
|
|
1139
|
+
});
|
|
1140
|
+
// extractAssistantTextOrThrow throws:
|
|
1141
|
+
// - output_invalid: no text content in response
|
|
1142
|
+
// - timeout: aborted/timed out (caller's signal or pi-ai internal)
|
|
1143
|
+
// - execution_failed: provider error (non-timeout)
|
|
1144
|
+
// We only swallow output_invalid, letting timeout/execution_failed propagate.
|
|
1145
|
+
try {
|
|
1146
|
+
return extractAssistantTextOrThrow(response, options.signal);
|
|
1147
|
+
}
|
|
1148
|
+
catch (err) {
|
|
1149
|
+
if (err instanceof PDRuntimeError && err.category === 'output_invalid') {
|
|
1150
|
+
return null;
|
|
1151
|
+
}
|
|
1152
|
+
throw err;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Call pi-ai complete() with retry and exponential backoff.
|
|
1157
|
+
* Disables pi-ai built-in retry (maxRetries: 0) to avoid double-retry.
|
|
1158
|
+
*/
|
|
1159
|
+
async completeWithRetry(model, context, options) {
|
|
1160
|
+
const maxRetries = this.config.maxRetries ?? 2;
|
|
1161
|
+
const { effectiveTimeoutMs = this.config.timeoutMs ?? 300_000, timeoutSource = 'default', input, runId = crypto.randomUUID(), } = options;
|
|
1162
|
+
let lastError = undefined;
|
|
1163
|
+
const overallStartTime = Date.now();
|
|
1164
|
+
// PRI-1011: the output budget actually sent for THIS invocation. It starts at
|
|
1165
|
+
// the per-run effective value (min of the per-request StartRunInput.maxTokens,
|
|
1166
|
+
// profile config, model ceiling when the caller supplies one; otherwise the
|
|
1167
|
+
// legacy profile value) and only shrinks when a provider rejects it, so a
|
|
1168
|
+
// config that was never rejected keeps its exact previous behavior.
|
|
1169
|
+
let maxTokensBudget = input !== undefined
|
|
1170
|
+
? this.resolveEffectiveMaxTokens(input, model)
|
|
1171
|
+
: this.resolveMaxTokens();
|
|
1172
|
+
const getDelay = (attemptIndex) => {
|
|
1173
|
+
return this.config._testBackoffDelayMs !== undefined
|
|
1174
|
+
? this.config._testBackoffDelayMs
|
|
1175
|
+
: Math.min(1000 * Math.pow(2, attemptIndex), 30_000);
|
|
1176
|
+
};
|
|
1177
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
1178
|
+
const elapsedMs = Date.now() - overallStartTime;
|
|
1179
|
+
const remainingMs = effectiveTimeoutMs - elapsedMs;
|
|
1180
|
+
// Fail fast if overall budget signal is aborted, or if we have already run out of budget time
|
|
1181
|
+
if (options.signal?.aborted || remainingMs <= 0) {
|
|
1182
|
+
const errorDetails = {
|
|
1183
|
+
timeoutClassification: 'client_timeout_budget_exhausted',
|
|
1184
|
+
effectiveTimeoutMs,
|
|
1185
|
+
timeoutSource,
|
|
1186
|
+
elapsedMs,
|
|
1187
|
+
retryAttempt: attempt,
|
|
1188
|
+
maxRetries,
|
|
1189
|
+
providerEvidence: options.signal?.aborted
|
|
1190
|
+
? 'Client budget signal aborted'
|
|
1191
|
+
: `Overall timeout budget exhausted (elapsed ${elapsedMs}ms of ${effectiveTimeoutMs}ms)`,
|
|
1192
|
+
};
|
|
1193
|
+
throw new PDRuntimeError('timeout', `LLM request timed out after ${effectiveTimeoutMs}ms (timeoutSource=client_budget_exhausted)`, errorDetails);
|
|
1194
|
+
}
|
|
1195
|
+
// Cap the individual attempt timeout to the remaining budget to honor the timeout budget contract
|
|
1196
|
+
const currentTimeoutMs = Math.min(effectiveTimeoutMs, remainingMs);
|
|
1197
|
+
try {
|
|
1198
|
+
const completeOptions = {
|
|
1199
|
+
signal: options.signal,
|
|
1200
|
+
apiKey: options.apiKey,
|
|
1201
|
+
timeoutMs: currentTimeoutMs,
|
|
1202
|
+
maxRetries: 0, // disable pi-ai built-in retry to avoid double-retry
|
|
1203
|
+
maxTokens: maxTokensBudget, // PRI-621: undefined = pi-ai native model ceiling; PRI-1011: shrinks on rejection
|
|
1204
|
+
fetch: this.config.fetch ?? getPiAiFetchForApi(model.api),
|
|
1205
|
+
};
|
|
1206
|
+
if (this.config.reasoning !== undefined && this.config.reasoning !== false) {
|
|
1207
|
+
completeOptions.reasoning = this.config.reasoning;
|
|
1208
|
+
}
|
|
1209
|
+
const response = await completeSimple(model, context, completeOptions);
|
|
1210
|
+
// If provider resolved with an error response, classify and potentially retry.
|
|
1211
|
+
if (response.stopReason === 'error' || response.stopReason === 'aborted') {
|
|
1212
|
+
const rawMessage = response.errorMessage ?? 'unknown provider error';
|
|
1213
|
+
const elapsedMsAfter = Date.now() - overallStartTime;
|
|
1214
|
+
const isTimeout = response.stopReason === 'aborted'
|
|
1215
|
+
|| options.signal?.aborted
|
|
1216
|
+
|| /timeout|timed\s*out/i.test(rawMessage)
|
|
1217
|
+
|| /abort/i.test(rawMessage);
|
|
1218
|
+
const classification = (options.signal?.aborted || elapsedMsAfter >= effectiveTimeoutMs)
|
|
1219
|
+
? 'client_timeout_budget_exhausted'
|
|
1220
|
+
: isTimeout
|
|
1221
|
+
? 'provider_transient_timeout'
|
|
1222
|
+
: 'not_applicable';
|
|
1223
|
+
if (isTimeout) {
|
|
1224
|
+
const errorDetails = {
|
|
1225
|
+
timeoutClassification: classification,
|
|
1226
|
+
effectiveTimeoutMs,
|
|
1227
|
+
timeoutSource,
|
|
1228
|
+
elapsedMs: elapsedMsAfter,
|
|
1229
|
+
retryAttempt: attempt,
|
|
1230
|
+
maxRetries,
|
|
1231
|
+
providerEvidence: safeStringifyPreview(rawMessage, 300),
|
|
1232
|
+
};
|
|
1233
|
+
const pdErr = new PDRuntimeError('timeout', `[timeout] LLM request timed out after ${effectiveTimeoutMs}ms (timeoutSource=provider_request)`, errorDetails);
|
|
1234
|
+
lastError = pdErr;
|
|
1235
|
+
if (classification === 'provider_transient_timeout' && attempt < maxRetries) {
|
|
1236
|
+
if (input) {
|
|
1237
|
+
this.emitAttemptTelemetry({
|
|
1238
|
+
input,
|
|
1239
|
+
runId,
|
|
1240
|
+
attempt,
|
|
1241
|
+
maxRetries,
|
|
1242
|
+
err: pdErr,
|
|
1243
|
+
elapsedMs: elapsedMsAfter,
|
|
1244
|
+
timeoutSource,
|
|
1245
|
+
effectiveTimeoutMs,
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
const delay = getDelay(attempt);
|
|
1249
|
+
await new Promise(r => setTimeout(r, delay));
|
|
1250
|
+
continue;
|
|
1251
|
+
}
|
|
1252
|
+
throw pdErr;
|
|
1253
|
+
}
|
|
1254
|
+
// execution_failed — retryable if attempts remain
|
|
1255
|
+
// ADR-0019: detect rate-limit signatures first and classify as rate_limit
|
|
1256
|
+
// (distinct from execution_failed) so downstream retryOrFail can degrade.
|
|
1257
|
+
const isRateLimit = /rate.?limit|429|quota|too many requests/i.test(rawMessage);
|
|
1258
|
+
// PRI-1011: a rejected output budget is a parameter problem, not a
|
|
1259
|
+
// transport one — resending the identical rejected value can only fail
|
|
1260
|
+
// the same way, so the next attempt goes out with a smaller budget.
|
|
1261
|
+
const isBudgetRejection = !isRateLimit && MAX_TOKENS_REJECTED_PATTERN.test(rawMessage);
|
|
1262
|
+
const errorCategory = isRateLimit ? 'rate_limit' : 'execution_failed';
|
|
1263
|
+
const pdErr = new PDRuntimeError(errorCategory, `${isRateLimit ? 'LLM rate limit hit' : 'LLM execution failed'}: ${rawMessage.substring(0, 300)}`, {
|
|
1264
|
+
retryAttempt: attempt,
|
|
1265
|
+
maxRetries,
|
|
1266
|
+
elapsedMs: elapsedMsAfter,
|
|
1267
|
+
providerEvidence: safeStringifyPreview(rawMessage, 300),
|
|
1268
|
+
});
|
|
1269
|
+
lastError = pdErr;
|
|
1270
|
+
if (attempt < maxRetries) {
|
|
1271
|
+
if (input) {
|
|
1272
|
+
this.emitAttemptTelemetry({
|
|
1273
|
+
input,
|
|
1274
|
+
runId,
|
|
1275
|
+
attempt,
|
|
1276
|
+
maxRetries,
|
|
1277
|
+
err: pdErr,
|
|
1278
|
+
elapsedMs: elapsedMsAfter,
|
|
1279
|
+
timeoutSource,
|
|
1280
|
+
effectiveTimeoutMs,
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
// PRI-1011: downshift BEFORE the next request goes out, so a rejected
|
|
1284
|
+
// budget is never resent unchanged.
|
|
1285
|
+
if (isBudgetRejection) {
|
|
1286
|
+
const next = this.downshiftMaxTokensBudget({
|
|
1287
|
+
model,
|
|
1288
|
+
currentMaxTokens: maxTokensBudget,
|
|
1289
|
+
providerEvidence: rawMessage,
|
|
1290
|
+
input,
|
|
1291
|
+
runId,
|
|
1292
|
+
attempt,
|
|
1293
|
+
});
|
|
1294
|
+
if (next !== undefined)
|
|
1295
|
+
maxTokensBudget = next;
|
|
1296
|
+
}
|
|
1297
|
+
// ADR-0019: rate-limit uses 2× backoff since limits need more time to clear
|
|
1298
|
+
const delay = isRateLimit ? getDelay(attempt) * 2 : getDelay(attempt);
|
|
1299
|
+
await new Promise(r => setTimeout(r, delay));
|
|
1300
|
+
continue;
|
|
1301
|
+
}
|
|
1302
|
+
throw pdErr;
|
|
1303
|
+
}
|
|
1304
|
+
return response;
|
|
1305
|
+
}
|
|
1306
|
+
catch (err) {
|
|
1307
|
+
const elapsedMsAfter = Date.now() - overallStartTime;
|
|
1308
|
+
let classificationResult = classifyFailure(err, options.signal);
|
|
1309
|
+
if (options.signal?.aborted || elapsedMsAfter >= effectiveTimeoutMs) {
|
|
1310
|
+
classificationResult = {
|
|
1311
|
+
category: 'timeout',
|
|
1312
|
+
classification: 'client_timeout_budget_exhausted',
|
|
1313
|
+
};
|
|
1314
|
+
}
|
|
1315
|
+
// If it's a client budget exhaustion, throw immediately (no retry)
|
|
1316
|
+
if (classificationResult.classification === 'client_timeout_budget_exhausted') {
|
|
1317
|
+
const errorDetails = {
|
|
1318
|
+
timeoutClassification: 'client_timeout_budget_exhausted',
|
|
1319
|
+
effectiveTimeoutMs,
|
|
1320
|
+
timeoutSource,
|
|
1321
|
+
elapsedMs: elapsedMsAfter,
|
|
1322
|
+
retryAttempt: attempt,
|
|
1323
|
+
maxRetries,
|
|
1324
|
+
providerEvidence: safeStringifyPreview(err, 300),
|
|
1325
|
+
};
|
|
1326
|
+
throw new PDRuntimeError('timeout', `LLM request timed out after ${effectiveTimeoutMs}ms`, errorDetails);
|
|
1327
|
+
}
|
|
1328
|
+
if (classificationResult.category === 'timeout') {
|
|
1329
|
+
const errorDetails = {
|
|
1330
|
+
timeoutClassification: 'provider_transient_timeout',
|
|
1331
|
+
effectiveTimeoutMs,
|
|
1332
|
+
timeoutSource,
|
|
1333
|
+
elapsedMs: elapsedMsAfter,
|
|
1334
|
+
retryAttempt: attempt,
|
|
1335
|
+
maxRetries,
|
|
1336
|
+
providerEvidence: safeStringifyPreview(err, 300),
|
|
1337
|
+
};
|
|
1338
|
+
const pdErr = new PDRuntimeError('timeout', `LLM request timed out after ${effectiveTimeoutMs}ms`, errorDetails);
|
|
1339
|
+
lastError = pdErr;
|
|
1340
|
+
if (attempt < maxRetries) {
|
|
1341
|
+
if (input) {
|
|
1342
|
+
this.emitAttemptTelemetry({
|
|
1343
|
+
input,
|
|
1344
|
+
runId,
|
|
1345
|
+
attempt,
|
|
1346
|
+
maxRetries,
|
|
1347
|
+
err: pdErr,
|
|
1348
|
+
elapsedMs: elapsedMsAfter,
|
|
1349
|
+
timeoutSource,
|
|
1350
|
+
effectiveTimeoutMs,
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
const delay = getDelay(attempt);
|
|
1354
|
+
await new Promise(r => setTimeout(r, delay));
|
|
1355
|
+
continue;
|
|
1356
|
+
}
|
|
1357
|
+
throw pdErr;
|
|
1358
|
+
}
|
|
1359
|
+
if (err instanceof PDRuntimeError) {
|
|
1360
|
+
throw err; // don't retry standard PDRuntimeError if it is permanent or already handled
|
|
1361
|
+
}
|
|
1362
|
+
// It is an execution_failed (network, etc.)
|
|
1363
|
+
// ADR-0019: detect rate-limit signatures in thrown errors too (SDK may throw 429)
|
|
1364
|
+
const errMsg = err instanceof Error ? err.message : String(err);
|
|
1365
|
+
const isRateLimitCatch = /rate.?limit|429|quota|too many requests/i.test(errMsg);
|
|
1366
|
+
// PRI-1011: SDKs may throw the budget rejection instead of resolving it.
|
|
1367
|
+
const isBudgetRejectionCatch = !isRateLimitCatch && MAX_TOKENS_REJECTED_PATTERN.test(errMsg);
|
|
1368
|
+
const catchCategory = isRateLimitCatch ? 'rate_limit' : 'execution_failed';
|
|
1369
|
+
const errorDetails = {
|
|
1370
|
+
retryAttempt: attempt,
|
|
1371
|
+
maxRetries,
|
|
1372
|
+
elapsedMs: elapsedMsAfter,
|
|
1373
|
+
providerEvidence: safeStringifyPreview(err, 300),
|
|
1374
|
+
};
|
|
1375
|
+
const pdErr = new PDRuntimeError(catchCategory, `${isRateLimitCatch ? 'LLM rate limit hit' : 'LLM completion failed'}: ${errMsg.substring(0, 300)}`, errorDetails);
|
|
1376
|
+
lastError = pdErr;
|
|
1377
|
+
if (attempt < maxRetries) {
|
|
1378
|
+
if (input) {
|
|
1379
|
+
this.emitAttemptTelemetry({
|
|
1380
|
+
input,
|
|
1381
|
+
runId,
|
|
1382
|
+
attempt,
|
|
1383
|
+
maxRetries,
|
|
1384
|
+
err: pdErr,
|
|
1385
|
+
elapsedMs: elapsedMsAfter,
|
|
1386
|
+
timeoutSource,
|
|
1387
|
+
effectiveTimeoutMs,
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
// PRI-1011: downshift BEFORE the next request goes out, so a rejected
|
|
1391
|
+
// budget is never resent unchanged.
|
|
1392
|
+
if (isBudgetRejectionCatch) {
|
|
1393
|
+
const next = this.downshiftMaxTokensBudget({
|
|
1394
|
+
model,
|
|
1395
|
+
currentMaxTokens: maxTokensBudget,
|
|
1396
|
+
providerEvidence: errMsg,
|
|
1397
|
+
input,
|
|
1398
|
+
runId,
|
|
1399
|
+
attempt,
|
|
1400
|
+
});
|
|
1401
|
+
if (next !== undefined)
|
|
1402
|
+
maxTokensBudget = next;
|
|
1403
|
+
}
|
|
1404
|
+
// ADR-0019: rate-limit uses 2× backoff
|
|
1405
|
+
const delay = isRateLimitCatch ? getDelay(attempt) * 2 : getDelay(attempt);
|
|
1406
|
+
await new Promise(r => setTimeout(r, delay));
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
// If lastError is already a PDRuntimeError, re-throw it; otherwise wrap it
|
|
1411
|
+
if (lastError instanceof PDRuntimeError) {
|
|
1412
|
+
throw lastError;
|
|
1413
|
+
}
|
|
1414
|
+
throw new PDRuntimeError('execution_failed', `LLM completion failed after ${maxRetries + 1} attempts: ${lastError instanceof Error ? lastError.message : String(lastError)}`);
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* PRI-1011: move one step down the output-budget ladder and record it.
|
|
1418
|
+
* Returns the budget the next attempt should send, or `undefined` when the
|
|
1419
|
+
* ladder has nothing smaller to try.
|
|
1420
|
+
*/
|
|
1421
|
+
downshiftMaxTokensBudget(params) {
|
|
1422
|
+
const { model, currentMaxTokens, providerEvidence, input, runId, attempt } = params;
|
|
1423
|
+
const step = nextMaxTokensBudget(currentMaxTokens, model.maxTokens);
|
|
1424
|
+
if (!step)
|
|
1425
|
+
return undefined;
|
|
1426
|
+
this.eventEmitter.emitTelemetry({
|
|
1427
|
+
eventType: 'llm_max_tokens_downshift',
|
|
1428
|
+
traceId: input?.taskRef?.taskId ?? runId,
|
|
1429
|
+
timestamp: new Date().toISOString(),
|
|
1430
|
+
sessionId: 'pi-ai-adapter',
|
|
1431
|
+
agentId: 'pi-ai-adapter',
|
|
1432
|
+
payload: {
|
|
1433
|
+
runId,
|
|
1434
|
+
runtimeKind: 'pi-ai',
|
|
1435
|
+
runnerKind: input?.agentSpec.agentId,
|
|
1436
|
+
provider: this.config.provider,
|
|
1437
|
+
model: this.config.model,
|
|
1438
|
+
retryAttempt: attempt,
|
|
1439
|
+
fromMaxTokens: step.from,
|
|
1440
|
+
toMaxTokens: step.to,
|
|
1441
|
+
providerEvidence: safeStringifyPreview(providerEvidence, 300),
|
|
1442
|
+
},
|
|
1443
|
+
});
|
|
1444
|
+
return step.to;
|
|
1445
|
+
}
|
|
1446
|
+
emitAttemptTelemetry(params) {
|
|
1447
|
+
const { input, runId, attempt, maxRetries, err, elapsedMs, timeoutSource, effectiveTimeoutMs, } = params;
|
|
1448
|
+
const endedAt = new Date().toISOString();
|
|
1449
|
+
const { details } = err;
|
|
1450
|
+
let timeoutClassification = 'not_applicable';
|
|
1451
|
+
let providerEvidence = '';
|
|
1452
|
+
if (details && typeof details === 'object') {
|
|
1453
|
+
if (isObjectWithKey(details, 'timeoutClassification')) {
|
|
1454
|
+
const { timeoutClassification: tc } = details;
|
|
1455
|
+
if (typeof tc === 'string')
|
|
1456
|
+
timeoutClassification = tc;
|
|
1457
|
+
}
|
|
1458
|
+
if (isObjectWithKey(details, 'providerEvidence')) {
|
|
1459
|
+
const { providerEvidence: pe } = details;
|
|
1460
|
+
if (typeof pe === 'string')
|
|
1461
|
+
providerEvidence = pe;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
this.eventEmitter.emitTelemetry({
|
|
1465
|
+
eventType: 'runtime_invocation_failed',
|
|
1466
|
+
traceId: input.taskRef?.taskId ?? runId,
|
|
1467
|
+
timestamp: endedAt,
|
|
1468
|
+
sessionId: 'pi-ai-adapter',
|
|
1469
|
+
agentId: 'pi-ai-adapter',
|
|
1470
|
+
payload: {
|
|
1471
|
+
runId,
|
|
1472
|
+
runtimeKind: 'pi-ai',
|
|
1473
|
+
runnerKind: input.agentSpec.agentId,
|
|
1474
|
+
provider: this.config.provider,
|
|
1475
|
+
model: this.config.model,
|
|
1476
|
+
effectiveTimeoutMs,
|
|
1477
|
+
timeoutSource,
|
|
1478
|
+
elapsedMs,
|
|
1479
|
+
timeoutClassification,
|
|
1480
|
+
retryAttempt: attempt,
|
|
1481
|
+
maxRetries,
|
|
1482
|
+
providerEvidence,
|
|
1483
|
+
errorMessage: err.message,
|
|
1484
|
+
isRetryAttempt: true,
|
|
1485
|
+
},
|
|
1486
|
+
});
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
//# sourceMappingURL=pi-ai-runtime-adapter.js.map
|