create-principles-disciple 1.147.12 → 1.147.14

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.
Files changed (2719) hide show
  1. package/_release/product-identity.json +1 -1
  2. package/codex-adapter/dist/codex-evidence-recorder.d.ts +1 -1
  3. package/codex-adapter/dist/ingestion/admission.d.ts +1 -1
  4. package/codex-adapter/dist/ingestion/admission.js +1 -1
  5. package/codex-adapter/dist/ingestion/catch-up.js +1 -1
  6. package/codex-adapter/dist/ingestion/turn-context.js +1 -1
  7. package/codex-adapter/dist/pd-hook.js +3 -3
  8. package/codex-adapter/dist/tool-semantics.d.ts +1 -1
  9. package/codex-adapter/dist/tool-semantics.js +1 -1
  10. package/codex-adapter/dist/worker/workspace-worker.js +2 -2
  11. package/codex-adapter/package.json +1 -1
  12. package/console/dist/server/config/pd-config-store.d.ts +2 -2
  13. package/console/dist/server/config/pd-config-store.js +34 -20
  14. package/console/dist/server/feedback/github-adapter.d.ts +1 -1
  15. package/console/dist/server/feedback/github-adapter.js +3 -2
  16. package/console/dist/server/feedback/ingest-adapter.d.ts +1 -1
  17. package/console/dist/server/feedback/ingest-adapter.js +3 -2
  18. package/console/dist/server/feedback/submit-service.d.ts +1 -1
  19. package/console/dist/server/feedback/submit-service.js +1 -1
  20. package/console/dist/server/index.js +13 -10
  21. package/console/dist/server/models/ActivationsConsoleModel.d.ts +5 -5
  22. package/console/dist/server/models/ActivationsConsoleModel.js +11 -10
  23. package/console/dist/server/models/ApprovalsConsoleModel.d.ts +2 -2
  24. package/console/dist/server/models/ApprovalsConsoleModel.js +7 -6
  25. package/console/dist/server/models/ApprovalsGroupedConsoleModel.js +5 -4
  26. package/console/dist/server/models/CodexGovernanceHealthModel.js +2 -1
  27. package/console/dist/server/models/ConsoleLifecycleDatasource.d.ts +2 -2
  28. package/console/dist/server/models/ConsoleLifecycleDatasource.js +2 -1
  29. package/console/dist/server/models/EvidenceChainConsoleModel.d.ts +1 -1
  30. package/console/dist/server/models/EvidenceChainConsoleModel.js +4 -3
  31. package/console/dist/server/models/ExaminerEvidenceModel.d.ts +1 -1
  32. package/console/dist/server/models/ExaminerEvidenceModel.js +2 -1
  33. package/console/dist/server/models/FeedbackReportConsoleModel.d.ts +1 -1
  34. package/console/dist/server/models/FeedbackReportConsoleModel.js +8 -7
  35. package/console/dist/server/models/GovernanceConsoleModel.js +3 -2
  36. package/console/dist/server/models/GovernanceExperienceCollector.d.ts +1 -1
  37. package/console/dist/server/models/GovernanceExperienceCollector.js +1 -1
  38. package/console/dist/server/models/GovernanceProjectionCollector.d.ts +1 -1
  39. package/console/dist/server/models/GovernanceProjectionCollector.js +1 -1
  40. package/console/dist/server/models/HealthCheckModel.js +3 -2
  41. package/console/dist/server/models/IntentDecisionModel.d.ts +1 -1
  42. package/console/dist/server/models/IntentDecisionModel.js +1 -1
  43. package/console/dist/server/models/IntentPageModel.d.ts +1 -1
  44. package/console/dist/server/models/IntentPageModel.js +99 -27
  45. package/console/dist/server/models/LifecycleConsoleModel.js +1 -1
  46. package/console/dist/server/models/OwnerDecisionConsoleModel.d.ts +1 -1
  47. package/console/dist/server/models/OwnerDecisionConsoleModel.js +1 -1
  48. package/console/dist/server/models/OwnerDecisionViewModel.d.ts +1 -1
  49. package/console/dist/server/models/OwnerDecisionViewModel.js +5 -5
  50. package/console/dist/server/models/PrincipleClassifier.js +1 -1
  51. package/console/dist/server/models/PrincipleTrajectoryModel.js +8 -7
  52. package/console/dist/server/models/PrinciplesConsoleModel.d.ts +1 -1
  53. package/console/dist/server/models/PrinciplesConsoleModel.js +10 -3
  54. package/console/dist/server/models/ReceiptsConsoleModel.d.ts +1 -1
  55. package/console/dist/server/models/ReceiptsConsoleModel.js +5 -4
  56. package/console/dist/server/models/RuleCandidateBindingConsoleModel.d.ts +3 -3
  57. package/console/dist/server/models/RuleCandidateBindingConsoleModel.js +1 -1
  58. package/console/dist/server/models/artifact-principle-resolver.d.ts +1 -1
  59. package/console/dist/server/models/artifact-principle-resolver.js +1 -1
  60. package/console/dist/server/models/principle-id-resolution.d.ts +3 -3
  61. package/console/dist/server/models/principle-id-resolution.js +2 -2
  62. package/console/dist/server/routes/activations.d.ts +1 -1
  63. package/console/dist/server/routes/activations.js +10 -10
  64. package/console/dist/server/routes/approvals-grouped.js +2 -2
  65. package/console/dist/server/routes/approvals.js +8 -11
  66. package/console/dist/server/routes/design-gate.js +1 -1
  67. package/console/dist/server/routes/evidence-chain.js +2 -2
  68. package/console/dist/server/routes/evidence-outcomes.js +1 -1
  69. package/console/dist/server/routes/failed-tasks.d.ts +1 -1
  70. package/console/dist/server/routes/failed-tasks.js +3 -6
  71. package/console/dist/server/routes/feedback-reports.js +5 -8
  72. package/console/dist/server/routes/governance.d.ts +1 -1
  73. package/console/dist/server/routes/governance.js +3 -3
  74. package/console/dist/server/routes/health.js +2 -2
  75. package/console/dist/server/routes/intent-decisions.js +7 -10
  76. package/console/dist/server/routes/lifecycle.js +2 -2
  77. package/console/dist/server/routes/onboarding.d.ts +1 -1
  78. package/console/dist/server/routes/onboarding.js +3 -3
  79. package/console/dist/server/routes/owner-decision.js +4 -4
  80. package/console/dist/server/routes/owner-decisions.js +4 -4
  81. package/console/dist/server/routes/owner-identity.d.ts +1 -1
  82. package/console/dist/server/routes/owner-identity.js +1 -1
  83. package/console/dist/server/routes/principles.js +13 -13
  84. package/console/dist/server/routes/receipts.js +4 -4
  85. package/console/dist/server/routes/update-transaction.js +4 -4
  86. package/console/dist/server/routes/update.js +3 -3
  87. package/console/dist/server/routes/workspaces.js +5 -8
  88. package/console/dist/server/utils/cli-smoke.js +2 -1
  89. package/console/dist/server/utils/gateway.js +2 -1
  90. package/console/dist/server/utils/pd-backups.js +3 -2
  91. package/console/dist/server/utils/request.js +8 -6
  92. package/console/dist/server/utils/response.d.ts +10 -0
  93. package/console/dist/server/utils/response.js +18 -0
  94. package/console/dist/shared/approved-rule-revision-contract.d.ts +1 -1
  95. package/console/dist/web/assets/app.js +31 -31
  96. package/console/lab/lib/examiner-injection-evidence.mjs +1 -1
  97. package/core/dist/host/host-adapter.d.ts +3 -3
  98. package/core/dist/host/host-adapter.d.ts.map +1 -1
  99. package/core/dist/index.d.ts +26 -26
  100. package/core/dist/index.d.ts.map +1 -1
  101. package/core/dist/index.js +16 -16
  102. package/core/dist/index.js.map +1 -1
  103. package/core/dist/principle-tree-ledger.d.ts +5 -5
  104. package/core/dist/principle-tree-ledger.d.ts.map +1 -1
  105. package/core/dist/principle-tree-ledger.js +17 -4
  106. package/core/dist/principle-tree-ledger.js.map +1 -1
  107. package/core/dist/prompt-builder/model-config.js +1 -1
  108. package/core/dist/prompt-builder/model-config.js.map +1 -1
  109. package/core/dist/prompt-builder/size-guard.d.ts.map +1 -1
  110. package/core/dist/prompt-builder/size-guard.js +39 -6
  111. package/core/dist/prompt-builder/size-guard.js.map +1 -1
  112. package/core/dist/prompt-builder/xml-escape.d.ts +1 -1
  113. package/core/dist/prompt-builder/xml-escape.js +1 -1
  114. package/core/dist/runtime/activation/activation-control-types.d.ts.map +1 -0
  115. package/core/dist/runtime/activation/activation-control-types.js.map +1 -0
  116. package/core/dist/runtime/activation/activation-dispatcher.d.ts.map +1 -0
  117. package/core/dist/runtime/activation/activation-dispatcher.js.map +1 -0
  118. package/core/dist/runtime/activation/activation-types.d.ts.map +1 -0
  119. package/core/dist/runtime/activation/activation-types.js.map +1 -0
  120. package/core/dist/runtime/activation/adaptive-delivery-record.d.ts.map +1 -0
  121. package/core/dist/runtime/activation/adaptive-delivery-record.js.map +1 -0
  122. package/core/dist/runtime/activation/adaptive-principle-intervention.d.ts +83 -0
  123. package/core/dist/runtime/activation/adaptive-principle-intervention.d.ts.map +1 -0
  124. package/core/dist/runtime/activation/adaptive-principle-intervention.js +119 -0
  125. package/core/dist/runtime/activation/adaptive-principle-intervention.js.map +1 -0
  126. package/core/dist/runtime/activation/approval-completion-service.d.ts.map +1 -0
  127. package/core/dist/runtime/activation/approval-completion-service.js.map +1 -0
  128. package/core/dist/runtime/activation/approval-queue.d.ts.map +1 -0
  129. package/core/dist/runtime/activation/approval-queue.js.map +1 -0
  130. package/core/dist/runtime/activation/approval-review-guard.d.ts.map +1 -0
  131. package/core/dist/runtime/activation/approval-review-guard.js.map +1 -0
  132. package/core/dist/runtime/activation/index.d.ts +48 -0
  133. package/core/dist/runtime/activation/index.d.ts.map +1 -0
  134. package/core/dist/runtime/activation/index.js +38 -0
  135. package/core/dist/runtime/activation/index.js.map +1 -0
  136. package/core/dist/runtime/activation/ledger-identity.d.ts.map +1 -0
  137. package/core/dist/runtime/activation/ledger-identity.js.map +1 -0
  138. package/core/dist/runtime/activation/low-risk-writers.d.ts.map +1 -0
  139. package/core/dist/runtime/activation/low-risk-writers.js.map +1 -0
  140. package/core/dist/runtime/activation/memory-activation-state-store.d.ts.map +1 -0
  141. package/core/dist/runtime/activation/memory-activation-state-store.js.map +1 -0
  142. package/core/dist/runtime/activation/memory-approval-store.d.ts.map +1 -0
  143. package/core/dist/runtime/activation/memory-approval-store.js.map +1 -0
  144. package/core/dist/runtime/activation/openclaw-promotion-checks.d.ts.map +1 -0
  145. package/core/dist/runtime/activation/openclaw-promotion-checks.js.map +1 -0
  146. package/core/dist/runtime/activation/production-gate-deps.d.ts.map +1 -0
  147. package/core/dist/runtime/activation/production-gate-deps.js.map +1 -0
  148. package/core/dist/runtime/activation/promotion-evidence-snapshot.d.ts.map +1 -0
  149. package/core/dist/runtime/activation/promotion-evidence-snapshot.js.map +1 -0
  150. package/core/dist/runtime/activation/promotion-readiness-evaluator.d.ts.map +1 -0
  151. package/core/dist/runtime/activation/promotion-readiness-evaluator.js.map +1 -0
  152. package/core/dist/runtime/activation/promotion-readiness-reader.d.ts.map +1 -0
  153. package/core/dist/runtime/activation/promotion-readiness-reader.js.map +1 -0
  154. package/core/dist/runtime/activation/prompt-activation-reader-contract.d.ts +118 -0
  155. package/core/dist/runtime/activation/prompt-activation-reader-contract.d.ts.map +1 -0
  156. package/core/dist/runtime/activation/prompt-activation-reader-contract.js +209 -0
  157. package/core/dist/runtime/activation/prompt-activation-reader-contract.js.map +1 -0
  158. package/core/dist/runtime/activation/prompt-budget-policy.d.ts.map +1 -0
  159. package/core/dist/runtime/activation/prompt-budget-policy.js +326 -0
  160. package/core/dist/runtime/activation/prompt-budget-policy.js.map +1 -0
  161. package/core/dist/runtime/activation/prompt-replacement.d.ts.map +1 -0
  162. package/core/dist/runtime/activation/prompt-replacement.js.map +1 -0
  163. package/core/dist/runtime/activation/recovery-composition.d.ts.map +1 -0
  164. package/core/dist/runtime/activation/recovery-composition.js.map +1 -0
  165. package/core/dist/runtime/activation/recovery-control-surfaces.d.ts.map +1 -0
  166. package/core/dist/runtime/activation/recovery-control-surfaces.js.map +1 -0
  167. package/core/dist/runtime/activation/rule-replacement.d.ts.map +1 -0
  168. package/core/dist/runtime/activation/rule-replacement.js.map +1 -0
  169. package/core/dist/runtime/activation/rulecode-owner-decision-service.d.ts.map +1 -0
  170. package/core/dist/runtime/activation/rulecode-owner-decision-service.js.map +1 -0
  171. package/core/dist/runtime/activation/rulecode-safety-circuit-breaker.d.ts.map +1 -0
  172. package/core/dist/runtime/activation/rulecode-safety-circuit-breaker.js.map +1 -0
  173. package/core/dist/runtime/activation/rulecode-shadow-summary.d.ts.map +1 -0
  174. package/core/dist/runtime/activation/rulecode-shadow-summary.js.map +1 -0
  175. package/core/dist/runtime/activation/sqlite-activation-safety-store.d.ts.map +1 -0
  176. package/core/dist/runtime/activation/sqlite-activation-safety-store.js.map +1 -0
  177. package/core/dist/runtime/activation/sqlite-activation-state-store.d.ts.map +1 -0
  178. package/core/dist/runtime/activation/sqlite-activation-state-store.js.map +1 -0
  179. package/core/dist/runtime/activation/sqlite-approval-store.d.ts.map +1 -0
  180. package/core/dist/runtime/activation/sqlite-approval-store.js.map +1 -0
  181. package/core/dist/runtime/activation/writers/index.d.ts.map +1 -0
  182. package/core/dist/runtime/activation/writers/index.js.map +1 -0
  183. package/core/dist/runtime/activation/writers/rule-host-writer.d.ts.map +1 -0
  184. package/core/dist/runtime/activation/writers/rule-host-writer.js.map +1 -0
  185. package/core/dist/runtime/activation-compatibility-read-model.d.ts.map +1 -0
  186. package/core/dist/runtime/activation-compatibility-read-model.js.map +1 -0
  187. package/core/dist/runtime/adapter/artificer-l2-adapter.d.ts.map +1 -0
  188. package/core/dist/runtime/adapter/artificer-l2-adapter.js.map +1 -0
  189. package/core/dist/runtime/adapter/index.d.ts.map +1 -0
  190. package/core/dist/runtime/adapter/index.js.map +1 -0
  191. package/core/dist/runtime/adapter/json-extractor.d.ts.map +1 -0
  192. package/core/dist/runtime/adapter/json-extractor.js.map +1 -0
  193. package/core/dist/runtime/adapter/l2-agent-loop-adapter.d.ts.map +1 -0
  194. package/core/dist/runtime/adapter/l2-agent-loop-adapter.js.map +1 -0
  195. package/core/dist/runtime/adapter/output-repair-contract.d.ts.map +1 -0
  196. package/core/dist/runtime/adapter/output-repair-contract.js +99 -0
  197. package/core/dist/runtime/adapter/output-repair-contract.js.map +1 -0
  198. package/core/dist/runtime/adapter/output-schema-registry.d.ts.map +1 -0
  199. package/core/dist/runtime/adapter/output-schema-registry.js.map +1 -0
  200. package/core/dist/runtime/adapter/pi-ai-catalog.d.ts.map +1 -0
  201. package/core/dist/runtime/adapter/pi-ai-catalog.js.map +1 -0
  202. package/core/dist/runtime/adapter/pi-ai-http-transport.d.ts.map +1 -0
  203. package/core/dist/runtime/adapter/pi-ai-http-transport.js.map +1 -0
  204. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.d.ts.map +1 -0
  205. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js +1489 -0
  206. package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js.map +1 -0
  207. package/core/dist/runtime/adapter/principle-tree-ledger-adapter.d.ts +98 -0
  208. package/core/dist/runtime/adapter/principle-tree-ledger-adapter.d.ts.map +1 -0
  209. package/core/dist/runtime/adapter/principle-tree-ledger-adapter.js +243 -0
  210. package/core/dist/runtime/adapter/principle-tree-ledger-adapter.js.map +1 -0
  211. package/core/dist/runtime/adapter/schema-json-converter.d.ts.map +1 -0
  212. package/core/dist/runtime/adapter/schema-json-converter.js.map +1 -0
  213. package/core/dist/runtime/adapter/schema-prompt-adapter.d.ts.map +1 -0
  214. package/core/dist/runtime/adapter/schema-prompt-adapter.js.map +1 -0
  215. package/core/dist/runtime/adapter/split-pipeline-fixtures.d.ts.map +1 -0
  216. package/core/dist/runtime/adapter/split-pipeline-fixtures.js.map +1 -0
  217. package/core/dist/runtime/adapter/structured-output-repair.d.ts.map +1 -0
  218. package/core/dist/runtime/adapter/structured-output-repair.js +298 -0
  219. package/core/dist/runtime/adapter/structured-output-repair.js.map +1 -0
  220. package/core/dist/runtime/adapter/test-double-runtime-adapter.d.ts.map +1 -0
  221. package/core/dist/runtime/adapter/test-double-runtime-adapter.js.map +1 -0
  222. package/core/dist/runtime/adapter/tools/diagnostician-tool.d.ts.map +1 -0
  223. package/core/dist/runtime/adapter/tools/diagnostician-tool.js.map +1 -0
  224. package/core/dist/runtime/admission-gate.d.ts.map +1 -0
  225. package/core/dist/runtime/admission-gate.js.map +1 -0
  226. package/core/dist/runtime/adversarial-loop.d.ts.map +1 -0
  227. package/core/dist/runtime/adversarial-loop.js.map +1 -0
  228. package/core/dist/runtime/agent-spec.d.ts.map +1 -0
  229. package/core/dist/runtime/agent-spec.js.map +1 -0
  230. package/core/dist/runtime/bridge-result-shaper.d.ts.map +1 -0
  231. package/core/dist/runtime/bridge-result-shaper.js.map +1 -0
  232. package/core/dist/runtime/build-l2-principle-reader.d.ts.map +1 -0
  233. package/core/dist/runtime/build-l2-principle-reader.js.map +1 -0
  234. package/core/dist/runtime/candidate-audit.d.ts.map +1 -0
  235. package/core/dist/runtime/candidate-audit.js.map +1 -0
  236. package/core/dist/runtime/candidate-intake-service.d.ts.map +1 -0
  237. package/core/dist/runtime/candidate-intake-service.js.map +1 -0
  238. package/core/dist/runtime/candidate-intake.d.ts.map +1 -0
  239. package/core/dist/runtime/candidate-intake.js.map +1 -0
  240. package/core/dist/runtime/cli/diagnose.d.ts.map +1 -0
  241. package/core/dist/runtime/cli/diagnose.js.map +1 -0
  242. package/core/dist/runtime/cli/index.d.ts.map +1 -0
  243. package/core/dist/runtime/cli/index.js.map +1 -0
  244. package/core/dist/runtime/cli/probe.d.ts.map +1 -0
  245. package/core/dist/runtime/cli/probe.js.map +1 -0
  246. package/core/dist/runtime/config/index.d.ts.map +1 -0
  247. package/core/dist/runtime/config/index.js.map +1 -0
  248. package/core/dist/runtime/config/pd-config-agent-binding.d.ts.map +1 -0
  249. package/core/dist/runtime/config/pd-config-agent-binding.js.map +1 -0
  250. package/core/dist/runtime/config/pd-config-defaults.d.ts.map +1 -0
  251. package/core/dist/runtime/config/pd-config-defaults.js.map +1 -0
  252. package/core/dist/runtime/config/pd-config-effective.d.ts.map +1 -0
  253. package/core/dist/runtime/config/pd-config-effective.js.map +1 -0
  254. package/core/dist/runtime/config/pd-config-feature-flags.d.ts.map +1 -0
  255. package/core/dist/runtime/config/pd-config-feature-flags.js.map +1 -0
  256. package/core/dist/runtime/config/pd-config-redaction.d.ts.map +1 -0
  257. package/core/dist/runtime/config/pd-config-redaction.js +202 -0
  258. package/core/dist/runtime/config/pd-config-redaction.js.map +1 -0
  259. package/core/dist/runtime/config/pd-config-types.d.ts.map +1 -0
  260. package/core/dist/runtime/config/pd-config-types.js.map +1 -0
  261. package/core/dist/runtime/config/pd-config-validate.d.ts.map +1 -0
  262. package/core/dist/runtime/config/pd-config-validate.js.map +1 -0
  263. package/core/dist/runtime/config/pd-profile-constants.d.ts.map +1 -0
  264. package/core/dist/runtime/config/pd-profile-constants.js.map +1 -0
  265. package/core/dist/runtime/config/pd-validate-profile.d.ts.map +1 -0
  266. package/core/dist/runtime/config/pd-validate-profile.js.map +1 -0
  267. package/core/dist/runtime/context-payload.d.ts.map +1 -0
  268. package/core/dist/runtime/context-payload.js.map +1 -0
  269. package/core/dist/runtime/control-plane-triage.d.ts.map +1 -0
  270. package/core/dist/runtime/control-plane-triage.js.map +1 -0
  271. package/core/dist/runtime/core-principles/core-axiom-block.d.ts.map +1 -0
  272. package/core/dist/runtime/core-principles/core-axiom-block.js.map +1 -0
  273. package/core/dist/runtime/core-principles/core-principle-registry.d.ts.map +1 -0
  274. package/core/dist/runtime/core-principles/core-principle-registry.js.map +1 -0
  275. package/core/dist/runtime/core-principles/index.d.ts.map +1 -0
  276. package/core/dist/runtime/core-principles/index.js.map +1 -0
  277. package/core/dist/runtime/core-principles/strip-fabricated-ids.d.ts.map +1 -0
  278. package/core/dist/runtime/core-principles/strip-fabricated-ids.js.map +1 -0
  279. package/core/dist/runtime/correction/correction-types.d.ts.map +1 -0
  280. package/core/dist/runtime/correction/correction-types.js.map +1 -0
  281. package/core/dist/runtime/correction/index.d.ts.map +1 -0
  282. package/core/dist/runtime/correction/index.js.map +1 -0
  283. package/core/dist/runtime/detection/detection-funnel-policy.d.ts.map +1 -0
  284. package/core/dist/runtime/detection/detection-funnel-policy.js.map +1 -0
  285. package/core/dist/runtime/detection/index.d.ts.map +1 -0
  286. package/core/dist/runtime/detection/index.js.map +1 -0
  287. package/core/dist/runtime/diagnostician/diag-distiller-output.d.ts.map +1 -0
  288. package/core/dist/runtime/diagnostician/diag-distiller-output.js.map +1 -0
  289. package/core/dist/runtime/diagnostician/diag-rootcause-output.d.ts.map +1 -0
  290. package/core/dist/runtime/diagnostician/diag-rootcause-output.js.map +1 -0
  291. package/core/dist/runtime/diagnostician/distiller-prompt-builder.d.ts.map +1 -0
  292. package/core/dist/runtime/diagnostician/distiller-prompt-builder.js.map +1 -0
  293. package/core/dist/runtime/diagnostician/evidence-ref-binding.d.ts.map +1 -0
  294. package/core/dist/runtime/diagnostician/evidence-ref-binding.js.map +1 -0
  295. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts.map +1 -0
  296. package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -0
  297. package/core/dist/runtime/diagnostician/router-prompt-builder.d.ts.map +1 -0
  298. package/core/dist/runtime/diagnostician/router-prompt-builder.js.map +1 -0
  299. package/core/dist/runtime/diagnostician-association-shadow.d.ts.map +1 -0
  300. package/core/dist/runtime/diagnostician-association-shadow.js.map +1 -0
  301. package/core/dist/runtime/diagnostician-association-validation.d.ts.map +1 -0
  302. package/core/dist/runtime/diagnostician-association-validation.js.map +1 -0
  303. package/core/dist/runtime/diagnostician-capability.d.ts.map +1 -0
  304. package/core/dist/runtime/diagnostician-capability.js.map +1 -0
  305. package/core/dist/runtime/diagnostician-output.d.ts.map +1 -0
  306. package/core/dist/runtime/diagnostician-output.js.map +1 -0
  307. package/core/dist/runtime/diagnostician-prompt-builder.d.ts.map +1 -0
  308. package/core/dist/runtime/diagnostician-prompt-builder.js.map +1 -0
  309. package/core/dist/runtime/error-categories.d.ts +42 -0
  310. package/core/dist/runtime/error-categories.d.ts.map +1 -0
  311. package/core/dist/runtime/error-categories.js +122 -0
  312. package/core/dist/runtime/error-categories.js.map +1 -0
  313. package/core/dist/runtime/evidence-guards.d.ts.map +1 -0
  314. package/core/dist/runtime/evidence-guards.js.map +1 -0
  315. package/core/dist/runtime/evidence-sanitizer.d.ts.map +1 -0
  316. package/core/dist/runtime/evidence-sanitizer.js.map +1 -0
  317. package/core/dist/runtime/evidence-triage/index.d.ts.map +1 -0
  318. package/core/dist/runtime/evidence-triage/index.js.map +1 -0
  319. package/core/dist/runtime/evidence-triage/observation-resolver.d.ts.map +1 -0
  320. package/core/dist/runtime/evidence-triage/observation-resolver.js.map +1 -0
  321. package/core/dist/runtime/evidence-triage/source-descriptors.d.ts.map +1 -0
  322. package/core/dist/runtime/evidence-triage/source-descriptors.js.map +1 -0
  323. package/core/dist/runtime/evidence-triage/triage-policy.d.ts.map +1 -0
  324. package/core/dist/runtime/evidence-triage/triage-policy.js.map +1 -0
  325. package/core/dist/runtime/evidence-triage/trigger-controller.d.ts.map +1 -0
  326. package/core/dist/runtime/evidence-triage/trigger-controller.js.map +1 -0
  327. package/core/dist/runtime/evidence-triage/types.d.ts.map +1 -0
  328. package/core/dist/runtime/evidence-triage/types.js.map +1 -0
  329. package/core/dist/runtime/evolution/evolution-types.d.ts.map +1 -0
  330. package/core/dist/runtime/evolution/evolution-types.js.map +1 -0
  331. package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -0
  332. package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -0
  333. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -0
  334. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +273 -0
  335. package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -0
  336. package/core/dist/runtime/feature-flags/index.d.ts.map +1 -0
  337. package/core/dist/runtime/feature-flags/index.js.map +1 -0
  338. package/core/dist/runtime/feature-flags/plugin-surface-registry.d.ts.map +1 -0
  339. package/core/dist/runtime/feature-flags/plugin-surface-registry.js.map +1 -0
  340. package/core/dist/runtime/feature-flags/surface-guard-policy.d.ts.map +1 -0
  341. package/core/dist/runtime/feature-flags/surface-guard-policy.js.map +1 -0
  342. package/core/dist/runtime/feedback/create-report.d.ts.map +1 -0
  343. package/core/dist/runtime/feedback/create-report.js.map +1 -0
  344. package/core/dist/runtime/feedback/feedback-types.d.ts.map +1 -0
  345. package/core/dist/runtime/feedback/feedback-types.js.map +1 -0
  346. package/core/dist/runtime/feedback/fingerprint.d.ts.map +1 -0
  347. package/core/dist/runtime/feedback/fingerprint.js.map +1 -0
  348. package/core/dist/runtime/feedback/index.d.ts.map +1 -0
  349. package/core/dist/runtime/feedback/index.js +18 -0
  350. package/core/dist/runtime/feedback/index.js.map +1 -0
  351. package/core/dist/runtime/feedback/internal-guards.d.ts.map +1 -0
  352. package/core/dist/runtime/feedback/internal-guards.js.map +1 -0
  353. package/core/dist/runtime/feedback/pending-agent-draft-store.d.ts.map +1 -0
  354. package/core/dist/runtime/feedback/pending-agent-draft-store.js.map +1 -0
  355. package/core/dist/runtime/feedback/privacy-preview.d.ts.map +1 -0
  356. package/core/dist/runtime/feedback/privacy-preview.js.map +1 -0
  357. package/core/dist/runtime/feedback/redact-sensitive.d.ts.map +1 -0
  358. package/core/dist/runtime/feedback/redact-sensitive.js +318 -0
  359. package/core/dist/runtime/feedback/redact-sensitive.js.map +1 -0
  360. package/core/dist/runtime/feedback/render-github-url.d.ts.map +1 -0
  361. package/core/dist/runtime/feedback/render-github-url.js.map +1 -0
  362. package/core/dist/runtime/feedback/render-markdown.d.ts.map +1 -0
  363. package/core/dist/runtime/feedback/render-markdown.js.map +1 -0
  364. package/core/dist/runtime/feedback/safe-stringify.d.ts.map +1 -0
  365. package/core/dist/runtime/feedback/safe-stringify.js.map +1 -0
  366. package/core/dist/runtime/full-trace-contract.d.ts.map +1 -0
  367. package/core/dist/runtime/full-trace-contract.js +481 -0
  368. package/core/dist/runtime/full-trace-contract.js.map +1 -0
  369. package/core/dist/runtime/golden-trace-replay-validator.d.ts.map +1 -0
  370. package/core/dist/runtime/golden-trace-replay-validator.js.map +1 -0
  371. package/core/dist/runtime/golden-trace.d.ts.map +1 -0
  372. package/core/dist/runtime/golden-trace.js.map +1 -0
  373. package/core/dist/runtime/governance-experience-contract.d.ts.map +1 -0
  374. package/core/dist/runtime/governance-experience-contract.js.map +1 -0
  375. package/core/dist/runtime/governance-experience.d.ts.map +1 -0
  376. package/core/dist/runtime/governance-experience.js.map +1 -0
  377. package/core/dist/runtime/governance-projection-contract.d.ts.map +1 -0
  378. package/core/dist/runtime/governance-projection-contract.js.map +1 -0
  379. package/core/dist/runtime/governance-projection.d.ts.map +1 -0
  380. package/core/dist/runtime/governance-projection.js.map +1 -0
  381. package/core/dist/runtime/governance-timestamp-schema.d.ts.map +1 -0
  382. package/core/dist/runtime/governance-timestamp-schema.js.map +1 -0
  383. package/core/dist/runtime/index.d.ts +446 -0
  384. package/core/dist/runtime/index.d.ts.map +1 -0
  385. package/core/dist/runtime/index.js +409 -0
  386. package/core/dist/runtime/index.js.map +1 -0
  387. package/core/dist/runtime/intent/index.d.ts.map +1 -0
  388. package/core/dist/runtime/intent/index.js.map +1 -0
  389. package/core/dist/runtime/intent/intent-browser.d.ts +23 -0
  390. package/core/dist/runtime/intent/intent-browser.d.ts.map +1 -0
  391. package/core/dist/runtime/intent/intent-browser.js +21 -0
  392. package/core/dist/runtime/intent/intent-browser.js.map +1 -0
  393. package/core/dist/runtime/intent/intent-decision-record.d.ts +125 -0
  394. package/core/dist/runtime/intent/intent-decision-record.d.ts.map +1 -0
  395. package/core/dist/runtime/intent/intent-decision-record.js +21 -0
  396. package/core/dist/runtime/intent/intent-decision-record.js.map +1 -0
  397. package/core/dist/runtime/intent/intent-doc-reader-port.d.ts.map +1 -0
  398. package/core/dist/runtime/intent/intent-doc-reader-port.js.map +1 -0
  399. package/core/dist/runtime/intent/intent-doc-version.d.ts.map +1 -0
  400. package/core/dist/runtime/intent/intent-doc-version.js.map +1 -0
  401. package/core/dist/runtime/intent/intent-doc.d.ts.map +1 -0
  402. package/core/dist/runtime/intent/intent-doc.js.map +1 -0
  403. package/core/dist/runtime/intent/intent-friction-block.d.ts.map +1 -0
  404. package/core/dist/runtime/intent/intent-friction-block.js.map +1 -0
  405. package/core/dist/runtime/intent/intent-hash.d.ts.map +1 -0
  406. package/core/dist/runtime/intent/intent-hash.js.map +1 -0
  407. package/core/dist/runtime/intent/intent-patch-proposal.d.ts.map +1 -0
  408. package/core/dist/runtime/intent/intent-patch-proposal.js.map +1 -0
  409. package/core/dist/runtime/internalization/adversarial-case.d.ts.map +1 -0
  410. package/core/dist/runtime/internalization/adversarial-case.js.map +1 -0
  411. package/core/dist/runtime/internalization/adversarial-feedback.d.ts.map +1 -0
  412. package/core/dist/runtime/internalization/adversarial-feedback.js.map +1 -0
  413. package/core/dist/runtime/internalization/approved-rule-revision.d.ts.map +1 -0
  414. package/core/dist/runtime/internalization/approved-rule-revision.js.map +1 -0
  415. package/core/dist/runtime/internalization/artifact-content-hash.d.ts.map +1 -0
  416. package/core/dist/runtime/internalization/artifact-content-hash.js.map +1 -0
  417. package/core/dist/runtime/internalization/artifact-summary.d.ts.map +1 -0
  418. package/core/dist/runtime/internalization/artifact-summary.js.map +1 -0
  419. package/core/dist/runtime/internalization/artificer-code-bearing.d.ts.map +1 -0
  420. package/core/dist/runtime/internalization/artificer-code-bearing.js.map +1 -0
  421. package/core/dist/runtime/internalization/artificer-intent-preflight.d.ts.map +1 -0
  422. package/core/dist/runtime/internalization/artificer-intent-preflight.js.map +1 -0
  423. package/core/dist/runtime/internalization/artificer-output.d.ts.map +1 -0
  424. package/core/dist/runtime/internalization/artificer-output.js.map +1 -0
  425. package/core/dist/runtime/internalization/artificer-prompt-builder.d.ts.map +1 -0
  426. package/core/dist/runtime/internalization/artificer-prompt-builder.js.map +1 -0
  427. package/core/dist/runtime/internalization/artificer-run-correlation.d.ts.map +1 -0
  428. package/core/dist/runtime/internalization/artificer-run-correlation.js.map +1 -0
  429. package/core/dist/runtime/internalization/artificer-runner.d.ts.map +1 -0
  430. package/core/dist/runtime/internalization/artificer-runner.js.map +1 -0
  431. package/core/dist/runtime/internalization/bash-risk.d.ts.map +1 -0
  432. package/core/dist/runtime/internalization/bash-risk.js +908 -0
  433. package/core/dist/runtime/internalization/bash-risk.js.map +1 -0
  434. package/core/dist/runtime/internalization/behavior-example-pack.d.ts +47 -0
  435. package/core/dist/runtime/internalization/behavior-example-pack.d.ts.map +1 -0
  436. package/core/dist/runtime/internalization/behavior-example-pack.js +214 -0
  437. package/core/dist/runtime/internalization/behavior-example-pack.js.map +1 -0
  438. package/core/dist/runtime/internalization/candidate-identity.d.ts.map +1 -0
  439. package/core/dist/runtime/internalization/candidate-identity.js.map +1 -0
  440. package/core/dist/runtime/internalization/compile-result.d.ts.map +1 -0
  441. package/core/dist/runtime/internalization/compile-result.js.map +1 -0
  442. package/core/dist/runtime/internalization/consumer-evidence-preflight.d.ts.map +1 -0
  443. package/core/dist/runtime/internalization/consumer-evidence-preflight.js.map +1 -0
  444. package/core/dist/runtime/internalization/correction-proposal.d.ts.map +1 -0
  445. package/core/dist/runtime/internalization/correction-proposal.js +352 -0
  446. package/core/dist/runtime/internalization/correction-proposal.js.map +1 -0
  447. package/core/dist/runtime/internalization/deprecated-readiness.d.ts.map +1 -0
  448. package/core/dist/runtime/internalization/deprecated-readiness.js.map +1 -0
  449. package/core/dist/runtime/internalization/design-gate-facts.d.ts.map +1 -0
  450. package/core/dist/runtime/internalization/design-gate-facts.js.map +1 -0
  451. package/core/dist/runtime/internalization/diag-distiller-runner.d.ts.map +1 -0
  452. package/core/dist/runtime/internalization/diag-distiller-runner.js.map +1 -0
  453. package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -0
  454. package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -0
  455. package/core/dist/runtime/internalization/diag-router-runner.d.ts.map +1 -0
  456. package/core/dist/runtime/internalization/diag-router-runner.js.map +1 -0
  457. package/core/dist/runtime/internalization/dreamer-output.d.ts.map +1 -0
  458. package/core/dist/runtime/internalization/dreamer-output.js.map +1 -0
  459. package/core/dist/runtime/internalization/dreamer-prompt-builder.d.ts.map +1 -0
  460. package/core/dist/runtime/internalization/dreamer-prompt-builder.js.map +1 -0
  461. package/core/dist/runtime/internalization/dreamer-runner.d.ts.map +1 -0
  462. package/core/dist/runtime/internalization/dreamer-runner.js.map +1 -0
  463. package/core/dist/runtime/internalization/evaluator-output.d.ts.map +1 -0
  464. package/core/dist/runtime/internalization/evaluator-output.js.map +1 -0
  465. package/core/dist/runtime/internalization/evaluator-prompt-builder.d.ts.map +1 -0
  466. package/core/dist/runtime/internalization/evaluator-prompt-builder.js.map +1 -0
  467. package/core/dist/runtime/internalization/evaluator-runner.d.ts.map +1 -0
  468. package/core/dist/runtime/internalization/evaluator-runner.js.map +1 -0
  469. package/core/dist/runtime/internalization/evidence-readiness.d.ts.map +1 -0
  470. package/core/dist/runtime/internalization/evidence-readiness.js.map +1 -0
  471. package/core/dist/runtime/internalization/formation-context.d.ts.map +1 -0
  472. package/core/dist/runtime/internalization/formation-context.js.map +1 -0
  473. package/core/dist/runtime/internalization/golden-dogfood-fixtures.d.ts.map +1 -0
  474. package/core/dist/runtime/internalization/golden-dogfood-fixtures.js.map +1 -0
  475. package/core/dist/runtime/internalization/index.d.ts.map +1 -0
  476. package/core/dist/runtime/internalization/index.js.map +1 -0
  477. package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts.map +1 -0
  478. package/core/dist/runtime/internalization/intake-to-internalization-bridge.js.map +1 -0
  479. package/core/dist/runtime/internalization/intent-contract.d.ts.map +1 -0
  480. package/core/dist/runtime/internalization/intent-contract.js.map +1 -0
  481. package/core/dist/runtime/internalization/internalization-consumer-decision.d.ts.map +1 -0
  482. package/core/dist/runtime/internalization/internalization-consumer-decision.js.map +1 -0
  483. package/core/dist/runtime/internalization/internalization-job-graph.d.ts.map +1 -0
  484. package/core/dist/runtime/internalization/internalization-job-graph.js.map +1 -0
  485. package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -0
  486. package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -0
  487. package/core/dist/runtime/internalization/internalization-route.d.ts.map +1 -0
  488. package/core/dist/runtime/internalization/internalization-route.js.map +1 -0
  489. package/core/dist/runtime/internalization/internalization-state-machine.d.ts.map +1 -0
  490. package/core/dist/runtime/internalization/internalization-state-machine.js.map +1 -0
  491. package/core/dist/runtime/internalization/internalization-task-guards.d.ts.map +1 -0
  492. package/core/dist/runtime/internalization/internalization-task-guards.js.map +1 -0
  493. package/core/dist/runtime/internalization/internalization-transition-decision.d.ts.map +1 -0
  494. package/core/dist/runtime/internalization/internalization-transition-decision.js.map +1 -0
  495. package/core/dist/runtime/internalization/legacy-rule-contract-scanner.d.ts.map +1 -0
  496. package/core/dist/runtime/internalization/legacy-rule-contract-scanner.js.map +1 -0
  497. package/core/dist/runtime/internalization/lifecycle-datasource.d.ts.map +1 -0
  498. package/core/dist/runtime/internalization/lifecycle-datasource.js.map +1 -0
  499. package/core/dist/runtime/internalization/lifecycle-metrics.d.ts.map +1 -0
  500. package/core/dist/runtime/internalization/lifecycle-metrics.js.map +1 -0
  501. package/core/dist/runtime/internalization/lifecycle-read-model.d.ts.map +1 -0
  502. package/core/dist/runtime/internalization/lifecycle-read-model.js.map +1 -0
  503. package/core/dist/runtime/internalization/lifecycle-types.d.ts.map +1 -0
  504. package/core/dist/runtime/internalization/lifecycle-types.js.map +1 -0
  505. package/core/dist/runtime/internalization/owner-decision-review.d.ts.map +1 -0
  506. package/core/dist/runtime/internalization/owner-decision-review.js.map +1 -0
  507. package/core/dist/runtime/internalization/owner-evidence-recovery.d.ts.map +1 -0
  508. package/core/dist/runtime/internalization/owner-evidence-recovery.js.map +1 -0
  509. package/core/dist/runtime/internalization/owner-resolution-service.d.ts.map +1 -0
  510. package/core/dist/runtime/internalization/owner-resolution-service.js.map +1 -0
  511. package/core/dist/runtime/internalization/owner-retry.d.ts.map +1 -0
  512. package/core/dist/runtime/internalization/owner-retry.js.map +1 -0
  513. package/core/dist/runtime/internalization/owner-review.d.ts.map +1 -0
  514. package/core/dist/runtime/internalization/owner-review.js.map +1 -0
  515. package/core/dist/runtime/internalization/peer-runner-contracts.d.ts.map +1 -0
  516. package/core/dist/runtime/internalization/peer-runner-contracts.js.map +1 -0
  517. package/core/dist/runtime/internalization/philosopher-output.d.ts.map +1 -0
  518. package/core/dist/runtime/internalization/philosopher-output.js.map +1 -0
  519. package/core/dist/runtime/internalization/philosopher-prompt-builder.d.ts.map +1 -0
  520. package/core/dist/runtime/internalization/philosopher-prompt-builder.js.map +1 -0
  521. package/core/dist/runtime/internalization/philosopher-runner.d.ts.map +1 -0
  522. package/core/dist/runtime/internalization/philosopher-runner.js.map +1 -0
  523. package/core/dist/runtime/internalization/pi-artifact-store.d.ts.map +1 -0
  524. package/core/dist/runtime/internalization/pi-artifact-store.js.map +1 -0
  525. package/core/dist/runtime/internalization/pi-artifact.d.ts.map +1 -0
  526. package/core/dist/runtime/internalization/pi-artifact.js.map +1 -0
  527. package/core/dist/runtime/internalization/pitask-metadata.d.ts.map +1 -0
  528. package/core/dist/runtime/internalization/pitask-metadata.js +1030 -0
  529. package/core/dist/runtime/internalization/pitask-metadata.js.map +1 -0
  530. package/core/dist/runtime/internalization/prompt-serializer.d.ts.map +1 -0
  531. package/core/dist/runtime/internalization/prompt-serializer.js.map +1 -0
  532. package/core/dist/runtime/internalization/queue-actionability.d.ts.map +1 -0
  533. package/core/dist/runtime/internalization/queue-actionability.js.map +1 -0
  534. package/core/dist/runtime/internalization/refiner-rulehost-gate.d.ts.map +1 -0
  535. package/core/dist/runtime/internalization/refiner-rulehost-gate.js.map +1 -0
  536. package/core/dist/runtime/internalization/refiner-sandbox-wrapper.d.ts.map +1 -0
  537. package/core/dist/runtime/internalization/refiner-sandbox-wrapper.js.map +1 -0
  538. package/core/dist/runtime/internalization/repair-replay-resolver.d.ts.map +1 -0
  539. package/core/dist/runtime/internalization/repair-replay-resolver.js.map +1 -0
  540. package/core/dist/runtime/internalization/revision-reopen.d.ts.map +1 -0
  541. package/core/dist/runtime/internalization/revision-reopen.js.map +1 -0
  542. package/core/dist/runtime/internalization/rollout-reviewer-output.d.ts.map +1 -0
  543. package/core/dist/runtime/internalization/rollout-reviewer-output.js.map +1 -0
  544. package/core/dist/runtime/internalization/rollout-reviewer-prompt-builder.d.ts.map +1 -0
  545. package/core/dist/runtime/internalization/rollout-reviewer-prompt-builder.js.map +1 -0
  546. package/core/dist/runtime/internalization/rollout-reviewer-runner.d.ts.map +1 -0
  547. package/core/dist/runtime/internalization/rollout-reviewer-runner.js.map +1 -0
  548. package/core/dist/runtime/internalization/router-context-evidence.d.ts.map +1 -0
  549. package/core/dist/runtime/internalization/router-context-evidence.js.map +1 -0
  550. package/core/dist/runtime/internalization/routing-policy.d.ts.map +1 -0
  551. package/core/dist/runtime/internalization/routing-policy.js.map +1 -0
  552. package/core/dist/runtime/internalization/rule-activation-contract.d.ts.map +1 -0
  553. package/core/dist/runtime/internalization/rule-activation-contract.js.map +1 -0
  554. package/core/dist/runtime/internalization/rule-binding-revision.d.ts.map +1 -0
  555. package/core/dist/runtime/internalization/rule-binding-revision.js.map +1 -0
  556. package/core/dist/runtime/internalization/rule-code-validator.d.ts.map +1 -0
  557. package/core/dist/runtime/internalization/rule-code-validator.js.map +1 -0
  558. package/core/dist/runtime/internalization/rule-context-v2.d.ts +64 -0
  559. package/core/dist/runtime/internalization/rule-context-v2.d.ts.map +1 -0
  560. package/core/dist/runtime/internalization/rule-context-v2.js +285 -0
  561. package/core/dist/runtime/internalization/rule-context-v2.js.map +1 -0
  562. package/core/dist/runtime/internalization/rule-host-adapter.d.ts.map +1 -0
  563. package/core/dist/runtime/internalization/rule-host-adapter.js.map +1 -0
  564. package/core/dist/runtime/internalization/rule-host-contracts.d.ts.map +1 -0
  565. package/core/dist/runtime/internalization/rule-host-contracts.js.map +1 -0
  566. package/core/dist/runtime/internalization/rule-host-evaluator.d.ts.map +1 -0
  567. package/core/dist/runtime/internalization/rule-host-evaluator.js.map +1 -0
  568. package/core/dist/runtime/internalization/rule-host-helpers.d.ts.map +1 -0
  569. package/core/dist/runtime/internalization/rule-host-helpers.js.map +1 -0
  570. package/core/dist/runtime/internalization/rule-host-input-builder.d.ts.map +1 -0
  571. package/core/dist/runtime/internalization/rule-host-input-builder.js.map +1 -0
  572. package/core/dist/runtime/internalization/rule-host-validator.d.ts.map +1 -0
  573. package/core/dist/runtime/internalization/rule-host-validator.js.map +1 -0
  574. package/core/dist/runtime/internalization/rule-reliability-validation.d.ts.map +1 -0
  575. package/core/dist/runtime/internalization/rule-reliability-validation.js.map +1 -0
  576. package/core/dist/runtime/internalization/rule-source-correction.d.ts.map +1 -0
  577. package/core/dist/runtime/internalization/rule-source-correction.js.map +1 -0
  578. package/core/dist/runtime/internalization/rulecode-verification-obligations.d.ts.map +1 -0
  579. package/core/dist/runtime/internalization/rulecode-verification-obligations.js.map +1 -0
  580. package/core/dist/runtime/internalization/scribe-output.d.ts.map +1 -0
  581. package/core/dist/runtime/internalization/scribe-output.js.map +1 -0
  582. package/core/dist/runtime/internalization/scribe-prompt-builder.d.ts.map +1 -0
  583. package/core/dist/runtime/internalization/scribe-prompt-builder.js.map +1 -0
  584. package/core/dist/runtime/internalization/scribe-runner.d.ts.map +1 -0
  585. package/core/dist/runtime/internalization/scribe-runner.js.map +1 -0
  586. package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts.map +1 -0
  587. package/core/dist/runtime/internalization/split-diagnostician-runner.js.map +1 -0
  588. package/core/dist/runtime/internalization/template-generator.d.ts.map +1 -0
  589. package/core/dist/runtime/internalization/template-generator.js.map +1 -0
  590. package/core/dist/runtime/internalization/textual-basis-anchor.d.ts.map +1 -0
  591. package/core/dist/runtime/internalization/textual-basis-anchor.js.map +1 -0
  592. package/core/dist/runtime/internalization/tool-semantic-baseline.d.ts.map +1 -0
  593. package/core/dist/runtime/internalization/tool-semantic-baseline.js.map +1 -0
  594. package/core/dist/runtime/internalization/tool-semantic-registry.d.ts.map +1 -0
  595. package/core/dist/runtime/internalization/tool-semantic-registry.js.map +1 -0
  596. package/core/dist/runtime/internalization/v2-adversarial-cases.d.ts.map +1 -0
  597. package/core/dist/runtime/internalization/v2-adversarial-cases.js.map +1 -0
  598. package/core/dist/runtime/internalization-chain-integrity-read-model.d.ts.map +1 -0
  599. package/core/dist/runtime/internalization-chain-integrity-read-model.js.map +1 -0
  600. package/core/dist/runtime/internalization-integrity-remediation.d.ts.map +1 -0
  601. package/core/dist/runtime/internalization-integrity-remediation.js.map +1 -0
  602. package/core/dist/runtime/internalization-queue-read-model.d.ts.map +1 -0
  603. package/core/dist/runtime/internalization-queue-read-model.js.map +1 -0
  604. package/core/dist/runtime/intervention-evidence-normalizer.d.ts.map +1 -0
  605. package/core/dist/runtime/intervention-evidence-normalizer.js.map +1 -0
  606. package/core/dist/runtime/l1-hard-cap.d.ts.map +1 -0
  607. package/core/dist/runtime/l1-hard-cap.js.map +1 -0
  608. package/core/dist/runtime/language-directive.d.ts.map +1 -0
  609. package/core/dist/runtime/language-directive.js.map +1 -0
  610. package/core/dist/runtime/learning-lab/actor-action-output.d.ts.map +1 -0
  611. package/core/dist/runtime/learning-lab/actor-action-output.js.map +1 -0
  612. package/core/dist/runtime/mainline-contract.d.ts.map +1 -0
  613. package/core/dist/runtime/mainline-contract.js.map +1 -0
  614. package/core/dist/runtime/observer/agent-scheduler.d.ts.map +1 -0
  615. package/core/dist/runtime/observer/agent-scheduler.js.map +1 -0
  616. package/core/dist/runtime/observer/correction-observer.d.ts.map +1 -0
  617. package/core/dist/runtime/observer/correction-observer.js.map +1 -0
  618. package/core/dist/runtime/operator-health-read-model.d.ts.map +1 -0
  619. package/core/dist/runtime/operator-health-read-model.js +135 -0
  620. package/core/dist/runtime/operator-health-read-model.js.map +1 -0
  621. package/core/dist/runtime/owner-decision/owner-decision-view-contract.d.ts.map +1 -0
  622. package/core/dist/runtime/owner-decision/owner-decision-view-contract.js.map +1 -0
  623. package/core/dist/runtime/owner-decision/owner-decision-view.d.ts.map +1 -0
  624. package/core/dist/runtime/owner-decision/owner-decision-view.js.map +1 -0
  625. package/core/dist/runtime/owner-decision/semantic-selector.d.ts.map +1 -0
  626. package/core/dist/runtime/owner-decision/semantic-selector.js.map +1 -0
  627. package/core/dist/runtime/owner-identity.d.ts.map +1 -0
  628. package/core/dist/runtime/owner-identity.js.map +1 -0
  629. package/core/dist/runtime/pain-chain-read-model.d.ts.map +1 -0
  630. package/core/dist/runtime/pain-chain-read-model.js +327 -0
  631. package/core/dist/runtime/pain-chain-read-model.js.map +1 -0
  632. package/core/dist/runtime/pain-flood-simulation.d.ts.map +1 -0
  633. package/core/dist/runtime/pain-flood-simulation.js +152 -0
  634. package/core/dist/runtime/pain-flood-simulation.js.map +1 -0
  635. package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -0
  636. package/core/dist/runtime/pain-ingress-payload.js.map +1 -0
  637. package/core/dist/runtime/pain-ingress.d.ts.map +1 -0
  638. package/core/dist/runtime/pain-ingress.js.map +1 -0
  639. package/core/dist/runtime/pain-recall-capability.d.ts.map +1 -0
  640. package/core/dist/runtime/pain-recall-capability.js.map +1 -0
  641. package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -0
  642. package/core/dist/runtime/pain-recall-read-model.js.map +1 -0
  643. package/core/dist/runtime/pain-recall-snapshot-hooks.d.ts.map +1 -0
  644. package/core/dist/runtime/pain-recall-snapshot-hooks.js.map +1 -0
  645. package/core/dist/runtime/pain-signal-bridge.d.ts +389 -0
  646. package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -0
  647. package/core/dist/runtime/pain-signal-bridge.js +1460 -0
  648. package/core/dist/runtime/pain-signal-bridge.js.map +1 -0
  649. package/core/dist/runtime/pain-signal-observability.d.ts +36 -0
  650. package/core/dist/runtime/pain-signal-observability.d.ts.map +1 -0
  651. package/core/dist/runtime/pain-signal-observability.js.map +1 -0
  652. package/core/dist/runtime/pain-signal-runtime-factory.d.ts +254 -0
  653. package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -0
  654. package/core/dist/runtime/pain-signal-runtime-factory.js +780 -0
  655. package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -0
  656. package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -0
  657. package/core/dist/runtime/pain-to-principle-service.js.map +1 -0
  658. package/core/dist/runtime/principle-reuse/reuse-domain.d.ts +89 -0
  659. package/core/dist/runtime/principle-reuse/reuse-domain.d.ts.map +1 -0
  660. package/core/dist/runtime/principle-reuse/reuse-domain.js +16 -0
  661. package/core/dist/runtime/principle-reuse/reuse-domain.js.map +1 -0
  662. package/core/dist/runtime/principle-reuse/reuse-evaluation-output.d.ts.map +1 -0
  663. package/core/dist/runtime/principle-reuse/reuse-evaluation-output.js.map +1 -0
  664. package/core/dist/runtime/principle-reuse/reuse-evaluation-runner.d.ts.map +1 -0
  665. package/core/dist/runtime/principle-reuse/reuse-evaluation-runner.js.map +1 -0
  666. package/core/dist/runtime/principle-reuse/reuse-proposal.d.ts.map +1 -0
  667. package/core/dist/runtime/principle-reuse/reuse-proposal.js.map +1 -0
  668. package/core/dist/runtime/principle-reuse/reuse-retrieval.d.ts.map +1 -0
  669. package/core/dist/runtime/principle-reuse/reuse-retrieval.js.map +1 -0
  670. package/core/dist/runtime/principle-reuse/reuse-shortlist.d.ts.map +1 -0
  671. package/core/dist/runtime/principle-reuse/reuse-shortlist.js.map +1 -0
  672. package/core/dist/runtime/principle-tree/ledger-codec.d.ts.map +1 -0
  673. package/core/dist/runtime/principle-tree/ledger-codec.js.map +1 -0
  674. package/core/dist/runtime/principle-tree/rule-candidate-binding.d.ts.map +1 -0
  675. package/core/dist/runtime/principle-tree/rule-candidate-binding.js.map +1 -0
  676. package/core/dist/runtime/product-telemetry/daily-identity.d.ts.map +1 -0
  677. package/core/dist/runtime/product-telemetry/daily-identity.js.map +1 -0
  678. package/core/dist/runtime/product-telemetry/snapshot-contract.d.ts.map +1 -0
  679. package/core/dist/runtime/product-telemetry/snapshot-contract.js.map +1 -0
  680. package/core/dist/runtime/proven-channel-baseline.d.ts.map +1 -0
  681. package/core/dist/runtime/proven-channel-baseline.js +547 -0
  682. package/core/dist/runtime/proven-channel-baseline.js.map +1 -0
  683. package/core/dist/runtime/pruning-read-model.d.ts.map +1 -0
  684. package/core/dist/runtime/pruning-read-model.js.map +1 -0
  685. package/core/dist/runtime/receipt-coverage.d.ts.map +1 -0
  686. package/core/dist/runtime/receipt-coverage.js.map +1 -0
  687. package/core/dist/runtime/recovery-actions-log.d.ts.map +1 -0
  688. package/core/dist/runtime/recovery-actions-log.js.map +1 -0
  689. package/core/dist/runtime/recovery-sweep-service.d.ts.map +1 -0
  690. package/core/dist/runtime/recovery-sweep-service.js.map +1 -0
  691. package/core/dist/runtime/remediation-contract.d.ts.map +1 -0
  692. package/core/dist/runtime/remediation-contract.js.map +1 -0
  693. package/core/dist/runtime/risk/index.d.ts.map +1 -0
  694. package/core/dist/runtime/risk/index.js.map +1 -0
  695. package/core/dist/runtime/risk/risk-calculator-policy.d.ts.map +1 -0
  696. package/core/dist/runtime/risk/risk-calculator-policy.js.map +1 -0
  697. package/core/dist/runtime/runner/base-peer-runner.d.ts.map +1 -0
  698. package/core/dist/runtime/runner/base-peer-runner.js.map +1 -0
  699. package/core/dist/runtime/runner/default-validator.d.ts.map +1 -0
  700. package/core/dist/runtime/runner/default-validator.js.map +1 -0
  701. package/core/dist/runtime/runner/diagnostician-validator.d.ts.map +1 -0
  702. package/core/dist/runtime/runner/diagnostician-validator.js.map +1 -0
  703. package/core/dist/runtime/runner/peer-runner-types.d.ts.map +1 -0
  704. package/core/dist/runtime/runner/peer-runner-types.js.map +1 -0
  705. package/core/dist/runtime/runner/runner-phase.d.ts.map +1 -0
  706. package/core/dist/runtime/runner/runner-phase.js.map +1 -0
  707. package/core/dist/runtime/runner/runner-result.d.ts.map +1 -0
  708. package/core/dist/runtime/runner/runner-result.js.map +1 -0
  709. package/core/dist/runtime/runtime-protocol.d.ts.map +1 -0
  710. package/core/dist/runtime/runtime-protocol.js.map +1 -0
  711. package/core/dist/runtime/runtime-state-handle.d.ts.map +1 -0
  712. package/core/dist/runtime/runtime-state-handle.js.map +1 -0
  713. package/core/dist/runtime/schema-conformance-read-model.d.ts.map +1 -0
  714. package/core/dist/runtime/schema-conformance-read-model.js.map +1 -0
  715. package/core/dist/runtime/schema-version.d.ts +20 -0
  716. package/core/dist/runtime/schema-version.d.ts.map +1 -0
  717. package/core/dist/runtime/schema-version.js +20 -0
  718. package/core/dist/runtime/schema-version.js.map +1 -0
  719. package/core/dist/runtime/signal-collector/confidence-gate.d.ts.map +1 -0
  720. package/core/dist/runtime/signal-collector/confidence-gate.js.map +1 -0
  721. package/core/dist/runtime/signal-collector/index.d.ts.map +1 -0
  722. package/core/dist/runtime/signal-collector/index.js.map +1 -0
  723. package/core/dist/runtime/signal-collector/keyword-stage.d.ts.map +1 -0
  724. package/core/dist/runtime/signal-collector/keyword-stage.js.map +1 -0
  725. package/core/dist/runtime/signal-collector/llm-stage.d.ts.map +1 -0
  726. package/core/dist/runtime/signal-collector/llm-stage.js.map +1 -0
  727. package/core/dist/runtime/signal-collector/signal-collector.d.ts.map +1 -0
  728. package/core/dist/runtime/signal-collector/signal-collector.js.map +1 -0
  729. package/core/dist/runtime/signal-collector/types.d.ts.map +1 -0
  730. package/core/dist/runtime/signal-collector/types.js.map +1 -0
  731. package/core/dist/runtime/stalled-diagnostician-task-read-model.d.ts.map +1 -0
  732. package/core/dist/runtime/stalled-diagnostician-task-read-model.js.map +1 -0
  733. package/core/dist/runtime/store/artifact/artifact-store.d.ts.map +1 -0
  734. package/core/dist/runtime/store/artifact/artifact-store.js.map +1 -0
  735. package/core/dist/runtime/store/artifact/index.d.ts.map +1 -0
  736. package/core/dist/runtime/store/artifact/index.js.map +1 -0
  737. package/core/dist/runtime/store/artifact/memory-artifact-store.d.ts.map +1 -0
  738. package/core/dist/runtime/store/artifact/memory-artifact-store.js.map +1 -0
  739. package/core/dist/runtime/store/artifact/sqlite-artifact-store.d.ts.map +1 -0
  740. package/core/dist/runtime/store/artifact/sqlite-artifact-store.js.map +1 -0
  741. package/core/dist/runtime/store/artifact/sqlite-pi-artifact-store.d.ts.map +1 -0
  742. package/core/dist/runtime/store/artifact/sqlite-pi-artifact-store.js.map +1 -0
  743. package/core/dist/runtime/store/candidate/admission-document.d.ts.map +1 -0
  744. package/core/dist/runtime/store/candidate/admission-document.js.map +1 -0
  745. package/core/dist/runtime/store/candidate/candidate-store.d.ts.map +1 -0
  746. package/core/dist/runtime/store/candidate/candidate-store.js.map +1 -0
  747. package/core/dist/runtime/store/candidate/index.d.ts.map +1 -0
  748. package/core/dist/runtime/store/candidate/index.js.map +1 -0
  749. package/core/dist/runtime/store/candidate/memory-candidate-store.d.ts.map +1 -0
  750. package/core/dist/runtime/store/candidate/memory-candidate-store.js.map +1 -0
  751. package/core/dist/runtime/store/candidate/recommendation-kind-resolver.d.ts.map +1 -0
  752. package/core/dist/runtime/store/candidate/recommendation-kind-resolver.js.map +1 -0
  753. package/core/dist/runtime/store/candidate/sqlite-candidate-store.d.ts.map +1 -0
  754. package/core/dist/runtime/store/candidate/sqlite-candidate-store.js.map +1 -0
  755. package/core/dist/runtime/store/commit/commit-store.d.ts.map +1 -0
  756. package/core/dist/runtime/store/commit/commit-store.js.map +1 -0
  757. package/core/dist/runtime/store/commit/diagnostician-committer.d.ts.map +1 -0
  758. package/core/dist/runtime/store/commit/diagnostician-committer.js.map +1 -0
  759. package/core/dist/runtime/store/commit/index.d.ts.map +1 -0
  760. package/core/dist/runtime/store/commit/index.js.map +1 -0
  761. package/core/dist/runtime/store/commit/memory-commit-store.d.ts.map +1 -0
  762. package/core/dist/runtime/store/commit/memory-commit-store.js.map +1 -0
  763. package/core/dist/runtime/store/commit/sqlite-commit-store.d.ts.map +1 -0
  764. package/core/dist/runtime/store/commit/sqlite-commit-store.js.map +1 -0
  765. package/core/dist/runtime/store/context/context-assembler.d.ts.map +1 -0
  766. package/core/dist/runtime/store/context/context-assembler.js.map +1 -0
  767. package/core/dist/runtime/store/context/index.d.ts.map +1 -0
  768. package/core/dist/runtime/store/context/index.js.map +1 -0
  769. package/core/dist/runtime/store/context/resilient-context-assembler.d.ts.map +1 -0
  770. package/core/dist/runtime/store/context/resilient-context-assembler.js.map +1 -0
  771. package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -0
  772. package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -0
  773. package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts.map +1 -0
  774. package/core/dist/runtime/store/context/trajectory-turn-reader.js.map +1 -0
  775. package/core/dist/runtime/store/design-gate/sqlite-design-gate-store.d.ts.map +1 -0
  776. package/core/dist/runtime/store/design-gate/sqlite-design-gate-store.js.map +1 -0
  777. package/core/dist/runtime/store/event-emitter.d.ts.map +1 -0
  778. package/core/dist/runtime/store/event-emitter.js.map +1 -0
  779. package/core/dist/runtime/store/history/history-query.d.ts.map +1 -0
  780. package/core/dist/runtime/store/history/history-query.js.map +1 -0
  781. package/core/dist/runtime/store/history/index.d.ts.map +1 -0
  782. package/core/dist/runtime/store/history/index.js.map +1 -0
  783. package/core/dist/runtime/store/history/resilient-history-query.d.ts.map +1 -0
  784. package/core/dist/runtime/store/history/resilient-history-query.js.map +1 -0
  785. package/core/dist/runtime/store/history/sqlite-history-query.d.ts.map +1 -0
  786. package/core/dist/runtime/store/history/sqlite-history-query.js.map +1 -0
  787. package/core/dist/runtime/store/intent/index.d.ts.map +1 -0
  788. package/core/dist/runtime/store/intent/index.js.map +1 -0
  789. package/core/dist/runtime/store/intent/sqlite-intent-decision-store.d.ts.map +1 -0
  790. package/core/dist/runtime/store/intent/sqlite-intent-decision-store.js.map +1 -0
  791. package/core/dist/runtime/store/intent/sqlite-intent-doc-version-store.d.ts.map +1 -0
  792. package/core/dist/runtime/store/intent/sqlite-intent-doc-version-store.js.map +1 -0
  793. package/core/dist/runtime/store/intervention-evidence-schema.d.ts.map +1 -0
  794. package/core/dist/runtime/store/intervention-evidence-schema.js.map +1 -0
  795. package/core/dist/runtime/store/lifecycle/index.d.ts.map +1 -0
  796. package/core/dist/runtime/store/lifecycle/index.js.map +1 -0
  797. package/core/dist/runtime/store/lifecycle/lease-manager.d.ts.map +1 -0
  798. package/core/dist/runtime/store/lifecycle/lease-manager.js.map +1 -0
  799. package/core/dist/runtime/store/lifecycle/recovery-sweep.d.ts.map +1 -0
  800. package/core/dist/runtime/store/lifecycle/recovery-sweep.js.map +1 -0
  801. package/core/dist/runtime/store/lifecycle/retry-policy.d.ts.map +1 -0
  802. package/core/dist/runtime/store/lifecycle/retry-policy.js.map +1 -0
  803. package/core/dist/runtime/store/pain/index.d.ts.map +1 -0
  804. package/core/dist/runtime/store/pain/index.js.map +1 -0
  805. package/core/dist/runtime/store/pain/sqlite-dead-letter-store.d.ts.map +1 -0
  806. package/core/dist/runtime/store/pain/sqlite-dead-letter-store.js.map +1 -0
  807. package/core/dist/runtime/store/pain-diagnosis/pain-diagnosis-store.d.ts.map +1 -0
  808. package/core/dist/runtime/store/pain-diagnosis/pain-diagnosis-store.js.map +1 -0
  809. package/core/dist/runtime/store/pain-diagnosis/sqlite-pain-diagnosis-store.d.ts.map +1 -0
  810. package/core/dist/runtime/store/pain-diagnosis/sqlite-pain-diagnosis-store.js.map +1 -0
  811. package/core/dist/runtime/store/reconciliation-cursor-store.d.ts.map +1 -0
  812. package/core/dist/runtime/store/reconciliation-cursor-store.js.map +1 -0
  813. package/core/dist/runtime/store/run/index.d.ts.map +1 -0
  814. package/core/dist/runtime/store/run/index.js.map +1 -0
  815. package/core/dist/runtime/store/run/memory-run-store.d.ts.map +1 -0
  816. package/core/dist/runtime/store/run/memory-run-store.js.map +1 -0
  817. package/core/dist/runtime/store/run/run-store.d.ts.map +1 -0
  818. package/core/dist/runtime/store/run/run-store.js.map +1 -0
  819. package/core/dist/runtime/store/run/sqlite-run-store.d.ts.map +1 -0
  820. package/core/dist/runtime/store/run/sqlite-run-store.js.map +1 -0
  821. package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -0
  822. package/core/dist/runtime/store/runtime-state-manager.js.map +1 -0
  823. package/core/dist/runtime/store/sqlite-connection.d.ts.map +1 -0
  824. package/core/dist/runtime/store/sqlite-connection.js.map +1 -0
  825. package/core/dist/runtime/store/sqlite-intervention-evidence-store.d.ts.map +1 -0
  826. package/core/dist/runtime/store/sqlite-intervention-evidence-store.js.map +1 -0
  827. package/core/dist/runtime/store/task/index.d.ts.map +1 -0
  828. package/core/dist/runtime/store/task/index.js.map +1 -0
  829. package/core/dist/runtime/store/task/memory-task-store.d.ts.map +1 -0
  830. package/core/dist/runtime/store/task/memory-task-store.js.map +1 -0
  831. package/core/dist/runtime/store/task/sqlite-approved-rule-revision.d.ts.map +1 -0
  832. package/core/dist/runtime/store/task/sqlite-approved-rule-revision.js.map +1 -0
  833. package/core/dist/runtime/store/task/sqlite-family-reopen.d.ts.map +1 -0
  834. package/core/dist/runtime/store/task/sqlite-family-reopen.js.map +1 -0
  835. package/core/dist/runtime/store/task/sqlite-task-store.d.ts.map +1 -0
  836. package/core/dist/runtime/store/task/sqlite-task-store.js.map +1 -0
  837. package/core/dist/runtime/store/task/task-store.d.ts.map +1 -0
  838. package/core/dist/runtime/store/task/task-store.js.map +1 -0
  839. package/core/dist/runtime/store/task/task-types.d.ts.map +1 -0
  840. package/core/dist/runtime/store/task/task-types.js.map +1 -0
  841. package/core/dist/runtime/store/trajectory/index.d.ts.map +1 -0
  842. package/core/dist/runtime/store/trajectory/index.js.map +1 -0
  843. package/core/dist/runtime/store/trajectory/source-trace-locator.d.ts.map +1 -0
  844. package/core/dist/runtime/store/trajectory/source-trace-locator.js.map +1 -0
  845. package/core/dist/runtime/store/trajectory/sqlite-source-trace-locator.d.ts.map +1 -0
  846. package/core/dist/runtime/store/trajectory/sqlite-source-trace-locator.js.map +1 -0
  847. package/core/dist/runtime/store/trajectory/sqlite-trajectory-locator.d.ts.map +1 -0
  848. package/core/dist/runtime/store/trajectory/sqlite-trajectory-locator.js.map +1 -0
  849. package/core/dist/runtime/store/trajectory/trajectory-locator.d.ts.map +1 -0
  850. package/core/dist/runtime/store/trajectory/trajectory-locator.js.map +1 -0
  851. package/core/dist/runtime/store/workspace-leak-guard.d.ts.map +1 -0
  852. package/core/dist/runtime/store/workspace-leak-guard.js.map +1 -0
  853. package/core/dist/runtime/story-a-demo.d.ts +77 -0
  854. package/core/dist/runtime/story-a-demo.d.ts.map +1 -0
  855. package/core/dist/runtime/story-a-demo.js.map +1 -0
  856. package/core/dist/runtime/synthetic-baseline.d.ts.map +1 -0
  857. package/core/dist/runtime/synthetic-baseline.js +116 -0
  858. package/core/dist/runtime/synthetic-baseline.js.map +1 -0
  859. package/core/dist/runtime/system-prompt-merge.d.ts.map +1 -0
  860. package/core/dist/runtime/system-prompt-merge.js.map +1 -0
  861. package/core/dist/runtime/task-status.d.ts.map +1 -0
  862. package/core/dist/runtime/task-status.js.map +1 -0
  863. package/core/dist/runtime/tools/agent-tool-contract.d.ts.map +1 -0
  864. package/core/dist/runtime/tools/agent-tool-contract.js.map +1 -0
  865. package/core/dist/runtime/tools/artificer-l2-tool-contract.d.ts.map +1 -0
  866. package/core/dist/runtime/tools/artificer-l2-tool-contract.js.map +1 -0
  867. package/core/dist/runtime/tools/artificer-output-typebox.d.ts.map +1 -0
  868. package/core/dist/runtime/tools/artificer-output-typebox.js.map +1 -0
  869. package/core/dist/runtime/tools/dreamer-output-typebox.d.ts.map +1 -0
  870. package/core/dist/runtime/tools/dreamer-output-typebox.js.map +1 -0
  871. package/core/dist/runtime/trajectory-schema.d.ts.map +1 -0
  872. package/core/dist/runtime/trajectory-schema.js.map +1 -0
  873. package/core/dist/runtime/types/artifact-lineage.d.ts.map +1 -0
  874. package/core/dist/runtime/types/artifact-lineage.js.map +1 -0
  875. package/core/dist/runtime/types/event-payload.d.ts.map +1 -0
  876. package/core/dist/runtime/types/event-payload.js.map +1 -0
  877. package/core/dist/runtime/types/event-types.d.ts +940 -0
  878. package/core/dist/runtime/types/event-types.d.ts.map +1 -0
  879. package/core/dist/runtime/types/event-types.js +520 -0
  880. package/core/dist/runtime/types/event-types.js.map +1 -0
  881. package/core/dist/runtime/types/evidence-chain-contract.d.ts +282 -0
  882. package/core/dist/runtime/types/evidence-chain-contract.d.ts.map +1 -0
  883. package/core/dist/runtime/types/evidence-chain-contract.js +1301 -0
  884. package/core/dist/runtime/types/evidence-chain-contract.js.map +1 -0
  885. package/core/dist/runtime/types/hygiene-types.d.ts.map +1 -0
  886. package/core/dist/runtime/types/hygiene-types.js.map +1 -0
  887. package/core/dist/runtime/types/index.d.ts +32 -0
  888. package/core/dist/runtime/types/index.d.ts.map +1 -0
  889. package/core/dist/runtime/types/index.js +21 -0
  890. package/core/dist/runtime/types/index.js.map +1 -0
  891. package/core/dist/runtime/types/intervention-evidence-contract.d.ts.map +1 -0
  892. package/core/dist/runtime/types/intervention-evidence-contract.js.map +1 -0
  893. package/core/dist/runtime/types/ledger-store.d.ts.map +1 -0
  894. package/core/dist/runtime/types/ledger-store.js.map +1 -0
  895. package/core/dist/runtime/types/pain-signal.d.ts.map +1 -0
  896. package/core/dist/runtime/types/pain-signal.js.map +1 -0
  897. package/core/dist/runtime/types/pd-task-types.d.ts.map +1 -0
  898. package/core/dist/runtime/types/pd-task-types.js.map +1 -0
  899. package/core/dist/runtime/types/principle-dependency.d.ts.map +1 -0
  900. package/core/dist/runtime/types/principle-dependency.js.map +1 -0
  901. package/core/dist/runtime/types/principle-enums.d.ts.map +1 -0
  902. package/core/dist/runtime/types/principle-enums.js.map +1 -0
  903. package/core/dist/runtime/types/principle-lifecycle-event.d.ts.map +1 -0
  904. package/core/dist/runtime/types/principle-lifecycle-event.js.map +1 -0
  905. package/core/dist/runtime/types/principle-schema.d.ts.map +1 -0
  906. package/core/dist/runtime/types/principle-schema.js.map +1 -0
  907. package/core/dist/runtime/types/principle-tree-store.d.ts.map +1 -0
  908. package/core/dist/runtime/types/principle-tree-store.js.map +1 -0
  909. package/core/dist/runtime/types/principle-value-metrics.d.ts.map +1 -0
  910. package/core/dist/runtime/types/principle-value-metrics.js.map +1 -0
  911. package/core/dist/runtime/types/replay-types.d.ts.map +1 -0
  912. package/core/dist/runtime/types/replay-types.js.map +1 -0
  913. package/core/dist/runtime/types/rule-candidate-binding.d.ts.map +1 -0
  914. package/core/dist/runtime/types/rule-candidate-binding.js.map +1 -0
  915. package/core/dist/trajectory-types.d.ts +1 -1
  916. package/core/dist/trajectory-types.d.ts.map +1 -1
  917. package/core/dist/workflow-funnel-loader.d.ts +1 -1
  918. package/core/dist/workflow-funnel-loader.d.ts.map +1 -1
  919. package/core/package.json +55 -55
  920. package/dist/installer.js +1 -1
  921. package/dist/installer.js.map +1 -1
  922. package/dist/installers/workbuddy-host-installer.js +1 -1
  923. package/dist/utils/config-file-io.d.ts +1 -1
  924. package/dist/utils/config-file-io.d.ts.map +1 -1
  925. package/dist/utils/config-file-io.js +1 -1
  926. package/dist/utils/config-file-io.js.map +1 -1
  927. package/dist/utils/env.js +1 -1
  928. package/dist/utils/env.js.map +1 -1
  929. package/host-runtime/dist/active-principle-prompt.d.ts +1 -1
  930. package/host-runtime/dist/active-principle-prompt.js +1 -1
  931. package/host-runtime/dist/adaptive-journal-reconciliation.js +1 -1
  932. package/host-runtime/dist/adaptive-principle-revalidation.d.ts +1 -1
  933. package/host-runtime/dist/behavior-example-pack-assembler.d.ts +2 -2
  934. package/host-runtime/dist/behavior-example-pack-assembler.js +6 -6
  935. package/host-runtime/dist/behavior-history.d.ts +1 -1
  936. package/host-runtime/dist/behavior-history.js +1 -1
  937. package/host-runtime/dist/cli-recovery-probe.d.ts +1 -1
  938. package/host-runtime/dist/codex-artificer-trusted-facts.d.ts +1 -1
  939. package/host-runtime/dist/codex-rule-context-provider.d.ts +1 -1
  940. package/host-runtime/dist/codex-rule-context-provider.js +1 -1
  941. package/host-runtime/dist/codex-worker-status.js +1 -1
  942. package/host-runtime/dist/design-gate-facts.d.ts +1 -1
  943. package/host-runtime/dist/design-gate-facts.js +1 -1
  944. package/host-runtime/dist/evaluator-runtime-context.d.ts +1 -1
  945. package/host-runtime/dist/evaluator-runtime-context.js +1 -1
  946. package/host-runtime/dist/governance-observation-store.js +1 -1
  947. package/host-runtime/dist/governance-signal-admission.d.ts +2 -2
  948. package/host-runtime/dist/governance-signal-admission.js +3 -3
  949. package/host-runtime/dist/host-liveness-contract.d.ts +1 -1
  950. package/host-runtime/dist/host-tool-declaration.d.ts +1 -1
  951. package/host-runtime/dist/host-tool-declaration.js +1 -1
  952. package/host-runtime/dist/host-tool-semantic-resolver.d.ts +1 -1
  953. package/host-runtime/dist/host-tool-semantic-resolver.js +1 -1
  954. package/host-runtime/dist/index.d.ts +1 -1
  955. package/host-runtime/dist/index.js +2 -2
  956. package/host-runtime/dist/internalization-consumer-cycle.d.ts +2 -2
  957. package/host-runtime/dist/internalization-consumer-cycle.js +2 -2
  958. package/host-runtime/dist/internalization-consumer-governance.d.ts +1 -1
  959. package/host-runtime/dist/internalization-consumer-governance.js +1 -1
  960. package/host-runtime/dist/intervention-evidence-ingress.d.ts +1 -1
  961. package/host-runtime/dist/intervention-evidence-ingress.js +1 -1
  962. package/host-runtime/dist/pd-config.d.ts +1 -1
  963. package/host-runtime/dist/pd-config.js +1 -1
  964. package/host-runtime/dist/product-telemetry/consent-store.js +1 -1
  965. package/host-runtime/dist/product-telemetry/exporter.d.ts +1 -1
  966. package/host-runtime/dist/product-telemetry/milestone-readers.d.ts +1 -1
  967. package/host-runtime/dist/product-telemetry/service.d.ts +1 -1
  968. package/host-runtime/dist/product-telemetry/service.js +1 -1
  969. package/host-runtime/dist/product-telemetry/workspace-scope.js +1 -1
  970. package/host-runtime/dist/production-pain-evidence.d.ts +1 -1
  971. package/host-runtime/dist/production-pain-evidence.js +3 -3
  972. package/host-runtime/dist/production-rulehost-gate.d.ts +1 -1
  973. package/host-runtime/dist/production-rulehost-gate.js +3 -3
  974. package/host-runtime/dist/prompt-activation-authority.d.ts +1 -1
  975. package/host-runtime/dist/prompt-activation-deliverability.d.ts +1 -1
  976. package/host-runtime/dist/prompt-activation-deliverability.js +1 -1
  977. package/host-runtime/dist/prompt-injection-budget-observation.d.ts +16 -5
  978. package/host-runtime/dist/prompt-injection-budget-observation.js +23 -9
  979. package/host-runtime/dist/prompt-injection-projection.d.ts +1 -1
  980. package/host-runtime/dist/prompt-injection-projection.js +1 -1
  981. package/host-runtime/dist/prompt-injection-status.d.ts +1 -1
  982. package/host-runtime/dist/prompt-injection-status.js +1 -1
  983. package/host-runtime/dist/signal-classifier.d.ts +2 -2
  984. package/host-runtime/dist/signal-classifier.js +3 -3
  985. package/host-runtime/dist/workbuddy-rule-context-provider.d.ts +1 -1
  986. package/host-runtime/dist/workbuddy-rule-context-provider.js +1 -1
  987. package/host-runtime/dist/workbuddy-worker-status.js +1 -1
  988. package/host-runtime/dist/workspace-behavior-evidence.d.ts +1 -1
  989. package/host-runtime/dist/workspace-behavior-evidence.js +2 -2
  990. package/host-runtime/dist/workspace-telemetry-emitter.d.ts +1 -1
  991. package/host-runtime/dist/workspace-telemetry-emitter.js +1 -1
  992. package/host-runtime/package.json +1 -1
  993. package/package.json +3 -3
  994. package/pd-cli/dist/commands/admission-gate.d.ts +1 -1
  995. package/pd-cli/dist/commands/admission-gate.d.ts.map +1 -1
  996. package/pd-cli/dist/commands/admission-gate.js +1 -1
  997. package/pd-cli/dist/commands/admission-gate.js.map +1 -1
  998. package/pd-cli/dist/commands/artifact.js +1 -1
  999. package/pd-cli/dist/commands/artifact.js.map +1 -1
  1000. package/pd-cli/dist/commands/build-trajectory-evidence.d.ts +1 -1
  1001. package/pd-cli/dist/commands/build-trajectory-evidence.d.ts.map +1 -1
  1002. package/pd-cli/dist/commands/build-trajectory-evidence.js +1 -1
  1003. package/pd-cli/dist/commands/build-trajectory-evidence.js.map +1 -1
  1004. package/pd-cli/dist/commands/candidate.d.ts +1 -1
  1005. package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
  1006. package/pd-cli/dist/commands/candidate.js +1 -1
  1007. package/pd-cli/dist/commands/candidate.js.map +1 -1
  1008. package/pd-cli/dist/commands/codex-reconcile.js +2 -2
  1009. package/pd-cli/dist/commands/codex-reconcile.js.map +1 -1
  1010. package/pd-cli/dist/commands/codex-setup.js +1 -1
  1011. package/pd-cli/dist/commands/codex-setup.js.map +1 -1
  1012. package/pd-cli/dist/commands/console.d.ts +1 -1
  1013. package/pd-cli/dist/commands/console.js +5 -5
  1014. package/pd-cli/dist/commands/console.js.map +1 -1
  1015. package/pd-cli/dist/commands/demo-story-a.d.ts.map +1 -1
  1016. package/pd-cli/dist/commands/demo-story-a.js +18 -8
  1017. package/pd-cli/dist/commands/demo-story-a.js.map +1 -1
  1018. package/pd-cli/dist/commands/diagnose.js +2 -2
  1019. package/pd-cli/dist/commands/diagnose.js.map +1 -1
  1020. package/pd-cli/dist/commands/health-codex.js +2 -2
  1021. package/pd-cli/dist/commands/health-codex.js.map +1 -1
  1022. package/pd-cli/dist/commands/health.d.ts +3 -3
  1023. package/pd-cli/dist/commands/health.js +4 -4
  1024. package/pd-cli/dist/commands/health.js.map +1 -1
  1025. package/pd-cli/dist/commands/intent.d.ts +1 -1
  1026. package/pd-cli/dist/commands/intent.d.ts.map +1 -1
  1027. package/pd-cli/dist/commands/intent.js +116 -23
  1028. package/pd-cli/dist/commands/intent.js.map +1 -1
  1029. package/pd-cli/dist/commands/legacy-cleanup.js +1 -1
  1030. package/pd-cli/dist/commands/legacy-cleanup.js.map +1 -1
  1031. package/pd-cli/dist/commands/legacy-import.js +2 -2
  1032. package/pd-cli/dist/commands/pain-recall.js +1 -1
  1033. package/pd-cli/dist/commands/pain-recall.js.map +1 -1
  1034. package/pd-cli/dist/commands/pain-record.js +1 -1
  1035. package/pd-cli/dist/commands/pain-record.js.map +1 -1
  1036. package/pd-cli/dist/commands/pain-retry.js +1 -1
  1037. package/pd-cli/dist/commands/pain-retry.js.map +1 -1
  1038. package/pd-cli/dist/commands/principles-stats.js +1 -1
  1039. package/pd-cli/dist/commands/principles-stats.js.map +1 -1
  1040. package/pd-cli/dist/commands/proven-channel-baseline.js +1 -1
  1041. package/pd-cli/dist/commands/proven-channel-baseline.js.map +1 -1
  1042. package/pd-cli/dist/commands/recovery-reachability-probe.d.ts +1 -1
  1043. package/pd-cli/dist/commands/recovery-reachability-probe.d.ts.map +1 -1
  1044. package/pd-cli/dist/commands/rulecode.d.ts +1 -1
  1045. package/pd-cli/dist/commands/rulecode.d.ts.map +1 -1
  1046. package/pd-cli/dist/commands/rulecode.js +1 -1
  1047. package/pd-cli/dist/commands/rulecode.js.map +1 -1
  1048. package/pd-cli/dist/commands/runtime-activation.d.ts +3 -3
  1049. package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
  1050. package/pd-cli/dist/commands/runtime-activation.js +6 -6
  1051. package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
  1052. package/pd-cli/dist/commands/runtime-artifact-repair.js +1 -1
  1053. package/pd-cli/dist/commands/runtime-artifact-repair.js.map +1 -1
  1054. package/pd-cli/dist/commands/runtime-canary.js +1 -1
  1055. package/pd-cli/dist/commands/runtime-canary.js.map +1 -1
  1056. package/pd-cli/dist/commands/runtime-compatibility-scan.js +1 -1
  1057. package/pd-cli/dist/commands/runtime-compatibility-scan.js.map +1 -1
  1058. package/pd-cli/dist/commands/runtime-diagnostics-export.d.ts.map +1 -1
  1059. package/pd-cli/dist/commands/runtime-diagnostics-export.js +8 -3
  1060. package/pd-cli/dist/commands/runtime-diagnostics-export.js.map +1 -1
  1061. package/pd-cli/dist/commands/runtime-health-snapshot.js +2 -2
  1062. package/pd-cli/dist/commands/runtime-health-snapshot.js.map +1 -1
  1063. package/pd-cli/dist/commands/runtime-init.js +3 -3
  1064. package/pd-cli/dist/commands/runtime-init.js.map +1 -1
  1065. package/pd-cli/dist/commands/runtime-internalization-audit-artificer-evidence.js +1 -1
  1066. package/pd-cli/dist/commands/runtime-internalization-audit-artificer-evidence.js.map +1 -1
  1067. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +1 -1
  1068. package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
  1069. package/pd-cli/dist/commands/runtime-internalization-evidence.js +1 -1
  1070. package/pd-cli/dist/commands/runtime-internalization-evidence.js.map +1 -1
  1071. package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js +1 -1
  1072. package/pd-cli/dist/commands/runtime-internalization-integrity-repair.js.map +1 -1
  1073. package/pd-cli/dist/commands/runtime-internalization-integrity.js +1 -1
  1074. package/pd-cli/dist/commands/runtime-internalization-integrity.js.map +1 -1
  1075. package/pd-cli/dist/commands/runtime-internalization-queue.js +1 -1
  1076. package/pd-cli/dist/commands/runtime-internalization-queue.js.map +1 -1
  1077. package/pd-cli/dist/commands/runtime-internalization-retry.js +1 -1
  1078. package/pd-cli/dist/commands/runtime-internalization-retry.js.map +1 -1
  1079. package/pd-cli/dist/commands/runtime-internalization-run-once.js +2 -2
  1080. package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
  1081. package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js +3 -3
  1082. package/pd-cli/dist/commands/runtime-internalization-run-rulehost.js.map +1 -1
  1083. package/pd-cli/dist/commands/runtime-internalization-wake-once.js +2 -2
  1084. package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -1
  1085. package/pd-cli/dist/commands/runtime-pruning.js +1 -1
  1086. package/pd-cli/dist/commands/runtime-pruning.js.map +1 -1
  1087. package/pd-cli/dist/commands/runtime-recovery-failed-task.js +1 -1
  1088. package/pd-cli/dist/commands/runtime-recovery-failed-task.js.map +1 -1
  1089. package/pd-cli/dist/commands/runtime-recovery-failed-tasks.js +1 -1
  1090. package/pd-cli/dist/commands/runtime-recovery-failed-tasks.js.map +1 -1
  1091. package/pd-cli/dist/commands/runtime-recovery.js +1 -1
  1092. package/pd-cli/dist/commands/runtime-recovery.js.map +1 -1
  1093. package/pd-cli/dist/commands/runtime-uat.js +1 -1
  1094. package/pd-cli/dist/commands/runtime.js +1 -1
  1095. package/pd-cli/dist/commands/runtime.js.map +1 -1
  1096. package/pd-cli/dist/commands/trace.js +1 -1
  1097. package/pd-cli/dist/commands/trace.js.map +1 -1
  1098. package/pd-cli/dist/commands/workbuddy-worker.js +1 -1
  1099. package/pd-cli/dist/commands/workbuddy-worker.js.map +1 -1
  1100. package/pd-cli/dist/config-reader.d.ts +1 -1
  1101. package/pd-cli/dist/config-reader.d.ts.map +1 -1
  1102. package/pd-cli/dist/config-reader.js +1 -1
  1103. package/pd-cli/dist/config-reader.js.map +1 -1
  1104. package/pd-cli/dist/legacy/session-history-import.d.ts +2 -2
  1105. package/pd-cli/dist/legacy/session-history-import.js +2 -2
  1106. package/pd-cli/dist/services/admission-write-gate.d.ts +1 -1
  1107. package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
  1108. package/pd-cli/dist/services/admission-write-gate.js +1 -1
  1109. package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
  1110. package/pd-cli/dist/services/config-doctor.js +1 -1
  1111. package/pd-cli/dist/services/config-doctor.js.map +1 -1
  1112. package/pd-cli/dist/services/demo-rule-compiler.d.ts +1 -1
  1113. package/pd-cli/dist/services/demo-rule-compiler.d.ts.map +1 -1
  1114. package/pd-cli/dist/services/demo-rule-compiler.js +1 -1
  1115. package/pd-cli/dist/services/demo-rule-compiler.js.map +1 -1
  1116. package/pd-cli/dist/services/demo-story-a-runner.d.ts +1 -1
  1117. package/pd-cli/dist/services/demo-story-a-runner.d.ts.map +1 -1
  1118. package/pd-cli/dist/services/demo-story-a-runner.js +3 -3
  1119. package/pd-cli/dist/services/demo-story-a-runner.js.map +1 -1
  1120. package/pd-cli/dist/services/mainline-snapshot-assembler.d.ts +3 -3
  1121. package/pd-cli/dist/services/mainline-snapshot-assembler.d.ts.map +1 -1
  1122. package/pd-cli/dist/services/mainline-snapshot-assembler.js +3 -3
  1123. package/pd-cli/dist/services/mainline-snapshot-assembler.js.map +1 -1
  1124. package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts +1 -1
  1125. package/pd-cli/dist/services/pain-flood-simulation-runner.d.ts.map +1 -1
  1126. package/pd-cli/dist/services/pain-flood-simulation-runner.js +12 -12
  1127. package/pd-cli/dist/services/pain-flood-simulation-runner.js.map +1 -1
  1128. package/pd-cli/dist/services/pd-config-loader.d.ts +1 -1
  1129. package/pd-cli/dist/services/pd-config-loader.d.ts.map +1 -1
  1130. package/pd-cli/dist/services/pd-config-loader.js +1 -1
  1131. package/pd-cli/dist/services/pd-config-loader.js.map +1 -1
  1132. package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts +1 -1
  1133. package/pd-cli/dist/services/proven-channel-baseline-runner.d.ts.map +1 -1
  1134. package/pd-cli/dist/services/proven-channel-baseline-runner.js +1 -1
  1135. package/pd-cli/dist/services/proven-channel-baseline-runner.js.map +1 -1
  1136. package/pd-cli/dist/services/resolve-runtime-from-pd-config.d.ts +2 -2
  1137. package/pd-cli/dist/services/resolve-runtime-from-pd-config.d.ts.map +1 -1
  1138. package/pd-cli/dist/services/resolve-runtime-from-pd-config.js +1 -1
  1139. package/pd-cli/dist/services/resolve-runtime-from-pd-config.js.map +1 -1
  1140. package/pd-cli/dist/services/reuse-gated-intake.d.ts +2 -2
  1141. package/pd-cli/dist/services/reuse-gated-intake.d.ts.map +1 -1
  1142. package/pd-cli/dist/services/reuse-gated-intake.js +1 -1
  1143. package/pd-cli/dist/services/reuse-gated-intake.js.map +1 -1
  1144. package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts +3 -3
  1145. package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
  1146. package/pd-cli/dist/services/rulehost-pipeline-runner.js +2 -2
  1147. package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
  1148. package/pd-cli/dist/services/rulehost-readiness.js +1 -1
  1149. package/pd-cli/dist/services/rulehost-readiness.js.map +1 -1
  1150. package/pd-cli/dist/services/runtime-adapter-resolver.d.ts +2 -2
  1151. package/pd-cli/dist/services/runtime-adapter-resolver.d.ts.map +1 -1
  1152. package/pd-cli/dist/services/runtime-adapter-resolver.js +1 -1
  1153. package/pd-cli/dist/services/runtime-adapter-resolver.js.map +1 -1
  1154. package/pd-cli/dist/services/synthetic-baseline-runner.d.ts +1 -1
  1155. package/pd-cli/dist/services/synthetic-baseline-runner.d.ts.map +1 -1
  1156. package/pd-cli/dist/services/synthetic-baseline-runner.js +15 -15
  1157. package/pd-cli/dist/services/synthetic-baseline-runner.js.map +1 -1
  1158. package/pd-cli/dist/services/workspace-telemetry.js +1 -1
  1159. package/pd-cli/dist/services/workspace-telemetry.js.map +1 -1
  1160. package/pd-cli/dist/services/workspace-tool-semantics.d.ts +1 -1
  1161. package/pd-cli/dist/services/workspace-tool-semantics.d.ts.map +1 -1
  1162. package/pd-mcp-server/dist/envelope.d.ts +1 -1
  1163. package/pd-mcp-server/dist/envelope.js +1 -1
  1164. package/pd-mcp-server/dist/server.d.ts +2 -2
  1165. package/pd-mcp-server/dist/server.js +2 -2
  1166. package/pd-mcp-server/dist/version.d.ts +1 -1
  1167. package/pd-mcp-server/dist/version.js +1 -1
  1168. package/pd-mcp-server/package.json +1 -1
  1169. package/plugin/dist/bundle.js +609 -608
  1170. package/plugin/dist/commands/promote-impl.d.ts +1 -1
  1171. package/plugin/dist/constants/tool-semantics.d.ts +1 -1
  1172. package/plugin/dist/core/correction-types.d.ts +2 -2
  1173. package/plugin/dist/core/event-log.d.ts +3 -3
  1174. package/plugin/dist/core/evolution-types.d.ts +5 -5
  1175. package/plugin/dist/core/intent-doc-reader-adapter.d.ts +1 -1
  1176. package/plugin/dist/core/intent-doc-reader.d.ts +1 -1
  1177. package/plugin/dist/core/pd-task-types.d.ts +2 -2
  1178. package/plugin/dist/core/principle-compiler/code-validator.d.ts +2 -2
  1179. package/plugin/dist/core/principle-compiler/compiler.d.ts +2 -2
  1180. package/plugin/dist/core/principle-compiler/template-generator.d.ts +1 -1
  1181. package/plugin/dist/core/principle-internalization/filesystem-lifecycle-datasource.d.ts +2 -2
  1182. package/plugin/dist/core/principle-internalization/lifecycle-read-model.d.ts +5 -5
  1183. package/plugin/dist/core/principle-internalization/principle-lifecycle-service.d.ts +3 -3
  1184. package/plugin/dist/core/principle-tree-ledger.d.ts +1 -1
  1185. package/plugin/dist/core/replay-engine.d.ts +1 -1
  1186. package/plugin/dist/core/rule-context-assembler.d.ts +1 -1
  1187. package/plugin/dist/core/rule-host.d.ts +3 -3
  1188. package/plugin/dist/core/runtime-prompt-activation-reader.d.ts +30 -0
  1189. package/plugin/dist/core/signal-collector-host.d.ts +1 -1
  1190. package/plugin/dist/core/workspace-context.d.ts +1 -1
  1191. package/plugin/dist/governance-audit.d.ts +2 -2
  1192. package/plugin/dist/governance-audit.js +1 -1
  1193. package/plugin/dist/hooks/controlled-admission.d.ts +87 -0
  1194. package/plugin/dist/hooks/gate.d.ts +1 -1
  1195. package/plugin/dist/hooks/message-sanitize.d.ts +1 -1
  1196. package/plugin/dist/hooks/pain-ingress-adapter.d.ts +1 -1
  1197. package/plugin/dist/hooks/prompt.d.ts +1 -1
  1198. package/plugin/dist/hooks/raw-observation-adapter.d.ts +2 -2
  1199. package/plugin/dist/hooks/raw-observation-types.d.ts +2 -2
  1200. package/plugin/dist/hooks/trajectory-evidence.d.ts +1 -1
  1201. package/plugin/dist/hooks/triage-adapter.d.ts +1 -1
  1202. package/plugin/dist/index.d.ts +1 -1
  1203. package/plugin/dist/openclaw.plugin.json +1 -1
  1204. package/plugin/dist/service/correction-observer-service.d.ts +1 -1
  1205. package/plugin/dist/service/keyword-optimization-service.d.ts +2 -2
  1206. package/plugin/dist/types/event-types.d.ts +2 -2
  1207. package/plugin/dist/types/hygiene-types.d.ts +2 -2
  1208. package/plugin/dist/types/principle-tree-schema.d.ts +2 -2
  1209. package/plugin/dist/utils/workspace-resolver.d.ts +1 -1
  1210. package/plugin/openclaw.plugin.json +1 -1
  1211. package/plugin/package.json +1 -1
  1212. package/release-manager/dist/installer.js +1 -1
  1213. package/release-manager/dist/installers/workbuddy-host-installer.js +1 -1
  1214. package/release-manager/dist/utils/config-file-io.js +1 -1
  1215. package/release-manager/dist/utils/env.js +1 -1
  1216. package/release-manager/package.json +1 -1
  1217. package/workbuddy-adapter/dist/pd-hook.js +3 -3
  1218. package/workbuddy-adapter/dist/tool-semantics.d.ts +1 -1
  1219. package/workbuddy-adapter/dist/tool-semantics.js +1 -1
  1220. package/workbuddy-adapter/dist/workbuddy-evidence-recorder.d.ts +1 -1
  1221. package/workbuddy-adapter/dist/worker/workspace-worker.js +2 -2
  1222. package/workbuddy-adapter/package.json +1 -1
  1223. package/core/dist/runtime-v2/activation/activation-control-types.d.ts.map +0 -1
  1224. package/core/dist/runtime-v2/activation/activation-control-types.js.map +0 -1
  1225. package/core/dist/runtime-v2/activation/activation-dispatcher.d.ts.map +0 -1
  1226. package/core/dist/runtime-v2/activation/activation-dispatcher.js.map +0 -1
  1227. package/core/dist/runtime-v2/activation/activation-types.d.ts.map +0 -1
  1228. package/core/dist/runtime-v2/activation/activation-types.js.map +0 -1
  1229. package/core/dist/runtime-v2/activation/adaptive-delivery-record.d.ts.map +0 -1
  1230. package/core/dist/runtime-v2/activation/adaptive-delivery-record.js.map +0 -1
  1231. package/core/dist/runtime-v2/activation/adaptive-principle-intervention.d.ts +0 -46
  1232. package/core/dist/runtime-v2/activation/adaptive-principle-intervention.d.ts.map +0 -1
  1233. package/core/dist/runtime-v2/activation/adaptive-principle-intervention.js +0 -91
  1234. package/core/dist/runtime-v2/activation/adaptive-principle-intervention.js.map +0 -1
  1235. package/core/dist/runtime-v2/activation/approval-completion-service.d.ts.map +0 -1
  1236. package/core/dist/runtime-v2/activation/approval-completion-service.js.map +0 -1
  1237. package/core/dist/runtime-v2/activation/approval-queue.d.ts.map +0 -1
  1238. package/core/dist/runtime-v2/activation/approval-queue.js.map +0 -1
  1239. package/core/dist/runtime-v2/activation/approval-review-guard.d.ts.map +0 -1
  1240. package/core/dist/runtime-v2/activation/approval-review-guard.js.map +0 -1
  1241. package/core/dist/runtime-v2/activation/index.d.ts +0 -48
  1242. package/core/dist/runtime-v2/activation/index.d.ts.map +0 -1
  1243. package/core/dist/runtime-v2/activation/index.js +0 -38
  1244. package/core/dist/runtime-v2/activation/index.js.map +0 -1
  1245. package/core/dist/runtime-v2/activation/ledger-identity.d.ts.map +0 -1
  1246. package/core/dist/runtime-v2/activation/ledger-identity.js.map +0 -1
  1247. package/core/dist/runtime-v2/activation/low-risk-writers.d.ts.map +0 -1
  1248. package/core/dist/runtime-v2/activation/low-risk-writers.js.map +0 -1
  1249. package/core/dist/runtime-v2/activation/memory-activation-state-store.d.ts.map +0 -1
  1250. package/core/dist/runtime-v2/activation/memory-activation-state-store.js.map +0 -1
  1251. package/core/dist/runtime-v2/activation/memory-approval-store.d.ts.map +0 -1
  1252. package/core/dist/runtime-v2/activation/memory-approval-store.js.map +0 -1
  1253. package/core/dist/runtime-v2/activation/openclaw-promotion-checks.d.ts.map +0 -1
  1254. package/core/dist/runtime-v2/activation/openclaw-promotion-checks.js.map +0 -1
  1255. package/core/dist/runtime-v2/activation/production-gate-deps.d.ts.map +0 -1
  1256. package/core/dist/runtime-v2/activation/production-gate-deps.js.map +0 -1
  1257. package/core/dist/runtime-v2/activation/promotion-evidence-snapshot.d.ts.map +0 -1
  1258. package/core/dist/runtime-v2/activation/promotion-evidence-snapshot.js.map +0 -1
  1259. package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.d.ts.map +0 -1
  1260. package/core/dist/runtime-v2/activation/promotion-readiness-evaluator.js.map +0 -1
  1261. package/core/dist/runtime-v2/activation/promotion-readiness-reader.d.ts.map +0 -1
  1262. package/core/dist/runtime-v2/activation/promotion-readiness-reader.js.map +0 -1
  1263. package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +0 -118
  1264. package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +0 -1
  1265. package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js +0 -209
  1266. package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +0 -1
  1267. package/core/dist/runtime-v2/activation/prompt-budget-policy.d.ts.map +0 -1
  1268. package/core/dist/runtime-v2/activation/prompt-budget-policy.js +0 -326
  1269. package/core/dist/runtime-v2/activation/prompt-budget-policy.js.map +0 -1
  1270. package/core/dist/runtime-v2/activation/prompt-replacement.d.ts.map +0 -1
  1271. package/core/dist/runtime-v2/activation/prompt-replacement.js.map +0 -1
  1272. package/core/dist/runtime-v2/activation/recovery-composition.d.ts.map +0 -1
  1273. package/core/dist/runtime-v2/activation/recovery-composition.js.map +0 -1
  1274. package/core/dist/runtime-v2/activation/recovery-control-surfaces.d.ts.map +0 -1
  1275. package/core/dist/runtime-v2/activation/recovery-control-surfaces.js.map +0 -1
  1276. package/core/dist/runtime-v2/activation/rule-replacement.d.ts.map +0 -1
  1277. package/core/dist/runtime-v2/activation/rule-replacement.js.map +0 -1
  1278. package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.d.ts.map +0 -1
  1279. package/core/dist/runtime-v2/activation/rulecode-owner-decision-service.js.map +0 -1
  1280. package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.d.ts.map +0 -1
  1281. package/core/dist/runtime-v2/activation/rulecode-safety-circuit-breaker.js.map +0 -1
  1282. package/core/dist/runtime-v2/activation/rulecode-shadow-summary.d.ts.map +0 -1
  1283. package/core/dist/runtime-v2/activation/rulecode-shadow-summary.js.map +0 -1
  1284. package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.d.ts.map +0 -1
  1285. package/core/dist/runtime-v2/activation/sqlite-activation-safety-store.js.map +0 -1
  1286. package/core/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +0 -1
  1287. package/core/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +0 -1
  1288. package/core/dist/runtime-v2/activation/sqlite-approval-store.d.ts.map +0 -1
  1289. package/core/dist/runtime-v2/activation/sqlite-approval-store.js.map +0 -1
  1290. package/core/dist/runtime-v2/activation/writers/index.d.ts.map +0 -1
  1291. package/core/dist/runtime-v2/activation/writers/index.js.map +0 -1
  1292. package/core/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +0 -1
  1293. package/core/dist/runtime-v2/activation/writers/rule-host-writer.js.map +0 -1
  1294. package/core/dist/runtime-v2/activation-compatibility-read-model.d.ts.map +0 -1
  1295. package/core/dist/runtime-v2/activation-compatibility-read-model.js.map +0 -1
  1296. package/core/dist/runtime-v2/adapter/artificer-l2-adapter.d.ts.map +0 -1
  1297. package/core/dist/runtime-v2/adapter/artificer-l2-adapter.js.map +0 -1
  1298. package/core/dist/runtime-v2/adapter/index.d.ts.map +0 -1
  1299. package/core/dist/runtime-v2/adapter/index.js.map +0 -1
  1300. package/core/dist/runtime-v2/adapter/json-extractor.d.ts.map +0 -1
  1301. package/core/dist/runtime-v2/adapter/json-extractor.js.map +0 -1
  1302. package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.d.ts.map +0 -1
  1303. package/core/dist/runtime-v2/adapter/l2-agent-loop-adapter.js.map +0 -1
  1304. package/core/dist/runtime-v2/adapter/output-repair-contract.d.ts.map +0 -1
  1305. package/core/dist/runtime-v2/adapter/output-repair-contract.js +0 -99
  1306. package/core/dist/runtime-v2/adapter/output-repair-contract.js.map +0 -1
  1307. package/core/dist/runtime-v2/adapter/output-schema-registry.d.ts.map +0 -1
  1308. package/core/dist/runtime-v2/adapter/output-schema-registry.js.map +0 -1
  1309. package/core/dist/runtime-v2/adapter/pi-ai-catalog.d.ts.map +0 -1
  1310. package/core/dist/runtime-v2/adapter/pi-ai-catalog.js.map +0 -1
  1311. package/core/dist/runtime-v2/adapter/pi-ai-http-transport.d.ts.map +0 -1
  1312. package/core/dist/runtime-v2/adapter/pi-ai-http-transport.js.map +0 -1
  1313. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +0 -1
  1314. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +0 -1489
  1315. package/core/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +0 -1
  1316. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts +0 -98
  1317. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts.map +0 -1
  1318. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js +0 -243
  1319. package/core/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js.map +0 -1
  1320. package/core/dist/runtime-v2/adapter/schema-json-converter.d.ts.map +0 -1
  1321. package/core/dist/runtime-v2/adapter/schema-json-converter.js.map +0 -1
  1322. package/core/dist/runtime-v2/adapter/schema-prompt-adapter.d.ts.map +0 -1
  1323. package/core/dist/runtime-v2/adapter/schema-prompt-adapter.js.map +0 -1
  1324. package/core/dist/runtime-v2/adapter/split-pipeline-fixtures.d.ts.map +0 -1
  1325. package/core/dist/runtime-v2/adapter/split-pipeline-fixtures.js.map +0 -1
  1326. package/core/dist/runtime-v2/adapter/structured-output-repair.d.ts.map +0 -1
  1327. package/core/dist/runtime-v2/adapter/structured-output-repair.js +0 -298
  1328. package/core/dist/runtime-v2/adapter/structured-output-repair.js.map +0 -1
  1329. package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts.map +0 -1
  1330. package/core/dist/runtime-v2/adapter/test-double-runtime-adapter.js.map +0 -1
  1331. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +0 -1
  1332. package/core/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +0 -1
  1333. package/core/dist/runtime-v2/admission-gate.d.ts.map +0 -1
  1334. package/core/dist/runtime-v2/admission-gate.js.map +0 -1
  1335. package/core/dist/runtime-v2/adversarial-loop.d.ts.map +0 -1
  1336. package/core/dist/runtime-v2/adversarial-loop.js.map +0 -1
  1337. package/core/dist/runtime-v2/agent-spec.d.ts.map +0 -1
  1338. package/core/dist/runtime-v2/agent-spec.js.map +0 -1
  1339. package/core/dist/runtime-v2/bridge-result-shaper.d.ts.map +0 -1
  1340. package/core/dist/runtime-v2/bridge-result-shaper.js.map +0 -1
  1341. package/core/dist/runtime-v2/build-l2-principle-reader.d.ts.map +0 -1
  1342. package/core/dist/runtime-v2/build-l2-principle-reader.js.map +0 -1
  1343. package/core/dist/runtime-v2/candidate-audit.d.ts.map +0 -1
  1344. package/core/dist/runtime-v2/candidate-audit.js.map +0 -1
  1345. package/core/dist/runtime-v2/candidate-intake-service.d.ts.map +0 -1
  1346. package/core/dist/runtime-v2/candidate-intake-service.js.map +0 -1
  1347. package/core/dist/runtime-v2/candidate-intake.d.ts.map +0 -1
  1348. package/core/dist/runtime-v2/candidate-intake.js.map +0 -1
  1349. package/core/dist/runtime-v2/cli/diagnose.d.ts.map +0 -1
  1350. package/core/dist/runtime-v2/cli/diagnose.js.map +0 -1
  1351. package/core/dist/runtime-v2/cli/index.d.ts.map +0 -1
  1352. package/core/dist/runtime-v2/cli/index.js.map +0 -1
  1353. package/core/dist/runtime-v2/cli/probe.d.ts.map +0 -1
  1354. package/core/dist/runtime-v2/cli/probe.js.map +0 -1
  1355. package/core/dist/runtime-v2/config/index.d.ts.map +0 -1
  1356. package/core/dist/runtime-v2/config/index.js.map +0 -1
  1357. package/core/dist/runtime-v2/config/pd-config-agent-binding.d.ts.map +0 -1
  1358. package/core/dist/runtime-v2/config/pd-config-agent-binding.js.map +0 -1
  1359. package/core/dist/runtime-v2/config/pd-config-defaults.d.ts.map +0 -1
  1360. package/core/dist/runtime-v2/config/pd-config-defaults.js.map +0 -1
  1361. package/core/dist/runtime-v2/config/pd-config-effective.d.ts.map +0 -1
  1362. package/core/dist/runtime-v2/config/pd-config-effective.js.map +0 -1
  1363. package/core/dist/runtime-v2/config/pd-config-feature-flags.d.ts.map +0 -1
  1364. package/core/dist/runtime-v2/config/pd-config-feature-flags.js.map +0 -1
  1365. package/core/dist/runtime-v2/config/pd-config-redaction.d.ts.map +0 -1
  1366. package/core/dist/runtime-v2/config/pd-config-redaction.js +0 -202
  1367. package/core/dist/runtime-v2/config/pd-config-redaction.js.map +0 -1
  1368. package/core/dist/runtime-v2/config/pd-config-types.d.ts.map +0 -1
  1369. package/core/dist/runtime-v2/config/pd-config-types.js.map +0 -1
  1370. package/core/dist/runtime-v2/config/pd-config-validate.d.ts.map +0 -1
  1371. package/core/dist/runtime-v2/config/pd-config-validate.js.map +0 -1
  1372. package/core/dist/runtime-v2/config/pd-profile-constants.d.ts.map +0 -1
  1373. package/core/dist/runtime-v2/config/pd-profile-constants.js.map +0 -1
  1374. package/core/dist/runtime-v2/config/pd-validate-profile.d.ts.map +0 -1
  1375. package/core/dist/runtime-v2/config/pd-validate-profile.js.map +0 -1
  1376. package/core/dist/runtime-v2/context-payload.d.ts.map +0 -1
  1377. package/core/dist/runtime-v2/context-payload.js.map +0 -1
  1378. package/core/dist/runtime-v2/control-plane-triage.d.ts.map +0 -1
  1379. package/core/dist/runtime-v2/control-plane-triage.js.map +0 -1
  1380. package/core/dist/runtime-v2/core-principles/core-axiom-block.d.ts.map +0 -1
  1381. package/core/dist/runtime-v2/core-principles/core-axiom-block.js.map +0 -1
  1382. package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts.map +0 -1
  1383. package/core/dist/runtime-v2/core-principles/core-principle-registry.js.map +0 -1
  1384. package/core/dist/runtime-v2/core-principles/index.d.ts.map +0 -1
  1385. package/core/dist/runtime-v2/core-principles/index.js.map +0 -1
  1386. package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.d.ts.map +0 -1
  1387. package/core/dist/runtime-v2/core-principles/strip-fabricated-ids.js.map +0 -1
  1388. package/core/dist/runtime-v2/correction/correction-types.d.ts.map +0 -1
  1389. package/core/dist/runtime-v2/correction/correction-types.js.map +0 -1
  1390. package/core/dist/runtime-v2/correction/index.d.ts.map +0 -1
  1391. package/core/dist/runtime-v2/correction/index.js.map +0 -1
  1392. package/core/dist/runtime-v2/detection/detection-funnel-policy.d.ts.map +0 -1
  1393. package/core/dist/runtime-v2/detection/detection-funnel-policy.js.map +0 -1
  1394. package/core/dist/runtime-v2/detection/index.d.ts.map +0 -1
  1395. package/core/dist/runtime-v2/detection/index.js.map +0 -1
  1396. package/core/dist/runtime-v2/diagnostician/diag-distiller-output.d.ts.map +0 -1
  1397. package/core/dist/runtime-v2/diagnostician/diag-distiller-output.js.map +0 -1
  1398. package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.d.ts.map +0 -1
  1399. package/core/dist/runtime-v2/diagnostician/diag-rootcause-output.js.map +0 -1
  1400. package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.d.ts.map +0 -1
  1401. package/core/dist/runtime-v2/diagnostician/distiller-prompt-builder.js.map +0 -1
  1402. package/core/dist/runtime-v2/diagnostician/evidence-ref-binding.d.ts.map +0 -1
  1403. package/core/dist/runtime-v2/diagnostician/evidence-ref-binding.js.map +0 -1
  1404. package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.d.ts.map +0 -1
  1405. package/core/dist/runtime-v2/diagnostician/rootcause-prompt-builder.js.map +0 -1
  1406. package/core/dist/runtime-v2/diagnostician/router-prompt-builder.d.ts.map +0 -1
  1407. package/core/dist/runtime-v2/diagnostician/router-prompt-builder.js.map +0 -1
  1408. package/core/dist/runtime-v2/diagnostician-association-shadow.d.ts.map +0 -1
  1409. package/core/dist/runtime-v2/diagnostician-association-shadow.js.map +0 -1
  1410. package/core/dist/runtime-v2/diagnostician-association-validation.d.ts.map +0 -1
  1411. package/core/dist/runtime-v2/diagnostician-association-validation.js.map +0 -1
  1412. package/core/dist/runtime-v2/diagnostician-capability.d.ts.map +0 -1
  1413. package/core/dist/runtime-v2/diagnostician-capability.js.map +0 -1
  1414. package/core/dist/runtime-v2/diagnostician-output.d.ts.map +0 -1
  1415. package/core/dist/runtime-v2/diagnostician-output.js.map +0 -1
  1416. package/core/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +0 -1
  1417. package/core/dist/runtime-v2/diagnostician-prompt-builder.js.map +0 -1
  1418. package/core/dist/runtime-v2/error-categories.d.ts +0 -42
  1419. package/core/dist/runtime-v2/error-categories.d.ts.map +0 -1
  1420. package/core/dist/runtime-v2/error-categories.js +0 -122
  1421. package/core/dist/runtime-v2/error-categories.js.map +0 -1
  1422. package/core/dist/runtime-v2/evidence-guards.d.ts.map +0 -1
  1423. package/core/dist/runtime-v2/evidence-guards.js.map +0 -1
  1424. package/core/dist/runtime-v2/evidence-sanitizer.d.ts.map +0 -1
  1425. package/core/dist/runtime-v2/evidence-sanitizer.js.map +0 -1
  1426. package/core/dist/runtime-v2/evidence-triage/index.d.ts.map +0 -1
  1427. package/core/dist/runtime-v2/evidence-triage/index.js.map +0 -1
  1428. package/core/dist/runtime-v2/evidence-triage/observation-resolver.d.ts.map +0 -1
  1429. package/core/dist/runtime-v2/evidence-triage/observation-resolver.js.map +0 -1
  1430. package/core/dist/runtime-v2/evidence-triage/source-descriptors.d.ts.map +0 -1
  1431. package/core/dist/runtime-v2/evidence-triage/source-descriptors.js.map +0 -1
  1432. package/core/dist/runtime-v2/evidence-triage/triage-policy.d.ts.map +0 -1
  1433. package/core/dist/runtime-v2/evidence-triage/triage-policy.js.map +0 -1
  1434. package/core/dist/runtime-v2/evidence-triage/trigger-controller.d.ts.map +0 -1
  1435. package/core/dist/runtime-v2/evidence-triage/trigger-controller.js.map +0 -1
  1436. package/core/dist/runtime-v2/evidence-triage/types.d.ts.map +0 -1
  1437. package/core/dist/runtime-v2/evidence-triage/types.js.map +0 -1
  1438. package/core/dist/runtime-v2/evolution/evolution-types.d.ts.map +0 -1
  1439. package/core/dist/runtime-v2/evolution/evolution-types.js.map +0 -1
  1440. package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +0 -1
  1441. package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +0 -1
  1442. package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.d.ts.map +0 -1
  1443. package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js +0 -273
  1444. package/core/dist/runtime-v2/feature-flags/feature-flag-lifecycle.js.map +0 -1
  1445. package/core/dist/runtime-v2/feature-flags/index.d.ts.map +0 -1
  1446. package/core/dist/runtime-v2/feature-flags/index.js.map +0 -1
  1447. package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.d.ts.map +0 -1
  1448. package/core/dist/runtime-v2/feature-flags/plugin-surface-registry.js.map +0 -1
  1449. package/core/dist/runtime-v2/feature-flags/surface-guard-policy.d.ts.map +0 -1
  1450. package/core/dist/runtime-v2/feature-flags/surface-guard-policy.js.map +0 -1
  1451. package/core/dist/runtime-v2/feedback/create-report.d.ts.map +0 -1
  1452. package/core/dist/runtime-v2/feedback/create-report.js.map +0 -1
  1453. package/core/dist/runtime-v2/feedback/feedback-types.d.ts.map +0 -1
  1454. package/core/dist/runtime-v2/feedback/feedback-types.js.map +0 -1
  1455. package/core/dist/runtime-v2/feedback/fingerprint.d.ts.map +0 -1
  1456. package/core/dist/runtime-v2/feedback/fingerprint.js.map +0 -1
  1457. package/core/dist/runtime-v2/feedback/index.d.ts.map +0 -1
  1458. package/core/dist/runtime-v2/feedback/index.js +0 -18
  1459. package/core/dist/runtime-v2/feedback/index.js.map +0 -1
  1460. package/core/dist/runtime-v2/feedback/internal-guards.d.ts.map +0 -1
  1461. package/core/dist/runtime-v2/feedback/internal-guards.js.map +0 -1
  1462. package/core/dist/runtime-v2/feedback/pending-agent-draft-store.d.ts.map +0 -1
  1463. package/core/dist/runtime-v2/feedback/pending-agent-draft-store.js.map +0 -1
  1464. package/core/dist/runtime-v2/feedback/privacy-preview.d.ts.map +0 -1
  1465. package/core/dist/runtime-v2/feedback/privacy-preview.js.map +0 -1
  1466. package/core/dist/runtime-v2/feedback/redact-sensitive.d.ts.map +0 -1
  1467. package/core/dist/runtime-v2/feedback/redact-sensitive.js +0 -301
  1468. package/core/dist/runtime-v2/feedback/redact-sensitive.js.map +0 -1
  1469. package/core/dist/runtime-v2/feedback/render-github-url.d.ts.map +0 -1
  1470. package/core/dist/runtime-v2/feedback/render-github-url.js.map +0 -1
  1471. package/core/dist/runtime-v2/feedback/render-markdown.d.ts.map +0 -1
  1472. package/core/dist/runtime-v2/feedback/render-markdown.js.map +0 -1
  1473. package/core/dist/runtime-v2/feedback/safe-stringify.d.ts.map +0 -1
  1474. package/core/dist/runtime-v2/feedback/safe-stringify.js.map +0 -1
  1475. package/core/dist/runtime-v2/full-trace-contract.d.ts.map +0 -1
  1476. package/core/dist/runtime-v2/full-trace-contract.js +0 -466
  1477. package/core/dist/runtime-v2/full-trace-contract.js.map +0 -1
  1478. package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +0 -1
  1479. package/core/dist/runtime-v2/golden-trace-replay-validator.js.map +0 -1
  1480. package/core/dist/runtime-v2/golden-trace.d.ts.map +0 -1
  1481. package/core/dist/runtime-v2/golden-trace.js.map +0 -1
  1482. package/core/dist/runtime-v2/governance-experience-contract.d.ts.map +0 -1
  1483. package/core/dist/runtime-v2/governance-experience-contract.js.map +0 -1
  1484. package/core/dist/runtime-v2/governance-experience.d.ts.map +0 -1
  1485. package/core/dist/runtime-v2/governance-experience.js.map +0 -1
  1486. package/core/dist/runtime-v2/governance-projection-contract.d.ts.map +0 -1
  1487. package/core/dist/runtime-v2/governance-projection-contract.js.map +0 -1
  1488. package/core/dist/runtime-v2/governance-projection.d.ts.map +0 -1
  1489. package/core/dist/runtime-v2/governance-projection.js.map +0 -1
  1490. package/core/dist/runtime-v2/governance-timestamp-schema.d.ts.map +0 -1
  1491. package/core/dist/runtime-v2/governance-timestamp-schema.js.map +0 -1
  1492. package/core/dist/runtime-v2/index.d.ts +0 -446
  1493. package/core/dist/runtime-v2/index.d.ts.map +0 -1
  1494. package/core/dist/runtime-v2/index.js +0 -409
  1495. package/core/dist/runtime-v2/index.js.map +0 -1
  1496. package/core/dist/runtime-v2/intent/index.d.ts.map +0 -1
  1497. package/core/dist/runtime-v2/intent/index.js.map +0 -1
  1498. package/core/dist/runtime-v2/intent/intent-browser.d.ts +0 -23
  1499. package/core/dist/runtime-v2/intent/intent-browser.d.ts.map +0 -1
  1500. package/core/dist/runtime-v2/intent/intent-browser.js +0 -21
  1501. package/core/dist/runtime-v2/intent/intent-browser.js.map +0 -1
  1502. package/core/dist/runtime-v2/intent/intent-decision-record.d.ts +0 -125
  1503. package/core/dist/runtime-v2/intent/intent-decision-record.d.ts.map +0 -1
  1504. package/core/dist/runtime-v2/intent/intent-decision-record.js +0 -21
  1505. package/core/dist/runtime-v2/intent/intent-decision-record.js.map +0 -1
  1506. package/core/dist/runtime-v2/intent/intent-doc-reader-port.d.ts.map +0 -1
  1507. package/core/dist/runtime-v2/intent/intent-doc-reader-port.js.map +0 -1
  1508. package/core/dist/runtime-v2/intent/intent-doc-version.d.ts.map +0 -1
  1509. package/core/dist/runtime-v2/intent/intent-doc-version.js.map +0 -1
  1510. package/core/dist/runtime-v2/intent/intent-doc.d.ts.map +0 -1
  1511. package/core/dist/runtime-v2/intent/intent-doc.js.map +0 -1
  1512. package/core/dist/runtime-v2/intent/intent-friction-block.d.ts.map +0 -1
  1513. package/core/dist/runtime-v2/intent/intent-friction-block.js.map +0 -1
  1514. package/core/dist/runtime-v2/intent/intent-hash.d.ts.map +0 -1
  1515. package/core/dist/runtime-v2/intent/intent-hash.js.map +0 -1
  1516. package/core/dist/runtime-v2/intent/intent-patch-proposal.d.ts.map +0 -1
  1517. package/core/dist/runtime-v2/intent/intent-patch-proposal.js.map +0 -1
  1518. package/core/dist/runtime-v2/internalization/adversarial-case.d.ts.map +0 -1
  1519. package/core/dist/runtime-v2/internalization/adversarial-case.js.map +0 -1
  1520. package/core/dist/runtime-v2/internalization/adversarial-feedback.d.ts.map +0 -1
  1521. package/core/dist/runtime-v2/internalization/adversarial-feedback.js.map +0 -1
  1522. package/core/dist/runtime-v2/internalization/approved-rule-revision.d.ts.map +0 -1
  1523. package/core/dist/runtime-v2/internalization/approved-rule-revision.js.map +0 -1
  1524. package/core/dist/runtime-v2/internalization/artifact-content-hash.d.ts.map +0 -1
  1525. package/core/dist/runtime-v2/internalization/artifact-content-hash.js.map +0 -1
  1526. package/core/dist/runtime-v2/internalization/artifact-summary.d.ts.map +0 -1
  1527. package/core/dist/runtime-v2/internalization/artifact-summary.js.map +0 -1
  1528. package/core/dist/runtime-v2/internalization/artificer-code-bearing.d.ts.map +0 -1
  1529. package/core/dist/runtime-v2/internalization/artificer-code-bearing.js.map +0 -1
  1530. package/core/dist/runtime-v2/internalization/artificer-intent-preflight.d.ts.map +0 -1
  1531. package/core/dist/runtime-v2/internalization/artificer-intent-preflight.js.map +0 -1
  1532. package/core/dist/runtime-v2/internalization/artificer-output.d.ts.map +0 -1
  1533. package/core/dist/runtime-v2/internalization/artificer-output.js.map +0 -1
  1534. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +0 -1
  1535. package/core/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +0 -1
  1536. package/core/dist/runtime-v2/internalization/artificer-run-correlation.d.ts.map +0 -1
  1537. package/core/dist/runtime-v2/internalization/artificer-run-correlation.js.map +0 -1
  1538. package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +0 -1
  1539. package/core/dist/runtime-v2/internalization/artificer-runner.js.map +0 -1
  1540. package/core/dist/runtime-v2/internalization/bash-risk.d.ts.map +0 -1
  1541. package/core/dist/runtime-v2/internalization/bash-risk.js +0 -905
  1542. package/core/dist/runtime-v2/internalization/bash-risk.js.map +0 -1
  1543. package/core/dist/runtime-v2/internalization/behavior-example-pack.d.ts +0 -47
  1544. package/core/dist/runtime-v2/internalization/behavior-example-pack.d.ts.map +0 -1
  1545. package/core/dist/runtime-v2/internalization/behavior-example-pack.js +0 -214
  1546. package/core/dist/runtime-v2/internalization/behavior-example-pack.js.map +0 -1
  1547. package/core/dist/runtime-v2/internalization/candidate-identity.d.ts.map +0 -1
  1548. package/core/dist/runtime-v2/internalization/candidate-identity.js.map +0 -1
  1549. package/core/dist/runtime-v2/internalization/compile-result.d.ts.map +0 -1
  1550. package/core/dist/runtime-v2/internalization/compile-result.js.map +0 -1
  1551. package/core/dist/runtime-v2/internalization/consumer-evidence-preflight.d.ts.map +0 -1
  1552. package/core/dist/runtime-v2/internalization/consumer-evidence-preflight.js.map +0 -1
  1553. package/core/dist/runtime-v2/internalization/correction-proposal.d.ts.map +0 -1
  1554. package/core/dist/runtime-v2/internalization/correction-proposal.js +0 -333
  1555. package/core/dist/runtime-v2/internalization/correction-proposal.js.map +0 -1
  1556. package/core/dist/runtime-v2/internalization/deprecated-readiness.d.ts.map +0 -1
  1557. package/core/dist/runtime-v2/internalization/deprecated-readiness.js.map +0 -1
  1558. package/core/dist/runtime-v2/internalization/design-gate-facts.d.ts.map +0 -1
  1559. package/core/dist/runtime-v2/internalization/design-gate-facts.js.map +0 -1
  1560. package/core/dist/runtime-v2/internalization/diag-distiller-runner.d.ts.map +0 -1
  1561. package/core/dist/runtime-v2/internalization/diag-distiller-runner.js.map +0 -1
  1562. package/core/dist/runtime-v2/internalization/diag-rootcause-runner.d.ts.map +0 -1
  1563. package/core/dist/runtime-v2/internalization/diag-rootcause-runner.js.map +0 -1
  1564. package/core/dist/runtime-v2/internalization/diag-router-runner.d.ts.map +0 -1
  1565. package/core/dist/runtime-v2/internalization/diag-router-runner.js.map +0 -1
  1566. package/core/dist/runtime-v2/internalization/dreamer-output.d.ts.map +0 -1
  1567. package/core/dist/runtime-v2/internalization/dreamer-output.js.map +0 -1
  1568. package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts.map +0 -1
  1569. package/core/dist/runtime-v2/internalization/dreamer-prompt-builder.js.map +0 -1
  1570. package/core/dist/runtime-v2/internalization/dreamer-runner.d.ts.map +0 -1
  1571. package/core/dist/runtime-v2/internalization/dreamer-runner.js.map +0 -1
  1572. package/core/dist/runtime-v2/internalization/evaluator-output.d.ts.map +0 -1
  1573. package/core/dist/runtime-v2/internalization/evaluator-output.js.map +0 -1
  1574. package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +0 -1
  1575. package/core/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +0 -1
  1576. package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +0 -1
  1577. package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +0 -1
  1578. package/core/dist/runtime-v2/internalization/evidence-readiness.d.ts.map +0 -1
  1579. package/core/dist/runtime-v2/internalization/evidence-readiness.js.map +0 -1
  1580. package/core/dist/runtime-v2/internalization/formation-context.d.ts.map +0 -1
  1581. package/core/dist/runtime-v2/internalization/formation-context.js.map +0 -1
  1582. package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.d.ts.map +0 -1
  1583. package/core/dist/runtime-v2/internalization/golden-dogfood-fixtures.js.map +0 -1
  1584. package/core/dist/runtime-v2/internalization/index.d.ts.map +0 -1
  1585. package/core/dist/runtime-v2/internalization/index.js.map +0 -1
  1586. package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts.map +0 -1
  1587. package/core/dist/runtime-v2/internalization/intake-to-internalization-bridge.js.map +0 -1
  1588. package/core/dist/runtime-v2/internalization/intent-contract.d.ts.map +0 -1
  1589. package/core/dist/runtime-v2/internalization/intent-contract.js.map +0 -1
  1590. package/core/dist/runtime-v2/internalization/internalization-consumer-decision.d.ts.map +0 -1
  1591. package/core/dist/runtime-v2/internalization/internalization-consumer-decision.js.map +0 -1
  1592. package/core/dist/runtime-v2/internalization/internalization-job-graph.d.ts.map +0 -1
  1593. package/core/dist/runtime-v2/internalization/internalization-job-graph.js.map +0 -1
  1594. package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +0 -1
  1595. package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +0 -1
  1596. package/core/dist/runtime-v2/internalization/internalization-route.d.ts.map +0 -1
  1597. package/core/dist/runtime-v2/internalization/internalization-route.js.map +0 -1
  1598. package/core/dist/runtime-v2/internalization/internalization-state-machine.d.ts.map +0 -1
  1599. package/core/dist/runtime-v2/internalization/internalization-state-machine.js.map +0 -1
  1600. package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +0 -1
  1601. package/core/dist/runtime-v2/internalization/internalization-task-guards.js.map +0 -1
  1602. package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts.map +0 -1
  1603. package/core/dist/runtime-v2/internalization/internalization-transition-decision.js.map +0 -1
  1604. package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts.map +0 -1
  1605. package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js.map +0 -1
  1606. package/core/dist/runtime-v2/internalization/lifecycle-datasource.d.ts.map +0 -1
  1607. package/core/dist/runtime-v2/internalization/lifecycle-datasource.js.map +0 -1
  1608. package/core/dist/runtime-v2/internalization/lifecycle-metrics.d.ts.map +0 -1
  1609. package/core/dist/runtime-v2/internalization/lifecycle-metrics.js.map +0 -1
  1610. package/core/dist/runtime-v2/internalization/lifecycle-read-model.d.ts.map +0 -1
  1611. package/core/dist/runtime-v2/internalization/lifecycle-read-model.js.map +0 -1
  1612. package/core/dist/runtime-v2/internalization/lifecycle-types.d.ts.map +0 -1
  1613. package/core/dist/runtime-v2/internalization/lifecycle-types.js.map +0 -1
  1614. package/core/dist/runtime-v2/internalization/owner-decision-review.d.ts.map +0 -1
  1615. package/core/dist/runtime-v2/internalization/owner-decision-review.js.map +0 -1
  1616. package/core/dist/runtime-v2/internalization/owner-evidence-recovery.d.ts.map +0 -1
  1617. package/core/dist/runtime-v2/internalization/owner-evidence-recovery.js.map +0 -1
  1618. package/core/dist/runtime-v2/internalization/owner-resolution-service.d.ts.map +0 -1
  1619. package/core/dist/runtime-v2/internalization/owner-resolution-service.js.map +0 -1
  1620. package/core/dist/runtime-v2/internalization/owner-retry.d.ts.map +0 -1
  1621. package/core/dist/runtime-v2/internalization/owner-retry.js.map +0 -1
  1622. package/core/dist/runtime-v2/internalization/owner-review.d.ts.map +0 -1
  1623. package/core/dist/runtime-v2/internalization/owner-review.js.map +0 -1
  1624. package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +0 -1
  1625. package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +0 -1
  1626. package/core/dist/runtime-v2/internalization/philosopher-output.d.ts.map +0 -1
  1627. package/core/dist/runtime-v2/internalization/philosopher-output.js.map +0 -1
  1628. package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts.map +0 -1
  1629. package/core/dist/runtime-v2/internalization/philosopher-prompt-builder.js.map +0 -1
  1630. package/core/dist/runtime-v2/internalization/philosopher-runner.d.ts.map +0 -1
  1631. package/core/dist/runtime-v2/internalization/philosopher-runner.js.map +0 -1
  1632. package/core/dist/runtime-v2/internalization/pi-artifact-store.d.ts.map +0 -1
  1633. package/core/dist/runtime-v2/internalization/pi-artifact-store.js.map +0 -1
  1634. package/core/dist/runtime-v2/internalization/pi-artifact.d.ts.map +0 -1
  1635. package/core/dist/runtime-v2/internalization/pi-artifact.js.map +0 -1
  1636. package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +0 -1
  1637. package/core/dist/runtime-v2/internalization/pitask-metadata.js +0 -1030
  1638. package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +0 -1
  1639. package/core/dist/runtime-v2/internalization/prompt-serializer.d.ts.map +0 -1
  1640. package/core/dist/runtime-v2/internalization/prompt-serializer.js.map +0 -1
  1641. package/core/dist/runtime-v2/internalization/queue-actionability.d.ts.map +0 -1
  1642. package/core/dist/runtime-v2/internalization/queue-actionability.js.map +0 -1
  1643. package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts.map +0 -1
  1644. package/core/dist/runtime-v2/internalization/refiner-rulehost-gate.js.map +0 -1
  1645. package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +0 -1
  1646. package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +0 -1
  1647. package/core/dist/runtime-v2/internalization/repair-replay-resolver.d.ts.map +0 -1
  1648. package/core/dist/runtime-v2/internalization/repair-replay-resolver.js.map +0 -1
  1649. package/core/dist/runtime-v2/internalization/revision-reopen.d.ts.map +0 -1
  1650. package/core/dist/runtime-v2/internalization/revision-reopen.js.map +0 -1
  1651. package/core/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts.map +0 -1
  1652. package/core/dist/runtime-v2/internalization/rollout-reviewer-output.js.map +0 -1
  1653. package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts.map +0 -1
  1654. package/core/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js.map +0 -1
  1655. package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +0 -1
  1656. package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +0 -1
  1657. package/core/dist/runtime-v2/internalization/router-context-evidence.d.ts.map +0 -1
  1658. package/core/dist/runtime-v2/internalization/router-context-evidence.js.map +0 -1
  1659. package/core/dist/runtime-v2/internalization/routing-policy.d.ts.map +0 -1
  1660. package/core/dist/runtime-v2/internalization/routing-policy.js.map +0 -1
  1661. package/core/dist/runtime-v2/internalization/rule-activation-contract.d.ts.map +0 -1
  1662. package/core/dist/runtime-v2/internalization/rule-activation-contract.js.map +0 -1
  1663. package/core/dist/runtime-v2/internalization/rule-binding-revision.d.ts.map +0 -1
  1664. package/core/dist/runtime-v2/internalization/rule-binding-revision.js.map +0 -1
  1665. package/core/dist/runtime-v2/internalization/rule-code-validator.d.ts.map +0 -1
  1666. package/core/dist/runtime-v2/internalization/rule-code-validator.js.map +0 -1
  1667. package/core/dist/runtime-v2/internalization/rule-context-v2.d.ts +0 -64
  1668. package/core/dist/runtime-v2/internalization/rule-context-v2.d.ts.map +0 -1
  1669. package/core/dist/runtime-v2/internalization/rule-context-v2.js +0 -285
  1670. package/core/dist/runtime-v2/internalization/rule-context-v2.js.map +0 -1
  1671. package/core/dist/runtime-v2/internalization/rule-host-adapter.d.ts.map +0 -1
  1672. package/core/dist/runtime-v2/internalization/rule-host-adapter.js.map +0 -1
  1673. package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +0 -1
  1674. package/core/dist/runtime-v2/internalization/rule-host-contracts.js.map +0 -1
  1675. package/core/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +0 -1
  1676. package/core/dist/runtime-v2/internalization/rule-host-evaluator.js.map +0 -1
  1677. package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +0 -1
  1678. package/core/dist/runtime-v2/internalization/rule-host-helpers.js.map +0 -1
  1679. package/core/dist/runtime-v2/internalization/rule-host-input-builder.d.ts.map +0 -1
  1680. package/core/dist/runtime-v2/internalization/rule-host-input-builder.js.map +0 -1
  1681. package/core/dist/runtime-v2/internalization/rule-host-validator.d.ts.map +0 -1
  1682. package/core/dist/runtime-v2/internalization/rule-host-validator.js.map +0 -1
  1683. package/core/dist/runtime-v2/internalization/rule-reliability-validation.d.ts.map +0 -1
  1684. package/core/dist/runtime-v2/internalization/rule-reliability-validation.js.map +0 -1
  1685. package/core/dist/runtime-v2/internalization/rule-source-correction.d.ts.map +0 -1
  1686. package/core/dist/runtime-v2/internalization/rule-source-correction.js.map +0 -1
  1687. package/core/dist/runtime-v2/internalization/rulecode-verification-obligations.d.ts.map +0 -1
  1688. package/core/dist/runtime-v2/internalization/rulecode-verification-obligations.js.map +0 -1
  1689. package/core/dist/runtime-v2/internalization/scribe-output.d.ts.map +0 -1
  1690. package/core/dist/runtime-v2/internalization/scribe-output.js.map +0 -1
  1691. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +0 -1
  1692. package/core/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +0 -1
  1693. package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +0 -1
  1694. package/core/dist/runtime-v2/internalization/scribe-runner.js.map +0 -1
  1695. package/core/dist/runtime-v2/internalization/split-diagnostician-runner.d.ts.map +0 -1
  1696. package/core/dist/runtime-v2/internalization/split-diagnostician-runner.js.map +0 -1
  1697. package/core/dist/runtime-v2/internalization/template-generator.d.ts.map +0 -1
  1698. package/core/dist/runtime-v2/internalization/template-generator.js.map +0 -1
  1699. package/core/dist/runtime-v2/internalization/textual-basis-anchor.d.ts.map +0 -1
  1700. package/core/dist/runtime-v2/internalization/textual-basis-anchor.js.map +0 -1
  1701. package/core/dist/runtime-v2/internalization/tool-semantic-baseline.d.ts.map +0 -1
  1702. package/core/dist/runtime-v2/internalization/tool-semantic-baseline.js.map +0 -1
  1703. package/core/dist/runtime-v2/internalization/tool-semantic-registry.d.ts.map +0 -1
  1704. package/core/dist/runtime-v2/internalization/tool-semantic-registry.js.map +0 -1
  1705. package/core/dist/runtime-v2/internalization/v2-adversarial-cases.d.ts.map +0 -1
  1706. package/core/dist/runtime-v2/internalization/v2-adversarial-cases.js.map +0 -1
  1707. package/core/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts.map +0 -1
  1708. package/core/dist/runtime-v2/internalization-chain-integrity-read-model.js.map +0 -1
  1709. package/core/dist/runtime-v2/internalization-integrity-remediation.d.ts.map +0 -1
  1710. package/core/dist/runtime-v2/internalization-integrity-remediation.js.map +0 -1
  1711. package/core/dist/runtime-v2/internalization-queue-read-model.d.ts.map +0 -1
  1712. package/core/dist/runtime-v2/internalization-queue-read-model.js.map +0 -1
  1713. package/core/dist/runtime-v2/intervention-evidence-normalizer.d.ts.map +0 -1
  1714. package/core/dist/runtime-v2/intervention-evidence-normalizer.js.map +0 -1
  1715. package/core/dist/runtime-v2/l1-hard-cap.d.ts.map +0 -1
  1716. package/core/dist/runtime-v2/l1-hard-cap.js.map +0 -1
  1717. package/core/dist/runtime-v2/language-directive.d.ts.map +0 -1
  1718. package/core/dist/runtime-v2/language-directive.js.map +0 -1
  1719. package/core/dist/runtime-v2/learning-lab/actor-action-output.d.ts.map +0 -1
  1720. package/core/dist/runtime-v2/learning-lab/actor-action-output.js.map +0 -1
  1721. package/core/dist/runtime-v2/mainline-contract.d.ts.map +0 -1
  1722. package/core/dist/runtime-v2/mainline-contract.js.map +0 -1
  1723. package/core/dist/runtime-v2/observer/agent-scheduler.d.ts.map +0 -1
  1724. package/core/dist/runtime-v2/observer/agent-scheduler.js.map +0 -1
  1725. package/core/dist/runtime-v2/observer/correction-observer.d.ts.map +0 -1
  1726. package/core/dist/runtime-v2/observer/correction-observer.js.map +0 -1
  1727. package/core/dist/runtime-v2/operator-health-read-model.d.ts.map +0 -1
  1728. package/core/dist/runtime-v2/operator-health-read-model.js +0 -135
  1729. package/core/dist/runtime-v2/operator-health-read-model.js.map +0 -1
  1730. package/core/dist/runtime-v2/owner-decision/owner-decision-view-contract.d.ts.map +0 -1
  1731. package/core/dist/runtime-v2/owner-decision/owner-decision-view-contract.js.map +0 -1
  1732. package/core/dist/runtime-v2/owner-decision/owner-decision-view.d.ts.map +0 -1
  1733. package/core/dist/runtime-v2/owner-decision/owner-decision-view.js.map +0 -1
  1734. package/core/dist/runtime-v2/owner-decision/semantic-selector.d.ts.map +0 -1
  1735. package/core/dist/runtime-v2/owner-decision/semantic-selector.js.map +0 -1
  1736. package/core/dist/runtime-v2/owner-identity.d.ts.map +0 -1
  1737. package/core/dist/runtime-v2/owner-identity.js.map +0 -1
  1738. package/core/dist/runtime-v2/pain-chain-read-model.d.ts.map +0 -1
  1739. package/core/dist/runtime-v2/pain-chain-read-model.js +0 -327
  1740. package/core/dist/runtime-v2/pain-chain-read-model.js.map +0 -1
  1741. package/core/dist/runtime-v2/pain-flood-simulation.d.ts.map +0 -1
  1742. package/core/dist/runtime-v2/pain-flood-simulation.js +0 -152
  1743. package/core/dist/runtime-v2/pain-flood-simulation.js.map +0 -1
  1744. package/core/dist/runtime-v2/pain-ingress-payload.d.ts.map +0 -1
  1745. package/core/dist/runtime-v2/pain-ingress-payload.js.map +0 -1
  1746. package/core/dist/runtime-v2/pain-ingress.d.ts.map +0 -1
  1747. package/core/dist/runtime-v2/pain-ingress.js.map +0 -1
  1748. package/core/dist/runtime-v2/pain-recall-capability.d.ts.map +0 -1
  1749. package/core/dist/runtime-v2/pain-recall-capability.js.map +0 -1
  1750. package/core/dist/runtime-v2/pain-recall-read-model.d.ts.map +0 -1
  1751. package/core/dist/runtime-v2/pain-recall-read-model.js.map +0 -1
  1752. package/core/dist/runtime-v2/pain-recall-snapshot-hooks.d.ts.map +0 -1
  1753. package/core/dist/runtime-v2/pain-recall-snapshot-hooks.js.map +0 -1
  1754. package/core/dist/runtime-v2/pain-signal-bridge.d.ts +0 -389
  1755. package/core/dist/runtime-v2/pain-signal-bridge.d.ts.map +0 -1
  1756. package/core/dist/runtime-v2/pain-signal-bridge.js +0 -1460
  1757. package/core/dist/runtime-v2/pain-signal-bridge.js.map +0 -1
  1758. package/core/dist/runtime-v2/pain-signal-observability.d.ts +0 -36
  1759. package/core/dist/runtime-v2/pain-signal-observability.d.ts.map +0 -1
  1760. package/core/dist/runtime-v2/pain-signal-observability.js.map +0 -1
  1761. package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts +0 -254
  1762. package/core/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +0 -1
  1763. package/core/dist/runtime-v2/pain-signal-runtime-factory.js +0 -780
  1764. package/core/dist/runtime-v2/pain-signal-runtime-factory.js.map +0 -1
  1765. package/core/dist/runtime-v2/pain-to-principle-service.d.ts.map +0 -1
  1766. package/core/dist/runtime-v2/pain-to-principle-service.js.map +0 -1
  1767. package/core/dist/runtime-v2/principle-reuse/reuse-domain.d.ts +0 -89
  1768. package/core/dist/runtime-v2/principle-reuse/reuse-domain.d.ts.map +0 -1
  1769. package/core/dist/runtime-v2/principle-reuse/reuse-domain.js +0 -16
  1770. package/core/dist/runtime-v2/principle-reuse/reuse-domain.js.map +0 -1
  1771. package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-output.d.ts.map +0 -1
  1772. package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-output.js.map +0 -1
  1773. package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-runner.d.ts.map +0 -1
  1774. package/core/dist/runtime-v2/principle-reuse/reuse-evaluation-runner.js.map +0 -1
  1775. package/core/dist/runtime-v2/principle-reuse/reuse-proposal.d.ts.map +0 -1
  1776. package/core/dist/runtime-v2/principle-reuse/reuse-proposal.js.map +0 -1
  1777. package/core/dist/runtime-v2/principle-reuse/reuse-retrieval.d.ts.map +0 -1
  1778. package/core/dist/runtime-v2/principle-reuse/reuse-retrieval.js.map +0 -1
  1779. package/core/dist/runtime-v2/principle-reuse/reuse-shortlist.d.ts.map +0 -1
  1780. package/core/dist/runtime-v2/principle-reuse/reuse-shortlist.js.map +0 -1
  1781. package/core/dist/runtime-v2/principle-tree/ledger-codec.d.ts.map +0 -1
  1782. package/core/dist/runtime-v2/principle-tree/ledger-codec.js.map +0 -1
  1783. package/core/dist/runtime-v2/principle-tree/rule-candidate-binding.d.ts.map +0 -1
  1784. package/core/dist/runtime-v2/principle-tree/rule-candidate-binding.js.map +0 -1
  1785. package/core/dist/runtime-v2/product-telemetry/daily-identity.d.ts.map +0 -1
  1786. package/core/dist/runtime-v2/product-telemetry/daily-identity.js.map +0 -1
  1787. package/core/dist/runtime-v2/product-telemetry/snapshot-contract.d.ts.map +0 -1
  1788. package/core/dist/runtime-v2/product-telemetry/snapshot-contract.js.map +0 -1
  1789. package/core/dist/runtime-v2/proven-channel-baseline.d.ts.map +0 -1
  1790. package/core/dist/runtime-v2/proven-channel-baseline.js +0 -547
  1791. package/core/dist/runtime-v2/proven-channel-baseline.js.map +0 -1
  1792. package/core/dist/runtime-v2/pruning-read-model.d.ts.map +0 -1
  1793. package/core/dist/runtime-v2/pruning-read-model.js.map +0 -1
  1794. package/core/dist/runtime-v2/receipt-coverage.d.ts.map +0 -1
  1795. package/core/dist/runtime-v2/receipt-coverage.js.map +0 -1
  1796. package/core/dist/runtime-v2/recovery-actions-log.d.ts.map +0 -1
  1797. package/core/dist/runtime-v2/recovery-actions-log.js.map +0 -1
  1798. package/core/dist/runtime-v2/recovery-sweep-service.d.ts.map +0 -1
  1799. package/core/dist/runtime-v2/recovery-sweep-service.js.map +0 -1
  1800. package/core/dist/runtime-v2/remediation-contract.d.ts.map +0 -1
  1801. package/core/dist/runtime-v2/remediation-contract.js.map +0 -1
  1802. package/core/dist/runtime-v2/risk/index.d.ts.map +0 -1
  1803. package/core/dist/runtime-v2/risk/index.js.map +0 -1
  1804. package/core/dist/runtime-v2/risk/risk-calculator-policy.d.ts.map +0 -1
  1805. package/core/dist/runtime-v2/risk/risk-calculator-policy.js.map +0 -1
  1806. package/core/dist/runtime-v2/runner/base-peer-runner.d.ts.map +0 -1
  1807. package/core/dist/runtime-v2/runner/base-peer-runner.js.map +0 -1
  1808. package/core/dist/runtime-v2/runner/default-validator.d.ts.map +0 -1
  1809. package/core/dist/runtime-v2/runner/default-validator.js.map +0 -1
  1810. package/core/dist/runtime-v2/runner/diagnostician-validator.d.ts.map +0 -1
  1811. package/core/dist/runtime-v2/runner/diagnostician-validator.js.map +0 -1
  1812. package/core/dist/runtime-v2/runner/peer-runner-types.d.ts.map +0 -1
  1813. package/core/dist/runtime-v2/runner/peer-runner-types.js.map +0 -1
  1814. package/core/dist/runtime-v2/runner/runner-phase.d.ts.map +0 -1
  1815. package/core/dist/runtime-v2/runner/runner-phase.js.map +0 -1
  1816. package/core/dist/runtime-v2/runner/runner-result.d.ts.map +0 -1
  1817. package/core/dist/runtime-v2/runner/runner-result.js.map +0 -1
  1818. package/core/dist/runtime-v2/runtime-protocol.d.ts.map +0 -1
  1819. package/core/dist/runtime-v2/runtime-protocol.js.map +0 -1
  1820. package/core/dist/runtime-v2/runtime-state-handle.d.ts.map +0 -1
  1821. package/core/dist/runtime-v2/runtime-state-handle.js.map +0 -1
  1822. package/core/dist/runtime-v2/schema-conformance-read-model.d.ts.map +0 -1
  1823. package/core/dist/runtime-v2/schema-conformance-read-model.js.map +0 -1
  1824. package/core/dist/runtime-v2/schema-version.d.ts +0 -20
  1825. package/core/dist/runtime-v2/schema-version.d.ts.map +0 -1
  1826. package/core/dist/runtime-v2/schema-version.js +0 -20
  1827. package/core/dist/runtime-v2/schema-version.js.map +0 -1
  1828. package/core/dist/runtime-v2/signal-collector/confidence-gate.d.ts.map +0 -1
  1829. package/core/dist/runtime-v2/signal-collector/confidence-gate.js.map +0 -1
  1830. package/core/dist/runtime-v2/signal-collector/index.d.ts.map +0 -1
  1831. package/core/dist/runtime-v2/signal-collector/index.js.map +0 -1
  1832. package/core/dist/runtime-v2/signal-collector/keyword-stage.d.ts.map +0 -1
  1833. package/core/dist/runtime-v2/signal-collector/keyword-stage.js.map +0 -1
  1834. package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts.map +0 -1
  1835. package/core/dist/runtime-v2/signal-collector/llm-stage.js.map +0 -1
  1836. package/core/dist/runtime-v2/signal-collector/signal-collector.d.ts.map +0 -1
  1837. package/core/dist/runtime-v2/signal-collector/signal-collector.js.map +0 -1
  1838. package/core/dist/runtime-v2/signal-collector/types.d.ts.map +0 -1
  1839. package/core/dist/runtime-v2/signal-collector/types.js.map +0 -1
  1840. package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.d.ts.map +0 -1
  1841. package/core/dist/runtime-v2/stalled-diagnostician-task-read-model.js.map +0 -1
  1842. package/core/dist/runtime-v2/store/artifact/artifact-store.d.ts.map +0 -1
  1843. package/core/dist/runtime-v2/store/artifact/artifact-store.js.map +0 -1
  1844. package/core/dist/runtime-v2/store/artifact/index.d.ts.map +0 -1
  1845. package/core/dist/runtime-v2/store/artifact/index.js.map +0 -1
  1846. package/core/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts.map +0 -1
  1847. package/core/dist/runtime-v2/store/artifact/memory-artifact-store.js.map +0 -1
  1848. package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts.map +0 -1
  1849. package/core/dist/runtime-v2/store/artifact/sqlite-artifact-store.js.map +0 -1
  1850. package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts.map +0 -1
  1851. package/core/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js.map +0 -1
  1852. package/core/dist/runtime-v2/store/candidate/admission-document.d.ts.map +0 -1
  1853. package/core/dist/runtime-v2/store/candidate/admission-document.js.map +0 -1
  1854. package/core/dist/runtime-v2/store/candidate/candidate-store.d.ts.map +0 -1
  1855. package/core/dist/runtime-v2/store/candidate/candidate-store.js.map +0 -1
  1856. package/core/dist/runtime-v2/store/candidate/index.d.ts.map +0 -1
  1857. package/core/dist/runtime-v2/store/candidate/index.js.map +0 -1
  1858. package/core/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts.map +0 -1
  1859. package/core/dist/runtime-v2/store/candidate/memory-candidate-store.js.map +0 -1
  1860. package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts.map +0 -1
  1861. package/core/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js.map +0 -1
  1862. package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts.map +0 -1
  1863. package/core/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +0 -1
  1864. package/core/dist/runtime-v2/store/commit/commit-store.d.ts.map +0 -1
  1865. package/core/dist/runtime-v2/store/commit/commit-store.js.map +0 -1
  1866. package/core/dist/runtime-v2/store/commit/diagnostician-committer.d.ts.map +0 -1
  1867. package/core/dist/runtime-v2/store/commit/diagnostician-committer.js.map +0 -1
  1868. package/core/dist/runtime-v2/store/commit/index.d.ts.map +0 -1
  1869. package/core/dist/runtime-v2/store/commit/index.js.map +0 -1
  1870. package/core/dist/runtime-v2/store/commit/memory-commit-store.d.ts.map +0 -1
  1871. package/core/dist/runtime-v2/store/commit/memory-commit-store.js.map +0 -1
  1872. package/core/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts.map +0 -1
  1873. package/core/dist/runtime-v2/store/commit/sqlite-commit-store.js.map +0 -1
  1874. package/core/dist/runtime-v2/store/context/context-assembler.d.ts.map +0 -1
  1875. package/core/dist/runtime-v2/store/context/context-assembler.js.map +0 -1
  1876. package/core/dist/runtime-v2/store/context/index.d.ts.map +0 -1
  1877. package/core/dist/runtime-v2/store/context/index.js.map +0 -1
  1878. package/core/dist/runtime-v2/store/context/resilient-context-assembler.d.ts.map +0 -1
  1879. package/core/dist/runtime-v2/store/context/resilient-context-assembler.js.map +0 -1
  1880. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +0 -1
  1881. package/core/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +0 -1
  1882. package/core/dist/runtime-v2/store/context/trajectory-turn-reader.d.ts.map +0 -1
  1883. package/core/dist/runtime-v2/store/context/trajectory-turn-reader.js.map +0 -1
  1884. package/core/dist/runtime-v2/store/design-gate/sqlite-design-gate-store.d.ts.map +0 -1
  1885. package/core/dist/runtime-v2/store/design-gate/sqlite-design-gate-store.js.map +0 -1
  1886. package/core/dist/runtime-v2/store/event-emitter.d.ts.map +0 -1
  1887. package/core/dist/runtime-v2/store/event-emitter.js.map +0 -1
  1888. package/core/dist/runtime-v2/store/history/history-query.d.ts.map +0 -1
  1889. package/core/dist/runtime-v2/store/history/history-query.js.map +0 -1
  1890. package/core/dist/runtime-v2/store/history/index.d.ts.map +0 -1
  1891. package/core/dist/runtime-v2/store/history/index.js.map +0 -1
  1892. package/core/dist/runtime-v2/store/history/resilient-history-query.d.ts.map +0 -1
  1893. package/core/dist/runtime-v2/store/history/resilient-history-query.js.map +0 -1
  1894. package/core/dist/runtime-v2/store/history/sqlite-history-query.d.ts.map +0 -1
  1895. package/core/dist/runtime-v2/store/history/sqlite-history-query.js.map +0 -1
  1896. package/core/dist/runtime-v2/store/intent/index.d.ts.map +0 -1
  1897. package/core/dist/runtime-v2/store/intent/index.js.map +0 -1
  1898. package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.d.ts.map +0 -1
  1899. package/core/dist/runtime-v2/store/intent/sqlite-intent-decision-store.js.map +0 -1
  1900. package/core/dist/runtime-v2/store/intent/sqlite-intent-doc-version-store.d.ts.map +0 -1
  1901. package/core/dist/runtime-v2/store/intent/sqlite-intent-doc-version-store.js.map +0 -1
  1902. package/core/dist/runtime-v2/store/intervention-evidence-schema.d.ts.map +0 -1
  1903. package/core/dist/runtime-v2/store/intervention-evidence-schema.js.map +0 -1
  1904. package/core/dist/runtime-v2/store/lifecycle/index.d.ts.map +0 -1
  1905. package/core/dist/runtime-v2/store/lifecycle/index.js.map +0 -1
  1906. package/core/dist/runtime-v2/store/lifecycle/lease-manager.d.ts.map +0 -1
  1907. package/core/dist/runtime-v2/store/lifecycle/lease-manager.js.map +0 -1
  1908. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts.map +0 -1
  1909. package/core/dist/runtime-v2/store/lifecycle/recovery-sweep.js.map +0 -1
  1910. package/core/dist/runtime-v2/store/lifecycle/retry-policy.d.ts.map +0 -1
  1911. package/core/dist/runtime-v2/store/lifecycle/retry-policy.js.map +0 -1
  1912. package/core/dist/runtime-v2/store/pain/index.d.ts.map +0 -1
  1913. package/core/dist/runtime-v2/store/pain/index.js.map +0 -1
  1914. package/core/dist/runtime-v2/store/pain/sqlite-dead-letter-store.d.ts.map +0 -1
  1915. package/core/dist/runtime-v2/store/pain/sqlite-dead-letter-store.js.map +0 -1
  1916. package/core/dist/runtime-v2/store/pain-diagnosis/pain-diagnosis-store.d.ts.map +0 -1
  1917. package/core/dist/runtime-v2/store/pain-diagnosis/pain-diagnosis-store.js.map +0 -1
  1918. package/core/dist/runtime-v2/store/pain-diagnosis/sqlite-pain-diagnosis-store.d.ts.map +0 -1
  1919. package/core/dist/runtime-v2/store/pain-diagnosis/sqlite-pain-diagnosis-store.js.map +0 -1
  1920. package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts.map +0 -1
  1921. package/core/dist/runtime-v2/store/reconciliation-cursor-store.js.map +0 -1
  1922. package/core/dist/runtime-v2/store/run/index.d.ts.map +0 -1
  1923. package/core/dist/runtime-v2/store/run/index.js.map +0 -1
  1924. package/core/dist/runtime-v2/store/run/memory-run-store.d.ts.map +0 -1
  1925. package/core/dist/runtime-v2/store/run/memory-run-store.js.map +0 -1
  1926. package/core/dist/runtime-v2/store/run/run-store.d.ts.map +0 -1
  1927. package/core/dist/runtime-v2/store/run/run-store.js.map +0 -1
  1928. package/core/dist/runtime-v2/store/run/sqlite-run-store.d.ts.map +0 -1
  1929. package/core/dist/runtime-v2/store/run/sqlite-run-store.js.map +0 -1
  1930. package/core/dist/runtime-v2/store/runtime-state-manager.d.ts.map +0 -1
  1931. package/core/dist/runtime-v2/store/runtime-state-manager.js.map +0 -1
  1932. package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +0 -1
  1933. package/core/dist/runtime-v2/store/sqlite-connection.js.map +0 -1
  1934. package/core/dist/runtime-v2/store/sqlite-intervention-evidence-store.d.ts.map +0 -1
  1935. package/core/dist/runtime-v2/store/sqlite-intervention-evidence-store.js.map +0 -1
  1936. package/core/dist/runtime-v2/store/task/index.d.ts.map +0 -1
  1937. package/core/dist/runtime-v2/store/task/index.js.map +0 -1
  1938. package/core/dist/runtime-v2/store/task/memory-task-store.d.ts.map +0 -1
  1939. package/core/dist/runtime-v2/store/task/memory-task-store.js.map +0 -1
  1940. package/core/dist/runtime-v2/store/task/sqlite-approved-rule-revision.d.ts.map +0 -1
  1941. package/core/dist/runtime-v2/store/task/sqlite-approved-rule-revision.js.map +0 -1
  1942. package/core/dist/runtime-v2/store/task/sqlite-family-reopen.d.ts.map +0 -1
  1943. package/core/dist/runtime-v2/store/task/sqlite-family-reopen.js.map +0 -1
  1944. package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +0 -1
  1945. package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +0 -1
  1946. package/core/dist/runtime-v2/store/task/task-store.d.ts.map +0 -1
  1947. package/core/dist/runtime-v2/store/task/task-store.js.map +0 -1
  1948. package/core/dist/runtime-v2/store/task/task-types.d.ts.map +0 -1
  1949. package/core/dist/runtime-v2/store/task/task-types.js.map +0 -1
  1950. package/core/dist/runtime-v2/store/trajectory/index.d.ts.map +0 -1
  1951. package/core/dist/runtime-v2/store/trajectory/index.js.map +0 -1
  1952. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts.map +0 -1
  1953. package/core/dist/runtime-v2/store/trajectory/source-trace-locator.js.map +0 -1
  1954. package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts.map +0 -1
  1955. package/core/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js.map +0 -1
  1956. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts.map +0 -1
  1957. package/core/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js.map +0 -1
  1958. package/core/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts.map +0 -1
  1959. package/core/dist/runtime-v2/store/trajectory/trajectory-locator.js.map +0 -1
  1960. package/core/dist/runtime-v2/store/workspace-leak-guard.d.ts.map +0 -1
  1961. package/core/dist/runtime-v2/store/workspace-leak-guard.js.map +0 -1
  1962. package/core/dist/runtime-v2/story-a-demo.d.ts +0 -77
  1963. package/core/dist/runtime-v2/story-a-demo.d.ts.map +0 -1
  1964. package/core/dist/runtime-v2/story-a-demo.js.map +0 -1
  1965. package/core/dist/runtime-v2/synthetic-baseline.d.ts.map +0 -1
  1966. package/core/dist/runtime-v2/synthetic-baseline.js +0 -116
  1967. package/core/dist/runtime-v2/synthetic-baseline.js.map +0 -1
  1968. package/core/dist/runtime-v2/system-prompt-merge.d.ts.map +0 -1
  1969. package/core/dist/runtime-v2/system-prompt-merge.js.map +0 -1
  1970. package/core/dist/runtime-v2/task-status.d.ts.map +0 -1
  1971. package/core/dist/runtime-v2/task-status.js.map +0 -1
  1972. package/core/dist/runtime-v2/tools/agent-tool-contract.d.ts.map +0 -1
  1973. package/core/dist/runtime-v2/tools/agent-tool-contract.js.map +0 -1
  1974. package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts.map +0 -1
  1975. package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js.map +0 -1
  1976. package/core/dist/runtime-v2/tools/artificer-output-typebox.d.ts.map +0 -1
  1977. package/core/dist/runtime-v2/tools/artificer-output-typebox.js.map +0 -1
  1978. package/core/dist/runtime-v2/tools/dreamer-output-typebox.d.ts.map +0 -1
  1979. package/core/dist/runtime-v2/tools/dreamer-output-typebox.js.map +0 -1
  1980. package/core/dist/runtime-v2/trajectory-schema.d.ts.map +0 -1
  1981. package/core/dist/runtime-v2/trajectory-schema.js.map +0 -1
  1982. package/core/dist/runtime-v2/types/artifact-lineage.d.ts.map +0 -1
  1983. package/core/dist/runtime-v2/types/artifact-lineage.js.map +0 -1
  1984. package/core/dist/runtime-v2/types/event-payload.d.ts.map +0 -1
  1985. package/core/dist/runtime-v2/types/event-payload.js.map +0 -1
  1986. package/core/dist/runtime-v2/types/event-types.d.ts +0 -940
  1987. package/core/dist/runtime-v2/types/event-types.d.ts.map +0 -1
  1988. package/core/dist/runtime-v2/types/event-types.js +0 -520
  1989. package/core/dist/runtime-v2/types/event-types.js.map +0 -1
  1990. package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts +0 -282
  1991. package/core/dist/runtime-v2/types/evidence-chain-contract.d.ts.map +0 -1
  1992. package/core/dist/runtime-v2/types/evidence-chain-contract.js +0 -1301
  1993. package/core/dist/runtime-v2/types/evidence-chain-contract.js.map +0 -1
  1994. package/core/dist/runtime-v2/types/hygiene-types.d.ts.map +0 -1
  1995. package/core/dist/runtime-v2/types/hygiene-types.js.map +0 -1
  1996. package/core/dist/runtime-v2/types/index.d.ts +0 -32
  1997. package/core/dist/runtime-v2/types/index.d.ts.map +0 -1
  1998. package/core/dist/runtime-v2/types/index.js +0 -21
  1999. package/core/dist/runtime-v2/types/index.js.map +0 -1
  2000. package/core/dist/runtime-v2/types/intervention-evidence-contract.d.ts.map +0 -1
  2001. package/core/dist/runtime-v2/types/intervention-evidence-contract.js.map +0 -1
  2002. package/core/dist/runtime-v2/types/ledger-store.d.ts.map +0 -1
  2003. package/core/dist/runtime-v2/types/ledger-store.js.map +0 -1
  2004. package/core/dist/runtime-v2/types/pain-signal.d.ts.map +0 -1
  2005. package/core/dist/runtime-v2/types/pain-signal.js.map +0 -1
  2006. package/core/dist/runtime-v2/types/pd-task-types.d.ts.map +0 -1
  2007. package/core/dist/runtime-v2/types/pd-task-types.js.map +0 -1
  2008. package/core/dist/runtime-v2/types/principle-dependency.d.ts.map +0 -1
  2009. package/core/dist/runtime-v2/types/principle-dependency.js.map +0 -1
  2010. package/core/dist/runtime-v2/types/principle-enums.d.ts.map +0 -1
  2011. package/core/dist/runtime-v2/types/principle-enums.js.map +0 -1
  2012. package/core/dist/runtime-v2/types/principle-lifecycle-event.d.ts.map +0 -1
  2013. package/core/dist/runtime-v2/types/principle-lifecycle-event.js.map +0 -1
  2014. package/core/dist/runtime-v2/types/principle-schema.d.ts.map +0 -1
  2015. package/core/dist/runtime-v2/types/principle-schema.js.map +0 -1
  2016. package/core/dist/runtime-v2/types/principle-tree-store.d.ts.map +0 -1
  2017. package/core/dist/runtime-v2/types/principle-tree-store.js.map +0 -1
  2018. package/core/dist/runtime-v2/types/principle-value-metrics.d.ts.map +0 -1
  2019. package/core/dist/runtime-v2/types/principle-value-metrics.js.map +0 -1
  2020. package/core/dist/runtime-v2/types/replay-types.d.ts.map +0 -1
  2021. package/core/dist/runtime-v2/types/replay-types.js.map +0 -1
  2022. package/core/dist/runtime-v2/types/rule-candidate-binding.d.ts.map +0 -1
  2023. package/core/dist/runtime-v2/types/rule-candidate-binding.js.map +0 -1
  2024. package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +0 -30
  2025. /package/core/dist/{runtime-v2 → runtime}/activation/activation-control-types.d.ts +0 -0
  2026. /package/core/dist/{runtime-v2 → runtime}/activation/activation-control-types.js +0 -0
  2027. /package/core/dist/{runtime-v2 → runtime}/activation/activation-dispatcher.d.ts +0 -0
  2028. /package/core/dist/{runtime-v2 → runtime}/activation/activation-dispatcher.js +0 -0
  2029. /package/core/dist/{runtime-v2 → runtime}/activation/activation-types.d.ts +0 -0
  2030. /package/core/dist/{runtime-v2 → runtime}/activation/activation-types.js +0 -0
  2031. /package/core/dist/{runtime-v2 → runtime}/activation/adaptive-delivery-record.d.ts +0 -0
  2032. /package/core/dist/{runtime-v2 → runtime}/activation/adaptive-delivery-record.js +0 -0
  2033. /package/core/dist/{runtime-v2 → runtime}/activation/approval-completion-service.d.ts +0 -0
  2034. /package/core/dist/{runtime-v2 → runtime}/activation/approval-completion-service.js +0 -0
  2035. /package/core/dist/{runtime-v2 → runtime}/activation/approval-queue.d.ts +0 -0
  2036. /package/core/dist/{runtime-v2 → runtime}/activation/approval-queue.js +0 -0
  2037. /package/core/dist/{runtime-v2 → runtime}/activation/approval-review-guard.d.ts +0 -0
  2038. /package/core/dist/{runtime-v2 → runtime}/activation/approval-review-guard.js +0 -0
  2039. /package/core/dist/{runtime-v2 → runtime}/activation/ledger-identity.d.ts +0 -0
  2040. /package/core/dist/{runtime-v2 → runtime}/activation/ledger-identity.js +0 -0
  2041. /package/core/dist/{runtime-v2 → runtime}/activation/low-risk-writers.d.ts +0 -0
  2042. /package/core/dist/{runtime-v2 → runtime}/activation/low-risk-writers.js +0 -0
  2043. /package/core/dist/{runtime-v2 → runtime}/activation/memory-activation-state-store.d.ts +0 -0
  2044. /package/core/dist/{runtime-v2 → runtime}/activation/memory-activation-state-store.js +0 -0
  2045. /package/core/dist/{runtime-v2 → runtime}/activation/memory-approval-store.d.ts +0 -0
  2046. /package/core/dist/{runtime-v2 → runtime}/activation/memory-approval-store.js +0 -0
  2047. /package/core/dist/{runtime-v2 → runtime}/activation/openclaw-promotion-checks.d.ts +0 -0
  2048. /package/core/dist/{runtime-v2 → runtime}/activation/openclaw-promotion-checks.js +0 -0
  2049. /package/core/dist/{runtime-v2 → runtime}/activation/production-gate-deps.d.ts +0 -0
  2050. /package/core/dist/{runtime-v2 → runtime}/activation/production-gate-deps.js +0 -0
  2051. /package/core/dist/{runtime-v2 → runtime}/activation/promotion-evidence-snapshot.d.ts +0 -0
  2052. /package/core/dist/{runtime-v2 → runtime}/activation/promotion-evidence-snapshot.js +0 -0
  2053. /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-evaluator.d.ts +0 -0
  2054. /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-evaluator.js +0 -0
  2055. /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-reader.d.ts +0 -0
  2056. /package/core/dist/{runtime-v2 → runtime}/activation/promotion-readiness-reader.js +0 -0
  2057. /package/core/dist/{runtime-v2 → runtime}/activation/prompt-budget-policy.d.ts +0 -0
  2058. /package/core/dist/{runtime-v2 → runtime}/activation/prompt-replacement.d.ts +0 -0
  2059. /package/core/dist/{runtime-v2 → runtime}/activation/prompt-replacement.js +0 -0
  2060. /package/core/dist/{runtime-v2 → runtime}/activation/recovery-composition.d.ts +0 -0
  2061. /package/core/dist/{runtime-v2 → runtime}/activation/recovery-composition.js +0 -0
  2062. /package/core/dist/{runtime-v2 → runtime}/activation/recovery-control-surfaces.d.ts +0 -0
  2063. /package/core/dist/{runtime-v2 → runtime}/activation/recovery-control-surfaces.js +0 -0
  2064. /package/core/dist/{runtime-v2 → runtime}/activation/rule-replacement.d.ts +0 -0
  2065. /package/core/dist/{runtime-v2 → runtime}/activation/rule-replacement.js +0 -0
  2066. /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-owner-decision-service.d.ts +0 -0
  2067. /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-owner-decision-service.js +0 -0
  2068. /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-safety-circuit-breaker.d.ts +0 -0
  2069. /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-safety-circuit-breaker.js +0 -0
  2070. /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-shadow-summary.d.ts +0 -0
  2071. /package/core/dist/{runtime-v2 → runtime}/activation/rulecode-shadow-summary.js +0 -0
  2072. /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-safety-store.d.ts +0 -0
  2073. /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-safety-store.js +0 -0
  2074. /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-state-store.d.ts +0 -0
  2075. /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-activation-state-store.js +0 -0
  2076. /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-approval-store.d.ts +0 -0
  2077. /package/core/dist/{runtime-v2 → runtime}/activation/sqlite-approval-store.js +0 -0
  2078. /package/core/dist/{runtime-v2 → runtime}/activation/writers/index.d.ts +0 -0
  2079. /package/core/dist/{runtime-v2 → runtime}/activation/writers/index.js +0 -0
  2080. /package/core/dist/{runtime-v2 → runtime}/activation/writers/rule-host-writer.d.ts +0 -0
  2081. /package/core/dist/{runtime-v2 → runtime}/activation/writers/rule-host-writer.js +0 -0
  2082. /package/core/dist/{runtime-v2 → runtime}/activation-compatibility-read-model.d.ts +0 -0
  2083. /package/core/dist/{runtime-v2 → runtime}/activation-compatibility-read-model.js +0 -0
  2084. /package/core/dist/{runtime-v2 → runtime}/adapter/artificer-l2-adapter.d.ts +0 -0
  2085. /package/core/dist/{runtime-v2 → runtime}/adapter/artificer-l2-adapter.js +0 -0
  2086. /package/core/dist/{runtime-v2 → runtime}/adapter/index.d.ts +0 -0
  2087. /package/core/dist/{runtime-v2 → runtime}/adapter/index.js +0 -0
  2088. /package/core/dist/{runtime-v2 → runtime}/adapter/json-extractor.d.ts +0 -0
  2089. /package/core/dist/{runtime-v2 → runtime}/adapter/json-extractor.js +0 -0
  2090. /package/core/dist/{runtime-v2 → runtime}/adapter/l2-agent-loop-adapter.d.ts +0 -0
  2091. /package/core/dist/{runtime-v2 → runtime}/adapter/l2-agent-loop-adapter.js +0 -0
  2092. /package/core/dist/{runtime-v2 → runtime}/adapter/output-repair-contract.d.ts +0 -0
  2093. /package/core/dist/{runtime-v2 → runtime}/adapter/output-schema-registry.d.ts +0 -0
  2094. /package/core/dist/{runtime-v2 → runtime}/adapter/output-schema-registry.js +0 -0
  2095. /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-catalog.d.ts +0 -0
  2096. /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-catalog.js +0 -0
  2097. /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-http-transport.d.ts +0 -0
  2098. /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-http-transport.js +0 -0
  2099. /package/core/dist/{runtime-v2 → runtime}/adapter/pi-ai-runtime-adapter.d.ts +0 -0
  2100. /package/core/dist/{runtime-v2 → runtime}/adapter/schema-json-converter.d.ts +0 -0
  2101. /package/core/dist/{runtime-v2 → runtime}/adapter/schema-json-converter.js +0 -0
  2102. /package/core/dist/{runtime-v2 → runtime}/adapter/schema-prompt-adapter.d.ts +0 -0
  2103. /package/core/dist/{runtime-v2 → runtime}/adapter/schema-prompt-adapter.js +0 -0
  2104. /package/core/dist/{runtime-v2 → runtime}/adapter/split-pipeline-fixtures.d.ts +0 -0
  2105. /package/core/dist/{runtime-v2 → runtime}/adapter/split-pipeline-fixtures.js +0 -0
  2106. /package/core/dist/{runtime-v2 → runtime}/adapter/structured-output-repair.d.ts +0 -0
  2107. /package/core/dist/{runtime-v2 → runtime}/adapter/test-double-runtime-adapter.d.ts +0 -0
  2108. /package/core/dist/{runtime-v2 → runtime}/adapter/test-double-runtime-adapter.js +0 -0
  2109. /package/core/dist/{runtime-v2 → runtime}/adapter/tools/diagnostician-tool.d.ts +0 -0
  2110. /package/core/dist/{runtime-v2 → runtime}/adapter/tools/diagnostician-tool.js +0 -0
  2111. /package/core/dist/{runtime-v2 → runtime}/admission-gate.d.ts +0 -0
  2112. /package/core/dist/{runtime-v2 → runtime}/admission-gate.js +0 -0
  2113. /package/core/dist/{runtime-v2 → runtime}/adversarial-loop.d.ts +0 -0
  2114. /package/core/dist/{runtime-v2 → runtime}/adversarial-loop.js +0 -0
  2115. /package/core/dist/{runtime-v2 → runtime}/agent-spec.d.ts +0 -0
  2116. /package/core/dist/{runtime-v2 → runtime}/agent-spec.js +0 -0
  2117. /package/core/dist/{runtime-v2 → runtime}/bridge-result-shaper.d.ts +0 -0
  2118. /package/core/dist/{runtime-v2 → runtime}/bridge-result-shaper.js +0 -0
  2119. /package/core/dist/{runtime-v2 → runtime}/build-l2-principle-reader.d.ts +0 -0
  2120. /package/core/dist/{runtime-v2 → runtime}/build-l2-principle-reader.js +0 -0
  2121. /package/core/dist/{runtime-v2 → runtime}/candidate-audit.d.ts +0 -0
  2122. /package/core/dist/{runtime-v2 → runtime}/candidate-audit.js +0 -0
  2123. /package/core/dist/{runtime-v2 → runtime}/candidate-intake-service.d.ts +0 -0
  2124. /package/core/dist/{runtime-v2 → runtime}/candidate-intake-service.js +0 -0
  2125. /package/core/dist/{runtime-v2 → runtime}/candidate-intake.d.ts +0 -0
  2126. /package/core/dist/{runtime-v2 → runtime}/candidate-intake.js +0 -0
  2127. /package/core/dist/{runtime-v2 → runtime}/cli/diagnose.d.ts +0 -0
  2128. /package/core/dist/{runtime-v2 → runtime}/cli/diagnose.js +0 -0
  2129. /package/core/dist/{runtime-v2 → runtime}/cli/index.d.ts +0 -0
  2130. /package/core/dist/{runtime-v2 → runtime}/cli/index.js +0 -0
  2131. /package/core/dist/{runtime-v2 → runtime}/cli/probe.d.ts +0 -0
  2132. /package/core/dist/{runtime-v2 → runtime}/cli/probe.js +0 -0
  2133. /package/core/dist/{runtime-v2 → runtime}/config/index.d.ts +0 -0
  2134. /package/core/dist/{runtime-v2 → runtime}/config/index.js +0 -0
  2135. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-agent-binding.d.ts +0 -0
  2136. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-agent-binding.js +0 -0
  2137. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-defaults.d.ts +0 -0
  2138. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-defaults.js +0 -0
  2139. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-effective.d.ts +0 -0
  2140. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-effective.js +0 -0
  2141. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-feature-flags.d.ts +0 -0
  2142. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-feature-flags.js +0 -0
  2143. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-redaction.d.ts +0 -0
  2144. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-types.d.ts +0 -0
  2145. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-types.js +0 -0
  2146. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-validate.d.ts +0 -0
  2147. /package/core/dist/{runtime-v2 → runtime}/config/pd-config-validate.js +0 -0
  2148. /package/core/dist/{runtime-v2 → runtime}/config/pd-profile-constants.d.ts +0 -0
  2149. /package/core/dist/{runtime-v2 → runtime}/config/pd-profile-constants.js +0 -0
  2150. /package/core/dist/{runtime-v2 → runtime}/config/pd-validate-profile.d.ts +0 -0
  2151. /package/core/dist/{runtime-v2 → runtime}/config/pd-validate-profile.js +0 -0
  2152. /package/core/dist/{runtime-v2 → runtime}/context-payload.d.ts +0 -0
  2153. /package/core/dist/{runtime-v2 → runtime}/context-payload.js +0 -0
  2154. /package/core/dist/{runtime-v2 → runtime}/control-plane-triage.d.ts +0 -0
  2155. /package/core/dist/{runtime-v2 → runtime}/control-plane-triage.js +0 -0
  2156. /package/core/dist/{runtime-v2 → runtime}/core-principles/core-axiom-block.d.ts +0 -0
  2157. /package/core/dist/{runtime-v2 → runtime}/core-principles/core-axiom-block.js +0 -0
  2158. /package/core/dist/{runtime-v2 → runtime}/core-principles/core-principle-registry.d.ts +0 -0
  2159. /package/core/dist/{runtime-v2 → runtime}/core-principles/core-principle-registry.js +0 -0
  2160. /package/core/dist/{runtime-v2 → runtime}/core-principles/index.d.ts +0 -0
  2161. /package/core/dist/{runtime-v2 → runtime}/core-principles/index.js +0 -0
  2162. /package/core/dist/{runtime-v2 → runtime}/core-principles/strip-fabricated-ids.d.ts +0 -0
  2163. /package/core/dist/{runtime-v2 → runtime}/core-principles/strip-fabricated-ids.js +0 -0
  2164. /package/core/dist/{runtime-v2 → runtime}/correction/correction-types.d.ts +0 -0
  2165. /package/core/dist/{runtime-v2 → runtime}/correction/correction-types.js +0 -0
  2166. /package/core/dist/{runtime-v2 → runtime}/correction/index.d.ts +0 -0
  2167. /package/core/dist/{runtime-v2 → runtime}/correction/index.js +0 -0
  2168. /package/core/dist/{runtime-v2 → runtime}/detection/detection-funnel-policy.d.ts +0 -0
  2169. /package/core/dist/{runtime-v2 → runtime}/detection/detection-funnel-policy.js +0 -0
  2170. /package/core/dist/{runtime-v2 → runtime}/detection/index.d.ts +0 -0
  2171. /package/core/dist/{runtime-v2 → runtime}/detection/index.js +0 -0
  2172. /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-distiller-output.d.ts +0 -0
  2173. /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-distiller-output.js +0 -0
  2174. /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-rootcause-output.d.ts +0 -0
  2175. /package/core/dist/{runtime-v2 → runtime}/diagnostician/diag-rootcause-output.js +0 -0
  2176. /package/core/dist/{runtime-v2 → runtime}/diagnostician/distiller-prompt-builder.d.ts +0 -0
  2177. /package/core/dist/{runtime-v2 → runtime}/diagnostician/distiller-prompt-builder.js +0 -0
  2178. /package/core/dist/{runtime-v2 → runtime}/diagnostician/evidence-ref-binding.d.ts +0 -0
  2179. /package/core/dist/{runtime-v2 → runtime}/diagnostician/evidence-ref-binding.js +0 -0
  2180. /package/core/dist/{runtime-v2 → runtime}/diagnostician/rootcause-prompt-builder.d.ts +0 -0
  2181. /package/core/dist/{runtime-v2 → runtime}/diagnostician/rootcause-prompt-builder.js +0 -0
  2182. /package/core/dist/{runtime-v2 → runtime}/diagnostician/router-prompt-builder.d.ts +0 -0
  2183. /package/core/dist/{runtime-v2 → runtime}/diagnostician/router-prompt-builder.js +0 -0
  2184. /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-shadow.d.ts +0 -0
  2185. /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-shadow.js +0 -0
  2186. /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-validation.d.ts +0 -0
  2187. /package/core/dist/{runtime-v2 → runtime}/diagnostician-association-validation.js +0 -0
  2188. /package/core/dist/{runtime-v2 → runtime}/diagnostician-capability.d.ts +0 -0
  2189. /package/core/dist/{runtime-v2 → runtime}/diagnostician-capability.js +0 -0
  2190. /package/core/dist/{runtime-v2 → runtime}/diagnostician-output.d.ts +0 -0
  2191. /package/core/dist/{runtime-v2 → runtime}/diagnostician-output.js +0 -0
  2192. /package/core/dist/{runtime-v2 → runtime}/diagnostician-prompt-builder.d.ts +0 -0
  2193. /package/core/dist/{runtime-v2 → runtime}/diagnostician-prompt-builder.js +0 -0
  2194. /package/core/dist/{runtime-v2 → runtime}/evidence-guards.d.ts +0 -0
  2195. /package/core/dist/{runtime-v2 → runtime}/evidence-guards.js +0 -0
  2196. /package/core/dist/{runtime-v2 → runtime}/evidence-sanitizer.d.ts +0 -0
  2197. /package/core/dist/{runtime-v2 → runtime}/evidence-sanitizer.js +0 -0
  2198. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/index.d.ts +0 -0
  2199. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/index.js +0 -0
  2200. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/observation-resolver.d.ts +0 -0
  2201. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/observation-resolver.js +0 -0
  2202. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/source-descriptors.d.ts +0 -0
  2203. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/source-descriptors.js +0 -0
  2204. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/triage-policy.d.ts +0 -0
  2205. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/triage-policy.js +0 -0
  2206. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/trigger-controller.d.ts +0 -0
  2207. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/trigger-controller.js +0 -0
  2208. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/types.d.ts +0 -0
  2209. /package/core/dist/{runtime-v2 → runtime}/evidence-triage/types.js +0 -0
  2210. /package/core/dist/{runtime-v2 → runtime}/evolution/evolution-types.d.ts +0 -0
  2211. /package/core/dist/{runtime-v2 → runtime}/evolution/evolution-types.js +0 -0
  2212. /package/core/dist/{runtime-v2 → runtime}/feature-flags/feature-flag-contract.d.ts +0 -0
  2213. /package/core/dist/{runtime-v2 → runtime}/feature-flags/feature-flag-contract.js +0 -0
  2214. /package/core/dist/{runtime-v2 → runtime}/feature-flags/feature-flag-lifecycle.d.ts +0 -0
  2215. /package/core/dist/{runtime-v2 → runtime}/feature-flags/index.d.ts +0 -0
  2216. /package/core/dist/{runtime-v2 → runtime}/feature-flags/index.js +0 -0
  2217. /package/core/dist/{runtime-v2 → runtime}/feature-flags/plugin-surface-registry.d.ts +0 -0
  2218. /package/core/dist/{runtime-v2 → runtime}/feature-flags/plugin-surface-registry.js +0 -0
  2219. /package/core/dist/{runtime-v2 → runtime}/feature-flags/surface-guard-policy.d.ts +0 -0
  2220. /package/core/dist/{runtime-v2 → runtime}/feature-flags/surface-guard-policy.js +0 -0
  2221. /package/core/dist/{runtime-v2 → runtime}/feedback/create-report.d.ts +0 -0
  2222. /package/core/dist/{runtime-v2 → runtime}/feedback/create-report.js +0 -0
  2223. /package/core/dist/{runtime-v2 → runtime}/feedback/feedback-types.d.ts +0 -0
  2224. /package/core/dist/{runtime-v2 → runtime}/feedback/feedback-types.js +0 -0
  2225. /package/core/dist/{runtime-v2 → runtime}/feedback/fingerprint.d.ts +0 -0
  2226. /package/core/dist/{runtime-v2 → runtime}/feedback/fingerprint.js +0 -0
  2227. /package/core/dist/{runtime-v2 → runtime}/feedback/index.d.ts +0 -0
  2228. /package/core/dist/{runtime-v2 → runtime}/feedback/internal-guards.d.ts +0 -0
  2229. /package/core/dist/{runtime-v2 → runtime}/feedback/internal-guards.js +0 -0
  2230. /package/core/dist/{runtime-v2 → runtime}/feedback/pending-agent-draft-store.d.ts +0 -0
  2231. /package/core/dist/{runtime-v2 → runtime}/feedback/pending-agent-draft-store.js +0 -0
  2232. /package/core/dist/{runtime-v2 → runtime}/feedback/privacy-preview.d.ts +0 -0
  2233. /package/core/dist/{runtime-v2 → runtime}/feedback/privacy-preview.js +0 -0
  2234. /package/core/dist/{runtime-v2 → runtime}/feedback/redact-sensitive.d.ts +0 -0
  2235. /package/core/dist/{runtime-v2 → runtime}/feedback/render-github-url.d.ts +0 -0
  2236. /package/core/dist/{runtime-v2 → runtime}/feedback/render-github-url.js +0 -0
  2237. /package/core/dist/{runtime-v2 → runtime}/feedback/render-markdown.d.ts +0 -0
  2238. /package/core/dist/{runtime-v2 → runtime}/feedback/render-markdown.js +0 -0
  2239. /package/core/dist/{runtime-v2 → runtime}/feedback/safe-stringify.d.ts +0 -0
  2240. /package/core/dist/{runtime-v2 → runtime}/feedback/safe-stringify.js +0 -0
  2241. /package/core/dist/{runtime-v2 → runtime}/full-trace-contract.d.ts +0 -0
  2242. /package/core/dist/{runtime-v2 → runtime}/golden-trace-replay-validator.d.ts +0 -0
  2243. /package/core/dist/{runtime-v2 → runtime}/golden-trace-replay-validator.js +0 -0
  2244. /package/core/dist/{runtime-v2 → runtime}/golden-trace.d.ts +0 -0
  2245. /package/core/dist/{runtime-v2 → runtime}/golden-trace.js +0 -0
  2246. /package/core/dist/{runtime-v2 → runtime}/governance-experience-contract.d.ts +0 -0
  2247. /package/core/dist/{runtime-v2 → runtime}/governance-experience-contract.js +0 -0
  2248. /package/core/dist/{runtime-v2 → runtime}/governance-experience.d.ts +0 -0
  2249. /package/core/dist/{runtime-v2 → runtime}/governance-experience.js +0 -0
  2250. /package/core/dist/{runtime-v2 → runtime}/governance-projection-contract.d.ts +0 -0
  2251. /package/core/dist/{runtime-v2 → runtime}/governance-projection-contract.js +0 -0
  2252. /package/core/dist/{runtime-v2 → runtime}/governance-projection.d.ts +0 -0
  2253. /package/core/dist/{runtime-v2 → runtime}/governance-projection.js +0 -0
  2254. /package/core/dist/{runtime-v2 → runtime}/governance-timestamp-schema.d.ts +0 -0
  2255. /package/core/dist/{runtime-v2 → runtime}/governance-timestamp-schema.js +0 -0
  2256. /package/core/dist/{runtime-v2 → runtime}/intent/index.d.ts +0 -0
  2257. /package/core/dist/{runtime-v2 → runtime}/intent/index.js +0 -0
  2258. /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-reader-port.d.ts +0 -0
  2259. /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-reader-port.js +0 -0
  2260. /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-version.d.ts +0 -0
  2261. /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc-version.js +0 -0
  2262. /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc.d.ts +0 -0
  2263. /package/core/dist/{runtime-v2 → runtime}/intent/intent-doc.js +0 -0
  2264. /package/core/dist/{runtime-v2 → runtime}/intent/intent-friction-block.d.ts +0 -0
  2265. /package/core/dist/{runtime-v2 → runtime}/intent/intent-friction-block.js +0 -0
  2266. /package/core/dist/{runtime-v2 → runtime}/intent/intent-hash.d.ts +0 -0
  2267. /package/core/dist/{runtime-v2 → runtime}/intent/intent-hash.js +0 -0
  2268. /package/core/dist/{runtime-v2 → runtime}/intent/intent-patch-proposal.d.ts +0 -0
  2269. /package/core/dist/{runtime-v2 → runtime}/intent/intent-patch-proposal.js +0 -0
  2270. /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-case.d.ts +0 -0
  2271. /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-case.js +0 -0
  2272. /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-feedback.d.ts +0 -0
  2273. /package/core/dist/{runtime-v2 → runtime}/internalization/adversarial-feedback.js +0 -0
  2274. /package/core/dist/{runtime-v2 → runtime}/internalization/approved-rule-revision.d.ts +0 -0
  2275. /package/core/dist/{runtime-v2 → runtime}/internalization/approved-rule-revision.js +0 -0
  2276. /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-content-hash.d.ts +0 -0
  2277. /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-content-hash.js +0 -0
  2278. /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-summary.d.ts +0 -0
  2279. /package/core/dist/{runtime-v2 → runtime}/internalization/artifact-summary.js +0 -0
  2280. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-code-bearing.d.ts +0 -0
  2281. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-code-bearing.js +0 -0
  2282. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-intent-preflight.d.ts +0 -0
  2283. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-intent-preflight.js +0 -0
  2284. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-output.d.ts +0 -0
  2285. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-output.js +0 -0
  2286. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-prompt-builder.d.ts +0 -0
  2287. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-prompt-builder.js +0 -0
  2288. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-run-correlation.d.ts +0 -0
  2289. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-run-correlation.js +0 -0
  2290. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-runner.d.ts +0 -0
  2291. /package/core/dist/{runtime-v2 → runtime}/internalization/artificer-runner.js +0 -0
  2292. /package/core/dist/{runtime-v2 → runtime}/internalization/bash-risk.d.ts +0 -0
  2293. /package/core/dist/{runtime-v2 → runtime}/internalization/candidate-identity.d.ts +0 -0
  2294. /package/core/dist/{runtime-v2 → runtime}/internalization/candidate-identity.js +0 -0
  2295. /package/core/dist/{runtime-v2 → runtime}/internalization/compile-result.d.ts +0 -0
  2296. /package/core/dist/{runtime-v2 → runtime}/internalization/compile-result.js +0 -0
  2297. /package/core/dist/{runtime-v2 → runtime}/internalization/consumer-evidence-preflight.d.ts +0 -0
  2298. /package/core/dist/{runtime-v2 → runtime}/internalization/consumer-evidence-preflight.js +0 -0
  2299. /package/core/dist/{runtime-v2 → runtime}/internalization/correction-proposal.d.ts +0 -0
  2300. /package/core/dist/{runtime-v2 → runtime}/internalization/deprecated-readiness.d.ts +0 -0
  2301. /package/core/dist/{runtime-v2 → runtime}/internalization/deprecated-readiness.js +0 -0
  2302. /package/core/dist/{runtime-v2 → runtime}/internalization/design-gate-facts.d.ts +0 -0
  2303. /package/core/dist/{runtime-v2 → runtime}/internalization/design-gate-facts.js +0 -0
  2304. /package/core/dist/{runtime-v2 → runtime}/internalization/diag-distiller-runner.d.ts +0 -0
  2305. /package/core/dist/{runtime-v2 → runtime}/internalization/diag-distiller-runner.js +0 -0
  2306. /package/core/dist/{runtime-v2 → runtime}/internalization/diag-rootcause-runner.d.ts +0 -0
  2307. /package/core/dist/{runtime-v2 → runtime}/internalization/diag-rootcause-runner.js +0 -0
  2308. /package/core/dist/{runtime-v2 → runtime}/internalization/diag-router-runner.d.ts +0 -0
  2309. /package/core/dist/{runtime-v2 → runtime}/internalization/diag-router-runner.js +0 -0
  2310. /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-output.d.ts +0 -0
  2311. /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-output.js +0 -0
  2312. /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-prompt-builder.d.ts +0 -0
  2313. /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-prompt-builder.js +0 -0
  2314. /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-runner.d.ts +0 -0
  2315. /package/core/dist/{runtime-v2 → runtime}/internalization/dreamer-runner.js +0 -0
  2316. /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-output.d.ts +0 -0
  2317. /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-output.js +0 -0
  2318. /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-prompt-builder.d.ts +0 -0
  2319. /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-prompt-builder.js +0 -0
  2320. /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-runner.d.ts +0 -0
  2321. /package/core/dist/{runtime-v2 → runtime}/internalization/evaluator-runner.js +0 -0
  2322. /package/core/dist/{runtime-v2 → runtime}/internalization/evidence-readiness.d.ts +0 -0
  2323. /package/core/dist/{runtime-v2 → runtime}/internalization/evidence-readiness.js +0 -0
  2324. /package/core/dist/{runtime-v2 → runtime}/internalization/formation-context.d.ts +0 -0
  2325. /package/core/dist/{runtime-v2 → runtime}/internalization/formation-context.js +0 -0
  2326. /package/core/dist/{runtime-v2 → runtime}/internalization/golden-dogfood-fixtures.d.ts +0 -0
  2327. /package/core/dist/{runtime-v2 → runtime}/internalization/golden-dogfood-fixtures.js +0 -0
  2328. /package/core/dist/{runtime-v2 → runtime}/internalization/index.d.ts +0 -0
  2329. /package/core/dist/{runtime-v2 → runtime}/internalization/index.js +0 -0
  2330. /package/core/dist/{runtime-v2 → runtime}/internalization/intake-to-internalization-bridge.d.ts +0 -0
  2331. /package/core/dist/{runtime-v2 → runtime}/internalization/intake-to-internalization-bridge.js +0 -0
  2332. /package/core/dist/{runtime-v2 → runtime}/internalization/intent-contract.d.ts +0 -0
  2333. /package/core/dist/{runtime-v2 → runtime}/internalization/intent-contract.js +0 -0
  2334. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-consumer-decision.d.ts +0 -0
  2335. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-consumer-decision.js +0 -0
  2336. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-job-graph.d.ts +0 -0
  2337. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-job-graph.js +0 -0
  2338. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-orchestrator.d.ts +0 -0
  2339. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-orchestrator.js +0 -0
  2340. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-route.d.ts +0 -0
  2341. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-route.js +0 -0
  2342. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-state-machine.d.ts +0 -0
  2343. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-state-machine.js +0 -0
  2344. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-task-guards.d.ts +0 -0
  2345. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-task-guards.js +0 -0
  2346. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-transition-decision.d.ts +0 -0
  2347. /package/core/dist/{runtime-v2 → runtime}/internalization/internalization-transition-decision.js +0 -0
  2348. /package/core/dist/{runtime-v2 → runtime}/internalization/legacy-rule-contract-scanner.d.ts +0 -0
  2349. /package/core/dist/{runtime-v2 → runtime}/internalization/legacy-rule-contract-scanner.js +0 -0
  2350. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-datasource.d.ts +0 -0
  2351. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-datasource.js +0 -0
  2352. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-metrics.d.ts +0 -0
  2353. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-metrics.js +0 -0
  2354. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-read-model.d.ts +0 -0
  2355. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-read-model.js +0 -0
  2356. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-types.d.ts +0 -0
  2357. /package/core/dist/{runtime-v2 → runtime}/internalization/lifecycle-types.js +0 -0
  2358. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-decision-review.d.ts +0 -0
  2359. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-decision-review.js +0 -0
  2360. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-evidence-recovery.d.ts +0 -0
  2361. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-evidence-recovery.js +0 -0
  2362. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-resolution-service.d.ts +0 -0
  2363. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-resolution-service.js +0 -0
  2364. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-retry.d.ts +0 -0
  2365. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-retry.js +0 -0
  2366. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-review.d.ts +0 -0
  2367. /package/core/dist/{runtime-v2 → runtime}/internalization/owner-review.js +0 -0
  2368. /package/core/dist/{runtime-v2 → runtime}/internalization/peer-runner-contracts.d.ts +0 -0
  2369. /package/core/dist/{runtime-v2 → runtime}/internalization/peer-runner-contracts.js +0 -0
  2370. /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-output.d.ts +0 -0
  2371. /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-output.js +0 -0
  2372. /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-prompt-builder.d.ts +0 -0
  2373. /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-prompt-builder.js +0 -0
  2374. /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-runner.d.ts +0 -0
  2375. /package/core/dist/{runtime-v2 → runtime}/internalization/philosopher-runner.js +0 -0
  2376. /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact-store.d.ts +0 -0
  2377. /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact-store.js +0 -0
  2378. /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact.d.ts +0 -0
  2379. /package/core/dist/{runtime-v2 → runtime}/internalization/pi-artifact.js +0 -0
  2380. /package/core/dist/{runtime-v2 → runtime}/internalization/pitask-metadata.d.ts +0 -0
  2381. /package/core/dist/{runtime-v2 → runtime}/internalization/prompt-serializer.d.ts +0 -0
  2382. /package/core/dist/{runtime-v2 → runtime}/internalization/prompt-serializer.js +0 -0
  2383. /package/core/dist/{runtime-v2 → runtime}/internalization/queue-actionability.d.ts +0 -0
  2384. /package/core/dist/{runtime-v2 → runtime}/internalization/queue-actionability.js +0 -0
  2385. /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-rulehost-gate.d.ts +0 -0
  2386. /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-rulehost-gate.js +0 -0
  2387. /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-sandbox-wrapper.d.ts +0 -0
  2388. /package/core/dist/{runtime-v2 → runtime}/internalization/refiner-sandbox-wrapper.js +0 -0
  2389. /package/core/dist/{runtime-v2 → runtime}/internalization/repair-replay-resolver.d.ts +0 -0
  2390. /package/core/dist/{runtime-v2 → runtime}/internalization/repair-replay-resolver.js +0 -0
  2391. /package/core/dist/{runtime-v2 → runtime}/internalization/revision-reopen.d.ts +0 -0
  2392. /package/core/dist/{runtime-v2 → runtime}/internalization/revision-reopen.js +0 -0
  2393. /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-output.d.ts +0 -0
  2394. /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-output.js +0 -0
  2395. /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-prompt-builder.d.ts +0 -0
  2396. /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-prompt-builder.js +0 -0
  2397. /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-runner.d.ts +0 -0
  2398. /package/core/dist/{runtime-v2 → runtime}/internalization/rollout-reviewer-runner.js +0 -0
  2399. /package/core/dist/{runtime-v2 → runtime}/internalization/router-context-evidence.d.ts +0 -0
  2400. /package/core/dist/{runtime-v2 → runtime}/internalization/router-context-evidence.js +0 -0
  2401. /package/core/dist/{runtime-v2 → runtime}/internalization/routing-policy.d.ts +0 -0
  2402. /package/core/dist/{runtime-v2 → runtime}/internalization/routing-policy.js +0 -0
  2403. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-activation-contract.d.ts +0 -0
  2404. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-activation-contract.js +0 -0
  2405. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-binding-revision.d.ts +0 -0
  2406. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-binding-revision.js +0 -0
  2407. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-code-validator.d.ts +0 -0
  2408. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-code-validator.js +0 -0
  2409. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-adapter.d.ts +0 -0
  2410. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-adapter.js +0 -0
  2411. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-contracts.d.ts +0 -0
  2412. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-contracts.js +0 -0
  2413. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-evaluator.d.ts +0 -0
  2414. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-evaluator.js +0 -0
  2415. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-helpers.d.ts +0 -0
  2416. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-helpers.js +0 -0
  2417. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-input-builder.d.ts +0 -0
  2418. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-input-builder.js +0 -0
  2419. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-validator.d.ts +0 -0
  2420. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-host-validator.js +0 -0
  2421. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-reliability-validation.d.ts +0 -0
  2422. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-reliability-validation.js +0 -0
  2423. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-source-correction.d.ts +0 -0
  2424. /package/core/dist/{runtime-v2 → runtime}/internalization/rule-source-correction.js +0 -0
  2425. /package/core/dist/{runtime-v2 → runtime}/internalization/rulecode-verification-obligations.d.ts +0 -0
  2426. /package/core/dist/{runtime-v2 → runtime}/internalization/rulecode-verification-obligations.js +0 -0
  2427. /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-output.d.ts +0 -0
  2428. /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-output.js +0 -0
  2429. /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-prompt-builder.d.ts +0 -0
  2430. /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-prompt-builder.js +0 -0
  2431. /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-runner.d.ts +0 -0
  2432. /package/core/dist/{runtime-v2 → runtime}/internalization/scribe-runner.js +0 -0
  2433. /package/core/dist/{runtime-v2 → runtime}/internalization/split-diagnostician-runner.d.ts +0 -0
  2434. /package/core/dist/{runtime-v2 → runtime}/internalization/split-diagnostician-runner.js +0 -0
  2435. /package/core/dist/{runtime-v2 → runtime}/internalization/template-generator.d.ts +0 -0
  2436. /package/core/dist/{runtime-v2 → runtime}/internalization/template-generator.js +0 -0
  2437. /package/core/dist/{runtime-v2 → runtime}/internalization/textual-basis-anchor.d.ts +0 -0
  2438. /package/core/dist/{runtime-v2 → runtime}/internalization/textual-basis-anchor.js +0 -0
  2439. /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-baseline.d.ts +0 -0
  2440. /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-baseline.js +0 -0
  2441. /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-registry.d.ts +0 -0
  2442. /package/core/dist/{runtime-v2 → runtime}/internalization/tool-semantic-registry.js +0 -0
  2443. /package/core/dist/{runtime-v2 → runtime}/internalization/v2-adversarial-cases.d.ts +0 -0
  2444. /package/core/dist/{runtime-v2 → runtime}/internalization/v2-adversarial-cases.js +0 -0
  2445. /package/core/dist/{runtime-v2 → runtime}/internalization-chain-integrity-read-model.d.ts +0 -0
  2446. /package/core/dist/{runtime-v2 → runtime}/internalization-chain-integrity-read-model.js +0 -0
  2447. /package/core/dist/{runtime-v2 → runtime}/internalization-integrity-remediation.d.ts +0 -0
  2448. /package/core/dist/{runtime-v2 → runtime}/internalization-integrity-remediation.js +0 -0
  2449. /package/core/dist/{runtime-v2 → runtime}/internalization-queue-read-model.d.ts +0 -0
  2450. /package/core/dist/{runtime-v2 → runtime}/internalization-queue-read-model.js +0 -0
  2451. /package/core/dist/{runtime-v2 → runtime}/intervention-evidence-normalizer.d.ts +0 -0
  2452. /package/core/dist/{runtime-v2 → runtime}/intervention-evidence-normalizer.js +0 -0
  2453. /package/core/dist/{runtime-v2 → runtime}/l1-hard-cap.d.ts +0 -0
  2454. /package/core/dist/{runtime-v2 → runtime}/l1-hard-cap.js +0 -0
  2455. /package/core/dist/{runtime-v2 → runtime}/language-directive.d.ts +0 -0
  2456. /package/core/dist/{runtime-v2 → runtime}/language-directive.js +0 -0
  2457. /package/core/dist/{runtime-v2 → runtime}/learning-lab/actor-action-output.d.ts +0 -0
  2458. /package/core/dist/{runtime-v2 → runtime}/learning-lab/actor-action-output.js +0 -0
  2459. /package/core/dist/{runtime-v2 → runtime}/mainline-contract.d.ts +0 -0
  2460. /package/core/dist/{runtime-v2 → runtime}/mainline-contract.js +0 -0
  2461. /package/core/dist/{runtime-v2 → runtime}/observer/agent-scheduler.d.ts +0 -0
  2462. /package/core/dist/{runtime-v2 → runtime}/observer/agent-scheduler.js +0 -0
  2463. /package/core/dist/{runtime-v2 → runtime}/observer/correction-observer.d.ts +0 -0
  2464. /package/core/dist/{runtime-v2 → runtime}/observer/correction-observer.js +0 -0
  2465. /package/core/dist/{runtime-v2 → runtime}/operator-health-read-model.d.ts +0 -0
  2466. /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view-contract.d.ts +0 -0
  2467. /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view-contract.js +0 -0
  2468. /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view.d.ts +0 -0
  2469. /package/core/dist/{runtime-v2 → runtime}/owner-decision/owner-decision-view.js +0 -0
  2470. /package/core/dist/{runtime-v2 → runtime}/owner-decision/semantic-selector.d.ts +0 -0
  2471. /package/core/dist/{runtime-v2 → runtime}/owner-decision/semantic-selector.js +0 -0
  2472. /package/core/dist/{runtime-v2 → runtime}/owner-identity.d.ts +0 -0
  2473. /package/core/dist/{runtime-v2 → runtime}/owner-identity.js +0 -0
  2474. /package/core/dist/{runtime-v2 → runtime}/pain-chain-read-model.d.ts +0 -0
  2475. /package/core/dist/{runtime-v2 → runtime}/pain-flood-simulation.d.ts +0 -0
  2476. /package/core/dist/{runtime-v2 → runtime}/pain-ingress-payload.d.ts +0 -0
  2477. /package/core/dist/{runtime-v2 → runtime}/pain-ingress-payload.js +0 -0
  2478. /package/core/dist/{runtime-v2 → runtime}/pain-ingress.d.ts +0 -0
  2479. /package/core/dist/{runtime-v2 → runtime}/pain-ingress.js +0 -0
  2480. /package/core/dist/{runtime-v2 → runtime}/pain-recall-capability.d.ts +0 -0
  2481. /package/core/dist/{runtime-v2 → runtime}/pain-recall-capability.js +0 -0
  2482. /package/core/dist/{runtime-v2 → runtime}/pain-recall-read-model.d.ts +0 -0
  2483. /package/core/dist/{runtime-v2 → runtime}/pain-recall-read-model.js +0 -0
  2484. /package/core/dist/{runtime-v2 → runtime}/pain-recall-snapshot-hooks.d.ts +0 -0
  2485. /package/core/dist/{runtime-v2 → runtime}/pain-recall-snapshot-hooks.js +0 -0
  2486. /package/core/dist/{runtime-v2 → runtime}/pain-signal-observability.js +0 -0
  2487. /package/core/dist/{runtime-v2 → runtime}/pain-to-principle-service.d.ts +0 -0
  2488. /package/core/dist/{runtime-v2 → runtime}/pain-to-principle-service.js +0 -0
  2489. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-output.d.ts +0 -0
  2490. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-output.js +0 -0
  2491. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-runner.d.ts +0 -0
  2492. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-evaluation-runner.js +0 -0
  2493. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-proposal.d.ts +0 -0
  2494. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-proposal.js +0 -0
  2495. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-retrieval.d.ts +0 -0
  2496. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-retrieval.js +0 -0
  2497. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-shortlist.d.ts +0 -0
  2498. /package/core/dist/{runtime-v2 → runtime}/principle-reuse/reuse-shortlist.js +0 -0
  2499. /package/core/dist/{runtime-v2 → runtime}/principle-tree/ledger-codec.d.ts +0 -0
  2500. /package/core/dist/{runtime-v2 → runtime}/principle-tree/ledger-codec.js +0 -0
  2501. /package/core/dist/{runtime-v2 → runtime}/principle-tree/rule-candidate-binding.d.ts +0 -0
  2502. /package/core/dist/{runtime-v2 → runtime}/principle-tree/rule-candidate-binding.js +0 -0
  2503. /package/core/dist/{runtime-v2 → runtime}/product-telemetry/daily-identity.d.ts +0 -0
  2504. /package/core/dist/{runtime-v2 → runtime}/product-telemetry/daily-identity.js +0 -0
  2505. /package/core/dist/{runtime-v2 → runtime}/product-telemetry/snapshot-contract.d.ts +0 -0
  2506. /package/core/dist/{runtime-v2 → runtime}/product-telemetry/snapshot-contract.js +0 -0
  2507. /package/core/dist/{runtime-v2 → runtime}/proven-channel-baseline.d.ts +0 -0
  2508. /package/core/dist/{runtime-v2 → runtime}/pruning-read-model.d.ts +0 -0
  2509. /package/core/dist/{runtime-v2 → runtime}/pruning-read-model.js +0 -0
  2510. /package/core/dist/{runtime-v2 → runtime}/receipt-coverage.d.ts +0 -0
  2511. /package/core/dist/{runtime-v2 → runtime}/receipt-coverage.js +0 -0
  2512. /package/core/dist/{runtime-v2 → runtime}/recovery-actions-log.d.ts +0 -0
  2513. /package/core/dist/{runtime-v2 → runtime}/recovery-actions-log.js +0 -0
  2514. /package/core/dist/{runtime-v2 → runtime}/recovery-sweep-service.d.ts +0 -0
  2515. /package/core/dist/{runtime-v2 → runtime}/recovery-sweep-service.js +0 -0
  2516. /package/core/dist/{runtime-v2 → runtime}/remediation-contract.d.ts +0 -0
  2517. /package/core/dist/{runtime-v2 → runtime}/remediation-contract.js +0 -0
  2518. /package/core/dist/{runtime-v2 → runtime}/risk/index.d.ts +0 -0
  2519. /package/core/dist/{runtime-v2 → runtime}/risk/index.js +0 -0
  2520. /package/core/dist/{runtime-v2 → runtime}/risk/risk-calculator-policy.d.ts +0 -0
  2521. /package/core/dist/{runtime-v2 → runtime}/risk/risk-calculator-policy.js +0 -0
  2522. /package/core/dist/{runtime-v2 → runtime}/runner/base-peer-runner.d.ts +0 -0
  2523. /package/core/dist/{runtime-v2 → runtime}/runner/base-peer-runner.js +0 -0
  2524. /package/core/dist/{runtime-v2 → runtime}/runner/default-validator.d.ts +0 -0
  2525. /package/core/dist/{runtime-v2 → runtime}/runner/default-validator.js +0 -0
  2526. /package/core/dist/{runtime-v2 → runtime}/runner/diagnostician-validator.d.ts +0 -0
  2527. /package/core/dist/{runtime-v2 → runtime}/runner/diagnostician-validator.js +0 -0
  2528. /package/core/dist/{runtime-v2 → runtime}/runner/peer-runner-types.d.ts +0 -0
  2529. /package/core/dist/{runtime-v2 → runtime}/runner/peer-runner-types.js +0 -0
  2530. /package/core/dist/{runtime-v2 → runtime}/runner/runner-phase.d.ts +0 -0
  2531. /package/core/dist/{runtime-v2 → runtime}/runner/runner-phase.js +0 -0
  2532. /package/core/dist/{runtime-v2 → runtime}/runner/runner-result.d.ts +0 -0
  2533. /package/core/dist/{runtime-v2 → runtime}/runner/runner-result.js +0 -0
  2534. /package/core/dist/{runtime-v2 → runtime}/runtime-protocol.d.ts +0 -0
  2535. /package/core/dist/{runtime-v2 → runtime}/runtime-protocol.js +0 -0
  2536. /package/core/dist/{runtime-v2 → runtime}/runtime-state-handle.d.ts +0 -0
  2537. /package/core/dist/{runtime-v2 → runtime}/runtime-state-handle.js +0 -0
  2538. /package/core/dist/{runtime-v2 → runtime}/schema-conformance-read-model.d.ts +0 -0
  2539. /package/core/dist/{runtime-v2 → runtime}/schema-conformance-read-model.js +0 -0
  2540. /package/core/dist/{runtime-v2 → runtime}/signal-collector/confidence-gate.d.ts +0 -0
  2541. /package/core/dist/{runtime-v2 → runtime}/signal-collector/confidence-gate.js +0 -0
  2542. /package/core/dist/{runtime-v2 → runtime}/signal-collector/index.d.ts +0 -0
  2543. /package/core/dist/{runtime-v2 → runtime}/signal-collector/index.js +0 -0
  2544. /package/core/dist/{runtime-v2 → runtime}/signal-collector/keyword-stage.d.ts +0 -0
  2545. /package/core/dist/{runtime-v2 → runtime}/signal-collector/keyword-stage.js +0 -0
  2546. /package/core/dist/{runtime-v2 → runtime}/signal-collector/llm-stage.d.ts +0 -0
  2547. /package/core/dist/{runtime-v2 → runtime}/signal-collector/llm-stage.js +0 -0
  2548. /package/core/dist/{runtime-v2 → runtime}/signal-collector/signal-collector.d.ts +0 -0
  2549. /package/core/dist/{runtime-v2 → runtime}/signal-collector/signal-collector.js +0 -0
  2550. /package/core/dist/{runtime-v2 → runtime}/signal-collector/types.d.ts +0 -0
  2551. /package/core/dist/{runtime-v2 → runtime}/signal-collector/types.js +0 -0
  2552. /package/core/dist/{runtime-v2 → runtime}/stalled-diagnostician-task-read-model.d.ts +0 -0
  2553. /package/core/dist/{runtime-v2 → runtime}/stalled-diagnostician-task-read-model.js +0 -0
  2554. /package/core/dist/{runtime-v2 → runtime}/store/artifact/artifact-store.d.ts +0 -0
  2555. /package/core/dist/{runtime-v2 → runtime}/store/artifact/artifact-store.js +0 -0
  2556. /package/core/dist/{runtime-v2 → runtime}/store/artifact/index.d.ts +0 -0
  2557. /package/core/dist/{runtime-v2 → runtime}/store/artifact/index.js +0 -0
  2558. /package/core/dist/{runtime-v2 → runtime}/store/artifact/memory-artifact-store.d.ts +0 -0
  2559. /package/core/dist/{runtime-v2 → runtime}/store/artifact/memory-artifact-store.js +0 -0
  2560. /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-artifact-store.d.ts +0 -0
  2561. /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-artifact-store.js +0 -0
  2562. /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-pi-artifact-store.d.ts +0 -0
  2563. /package/core/dist/{runtime-v2 → runtime}/store/artifact/sqlite-pi-artifact-store.js +0 -0
  2564. /package/core/dist/{runtime-v2 → runtime}/store/candidate/admission-document.d.ts +0 -0
  2565. /package/core/dist/{runtime-v2 → runtime}/store/candidate/admission-document.js +0 -0
  2566. /package/core/dist/{runtime-v2 → runtime}/store/candidate/candidate-store.d.ts +0 -0
  2567. /package/core/dist/{runtime-v2 → runtime}/store/candidate/candidate-store.js +0 -0
  2568. /package/core/dist/{runtime-v2 → runtime}/store/candidate/index.d.ts +0 -0
  2569. /package/core/dist/{runtime-v2 → runtime}/store/candidate/index.js +0 -0
  2570. /package/core/dist/{runtime-v2 → runtime}/store/candidate/memory-candidate-store.d.ts +0 -0
  2571. /package/core/dist/{runtime-v2 → runtime}/store/candidate/memory-candidate-store.js +0 -0
  2572. /package/core/dist/{runtime-v2 → runtime}/store/candidate/recommendation-kind-resolver.d.ts +0 -0
  2573. /package/core/dist/{runtime-v2 → runtime}/store/candidate/recommendation-kind-resolver.js +0 -0
  2574. /package/core/dist/{runtime-v2 → runtime}/store/candidate/sqlite-candidate-store.d.ts +0 -0
  2575. /package/core/dist/{runtime-v2 → runtime}/store/candidate/sqlite-candidate-store.js +0 -0
  2576. /package/core/dist/{runtime-v2 → runtime}/store/commit/commit-store.d.ts +0 -0
  2577. /package/core/dist/{runtime-v2 → runtime}/store/commit/commit-store.js +0 -0
  2578. /package/core/dist/{runtime-v2 → runtime}/store/commit/diagnostician-committer.d.ts +0 -0
  2579. /package/core/dist/{runtime-v2 → runtime}/store/commit/diagnostician-committer.js +0 -0
  2580. /package/core/dist/{runtime-v2 → runtime}/store/commit/index.d.ts +0 -0
  2581. /package/core/dist/{runtime-v2 → runtime}/store/commit/index.js +0 -0
  2582. /package/core/dist/{runtime-v2 → runtime}/store/commit/memory-commit-store.d.ts +0 -0
  2583. /package/core/dist/{runtime-v2 → runtime}/store/commit/memory-commit-store.js +0 -0
  2584. /package/core/dist/{runtime-v2 → runtime}/store/commit/sqlite-commit-store.d.ts +0 -0
  2585. /package/core/dist/{runtime-v2 → runtime}/store/commit/sqlite-commit-store.js +0 -0
  2586. /package/core/dist/{runtime-v2 → runtime}/store/context/context-assembler.d.ts +0 -0
  2587. /package/core/dist/{runtime-v2 → runtime}/store/context/context-assembler.js +0 -0
  2588. /package/core/dist/{runtime-v2 → runtime}/store/context/index.d.ts +0 -0
  2589. /package/core/dist/{runtime-v2 → runtime}/store/context/index.js +0 -0
  2590. /package/core/dist/{runtime-v2 → runtime}/store/context/resilient-context-assembler.d.ts +0 -0
  2591. /package/core/dist/{runtime-v2 → runtime}/store/context/resilient-context-assembler.js +0 -0
  2592. /package/core/dist/{runtime-v2 → runtime}/store/context/sqlite-context-assembler.d.ts +0 -0
  2593. /package/core/dist/{runtime-v2 → runtime}/store/context/sqlite-context-assembler.js +0 -0
  2594. /package/core/dist/{runtime-v2 → runtime}/store/context/trajectory-turn-reader.d.ts +0 -0
  2595. /package/core/dist/{runtime-v2 → runtime}/store/context/trajectory-turn-reader.js +0 -0
  2596. /package/core/dist/{runtime-v2 → runtime}/store/design-gate/sqlite-design-gate-store.d.ts +0 -0
  2597. /package/core/dist/{runtime-v2 → runtime}/store/design-gate/sqlite-design-gate-store.js +0 -0
  2598. /package/core/dist/{runtime-v2 → runtime}/store/event-emitter.d.ts +0 -0
  2599. /package/core/dist/{runtime-v2 → runtime}/store/event-emitter.js +0 -0
  2600. /package/core/dist/{runtime-v2 → runtime}/store/history/history-query.d.ts +0 -0
  2601. /package/core/dist/{runtime-v2 → runtime}/store/history/history-query.js +0 -0
  2602. /package/core/dist/{runtime-v2 → runtime}/store/history/index.d.ts +0 -0
  2603. /package/core/dist/{runtime-v2 → runtime}/store/history/index.js +0 -0
  2604. /package/core/dist/{runtime-v2 → runtime}/store/history/resilient-history-query.d.ts +0 -0
  2605. /package/core/dist/{runtime-v2 → runtime}/store/history/resilient-history-query.js +0 -0
  2606. /package/core/dist/{runtime-v2 → runtime}/store/history/sqlite-history-query.d.ts +0 -0
  2607. /package/core/dist/{runtime-v2 → runtime}/store/history/sqlite-history-query.js +0 -0
  2608. /package/core/dist/{runtime-v2 → runtime}/store/intent/index.d.ts +0 -0
  2609. /package/core/dist/{runtime-v2 → runtime}/store/intent/index.js +0 -0
  2610. /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-decision-store.d.ts +0 -0
  2611. /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-decision-store.js +0 -0
  2612. /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-doc-version-store.d.ts +0 -0
  2613. /package/core/dist/{runtime-v2 → runtime}/store/intent/sqlite-intent-doc-version-store.js +0 -0
  2614. /package/core/dist/{runtime-v2 → runtime}/store/intervention-evidence-schema.d.ts +0 -0
  2615. /package/core/dist/{runtime-v2 → runtime}/store/intervention-evidence-schema.js +0 -0
  2616. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/index.d.ts +0 -0
  2617. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/index.js +0 -0
  2618. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/lease-manager.d.ts +0 -0
  2619. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/lease-manager.js +0 -0
  2620. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/recovery-sweep.d.ts +0 -0
  2621. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/recovery-sweep.js +0 -0
  2622. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/retry-policy.d.ts +0 -0
  2623. /package/core/dist/{runtime-v2 → runtime}/store/lifecycle/retry-policy.js +0 -0
  2624. /package/core/dist/{runtime-v2 → runtime}/store/pain/index.d.ts +0 -0
  2625. /package/core/dist/{runtime-v2 → runtime}/store/pain/index.js +0 -0
  2626. /package/core/dist/{runtime-v2 → runtime}/store/pain/sqlite-dead-letter-store.d.ts +0 -0
  2627. /package/core/dist/{runtime-v2 → runtime}/store/pain/sqlite-dead-letter-store.js +0 -0
  2628. /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/pain-diagnosis-store.d.ts +0 -0
  2629. /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/pain-diagnosis-store.js +0 -0
  2630. /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/sqlite-pain-diagnosis-store.d.ts +0 -0
  2631. /package/core/dist/{runtime-v2 → runtime}/store/pain-diagnosis/sqlite-pain-diagnosis-store.js +0 -0
  2632. /package/core/dist/{runtime-v2 → runtime}/store/reconciliation-cursor-store.d.ts +0 -0
  2633. /package/core/dist/{runtime-v2 → runtime}/store/reconciliation-cursor-store.js +0 -0
  2634. /package/core/dist/{runtime-v2 → runtime}/store/run/index.d.ts +0 -0
  2635. /package/core/dist/{runtime-v2 → runtime}/store/run/index.js +0 -0
  2636. /package/core/dist/{runtime-v2 → runtime}/store/run/memory-run-store.d.ts +0 -0
  2637. /package/core/dist/{runtime-v2 → runtime}/store/run/memory-run-store.js +0 -0
  2638. /package/core/dist/{runtime-v2 → runtime}/store/run/run-store.d.ts +0 -0
  2639. /package/core/dist/{runtime-v2 → runtime}/store/run/run-store.js +0 -0
  2640. /package/core/dist/{runtime-v2 → runtime}/store/run/sqlite-run-store.d.ts +0 -0
  2641. /package/core/dist/{runtime-v2 → runtime}/store/run/sqlite-run-store.js +0 -0
  2642. /package/core/dist/{runtime-v2 → runtime}/store/runtime-state-manager.d.ts +0 -0
  2643. /package/core/dist/{runtime-v2 → runtime}/store/runtime-state-manager.js +0 -0
  2644. /package/core/dist/{runtime-v2 → runtime}/store/sqlite-connection.d.ts +0 -0
  2645. /package/core/dist/{runtime-v2 → runtime}/store/sqlite-connection.js +0 -0
  2646. /package/core/dist/{runtime-v2 → runtime}/store/sqlite-intervention-evidence-store.d.ts +0 -0
  2647. /package/core/dist/{runtime-v2 → runtime}/store/sqlite-intervention-evidence-store.js +0 -0
  2648. /package/core/dist/{runtime-v2 → runtime}/store/task/index.d.ts +0 -0
  2649. /package/core/dist/{runtime-v2 → runtime}/store/task/index.js +0 -0
  2650. /package/core/dist/{runtime-v2 → runtime}/store/task/memory-task-store.d.ts +0 -0
  2651. /package/core/dist/{runtime-v2 → runtime}/store/task/memory-task-store.js +0 -0
  2652. /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-approved-rule-revision.d.ts +0 -0
  2653. /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-approved-rule-revision.js +0 -0
  2654. /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-family-reopen.d.ts +0 -0
  2655. /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-family-reopen.js +0 -0
  2656. /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-task-store.d.ts +0 -0
  2657. /package/core/dist/{runtime-v2 → runtime}/store/task/sqlite-task-store.js +0 -0
  2658. /package/core/dist/{runtime-v2 → runtime}/store/task/task-store.d.ts +0 -0
  2659. /package/core/dist/{runtime-v2 → runtime}/store/task/task-store.js +0 -0
  2660. /package/core/dist/{runtime-v2 → runtime}/store/task/task-types.d.ts +0 -0
  2661. /package/core/dist/{runtime-v2 → runtime}/store/task/task-types.js +0 -0
  2662. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/index.d.ts +0 -0
  2663. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/index.js +0 -0
  2664. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/source-trace-locator.d.ts +0 -0
  2665. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/source-trace-locator.js +0 -0
  2666. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-source-trace-locator.d.ts +0 -0
  2667. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-source-trace-locator.js +0 -0
  2668. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-trajectory-locator.d.ts +0 -0
  2669. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/sqlite-trajectory-locator.js +0 -0
  2670. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/trajectory-locator.d.ts +0 -0
  2671. /package/core/dist/{runtime-v2 → runtime}/store/trajectory/trajectory-locator.js +0 -0
  2672. /package/core/dist/{runtime-v2 → runtime}/store/workspace-leak-guard.d.ts +0 -0
  2673. /package/core/dist/{runtime-v2 → runtime}/store/workspace-leak-guard.js +0 -0
  2674. /package/core/dist/{runtime-v2 → runtime}/story-a-demo.js +0 -0
  2675. /package/core/dist/{runtime-v2 → runtime}/synthetic-baseline.d.ts +0 -0
  2676. /package/core/dist/{runtime-v2 → runtime}/system-prompt-merge.d.ts +0 -0
  2677. /package/core/dist/{runtime-v2 → runtime}/system-prompt-merge.js +0 -0
  2678. /package/core/dist/{runtime-v2 → runtime}/task-status.d.ts +0 -0
  2679. /package/core/dist/{runtime-v2 → runtime}/task-status.js +0 -0
  2680. /package/core/dist/{runtime-v2 → runtime}/tools/agent-tool-contract.d.ts +0 -0
  2681. /package/core/dist/{runtime-v2 → runtime}/tools/agent-tool-contract.js +0 -0
  2682. /package/core/dist/{runtime-v2 → runtime}/tools/artificer-l2-tool-contract.d.ts +0 -0
  2683. /package/core/dist/{runtime-v2 → runtime}/tools/artificer-l2-tool-contract.js +0 -0
  2684. /package/core/dist/{runtime-v2 → runtime}/tools/artificer-output-typebox.d.ts +0 -0
  2685. /package/core/dist/{runtime-v2 → runtime}/tools/artificer-output-typebox.js +0 -0
  2686. /package/core/dist/{runtime-v2 → runtime}/tools/dreamer-output-typebox.d.ts +0 -0
  2687. /package/core/dist/{runtime-v2 → runtime}/tools/dreamer-output-typebox.js +0 -0
  2688. /package/core/dist/{runtime-v2 → runtime}/trajectory-schema.d.ts +0 -0
  2689. /package/core/dist/{runtime-v2 → runtime}/trajectory-schema.js +0 -0
  2690. /package/core/dist/{runtime-v2 → runtime}/types/artifact-lineage.d.ts +0 -0
  2691. /package/core/dist/{runtime-v2 → runtime}/types/artifact-lineage.js +0 -0
  2692. /package/core/dist/{runtime-v2 → runtime}/types/event-payload.d.ts +0 -0
  2693. /package/core/dist/{runtime-v2 → runtime}/types/event-payload.js +0 -0
  2694. /package/core/dist/{runtime-v2 → runtime}/types/hygiene-types.d.ts +0 -0
  2695. /package/core/dist/{runtime-v2 → runtime}/types/hygiene-types.js +0 -0
  2696. /package/core/dist/{runtime-v2 → runtime}/types/intervention-evidence-contract.d.ts +0 -0
  2697. /package/core/dist/{runtime-v2 → runtime}/types/intervention-evidence-contract.js +0 -0
  2698. /package/core/dist/{runtime-v2 → runtime}/types/ledger-store.d.ts +0 -0
  2699. /package/core/dist/{runtime-v2 → runtime}/types/ledger-store.js +0 -0
  2700. /package/core/dist/{runtime-v2 → runtime}/types/pain-signal.d.ts +0 -0
  2701. /package/core/dist/{runtime-v2 → runtime}/types/pain-signal.js +0 -0
  2702. /package/core/dist/{runtime-v2 → runtime}/types/pd-task-types.d.ts +0 -0
  2703. /package/core/dist/{runtime-v2 → runtime}/types/pd-task-types.js +0 -0
  2704. /package/core/dist/{runtime-v2 → runtime}/types/principle-dependency.d.ts +0 -0
  2705. /package/core/dist/{runtime-v2 → runtime}/types/principle-dependency.js +0 -0
  2706. /package/core/dist/{runtime-v2 → runtime}/types/principle-enums.d.ts +0 -0
  2707. /package/core/dist/{runtime-v2 → runtime}/types/principle-enums.js +0 -0
  2708. /package/core/dist/{runtime-v2 → runtime}/types/principle-lifecycle-event.d.ts +0 -0
  2709. /package/core/dist/{runtime-v2 → runtime}/types/principle-lifecycle-event.js +0 -0
  2710. /package/core/dist/{runtime-v2 → runtime}/types/principle-schema.d.ts +0 -0
  2711. /package/core/dist/{runtime-v2 → runtime}/types/principle-schema.js +0 -0
  2712. /package/core/dist/{runtime-v2 → runtime}/types/principle-tree-store.d.ts +0 -0
  2713. /package/core/dist/{runtime-v2 → runtime}/types/principle-tree-store.js +0 -0
  2714. /package/core/dist/{runtime-v2 → runtime}/types/principle-value-metrics.d.ts +0 -0
  2715. /package/core/dist/{runtime-v2 → runtime}/types/principle-value-metrics.js +0 -0
  2716. /package/core/dist/{runtime-v2 → runtime}/types/replay-types.d.ts +0 -0
  2717. /package/core/dist/{runtime-v2 → runtime}/types/replay-types.js +0 -0
  2718. /package/core/dist/{runtime-v2 → runtime}/types/rule-candidate-binding.d.ts +0 -0
  2719. /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