@principles/core 1.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1633) hide show
  1. package/dist/adapters/code-review/code-review-pain-adapter.d.ts +13 -0
  2. package/dist/adapters/code-review/code-review-pain-adapter.d.ts.map +1 -0
  3. package/dist/adapters/code-review/code-review-pain-adapter.js +139 -0
  4. package/dist/adapters/code-review/code-review-pain-adapter.js.map +1 -0
  5. package/dist/adapters/code-review/index.d.ts +6 -0
  6. package/dist/adapters/code-review/index.d.ts.map +1 -0
  7. package/dist/adapters/code-review/index.js +2 -0
  8. package/dist/adapters/code-review/index.js.map +1 -0
  9. package/dist/adapters/code-review/review-event-types.d.ts +54 -0
  10. package/dist/adapters/code-review/review-event-types.d.ts.map +1 -0
  11. package/dist/adapters/code-review/review-event-types.js +8 -0
  12. package/dist/adapters/code-review/review-event-types.js.map +1 -0
  13. package/dist/adapters/coding/index.d.ts +6 -0
  14. package/dist/adapters/coding/index.d.ts.map +1 -0
  15. package/dist/adapters/coding/index.js +5 -0
  16. package/dist/adapters/coding/index.js.map +1 -0
  17. package/dist/adapters/coding/openclaw-event-types.d.ts +26 -0
  18. package/dist/adapters/coding/openclaw-event-types.d.ts.map +1 -0
  19. package/dist/adapters/coding/openclaw-event-types.js +9 -0
  20. package/dist/adapters/coding/openclaw-event-types.js.map +1 -0
  21. package/dist/adapters/coding/openclaw-pain-adapter.d.ts +27 -0
  22. package/dist/adapters/coding/openclaw-pain-adapter.d.ts.map +1 -0
  23. package/dist/adapters/coding/openclaw-pain-adapter.js +102 -0
  24. package/dist/adapters/coding/openclaw-pain-adapter.js.map +1 -0
  25. package/dist/adapters/writing/index.d.ts +6 -0
  26. package/dist/adapters/writing/index.d.ts.map +1 -0
  27. package/dist/adapters/writing/index.js +5 -0
  28. package/dist/adapters/writing/index.js.map +1 -0
  29. package/dist/adapters/writing/writing-pain-adapter.d.ts +22 -0
  30. package/dist/adapters/writing/writing-pain-adapter.d.ts.map +1 -0
  31. package/dist/adapters/writing/writing-pain-adapter.js +62 -0
  32. package/dist/adapters/writing/writing-pain-adapter.js.map +1 -0
  33. package/dist/adapters/writing/writing-types.d.ts +34 -0
  34. package/dist/adapters/writing/writing-types.d.ts.map +1 -0
  35. package/dist/adapters/writing/writing-types.js +9 -0
  36. package/dist/adapters/writing/writing-types.js.map +1 -0
  37. package/dist/evolution-hook.d.ts +70 -0
  38. package/dist/evolution-hook.d.ts.map +1 -0
  39. package/dist/evolution-hook.js +10 -0
  40. package/dist/evolution-hook.js.map +1 -0
  41. package/dist/evolution-store.d.ts +56 -0
  42. package/dist/evolution-store.d.ts.map +1 -0
  43. package/dist/evolution-store.js +150 -0
  44. package/dist/evolution-store.js.map +1 -0
  45. package/dist/index.d.ts +62 -0
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/index.js +64 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/io.d.ts +36 -0
  50. package/dist/io.d.ts.map +1 -0
  51. package/dist/io.js +99 -0
  52. package/dist/io.js.map +1 -0
  53. package/dist/pain-flag-resolver.d.ts +18 -0
  54. package/dist/pain-flag-resolver.d.ts.map +1 -0
  55. package/dist/pain-flag-resolver.js +21 -0
  56. package/dist/pain-flag-resolver.js.map +1 -0
  57. package/dist/pain-recorder.d.ts +38 -0
  58. package/dist/pain-recorder.d.ts.map +1 -0
  59. package/dist/pain-recorder.js +62 -0
  60. package/dist/pain-recorder.js.map +1 -0
  61. package/dist/pain-signal-adapter.d.ts +37 -0
  62. package/dist/pain-signal-adapter.d.ts.map +1 -0
  63. package/dist/pain-signal-adapter.js +2 -0
  64. package/dist/pain-signal-adapter.js.map +1 -0
  65. package/dist/pain-signal.d.ts +76 -0
  66. package/dist/pain-signal.d.ts.map +1 -0
  67. package/dist/pain-signal.js +125 -0
  68. package/dist/pain-signal.js.map +1 -0
  69. package/dist/principle-injector.d.ts +67 -0
  70. package/dist/principle-injector.d.ts.map +1 -0
  71. package/dist/principle-injector.js +89 -0
  72. package/dist/principle-injector.js.map +1 -0
  73. package/dist/principle-tree-ledger.d.ts +106 -0
  74. package/dist/principle-tree-ledger.d.ts.map +1 -0
  75. package/dist/principle-tree-ledger.js +254 -0
  76. package/dist/principle-tree-ledger.js.map +1 -0
  77. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts +2 -0
  78. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.d.ts.map +1 -0
  79. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js +380 -0
  80. package/dist/prompt-builder/__tests__/empathy-keyword-matching.test.js.map +1 -0
  81. package/dist/prompt-builder/__tests__/focus-compression.test.d.ts +2 -0
  82. package/dist/prompt-builder/__tests__/focus-compression.test.d.ts.map +1 -0
  83. package/dist/prompt-builder/__tests__/focus-compression.test.js +265 -0
  84. package/dist/prompt-builder/__tests__/focus-compression.test.js.map +1 -0
  85. package/dist/prompt-builder/__tests__/principle-selection.test.d.ts +7 -0
  86. package/dist/prompt-builder/__tests__/principle-selection.test.d.ts.map +1 -0
  87. package/dist/prompt-builder/__tests__/principle-selection.test.js +214 -0
  88. package/dist/prompt-builder/__tests__/principle-selection.test.js.map +1 -0
  89. package/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts +7 -0
  90. package/dist/prompt-builder/__tests__/prompt-builder-core.test.d.ts.map +1 -0
  91. package/dist/prompt-builder/__tests__/prompt-builder-core.test.js +283 -0
  92. package/dist/prompt-builder/__tests__/prompt-builder-core.test.js.map +1 -0
  93. package/dist/prompt-builder/__tests__/routing-guidance.test.d.ts +11 -0
  94. package/dist/prompt-builder/__tests__/routing-guidance.test.d.ts.map +1 -0
  95. package/dist/prompt-builder/__tests__/routing-guidance.test.js +305 -0
  96. package/dist/prompt-builder/__tests__/routing-guidance.test.js.map +1 -0
  97. package/dist/prompt-builder/attitude-directive.d.ts +7 -0
  98. package/dist/prompt-builder/attitude-directive.d.ts.map +1 -0
  99. package/dist/prompt-builder/attitude-directive.js +39 -0
  100. package/dist/prompt-builder/attitude-directive.js.map +1 -0
  101. package/dist/prompt-builder/correction-cue.d.ts +15 -0
  102. package/dist/prompt-builder/correction-cue.d.ts.map +1 -0
  103. package/dist/prompt-builder/correction-cue.js +39 -0
  104. package/dist/prompt-builder/correction-cue.js.map +1 -0
  105. package/dist/prompt-builder/empathy-keyword-matching.d.ts +30 -0
  106. package/dist/prompt-builder/empathy-keyword-matching.d.ts.map +1 -0
  107. package/dist/prompt-builder/empathy-keyword-matching.js +142 -0
  108. package/dist/prompt-builder/empathy-keyword-matching.js.map +1 -0
  109. package/dist/prompt-builder/empathy-types.d.ts +62 -0
  110. package/dist/prompt-builder/empathy-types.d.ts.map +1 -0
  111. package/dist/prompt-builder/empathy-types.js +88 -0
  112. package/dist/prompt-builder/empathy-types.js.map +1 -0
  113. package/dist/prompt-builder/focus-compression.d.ts +63 -0
  114. package/dist/prompt-builder/focus-compression.d.ts.map +1 -0
  115. package/dist/prompt-builder/focus-compression.js +448 -0
  116. package/dist/prompt-builder/focus-compression.js.map +1 -0
  117. package/dist/prompt-builder/index.d.ts +29 -0
  118. package/dist/prompt-builder/index.d.ts.map +1 -0
  119. package/dist/prompt-builder/index.js +27 -0
  120. package/dist/prompt-builder/index.js.map +1 -0
  121. package/dist/prompt-builder/message-extraction.d.ts +7 -0
  122. package/dist/prompt-builder/message-extraction.d.ts.map +1 -0
  123. package/dist/prompt-builder/message-extraction.js +23 -0
  124. package/dist/prompt-builder/message-extraction.js.map +1 -0
  125. package/dist/prompt-builder/minimal-trigger.d.ts +7 -0
  126. package/dist/prompt-builder/minimal-trigger.d.ts.map +1 -0
  127. package/dist/prompt-builder/minimal-trigger.js +11 -0
  128. package/dist/prompt-builder/minimal-trigger.js.map +1 -0
  129. package/dist/prompt-builder/principle-selection.d.ts +68 -0
  130. package/dist/prompt-builder/principle-selection.d.ts.map +1 -0
  131. package/dist/prompt-builder/principle-selection.js +140 -0
  132. package/dist/prompt-builder/principle-selection.js.map +1 -0
  133. package/dist/prompt-builder/routing-guidance.d.ts +64 -0
  134. package/dist/prompt-builder/routing-guidance.d.ts.map +1 -0
  135. package/dist/prompt-builder/routing-guidance.js +227 -0
  136. package/dist/prompt-builder/routing-guidance.js.map +1 -0
  137. package/dist/prompt-builder/size-guard.d.ts +35 -0
  138. package/dist/prompt-builder/size-guard.d.ts.map +1 -0
  139. package/dist/prompt-builder/size-guard.js +144 -0
  140. package/dist/prompt-builder/size-guard.js.map +1 -0
  141. package/dist/prompt-builder/types.d.ts +28 -0
  142. package/dist/prompt-builder/types.d.ts.map +1 -0
  143. package/dist/prompt-builder/types.js +7 -0
  144. package/dist/prompt-builder/types.js.map +1 -0
  145. package/dist/runtime-v2/__tests__/admission-gate.test.d.ts +2 -0
  146. package/dist/runtime-v2/__tests__/admission-gate.test.d.ts.map +1 -0
  147. package/dist/runtime-v2/__tests__/admission-gate.test.js +126 -0
  148. package/dist/runtime-v2/__tests__/admission-gate.test.js.map +1 -0
  149. package/dist/runtime-v2/__tests__/architecture-regression.test.d.ts +2 -0
  150. package/dist/runtime-v2/__tests__/architecture-regression.test.d.ts.map +1 -0
  151. package/dist/runtime-v2/__tests__/architecture-regression.test.js +2990 -0
  152. package/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -0
  153. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts +2 -0
  154. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.d.ts.map +1 -0
  155. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js +608 -0
  156. package/dist/runtime-v2/__tests__/artificer-runner-vslice.test.js.map +1 -0
  157. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts +20 -0
  158. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.d.ts.map +1 -0
  159. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js +473 -0
  160. package/dist/runtime-v2/__tests__/attack-e2e-pipeline-smoke.test.js.map +1 -0
  161. package/dist/runtime-v2/__tests__/candidate-audit.test.d.ts +2 -0
  162. package/dist/runtime-v2/__tests__/candidate-audit.test.d.ts.map +1 -0
  163. package/dist/runtime-v2/__tests__/candidate-audit.test.js +100 -0
  164. package/dist/runtime-v2/__tests__/candidate-audit.test.js.map +1 -0
  165. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts +2 -0
  166. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.d.ts.map +1 -0
  167. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.js +276 -0
  168. package/dist/runtime-v2/__tests__/chain-integrity-attack.test.js.map +1 -0
  169. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts +2 -0
  170. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.d.ts.map +1 -0
  171. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js +561 -0
  172. package/dist/runtime-v2/__tests__/chain-integrity-real-path.test.js.map +1 -0
  173. package/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts +2 -0
  174. package/dist/runtime-v2/__tests__/control-plane-triage.test.d.ts.map +1 -0
  175. package/dist/runtime-v2/__tests__/control-plane-triage.test.js +107 -0
  176. package/dist/runtime-v2/__tests__/control-plane-triage.test.js.map +1 -0
  177. package/dist/runtime-v2/__tests__/correction-proposal.test.d.ts +2 -0
  178. package/dist/runtime-v2/__tests__/correction-proposal.test.d.ts.map +1 -0
  179. package/dist/runtime-v2/__tests__/correction-proposal.test.js +486 -0
  180. package/dist/runtime-v2/__tests__/correction-proposal.test.js.map +1 -0
  181. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts +2 -0
  182. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.d.ts.map +1 -0
  183. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.js +171 -0
  184. package/dist/runtime-v2/__tests__/dreamer-output-validator.test.js.map +1 -0
  185. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts +2 -0
  186. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.d.ts.map +1 -0
  187. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js +155 -0
  188. package/dist/runtime-v2/__tests__/dreamer-runner-real-llm.test.js.map +1 -0
  189. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts +2 -0
  190. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.d.ts.map +1 -0
  191. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js +515 -0
  192. package/dist/runtime-v2/__tests__/dreamer-runner-vslice.test.js.map +1 -0
  193. package/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts +2 -0
  194. package/dist/runtime-v2/__tests__/dreamer-runner.test.d.ts.map +1 -0
  195. package/dist/runtime-v2/__tests__/dreamer-runner.test.js +348 -0
  196. package/dist/runtime-v2/__tests__/dreamer-runner.test.js.map +1 -0
  197. package/dist/runtime-v2/__tests__/error-categories.test.d.ts +2 -0
  198. package/dist/runtime-v2/__tests__/error-categories.test.d.ts.map +1 -0
  199. package/dist/runtime-v2/__tests__/error-categories.test.js +149 -0
  200. package/dist/runtime-v2/__tests__/error-categories.test.js.map +1 -0
  201. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts +2 -0
  202. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.d.ts.map +1 -0
  203. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +1047 -0
  204. package/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -0
  205. package/dist/runtime-v2/__tests__/fixtures/index.d.ts +4 -0
  206. package/dist/runtime-v2/__tests__/fixtures/index.d.ts.map +1 -0
  207. package/dist/runtime-v2/__tests__/fixtures/index.js +3 -0
  208. package/dist/runtime-v2/__tests__/fixtures/index.js.map +1 -0
  209. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts +20 -0
  210. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.d.ts.map +1 -0
  211. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js +39 -0
  212. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.js.map +1 -0
  213. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts +2 -0
  214. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.d.ts.map +1 -0
  215. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js +111 -0
  216. package/dist/runtime-v2/__tests__/fixtures/llm-e2e-config.test.js.map +1 -0
  217. package/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts +20 -0
  218. package/dist/runtime-v2/__tests__/fixtures/test-helpers.d.ts.map +1 -0
  219. package/dist/runtime-v2/__tests__/fixtures/test-helpers.js +37 -0
  220. package/dist/runtime-v2/__tests__/fixtures/test-helpers.js.map +1 -0
  221. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts +2 -0
  222. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.d.ts.map +1 -0
  223. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.js +152 -0
  224. package/dist/runtime-v2/__tests__/full-chain-real-llm.test.js.map +1 -0
  225. package/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts +2 -0
  226. package/dist/runtime-v2/__tests__/full-trace-contract.test.d.ts.map +1 -0
  227. package/dist/runtime-v2/__tests__/full-trace-contract.test.js +552 -0
  228. package/dist/runtime-v2/__tests__/full-trace-contract.test.js.map +1 -0
  229. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts +2 -0
  230. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.d.ts.map +1 -0
  231. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.js +128 -0
  232. package/dist/runtime-v2/__tests__/gfi-workspace-health.test.js.map +1 -0
  233. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts +2 -0
  234. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.d.ts.map +1 -0
  235. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js +759 -0
  236. package/dist/runtime-v2/__tests__/golden-trace-candidate-builder.test.js.map +1 -0
  237. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts +2 -0
  238. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.d.ts.map +1 -0
  239. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js +231 -0
  240. package/dist/runtime-v2/__tests__/golden-trace-replay-validator.test.js.map +1 -0
  241. package/dist/runtime-v2/__tests__/golden-trace.test.d.ts +2 -0
  242. package/dist/runtime-v2/__tests__/golden-trace.test.d.ts.map +1 -0
  243. package/dist/runtime-v2/__tests__/golden-trace.test.js +335 -0
  244. package/dist/runtime-v2/__tests__/golden-trace.test.js.map +1 -0
  245. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts +2 -0
  246. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.d.ts.map +1 -0
  247. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js +307 -0
  248. package/dist/runtime-v2/__tests__/intake-to-internalization-bridge.test.js.map +1 -0
  249. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts +2 -0
  250. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.d.ts.map +1 -0
  251. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js +268 -0
  252. package/dist/runtime-v2/__tests__/internalization-chain-integrity-read-model.test.js.map +1 -0
  253. package/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts +2 -0
  254. package/dist/runtime-v2/__tests__/internalization-contracts.test.d.ts.map +1 -0
  255. package/dist/runtime-v2/__tests__/internalization-contracts.test.js +78 -0
  256. package/dist/runtime-v2/__tests__/internalization-contracts.test.js.map +1 -0
  257. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts +2 -0
  258. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.d.ts.map +1 -0
  259. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js +218 -0
  260. package/dist/runtime-v2/__tests__/internalization-integrity-remediation.test.js.map +1 -0
  261. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts +2 -0
  262. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.d.ts.map +1 -0
  263. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +569 -0
  264. package/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -0
  265. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts +2 -0
  266. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.d.ts.map +1 -0
  267. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js +448 -0
  268. package/dist/runtime-v2/__tests__/internalization-peer-runner-contracts.test.js.map +1 -0
  269. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts +2 -0
  270. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.d.ts.map +1 -0
  271. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js +415 -0
  272. package/dist/runtime-v2/__tests__/internalization-queue-read-model.test.js.map +1 -0
  273. package/dist/runtime-v2/__tests__/internalization-route.test.d.ts +2 -0
  274. package/dist/runtime-v2/__tests__/internalization-route.test.d.ts.map +1 -0
  275. package/dist/runtime-v2/__tests__/internalization-route.test.js +136 -0
  276. package/dist/runtime-v2/__tests__/internalization-route.test.js.map +1 -0
  277. package/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts +2 -0
  278. package/dist/runtime-v2/__tests__/internalization-state-machine.test.d.ts.map +1 -0
  279. package/dist/runtime-v2/__tests__/internalization-state-machine.test.js +679 -0
  280. package/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -0
  281. package/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts +2 -0
  282. package/dist/runtime-v2/__tests__/l1-hard-cap.test.d.ts.map +1 -0
  283. package/dist/runtime-v2/__tests__/l1-hard-cap.test.js +157 -0
  284. package/dist/runtime-v2/__tests__/l1-hard-cap.test.js.map +1 -0
  285. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts +2 -0
  286. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.d.ts.map +1 -0
  287. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js +215 -0
  288. package/dist/runtime-v2/__tests__/nocturnal-compliance-trust-boundary.test.js.map +1 -0
  289. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts +2 -0
  290. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.d.ts.map +1 -0
  291. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js +102 -0
  292. package/dist/runtime-v2/__tests__/operator-health-cold-start-guard.test.js.map +1 -0
  293. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts +2 -0
  294. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.d.ts.map +1 -0
  295. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js +148 -0
  296. package/dist/runtime-v2/__tests__/operator-health-gfi-degraded.test.js.map +1 -0
  297. package/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts +2 -0
  298. package/dist/runtime-v2/__tests__/operator-health-gfi.test.d.ts.map +1 -0
  299. package/dist/runtime-v2/__tests__/operator-health-gfi.test.js +113 -0
  300. package/dist/runtime-v2/__tests__/operator-health-gfi.test.js.map +1 -0
  301. package/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts +2 -0
  302. package/dist/runtime-v2/__tests__/operator-health-read-model.test.d.ts.map +1 -0
  303. package/dist/runtime-v2/__tests__/operator-health-read-model.test.js +136 -0
  304. package/dist/runtime-v2/__tests__/operator-health-read-model.test.js.map +1 -0
  305. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts +2 -0
  306. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.d.ts.map +1 -0
  307. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.js +248 -0
  308. package/dist/runtime-v2/__tests__/pain-chain-read-model.test.js.map +1 -0
  309. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts +2 -0
  310. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.d.ts.map +1 -0
  311. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.js +328 -0
  312. package/dist/runtime-v2/__tests__/pain-evidence-contract.test.js.map +1 -0
  313. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts +2 -0
  314. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.d.ts.map +1 -0
  315. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.js +267 -0
  316. package/dist/runtime-v2/__tests__/pain-flood-simulation.test.js.map +1 -0
  317. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts +2 -0
  318. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.d.ts.map +1 -0
  319. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js +147 -0
  320. package/dist/runtime-v2/__tests__/pain-signal-bridge-retried.test.js.map +1 -0
  321. package/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts +2 -0
  322. package/dist/runtime-v2/__tests__/pain-signal-observability.test.d.ts.map +1 -0
  323. package/dist/runtime-v2/__tests__/pain-signal-observability.test.js +151 -0
  324. package/dist/runtime-v2/__tests__/pain-signal-observability.test.js.map +1 -0
  325. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts +2 -0
  326. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.d.ts.map +1 -0
  327. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.js +209 -0
  328. package/dist/runtime-v2/__tests__/pain-to-principle-service.test.js.map +1 -0
  329. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts +2 -0
  330. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.d.ts.map +1 -0
  331. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js +167 -0
  332. package/dist/runtime-v2/__tests__/philosopher-runner-real-llm.test.js.map +1 -0
  333. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts +2 -0
  334. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.d.ts.map +1 -0
  335. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js +338 -0
  336. package/dist/runtime-v2/__tests__/philosopher-runner-vslice.test.js.map +1 -0
  337. package/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts +2 -0
  338. package/dist/runtime-v2/__tests__/pi-artifact-store.test.d.ts.map +1 -0
  339. package/dist/runtime-v2/__tests__/pi-artifact-store.test.js +247 -0
  340. package/dist/runtime-v2/__tests__/pi-artifact-store.test.js.map +1 -0
  341. package/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts +8 -0
  342. package/dist/runtime-v2/__tests__/pitask-metadata.test.d.ts.map +1 -0
  343. package/dist/runtime-v2/__tests__/pitask-metadata.test.js +333 -0
  344. package/dist/runtime-v2/__tests__/pitask-metadata.test.js.map +1 -0
  345. package/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts +2 -0
  346. package/dist/runtime-v2/__tests__/principle-compiler-core.test.d.ts.map +1 -0
  347. package/dist/runtime-v2/__tests__/principle-compiler-core.test.js +141 -0
  348. package/dist/runtime-v2/__tests__/principle-compiler-core.test.js.map +1 -0
  349. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts +2 -0
  350. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.d.ts.map +1 -0
  351. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js +524 -0
  352. package/dist/runtime-v2/__tests__/production-canary-fixture-gate.test.js.map +1 -0
  353. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts +2 -0
  354. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.d.ts.map +1 -0
  355. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.js +428 -0
  356. package/dist/runtime-v2/__tests__/proven-channel-baseline.test.js.map +1 -0
  357. package/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts +2 -0
  358. package/dist/runtime-v2/__tests__/pruning-read-model.test.d.ts.map +1 -0
  359. package/dist/runtime-v2/__tests__/pruning-read-model.test.js +783 -0
  360. package/dist/runtime-v2/__tests__/pruning-read-model.test.js.map +1 -0
  361. package/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts +2 -0
  362. package/dist/runtime-v2/__tests__/pruning-review-log.test.d.ts.map +1 -0
  363. package/dist/runtime-v2/__tests__/pruning-review-log.test.js +159 -0
  364. package/dist/runtime-v2/__tests__/pruning-review-log.test.js.map +1 -0
  365. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts +2 -0
  366. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.d.ts.map +1 -0
  367. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.js +83 -0
  368. package/dist/runtime-v2/__tests__/recovery-sweep-service.test.js.map +1 -0
  369. package/dist/runtime-v2/__tests__/remediation-contract.test.d.ts +2 -0
  370. package/dist/runtime-v2/__tests__/remediation-contract.test.d.ts.map +1 -0
  371. package/dist/runtime-v2/__tests__/remediation-contract.test.js +39 -0
  372. package/dist/runtime-v2/__tests__/remediation-contract.test.js.map +1 -0
  373. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts +2 -0
  374. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.d.ts.map +1 -0
  375. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +658 -0
  376. package/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -0
  377. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts +2 -0
  378. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.d.ts.map +1 -0
  379. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.js +509 -0
  380. package/dist/runtime-v2/__tests__/rule-host-evaluator.test.js.map +1 -0
  381. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts +2 -0
  382. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.d.ts.map +1 -0
  383. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js +535 -0
  384. package/dist/runtime-v2/__tests__/rulehost-oob-defense-simulation.test.js.map +1 -0
  385. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts +2 -0
  386. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.d.ts.map +1 -0
  387. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.js +256 -0
  388. package/dist/runtime-v2/__tests__/runtime-config-boundary.test.js.map +1 -0
  389. package/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts +2 -0
  390. package/dist/runtime-v2/__tests__/runtime-state-handle.test.d.ts.map +1 -0
  391. package/dist/runtime-v2/__tests__/runtime-state-handle.test.js +76 -0
  392. package/dist/runtime-v2/__tests__/runtime-state-handle.test.js.map +1 -0
  393. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts +2 -0
  394. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.d.ts.map +1 -0
  395. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js +208 -0
  396. package/dist/runtime-v2/__tests__/schema-conformance-read-model.test.js.map +1 -0
  397. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts +2 -0
  398. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.d.ts.map +1 -0
  399. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js +156 -0
  400. package/dist/runtime-v2/__tests__/scribe-runner-real-llm.test.js.map +1 -0
  401. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts +2 -0
  402. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.d.ts.map +1 -0
  403. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js +430 -0
  404. package/dist/runtime-v2/__tests__/scribe-runner-vslice.test.js.map +1 -0
  405. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts +2 -0
  406. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.d.ts.map +1 -0
  407. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js +148 -0
  408. package/dist/runtime-v2/__tests__/sqlite-confirm-first-state-store.test.js.map +1 -0
  409. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts +2 -0
  410. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.d.ts.map +1 -0
  411. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js +95 -0
  412. package/dist/runtime-v2/__tests__/sqlite-connection-readonly.test.js.map +1 -0
  413. package/dist/runtime-v2/__tests__/story-a-demo.test.d.ts +2 -0
  414. package/dist/runtime-v2/__tests__/story-a-demo.test.d.ts.map +1 -0
  415. package/dist/runtime-v2/__tests__/story-a-demo.test.js +257 -0
  416. package/dist/runtime-v2/__tests__/story-a-demo.test.js.map +1 -0
  417. package/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts +2 -0
  418. package/dist/runtime-v2/__tests__/synthetic-baseline.test.d.ts.map +1 -0
  419. package/dist/runtime-v2/__tests__/synthetic-baseline.test.js +155 -0
  420. package/dist/runtime-v2/__tests__/synthetic-baseline.test.js.map +1 -0
  421. package/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts +2 -0
  422. package/dist/runtime-v2/__tests__/task-state-semantics.test.d.ts.map +1 -0
  423. package/dist/runtime-v2/__tests__/task-state-semantics.test.js +145 -0
  424. package/dist/runtime-v2/__tests__/task-state-semantics.test.js.map +1 -0
  425. package/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts +2 -0
  426. package/dist/runtime-v2/__tests__/task-three-strikes.test.d.ts.map +1 -0
  427. package/dist/runtime-v2/__tests__/task-three-strikes.test.js +268 -0
  428. package/dist/runtime-v2/__tests__/task-three-strikes.test.js.map +1 -0
  429. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts +2 -0
  430. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.d.ts.map +1 -0
  431. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.js +726 -0
  432. package/dist/runtime-v2/__tests__/trace-refiner-agent.test.js.map +1 -0
  433. package/dist/runtime-v2/__tests__/trace-refiner.test.d.ts +2 -0
  434. package/dist/runtime-v2/__tests__/trace-refiner.test.d.ts.map +1 -0
  435. package/dist/runtime-v2/__tests__/trace-refiner.test.js +527 -0
  436. package/dist/runtime-v2/__tests__/trace-refiner.test.js.map +1 -0
  437. package/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts +2 -0
  438. package/dist/runtime-v2/__tests__/trainer-output-validator.test.d.ts.map +1 -0
  439. package/dist/runtime-v2/__tests__/trainer-output-validator.test.js +257 -0
  440. package/dist/runtime-v2/__tests__/trainer-output-validator.test.js.map +1 -0
  441. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts +2 -0
  442. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.d.ts.map +1 -0
  443. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js +506 -0
  444. package/dist/runtime-v2/__tests__/trainer-runner-vslice.test.js.map +1 -0
  445. package/dist/runtime-v2/__tests__/trajectory-store.test.d.ts +2 -0
  446. package/dist/runtime-v2/__tests__/trajectory-store.test.d.ts.map +1 -0
  447. package/dist/runtime-v2/__tests__/trajectory-store.test.js +127 -0
  448. package/dist/runtime-v2/__tests__/trajectory-store.test.js.map +1 -0
  449. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts +2 -0
  450. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.d.ts.map +1 -0
  451. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js +510 -0
  452. package/dist/runtime-v2/activation/__tests__/activation-dispatcher.test.js.map +1 -0
  453. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts +2 -0
  454. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.d.ts.map +1 -0
  455. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.js +117 -0
  456. package/dist/runtime-v2/activation/__tests__/approval-context-types.test.js.map +1 -0
  457. package/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts +2 -0
  458. package/dist/runtime-v2/activation/__tests__/approval-queue.test.d.ts.map +1 -0
  459. package/dist/runtime-v2/activation/__tests__/approval-queue.test.js +179 -0
  460. package/dist/runtime-v2/activation/__tests__/approval-queue.test.js.map +1 -0
  461. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts +2 -0
  462. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.d.ts.map +1 -0
  463. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js +174 -0
  464. package/dist/runtime-v2/activation/__tests__/approval-store-extended.test.js.map +1 -0
  465. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts +2 -0
  466. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.d.ts.map +1 -0
  467. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js +244 -0
  468. package/dist/runtime-v2/activation/__tests__/memory-activation-state-store.test.js.map +1 -0
  469. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts +2 -0
  470. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.d.ts.map +1 -0
  471. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js +109 -0
  472. package/dist/runtime-v2/activation/__tests__/sqlite-activation-state-store.test.js.map +1 -0
  473. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts +2 -0
  474. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.d.ts.map +1 -0
  475. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js +124 -0
  476. package/dist/runtime-v2/activation/__tests__/sqlite-approval-store.test.js.map +1 -0
  477. package/dist/runtime-v2/activation/activation-dispatcher.d.ts +18 -0
  478. package/dist/runtime-v2/activation/activation-dispatcher.d.ts.map +1 -0
  479. package/dist/runtime-v2/activation/activation-dispatcher.js +231 -0
  480. package/dist/runtime-v2/activation/activation-dispatcher.js.map +1 -0
  481. package/dist/runtime-v2/activation/activation-types.d.ts +195 -0
  482. package/dist/runtime-v2/activation/activation-types.d.ts.map +1 -0
  483. package/dist/runtime-v2/activation/activation-types.js +29 -0
  484. package/dist/runtime-v2/activation/activation-types.js.map +1 -0
  485. package/dist/runtime-v2/activation/approval-queue.d.ts +15 -0
  486. package/dist/runtime-v2/activation/approval-queue.d.ts.map +1 -0
  487. package/dist/runtime-v2/activation/approval-queue.js +50 -0
  488. package/dist/runtime-v2/activation/approval-queue.js.map +1 -0
  489. package/dist/runtime-v2/activation/index.d.ts +15 -0
  490. package/dist/runtime-v2/activation/index.d.ts.map +1 -0
  491. package/dist/runtime-v2/activation/index.js +11 -0
  492. package/dist/runtime-v2/activation/index.js.map +1 -0
  493. package/dist/runtime-v2/activation/low-risk-writers.d.ts +14 -0
  494. package/dist/runtime-v2/activation/low-risk-writers.d.ts.map +1 -0
  495. package/dist/runtime-v2/activation/low-risk-writers.js +83 -0
  496. package/dist/runtime-v2/activation/low-risk-writers.js.map +1 -0
  497. package/dist/runtime-v2/activation/memory-activation-state-store.d.ts +13 -0
  498. package/dist/runtime-v2/activation/memory-activation-state-store.d.ts.map +1 -0
  499. package/dist/runtime-v2/activation/memory-activation-state-store.js +28 -0
  500. package/dist/runtime-v2/activation/memory-activation-state-store.js.map +1 -0
  501. package/dist/runtime-v2/activation/memory-approval-store.d.ts +12 -0
  502. package/dist/runtime-v2/activation/memory-approval-store.d.ts.map +1 -0
  503. package/dist/runtime-v2/activation/memory-approval-store.js +102 -0
  504. package/dist/runtime-v2/activation/memory-approval-store.js.map +1 -0
  505. package/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts +10 -0
  506. package/dist/runtime-v2/activation/sqlite-activation-state-store.d.ts.map +1 -0
  507. package/dist/runtime-v2/activation/sqlite-activation-state-store.js +87 -0
  508. package/dist/runtime-v2/activation/sqlite-activation-state-store.js.map +1 -0
  509. package/dist/runtime-v2/activation/sqlite-approval-store.d.ts +14 -0
  510. package/dist/runtime-v2/activation/sqlite-approval-store.d.ts.map +1 -0
  511. package/dist/runtime-v2/activation/sqlite-approval-store.js +138 -0
  512. package/dist/runtime-v2/activation/sqlite-approval-store.js.map +1 -0
  513. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts +22 -0
  514. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.d.ts.map +1 -0
  515. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js +136 -0
  516. package/dist/runtime-v2/activation/sqlite-confirm-first-state-store.js.map +1 -0
  517. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts +2 -0
  518. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.d.ts.map +1 -0
  519. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +615 -0
  520. package/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -0
  521. package/dist/runtime-v2/activation/writers/index.d.ts +3 -0
  522. package/dist/runtime-v2/activation/writers/index.d.ts.map +1 -0
  523. package/dist/runtime-v2/activation/writers/index.js +2 -0
  524. package/dist/runtime-v2/activation/writers/index.js.map +1 -0
  525. package/dist/runtime-v2/activation/writers/rule-host-writer.d.ts +14 -0
  526. package/dist/runtime-v2/activation/writers/rule-host-writer.d.ts.map +1 -0
  527. package/dist/runtime-v2/activation/writers/rule-host-writer.js +135 -0
  528. package/dist/runtime-v2/activation/writers/rule-host-writer.js.map +1 -0
  529. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts +2 -0
  530. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.d.ts.map +1 -0
  531. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js +553 -0
  532. package/dist/runtime-v2/adapter/__tests__/chaos-json-repair.test.js.map +1 -0
  533. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts +2 -0
  534. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.d.ts.map +1 -0
  535. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.js +148 -0
  536. package/dist/runtime-v2/adapter/__tests__/json-extractor.test.js.map +1 -0
  537. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts +2 -0
  538. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.d.ts.map +1 -0
  539. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js +565 -0
  540. package/dist/runtime-v2/adapter/__tests__/openclaw-cli-runtime-adapter.test.js.map +1 -0
  541. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts +2 -0
  542. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.d.ts.map +1 -0
  543. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js +305 -0
  544. package/dist/runtime-v2/adapter/__tests__/output-repair-contract.test.js.map +1 -0
  545. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts +2 -0
  546. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.d.ts.map +1 -0
  547. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js +1362 -0
  548. package/dist/runtime-v2/adapter/__tests__/pi-ai-runtime-adapter.test.js.map +1 -0
  549. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts +2 -0
  550. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.d.ts.map +1 -0
  551. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js +245 -0
  552. package/dist/runtime-v2/adapter/__tests__/runtime-config-contract.test.js.map +1 -0
  553. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts +2 -0
  554. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.d.ts.map +1 -0
  555. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js +494 -0
  556. package/dist/runtime-v2/adapter/__tests__/structured-output-repair.test.js.map +1 -0
  557. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts +2 -0
  558. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.d.ts.map +1 -0
  559. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js +123 -0
  560. package/dist/runtime-v2/adapter/__tests__/test-double-runtime-adapter.test.js.map +1 -0
  561. package/dist/runtime-v2/adapter/index.d.ts +10 -0
  562. package/dist/runtime-v2/adapter/index.d.ts.map +1 -0
  563. package/dist/runtime-v2/adapter/index.js +6 -0
  564. package/dist/runtime-v2/adapter/index.js.map +1 -0
  565. package/dist/runtime-v2/adapter/json-extractor.d.ts +14 -0
  566. package/dist/runtime-v2/adapter/json-extractor.d.ts.map +1 -0
  567. package/dist/runtime-v2/adapter/json-extractor.js +97 -0
  568. package/dist/runtime-v2/adapter/json-extractor.js.map +1 -0
  569. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts +66 -0
  570. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.d.ts.map +1 -0
  571. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js +705 -0
  572. package/dist/runtime-v2/adapter/openclaw-cli-runtime-adapter.js.map +1 -0
  573. package/dist/runtime-v2/adapter/output-repair-contract.d.ts +50 -0
  574. package/dist/runtime-v2/adapter/output-repair-contract.d.ts.map +1 -0
  575. package/dist/runtime-v2/adapter/output-repair-contract.js +96 -0
  576. package/dist/runtime-v2/adapter/output-repair-contract.js.map +1 -0
  577. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts +114 -0
  578. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.d.ts.map +1 -0
  579. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js +1109 -0
  580. package/dist/runtime-v2/adapter/pi-ai-runtime-adapter.js.map +1 -0
  581. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts +22 -0
  582. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.d.ts.map +1 -0
  583. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js +84 -0
  584. package/dist/runtime-v2/adapter/principle-tree-ledger-adapter.js.map +1 -0
  585. package/dist/runtime-v2/adapter/structured-output-repair.d.ts +95 -0
  586. package/dist/runtime-v2/adapter/structured-output-repair.d.ts.map +1 -0
  587. package/dist/runtime-v2/adapter/structured-output-repair.js +259 -0
  588. package/dist/runtime-v2/adapter/structured-output-repair.js.map +1 -0
  589. package/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts +35 -0
  590. package/dist/runtime-v2/adapter/test-double-runtime-adapter.d.ts.map +1 -0
  591. package/dist/runtime-v2/adapter/test-double-runtime-adapter.js +94 -0
  592. package/dist/runtime-v2/adapter/test-double-runtime-adapter.js.map +1 -0
  593. package/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts +21 -0
  594. package/dist/runtime-v2/adapter/tools/diagnostician-tool.d.ts.map +1 -0
  595. package/dist/runtime-v2/adapter/tools/diagnostician-tool.js +20 -0
  596. package/dist/runtime-v2/adapter/tools/diagnostician-tool.js.map +1 -0
  597. package/dist/runtime-v2/admission-gate.d.ts +27 -0
  598. package/dist/runtime-v2/admission-gate.d.ts.map +1 -0
  599. package/dist/runtime-v2/admission-gate.js +57 -0
  600. package/dist/runtime-v2/admission-gate.js.map +1 -0
  601. package/dist/runtime-v2/agent-spec.d.ts +86 -0
  602. package/dist/runtime-v2/agent-spec.d.ts.map +1 -0
  603. package/dist/runtime-v2/agent-spec.js +74 -0
  604. package/dist/runtime-v2/agent-spec.js.map +1 -0
  605. package/dist/runtime-v2/candidate-audit.d.ts +8 -0
  606. package/dist/runtime-v2/candidate-audit.d.ts.map +1 -0
  607. package/dist/runtime-v2/candidate-audit.js +47 -0
  608. package/dist/runtime-v2/candidate-audit.js.map +1 -0
  609. package/dist/runtime-v2/candidate-intake-service.d.ts +43 -0
  610. package/dist/runtime-v2/candidate-intake-service.d.ts.map +1 -0
  611. package/dist/runtime-v2/candidate-intake-service.js +117 -0
  612. package/dist/runtime-v2/candidate-intake-service.js.map +1 -0
  613. package/dist/runtime-v2/candidate-intake.d.ts +219 -0
  614. package/dist/runtime-v2/candidate-intake.d.ts.map +1 -0
  615. package/dist/runtime-v2/candidate-intake.js +178 -0
  616. package/dist/runtime-v2/candidate-intake.js.map +1 -0
  617. package/dist/runtime-v2/cli/diagnose.d.ts +127 -0
  618. package/dist/runtime-v2/cli/diagnose.d.ts.map +1 -0
  619. package/dist/runtime-v2/cli/diagnose.js +113 -0
  620. package/dist/runtime-v2/cli/diagnose.js.map +1 -0
  621. package/dist/runtime-v2/cli/index.d.ts +5 -0
  622. package/dist/runtime-v2/cli/index.d.ts.map +1 -0
  623. package/dist/runtime-v2/cli/index.js +3 -0
  624. package/dist/runtime-v2/cli/index.js.map +1 -0
  625. package/dist/runtime-v2/cli/probe.d.ts +31 -0
  626. package/dist/runtime-v2/cli/probe.d.ts.map +1 -0
  627. package/dist/runtime-v2/cli/probe.js +58 -0
  628. package/dist/runtime-v2/cli/probe.js.map +1 -0
  629. package/dist/runtime-v2/context-payload.d.ts +298 -0
  630. package/dist/runtime-v2/context-payload.d.ts.map +1 -0
  631. package/dist/runtime-v2/context-payload.js +140 -0
  632. package/dist/runtime-v2/context-payload.js.map +1 -0
  633. package/dist/runtime-v2/control-plane-triage.d.ts +32 -0
  634. package/dist/runtime-v2/control-plane-triage.d.ts.map +1 -0
  635. package/dist/runtime-v2/control-plane-triage.js +220 -0
  636. package/dist/runtime-v2/control-plane-triage.js.map +1 -0
  637. package/dist/runtime-v2/correction/correction-types.d.ts +87 -0
  638. package/dist/runtime-v2/correction/correction-types.d.ts.map +1 -0
  639. package/dist/runtime-v2/correction/correction-types.js +66 -0
  640. package/dist/runtime-v2/correction/correction-types.js.map +1 -0
  641. package/dist/runtime-v2/correction/index.d.ts +2 -0
  642. package/dist/runtime-v2/correction/index.d.ts.map +1 -0
  643. package/dist/runtime-v2/correction/index.js +2 -0
  644. package/dist/runtime-v2/correction/index.js.map +1 -0
  645. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts +2 -0
  646. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.d.ts.map +1 -0
  647. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js +170 -0
  648. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.integration.test.js.map +1 -0
  649. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts +2 -0
  650. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.d.ts.map +1 -0
  651. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js +314 -0
  652. package/dist/runtime-v2/diagnostician/__tests__/diagnostician-prompt-builder.test.js.map +1 -0
  653. package/dist/runtime-v2/diagnostician-output.d.ts +94 -0
  654. package/dist/runtime-v2/diagnostician-output.d.ts.map +1 -0
  655. package/dist/runtime-v2/diagnostician-output.js +65 -0
  656. package/dist/runtime-v2/diagnostician-output.js.map +1 -0
  657. package/dist/runtime-v2/diagnostician-prompt-builder.d.ts +125 -0
  658. package/dist/runtime-v2/diagnostician-prompt-builder.d.ts.map +1 -0
  659. package/dist/runtime-v2/diagnostician-prompt-builder.js +154 -0
  660. package/dist/runtime-v2/diagnostician-prompt-builder.js.map +1 -0
  661. package/dist/runtime-v2/error-categories.d.ts +42 -0
  662. package/dist/runtime-v2/error-categories.d.ts.map +1 -0
  663. package/dist/runtime-v2/error-categories.js +119 -0
  664. package/dist/runtime-v2/error-categories.js.map +1 -0
  665. package/dist/runtime-v2/evolution/evolution-types.d.ts +709 -0
  666. package/dist/runtime-v2/evolution/evolution-types.d.ts.map +1 -0
  667. package/dist/runtime-v2/evolution/evolution-types.js +410 -0
  668. package/dist/runtime-v2/evolution/evolution-types.js.map +1 -0
  669. package/dist/runtime-v2/evolution/index.d.ts +2 -0
  670. package/dist/runtime-v2/evolution/index.d.ts.map +1 -0
  671. package/dist/runtime-v2/evolution/index.js +2 -0
  672. package/dist/runtime-v2/evolution/index.js.map +1 -0
  673. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts +2 -0
  674. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.d.ts.map +1 -0
  675. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +298 -0
  676. package/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -0
  677. package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts +35 -0
  678. package/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -0
  679. package/dist/runtime-v2/feature-flags/feature-flag-contract.js +124 -0
  680. package/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -0
  681. package/dist/runtime-v2/feature-flags/index.d.ts +3 -0
  682. package/dist/runtime-v2/feature-flags/index.d.ts.map +1 -0
  683. package/dist/runtime-v2/feature-flags/index.js +2 -0
  684. package/dist/runtime-v2/feature-flags/index.js.map +1 -0
  685. package/dist/runtime-v2/full-trace-contract.d.ts +79 -0
  686. package/dist/runtime-v2/full-trace-contract.d.ts.map +1 -0
  687. package/dist/runtime-v2/full-trace-contract.js +464 -0
  688. package/dist/runtime-v2/full-trace-contract.js.map +1 -0
  689. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts +2 -0
  690. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.d.ts.map +1 -0
  691. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js +626 -0
  692. package/dist/runtime-v2/gfi/__tests__/gfi-kernel.test.js.map +1 -0
  693. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts +2 -0
  694. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.d.ts.map +1 -0
  695. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js +212 -0
  696. package/dist/runtime-v2/gfi/__tests__/gfi-read-model.test.js.map +1 -0
  697. package/dist/runtime-v2/gfi/gfi-kernel.d.ts +12 -0
  698. package/dist/runtime-v2/gfi/gfi-kernel.d.ts.map +1 -0
  699. package/dist/runtime-v2/gfi/gfi-kernel.js +148 -0
  700. package/dist/runtime-v2/gfi/gfi-kernel.js.map +1 -0
  701. package/dist/runtime-v2/gfi/gfi-policy.d.ts +3 -0
  702. package/dist/runtime-v2/gfi/gfi-policy.d.ts.map +1 -0
  703. package/dist/runtime-v2/gfi/gfi-policy.js +23 -0
  704. package/dist/runtime-v2/gfi/gfi-policy.js.map +1 -0
  705. package/dist/runtime-v2/gfi/gfi-read-model.d.ts +78 -0
  706. package/dist/runtime-v2/gfi/gfi-read-model.d.ts.map +1 -0
  707. package/dist/runtime-v2/gfi/gfi-read-model.js +129 -0
  708. package/dist/runtime-v2/gfi/gfi-read-model.js.map +1 -0
  709. package/dist/runtime-v2/gfi/gfi-types.d.ts +70 -0
  710. package/dist/runtime-v2/gfi/gfi-types.d.ts.map +1 -0
  711. package/dist/runtime-v2/gfi/gfi-types.js +2 -0
  712. package/dist/runtime-v2/gfi/gfi-types.js.map +1 -0
  713. package/dist/runtime-v2/gfi/index.d.ts +6 -0
  714. package/dist/runtime-v2/gfi/index.d.ts.map +1 -0
  715. package/dist/runtime-v2/gfi/index.js +4 -0
  716. package/dist/runtime-v2/gfi/index.js.map +1 -0
  717. package/dist/runtime-v2/golden-trace-candidate-builder.d.ts +23 -0
  718. package/dist/runtime-v2/golden-trace-candidate-builder.d.ts.map +1 -0
  719. package/dist/runtime-v2/golden-trace-candidate-builder.js +193 -0
  720. package/dist/runtime-v2/golden-trace-candidate-builder.js.map +1 -0
  721. package/dist/runtime-v2/golden-trace-replay-adapter.d.ts +18 -0
  722. package/dist/runtime-v2/golden-trace-replay-adapter.d.ts.map +1 -0
  723. package/dist/runtime-v2/golden-trace-replay-adapter.js +18 -0
  724. package/dist/runtime-v2/golden-trace-replay-adapter.js.map +1 -0
  725. package/dist/runtime-v2/golden-trace-replay-validator.d.ts +42 -0
  726. package/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +1 -0
  727. package/dist/runtime-v2/golden-trace-replay-validator.js +220 -0
  728. package/dist/runtime-v2/golden-trace-replay-validator.js.map +1 -0
  729. package/dist/runtime-v2/golden-trace.d.ts +80 -0
  730. package/dist/runtime-v2/golden-trace.d.ts.map +1 -0
  731. package/dist/runtime-v2/golden-trace.js +158 -0
  732. package/dist/runtime-v2/golden-trace.js.map +1 -0
  733. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts +2 -0
  734. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.d.ts.map +1 -0
  735. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js +92 -0
  736. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-config-resolve.test.js.map +1 -0
  737. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts +2 -0
  738. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.d.ts.map +1 -0
  739. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js +134 -0
  740. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-decision.test.js.map +1 -0
  741. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts +2 -0
  742. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.d.ts.map +1 -0
  743. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js +226 -0
  744. package/dist/runtime-v2/idle-trigger/__tests__/idle-trigger-edge-cases.test.js.map +1 -0
  745. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts +3 -0
  746. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.d.ts.map +1 -0
  747. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.js +5 -0
  748. package/dist/runtime-v2/idle-trigger/idle-trigger-decision.js.map +1 -0
  749. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts +4 -0
  750. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.d.ts.map +1 -0
  751. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.js +81 -0
  752. package/dist/runtime-v2/idle-trigger/idle-trigger-policy.js.map +1 -0
  753. package/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts +29 -0
  754. package/dist/runtime-v2/idle-trigger/idle-trigger-types.d.ts.map +1 -0
  755. package/dist/runtime-v2/idle-trigger/idle-trigger-types.js +15 -0
  756. package/dist/runtime-v2/idle-trigger/idle-trigger-types.js.map +1 -0
  757. package/dist/runtime-v2/idle-trigger/index.d.ts +5 -0
  758. package/dist/runtime-v2/idle-trigger/index.d.ts.map +1 -0
  759. package/dist/runtime-v2/idle-trigger/index.js +4 -0
  760. package/dist/runtime-v2/idle-trigger/index.js.map +1 -0
  761. package/dist/runtime-v2/index.d.ts +281 -0
  762. package/dist/runtime-v2/index.d.ts.map +1 -0
  763. package/dist/runtime-v2/index.js +224 -0
  764. package/dist/runtime-v2/index.js.map +1 -0
  765. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts +2 -0
  766. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.d.ts.map +1 -0
  767. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js +57 -0
  768. package/dist/runtime-v2/internalization/__tests__/artificer-prompt-builder.test.js.map +1 -0
  769. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts +2 -0
  770. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.d.ts.map +1 -0
  771. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js +182 -0
  772. package/dist/runtime-v2/internalization/__tests__/dreamer-prompt-builder.test.js.map +1 -0
  773. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts +2 -0
  774. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.d.ts.map +1 -0
  775. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js +112 -0
  776. package/dist/runtime-v2/internalization/__tests__/evaluator-prompt-builder.test.js.map +1 -0
  777. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts +2 -0
  778. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.d.ts.map +1 -0
  779. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js +176 -0
  780. package/dist/runtime-v2/internalization/__tests__/internalization-job-graph.test.js.map +1 -0
  781. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts +2 -0
  782. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.d.ts.map +1 -0
  783. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js +297 -0
  784. package/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js.map +1 -0
  785. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts +2 -0
  786. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.d.ts.map +1 -0
  787. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js +149 -0
  788. package/dist/runtime-v2/internalization/__tests__/philosopher-prompt-builder.test.js.map +1 -0
  789. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts +2 -0
  790. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.d.ts.map +1 -0
  791. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js +92 -0
  792. package/dist/runtime-v2/internalization/__tests__/queue-actionability.test.js.map +1 -0
  793. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts +2 -0
  794. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.d.ts.map +1 -0
  795. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js +431 -0
  796. package/dist/runtime-v2/internalization/__tests__/refiner-rulehost-gate.test.js.map +1 -0
  797. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts +2 -0
  798. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.d.ts.map +1 -0
  799. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js +763 -0
  800. package/dist/runtime-v2/internalization/__tests__/refiner-sandbox-wrapper.test.js.map +1 -0
  801. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts +2 -0
  802. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.d.ts.map +1 -0
  803. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js +75 -0
  804. package/dist/runtime-v2/internalization/__tests__/rollout-reviewer-prompt-builder.test.js.map +1 -0
  805. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts +2 -0
  806. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.d.ts.map +1 -0
  807. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js +56 -0
  808. package/dist/runtime-v2/internalization/__tests__/scribe-prompt-builder.test.js.map +1 -0
  809. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts +2 -0
  810. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.d.ts.map +1 -0
  811. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js +141 -0
  812. package/dist/runtime-v2/internalization/__tests__/trainer-prompt-builder.test.js.map +1 -0
  813. package/dist/runtime-v2/internalization/artificer-output.d.ts +67 -0
  814. package/dist/runtime-v2/internalization/artificer-output.d.ts.map +1 -0
  815. package/dist/runtime-v2/internalization/artificer-output.js +103 -0
  816. package/dist/runtime-v2/internalization/artificer-output.js.map +1 -0
  817. package/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts +24 -0
  818. package/dist/runtime-v2/internalization/artificer-prompt-builder.d.ts.map +1 -0
  819. package/dist/runtime-v2/internalization/artificer-prompt-builder.js +62 -0
  820. package/dist/runtime-v2/internalization/artificer-prompt-builder.js.map +1 -0
  821. package/dist/runtime-v2/internalization/artificer-runner.d.ts +77 -0
  822. package/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -0
  823. package/dist/runtime-v2/internalization/artificer-runner.js +521 -0
  824. package/dist/runtime-v2/internalization/artificer-runner.js.map +1 -0
  825. package/dist/runtime-v2/internalization/compile-result.d.ts +20 -0
  826. package/dist/runtime-v2/internalization/compile-result.d.ts.map +1 -0
  827. package/dist/runtime-v2/internalization/compile-result.js +8 -0
  828. package/dist/runtime-v2/internalization/compile-result.js.map +1 -0
  829. package/dist/runtime-v2/internalization/correction-proposal.d.ts +38 -0
  830. package/dist/runtime-v2/internalization/correction-proposal.d.ts.map +1 -0
  831. package/dist/runtime-v2/internalization/correction-proposal.js +322 -0
  832. package/dist/runtime-v2/internalization/correction-proposal.js.map +1 -0
  833. package/dist/runtime-v2/internalization/deprecated-readiness.d.ts +20 -0
  834. package/dist/runtime-v2/internalization/deprecated-readiness.d.ts.map +1 -0
  835. package/dist/runtime-v2/internalization/deprecated-readiness.js +75 -0
  836. package/dist/runtime-v2/internalization/deprecated-readiness.js.map +1 -0
  837. package/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts +2 -0
  838. package/dist/runtime-v2/internalization/deprecated-readiness.test.d.ts.map +1 -0
  839. package/dist/runtime-v2/internalization/deprecated-readiness.test.js +127 -0
  840. package/dist/runtime-v2/internalization/deprecated-readiness.test.js.map +1 -0
  841. package/dist/runtime-v2/internalization/dreamer-output.d.ts +120 -0
  842. package/dist/runtime-v2/internalization/dreamer-output.d.ts.map +1 -0
  843. package/dist/runtime-v2/internalization/dreamer-output.js +92 -0
  844. package/dist/runtime-v2/internalization/dreamer-output.js.map +1 -0
  845. package/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts +41 -0
  846. package/dist/runtime-v2/internalization/dreamer-prompt-builder.d.ts.map +1 -0
  847. package/dist/runtime-v2/internalization/dreamer-prompt-builder.js +43 -0
  848. package/dist/runtime-v2/internalization/dreamer-prompt-builder.js.map +1 -0
  849. package/dist/runtime-v2/internalization/dreamer-runner.d.ts +134 -0
  850. package/dist/runtime-v2/internalization/dreamer-runner.d.ts.map +1 -0
  851. package/dist/runtime-v2/internalization/dreamer-runner.js +636 -0
  852. package/dist/runtime-v2/internalization/dreamer-runner.js.map +1 -0
  853. package/dist/runtime-v2/internalization/evaluator-output.d.ts +71 -0
  854. package/dist/runtime-v2/internalization/evaluator-output.d.ts.map +1 -0
  855. package/dist/runtime-v2/internalization/evaluator-output.js +113 -0
  856. package/dist/runtime-v2/internalization/evaluator-output.js.map +1 -0
  857. package/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts +24 -0
  858. package/dist/runtime-v2/internalization/evaluator-prompt-builder.d.ts.map +1 -0
  859. package/dist/runtime-v2/internalization/evaluator-prompt-builder.js +49 -0
  860. package/dist/runtime-v2/internalization/evaluator-prompt-builder.js.map +1 -0
  861. package/dist/runtime-v2/internalization/evaluator-runner.d.ts +80 -0
  862. package/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -0
  863. package/dist/runtime-v2/internalization/evaluator-runner.js +661 -0
  864. package/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -0
  865. package/dist/runtime-v2/internalization/index.d.ts +81 -0
  866. package/dist/runtime-v2/internalization/index.d.ts.map +1 -0
  867. package/dist/runtime-v2/internalization/index.js +47 -0
  868. package/dist/runtime-v2/internalization/index.js.map +1 -0
  869. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts +57 -0
  870. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.d.ts.map +1 -0
  871. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.js +99 -0
  872. package/dist/runtime-v2/internalization/intake-to-internalization-bridge.js.map +1 -0
  873. package/dist/runtime-v2/internalization/internalization-job-graph.d.ts +78 -0
  874. package/dist/runtime-v2/internalization/internalization-job-graph.d.ts.map +1 -0
  875. package/dist/runtime-v2/internalization/internalization-job-graph.js +153 -0
  876. package/dist/runtime-v2/internalization/internalization-job-graph.js.map +1 -0
  877. package/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +182 -0
  878. package/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -0
  879. package/dist/runtime-v2/internalization/internalization-orchestrator.js +355 -0
  880. package/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -0
  881. package/dist/runtime-v2/internalization/internalization-route.d.ts +28 -0
  882. package/dist/runtime-v2/internalization/internalization-route.d.ts.map +1 -0
  883. package/dist/runtime-v2/internalization/internalization-route.js +112 -0
  884. package/dist/runtime-v2/internalization/internalization-route.js.map +1 -0
  885. package/dist/runtime-v2/internalization/internalization-state-machine.d.ts +157 -0
  886. package/dist/runtime-v2/internalization/internalization-state-machine.d.ts.map +1 -0
  887. package/dist/runtime-v2/internalization/internalization-state-machine.js +274 -0
  888. package/dist/runtime-v2/internalization/internalization-state-machine.js.map +1 -0
  889. package/dist/runtime-v2/internalization/internalization-task-guards.d.ts +92 -0
  890. package/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +1 -0
  891. package/dist/runtime-v2/internalization/internalization-task-guards.js +152 -0
  892. package/dist/runtime-v2/internalization/internalization-task-guards.js.map +1 -0
  893. package/dist/runtime-v2/internalization/lifecycle-datasource.d.ts +18 -0
  894. package/dist/runtime-v2/internalization/lifecycle-datasource.d.ts.map +1 -0
  895. package/dist/runtime-v2/internalization/lifecycle-datasource.js +2 -0
  896. package/dist/runtime-v2/internalization/lifecycle-datasource.js.map +1 -0
  897. package/dist/runtime-v2/internalization/lifecycle-metrics.d.ts +24 -0
  898. package/dist/runtime-v2/internalization/lifecycle-metrics.d.ts.map +1 -0
  899. package/dist/runtime-v2/internalization/lifecycle-metrics.js +124 -0
  900. package/dist/runtime-v2/internalization/lifecycle-metrics.js.map +1 -0
  901. package/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts +2 -0
  902. package/dist/runtime-v2/internalization/lifecycle-metrics.test.d.ts.map +1 -0
  903. package/dist/runtime-v2/internalization/lifecycle-metrics.test.js +201 -0
  904. package/dist/runtime-v2/internalization/lifecycle-metrics.test.js.map +1 -0
  905. package/dist/runtime-v2/internalization/lifecycle-read-model.d.ts +11 -0
  906. package/dist/runtime-v2/internalization/lifecycle-read-model.d.ts.map +1 -0
  907. package/dist/runtime-v2/internalization/lifecycle-read-model.js +155 -0
  908. package/dist/runtime-v2/internalization/lifecycle-read-model.js.map +1 -0
  909. package/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts +2 -0
  910. package/dist/runtime-v2/internalization/lifecycle-read-model.test.d.ts.map +1 -0
  911. package/dist/runtime-v2/internalization/lifecycle-read-model.test.js +408 -0
  912. package/dist/runtime-v2/internalization/lifecycle-read-model.test.js.map +1 -0
  913. package/dist/runtime-v2/internalization/lifecycle-types.d.ts +75 -0
  914. package/dist/runtime-v2/internalization/lifecycle-types.d.ts.map +1 -0
  915. package/dist/runtime-v2/internalization/lifecycle-types.js +2 -0
  916. package/dist/runtime-v2/internalization/lifecycle-types.js.map +1 -0
  917. package/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +140 -0
  918. package/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -0
  919. package/dist/runtime-v2/internalization/peer-runner-contracts.js +124 -0
  920. package/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -0
  921. package/dist/runtime-v2/internalization/philosopher-output.d.ts +56 -0
  922. package/dist/runtime-v2/internalization/philosopher-output.d.ts.map +1 -0
  923. package/dist/runtime-v2/internalization/philosopher-output.js +69 -0
  924. package/dist/runtime-v2/internalization/philosopher-output.js.map +1 -0
  925. package/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts +41 -0
  926. package/dist/runtime-v2/internalization/philosopher-prompt-builder.d.ts.map +1 -0
  927. package/dist/runtime-v2/internalization/philosopher-prompt-builder.js +50 -0
  928. package/dist/runtime-v2/internalization/philosopher-prompt-builder.js.map +1 -0
  929. package/dist/runtime-v2/internalization/philosopher-runner.d.ts +103 -0
  930. package/dist/runtime-v2/internalization/philosopher-runner.d.ts.map +1 -0
  931. package/dist/runtime-v2/internalization/philosopher-runner.js +519 -0
  932. package/dist/runtime-v2/internalization/philosopher-runner.js.map +1 -0
  933. package/dist/runtime-v2/internalization/pi-artifact-store.d.ts +13 -0
  934. package/dist/runtime-v2/internalization/pi-artifact-store.d.ts.map +1 -0
  935. package/dist/runtime-v2/internalization/pi-artifact-store.js +65 -0
  936. package/dist/runtime-v2/internalization/pi-artifact-store.js.map +1 -0
  937. package/dist/runtime-v2/internalization/pi-artifact.d.ts +23 -0
  938. package/dist/runtime-v2/internalization/pi-artifact.d.ts.map +1 -0
  939. package/dist/runtime-v2/internalization/pi-artifact.js +2 -0
  940. package/dist/runtime-v2/internalization/pi-artifact.js.map +1 -0
  941. package/dist/runtime-v2/internalization/pitask-metadata.d.ts +80 -0
  942. package/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -0
  943. package/dist/runtime-v2/internalization/pitask-metadata.js +194 -0
  944. package/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -0
  945. package/dist/runtime-v2/internalization/queue-actionability.d.ts +37 -0
  946. package/dist/runtime-v2/internalization/queue-actionability.d.ts.map +1 -0
  947. package/dist/runtime-v2/internalization/queue-actionability.js +50 -0
  948. package/dist/runtime-v2/internalization/queue-actionability.js.map +1 -0
  949. package/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts +20 -0
  950. package/dist/runtime-v2/internalization/refiner-rulehost-gate.d.ts.map +1 -0
  951. package/dist/runtime-v2/internalization/refiner-rulehost-gate.js +151 -0
  952. package/dist/runtime-v2/internalization/refiner-rulehost-gate.js.map +1 -0
  953. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts +36 -0
  954. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +1 -0
  955. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js +227 -0
  956. package/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +1 -0
  957. package/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts +74 -0
  958. package/dist/runtime-v2/internalization/rollout-reviewer-output.d.ts.map +1 -0
  959. package/dist/runtime-v2/internalization/rollout-reviewer-output.js +117 -0
  960. package/dist/runtime-v2/internalization/rollout-reviewer-output.js.map +1 -0
  961. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts +24 -0
  962. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.d.ts.map +1 -0
  963. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js +52 -0
  964. package/dist/runtime-v2/internalization/rollout-reviewer-prompt-builder.js.map +1 -0
  965. package/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts +76 -0
  966. package/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +1 -0
  967. package/dist/runtime-v2/internalization/rollout-reviewer-runner.js +538 -0
  968. package/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +1 -0
  969. package/dist/runtime-v2/internalization/routing-policy.d.ts +24 -0
  970. package/dist/runtime-v2/internalization/routing-policy.d.ts.map +1 -0
  971. package/dist/runtime-v2/internalization/routing-policy.js +169 -0
  972. package/dist/runtime-v2/internalization/routing-policy.js.map +1 -0
  973. package/dist/runtime-v2/internalization/routing-policy.test.d.ts +2 -0
  974. package/dist/runtime-v2/internalization/routing-policy.test.d.ts.map +1 -0
  975. package/dist/runtime-v2/internalization/routing-policy.test.js +286 -0
  976. package/dist/runtime-v2/internalization/routing-policy.test.js.map +1 -0
  977. package/dist/runtime-v2/internalization/rule-code-validator.d.ts +21 -0
  978. package/dist/runtime-v2/internalization/rule-code-validator.d.ts.map +1 -0
  979. package/dist/runtime-v2/internalization/rule-code-validator.js +42 -0
  980. package/dist/runtime-v2/internalization/rule-code-validator.js.map +1 -0
  981. package/dist/runtime-v2/internalization/rule-host-adapter.d.ts +16 -0
  982. package/dist/runtime-v2/internalization/rule-host-adapter.d.ts.map +1 -0
  983. package/dist/runtime-v2/internalization/rule-host-adapter.js +13 -0
  984. package/dist/runtime-v2/internalization/rule-host-adapter.js.map +1 -0
  985. package/dist/runtime-v2/internalization/rule-host-contracts.d.ts +61 -0
  986. package/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +1 -0
  987. package/dist/runtime-v2/internalization/rule-host-contracts.js +14 -0
  988. package/dist/runtime-v2/internalization/rule-host-contracts.js.map +1 -0
  989. package/dist/runtime-v2/internalization/rule-host-evaluator.d.ts +36 -0
  990. package/dist/runtime-v2/internalization/rule-host-evaluator.d.ts.map +1 -0
  991. package/dist/runtime-v2/internalization/rule-host-evaluator.js +103 -0
  992. package/dist/runtime-v2/internalization/rule-host-evaluator.js.map +1 -0
  993. package/dist/runtime-v2/internalization/rule-host-helpers.d.ts +27 -0
  994. package/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +1 -0
  995. package/dist/runtime-v2/internalization/rule-host-helpers.js +27 -0
  996. package/dist/runtime-v2/internalization/rule-host-helpers.js.map +1 -0
  997. package/dist/runtime-v2/internalization/scribe-output.d.ts +74 -0
  998. package/dist/runtime-v2/internalization/scribe-output.d.ts.map +1 -0
  999. package/dist/runtime-v2/internalization/scribe-output.js +98 -0
  1000. package/dist/runtime-v2/internalization/scribe-output.js.map +1 -0
  1001. package/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts +24 -0
  1002. package/dist/runtime-v2/internalization/scribe-prompt-builder.d.ts.map +1 -0
  1003. package/dist/runtime-v2/internalization/scribe-prompt-builder.js +60 -0
  1004. package/dist/runtime-v2/internalization/scribe-prompt-builder.js.map +1 -0
  1005. package/dist/runtime-v2/internalization/scribe-runner.d.ts +77 -0
  1006. package/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -0
  1007. package/dist/runtime-v2/internalization/scribe-runner.js +518 -0
  1008. package/dist/runtime-v2/internalization/scribe-runner.js.map +1 -0
  1009. package/dist/runtime-v2/internalization/template-generator.d.ts +21 -0
  1010. package/dist/runtime-v2/internalization/template-generator.d.ts.map +1 -0
  1011. package/dist/runtime-v2/internalization/template-generator.js +61 -0
  1012. package/dist/runtime-v2/internalization/template-generator.js.map +1 -0
  1013. package/dist/runtime-v2/internalization/trainer-output.d.ts +122 -0
  1014. package/dist/runtime-v2/internalization/trainer-output.d.ts.map +1 -0
  1015. package/dist/runtime-v2/internalization/trainer-output.js +223 -0
  1016. package/dist/runtime-v2/internalization/trainer-output.js.map +1 -0
  1017. package/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts +24 -0
  1018. package/dist/runtime-v2/internalization/trainer-prompt-builder.d.ts.map +1 -0
  1019. package/dist/runtime-v2/internalization/trainer-prompt-builder.js +57 -0
  1020. package/dist/runtime-v2/internalization/trainer-prompt-builder.js.map +1 -0
  1021. package/dist/runtime-v2/internalization/trainer-runner.d.ts +76 -0
  1022. package/dist/runtime-v2/internalization/trainer-runner.d.ts.map +1 -0
  1023. package/dist/runtime-v2/internalization/trainer-runner.js +538 -0
  1024. package/dist/runtime-v2/internalization/trainer-runner.js.map +1 -0
  1025. package/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts +42 -0
  1026. package/dist/runtime-v2/internalization-chain-integrity-read-model.d.ts.map +1 -0
  1027. package/dist/runtime-v2/internalization-chain-integrity-read-model.js +413 -0
  1028. package/dist/runtime-v2/internalization-chain-integrity-read-model.js.map +1 -0
  1029. package/dist/runtime-v2/internalization-integrity-remediation.d.ts +17 -0
  1030. package/dist/runtime-v2/internalization-integrity-remediation.d.ts.map +1 -0
  1031. package/dist/runtime-v2/internalization-integrity-remediation.js +269 -0
  1032. package/dist/runtime-v2/internalization-integrity-remediation.js.map +1 -0
  1033. package/dist/runtime-v2/internalization-queue-read-model.d.ts +93 -0
  1034. package/dist/runtime-v2/internalization-queue-read-model.d.ts.map +1 -0
  1035. package/dist/runtime-v2/internalization-queue-read-model.js +217 -0
  1036. package/dist/runtime-v2/internalization-queue-read-model.js.map +1 -0
  1037. package/dist/runtime-v2/l1-hard-cap.d.ts +21 -0
  1038. package/dist/runtime-v2/l1-hard-cap.d.ts.map +1 -0
  1039. package/dist/runtime-v2/l1-hard-cap.js +51 -0
  1040. package/dist/runtime-v2/l1-hard-cap.js.map +1 -0
  1041. package/dist/runtime-v2/nocturnal/candidate-scoring.d.ts +486 -0
  1042. package/dist/runtime-v2/nocturnal/candidate-scoring.d.ts.map +1 -0
  1043. package/dist/runtime-v2/nocturnal/candidate-scoring.js +493 -0
  1044. package/dist/runtime-v2/nocturnal/candidate-scoring.js.map +1 -0
  1045. package/dist/runtime-v2/nocturnal/index.d.ts +9 -0
  1046. package/dist/runtime-v2/nocturnal/index.d.ts.map +1 -0
  1047. package/dist/runtime-v2/nocturnal/index.js +5 -0
  1048. package/dist/runtime-v2/nocturnal/index.js.map +1 -0
  1049. package/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts +185 -0
  1050. package/dist/runtime-v2/nocturnal/nocturnal-compliance.d.ts.map +1 -0
  1051. package/dist/runtime-v2/nocturnal/nocturnal-compliance.js +912 -0
  1052. package/dist/runtime-v2/nocturnal/nocturnal-compliance.js.map +1 -0
  1053. package/dist/runtime-v2/nocturnal/snapshot-contract.d.ts +192 -0
  1054. package/dist/runtime-v2/nocturnal/snapshot-contract.d.ts.map +1 -0
  1055. package/dist/runtime-v2/nocturnal/snapshot-contract.js +185 -0
  1056. package/dist/runtime-v2/nocturnal/snapshot-contract.js.map +1 -0
  1057. package/dist/runtime-v2/nocturnal/trinity-types.d.ts +421 -0
  1058. package/dist/runtime-v2/nocturnal/trinity-types.d.ts.map +1 -0
  1059. package/dist/runtime-v2/nocturnal/trinity-types.js +182 -0
  1060. package/dist/runtime-v2/nocturnal/trinity-types.js.map +1 -0
  1061. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts +2 -0
  1062. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.d.ts.map +1 -0
  1063. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js +49 -0
  1064. package/dist/runtime-v2/observer/__tests__/agent-scheduler.test.js.map +1 -0
  1065. package/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts +2 -0
  1066. package/dist/runtime-v2/observer/__tests__/correction-observer.test.d.ts.map +1 -0
  1067. package/dist/runtime-v2/observer/__tests__/correction-observer.test.js +144 -0
  1068. package/dist/runtime-v2/observer/__tests__/correction-observer.test.js.map +1 -0
  1069. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts +2 -0
  1070. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.d.ts.map +1 -0
  1071. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js +67 -0
  1072. package/dist/runtime-v2/observer/__tests__/empathy-observer.real-e2e.test.js.map +1 -0
  1073. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts +2 -0
  1074. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.d.ts.map +1 -0
  1075. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.js +84 -0
  1076. package/dist/runtime-v2/observer/__tests__/empathy-observer.test.js.map +1 -0
  1077. package/dist/runtime-v2/observer/agent-scheduler.d.ts +40 -0
  1078. package/dist/runtime-v2/observer/agent-scheduler.d.ts.map +1 -0
  1079. package/dist/runtime-v2/observer/agent-scheduler.js +30 -0
  1080. package/dist/runtime-v2/observer/agent-scheduler.js.map +1 -0
  1081. package/dist/runtime-v2/observer/correction-observer.d.ts +59 -0
  1082. package/dist/runtime-v2/observer/correction-observer.d.ts.map +1 -0
  1083. package/dist/runtime-v2/observer/correction-observer.js +178 -0
  1084. package/dist/runtime-v2/observer/correction-observer.js.map +1 -0
  1085. package/dist/runtime-v2/observer/empathy-observer.d.ts +35 -0
  1086. package/dist/runtime-v2/observer/empathy-observer.d.ts.map +1 -0
  1087. package/dist/runtime-v2/observer/empathy-observer.js +98 -0
  1088. package/dist/runtime-v2/observer/empathy-observer.js.map +1 -0
  1089. package/dist/runtime-v2/operator-health-read-model.d.ts +45 -0
  1090. package/dist/runtime-v2/operator-health-read-model.d.ts.map +1 -0
  1091. package/dist/runtime-v2/operator-health-read-model.js +189 -0
  1092. package/dist/runtime-v2/operator-health-read-model.js.map +1 -0
  1093. package/dist/runtime-v2/pain-chain-read-model.d.ts +40 -0
  1094. package/dist/runtime-v2/pain-chain-read-model.d.ts.map +1 -0
  1095. package/dist/runtime-v2/pain-chain-read-model.js +293 -0
  1096. package/dist/runtime-v2/pain-chain-read-model.js.map +1 -0
  1097. package/dist/runtime-v2/pain-flood-simulation.d.ts +62 -0
  1098. package/dist/runtime-v2/pain-flood-simulation.d.ts.map +1 -0
  1099. package/dist/runtime-v2/pain-flood-simulation.js +152 -0
  1100. package/dist/runtime-v2/pain-flood-simulation.js.map +1 -0
  1101. package/dist/runtime-v2/pain-signal-bridge.d.ts +72 -0
  1102. package/dist/runtime-v2/pain-signal-bridge.d.ts.map +1 -0
  1103. package/dist/runtime-v2/pain-signal-bridge.js +340 -0
  1104. package/dist/runtime-v2/pain-signal-bridge.js.map +1 -0
  1105. package/dist/runtime-v2/pain-signal-observability.d.ts +19 -0
  1106. package/dist/runtime-v2/pain-signal-observability.d.ts.map +1 -0
  1107. package/dist/runtime-v2/pain-signal-observability.js +161 -0
  1108. package/dist/runtime-v2/pain-signal-observability.js.map +1 -0
  1109. package/dist/runtime-v2/pain-signal-runtime-factory.d.ts +82 -0
  1110. package/dist/runtime-v2/pain-signal-runtime-factory.d.ts.map +1 -0
  1111. package/dist/runtime-v2/pain-signal-runtime-factory.js +279 -0
  1112. package/dist/runtime-v2/pain-signal-runtime-factory.js.map +1 -0
  1113. package/dist/runtime-v2/pain-to-principle-service.d.ts +53 -0
  1114. package/dist/runtime-v2/pain-to-principle-service.d.ts.map +1 -0
  1115. package/dist/runtime-v2/pain-to-principle-service.js +114 -0
  1116. package/dist/runtime-v2/pain-to-principle-service.js.map +1 -0
  1117. package/dist/runtime-v2/proven-channel-baseline.d.ts +56 -0
  1118. package/dist/runtime-v2/proven-channel-baseline.d.ts.map +1 -0
  1119. package/dist/runtime-v2/proven-channel-baseline.js +480 -0
  1120. package/dist/runtime-v2/proven-channel-baseline.js.map +1 -0
  1121. package/dist/runtime-v2/pruning-mask.d.ts +27 -0
  1122. package/dist/runtime-v2/pruning-mask.d.ts.map +1 -0
  1123. package/dist/runtime-v2/pruning-mask.js +59 -0
  1124. package/dist/runtime-v2/pruning-mask.js.map +1 -0
  1125. package/dist/runtime-v2/pruning-read-model.d.ts +76 -0
  1126. package/dist/runtime-v2/pruning-read-model.d.ts.map +1 -0
  1127. package/dist/runtime-v2/pruning-read-model.js +266 -0
  1128. package/dist/runtime-v2/pruning-read-model.js.map +1 -0
  1129. package/dist/runtime-v2/pruning-review-log.d.ts +41 -0
  1130. package/dist/runtime-v2/pruning-review-log.d.ts.map +1 -0
  1131. package/dist/runtime-v2/pruning-review-log.js +106 -0
  1132. package/dist/runtime-v2/pruning-review-log.js.map +1 -0
  1133. package/dist/runtime-v2/recovery-sweep-service.d.ts +14 -0
  1134. package/dist/runtime-v2/recovery-sweep-service.d.ts.map +1 -0
  1135. package/dist/runtime-v2/recovery-sweep-service.js +26 -0
  1136. package/dist/runtime-v2/recovery-sweep-service.js.map +1 -0
  1137. package/dist/runtime-v2/remediation-contract.d.ts +46 -0
  1138. package/dist/runtime-v2/remediation-contract.d.ts.map +1 -0
  1139. package/dist/runtime-v2/remediation-contract.js +29 -0
  1140. package/dist/runtime-v2/remediation-contract.js.map +1 -0
  1141. package/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts +2 -0
  1142. package/dist/runtime-v2/runner/__tests__/default-validator.test.d.ts.map +1 -0
  1143. package/dist/runtime-v2/runner/__tests__/default-validator.test.js +526 -0
  1144. package/dist/runtime-v2/runner/__tests__/default-validator.test.js.map +1 -0
  1145. package/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts +2 -0
  1146. package/dist/runtime-v2/runner/__tests__/diagnose.test.d.ts.map +1 -0
  1147. package/dist/runtime-v2/runner/__tests__/diagnose.test.js +81 -0
  1148. package/dist/runtime-v2/runner/__tests__/diagnose.test.js.map +1 -0
  1149. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts +2 -0
  1150. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.d.ts.map +1 -0
  1151. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js +378 -0
  1152. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.integration.test.js.map +1 -0
  1153. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts +2 -0
  1154. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.d.ts.map +1 -0
  1155. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js +642 -0
  1156. package/dist/runtime-v2/runner/__tests__/diagnostician-runner.test.js.map +1 -0
  1157. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts +2 -0
  1158. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.d.ts.map +1 -0
  1159. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js +286 -0
  1160. package/dist/runtime-v2/runner/__tests__/diagnostician-telemetry.test.js.map +1 -0
  1161. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts +2 -0
  1162. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.d.ts.map +1 -0
  1163. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js +320 -0
  1164. package/dist/runtime-v2/runner/__tests__/dual-track-e2e.test.js.map +1 -0
  1165. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts +2 -0
  1166. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.d.ts.map +1 -0
  1167. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js +261 -0
  1168. package/dist/runtime-v2/runner/__tests__/lease-expiration-recovery.integration.test.js.map +1 -0
  1169. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts +2 -0
  1170. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.d.ts.map +1 -0
  1171. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js +405 -0
  1172. package/dist/runtime-v2/runner/__tests__/m5-05-e2e.test.js.map +1 -0
  1173. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts +2 -0
  1174. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.d.ts.map +1 -0
  1175. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js +347 -0
  1176. package/dist/runtime-v2/runner/__tests__/m6-06-e2e.test.js.map +1 -0
  1177. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts +2 -0
  1178. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.d.ts.map +1 -0
  1179. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js +186 -0
  1180. package/dist/runtime-v2/runner/__tests__/m6-06-legacy.test.js.map +1 -0
  1181. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts +2 -0
  1182. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.d.ts.map +1 -0
  1183. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js +355 -0
  1184. package/dist/runtime-v2/runner/__tests__/m6-06-real-path.test.js.map +1 -0
  1185. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts +2 -0
  1186. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.d.ts.map +1 -0
  1187. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js +488 -0
  1188. package/dist/runtime-v2/runner/__tests__/m8-02-e2e.test.js.map +1 -0
  1189. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts +2 -0
  1190. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.d.ts.map +1 -0
  1191. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js +171 -0
  1192. package/dist/runtime-v2/runner/__tests__/m9-adapter-integration.test.js.map +1 -0
  1193. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts +2 -0
  1194. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.d.ts.map +1 -0
  1195. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.js +182 -0
  1196. package/dist/runtime-v2/runner/__tests__/m9-e2e.test.js.map +1 -0
  1197. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts +2 -0
  1198. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.d.ts.map +1 -0
  1199. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js +276 -0
  1200. package/dist/runtime-v2/runner/__tests__/max-attempts-exceeded.integration.test.js.map +1 -0
  1201. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts +2 -0
  1202. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.d.ts.map +1 -0
  1203. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js +462 -0
  1204. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge-admission.test.js.map +1 -0
  1205. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts +2 -0
  1206. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.d.ts.map +1 -0
  1207. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js +160 -0
  1208. package/dist/runtime-v2/runner/__tests__/pain-signal-bridge.test.js.map +1 -0
  1209. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts +2 -0
  1210. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.d.ts.map +1 -0
  1211. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js +272 -0
  1212. package/dist/runtime-v2/runner/__tests__/retry-wait-recovery.integration.test.js.map +1 -0
  1213. package/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts +2 -0
  1214. package/dist/runtime-v2/runner/__tests__/start-run-input.test.d.ts.map +1 -0
  1215. package/dist/runtime-v2/runner/__tests__/start-run-input.test.js +67 -0
  1216. package/dist/runtime-v2/runner/__tests__/start-run-input.test.js.map +1 -0
  1217. package/dist/runtime-v2/runner/default-validator.d.ts +10 -0
  1218. package/dist/runtime-v2/runner/default-validator.d.ts.map +1 -0
  1219. package/dist/runtime-v2/runner/default-validator.js +168 -0
  1220. package/dist/runtime-v2/runner/default-validator.js.map +1 -0
  1221. package/dist/runtime-v2/runner/diagnostician-runner-options.d.ts +37 -0
  1222. package/dist/runtime-v2/runner/diagnostician-runner-options.d.ts.map +1 -0
  1223. package/dist/runtime-v2/runner/diagnostician-runner-options.js +19 -0
  1224. package/dist/runtime-v2/runner/diagnostician-runner-options.js.map +1 -0
  1225. package/dist/runtime-v2/runner/diagnostician-runner.d.ts +87 -0
  1226. package/dist/runtime-v2/runner/diagnostician-runner.d.ts.map +1 -0
  1227. package/dist/runtime-v2/runner/diagnostician-runner.js +417 -0
  1228. package/dist/runtime-v2/runner/diagnostician-runner.js.map +1 -0
  1229. package/dist/runtime-v2/runner/diagnostician-validator.d.ts +56 -0
  1230. package/dist/runtime-v2/runner/diagnostician-validator.d.ts.map +1 -0
  1231. package/dist/runtime-v2/runner/diagnostician-validator.js +11 -0
  1232. package/dist/runtime-v2/runner/diagnostician-validator.js.map +1 -0
  1233. package/dist/runtime-v2/runner/runner-phase.d.ts +21 -0
  1234. package/dist/runtime-v2/runner/runner-phase.d.ts.map +1 -0
  1235. package/dist/runtime-v2/runner/runner-phase.js +22 -0
  1236. package/dist/runtime-v2/runner/runner-phase.js.map +1 -0
  1237. package/dist/runtime-v2/runner/runner-result.d.ts +20 -0
  1238. package/dist/runtime-v2/runner/runner-result.d.ts.map +1 -0
  1239. package/dist/runtime-v2/runner/runner-result.js +2 -0
  1240. package/dist/runtime-v2/runner/runner-result.js.map +1 -0
  1241. package/dist/runtime-v2/runtime-protocol.d.ts +165 -0
  1242. package/dist/runtime-v2/runtime-protocol.d.ts.map +1 -0
  1243. package/dist/runtime-v2/runtime-protocol.js +130 -0
  1244. package/dist/runtime-v2/runtime-protocol.js.map +1 -0
  1245. package/dist/runtime-v2/runtime-selector.d.ts +77 -0
  1246. package/dist/runtime-v2/runtime-selector.d.ts.map +1 -0
  1247. package/dist/runtime-v2/runtime-selector.js +23 -0
  1248. package/dist/runtime-v2/runtime-selector.js.map +1 -0
  1249. package/dist/runtime-v2/runtime-state-handle.d.ts +10 -0
  1250. package/dist/runtime-v2/runtime-state-handle.d.ts.map +1 -0
  1251. package/dist/runtime-v2/runtime-state-handle.js +30 -0
  1252. package/dist/runtime-v2/runtime-state-handle.js.map +1 -0
  1253. package/dist/runtime-v2/schema-conformance-read-model.d.ts +24 -0
  1254. package/dist/runtime-v2/schema-conformance-read-model.d.ts.map +1 -0
  1255. package/dist/runtime-v2/schema-conformance-read-model.js +178 -0
  1256. package/dist/runtime-v2/schema-conformance-read-model.js.map +1 -0
  1257. package/dist/runtime-v2/schema-version.d.ts +20 -0
  1258. package/dist/runtime-v2/schema-version.d.ts.map +1 -0
  1259. package/dist/runtime-v2/schema-version.js +20 -0
  1260. package/dist/runtime-v2/schema-version.js.map +1 -0
  1261. package/dist/runtime-v2/store/artifact/artifact-store.d.ts +28 -0
  1262. package/dist/runtime-v2/store/artifact/artifact-store.d.ts.map +1 -0
  1263. package/dist/runtime-v2/store/artifact/artifact-store.js +2 -0
  1264. package/dist/runtime-v2/store/artifact/artifact-store.js.map +1 -0
  1265. package/dist/runtime-v2/store/artifact/index.d.ts +4 -0
  1266. package/dist/runtime-v2/store/artifact/index.d.ts.map +1 -0
  1267. package/dist/runtime-v2/store/artifact/index.js +3 -0
  1268. package/dist/runtime-v2/store/artifact/index.js.map +1 -0
  1269. package/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts +14 -0
  1270. package/dist/runtime-v2/store/artifact/memory-artifact-store.d.ts.map +1 -0
  1271. package/dist/runtime-v2/store/artifact/memory-artifact-store.js +25 -0
  1272. package/dist/runtime-v2/store/artifact/memory-artifact-store.js.map +1 -0
  1273. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts +12 -0
  1274. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.d.ts.map +1 -0
  1275. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.js +51 -0
  1276. package/dist/runtime-v2/store/artifact/sqlite-artifact-store.js.map +1 -0
  1277. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts +13 -0
  1278. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.d.ts.map +1 -0
  1279. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js +98 -0
  1280. package/dist/runtime-v2/store/artifact/sqlite-pi-artifact-store.js.map +1 -0
  1281. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts +2 -0
  1282. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.d.ts.map +1 -0
  1283. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js +34 -0
  1284. package/dist/runtime-v2/store/candidate/__tests__/recommendation-kind-resolver.test.js.map +1 -0
  1285. package/dist/runtime-v2/store/candidate/candidate-store.d.ts +42 -0
  1286. package/dist/runtime-v2/store/candidate/candidate-store.d.ts.map +1 -0
  1287. package/dist/runtime-v2/store/candidate/candidate-store.js +2 -0
  1288. package/dist/runtime-v2/store/candidate/candidate-store.js.map +1 -0
  1289. package/dist/runtime-v2/store/candidate/index.d.ts +4 -0
  1290. package/dist/runtime-v2/store/candidate/index.d.ts.map +1 -0
  1291. package/dist/runtime-v2/store/candidate/index.js +3 -0
  1292. package/dist/runtime-v2/store/candidate/index.js.map +1 -0
  1293. package/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts +22 -0
  1294. package/dist/runtime-v2/store/candidate/memory-candidate-store.d.ts.map +1 -0
  1295. package/dist/runtime-v2/store/candidate/memory-candidate-store.js +36 -0
  1296. package/dist/runtime-v2/store/candidate/memory-candidate-store.js.map +1 -0
  1297. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts +4 -0
  1298. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.d.ts.map +1 -0
  1299. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js +14 -0
  1300. package/dist/runtime-v2/store/candidate/recommendation-kind-resolver.js.map +1 -0
  1301. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts +13 -0
  1302. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.d.ts.map +1 -0
  1303. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.js +61 -0
  1304. package/dist/runtime-v2/store/candidate/sqlite-candidate-store.js.map +1 -0
  1305. package/dist/runtime-v2/store/commit/commit-store.d.ts +19 -0
  1306. package/dist/runtime-v2/store/commit/commit-store.d.ts.map +1 -0
  1307. package/dist/runtime-v2/store/commit/commit-store.js +2 -0
  1308. package/dist/runtime-v2/store/commit/commit-store.js.map +1 -0
  1309. package/dist/runtime-v2/store/commit/diagnostician-committer.d.ts +47 -0
  1310. package/dist/runtime-v2/store/commit/diagnostician-committer.d.ts.map +1 -0
  1311. package/dist/runtime-v2/store/commit/diagnostician-committer.js +140 -0
  1312. package/dist/runtime-v2/store/commit/diagnostician-committer.js.map +1 -0
  1313. package/dist/runtime-v2/store/commit/index.d.ts +7 -0
  1314. package/dist/runtime-v2/store/commit/index.d.ts.map +1 -0
  1315. package/dist/runtime-v2/store/commit/index.js +4 -0
  1316. package/dist/runtime-v2/store/commit/index.js.map +1 -0
  1317. package/dist/runtime-v2/store/commit/memory-commit-store.d.ts +16 -0
  1318. package/dist/runtime-v2/store/commit/memory-commit-store.d.ts.map +1 -0
  1319. package/dist/runtime-v2/store/commit/memory-commit-store.js +18 -0
  1320. package/dist/runtime-v2/store/commit/memory-commit-store.js.map +1 -0
  1321. package/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts +11 -0
  1322. package/dist/runtime-v2/store/commit/sqlite-commit-store.d.ts.map +1 -0
  1323. package/dist/runtime-v2/store/commit/sqlite-commit-store.js +25 -0
  1324. package/dist/runtime-v2/store/commit/sqlite-commit-store.js.map +1 -0
  1325. package/dist/runtime-v2/store/concurrent-lease.test.d.ts +2 -0
  1326. package/dist/runtime-v2/store/concurrent-lease.test.d.ts.map +1 -0
  1327. package/dist/runtime-v2/store/concurrent-lease.test.js +129 -0
  1328. package/dist/runtime-v2/store/concurrent-lease.test.js.map +1 -0
  1329. package/dist/runtime-v2/store/context/context-assembler.d.ts +19 -0
  1330. package/dist/runtime-v2/store/context/context-assembler.d.ts.map +1 -0
  1331. package/dist/runtime-v2/store/context/context-assembler.js +2 -0
  1332. package/dist/runtime-v2/store/context/context-assembler.js.map +1 -0
  1333. package/dist/runtime-v2/store/context/index.d.ts +4 -0
  1334. package/dist/runtime-v2/store/context/index.d.ts.map +1 -0
  1335. package/dist/runtime-v2/store/context/index.js +3 -0
  1336. package/dist/runtime-v2/store/context/index.js.map +1 -0
  1337. package/dist/runtime-v2/store/context/resilient-context-assembler.d.ts +13 -0
  1338. package/dist/runtime-v2/store/context/resilient-context-assembler.d.ts.map +1 -0
  1339. package/dist/runtime-v2/store/context/resilient-context-assembler.js +72 -0
  1340. package/dist/runtime-v2/store/context/resilient-context-assembler.js.map +1 -0
  1341. package/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts +2 -0
  1342. package/dist/runtime-v2/store/context/resilient-context-assembler.test.d.ts.map +1 -0
  1343. package/dist/runtime-v2/store/context/resilient-context-assembler.test.js +113 -0
  1344. package/dist/runtime-v2/store/context/resilient-context-assembler.test.js.map +1 -0
  1345. package/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts +28 -0
  1346. package/dist/runtime-v2/store/context/sqlite-context-assembler.d.ts.map +1 -0
  1347. package/dist/runtime-v2/store/context/sqlite-context-assembler.js +277 -0
  1348. package/dist/runtime-v2/store/context/sqlite-context-assembler.js.map +1 -0
  1349. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts +2 -0
  1350. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.d.ts.map +1 -0
  1351. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.js +1181 -0
  1352. package/dist/runtime-v2/store/context/sqlite-context-assembler.test.js.map +1 -0
  1353. package/dist/runtime-v2/store/diagnostician-committer.test.d.ts +2 -0
  1354. package/dist/runtime-v2/store/diagnostician-committer.test.d.ts.map +1 -0
  1355. package/dist/runtime-v2/store/diagnostician-committer.test.js +326 -0
  1356. package/dist/runtime-v2/store/diagnostician-committer.test.js.map +1 -0
  1357. package/dist/runtime-v2/store/event-emitter.d.ts +18 -0
  1358. package/dist/runtime-v2/store/event-emitter.d.ts.map +1 -0
  1359. package/dist/runtime-v2/store/event-emitter.js +78 -0
  1360. package/dist/runtime-v2/store/event-emitter.js.map +1 -0
  1361. package/dist/runtime-v2/store/history/history-query.d.ts +57 -0
  1362. package/dist/runtime-v2/store/history/history-query.d.ts.map +1 -0
  1363. package/dist/runtime-v2/store/history/history-query.js +7 -0
  1364. package/dist/runtime-v2/store/history/history-query.js.map +1 -0
  1365. package/dist/runtime-v2/store/history/index.d.ts +5 -0
  1366. package/dist/runtime-v2/store/history/index.d.ts.map +1 -0
  1367. package/dist/runtime-v2/store/history/index.js +4 -0
  1368. package/dist/runtime-v2/store/history/index.js.map +1 -0
  1369. package/dist/runtime-v2/store/history/resilient-history-query.d.ts +20 -0
  1370. package/dist/runtime-v2/store/history/resilient-history-query.d.ts.map +1 -0
  1371. package/dist/runtime-v2/store/history/resilient-history-query.js +40 -0
  1372. package/dist/runtime-v2/store/history/resilient-history-query.js.map +1 -0
  1373. package/dist/runtime-v2/store/history/resilient-history-query.test.d.ts +2 -0
  1374. package/dist/runtime-v2/store/history/resilient-history-query.test.d.ts.map +1 -0
  1375. package/dist/runtime-v2/store/history/resilient-history-query.test.js +128 -0
  1376. package/dist/runtime-v2/store/history/resilient-history-query.test.js.map +1 -0
  1377. package/dist/runtime-v2/store/history/sqlite-history-query.d.ts +24 -0
  1378. package/dist/runtime-v2/store/history/sqlite-history-query.d.ts.map +1 -0
  1379. package/dist/runtime-v2/store/history/sqlite-history-query.js +166 -0
  1380. package/dist/runtime-v2/store/history/sqlite-history-query.js.map +1 -0
  1381. package/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts +2 -0
  1382. package/dist/runtime-v2/store/history/sqlite-history-query.test.d.ts.map +1 -0
  1383. package/dist/runtime-v2/store/history/sqlite-history-query.test.js +536 -0
  1384. package/dist/runtime-v2/store/history/sqlite-history-query.test.js.map +1 -0
  1385. package/dist/runtime-v2/store/idempotent-transitions.test.d.ts +2 -0
  1386. package/dist/runtime-v2/store/idempotent-transitions.test.d.ts.map +1 -0
  1387. package/dist/runtime-v2/store/idempotent-transitions.test.js +168 -0
  1388. package/dist/runtime-v2/store/idempotent-transitions.test.js.map +1 -0
  1389. package/dist/runtime-v2/store/lifecycle/index.d.ts +7 -0
  1390. package/dist/runtime-v2/store/lifecycle/index.d.ts.map +1 -0
  1391. package/dist/runtime-v2/store/lifecycle/index.js +4 -0
  1392. package/dist/runtime-v2/store/lifecycle/index.js.map +1 -0
  1393. package/dist/runtime-v2/store/lifecycle/lease-manager.d.ts +91 -0
  1394. package/dist/runtime-v2/store/lifecycle/lease-manager.d.ts.map +1 -0
  1395. package/dist/runtime-v2/store/lifecycle/lease-manager.js +154 -0
  1396. package/dist/runtime-v2/store/lifecycle/lease-manager.js.map +1 -0
  1397. package/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts +2 -0
  1398. package/dist/runtime-v2/store/lifecycle/lease-manager.test.d.ts.map +1 -0
  1399. package/dist/runtime-v2/store/lifecycle/lease-manager.test.js +243 -0
  1400. package/dist/runtime-v2/store/lifecycle/lease-manager.test.js.map +1 -0
  1401. package/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts +82 -0
  1402. package/dist/runtime-v2/store/lifecycle/recovery-sweep.d.ts.map +1 -0
  1403. package/dist/runtime-v2/store/lifecycle/recovery-sweep.js +145 -0
  1404. package/dist/runtime-v2/store/lifecycle/recovery-sweep.js.map +1 -0
  1405. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts +2 -0
  1406. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.d.ts.map +1 -0
  1407. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js +318 -0
  1408. package/dist/runtime-v2/store/lifecycle/recovery-sweep.test.js.map +1 -0
  1409. package/dist/runtime-v2/store/lifecycle/retry-policy.d.ts +105 -0
  1410. package/dist/runtime-v2/store/lifecycle/retry-policy.d.ts.map +1 -0
  1411. package/dist/runtime-v2/store/lifecycle/retry-policy.js +48 -0
  1412. package/dist/runtime-v2/store/lifecycle/retry-policy.js.map +1 -0
  1413. package/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts +2 -0
  1414. package/dist/runtime-v2/store/lifecycle/retry-policy.test.d.ts.map +1 -0
  1415. package/dist/runtime-v2/store/lifecycle/retry-policy.test.js +86 -0
  1416. package/dist/runtime-v2/store/lifecycle/retry-policy.test.js.map +1 -0
  1417. package/dist/runtime-v2/store/run/index.d.ts +4 -0
  1418. package/dist/runtime-v2/store/run/index.d.ts.map +1 -0
  1419. package/dist/runtime-v2/store/run/index.js +3 -0
  1420. package/dist/runtime-v2/store/run/index.js.map +1 -0
  1421. package/dist/runtime-v2/store/run/memory-run-store.d.ts +15 -0
  1422. package/dist/runtime-v2/store/run/memory-run-store.d.ts.map +1 -0
  1423. package/dist/runtime-v2/store/run/memory-run-store.js +33 -0
  1424. package/dist/runtime-v2/store/run/memory-run-store.js.map +1 -0
  1425. package/dist/runtime-v2/store/run/run-store.d.ts +43 -0
  1426. package/dist/runtime-v2/store/run/run-store.d.ts.map +1 -0
  1427. package/dist/runtime-v2/store/run/run-store.js +2 -0
  1428. package/dist/runtime-v2/store/run/run-store.js.map +1 -0
  1429. package/dist/runtime-v2/store/run/sqlite-run-store.d.ts +14 -0
  1430. package/dist/runtime-v2/store/run/sqlite-run-store.d.ts.map +1 -0
  1431. package/dist/runtime-v2/store/run/sqlite-run-store.js +108 -0
  1432. package/dist/runtime-v2/store/run/sqlite-run-store.js.map +1 -0
  1433. package/dist/runtime-v2/store/runtime-state-manager.d.ts +116 -0
  1434. package/dist/runtime-v2/store/runtime-state-manager.d.ts.map +1 -0
  1435. package/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts +2 -0
  1436. package/dist/runtime-v2/store/runtime-state-manager.integration.test.d.ts.map +1 -0
  1437. package/dist/runtime-v2/store/runtime-state-manager.integration.test.js +187 -0
  1438. package/dist/runtime-v2/store/runtime-state-manager.integration.test.js.map +1 -0
  1439. package/dist/runtime-v2/store/runtime-state-manager.js +321 -0
  1440. package/dist/runtime-v2/store/runtime-state-manager.js.map +1 -0
  1441. package/dist/runtime-v2/store/schema-conformance.test.d.ts +2 -0
  1442. package/dist/runtime-v2/store/schema-conformance.test.d.ts.map +1 -0
  1443. package/dist/runtime-v2/store/schema-conformance.test.js +607 -0
  1444. package/dist/runtime-v2/store/schema-conformance.test.js.map +1 -0
  1445. package/dist/runtime-v2/store/sqlite-connection-close.test.d.ts +2 -0
  1446. package/dist/runtime-v2/store/sqlite-connection-close.test.d.ts.map +1 -0
  1447. package/dist/runtime-v2/store/sqlite-connection-close.test.js +57 -0
  1448. package/dist/runtime-v2/store/sqlite-connection-close.test.js.map +1 -0
  1449. package/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts +2 -0
  1450. package/dist/runtime-v2/store/sqlite-connection-pragma.test.d.ts.map +1 -0
  1451. package/dist/runtime-v2/store/sqlite-connection-pragma.test.js +261 -0
  1452. package/dist/runtime-v2/store/sqlite-connection-pragma.test.js.map +1 -0
  1453. package/dist/runtime-v2/store/sqlite-connection.d.ts +39 -0
  1454. package/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -0
  1455. package/dist/runtime-v2/store/sqlite-connection.js +364 -0
  1456. package/dist/runtime-v2/store/sqlite-connection.js.map +1 -0
  1457. package/dist/runtime-v2/store/sqlite-run-store.test.d.ts +2 -0
  1458. package/dist/runtime-v2/store/sqlite-run-store.test.d.ts.map +1 -0
  1459. package/dist/runtime-v2/store/sqlite-run-store.test.js +152 -0
  1460. package/dist/runtime-v2/store/sqlite-run-store.test.js.map +1 -0
  1461. package/dist/runtime-v2/store/sqlite-task-store.test.d.ts +2 -0
  1462. package/dist/runtime-v2/store/sqlite-task-store.test.d.ts.map +1 -0
  1463. package/dist/runtime-v2/store/sqlite-task-store.test.js +166 -0
  1464. package/dist/runtime-v2/store/sqlite-task-store.test.js.map +1 -0
  1465. package/dist/runtime-v2/store/task/index.d.ts +4 -0
  1466. package/dist/runtime-v2/store/task/index.d.ts.map +1 -0
  1467. package/dist/runtime-v2/store/task/index.js +3 -0
  1468. package/dist/runtime-v2/store/task/index.js.map +1 -0
  1469. package/dist/runtime-v2/store/task/memory-task-store.d.ts +15 -0
  1470. package/dist/runtime-v2/store/task/memory-task-store.d.ts.map +1 -0
  1471. package/dist/runtime-v2/store/task/memory-task-store.js +43 -0
  1472. package/dist/runtime-v2/store/task/memory-task-store.js.map +1 -0
  1473. package/dist/runtime-v2/store/task/sqlite-task-store.d.ts +14 -0
  1474. package/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -0
  1475. package/dist/runtime-v2/store/task/sqlite-task-store.js +144 -0
  1476. package/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -0
  1477. package/dist/runtime-v2/store/task/task-store.d.ts +48 -0
  1478. package/dist/runtime-v2/store/task/task-store.d.ts.map +1 -0
  1479. package/dist/runtime-v2/store/task/task-store.js +2 -0
  1480. package/dist/runtime-v2/store/task/task-store.js.map +1 -0
  1481. package/dist/runtime-v2/store/task-migration.d.ts +89 -0
  1482. package/dist/runtime-v2/store/task-migration.d.ts.map +1 -0
  1483. package/dist/runtime-v2/store/task-migration.js +79 -0
  1484. package/dist/runtime-v2/store/task-migration.js.map +1 -0
  1485. package/dist/runtime-v2/store/trajectory/index.d.ts +5 -0
  1486. package/dist/runtime-v2/store/trajectory/index.d.ts.map +1 -0
  1487. package/dist/runtime-v2/store/trajectory/index.js +3 -0
  1488. package/dist/runtime-v2/store/trajectory/index.js.map +1 -0
  1489. package/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts +40 -0
  1490. package/dist/runtime-v2/store/trajectory/source-trace-locator.d.ts.map +1 -0
  1491. package/dist/runtime-v2/store/trajectory/source-trace-locator.js +18 -0
  1492. package/dist/runtime-v2/store/trajectory/source-trace-locator.js.map +1 -0
  1493. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts +2 -0
  1494. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.d.ts.map +1 -0
  1495. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.js +320 -0
  1496. package/dist/runtime-v2/store/trajectory/source-trace-locator.test.js.map +1 -0
  1497. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts +23 -0
  1498. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.d.ts.map +1 -0
  1499. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js +140 -0
  1500. package/dist/runtime-v2/store/trajectory/sqlite-source-trace-locator.js.map +1 -0
  1501. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts +27 -0
  1502. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.d.ts.map +1 -0
  1503. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js +183 -0
  1504. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.js.map +1 -0
  1505. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts +2 -0
  1506. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.d.ts.map +1 -0
  1507. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js +328 -0
  1508. package/dist/runtime-v2/store/trajectory/sqlite-trajectory-locator.test.js.map +1 -0
  1509. package/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts +30 -0
  1510. package/dist/runtime-v2/store/trajectory/trajectory-locator.d.ts.map +1 -0
  1511. package/dist/runtime-v2/store/trajectory/trajectory-locator.js +2 -0
  1512. package/dist/runtime-v2/store/trajectory/trajectory-locator.js.map +1 -0
  1513. package/dist/runtime-v2/store/workspace-isolation.test.d.ts +2 -0
  1514. package/dist/runtime-v2/store/workspace-isolation.test.d.ts.map +1 -0
  1515. package/dist/runtime-v2/store/workspace-isolation.test.js +139 -0
  1516. package/dist/runtime-v2/store/workspace-isolation.test.js.map +1 -0
  1517. package/dist/runtime-v2/story-a-demo.d.ts +67 -0
  1518. package/dist/runtime-v2/story-a-demo.d.ts.map +1 -0
  1519. package/dist/runtime-v2/story-a-demo.js +188 -0
  1520. package/dist/runtime-v2/story-a-demo.js.map +1 -0
  1521. package/dist/runtime-v2/synthetic-baseline.d.ts +28 -0
  1522. package/dist/runtime-v2/synthetic-baseline.d.ts.map +1 -0
  1523. package/dist/runtime-v2/synthetic-baseline.js +116 -0
  1524. package/dist/runtime-v2/synthetic-baseline.js.map +1 -0
  1525. package/dist/runtime-v2/task-status.d.ts +99 -0
  1526. package/dist/runtime-v2/task-status.d.ts.map +1 -0
  1527. package/dist/runtime-v2/task-status.js +88 -0
  1528. package/dist/runtime-v2/task-status.js.map +1 -0
  1529. package/dist/runtime-v2/trace-refiner-agent.d.ts +71 -0
  1530. package/dist/runtime-v2/trace-refiner-agent.d.ts.map +1 -0
  1531. package/dist/runtime-v2/trace-refiner-agent.js +239 -0
  1532. package/dist/runtime-v2/trace-refiner-agent.js.map +1 -0
  1533. package/dist/runtime-v2/trace-refiner.d.ts +47 -0
  1534. package/dist/runtime-v2/trace-refiner.d.ts.map +1 -0
  1535. package/dist/runtime-v2/trace-refiner.js +261 -0
  1536. package/dist/runtime-v2/trace-refiner.js.map +1 -0
  1537. package/dist/runtime-v2/types/artifact-lineage.d.ts +19 -0
  1538. package/dist/runtime-v2/types/artifact-lineage.d.ts.map +1 -0
  1539. package/dist/runtime-v2/types/artifact-lineage.js +6 -0
  1540. package/dist/runtime-v2/types/artifact-lineage.js.map +1 -0
  1541. package/dist/runtime-v2/types/event-payload.d.ts +232 -0
  1542. package/dist/runtime-v2/types/event-payload.d.ts.map +1 -0
  1543. package/dist/runtime-v2/types/event-payload.js +149 -0
  1544. package/dist/runtime-v2/types/event-payload.js.map +1 -0
  1545. package/dist/runtime-v2/types/event-types.d.ts +843 -0
  1546. package/dist/runtime-v2/types/event-types.d.ts.map +1 -0
  1547. package/dist/runtime-v2/types/event-types.js +486 -0
  1548. package/dist/runtime-v2/types/event-types.js.map +1 -0
  1549. package/dist/runtime-v2/types/hygiene-types.d.ts +40 -0
  1550. package/dist/runtime-v2/types/hygiene-types.d.ts.map +1 -0
  1551. package/dist/runtime-v2/types/hygiene-types.js +30 -0
  1552. package/dist/runtime-v2/types/hygiene-types.js.map +1 -0
  1553. package/dist/runtime-v2/types/index.d.ts +32 -0
  1554. package/dist/runtime-v2/types/index.d.ts.map +1 -0
  1555. package/dist/runtime-v2/types/index.js +17 -0
  1556. package/dist/runtime-v2/types/index.js.map +1 -0
  1557. package/dist/runtime-v2/types/pain-signal.d.ts +63 -0
  1558. package/dist/runtime-v2/types/pain-signal.d.ts.map +1 -0
  1559. package/dist/runtime-v2/types/pain-signal.js +118 -0
  1560. package/dist/runtime-v2/types/pain-signal.js.map +1 -0
  1561. package/dist/runtime-v2/types/pd-task-types.d.ts +139 -0
  1562. package/dist/runtime-v2/types/pd-task-types.d.ts.map +1 -0
  1563. package/dist/runtime-v2/types/pd-task-types.js +99 -0
  1564. package/dist/runtime-v2/types/pd-task-types.js.map +1 -0
  1565. package/dist/runtime-v2/types/principle-dependency.d.ts +15 -0
  1566. package/dist/runtime-v2/types/principle-dependency.d.ts.map +1 -0
  1567. package/dist/runtime-v2/types/principle-dependency.js +8 -0
  1568. package/dist/runtime-v2/types/principle-dependency.js.map +1 -0
  1569. package/dist/runtime-v2/types/principle-enums.d.ts +19 -0
  1570. package/dist/runtime-v2/types/principle-enums.d.ts.map +1 -0
  1571. package/dist/runtime-v2/types/principle-enums.js +59 -0
  1572. package/dist/runtime-v2/types/principle-enums.js.map +1 -0
  1573. package/dist/runtime-v2/types/principle-lifecycle-event.d.ts +28 -0
  1574. package/dist/runtime-v2/types/principle-lifecycle-event.d.ts.map +1 -0
  1575. package/dist/runtime-v2/types/principle-lifecycle-event.js +24 -0
  1576. package/dist/runtime-v2/types/principle-lifecycle-event.js.map +1 -0
  1577. package/dist/runtime-v2/types/principle-schema.d.ts +136 -0
  1578. package/dist/runtime-v2/types/principle-schema.d.ts.map +1 -0
  1579. package/dist/runtime-v2/types/principle-schema.js +71 -0
  1580. package/dist/runtime-v2/types/principle-schema.js.map +1 -0
  1581. package/dist/runtime-v2/types/principle-tree-store.d.ts +89 -0
  1582. package/dist/runtime-v2/types/principle-tree-store.d.ts.map +1 -0
  1583. package/dist/runtime-v2/types/principle-tree-store.js +11 -0
  1584. package/dist/runtime-v2/types/principle-tree-store.js.map +1 -0
  1585. package/dist/runtime-v2/types/principle-value-metrics.d.ts +27 -0
  1586. package/dist/runtime-v2/types/principle-value-metrics.d.ts.map +1 -0
  1587. package/dist/runtime-v2/types/principle-value-metrics.js +14 -0
  1588. package/dist/runtime-v2/types/principle-value-metrics.js.map +1 -0
  1589. package/dist/runtime-v2/types/queue-types.d.ts +51 -0
  1590. package/dist/runtime-v2/types/queue-types.d.ts.map +1 -0
  1591. package/dist/runtime-v2/types/queue-types.js +44 -0
  1592. package/dist/runtime-v2/types/queue-types.js.map +1 -0
  1593. package/dist/runtime-v2/types/replay-types.d.ts +40 -0
  1594. package/dist/runtime-v2/types/replay-types.d.ts.map +1 -0
  1595. package/dist/runtime-v2/types/replay-types.js +2 -0
  1596. package/dist/runtime-v2/types/replay-types.js.map +1 -0
  1597. package/dist/runtime-v2/types/runtime-summary-types.d.ts +93 -0
  1598. package/dist/runtime-v2/types/runtime-summary-types.d.ts.map +1 -0
  1599. package/dist/runtime-v2/types/runtime-summary-types.js +35 -0
  1600. package/dist/runtime-v2/types/runtime-summary-types.js.map +1 -0
  1601. package/dist/runtime-v2/utils/cli-process-runner.d.ts +35 -0
  1602. package/dist/runtime-v2/utils/cli-process-runner.d.ts.map +1 -0
  1603. package/dist/runtime-v2/utils/cli-process-runner.js +259 -0
  1604. package/dist/runtime-v2/utils/cli-process-runner.js.map +1 -0
  1605. package/dist/runtime-v2/utils/cli-process-runner.test.d.ts +2 -0
  1606. package/dist/runtime-v2/utils/cli-process-runner.test.d.ts.map +1 -0
  1607. package/dist/runtime-v2/utils/cli-process-runner.test.js +111 -0
  1608. package/dist/runtime-v2/utils/cli-process-runner.test.js.map +1 -0
  1609. package/dist/storage-adapter.d.ts +59 -0
  1610. package/dist/storage-adapter.d.ts.map +1 -0
  1611. package/dist/storage-adapter.js +2 -0
  1612. package/dist/storage-adapter.js.map +1 -0
  1613. package/dist/telemetry-event.d.ts +102 -0
  1614. package/dist/telemetry-event.d.ts.map +1 -0
  1615. package/dist/telemetry-event.js +186 -0
  1616. package/dist/telemetry-event.js.map +1 -0
  1617. package/dist/trajectory-store.d.ts +45 -0
  1618. package/dist/trajectory-store.d.ts.map +1 -0
  1619. package/dist/trajectory-store.js +139 -0
  1620. package/dist/trajectory-store.js.map +1 -0
  1621. package/dist/types/workspace-resolver.d.ts +25 -0
  1622. package/dist/types/workspace-resolver.d.ts.map +1 -0
  1623. package/dist/types/workspace-resolver.js +10 -0
  1624. package/dist/types/workspace-resolver.js.map +1 -0
  1625. package/dist/types.d.ts +56 -0
  1626. package/dist/types.d.ts.map +1 -0
  1627. package/dist/types.js +16 -0
  1628. package/dist/types.js.map +1 -0
  1629. package/dist/workflow-funnel-loader.d.ts +143 -0
  1630. package/dist/workflow-funnel-loader.d.ts.map +1 -0
  1631. package/dist/workflow-funnel-loader.js +174 -0
  1632. package/dist/workflow-funnel-loader.js.map +1 -0
  1633. package/package.json +100 -0
@@ -0,0 +1,127 @@
1
+ import { describe, it, expect, vi, beforeEach } from 'vitest';
2
+ import { listCorrectionSamples, reviewCorrectionSample } from '../../trajectory-store.js';
3
+ const mockPrepare = vi.fn();
4
+ const mockClose = vi.fn();
5
+ let shouldThrowOnOpen = false;
6
+ vi.mock('better-sqlite3', () => {
7
+ return {
8
+ default: vi.fn(function () {
9
+ if (shouldThrowOnOpen) {
10
+ throw new Error('SQLITE_CANTOPEN: unable to open database file');
11
+ }
12
+ this.prepare = mockPrepare;
13
+ this.close = mockClose;
14
+ }),
15
+ };
16
+ });
17
+ describe('listCorrectionSamples', () => {
18
+ beforeEach(() => {
19
+ shouldThrowOnOpen = false;
20
+ mockPrepare.mockReset();
21
+ mockClose.mockReset();
22
+ });
23
+ it('returns empty array when DB cannot be opened', () => {
24
+ shouldThrowOnOpen = true;
25
+ const result = listCorrectionSamples('/fake/workspace');
26
+ expect(result).toEqual([]);
27
+ });
28
+ it('returns empty array when DB cannot be opened with custom status', () => {
29
+ shouldThrowOnOpen = true;
30
+ const result = listCorrectionSamples('/fake/workspace', 'approved');
31
+ expect(result).toEqual([]);
32
+ });
33
+ it('returns empty array when query throws (e.g. table missing)', () => {
34
+ mockPrepare.mockReturnValue({ all: () => { throw new Error('SQLITE_ERROR: no such table: correction_samples'); } });
35
+ const result = listCorrectionSamples('/fake/workspace');
36
+ expect(result).toEqual([]);
37
+ expect(mockClose).toHaveBeenCalled();
38
+ });
39
+ it('maps rows to CorrectionSampleRecord when query succeeds', () => {
40
+ mockPrepare.mockReturnValue({
41
+ all: () => [{
42
+ sample_id: 's1',
43
+ session_id: 'sess1',
44
+ bad_assistant_turn_id: 1,
45
+ user_correction_turn_id: 2,
46
+ recovery_tool_span_json: '{"tool":"edit"}',
47
+ diff_excerpt: 'old→new',
48
+ principle_ids_json: '["p1"]',
49
+ quality_score: 0.8,
50
+ review_status: 'pending',
51
+ export_mode: 'raw',
52
+ created_at: '2026-01-01T00:00:00.000Z',
53
+ updated_at: '2026-01-01T00:00:00.000Z',
54
+ }],
55
+ });
56
+ const result = listCorrectionSamples('/fake/workspace');
57
+ expect(result).toHaveLength(1);
58
+ expect(result[0]).toEqual({
59
+ sampleId: 's1',
60
+ sessionId: 'sess1',
61
+ badAssistantTurnId: 1,
62
+ userCorrectionTurnId: 2,
63
+ recoveryToolSpanJson: '{"tool":"edit"}',
64
+ diffExcerpt: 'old→new',
65
+ principleIdsJson: '["p1"]',
66
+ qualityScore: 0.8,
67
+ reviewStatus: 'pending',
68
+ exportMode: 'raw',
69
+ createdAt: '2026-01-01T00:00:00.000Z',
70
+ updatedAt: '2026-01-01T00:00:00.000Z',
71
+ });
72
+ expect(mockClose).toHaveBeenCalled();
73
+ });
74
+ it('passes status parameter to query', () => {
75
+ const mockAll = vi.fn().mockReturnValue([]);
76
+ mockPrepare.mockReturnValue({ all: mockAll });
77
+ listCorrectionSamples('/fake/workspace', 'rejected');
78
+ expect(mockPrepare).toHaveBeenCalledWith(expect.stringContaining('FROM correction_samples'));
79
+ expect(mockAll).toHaveBeenCalledWith('rejected');
80
+ });
81
+ it('handles null-ish row fields with defaults', () => {
82
+ mockPrepare.mockReturnValue({
83
+ all: () => [{
84
+ sample_id: 's2',
85
+ session_id: 'sess2',
86
+ bad_assistant_turn_id: 3,
87
+ user_correction_turn_id: 4,
88
+ recovery_tool_span_json: null,
89
+ diff_excerpt: null,
90
+ principle_ids_json: null,
91
+ quality_score: 0,
92
+ review_status: 'pending',
93
+ export_mode: 'redacted',
94
+ created_at: '2026-01-01T00:00:00.000Z',
95
+ updated_at: '2026-01-01T00:00:00.000Z',
96
+ }],
97
+ });
98
+ const [row] = listCorrectionSamples('/fake/workspace');
99
+ expect(row).toBeDefined();
100
+ if (!row)
101
+ return;
102
+ expect(row.recoveryToolSpanJson).toBe('');
103
+ expect(row.diffExcerpt).toBe('');
104
+ expect(row.principleIdsJson).toBe('[]');
105
+ });
106
+ });
107
+ describe('reviewCorrectionSample', () => {
108
+ beforeEach(() => {
109
+ shouldThrowOnOpen = false;
110
+ mockPrepare.mockReset();
111
+ mockClose.mockReset();
112
+ });
113
+ it('throws descriptive error when DB cannot be opened', () => {
114
+ shouldThrowOnOpen = true;
115
+ expect(() => {
116
+ reviewCorrectionSample('s1', 'approved', 'note', '/fake/workspace');
117
+ }).toThrow(/Database not found or cannot be opened/);
118
+ });
119
+ it('throws when sample not found (update changes=0)', () => {
120
+ mockPrepare.mockReturnValue({ run: () => ({ changes: 0 }) });
121
+ expect(() => {
122
+ reviewCorrectionSample('missing-id', 'approved', undefined, '/fake/workspace');
123
+ }).toThrow(/Sample not found: missing-id/);
124
+ expect(mockClose).toHaveBeenCalled();
125
+ });
126
+ });
127
+ //# sourceMappingURL=trajectory-store.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trajectory-store.test.js","sourceRoot":"","sources":["../../../src/runtime-v2/__tests__/trajectory-store.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAE1F,MAAM,WAAW,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAC5B,MAAM,SAAS,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;AAC1B,IAAI,iBAAiB,GAAG,KAAK,CAAC;AAE9B,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC7B,OAAO;QACL,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC;YACb,IAAI,iBAAiB,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;YACnE,CAAC;YACD,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC;YAC3B,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACzB,CAAC,CAAC;KACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,UAAU,CAAC,GAAG,EAAE;QACd,iBAAiB,GAAG,KAAK,CAAC;QAC1B,WAAW,CAAC,SAAS,EAAE,CAAC;QACxB,SAAS,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,iBAAiB,GAAG,IAAI,CAAC;QACzB,MAAM,MAAM,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iEAAiE,EAAE,GAAG,EAAE;QACzE,iBAAiB,GAAG,IAAI,CAAC;QACzB,MAAM,MAAM,GAAG,qBAAqB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4DAA4D,EAAE,GAAG,EAAE;QACpE,WAAW,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACpH,MAAM,MAAM,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;QACjE,WAAW,CAAC,eAAe,CAAC;YAC1B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;oBACV,SAAS,EAAE,IAAI;oBACf,UAAU,EAAE,OAAO;oBACnB,qBAAqB,EAAE,CAAC;oBACxB,uBAAuB,EAAE,CAAC;oBAC1B,uBAAuB,EAAE,iBAAiB;oBAC1C,YAAY,EAAE,SAAS;oBACvB,kBAAkB,EAAE,QAAQ;oBAC5B,aAAa,EAAE,GAAG;oBAClB,aAAa,EAAE,SAAS;oBACxB,WAAW,EAAE,KAAK;oBAClB,UAAU,EAAE,0BAA0B;oBACtC,UAAU,EAAE,0BAA0B;iBACvC,CAAC;SACH,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACxB,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,OAAO;YAClB,kBAAkB,EAAE,CAAC;YACrB,oBAAoB,EAAE,CAAC;YACvB,oBAAoB,EAAE,iBAAiB;YACvC,WAAW,EAAE,SAAS;YACtB,gBAAgB,EAAE,QAAQ;YAC1B,YAAY,EAAE,GAAG;YACjB,YAAY,EAAE,SAAS;YACvB,UAAU,EAAE,KAAK;YACjB,SAAS,EAAE,0BAA0B;YACrC,SAAS,EAAE,0BAA0B;SACtC,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,OAAO,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAC5C,WAAW,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9C,qBAAqB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;QACrD,MAAM,CAAC,WAAW,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC,CAAC;QAC7F,MAAM,CAAC,OAAO,CAAC,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,WAAW,CAAC,eAAe,CAAC;YAC1B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;oBACV,SAAS,EAAE,IAAI;oBACf,UAAU,EAAE,OAAO;oBACnB,qBAAqB,EAAE,CAAC;oBACxB,uBAAuB,EAAE,CAAC;oBAC1B,uBAAuB,EAAE,IAAI;oBAC7B,YAAY,EAAE,IAAI;oBAClB,kBAAkB,EAAE,IAAI;oBACxB,aAAa,EAAE,CAAC;oBAChB,aAAa,EAAE,SAAS;oBACxB,WAAW,EAAE,UAAU;oBACvB,UAAU,EAAE,0BAA0B;oBACtC,UAAU,EAAE,0BAA0B;iBACvC,CAAC;SACH,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,CAAC,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;QACvD,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;QAC1B,IAAI,CAAC,GAAG;YAAE,OAAO;QACjB,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC1C,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;IACtC,UAAU,CAAC,GAAG,EAAE;QACd,iBAAiB,GAAG,KAAK,CAAC;QAC1B,WAAW,CAAC,SAAS,EAAE,CAAC;QACxB,SAAS,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC3D,iBAAiB,GAAG,IAAI,CAAC;QACzB,MAAM,CAAC,GAAG,EAAE;YACV,sBAAsB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,WAAW,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC7D,MAAM,CAAC,GAAG,EAAE;YACV,sBAAsB,CAAC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;QAC3C,MAAM,CAAC,SAAS,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=activation-dispatcher.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activation-dispatcher.test.d.ts","sourceRoot":"","sources":["../../../../src/runtime-v2/activation/__tests__/activation-dispatcher.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,510 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { ActivationDispatcher, PromptWriter, DeferArchiveWriter, MemoryActivationStateStore, MemoryArtifactReadModel, makeIdempotencyKey, isLowRiskChannel, getChannelRiskLevel, LOW_RISK_CHANNELS, HIGH_RISK_CHANNEL_MAP, MemoryApprovalQueueStore, AUTO_PROMOTION_CONFIDENCE_THRESHOLD, AUTO_PROMOTABLE_CHANNELS, } from '../index.js';
3
+ function makePrincipleArtifact(overrides = {}) {
4
+ return {
5
+ artifactId: 'art-001',
6
+ artifactKind: 'principle',
7
+ sourceTaskId: 'task-001',
8
+ sourcePrincipleId: 'P_001',
9
+ lineageArtifactIds: [],
10
+ validationStatus: 'validated',
11
+ contentJson: JSON.stringify({ principleId: 'P_001', text: 'Test principle' }),
12
+ createdAt: '2026-01-01T00:00:00.000Z',
13
+ updatedAt: '2026-01-01T00:00:00.000Z',
14
+ ...overrides,
15
+ };
16
+ }
17
+ function makeDispatchInput(overrides = {}) {
18
+ return {
19
+ artifactId: 'art-001',
20
+ channel: 'prompt',
21
+ rolloutDecision: 'auto_activate',
22
+ actor: { kind: 'system', source: 'rollout_reviewer' },
23
+ now: '2026-05-17T00:00:00.000Z',
24
+ confirm: false,
25
+ ...overrides,
26
+ };
27
+ }
28
+ describe('ActivationDispatcher', () => {
29
+ function makeDispatcher() {
30
+ const stateStore = new MemoryActivationStateStore();
31
+ const artifactStore = new MemoryArtifactReadModel();
32
+ const promptWriter = new PromptWriter();
33
+ const archiveWriter = new DeferArchiveWriter();
34
+ const dispatcher = new ActivationDispatcher(artifactStore, stateStore, { writers: [promptWriter, archiveWriter] });
35
+ return { stateStore, artifactStore, dispatcher, promptWriter, archiveWriter };
36
+ }
37
+ it('low-risk prompt artifact dry-run → would_activate', async () => {
38
+ const { artifactStore, dispatcher } = makeDispatcher();
39
+ artifactStore.addArtifact(makePrincipleArtifact());
40
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt', confirm: false }));
41
+ expect(result.decision).toBe('would_activate');
42
+ if (result.decision === 'would_activate') {
43
+ expect(result.activationId).toBe('act_prompt_P_001');
44
+ expect(result.action).toBe('prompt_activate');
45
+ expect(result.targetRef).toBe('ledger://P_001');
46
+ }
47
+ });
48
+ it('confirm → activated', async () => {
49
+ const { artifactStore, dispatcher } = makeDispatcher();
50
+ artifactStore.addArtifact(makePrincipleArtifact());
51
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt', confirm: true }));
52
+ expect(result.decision).toBe('activated');
53
+ if (result.decision === 'activated') {
54
+ expect(result.activationId).toBe('act_prompt_P_001');
55
+ expect(result.action).toBe('prompt_activate');
56
+ expect(result.targetRef).toBe('ledger://P_001');
57
+ }
58
+ });
59
+ it('repeat confirm → already_activated', async () => {
60
+ const { artifactStore, dispatcher } = makeDispatcher();
61
+ artifactStore.addArtifact(makePrincipleArtifact());
62
+ await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt', confirm: true }));
63
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt', confirm: true }));
64
+ expect(result.decision).toBe('already_activated');
65
+ if (result.decision === 'already_activated') {
66
+ expect(result.activationId).toBe('act_prompt_P_001');
67
+ }
68
+ });
69
+ it('high-risk code_tool_hook → refused', async () => {
70
+ const { artifactStore, dispatcher } = makeDispatcher();
71
+ artifactStore.addArtifact(makePrincipleArtifact());
72
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'code_tool_hook' }));
73
+ expect(result.decision).toBe('refused');
74
+ if (result.decision === 'refused') {
75
+ expect(result.reason).toBe('requires_approval');
76
+ expect(result.riskLevel).toBe('high');
77
+ }
78
+ });
79
+ it('model_training → refused', async () => {
80
+ const { artifactStore, dispatcher } = makeDispatcher();
81
+ artifactStore.addArtifact(makePrincipleArtifact());
82
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'model_training' }));
83
+ expect(result.decision).toBe('refused');
84
+ if (result.decision === 'refused') {
85
+ expect(result.riskLevel).toBe('critical');
86
+ }
87
+ });
88
+ it('skill → refused', async () => {
89
+ const { artifactStore, dispatcher } = makeDispatcher();
90
+ artifactStore.addArtifact(makePrincipleArtifact());
91
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill' }));
92
+ expect(result.decision).toBe('refused');
93
+ if (result.decision === 'refused') {
94
+ expect(result.riskLevel).toBe('medium');
95
+ }
96
+ });
97
+ it('missing artifact → invalid_artifact', async () => {
98
+ const { dispatcher } = makeDispatcher();
99
+ const result = await dispatcher.dispatch(makeDispatchInput());
100
+ expect(result.decision).toBe('invalid_artifact');
101
+ if (result.decision === 'invalid_artifact') {
102
+ expect(result.reason).toBe('artifact_not_found');
103
+ }
104
+ });
105
+ it('malformed artifact → invalid_artifact', async () => {
106
+ const { artifactStore, dispatcher } = makeDispatcher();
107
+ artifactStore.addArtifact(makePrincipleArtifact({ artifactKind: undefined }));
108
+ const result = await dispatcher.dispatch(makeDispatchInput());
109
+ expect(result.decision).toBe('invalid_artifact');
110
+ });
111
+ it('dry-run does not write activation record', async () => {
112
+ const { artifactStore, stateStore, dispatcher } = makeDispatcher();
113
+ artifactStore.addArtifact(makePrincipleArtifact());
114
+ await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt', confirm: false }));
115
+ const key = makeIdempotencyKey('art-001', 'prompt');
116
+ const status = await stateStore.getActivationStatus(key);
117
+ expect(status).toBeNull();
118
+ });
119
+ it('confirm writes only expected activation record', async () => {
120
+ const { artifactStore, stateStore, dispatcher } = makeDispatcher();
121
+ artifactStore.addArtifact(makePrincipleArtifact());
122
+ await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt', confirm: true }));
123
+ const key = makeIdempotencyKey('art-001', 'prompt');
124
+ const status = await stateStore.getActivationStatus(key);
125
+ expect(status).not.toBeNull();
126
+ if (status) {
127
+ expect(status.activationId).toBe('act_prompt_P_001');
128
+ expect(status.action).toBe('prompt_activate');
129
+ expect(status.targetRef).toBe('ledger://P_001');
130
+ }
131
+ });
132
+ it('rolloutDecision = reject → refused', async () => {
133
+ const { artifactStore, dispatcher } = makeDispatcher();
134
+ artifactStore.addArtifact(makePrincipleArtifact());
135
+ const result = await dispatcher.dispatch(makeDispatchInput({ rolloutDecision: 'reject' }));
136
+ expect(result.decision).toBe('refused');
137
+ if (result.decision === 'refused') {
138
+ expect(result.reason).toBe('rollout_rejected');
139
+ }
140
+ });
141
+ it('rolloutDecision = require_approval → refused', async () => {
142
+ const { artifactStore, dispatcher } = makeDispatcher();
143
+ artifactStore.addArtifact(makePrincipleArtifact());
144
+ const result = await dispatcher.dispatch(makeDispatchInput({ rolloutDecision: 'require_approval' }));
145
+ expect(result.decision).toBe('refused');
146
+ if (result.decision === 'refused') {
147
+ expect(result.reason).toBe('requires_approval');
148
+ }
149
+ });
150
+ it('DB/read failure fail closed → refused', async () => {
151
+ const failingArtifactStore = new MemoryArtifactReadModel();
152
+ failingArtifactStore.getArtifactById = async () => { throw new Error('DB down'); };
153
+ const stateStore = new MemoryActivationStateStore();
154
+ const dispatcher = new ActivationDispatcher(failingArtifactStore, stateStore, { writers: [new PromptWriter(), new DeferArchiveWriter()] });
155
+ const result = await dispatcher.dispatch(makeDispatchInput());
156
+ expect(result.decision).toBe('refused');
157
+ if (result.decision === 'refused') {
158
+ expect(result.reason).toBe('artifact_read_failed');
159
+ }
160
+ });
161
+ it('defer_archive channel dry-run → would_activate', async () => {
162
+ const { artifactStore, dispatcher } = makeDispatcher();
163
+ artifactStore.addArtifact(makePrincipleArtifact());
164
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'defer_archive', confirm: false }));
165
+ expect(result.decision).toBe('would_activate');
166
+ if (result.decision === 'would_activate') {
167
+ expect(result.activationId).toBe('act_archive_P_001');
168
+ expect(result.action).toBe('defer_archive');
169
+ expect(result.targetRef).toBe('ledger://P_001#archived');
170
+ }
171
+ });
172
+ it('defer_archive confirm → activated', async () => {
173
+ const { artifactStore, dispatcher } = makeDispatcher();
174
+ artifactStore.addArtifact(makePrincipleArtifact());
175
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'defer_archive', confirm: true }));
176
+ expect(result.decision).toBe('activated');
177
+ if (result.decision === 'activated') {
178
+ expect(result.activationId).toBe('act_archive_P_001');
179
+ expect(result.targetRef).toBe('ledger://P_001#archived');
180
+ }
181
+ });
182
+ it('non-principle artifact → refused by writer canActivate', async () => {
183
+ const { artifactStore, dispatcher } = makeDispatcher();
184
+ artifactStore.addArtifact(makePrincipleArtifact({ artifactKind: 'rule' }));
185
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt' }));
186
+ expect(result.decision).toBe('refused');
187
+ if (result.decision === 'refused') {
188
+ expect(result.reason).toContain('artifact_kind_not_principle');
189
+ }
190
+ });
191
+ it('artifact without principleId → invalid_artifact', async () => {
192
+ const { artifactStore, dispatcher } = makeDispatcher();
193
+ artifactStore.addArtifact(makePrincipleArtifact({
194
+ sourcePrincipleId: undefined,
195
+ contentJson: JSON.stringify({ text: 'No principle ID here' }),
196
+ }));
197
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt' }));
198
+ expect(result.decision).toBe('invalid_artifact');
199
+ if (result.decision === 'invalid_artifact') {
200
+ expect(result.reason).toBe('no_principle_id');
201
+ }
202
+ });
203
+ it('pending validation artifact → refused by writer', async () => {
204
+ const { artifactStore, dispatcher } = makeDispatcher();
205
+ artifactStore.addArtifact(makePrincipleArtifact({ validationStatus: 'pending' }));
206
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt' }));
207
+ expect(result.decision).toBe('refused');
208
+ if (result.decision === 'refused') {
209
+ expect(result.reason).toContain('artifact_validation_status_pending');
210
+ }
211
+ });
212
+ it('whitespace-only sourcePrincipleId → invalid_artifact', async () => {
213
+ const { artifactStore, dispatcher } = makeDispatcher();
214
+ artifactStore.addArtifact(makePrincipleArtifact({
215
+ sourcePrincipleId: ' ',
216
+ contentJson: JSON.stringify({ text: 'No principle ID here' }),
217
+ }));
218
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'prompt' }));
219
+ expect(result.decision).toBe('invalid_artifact');
220
+ if (result.decision === 'invalid_artifact') {
221
+ expect(result.reason).toBe('no_principle_id');
222
+ }
223
+ });
224
+ it('writer.activate throws → refused', async () => {
225
+ const { artifactStore } = makeDispatcher();
226
+ artifactStore.addArtifact(makePrincipleArtifact());
227
+ const throwingWriter = {
228
+ channel: 'prompt',
229
+ canActivate: async () => ({ ok: true, riskLevel: 'low' }),
230
+ activate: async () => { throw new Error('Writer crashed'); },
231
+ };
232
+ const stateStore = new MemoryActivationStateStore();
233
+ const throwDispatcher = new ActivationDispatcher({ getArtifactById: async (id) => id === 'art-001' ? makePrincipleArtifact() : null }, stateStore, { writers: [throwingWriter] });
234
+ const result = await throwDispatcher.dispatch(makeDispatchInput({ channel: 'prompt' }));
235
+ expect(result.decision).toBe('refused');
236
+ if (result.decision === 'refused') {
237
+ expect(result.reason).toBe('activation_write_failed');
238
+ }
239
+ });
240
+ // PRI-145: ApprovalQueue & Auto-Promotion
241
+ function makeDispatcherWithQueue() {
242
+ const stateStore = new MemoryActivationStateStore();
243
+ const artifactStore = new MemoryArtifactReadModel();
244
+ const approvalStore = new MemoryApprovalQueueStore();
245
+ const promptWriter = new PromptWriter();
246
+ const archiveWriter = new DeferArchiveWriter();
247
+ const dispatcher = new ActivationDispatcher(artifactStore, stateStore, { writers: [promptWriter, archiveWriter], approvalQueueStore: approvalStore });
248
+ return { stateStore, artifactStore, dispatcher, approvalStore };
249
+ }
250
+ it('skill with confidence 0.94 + queue store -> queued_for_approval', async () => {
251
+ const { artifactStore, dispatcher } = makeDispatcherWithQueue();
252
+ artifactStore.addArtifact(makePrincipleArtifact());
253
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill', confidence: 0.94 }));
254
+ expect(result.decision).toBe('queued_for_approval');
255
+ if (result.decision === 'queued_for_approval') {
256
+ expect(result.channel).toBe('skill');
257
+ expect(result.riskLevel).toBe('medium');
258
+ expect(result.approvalId).toBeTruthy();
259
+ }
260
+ });
261
+ it('code_tool_hook with queue store -> queued_for_approval', async () => {
262
+ const { artifactStore, dispatcher } = makeDispatcherWithQueue();
263
+ artifactStore.addArtifact(makePrincipleArtifact());
264
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'code_tool_hook', confidence: 0.99 }));
265
+ expect(result.decision).toBe('queued_for_approval');
266
+ if (result.decision === 'queued_for_approval') {
267
+ expect(result.channel).toBe('code_tool_hook');
268
+ expect(result.riskLevel).toBe('high');
269
+ }
270
+ });
271
+ it('model_training with queue store -> queued_for_approval', async () => {
272
+ const { artifactStore, dispatcher } = makeDispatcherWithQueue();
273
+ artifactStore.addArtifact(makePrincipleArtifact());
274
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'model_training', confidence: 0.99 }));
275
+ expect(result.decision).toBe('queued_for_approval');
276
+ if (result.decision === 'queued_for_approval') {
277
+ expect(result.channel).toBe('model_training');
278
+ expect(result.riskLevel).toBe('critical');
279
+ }
280
+ });
281
+ it('skill with low confidence -> queued_for_approval', async () => {
282
+ const { artifactStore, dispatcher } = makeDispatcherWithQueue();
283
+ artifactStore.addArtifact(makePrincipleArtifact());
284
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill', confidence: 0.90 }));
285
+ expect(result.decision).toBe('queued_for_approval');
286
+ });
287
+ it('skill with no confidence -> queued_for_approval', async () => {
288
+ const { artifactStore, dispatcher } = makeDispatcherWithQueue();
289
+ artifactStore.addArtifact(makePrincipleArtifact());
290
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill' }));
291
+ expect(result.decision).toBe('queued_for_approval');
292
+ });
293
+ it('skill with confidence 0.95 + queue store + writer -> would_activate (auto-promote dry-run)', async () => {
294
+ const skillWriter = {
295
+ channel: 'skill',
296
+ canActivate: async () => ({ ok: true, riskLevel: 'medium' }),
297
+ activate: async (input) => ({
298
+ activationId: 'act_skill_' + input.principleId,
299
+ action: 'skill_activate',
300
+ targetRef: 'skill://' + input.principleId,
301
+ }),
302
+ };
303
+ const stateStore = new MemoryActivationStateStore();
304
+ const artifactStore = new MemoryArtifactReadModel();
305
+ const approvalStore = new MemoryApprovalQueueStore();
306
+ artifactStore.addArtifact(makePrincipleArtifact());
307
+ const dispatcher = new ActivationDispatcher(artifactStore, stateStore, { writers: [skillWriter], approvalQueueStore: approvalStore });
308
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill', confidence: 0.95 }));
309
+ expect(result.decision).toBe('would_activate');
310
+ if (result.decision === 'would_activate') {
311
+ expect(result.activationId).toBe('act_skill_P_001');
312
+ expect(result.action).toBe('skill_activate');
313
+ }
314
+ // Verify nothing was queued
315
+ const pending = await approvalStore.listPending();
316
+ expect(pending).toHaveLength(0);
317
+ });
318
+ it('skill with confidence 0.96 + queue store + writer -> activated (auto-promote confirm)', async () => {
319
+ const skillWriter = {
320
+ channel: 'skill',
321
+ canActivate: async () => ({ ok: true, riskLevel: 'medium' }),
322
+ activate: async (input) => ({
323
+ activationId: 'act_skill_' + input.principleId,
324
+ action: 'skill_activate',
325
+ targetRef: 'skill://' + input.principleId,
326
+ }),
327
+ };
328
+ const stateStore = new MemoryActivationStateStore();
329
+ const artifactStore = new MemoryArtifactReadModel();
330
+ const approvalStore = new MemoryApprovalQueueStore();
331
+ artifactStore.addArtifact(makePrincipleArtifact());
332
+ const dispatcher = new ActivationDispatcher(artifactStore, stateStore, { writers: [skillWriter], approvalQueueStore: approvalStore });
333
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill', confidence: 0.96, confirm: true }));
334
+ expect(result.decision).toBe('activated');
335
+ if (result.decision === 'activated') {
336
+ expect(result.activationId).toBe('act_skill_P_001');
337
+ }
338
+ // Verify nothing was queued
339
+ const pending = await approvalStore.listPending();
340
+ expect(pending).toHaveLength(0);
341
+ });
342
+ // PRI-185: Context fields in queued approval records
343
+ it('queued approval record contains context fields', async () => {
344
+ const { artifactStore, dispatcher, approvalStore } = makeDispatcherWithQueue();
345
+ artifactStore.addArtifact(makePrincipleArtifact({
346
+ contentJson: JSON.stringify({ principleId: 'P_001', text: 'Always validate user input before processing' }),
347
+ }));
348
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill', confidence: 0.85, confirm: true }));
349
+ expect(result.decision).toBe('queued_for_approval');
350
+ const pending = await approvalStore.listPending();
351
+ expect(pending).toHaveLength(1);
352
+ const record = pending[0]; // eslint-disable-line @typescript-eslint/no-non-null-assertion
353
+ expect(record.summary).toContain('Always validate user input before processing');
354
+ expect(record.triggerReason).toContain('skill');
355
+ expect(record.triggerReason).toContain('medium');
356
+ expect(record.confidenceExplanation).toContain('85%');
357
+ expect(record.effectDescription).toContain('skill');
358
+ expect(record.rejectionEffect).toContain('skill');
359
+ });
360
+ it('queued approval record degrades gracefully with unparseable contentJson', async () => {
361
+ const { artifactStore, dispatcher, approvalStore } = makeDispatcherWithQueue();
362
+ artifactStore.addArtifact(makePrincipleArtifact({
363
+ contentJson: '{invalid json content',
364
+ }));
365
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'code_tool_hook', confirm: true }));
366
+ expect(result.decision).toBe('queued_for_approval');
367
+ const pending = await approvalStore.listPending();
368
+ expect(pending).toHaveLength(1);
369
+ const record = pending[0]; // eslint-disable-line @typescript-eslint/no-non-null-assertion
370
+ expect(record.summary).toContain('art-001');
371
+ expect(record.summary).not.toContain('{invalid');
372
+ expect(record.triggerReason).toContain('code_tool_hook');
373
+ expect(record.effectDescription).toContain('code tool hook');
374
+ });
375
+ it('approval store enqueue fails -> refused', async () => {
376
+ const failingStore = {
377
+ enqueue: async () => { throw new Error('DB down'); },
378
+ getById: async () => null,
379
+ listPending: async () => [],
380
+ approve: async () => ({ ok: false, error: 'not_found' }),
381
+ reject: async () => ({ ok: false, error: 'not_found' }),
382
+ listAll: async () => [],
383
+ countByStatus: async () => ({ pending: 0, approved: 0, rejected: 0, cancelled: 0 }),
384
+ };
385
+ const stateStore = new MemoryActivationStateStore();
386
+ const artifactStore = new MemoryArtifactReadModel();
387
+ artifactStore.addArtifact(makePrincipleArtifact());
388
+ const dispatcher = new ActivationDispatcher(artifactStore, stateStore, { writers: [new PromptWriter(), new DeferArchiveWriter()], approvalQueueStore: failingStore });
389
+ const result = await dispatcher.dispatch(makeDispatchInput({ channel: 'skill', confidence: 0.90, confirm: true }));
390
+ expect(result.decision).toBe('refused');
391
+ if (result.decision === 'refused') {
392
+ expect(result.reason).toBe('approval_enqueue_failed');
393
+ }
394
+ });
395
+ });
396
+ describe('PromptWriter', () => {
397
+ it('canActivate returns ok=true for principle artifact', async () => {
398
+ const writer = new PromptWriter();
399
+ const result = await writer.canActivate(makePrincipleArtifact());
400
+ expect(result.ok).toBe(true);
401
+ expect(result.riskLevel).toBe('low');
402
+ });
403
+ it('canActivate returns ok=false for non-principle artifact', async () => {
404
+ const writer = new PromptWriter();
405
+ const result = await writer.canActivate(makePrincipleArtifact({ artifactKind: 'rule' }));
406
+ expect(result.ok).toBe(false);
407
+ });
408
+ it('canActivate returns ok=false for pending validation artifact', async () => {
409
+ const writer = new PromptWriter();
410
+ const result = await writer.canActivate(makePrincipleArtifact({ validationStatus: 'pending' }));
411
+ expect(result.ok).toBe(false);
412
+ expect(result.reason).toContain('artifact_validation_status_pending');
413
+ });
414
+ it('activate returns correct activationId and targetRef', async () => {
415
+ const writer = new PromptWriter();
416
+ const result = await writer.activate({
417
+ artifactId: 'art-001',
418
+ channel: 'prompt',
419
+ principleId: 'P_001',
420
+ idempotencyKey: 'art-001::prompt',
421
+ now: '2026-05-17T00:00:00.000Z',
422
+ }, makePrincipleArtifact());
423
+ expect(result.activationId).toBe('act_prompt_P_001');
424
+ expect(result.action).toBe('prompt_activate');
425
+ expect(result.targetRef).toBe('ledger://P_001');
426
+ });
427
+ });
428
+ describe('DeferArchiveWriter', () => {
429
+ it('canActivate returns ok=true for principle artifact', async () => {
430
+ const writer = new DeferArchiveWriter();
431
+ const result = await writer.canActivate(makePrincipleArtifact());
432
+ expect(result.ok).toBe(true);
433
+ });
434
+ it('activate returns correct activationId and targetRef', async () => {
435
+ const writer = new DeferArchiveWriter();
436
+ const result = await writer.activate({
437
+ artifactId: 'art-001',
438
+ channel: 'defer_archive',
439
+ principleId: 'P_001',
440
+ idempotencyKey: 'art-001::defer_archive',
441
+ now: '2026-05-17T00:00:00.000Z',
442
+ }, makePrincipleArtifact());
443
+ expect(result.activationId).toBe('act_archive_P_001');
444
+ expect(result.action).toBe('defer_archive');
445
+ expect(result.targetRef).toBe('ledger://P_001#archived');
446
+ });
447
+ });
448
+ describe('extractPrincipleId', () => {
449
+ it('trims whitespace from sourcePrincipleId', async () => {
450
+ const writer = new PromptWriter();
451
+ const artifact = makePrincipleArtifact({ sourcePrincipleId: ' P_001 ' });
452
+ const result = await writer.canActivate(artifact);
453
+ expect(result.ok).toBe(true);
454
+ });
455
+ it('rejects whitespace-only sourcePrincipleId', async () => {
456
+ const writer = new PromptWriter();
457
+ const artifact = makePrincipleArtifact({
458
+ sourcePrincipleId: ' ',
459
+ contentJson: JSON.stringify({ text: 'No ID' }),
460
+ });
461
+ const result = await writer.canActivate(artifact);
462
+ expect(result.ok).toBe(false);
463
+ expect(result.reason).toBe('no_principle_id_in_artifact');
464
+ });
465
+ it('trims whitespace from contentJson principleId', async () => {
466
+ const writer = new PromptWriter();
467
+ const artifact = makePrincipleArtifact({
468
+ sourcePrincipleId: undefined,
469
+ contentJson: JSON.stringify({ principleId: ' P_002 ' }),
470
+ });
471
+ const result = await writer.canActivate(artifact);
472
+ expect(result.ok).toBe(true);
473
+ });
474
+ });
475
+ describe('activation type helpers', () => {
476
+ it('LOW_RISK_CHANNELS contains prompt and defer_archive', () => {
477
+ expect(LOW_RISK_CHANNELS).toContain('prompt');
478
+ expect(LOW_RISK_CHANNELS).toContain('defer_archive');
479
+ expect(LOW_RISK_CHANNELS.length).toBe(2);
480
+ });
481
+ it('isLowRiskChannel returns true for prompt and defer_archive', () => {
482
+ expect(isLowRiskChannel('prompt')).toBe(true);
483
+ expect(isLowRiskChannel('defer_archive')).toBe(true);
484
+ expect(isLowRiskChannel('code_tool_hook')).toBe(false);
485
+ expect(isLowRiskChannel('model_training')).toBe(false);
486
+ expect(isLowRiskChannel('skill')).toBe(false);
487
+ });
488
+ it('getChannelRiskLevel returns correct levels', () => {
489
+ expect(getChannelRiskLevel('prompt')).toBe('low');
490
+ expect(getChannelRiskLevel('defer_archive')).toBe('low');
491
+ expect(getChannelRiskLevel('skill')).toBe('medium');
492
+ expect(getChannelRiskLevel('code_tool_hook')).toBe('high');
493
+ expect(getChannelRiskLevel('model_training')).toBe('critical');
494
+ });
495
+ it('makeIdempotencyKey produces expected format', () => {
496
+ expect(makeIdempotencyKey('art-001', 'prompt')).toBe('art-001::prompt');
497
+ });
498
+ it('AUTO_PROMOTION_CONFIDENCE_THRESHOLD is 0.95', () => {
499
+ expect(AUTO_PROMOTION_CONFIDENCE_THRESHOLD).toBe(0.95);
500
+ });
501
+ it('AUTO_PROMOTABLE_CHANNELS contains only skill', () => {
502
+ expect(AUTO_PROMOTABLE_CHANNELS).toEqual(['skill']);
503
+ });
504
+ it('HIGH_RISK_CHANNEL_MAP has correct entries', () => {
505
+ expect(HIGH_RISK_CHANNEL_MAP.skill).toBe('medium');
506
+ expect(HIGH_RISK_CHANNEL_MAP.code_tool_hook).toBe('high');
507
+ expect(HIGH_RISK_CHANNEL_MAP.model_training).toBe('critical');
508
+ });
509
+ });
510
+ //# sourceMappingURL=activation-dispatcher.test.js.map