pulseed 0.5.4 → 0.6.1

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 (804) hide show
  1. package/README.md +21 -15
  2. package/dist/adapters/datasources/artifact-metric-datasource.d.ts +18 -0
  3. package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -0
  4. package/dist/adapters/datasources/artifact-metric-datasource.js +592 -0
  5. package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -0
  6. package/dist/adapters/types/mcp.d.ts +6 -6
  7. package/dist/base/config/identity-loader.d.ts +12 -3
  8. package/dist/base/config/identity-loader.d.ts.map +1 -1
  9. package/dist/base/config/identity-loader.js +15 -7
  10. package/dist/base/config/identity-loader.js.map +1 -1
  11. package/dist/base/types/goal-activation.d.ts +14 -2
  12. package/dist/base/types/goal-activation.d.ts.map +1 -1
  13. package/dist/base/types/goal-activation.js +4 -0
  14. package/dist/base/types/goal-activation.js.map +1 -1
  15. package/dist/grounding/contracts.d.ts +13 -0
  16. package/dist/grounding/contracts.d.ts.map +1 -1
  17. package/dist/grounding/providers/knowledge-provider.d.ts.map +1 -1
  18. package/dist/grounding/providers/knowledge-provider.js +25 -3
  19. package/dist/grounding/providers/knowledge-provider.js.map +1 -1
  20. package/dist/grounding/providers/soil-provider.d.ts.map +1 -1
  21. package/dist/grounding/providers/soil-provider.js +28 -3
  22. package/dist/grounding/providers/soil-provider.js.map +1 -1
  23. package/dist/grounding/providers/static-policy-provider.d.ts +3 -1
  24. package/dist/grounding/providers/static-policy-provider.d.ts.map +1 -1
  25. package/dist/grounding/providers/static-policy-provider.js +4 -3
  26. package/dist/grounding/providers/static-policy-provider.js.map +1 -1
  27. package/dist/index.d.ts +14 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +8 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
  32. package/dist/interface/chat/chat-event-state.js +92 -9
  33. package/dist/interface/chat/chat-event-state.js.map +1 -1
  34. package/dist/interface/chat/chat-events.d.ts +15 -1
  35. package/dist/interface/chat/chat-events.d.ts.map +1 -1
  36. package/dist/interface/chat/chat-runner-commands.d.ts +6 -0
  37. package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
  38. package/dist/interface/chat/chat-runner-commands.js +94 -2
  39. package/dist/interface/chat/chat-runner-commands.js.map +1 -1
  40. package/dist/interface/chat/chat-runner-event-bridge.d.ts +11 -1
  41. package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
  42. package/dist/interface/chat/chat-runner-event-bridge.js +123 -11
  43. package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
  44. package/dist/interface/chat/chat-runner-routes.d.ts +20 -0
  45. package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
  46. package/dist/interface/chat/chat-runner-routes.js +99 -7
  47. package/dist/interface/chat/chat-runner-routes.js.map +1 -1
  48. package/dist/interface/chat/chat-runner-support.d.ts +25 -1
  49. package/dist/interface/chat/chat-runner-support.d.ts.map +1 -1
  50. package/dist/interface/chat/chat-runner-support.js +66 -12
  51. package/dist/interface/chat/chat-runner-support.js.map +1 -1
  52. package/dist/interface/chat/chat-runner.d.ts.map +1 -1
  53. package/dist/interface/chat/chat-runner.js +64 -10
  54. package/dist/interface/chat/chat-runner.js.map +1 -1
  55. package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
  56. package/dist/interface/chat/cross-platform-session.js +19 -1
  57. package/dist/interface/chat/cross-platform-session.js.map +1 -1
  58. package/dist/interface/chat/event-subscriber.d.ts.map +1 -1
  59. package/dist/interface/chat/event-subscriber.js +20 -0
  60. package/dist/interface/chat/event-subscriber.js.map +1 -1
  61. package/dist/interface/chat/failure-recovery.d.ts +43 -1
  62. package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
  63. package/dist/interface/chat/failure-recovery.js +259 -89
  64. package/dist/interface/chat/failure-recovery.js.map +1 -1
  65. package/dist/interface/chat/freeform-route-classifier.d.ts +21 -0
  66. package/dist/interface/chat/freeform-route-classifier.d.ts.map +1 -0
  67. package/dist/interface/chat/freeform-route-classifier.js +42 -0
  68. package/dist/interface/chat/freeform-route-classifier.js.map +1 -0
  69. package/dist/interface/chat/grounding.js +1 -1
  70. package/dist/interface/chat/grounding.js.map +1 -1
  71. package/dist/interface/chat/ingress-router.d.ts +11 -1
  72. package/dist/interface/chat/ingress-router.d.ts.map +1 -1
  73. package/dist/interface/chat/ingress-router.js +21 -3
  74. package/dist/interface/chat/ingress-router.js.map +1 -1
  75. package/dist/interface/chat/tend-command.js +1 -0
  76. package/dist/interface/chat/tend-command.js.map +1 -1
  77. package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
  78. package/dist/interface/cli/cli-command-registry.js +28 -4
  79. package/dist/interface/cli/cli-command-registry.js.map +1 -1
  80. package/dist/interface/cli/cli-runner.d.ts.map +1 -1
  81. package/dist/interface/cli/cli-runner.js +4 -1
  82. package/dist/interface/cli/cli-runner.js.map +1 -1
  83. package/dist/interface/cli/commands/daemon-shared.d.ts +2 -1
  84. package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
  85. package/dist/interface/cli/commands/daemon-shared.js +33 -1
  86. package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
  87. package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
  88. package/dist/interface/cli/commands/daemon.js +76 -9
  89. package/dist/interface/cli/commands/daemon.js.map +1 -1
  90. package/dist/interface/cli/commands/goal-read.d.ts.map +1 -1
  91. package/dist/interface/cli/commands/goal-read.js +14 -3
  92. package/dist/interface/cli/commands/goal-read.js.map +1 -1
  93. package/dist/interface/cli/commands/memory.d.ts +3 -0
  94. package/dist/interface/cli/commands/memory.d.ts.map +1 -0
  95. package/dist/interface/cli/commands/memory.js +78 -0
  96. package/dist/interface/cli/commands/memory.js.map +1 -0
  97. package/dist/interface/cli/commands/notify.d.ts.map +1 -1
  98. package/dist/interface/cli/commands/notify.js +7 -1
  99. package/dist/interface/cli/commands/notify.js.map +1 -1
  100. package/dist/interface/cli/commands/plugin.d.ts.map +1 -1
  101. package/dist/interface/cli/commands/plugin.js +134 -12
  102. package/dist/interface/cli/commands/plugin.js.map +1 -1
  103. package/dist/interface/cli/commands/profile.d.ts +3 -0
  104. package/dist/interface/cli/commands/profile.d.ts.map +1 -0
  105. package/dist/interface/cli/commands/profile.js +459 -0
  106. package/dist/interface/cli/commands/profile.js.map +1 -0
  107. package/dist/interface/cli/commands/run.d.ts.map +1 -1
  108. package/dist/interface/cli/commands/run.js +29 -0
  109. package/dist/interface/cli/commands/run.js.map +1 -1
  110. package/dist/interface/cli/commands/runtime.d.ts +1 -1
  111. package/dist/interface/cli/commands/runtime.d.ts.map +1 -1
  112. package/dist/interface/cli/commands/runtime.js +506 -2
  113. package/dist/interface/cli/commands/runtime.js.map +1 -1
  114. package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
  115. package/dist/interface/cli/commands/setup-wizard.js +30 -0
  116. package/dist/interface/cli/commands/setup-wizard.js.map +1 -1
  117. package/dist/interface/cli/data-source-bootstrap.d.ts.map +1 -1
  118. package/dist/interface/cli/data-source-bootstrap.js +25 -12
  119. package/dist/interface/cli/data-source-bootstrap.js.map +1 -1
  120. package/dist/interface/cli/setup.d.ts.map +1 -1
  121. package/dist/interface/cli/setup.js +14 -0
  122. package/dist/interface/cli/setup.js.map +1 -1
  123. package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
  124. package/dist/interface/cli/utils/loop-runner.js +2 -1
  125. package/dist/interface/cli/utils/loop-runner.js.map +1 -1
  126. package/dist/interface/cli/utils.d.ts.map +1 -1
  127. package/dist/interface/cli/utils.js +12 -3
  128. package/dist/interface/cli/utils.js.map +1 -1
  129. package/dist/interface/tui/app.d.ts +4 -1
  130. package/dist/interface/tui/app.d.ts.map +1 -1
  131. package/dist/interface/tui/app.js +268 -10
  132. package/dist/interface/tui/app.js.map +1 -1
  133. package/dist/interface/tui/chat-surface.d.ts +2 -0
  134. package/dist/interface/tui/chat-surface.d.ts.map +1 -1
  135. package/dist/interface/tui/chat-surface.js +3 -0
  136. package/dist/interface/tui/chat-surface.js.map +1 -1
  137. package/dist/interface/tui/dashboard.d.ts +37 -1
  138. package/dist/interface/tui/dashboard.d.ts.map +1 -1
  139. package/dist/interface/tui/dashboard.js +264 -1
  140. package/dist/interface/tui/dashboard.js.map +1 -1
  141. package/dist/interface/tui/entry-deps.d.ts +3 -1
  142. package/dist/interface/tui/entry-deps.d.ts.map +1 -1
  143. package/dist/interface/tui/entry-deps.js +19 -1
  144. package/dist/interface/tui/entry-deps.js.map +1 -1
  145. package/dist/interface/tui/entry.d.ts.map +1 -1
  146. package/dist/interface/tui/entry.js +4 -2
  147. package/dist/interface/tui/entry.js.map +1 -1
  148. package/dist/interface/tui/intent-recognizer.d.ts +8 -3
  149. package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
  150. package/dist/interface/tui/intent-recognizer.js +75 -69
  151. package/dist/interface/tui/intent-recognizer.js.map +1 -1
  152. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts +2 -0
  153. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
  154. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +1 -0
  155. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
  156. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
  157. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +42 -0
  158. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
  159. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +1 -0
  160. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
  161. package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
  162. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
  163. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +3 -0
  164. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
  165. package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +109 -0
  166. package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -0
  167. package/dist/orchestrator/execution/agent-loop/agent-timeline.js +261 -0
  168. package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +1 -0
  169. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
  170. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +1 -0
  171. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
  172. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
  173. package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts +1 -1
  174. package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts.map +1 -1
  175. package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.js +3 -2
  176. package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.js.map +1 -1
  177. package/dist/orchestrator/execution/agent-loop/core-phase-runner.d.ts +1 -1
  178. package/dist/orchestrator/execution/agent-loop/core-phase-runner.d.ts.map +1 -1
  179. package/dist/orchestrator/execution/agent-loop/core-phase-runner.js +10 -1
  180. package/dist/orchestrator/execution/agent-loop/core-phase-runner.js.map +1 -1
  181. package/dist/orchestrator/execution/agent-loop/execution-policy.d.ts +2 -0
  182. package/dist/orchestrator/execution/agent-loop/execution-policy.d.ts.map +1 -1
  183. package/dist/orchestrator/execution/agent-loop/execution-policy.js +9 -3
  184. package/dist/orchestrator/execution/agent-loop/execution-policy.js.map +1 -1
  185. package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.d.ts +2 -0
  186. package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.d.ts.map +1 -1
  187. package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.js +4 -0
  188. package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.js.map +1 -1
  189. package/dist/orchestrator/execution/agent-loop/self-protection.d.ts +9 -0
  190. package/dist/orchestrator/execution/agent-loop/self-protection.d.ts.map +1 -0
  191. package/dist/orchestrator/execution/agent-loop/self-protection.js +74 -0
  192. package/dist/orchestrator/execution/agent-loop/self-protection.js.map +1 -0
  193. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +8 -8
  194. package/dist/orchestrator/execution/task/task-generation.d.ts +3 -1
  195. package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
  196. package/dist/orchestrator/execution/task/task-generation.js +17 -2
  197. package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
  198. package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +5 -1
  199. package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
  200. package/dist/orchestrator/execution/task/task-lifecycle-runner.js +9 -5
  201. package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
  202. package/dist/orchestrator/execution/task/task-lifecycle.d.ts +10 -1
  203. package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
  204. package/dist/orchestrator/execution/task/task-lifecycle.js +108 -7
  205. package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
  206. package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +2 -1
  207. package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
  208. package/dist/orchestrator/execution/task/task-prompt-builder.js +4 -2
  209. package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
  210. package/dist/orchestrator/execution/types/pipeline.d.ts +6 -6
  211. package/dist/orchestrator/goal/types/goal.d.ts +282 -0
  212. package/dist/orchestrator/goal/types/goal.d.ts.map +1 -1
  213. package/dist/orchestrator/goal/types/goal.js +20 -0
  214. package/dist/orchestrator/goal/types/goal.js.map +1 -1
  215. package/dist/orchestrator/loop/core-loop/contracts.d.ts +46 -3
  216. package/dist/orchestrator/loop/core-loop/contracts.d.ts.map +1 -1
  217. package/dist/orchestrator/loop/core-loop/contracts.js.map +1 -1
  218. package/dist/orchestrator/loop/core-loop/decision-engine.d.ts.map +1 -1
  219. package/dist/orchestrator/loop/core-loop/decision-engine.js +4 -0
  220. package/dist/orchestrator/loop/core-loop/decision-engine.js.map +1 -1
  221. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts +48 -0
  222. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts.map +1 -0
  223. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js +386 -0
  224. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js.map +1 -0
  225. package/dist/orchestrator/loop/core-loop/evidence-ledger.js +1 -1
  226. package/dist/orchestrator/loop/core-loop/evidence-ledger.js.map +1 -1
  227. package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts +1 -0
  228. package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts.map +1 -1
  229. package/dist/orchestrator/loop/core-loop/iteration-kernel.js +492 -1
  230. package/dist/orchestrator/loop/core-loop/iteration-kernel.js.map +1 -1
  231. package/dist/orchestrator/loop/core-loop/phase-policy.d.ts.map +1 -1
  232. package/dist/orchestrator/loop/core-loop/phase-policy.js +35 -0
  233. package/dist/orchestrator/loop/core-loop/phase-policy.js.map +1 -1
  234. package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts +2 -0
  235. package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts.map +1 -1
  236. package/dist/orchestrator/loop/core-loop/phase-runtime.js +43 -2
  237. package/dist/orchestrator/loop/core-loop/phase-runtime.js.map +1 -1
  238. package/dist/orchestrator/loop/core-loop/phase-specs.d.ts +1054 -2
  239. package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +1 -1
  240. package/dist/orchestrator/loop/core-loop/phase-specs.js +205 -0
  241. package/dist/orchestrator/loop/core-loop/phase-specs.js.map +1 -1
  242. package/dist/orchestrator/loop/core-loop/public-research.d.ts +32 -0
  243. package/dist/orchestrator/loop/core-loop/public-research.d.ts.map +1 -0
  244. package/dist/orchestrator/loop/core-loop/public-research.js +112 -0
  245. package/dist/orchestrator/loop/core-loop/public-research.js.map +1 -0
  246. package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts.map +1 -1
  247. package/dist/orchestrator/loop/core-loop/task-cycle-stall.js +141 -5
  248. package/dist/orchestrator/loop/core-loop/task-cycle-stall.js.map +1 -1
  249. package/dist/orchestrator/loop/core-loop/task-cycle.d.ts +4 -0
  250. package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +1 -1
  251. package/dist/orchestrator/loop/core-loop/task-cycle.js +31 -2
  252. package/dist/orchestrator/loop/core-loop/task-cycle.js.map +1 -1
  253. package/dist/orchestrator/loop/core-loop.d.ts +15 -5
  254. package/dist/orchestrator/loop/core-loop.d.ts.map +1 -1
  255. package/dist/orchestrator/loop/core-loop.js +283 -17
  256. package/dist/orchestrator/loop/core-loop.js.map +1 -1
  257. package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
  258. package/dist/orchestrator/loop/loop-report-helper.js +4 -0
  259. package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
  260. package/dist/orchestrator/loop/loop-result-types.d.ts +20 -1
  261. package/dist/orchestrator/loop/loop-result-types.d.ts.map +1 -1
  262. package/dist/orchestrator/loop/loop-result-types.js.map +1 -1
  263. package/dist/orchestrator/loop/post-loop-hooks.d.ts +1 -0
  264. package/dist/orchestrator/loop/post-loop-hooks.d.ts.map +1 -1
  265. package/dist/orchestrator/loop/post-loop-hooks.js +34 -1
  266. package/dist/orchestrator/loop/post-loop-hooks.js.map +1 -1
  267. package/dist/orchestrator/loop/run-policy.d.ts +10 -0
  268. package/dist/orchestrator/loop/run-policy.d.ts.map +1 -0
  269. package/dist/orchestrator/loop/run-policy.js +30 -0
  270. package/dist/orchestrator/loop/run-policy.js.map +1 -0
  271. package/dist/orchestrator/strategy/divergent-exploration.d.ts +37 -0
  272. package/dist/orchestrator/strategy/divergent-exploration.d.ts.map +1 -0
  273. package/dist/orchestrator/strategy/divergent-exploration.js +324 -0
  274. package/dist/orchestrator/strategy/divergent-exploration.js.map +1 -0
  275. package/dist/orchestrator/strategy/strategy-helpers.d.ts +108 -0
  276. package/dist/orchestrator/strategy/strategy-helpers.d.ts.map +1 -1
  277. package/dist/orchestrator/strategy/strategy-helpers.js +34 -2
  278. package/dist/orchestrator/strategy/strategy-helpers.js.map +1 -1
  279. package/dist/orchestrator/strategy/strategy-manager-base.d.ts +20 -1
  280. package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
  281. package/dist/orchestrator/strategy/strategy-manager-base.js +71 -6
  282. package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -1
  283. package/dist/orchestrator/strategy/types/cross-portfolio.d.ts +2 -2
  284. package/dist/orchestrator/strategy/types/strategy.d.ts +364 -0
  285. package/dist/orchestrator/strategy/types/strategy.d.ts.map +1 -1
  286. package/dist/orchestrator/strategy/types/strategy.js +43 -0
  287. package/dist/orchestrator/strategy/types/strategy.js.map +1 -1
  288. package/dist/platform/corrections/index.d.ts +2 -0
  289. package/dist/platform/corrections/index.d.ts.map +1 -0
  290. package/dist/platform/corrections/index.js +2 -0
  291. package/dist/platform/corrections/index.js.map +1 -0
  292. package/dist/platform/corrections/memory-correction-ledger.d.ts +656 -0
  293. package/dist/platform/corrections/memory-correction-ledger.d.ts.map +1 -0
  294. package/dist/platform/corrections/memory-correction-ledger.js +120 -0
  295. package/dist/platform/corrections/memory-correction-ledger.js.map +1 -0
  296. package/dist/platform/corrections/memory-governance.d.ts +118 -0
  297. package/dist/platform/corrections/memory-governance.d.ts.map +1 -0
  298. package/dist/platform/corrections/memory-governance.js +32 -0
  299. package/dist/platform/corrections/memory-governance.js.map +1 -0
  300. package/dist/platform/corrections/memory-quarantine.d.ts +57 -0
  301. package/dist/platform/corrections/memory-quarantine.d.ts.map +1 -0
  302. package/dist/platform/corrections/memory-quarantine.js +42 -0
  303. package/dist/platform/corrections/memory-quarantine.js.map +1 -0
  304. package/dist/platform/corrections/user-memory-operations.d.ts +31 -0
  305. package/dist/platform/corrections/user-memory-operations.d.ts.map +1 -0
  306. package/dist/platform/corrections/user-memory-operations.js +139 -0
  307. package/dist/platform/corrections/user-memory-operations.js.map +1 -0
  308. package/dist/platform/dream/dream-activation.d.ts +1 -1
  309. package/dist/platform/dream/dream-consolidator.d.ts +5 -0
  310. package/dist/platform/dream/dream-consolidator.d.ts.map +1 -1
  311. package/dist/platform/dream/dream-consolidator.js +235 -13
  312. package/dist/platform/dream/dream-consolidator.js.map +1 -1
  313. package/dist/platform/dream/dream-event-workflows.d.ts +6 -6
  314. package/dist/platform/dream/dream-soil-mutation.d.ts.map +1 -1
  315. package/dist/platform/dream/dream-soil-mutation.js +10 -0
  316. package/dist/platform/dream/dream-soil-mutation.js.map +1 -1
  317. package/dist/platform/dream/dream-types.d.ts +503 -91
  318. package/dist/platform/dream/dream-types.d.ts.map +1 -1
  319. package/dist/platform/dream/dream-types.js +3 -0
  320. package/dist/platform/dream/dream-types.js.map +1 -1
  321. package/dist/platform/dream/playbook-memory.d.ts +14 -14
  322. package/dist/platform/drive/metric-history.d.ts +61 -0
  323. package/dist/platform/drive/metric-history.d.ts.map +1 -0
  324. package/dist/platform/drive/metric-history.js +206 -0
  325. package/dist/platform/drive/metric-history.js.map +1 -0
  326. package/dist/platform/drive/progress-predictor.d.ts +7 -0
  327. package/dist/platform/drive/progress-predictor.d.ts.map +1 -1
  328. package/dist/platform/drive/progress-predictor.js +23 -0
  329. package/dist/platform/drive/progress-predictor.js.map +1 -1
  330. package/dist/platform/drive/stall-detector.d.ts +3 -1
  331. package/dist/platform/drive/stall-detector.d.ts.map +1 -1
  332. package/dist/platform/drive/stall-detector.js +40 -1
  333. package/dist/platform/drive/stall-detector.js.map +1 -1
  334. package/dist/platform/drive/types/satisficing.d.ts +2 -2
  335. package/dist/platform/drive/types/stall.d.ts +4 -0
  336. package/dist/platform/drive/types/stall.d.ts.map +1 -1
  337. package/dist/platform/drive/types/stall.js +1 -0
  338. package/dist/platform/drive/types/stall.js.map +1 -1
  339. package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts +48 -0
  340. package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts.map +1 -1
  341. package/dist/platform/knowledge/knowledge-manager-agent-memory.js +154 -4
  342. package/dist/platform/knowledge/knowledge-manager-agent-memory.js.map +1 -1
  343. package/dist/platform/knowledge/knowledge-manager-lint.d.ts.map +1 -1
  344. package/dist/platform/knowledge/knowledge-manager-lint.js +98 -4
  345. package/dist/platform/knowledge/knowledge-manager-lint.js.map +1 -1
  346. package/dist/platform/knowledge/knowledge-manager.d.ts +41 -2
  347. package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
  348. package/dist/platform/knowledge/knowledge-manager.js +45 -5
  349. package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
  350. package/dist/platform/knowledge/types/agent-memory.d.ts +1170 -42
  351. package/dist/platform/knowledge/types/agent-memory.d.ts.map +1 -1
  352. package/dist/platform/knowledge/types/agent-memory.js +13 -3
  353. package/dist/platform/knowledge/types/agent-memory.js.map +1 -1
  354. package/dist/platform/knowledge/types/learning.d.ts +2 -2
  355. package/dist/platform/observation/data-source-adapter.d.ts +1 -0
  356. package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
  357. package/dist/platform/observation/data-source-adapter.js.map +1 -1
  358. package/dist/platform/observation/observation-datasource.d.ts.map +1 -1
  359. package/dist/platform/observation/observation-datasource.js +2 -0
  360. package/dist/platform/observation/observation-datasource.js.map +1 -1
  361. package/dist/platform/observation/types/data-source.d.ts +153 -9
  362. package/dist/platform/observation/types/data-source.d.ts.map +1 -1
  363. package/dist/platform/observation/types/data-source.js +13 -1
  364. package/dist/platform/observation/types/data-source.js.map +1 -1
  365. package/dist/platform/profile/proactive-feedback-proposals.d.ts +11 -0
  366. package/dist/platform/profile/proactive-feedback-proposals.d.ts.map +1 -0
  367. package/dist/platform/profile/proactive-feedback-proposals.js +106 -0
  368. package/dist/platform/profile/proactive-feedback-proposals.js.map +1 -0
  369. package/dist/platform/profile/profile-change-proposal.d.ts +464 -0
  370. package/dist/platform/profile/profile-change-proposal.d.ts.map +1 -0
  371. package/dist/platform/profile/profile-change-proposal.js +352 -0
  372. package/dist/platform/profile/profile-change-proposal.js.map +1 -0
  373. package/dist/platform/profile/relationship-profile.d.ts +351 -0
  374. package/dist/platform/profile/relationship-profile.d.ts.map +1 -0
  375. package/dist/platform/profile/relationship-profile.js +351 -0
  376. package/dist/platform/profile/relationship-profile.js.map +1 -0
  377. package/dist/platform/profile/retrieval-context.d.ts +12 -0
  378. package/dist/platform/profile/retrieval-context.d.ts.map +1 -0
  379. package/dist/platform/profile/retrieval-context.js +21 -0
  380. package/dist/platform/profile/retrieval-context.js.map +1 -0
  381. package/dist/platform/profile/user-md-profile-import.d.ts +73 -0
  382. package/dist/platform/profile/user-md-profile-import.d.ts.map +1 -0
  383. package/dist/platform/profile/user-md-profile-import.js +179 -0
  384. package/dist/platform/profile/user-md-profile-import.js.map +1 -0
  385. package/dist/platform/soil/content-projections.d.ts.map +1 -1
  386. package/dist/platform/soil/content-projections.js +17 -7
  387. package/dist/platform/soil/content-projections.js.map +1 -1
  388. package/dist/platform/soil/context-compiler.d.ts +16 -1
  389. package/dist/platform/soil/context-compiler.d.ts.map +1 -1
  390. package/dist/platform/soil/context-compiler.js +142 -4
  391. package/dist/platform/soil/context-compiler.js.map +1 -1
  392. package/dist/platform/soil/contracts.d.ts +749 -89
  393. package/dist/platform/soil/contracts.d.ts.map +1 -1
  394. package/dist/platform/soil/contracts.js +22 -0
  395. package/dist/platform/soil/contracts.js.map +1 -1
  396. package/dist/platform/soil/ddl.d.ts.map +1 -1
  397. package/dist/platform/soil/ddl.js +19 -0
  398. package/dist/platform/soil/ddl.js.map +1 -1
  399. package/dist/platform/soil/display/materialize.d.ts.map +1 -1
  400. package/dist/platform/soil/display/materialize.js.map +1 -1
  401. package/dist/platform/soil/importer.d.ts +12 -12
  402. package/dist/platform/soil/sqlite-repository-helpers.d.ts +4 -0
  403. package/dist/platform/soil/sqlite-repository-helpers.d.ts.map +1 -1
  404. package/dist/platform/soil/sqlite-repository-helpers.js.map +1 -1
  405. package/dist/platform/soil/sqlite-repository-search.d.ts.map +1 -1
  406. package/dist/platform/soil/sqlite-repository-search.js +48 -3
  407. package/dist/platform/soil/sqlite-repository-search.js.map +1 -1
  408. package/dist/platform/soil/sqlite-repository-storage.d.ts +3 -1
  409. package/dist/platform/soil/sqlite-repository-storage.d.ts.map +1 -1
  410. package/dist/platform/soil/sqlite-repository-storage.js +124 -3
  411. package/dist/platform/soil/sqlite-repository-storage.js.map +1 -1
  412. package/dist/platform/soil/sqlite-repository.d.ts +10 -1
  413. package/dist/platform/soil/sqlite-repository.d.ts.map +1 -1
  414. package/dist/platform/soil/sqlite-repository.js +46 -4
  415. package/dist/platform/soil/sqlite-repository.js.map +1 -1
  416. package/dist/platform/soil/types.d.ts +16 -16
  417. package/dist/platform/time/deadline-finalization.d.ts +57 -0
  418. package/dist/platform/time/deadline-finalization.d.ts.map +1 -0
  419. package/dist/platform/time/deadline-finalization.js +136 -0
  420. package/dist/platform/time/deadline-finalization.js.map +1 -0
  421. package/dist/platform/time/execution-mode.d.ts +29 -0
  422. package/dist/platform/time/execution-mode.d.ts.map +1 -0
  423. package/dist/platform/time/execution-mode.js +84 -0
  424. package/dist/platform/time/execution-mode.js.map +1 -0
  425. package/dist/platform/traits/curiosity-engine.d.ts +3 -1
  426. package/dist/platform/traits/curiosity-engine.d.ts.map +1 -1
  427. package/dist/platform/traits/curiosity-engine.js +3 -1
  428. package/dist/platform/traits/curiosity-engine.js.map +1 -1
  429. package/dist/platform/traits/curiosity-proposals.d.ts +6 -2
  430. package/dist/platform/traits/curiosity-proposals.d.ts.map +1 -1
  431. package/dist/platform/traits/curiosity-proposals.js +9 -3
  432. package/dist/platform/traits/curiosity-proposals.js.map +1 -1
  433. package/dist/platform/traits/types/curiosity.d.ts +9 -9
  434. package/dist/platform/traits/types/guardrail.d.ts +6 -6
  435. package/dist/reflection/evening-catchup.d.ts.map +1 -1
  436. package/dist/reflection/evening-catchup.js +4 -1
  437. package/dist/reflection/evening-catchup.js.map +1 -1
  438. package/dist/reflection/morning-planning.d.ts.map +1 -1
  439. package/dist/reflection/morning-planning.js +4 -1
  440. package/dist/reflection/morning-planning.js.map +1 -1
  441. package/dist/reflection/weekly-review.d.ts.map +1 -1
  442. package/dist/reflection/weekly-review.js +4 -1
  443. package/dist/reflection/weekly-review.js.map +1 -1
  444. package/dist/reporting/report-formatters.d.ts.map +1 -1
  445. package/dist/reporting/report-formatters.js +67 -2
  446. package/dist/reporting/report-formatters.js.map +1 -1
  447. package/dist/reporting/reporting-engine.d.ts.map +1 -1
  448. package/dist/reporting/reporting-engine.js +3 -1
  449. package/dist/reporting/reporting-engine.js.map +1 -1
  450. package/dist/reporting/reporting-types.d.ts +4 -0
  451. package/dist/reporting/reporting-types.d.ts.map +1 -1
  452. package/dist/reporting/types/report.d.ts +59 -0
  453. package/dist/reporting/types/report.d.ts.map +1 -1
  454. package/dist/reporting/types/report.js +9 -0
  455. package/dist/reporting/types/report.js.map +1 -1
  456. package/dist/runtime/command-dispatcher.d.ts +2 -0
  457. package/dist/runtime/command-dispatcher.d.ts.map +1 -1
  458. package/dist/runtime/command-dispatcher.js +16 -0
  459. package/dist/runtime/command-dispatcher.js.map +1 -1
  460. package/dist/runtime/confirmation-decision.d.ts +94 -0
  461. package/dist/runtime/confirmation-decision.d.ts.map +1 -0
  462. package/dist/runtime/confirmation-decision.js +109 -0
  463. package/dist/runtime/confirmation-decision.js.map +1 -0
  464. package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
  465. package/dist/runtime/control/daemon-runtime-control-executor.js +31 -1
  466. package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
  467. package/dist/runtime/control/runtime-control-intent.d.ts +9 -1
  468. package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
  469. package/dist/runtime/control/runtime-control-intent.js +82 -16
  470. package/dist/runtime/control/runtime-control-intent.js.map +1 -1
  471. package/dist/runtime/control/runtime-control-service.d.ts +35 -1
  472. package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
  473. package/dist/runtime/control/runtime-control-service.js +285 -5
  474. package/dist/runtime/control/runtime-control-service.js.map +1 -1
  475. package/dist/runtime/daemon/client.d.ts +12 -0
  476. package/dist/runtime/daemon/client.d.ts.map +1 -1
  477. package/dist/runtime/daemon/client.js +9 -0
  478. package/dist/runtime/daemon/client.js.map +1 -1
  479. package/dist/runtime/daemon/maintenance.d.ts.map +1 -1
  480. package/dist/runtime/daemon/maintenance.js +21 -2
  481. package/dist/runtime/daemon/maintenance.js.map +1 -1
  482. package/dist/runtime/daemon/runner-commands.d.ts +6 -2
  483. package/dist/runtime/daemon/runner-commands.d.ts.map +1 -1
  484. package/dist/runtime/daemon/runner-commands.js +237 -1
  485. package/dist/runtime/daemon/runner-commands.js.map +1 -1
  486. package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
  487. package/dist/runtime/daemon/runner-goal-cycle.js +59 -1
  488. package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
  489. package/dist/runtime/daemon/runner-resident-curiosity.d.ts.map +1 -1
  490. package/dist/runtime/daemon/runner-resident-curiosity.js +5 -1
  491. package/dist/runtime/daemon/runner-resident-curiosity.js.map +1 -1
  492. package/dist/runtime/daemon/runner-resident-shared.d.ts +1 -1
  493. package/dist/runtime/daemon/runner-resident-shared.d.ts.map +1 -1
  494. package/dist/runtime/daemon/runner-resident-shared.js +16 -0
  495. package/dist/runtime/daemon/runner-resident-shared.js.map +1 -1
  496. package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
  497. package/dist/runtime/daemon/runner-startup.js +12 -2
  498. package/dist/runtime/daemon/runner-startup.js.map +1 -1
  499. package/dist/runtime/daemon/runner.d.ts +4 -0
  500. package/dist/runtime/daemon/runner.d.ts.map +1 -1
  501. package/dist/runtime/daemon/runner.js +14 -1
  502. package/dist/runtime/daemon/runner.js.map +1 -1
  503. package/dist/runtime/daemon/runtime-ownership.d.ts +9 -0
  504. package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
  505. package/dist/runtime/daemon/runtime-ownership.js +250 -1
  506. package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
  507. package/dist/runtime/dream-sidecar-review.d.ts +93 -0
  508. package/dist/runtime/dream-sidecar-review.d.ts.map +1 -0
  509. package/dist/runtime/dream-sidecar-review.js +489 -0
  510. package/dist/runtime/dream-sidecar-review.js.map +1 -0
  511. package/dist/runtime/event/server-command-handler.d.ts +2 -4
  512. package/dist/runtime/event/server-command-handler.d.ts.map +1 -1
  513. package/dist/runtime/event/server-command-handler.js +36 -6
  514. package/dist/runtime/event/server-command-handler.js.map +1 -1
  515. package/dist/runtime/event/server-snapshot-reader.d.ts +15 -1
  516. package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
  517. package/dist/runtime/event/server-snapshot-reader.js +66 -2
  518. package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
  519. package/dist/runtime/event/server-types.d.ts +7 -0
  520. package/dist/runtime/event/server-types.d.ts.map +1 -1
  521. package/dist/runtime/event/server.d.ts +5 -0
  522. package/dist/runtime/event/server.d.ts.map +1 -1
  523. package/dist/runtime/event/server.js +43 -11
  524. package/dist/runtime/event/server.js.map +1 -1
  525. package/dist/runtime/evidence-answer.d.ts +41 -0
  526. package/dist/runtime/evidence-answer.d.ts.map +1 -0
  527. package/dist/runtime/evidence-answer.js +366 -0
  528. package/dist/runtime/evidence-answer.js.map +1 -0
  529. package/dist/runtime/executor/goal-worker.d.ts +4 -1
  530. package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
  531. package/dist/runtime/executor/goal-worker.js +5 -1
  532. package/dist/runtime/executor/goal-worker.js.map +1 -1
  533. package/dist/runtime/executor/loop-supervisor.d.ts +4 -0
  534. package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
  535. package/dist/runtime/executor/loop-supervisor.js +35 -6
  536. package/dist/runtime/executor/loop-supervisor.js.map +1 -1
  537. package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
  538. package/dist/runtime/gateway/telegram-gateway-adapter.js +4 -3
  539. package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
  540. package/dist/runtime/guardrails/backpressure-controller.d.ts +32 -0
  541. package/dist/runtime/guardrails/backpressure-controller.d.ts.map +1 -0
  542. package/dist/runtime/guardrails/backpressure-controller.js +88 -0
  543. package/dist/runtime/guardrails/backpressure-controller.js.map +1 -0
  544. package/dist/runtime/guardrails/circuit-breaker.d.ts +32 -0
  545. package/dist/runtime/guardrails/circuit-breaker.d.ts.map +1 -0
  546. package/dist/runtime/guardrails/circuit-breaker.js +88 -0
  547. package/dist/runtime/guardrails/circuit-breaker.js.map +1 -0
  548. package/dist/runtime/guardrails/guardrail-store.d.ts +23 -0
  549. package/dist/runtime/guardrails/guardrail-store.d.ts.map +1 -0
  550. package/dist/runtime/guardrails/guardrail-store.js +95 -0
  551. package/dist/runtime/guardrails/guardrail-store.js.map +1 -0
  552. package/dist/runtime/guardrails/index.d.ts +4 -0
  553. package/dist/runtime/guardrails/index.d.ts.map +1 -0
  554. package/dist/runtime/guardrails/index.js +4 -0
  555. package/dist/runtime/guardrails/index.js.map +1 -0
  556. package/dist/runtime/interactive-automation/browser-session-store.d.ts +43 -0
  557. package/dist/runtime/interactive-automation/browser-session-store.d.ts.map +1 -0
  558. package/dist/runtime/interactive-automation/browser-session-store.js +104 -0
  559. package/dist/runtime/interactive-automation/browser-session-store.js.map +1 -0
  560. package/dist/runtime/interactive-automation/failure-classifier.d.ts +12 -0
  561. package/dist/runtime/interactive-automation/failure-classifier.d.ts.map +1 -0
  562. package/dist/runtime/interactive-automation/failure-classifier.js +50 -0
  563. package/dist/runtime/interactive-automation/failure-classifier.js.map +1 -0
  564. package/dist/runtime/interactive-automation/index.d.ts +2 -0
  565. package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
  566. package/dist/runtime/interactive-automation/index.js +2 -0
  567. package/dist/runtime/interactive-automation/index.js.map +1 -1
  568. package/dist/runtime/interactive-automation/providers/manus-browser.d.ts.map +1 -1
  569. package/dist/runtime/interactive-automation/providers/manus-browser.js +17 -1
  570. package/dist/runtime/interactive-automation/providers/manus-browser.js.map +1 -1
  571. package/dist/runtime/interactive-automation/types.d.ts +4 -0
  572. package/dist/runtime/interactive-automation/types.d.ts.map +1 -1
  573. package/dist/runtime/interactive-automation/types.js.map +1 -1
  574. package/dist/runtime/notification-routing.d.ts +45 -2
  575. package/dist/runtime/notification-routing.d.ts.map +1 -1
  576. package/dist/runtime/notification-routing.js +196 -79
  577. package/dist/runtime/notification-routing.js.map +1 -1
  578. package/dist/runtime/plugin-loader.d.ts +1 -0
  579. package/dist/runtime/plugin-loader.d.ts.map +1 -1
  580. package/dist/runtime/plugin-loader.js +7 -2
  581. package/dist/runtime/plugin-loader.js.map +1 -1
  582. package/dist/runtime/run-spec/confirmation.d.ts +34 -0
  583. package/dist/runtime/run-spec/confirmation.d.ts.map +1 -0
  584. package/dist/runtime/run-spec/confirmation.js +176 -0
  585. package/dist/runtime/run-spec/confirmation.js.map +1 -0
  586. package/dist/runtime/run-spec/derive.d.ts +284 -0
  587. package/dist/runtime/run-spec/derive.d.ts.map +1 -0
  588. package/dist/runtime/run-spec/derive.js +379 -0
  589. package/dist/runtime/run-spec/derive.js.map +1 -0
  590. package/dist/runtime/run-spec/index.d.ts +5 -0
  591. package/dist/runtime/run-spec/index.d.ts.map +1 -0
  592. package/dist/runtime/run-spec/index.js +5 -0
  593. package/dist/runtime/run-spec/index.js.map +1 -0
  594. package/dist/runtime/run-spec/store.d.ts +11 -0
  595. package/dist/runtime/run-spec/store.d.ts.map +1 -0
  596. package/dist/runtime/run-spec/store.js +36 -0
  597. package/dist/runtime/run-spec/store.js.map +1 -0
  598. package/dist/runtime/run-spec/types.d.ts +495 -0
  599. package/dist/runtime/run-spec/types.d.ts.map +1 -0
  600. package/dist/runtime/run-spec/types.js +87 -0
  601. package/dist/runtime/run-spec/types.js.map +1 -0
  602. package/dist/runtime/schedule/engine-execution.d.ts +2 -1
  603. package/dist/runtime/schedule/engine-execution.d.ts.map +1 -1
  604. package/dist/runtime/schedule/engine-execution.js +1 -1
  605. package/dist/runtime/schedule/engine-execution.js.map +1 -1
  606. package/dist/runtime/schedule/engine-layers.d.ts +2 -1
  607. package/dist/runtime/schedule/engine-layers.d.ts.map +1 -1
  608. package/dist/runtime/schedule/engine-layers.js +3 -1
  609. package/dist/runtime/schedule/engine-layers.js.map +1 -1
  610. package/dist/runtime/schedule/engine.d.ts +2 -1
  611. package/dist/runtime/schedule/engine.d.ts.map +1 -1
  612. package/dist/runtime/schedule/engine.js.map +1 -1
  613. package/dist/runtime/schedule/history.d.ts +4 -4
  614. package/dist/runtime/session-registry/registry.d.ts.map +1 -1
  615. package/dist/runtime/session-registry/registry.js +2 -0
  616. package/dist/runtime/session-registry/registry.js.map +1 -1
  617. package/dist/runtime/session-registry/types.d.ts +102 -94
  618. package/dist/runtime/session-registry/types.d.ts.map +1 -1
  619. package/dist/runtime/session-registry/types.js +2 -0
  620. package/dist/runtime/session-registry/types.js.map +1 -1
  621. package/dist/runtime/store/artifact-retention.d.ts +44 -0
  622. package/dist/runtime/store/artifact-retention.d.ts.map +1 -0
  623. package/dist/runtime/store/artifact-retention.js +263 -0
  624. package/dist/runtime/store/artifact-retention.js.map +1 -0
  625. package/dist/runtime/store/background-run-store.d.ts +1 -0
  626. package/dist/runtime/store/background-run-store.d.ts.map +1 -1
  627. package/dist/runtime/store/background-run-store.js +1 -0
  628. package/dist/runtime/store/background-run-store.js.map +1 -1
  629. package/dist/runtime/store/budget-store.d.ts +442 -0
  630. package/dist/runtime/store/budget-store.d.ts.map +1 -0
  631. package/dist/runtime/store/budget-store.js +318 -0
  632. package/dist/runtime/store/budget-store.js.map +1 -0
  633. package/dist/runtime/store/dream-checkpoints.d.ts +12 -0
  634. package/dist/runtime/store/dream-checkpoints.d.ts.map +1 -0
  635. package/dist/runtime/store/dream-checkpoints.js +18 -0
  636. package/dist/runtime/store/dream-checkpoints.js.map +1 -0
  637. package/dist/runtime/store/evaluator-results.d.ts +97 -0
  638. package/dist/runtime/store/evaluator-results.d.ts.map +1 -0
  639. package/dist/runtime/store/evaluator-results.js +355 -0
  640. package/dist/runtime/store/evaluator-results.js.map +1 -0
  641. package/dist/runtime/store/evidence-ledger.d.ts +6575 -0
  642. package/dist/runtime/store/evidence-ledger.d.ts.map +1 -0
  643. package/dist/runtime/store/evidence-ledger.js +1717 -0
  644. package/dist/runtime/store/evidence-ledger.js.map +1 -0
  645. package/dist/runtime/store/experiment-queue-store.d.ts +1164 -0
  646. package/dist/runtime/store/experiment-queue-store.d.ts.map +1 -0
  647. package/dist/runtime/store/experiment-queue-store.js +341 -0
  648. package/dist/runtime/store/experiment-queue-store.js.map +1 -0
  649. package/dist/runtime/store/health-store.d.ts.map +1 -1
  650. package/dist/runtime/store/health-store.js +6 -0
  651. package/dist/runtime/store/health-store.js.map +1 -1
  652. package/dist/runtime/store/index.d.ts +27 -2
  653. package/dist/runtime/store/index.d.ts.map +1 -1
  654. package/dist/runtime/store/index.js +14 -1
  655. package/dist/runtime/store/index.js.map +1 -1
  656. package/dist/runtime/store/metric-history.d.ts +10 -0
  657. package/dist/runtime/store/metric-history.d.ts.map +1 -0
  658. package/dist/runtime/store/metric-history.js +56 -0
  659. package/dist/runtime/store/metric-history.js.map +1 -0
  660. package/dist/runtime/store/operator-handoff-store.d.ts +179 -0
  661. package/dist/runtime/store/operator-handoff-store.d.ts.map +1 -0
  662. package/dist/runtime/store/operator-handoff-store.js +120 -0
  663. package/dist/runtime/store/operator-handoff-store.js.map +1 -0
  664. package/dist/runtime/store/postmortem-report.d.ts +485 -0
  665. package/dist/runtime/store/postmortem-report.d.ts.map +1 -0
  666. package/dist/runtime/store/postmortem-report.js +561 -0
  667. package/dist/runtime/store/postmortem-report.js.map +1 -0
  668. package/dist/runtime/store/proactive-intervention-store.d.ts +360 -0
  669. package/dist/runtime/store/proactive-intervention-store.d.ts.map +1 -0
  670. package/dist/runtime/store/proactive-intervention-store.js +252 -0
  671. package/dist/runtime/store/proactive-intervention-store.js.map +1 -0
  672. package/dist/runtime/store/reproducibility-manifest.d.ts +565 -0
  673. package/dist/runtime/store/reproducibility-manifest.d.ts.map +1 -0
  674. package/dist/runtime/store/reproducibility-manifest.js +392 -0
  675. package/dist/runtime/store/reproducibility-manifest.js.map +1 -0
  676. package/dist/runtime/store/research-evidence.d.ts +8 -0
  677. package/dist/runtime/store/research-evidence.d.ts.map +1 -0
  678. package/dist/runtime/store/research-evidence.js +15 -0
  679. package/dist/runtime/store/research-evidence.js.map +1 -0
  680. package/dist/runtime/store/runtime-operation-schemas.d.ts +70 -24
  681. package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
  682. package/dist/runtime/store/runtime-operation-schemas.js +16 -1
  683. package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
  684. package/dist/runtime/store/runtime-paths.d.ts +27 -0
  685. package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
  686. package/dist/runtime/store/runtime-paths.js +77 -0
  687. package/dist/runtime/store/runtime-paths.js.map +1 -1
  688. package/dist/runtime/store/runtime-schemas.d.ts +1936 -17
  689. package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
  690. package/dist/runtime/store/runtime-schemas.js +201 -0
  691. package/dist/runtime/store/runtime-schemas.js.map +1 -1
  692. package/dist/runtime/store/safe-pause-store.d.ts +28 -0
  693. package/dist/runtime/store/safe-pause-store.d.ts.map +1 -0
  694. package/dist/runtime/store/safe-pause-store.js +103 -0
  695. package/dist/runtime/store/safe-pause-store.js.map +1 -0
  696. package/dist/runtime/types/daemon.d.ts +232 -14
  697. package/dist/runtime/types/daemon.d.ts.map +1 -1
  698. package/dist/runtime/types/daemon.js +28 -2
  699. package/dist/runtime/types/daemon.js.map +1 -1
  700. package/dist/runtime/types/envelope.d.ts +10 -10
  701. package/dist/runtime/types/hook.d.ts +9 -9
  702. package/dist/runtime/types/notification.d.ts +6 -6
  703. package/dist/runtime/types/plugin.d.ts +2 -2
  704. package/dist/runtime/types/plugin.d.ts.map +1 -1
  705. package/dist/runtime/types/plugin.js +1 -1
  706. package/dist/runtime/types/plugin.js.map +1 -1
  707. package/dist/runtime/types/schedule.d.ts +107 -64
  708. package/dist/runtime/types/schedule.d.ts.map +1 -1
  709. package/dist/runtime/types/schedule.js +10 -1
  710. package/dist/runtime/types/schedule.js.map +1 -1
  711. package/dist/runtime/types/trigger.d.ts +2 -2
  712. package/dist/tools/automation/InteractiveAutomationTools.d.ts +10 -0
  713. package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
  714. package/dist/tools/automation/InteractiveAutomationTools.js +139 -8
  715. package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
  716. package/dist/tools/builtin/exports.d.ts +2 -1
  717. package/dist/tools/builtin/exports.d.ts.map +1 -1
  718. package/dist/tools/builtin/exports.js +2 -1
  719. package/dist/tools/builtin/exports.js.map +1 -1
  720. package/dist/tools/builtin/factory.d.ts +5 -0
  721. package/dist/tools/builtin/factory.d.ts.map +1 -1
  722. package/dist/tools/builtin/factory.js +20 -3
  723. package/dist/tools/builtin/factory.js.map +1 -1
  724. package/dist/tools/execution/MemoryConsolidateTool/MemoryConsolidateTool.d.ts +4 -4
  725. package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts +76 -0
  726. package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts.map +1 -0
  727. package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.js +79 -0
  728. package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.js.map +1 -0
  729. package/dist/tools/execution/MemoryCorrectionTool/constants.d.ts +6 -0
  730. package/dist/tools/execution/MemoryCorrectionTool/constants.d.ts.map +1 -0
  731. package/dist/tools/execution/MemoryCorrectionTool/constants.js +6 -0
  732. package/dist/tools/execution/MemoryCorrectionTool/constants.js.map +1 -0
  733. package/dist/tools/execution/MemoryCorrectionTool/prompt.d.ts +2 -0
  734. package/dist/tools/execution/MemoryCorrectionTool/prompt.d.ts.map +1 -0
  735. package/dist/tools/execution/MemoryCorrectionTool/prompt.js +2 -0
  736. package/dist/tools/execution/MemoryCorrectionTool/prompt.js.map +1 -0
  737. package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +306 -4
  738. package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts.map +1 -1
  739. package/dist/tools/execution/MemorySaveTool/MemorySaveTool.js +8 -0
  740. package/dist/tools/execution/MemorySaveTool/MemorySaveTool.js.map +1 -1
  741. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
  742. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +37 -4
  743. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
  744. package/dist/tools/fs/FileValidationTool/protected-path-policy.d.ts.map +1 -1
  745. package/dist/tools/fs/FileValidationTool/protected-path-policy.js +12 -0
  746. package/dist/tools/fs/FileValidationTool/protected-path-policy.js.map +1 -1
  747. package/dist/tools/kaggle/KaggleExperimentTools.d.ts +792 -8
  748. package/dist/tools/kaggle/KaggleExperimentTools.d.ts.map +1 -1
  749. package/dist/tools/kaggle/KaggleExperimentTools.js +284 -19
  750. package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
  751. package/dist/tools/kaggle/KaggleSubmissionTools.d.ts +18 -12
  752. package/dist/tools/kaggle/KaggleSubmissionTools.d.ts.map +1 -1
  753. package/dist/tools/kaggle/KaggleSubmissionTools.js +23 -4
  754. package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
  755. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.d.ts +28 -9
  756. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.d.ts.map +1 -1
  757. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +182 -4
  758. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
  759. package/dist/tools/kaggle/index.d.ts +1 -1
  760. package/dist/tools/kaggle/index.d.ts.map +1 -1
  761. package/dist/tools/kaggle/index.js +1 -1
  762. package/dist/tools/kaggle/index.js.map +1 -1
  763. package/dist/tools/kaggle/metrics.d.ts +845 -4
  764. package/dist/tools/kaggle/metrics.d.ts.map +1 -1
  765. package/dist/tools/kaggle/metrics.js +410 -1
  766. package/dist/tools/kaggle/metrics.js.map +1 -1
  767. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts +6 -0
  768. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts.map +1 -1
  769. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js +9 -2
  770. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js.map +1 -1
  771. package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts +4 -4
  772. package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
  773. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +18 -6
  774. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts.map +1 -1
  775. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js +12 -0
  776. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js.map +1 -1
  777. package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts +7 -0
  778. package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts.map +1 -1
  779. package/dist/tools/query/SoilQueryTool/SoilQueryTool.js +20 -0
  780. package/dist/tools/query/SoilQueryTool/SoilQueryTool.js.map +1 -1
  781. package/dist/tools/query/runtime-dream-review-tool.d.ts +34 -0
  782. package/dist/tools/query/runtime-dream-review-tool.d.ts.map +1 -0
  783. package/dist/tools/query/runtime-dream-review-tool.js +62 -0
  784. package/dist/tools/query/runtime-dream-review-tool.js.map +1 -0
  785. package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
  786. package/dist/tools/query/runtime-session-tools.js +2 -0
  787. package/dist/tools/query/runtime-session-tools.js.map +1 -1
  788. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +103 -103
  789. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
  790. package/dist/tools/runtime/LongRunningRuntimeTools.js +60 -0
  791. package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
  792. package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts +62 -32
  793. package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts.map +1 -1
  794. package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts +78 -44
  795. package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts.map +1 -1
  796. package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
  797. package/dist/tools/system/ShellTool/ShellTool.js +1 -1
  798. package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
  799. package/dist/tools/system/ShellTool/command-policy.d.ts +1 -1
  800. package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
  801. package/dist/tools/system/ShellTool/command-policy.js +25 -1
  802. package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
  803. package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +4 -4
  804. package/package.json +5 -2
@@ -22,29 +22,29 @@ export declare const RuntimeEnvelopeSchema: z.ZodObject<{
22
22
  name: string;
23
23
  created_at: number;
24
24
  priority: "low" | "high" | "normal" | "critical";
25
- kind: "system" | "command" | "event" | "approval";
26
- attempt: number;
27
25
  message_id: string;
26
+ kind: "event" | "command" | "approval" | "system";
27
+ attempt: number;
28
28
  goal_id?: string | undefined;
29
- idempotency_key?: string | undefined;
30
- payload?: unknown;
31
29
  correlation_id?: string | undefined;
30
+ idempotency_key?: string | undefined;
32
31
  dedupe_key?: string | undefined;
32
+ payload?: unknown;
33
33
  ttl_ms?: number | undefined;
34
34
  }, {
35
35
  source: string;
36
36
  name: string;
37
37
  created_at: number;
38
38
  priority: "low" | "high" | "normal" | "critical";
39
- kind: "system" | "command" | "event" | "approval";
40
39
  message_id: string;
40
+ kind: "event" | "command" | "approval" | "system";
41
41
  goal_id?: string | undefined;
42
- idempotency_key?: string | undefined;
43
- payload?: unknown;
44
- attempt?: number | undefined;
45
42
  correlation_id?: string | undefined;
43
+ idempotency_key?: string | undefined;
46
44
  dedupe_key?: string | undefined;
45
+ payload?: unknown;
47
46
  ttl_ms?: number | undefined;
47
+ attempt?: number | undefined;
48
48
  }>;
49
49
  export type RuntimeEnvelope = z.infer<typeof RuntimeEnvelopeSchema>;
50
50
  export declare const RuntimeQueueStateSchema: z.ZodEnum<["accepted", "queued", "claimed", "retry_wait", "completed", "deadletter", "cancelled"]>;
@@ -61,23 +61,161 @@ export declare const RuntimeQueueRecordSchema: z.ZodObject<{
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  updated_at: number;
63
63
  state: "completed" | "cancelled" | "queued" | "claimed" | "retry_wait" | "deadletter";
64
- attempt: number;
65
64
  message_id: string;
65
+ attempt: number;
66
66
  available_at: number;
67
- last_error?: string | undefined;
68
67
  claimed_by?: string | undefined;
69
68
  lease_until?: number | undefined;
69
+ last_error?: string | undefined;
70
70
  }, {
71
71
  updated_at: number;
72
72
  state: "completed" | "cancelled" | "queued" | "claimed" | "retry_wait" | "deadletter";
73
73
  message_id: string;
74
74
  available_at: number;
75
- last_error?: string | undefined;
76
75
  attempt?: number | undefined;
77
76
  claimed_by?: string | undefined;
78
77
  lease_until?: number | undefined;
78
+ last_error?: string | undefined;
79
79
  }>;
80
80
  export type RuntimeQueueRecord = z.infer<typeof RuntimeQueueRecordSchema>;
81
+ export declare const RuntimeSafePauseStateSchema: z.ZodEnum<["running", "pause_requested", "paused", "resumed", "emergency_stopped", "completed"]>;
82
+ export type RuntimeSafePauseState = z.infer<typeof RuntimeSafePauseStateSchema>;
83
+ export declare const RuntimeSafePauseCheckpointSchema: z.ZodObject<{
84
+ checkpoint_id: z.ZodString;
85
+ checkpointed_at: z.ZodString;
86
+ reason: z.ZodOptional<z.ZodString>;
87
+ active_goals: z.ZodArray<z.ZodString, "many">;
88
+ queued_goal_ids: z.ZodArray<z.ZodString, "many">;
89
+ current_mode: z.ZodNullable<z.ZodString>;
90
+ candidate_evidence_refs: z.ZodArray<z.ZodString, "many">;
91
+ artifact_refs: z.ZodArray<z.ZodString, "many">;
92
+ next_action: z.ZodNullable<z.ZodString>;
93
+ supervisor_state_ref: z.ZodNullable<z.ZodString>;
94
+ background_run_ids: z.ZodArray<z.ZodString, "many">;
95
+ }, "strip", z.ZodTypeAny, {
96
+ artifact_refs: string[];
97
+ checkpoint_id: string;
98
+ checkpointed_at: string;
99
+ active_goals: string[];
100
+ queued_goal_ids: string[];
101
+ current_mode: string | null;
102
+ candidate_evidence_refs: string[];
103
+ next_action: string | null;
104
+ supervisor_state_ref: string | null;
105
+ background_run_ids: string[];
106
+ reason?: string | undefined;
107
+ }, {
108
+ artifact_refs: string[];
109
+ checkpoint_id: string;
110
+ checkpointed_at: string;
111
+ active_goals: string[];
112
+ queued_goal_ids: string[];
113
+ current_mode: string | null;
114
+ candidate_evidence_refs: string[];
115
+ next_action: string | null;
116
+ supervisor_state_ref: string | null;
117
+ background_run_ids: string[];
118
+ reason?: string | undefined;
119
+ }>;
120
+ export type RuntimeSafePauseCheckpoint = z.infer<typeof RuntimeSafePauseCheckpointSchema>;
121
+ export declare const RuntimeSafePauseRecordSchema: z.ZodObject<{
122
+ schema_version: z.ZodLiteral<"runtime-safe-pause-v1">;
123
+ goal_id: z.ZodString;
124
+ state: z.ZodEnum<["running", "pause_requested", "paused", "resumed", "emergency_stopped", "completed"]>;
125
+ requested_at: z.ZodOptional<z.ZodString>;
126
+ paused_at: z.ZodOptional<z.ZodString>;
127
+ resumed_at: z.ZodOptional<z.ZodString>;
128
+ completed_at: z.ZodOptional<z.ZodString>;
129
+ updated_at: z.ZodString;
130
+ requested_by: z.ZodOptional<z.ZodString>;
131
+ reason: z.ZodOptional<z.ZodString>;
132
+ checkpoint: z.ZodOptional<z.ZodObject<{
133
+ checkpoint_id: z.ZodString;
134
+ checkpointed_at: z.ZodString;
135
+ reason: z.ZodOptional<z.ZodString>;
136
+ active_goals: z.ZodArray<z.ZodString, "many">;
137
+ queued_goal_ids: z.ZodArray<z.ZodString, "many">;
138
+ current_mode: z.ZodNullable<z.ZodString>;
139
+ candidate_evidence_refs: z.ZodArray<z.ZodString, "many">;
140
+ artifact_refs: z.ZodArray<z.ZodString, "many">;
141
+ next_action: z.ZodNullable<z.ZodString>;
142
+ supervisor_state_ref: z.ZodNullable<z.ZodString>;
143
+ background_run_ids: z.ZodArray<z.ZodString, "many">;
144
+ }, "strip", z.ZodTypeAny, {
145
+ artifact_refs: string[];
146
+ checkpoint_id: string;
147
+ checkpointed_at: string;
148
+ active_goals: string[];
149
+ queued_goal_ids: string[];
150
+ current_mode: string | null;
151
+ candidate_evidence_refs: string[];
152
+ next_action: string | null;
153
+ supervisor_state_ref: string | null;
154
+ background_run_ids: string[];
155
+ reason?: string | undefined;
156
+ }, {
157
+ artifact_refs: string[];
158
+ checkpoint_id: string;
159
+ checkpointed_at: string;
160
+ active_goals: string[];
161
+ queued_goal_ids: string[];
162
+ current_mode: string | null;
163
+ candidate_evidence_refs: string[];
164
+ next_action: string | null;
165
+ supervisor_state_ref: string | null;
166
+ background_run_ids: string[];
167
+ reason?: string | undefined;
168
+ }>>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ updated_at: string;
171
+ goal_id: string;
172
+ schema_version: "runtime-safe-pause-v1";
173
+ state: "running" | "completed" | "paused" | "pause_requested" | "resumed" | "emergency_stopped";
174
+ completed_at?: string | undefined;
175
+ reason?: string | undefined;
176
+ requested_at?: string | undefined;
177
+ paused_at?: string | undefined;
178
+ resumed_at?: string | undefined;
179
+ requested_by?: string | undefined;
180
+ checkpoint?: {
181
+ artifact_refs: string[];
182
+ checkpoint_id: string;
183
+ checkpointed_at: string;
184
+ active_goals: string[];
185
+ queued_goal_ids: string[];
186
+ current_mode: string | null;
187
+ candidate_evidence_refs: string[];
188
+ next_action: string | null;
189
+ supervisor_state_ref: string | null;
190
+ background_run_ids: string[];
191
+ reason?: string | undefined;
192
+ } | undefined;
193
+ }, {
194
+ updated_at: string;
195
+ goal_id: string;
196
+ schema_version: "runtime-safe-pause-v1";
197
+ state: "running" | "completed" | "paused" | "pause_requested" | "resumed" | "emergency_stopped";
198
+ completed_at?: string | undefined;
199
+ reason?: string | undefined;
200
+ requested_at?: string | undefined;
201
+ paused_at?: string | undefined;
202
+ resumed_at?: string | undefined;
203
+ requested_by?: string | undefined;
204
+ checkpoint?: {
205
+ artifact_refs: string[];
206
+ checkpoint_id: string;
207
+ checkpointed_at: string;
208
+ active_goals: string[];
209
+ queued_goal_ids: string[];
210
+ current_mode: string | null;
211
+ candidate_evidence_refs: string[];
212
+ next_action: string | null;
213
+ supervisor_state_ref: string | null;
214
+ background_run_ids: string[];
215
+ reason?: string | undefined;
216
+ } | undefined;
217
+ }>;
218
+ export type RuntimeSafePauseRecord = z.infer<typeof RuntimeSafePauseRecordSchema>;
81
219
  export declare const GoalLeaseRecordSchema: z.ZodObject<{
82
220
  goal_id: z.ZodString;
83
221
  owner_token: z.ZodString;
@@ -119,9 +257,9 @@ export declare const ApprovalRecordSchema: z.ZodObject<{
119
257
  payload: z.ZodUnknown;
120
258
  }, "strip", z.ZodTypeAny, {
121
259
  created_at: number;
122
- state: "pending" | "cancelled" | "expired" | "denied" | "approved";
123
- approval_id: string;
260
+ state: "pending" | "cancelled" | "expired" | "approved" | "denied";
124
261
  correlation_id: string;
262
+ approval_id: string;
125
263
  request_envelope_id: string;
126
264
  expires_at: number;
127
265
  goal_id?: string | undefined;
@@ -130,9 +268,9 @@ export declare const ApprovalRecordSchema: z.ZodObject<{
130
268
  response_channel?: string | undefined;
131
269
  }, {
132
270
  created_at: number;
133
- state: "pending" | "cancelled" | "expired" | "denied" | "approved";
134
- approval_id: string;
271
+ state: "pending" | "cancelled" | "expired" | "approved" | "denied";
135
272
  correlation_id: string;
273
+ approval_id: string;
136
274
  request_envelope_id: string;
137
275
  expires_at: number;
138
276
  goal_id?: string | undefined;
@@ -153,19 +291,657 @@ export declare const OutboxRecordSchema: z.ZodObject<{
153
291
  seq: number;
154
292
  event_type: string;
155
293
  goal_id?: string | undefined;
156
- payload?: unknown;
157
294
  correlation_id?: string | undefined;
295
+ payload?: unknown;
158
296
  }, {
159
297
  created_at: number;
160
298
  seq: number;
161
299
  event_type: string;
162
300
  goal_id?: string | undefined;
163
- payload?: unknown;
164
301
  correlation_id?: string | undefined;
302
+ payload?: unknown;
165
303
  }>;
166
304
  export type OutboxRecord = z.infer<typeof OutboxRecordSchema>;
167
305
  export declare const RuntimeHealthStatusSchema: z.ZodEnum<["ok", "degraded", "failed"]>;
168
306
  export type RuntimeHealthStatus = z.infer<typeof RuntimeHealthStatusSchema>;
307
+ export declare const RuntimeLongRunProcessStatusSchema: z.ZodEnum<["alive", "dead", "unknown"]>;
308
+ export type RuntimeLongRunProcessStatus = z.infer<typeof RuntimeLongRunProcessStatusSchema>;
309
+ export declare const RuntimeLongRunChildActivityStatusSchema: z.ZodEnum<["active", "idle", "unknown"]>;
310
+ export type RuntimeLongRunChildActivityStatus = z.infer<typeof RuntimeLongRunChildActivityStatusSchema>;
311
+ export declare const RuntimeLongRunFreshnessStatusSchema: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
312
+ export type RuntimeLongRunFreshnessStatus = z.infer<typeof RuntimeLongRunFreshnessStatusSchema>;
313
+ export declare const RuntimeLongRunMetricProgressStatusSchema: z.ZodEnum<["improved", "plateau", "regressed", "missing", "unknown"]>;
314
+ export type RuntimeLongRunMetricProgressStatus = z.infer<typeof RuntimeLongRunMetricProgressStatusSchema>;
315
+ export declare const RuntimeLongRunBlockerStatusSchema: z.ZodEnum<["none", "approval_wait", "auth_wait", "operator_wait", "resource_pressure", "blocked", "unknown"]>;
316
+ export type RuntimeLongRunBlockerStatus = z.infer<typeof RuntimeLongRunBlockerStatusSchema>;
317
+ export declare const RuntimeLongRunHealthSummarySchema: z.ZodEnum<["alive_and_progressing", "alive_but_metric_stalled", "alive_but_artifact_stalled", "alive_but_waiting", "alive_but_stalled", "dead_but_resumable", "dead_needs_intervention", "unknown"]>;
318
+ export type RuntimeLongRunHealthSummary = z.infer<typeof RuntimeLongRunHealthSummarySchema>;
319
+ export declare const RuntimeLongRunHealthSignalsSchema: z.ZodObject<{
320
+ process: z.ZodObject<{
321
+ checked_at: z.ZodNumber;
322
+ observed_at: z.ZodOptional<z.ZodNumber>;
323
+ reason: z.ZodOptional<z.ZodString>;
324
+ } & {
325
+ status: z.ZodEnum<["alive", "dead", "unknown"]>;
326
+ pid: z.ZodOptional<z.ZodNumber>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ status: "unknown" | "alive" | "dead";
329
+ checked_at: number;
330
+ reason?: string | undefined;
331
+ observed_at?: number | undefined;
332
+ pid?: number | undefined;
333
+ }, {
334
+ status: "unknown" | "alive" | "dead";
335
+ checked_at: number;
336
+ reason?: string | undefined;
337
+ observed_at?: number | undefined;
338
+ pid?: number | undefined;
339
+ }>;
340
+ child_activity: z.ZodObject<{
341
+ checked_at: z.ZodNumber;
342
+ observed_at: z.ZodOptional<z.ZodNumber>;
343
+ reason: z.ZodOptional<z.ZodString>;
344
+ } & {
345
+ status: z.ZodEnum<["active", "idle", "unknown"]>;
346
+ active_count: z.ZodOptional<z.ZodNumber>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ status: "unknown" | "active" | "idle";
349
+ checked_at: number;
350
+ reason?: string | undefined;
351
+ observed_at?: number | undefined;
352
+ active_count?: number | undefined;
353
+ }, {
354
+ status: "unknown" | "active" | "idle";
355
+ checked_at: number;
356
+ reason?: string | undefined;
357
+ observed_at?: number | undefined;
358
+ active_count?: number | undefined;
359
+ }>;
360
+ log_freshness: z.ZodObject<{
361
+ checked_at: z.ZodNumber;
362
+ observed_at: z.ZodOptional<z.ZodNumber>;
363
+ reason: z.ZodOptional<z.ZodString>;
364
+ } & {
365
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
366
+ path: z.ZodOptional<z.ZodString>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ status: "unknown" | "stale" | "missing" | "fresh";
369
+ checked_at: number;
370
+ path?: string | undefined;
371
+ reason?: string | undefined;
372
+ observed_at?: number | undefined;
373
+ }, {
374
+ status: "unknown" | "stale" | "missing" | "fresh";
375
+ checked_at: number;
376
+ path?: string | undefined;
377
+ reason?: string | undefined;
378
+ observed_at?: number | undefined;
379
+ }>;
380
+ artifact_freshness: z.ZodObject<{
381
+ checked_at: z.ZodNumber;
382
+ observed_at: z.ZodOptional<z.ZodNumber>;
383
+ reason: z.ZodOptional<z.ZodString>;
384
+ } & {
385
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
386
+ path: z.ZodOptional<z.ZodString>;
387
+ }, "strip", z.ZodTypeAny, {
388
+ status: "unknown" | "stale" | "missing" | "fresh";
389
+ checked_at: number;
390
+ path?: string | undefined;
391
+ reason?: string | undefined;
392
+ observed_at?: number | undefined;
393
+ }, {
394
+ status: "unknown" | "stale" | "missing" | "fresh";
395
+ checked_at: number;
396
+ path?: string | undefined;
397
+ reason?: string | undefined;
398
+ observed_at?: number | undefined;
399
+ }>;
400
+ metric_freshness: z.ZodObject<{
401
+ checked_at: z.ZodNumber;
402
+ observed_at: z.ZodOptional<z.ZodNumber>;
403
+ reason: z.ZodOptional<z.ZodString>;
404
+ } & {
405
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
406
+ metric_name: z.ZodOptional<z.ZodString>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ status: "unknown" | "stale" | "missing" | "fresh";
409
+ checked_at: number;
410
+ reason?: string | undefined;
411
+ observed_at?: number | undefined;
412
+ metric_name?: string | undefined;
413
+ }, {
414
+ status: "unknown" | "stale" | "missing" | "fresh";
415
+ checked_at: number;
416
+ reason?: string | undefined;
417
+ observed_at?: number | undefined;
418
+ metric_name?: string | undefined;
419
+ }>;
420
+ metric_progress: z.ZodObject<{
421
+ checked_at: z.ZodNumber;
422
+ observed_at: z.ZodOptional<z.ZodNumber>;
423
+ reason: z.ZodOptional<z.ZodString>;
424
+ } & {
425
+ status: z.ZodEnum<["improved", "plateau", "regressed", "missing", "unknown"]>;
426
+ metric_name: z.ZodOptional<z.ZodString>;
427
+ previous_value: z.ZodOptional<z.ZodNumber>;
428
+ current_value: z.ZodOptional<z.ZodNumber>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
431
+ checked_at: number;
432
+ current_value?: number | undefined;
433
+ previous_value?: number | undefined;
434
+ reason?: string | undefined;
435
+ observed_at?: number | undefined;
436
+ metric_name?: string | undefined;
437
+ }, {
438
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
439
+ checked_at: number;
440
+ current_value?: number | undefined;
441
+ previous_value?: number | undefined;
442
+ reason?: string | undefined;
443
+ observed_at?: number | undefined;
444
+ metric_name?: string | undefined;
445
+ }>;
446
+ blocker: z.ZodObject<{
447
+ checked_at: z.ZodNumber;
448
+ observed_at: z.ZodOptional<z.ZodNumber>;
449
+ reason: z.ZodOptional<z.ZodString>;
450
+ } & {
451
+ status: z.ZodEnum<["none", "approval_wait", "auth_wait", "operator_wait", "resource_pressure", "blocked", "unknown"]>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
454
+ checked_at: number;
455
+ reason?: string | undefined;
456
+ observed_at?: number | undefined;
457
+ }, {
458
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
459
+ checked_at: number;
460
+ reason?: string | undefined;
461
+ observed_at?: number | undefined;
462
+ }>;
463
+ expected_next_checkpoint_at: z.ZodOptional<z.ZodNumber>;
464
+ resumable: z.ZodOptional<z.ZodBoolean>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ process: {
467
+ status: "unknown" | "alive" | "dead";
468
+ checked_at: number;
469
+ reason?: string | undefined;
470
+ observed_at?: number | undefined;
471
+ pid?: number | undefined;
472
+ };
473
+ child_activity: {
474
+ status: "unknown" | "active" | "idle";
475
+ checked_at: number;
476
+ reason?: string | undefined;
477
+ observed_at?: number | undefined;
478
+ active_count?: number | undefined;
479
+ };
480
+ log_freshness: {
481
+ status: "unknown" | "stale" | "missing" | "fresh";
482
+ checked_at: number;
483
+ path?: string | undefined;
484
+ reason?: string | undefined;
485
+ observed_at?: number | undefined;
486
+ };
487
+ artifact_freshness: {
488
+ status: "unknown" | "stale" | "missing" | "fresh";
489
+ checked_at: number;
490
+ path?: string | undefined;
491
+ reason?: string | undefined;
492
+ observed_at?: number | undefined;
493
+ };
494
+ metric_freshness: {
495
+ status: "unknown" | "stale" | "missing" | "fresh";
496
+ checked_at: number;
497
+ reason?: string | undefined;
498
+ observed_at?: number | undefined;
499
+ metric_name?: string | undefined;
500
+ };
501
+ metric_progress: {
502
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
503
+ checked_at: number;
504
+ current_value?: number | undefined;
505
+ previous_value?: number | undefined;
506
+ reason?: string | undefined;
507
+ observed_at?: number | undefined;
508
+ metric_name?: string | undefined;
509
+ };
510
+ blocker: {
511
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
512
+ checked_at: number;
513
+ reason?: string | undefined;
514
+ observed_at?: number | undefined;
515
+ };
516
+ expected_next_checkpoint_at?: number | undefined;
517
+ resumable?: boolean | undefined;
518
+ }, {
519
+ process: {
520
+ status: "unknown" | "alive" | "dead";
521
+ checked_at: number;
522
+ reason?: string | undefined;
523
+ observed_at?: number | undefined;
524
+ pid?: number | undefined;
525
+ };
526
+ child_activity: {
527
+ status: "unknown" | "active" | "idle";
528
+ checked_at: number;
529
+ reason?: string | undefined;
530
+ observed_at?: number | undefined;
531
+ active_count?: number | undefined;
532
+ };
533
+ log_freshness: {
534
+ status: "unknown" | "stale" | "missing" | "fresh";
535
+ checked_at: number;
536
+ path?: string | undefined;
537
+ reason?: string | undefined;
538
+ observed_at?: number | undefined;
539
+ };
540
+ artifact_freshness: {
541
+ status: "unknown" | "stale" | "missing" | "fresh";
542
+ checked_at: number;
543
+ path?: string | undefined;
544
+ reason?: string | undefined;
545
+ observed_at?: number | undefined;
546
+ };
547
+ metric_freshness: {
548
+ status: "unknown" | "stale" | "missing" | "fresh";
549
+ checked_at: number;
550
+ reason?: string | undefined;
551
+ observed_at?: number | undefined;
552
+ metric_name?: string | undefined;
553
+ };
554
+ metric_progress: {
555
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
556
+ checked_at: number;
557
+ current_value?: number | undefined;
558
+ previous_value?: number | undefined;
559
+ reason?: string | undefined;
560
+ observed_at?: number | undefined;
561
+ metric_name?: string | undefined;
562
+ };
563
+ blocker: {
564
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
565
+ checked_at: number;
566
+ reason?: string | undefined;
567
+ observed_at?: number | undefined;
568
+ };
569
+ expected_next_checkpoint_at?: number | undefined;
570
+ resumable?: boolean | undefined;
571
+ }>;
572
+ export type RuntimeLongRunHealthSignals = z.infer<typeof RuntimeLongRunHealthSignalsSchema>;
573
+ export declare const RuntimeLongRunHealthSchema: z.ZodObject<{
574
+ summary: z.ZodEnum<["alive_and_progressing", "alive_but_metric_stalled", "alive_but_artifact_stalled", "alive_but_waiting", "alive_but_stalled", "dead_but_resumable", "dead_needs_intervention", "unknown"]>;
575
+ checked_at: z.ZodNumber;
576
+ signals: z.ZodObject<{
577
+ process: z.ZodObject<{
578
+ checked_at: z.ZodNumber;
579
+ observed_at: z.ZodOptional<z.ZodNumber>;
580
+ reason: z.ZodOptional<z.ZodString>;
581
+ } & {
582
+ status: z.ZodEnum<["alive", "dead", "unknown"]>;
583
+ pid: z.ZodOptional<z.ZodNumber>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ status: "unknown" | "alive" | "dead";
586
+ checked_at: number;
587
+ reason?: string | undefined;
588
+ observed_at?: number | undefined;
589
+ pid?: number | undefined;
590
+ }, {
591
+ status: "unknown" | "alive" | "dead";
592
+ checked_at: number;
593
+ reason?: string | undefined;
594
+ observed_at?: number | undefined;
595
+ pid?: number | undefined;
596
+ }>;
597
+ child_activity: z.ZodObject<{
598
+ checked_at: z.ZodNumber;
599
+ observed_at: z.ZodOptional<z.ZodNumber>;
600
+ reason: z.ZodOptional<z.ZodString>;
601
+ } & {
602
+ status: z.ZodEnum<["active", "idle", "unknown"]>;
603
+ active_count: z.ZodOptional<z.ZodNumber>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ status: "unknown" | "active" | "idle";
606
+ checked_at: number;
607
+ reason?: string | undefined;
608
+ observed_at?: number | undefined;
609
+ active_count?: number | undefined;
610
+ }, {
611
+ status: "unknown" | "active" | "idle";
612
+ checked_at: number;
613
+ reason?: string | undefined;
614
+ observed_at?: number | undefined;
615
+ active_count?: number | undefined;
616
+ }>;
617
+ log_freshness: z.ZodObject<{
618
+ checked_at: z.ZodNumber;
619
+ observed_at: z.ZodOptional<z.ZodNumber>;
620
+ reason: z.ZodOptional<z.ZodString>;
621
+ } & {
622
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
623
+ path: z.ZodOptional<z.ZodString>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ status: "unknown" | "stale" | "missing" | "fresh";
626
+ checked_at: number;
627
+ path?: string | undefined;
628
+ reason?: string | undefined;
629
+ observed_at?: number | undefined;
630
+ }, {
631
+ status: "unknown" | "stale" | "missing" | "fresh";
632
+ checked_at: number;
633
+ path?: string | undefined;
634
+ reason?: string | undefined;
635
+ observed_at?: number | undefined;
636
+ }>;
637
+ artifact_freshness: z.ZodObject<{
638
+ checked_at: z.ZodNumber;
639
+ observed_at: z.ZodOptional<z.ZodNumber>;
640
+ reason: z.ZodOptional<z.ZodString>;
641
+ } & {
642
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
643
+ path: z.ZodOptional<z.ZodString>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ status: "unknown" | "stale" | "missing" | "fresh";
646
+ checked_at: number;
647
+ path?: string | undefined;
648
+ reason?: string | undefined;
649
+ observed_at?: number | undefined;
650
+ }, {
651
+ status: "unknown" | "stale" | "missing" | "fresh";
652
+ checked_at: number;
653
+ path?: string | undefined;
654
+ reason?: string | undefined;
655
+ observed_at?: number | undefined;
656
+ }>;
657
+ metric_freshness: z.ZodObject<{
658
+ checked_at: z.ZodNumber;
659
+ observed_at: z.ZodOptional<z.ZodNumber>;
660
+ reason: z.ZodOptional<z.ZodString>;
661
+ } & {
662
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
663
+ metric_name: z.ZodOptional<z.ZodString>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ status: "unknown" | "stale" | "missing" | "fresh";
666
+ checked_at: number;
667
+ reason?: string | undefined;
668
+ observed_at?: number | undefined;
669
+ metric_name?: string | undefined;
670
+ }, {
671
+ status: "unknown" | "stale" | "missing" | "fresh";
672
+ checked_at: number;
673
+ reason?: string | undefined;
674
+ observed_at?: number | undefined;
675
+ metric_name?: string | undefined;
676
+ }>;
677
+ metric_progress: z.ZodObject<{
678
+ checked_at: z.ZodNumber;
679
+ observed_at: z.ZodOptional<z.ZodNumber>;
680
+ reason: z.ZodOptional<z.ZodString>;
681
+ } & {
682
+ status: z.ZodEnum<["improved", "plateau", "regressed", "missing", "unknown"]>;
683
+ metric_name: z.ZodOptional<z.ZodString>;
684
+ previous_value: z.ZodOptional<z.ZodNumber>;
685
+ current_value: z.ZodOptional<z.ZodNumber>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
688
+ checked_at: number;
689
+ current_value?: number | undefined;
690
+ previous_value?: number | undefined;
691
+ reason?: string | undefined;
692
+ observed_at?: number | undefined;
693
+ metric_name?: string | undefined;
694
+ }, {
695
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
696
+ checked_at: number;
697
+ current_value?: number | undefined;
698
+ previous_value?: number | undefined;
699
+ reason?: string | undefined;
700
+ observed_at?: number | undefined;
701
+ metric_name?: string | undefined;
702
+ }>;
703
+ blocker: z.ZodObject<{
704
+ checked_at: z.ZodNumber;
705
+ observed_at: z.ZodOptional<z.ZodNumber>;
706
+ reason: z.ZodOptional<z.ZodString>;
707
+ } & {
708
+ status: z.ZodEnum<["none", "approval_wait", "auth_wait", "operator_wait", "resource_pressure", "blocked", "unknown"]>;
709
+ }, "strip", z.ZodTypeAny, {
710
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
711
+ checked_at: number;
712
+ reason?: string | undefined;
713
+ observed_at?: number | undefined;
714
+ }, {
715
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
716
+ checked_at: number;
717
+ reason?: string | undefined;
718
+ observed_at?: number | undefined;
719
+ }>;
720
+ expected_next_checkpoint_at: z.ZodOptional<z.ZodNumber>;
721
+ resumable: z.ZodOptional<z.ZodBoolean>;
722
+ }, "strip", z.ZodTypeAny, {
723
+ process: {
724
+ status: "unknown" | "alive" | "dead";
725
+ checked_at: number;
726
+ reason?: string | undefined;
727
+ observed_at?: number | undefined;
728
+ pid?: number | undefined;
729
+ };
730
+ child_activity: {
731
+ status: "unknown" | "active" | "idle";
732
+ checked_at: number;
733
+ reason?: string | undefined;
734
+ observed_at?: number | undefined;
735
+ active_count?: number | undefined;
736
+ };
737
+ log_freshness: {
738
+ status: "unknown" | "stale" | "missing" | "fresh";
739
+ checked_at: number;
740
+ path?: string | undefined;
741
+ reason?: string | undefined;
742
+ observed_at?: number | undefined;
743
+ };
744
+ artifact_freshness: {
745
+ status: "unknown" | "stale" | "missing" | "fresh";
746
+ checked_at: number;
747
+ path?: string | undefined;
748
+ reason?: string | undefined;
749
+ observed_at?: number | undefined;
750
+ };
751
+ metric_freshness: {
752
+ status: "unknown" | "stale" | "missing" | "fresh";
753
+ checked_at: number;
754
+ reason?: string | undefined;
755
+ observed_at?: number | undefined;
756
+ metric_name?: string | undefined;
757
+ };
758
+ metric_progress: {
759
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
760
+ checked_at: number;
761
+ current_value?: number | undefined;
762
+ previous_value?: number | undefined;
763
+ reason?: string | undefined;
764
+ observed_at?: number | undefined;
765
+ metric_name?: string | undefined;
766
+ };
767
+ blocker: {
768
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
769
+ checked_at: number;
770
+ reason?: string | undefined;
771
+ observed_at?: number | undefined;
772
+ };
773
+ expected_next_checkpoint_at?: number | undefined;
774
+ resumable?: boolean | undefined;
775
+ }, {
776
+ process: {
777
+ status: "unknown" | "alive" | "dead";
778
+ checked_at: number;
779
+ reason?: string | undefined;
780
+ observed_at?: number | undefined;
781
+ pid?: number | undefined;
782
+ };
783
+ child_activity: {
784
+ status: "unknown" | "active" | "idle";
785
+ checked_at: number;
786
+ reason?: string | undefined;
787
+ observed_at?: number | undefined;
788
+ active_count?: number | undefined;
789
+ };
790
+ log_freshness: {
791
+ status: "unknown" | "stale" | "missing" | "fresh";
792
+ checked_at: number;
793
+ path?: string | undefined;
794
+ reason?: string | undefined;
795
+ observed_at?: number | undefined;
796
+ };
797
+ artifact_freshness: {
798
+ status: "unknown" | "stale" | "missing" | "fresh";
799
+ checked_at: number;
800
+ path?: string | undefined;
801
+ reason?: string | undefined;
802
+ observed_at?: number | undefined;
803
+ };
804
+ metric_freshness: {
805
+ status: "unknown" | "stale" | "missing" | "fresh";
806
+ checked_at: number;
807
+ reason?: string | undefined;
808
+ observed_at?: number | undefined;
809
+ metric_name?: string | undefined;
810
+ };
811
+ metric_progress: {
812
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
813
+ checked_at: number;
814
+ current_value?: number | undefined;
815
+ previous_value?: number | undefined;
816
+ reason?: string | undefined;
817
+ observed_at?: number | undefined;
818
+ metric_name?: string | undefined;
819
+ };
820
+ blocker: {
821
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
822
+ checked_at: number;
823
+ reason?: string | undefined;
824
+ observed_at?: number | undefined;
825
+ };
826
+ expected_next_checkpoint_at?: number | undefined;
827
+ resumable?: boolean | undefined;
828
+ }>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ checked_at: number;
831
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
832
+ signals: {
833
+ process: {
834
+ status: "unknown" | "alive" | "dead";
835
+ checked_at: number;
836
+ reason?: string | undefined;
837
+ observed_at?: number | undefined;
838
+ pid?: number | undefined;
839
+ };
840
+ child_activity: {
841
+ status: "unknown" | "active" | "idle";
842
+ checked_at: number;
843
+ reason?: string | undefined;
844
+ observed_at?: number | undefined;
845
+ active_count?: number | undefined;
846
+ };
847
+ log_freshness: {
848
+ status: "unknown" | "stale" | "missing" | "fresh";
849
+ checked_at: number;
850
+ path?: string | undefined;
851
+ reason?: string | undefined;
852
+ observed_at?: number | undefined;
853
+ };
854
+ artifact_freshness: {
855
+ status: "unknown" | "stale" | "missing" | "fresh";
856
+ checked_at: number;
857
+ path?: string | undefined;
858
+ reason?: string | undefined;
859
+ observed_at?: number | undefined;
860
+ };
861
+ metric_freshness: {
862
+ status: "unknown" | "stale" | "missing" | "fresh";
863
+ checked_at: number;
864
+ reason?: string | undefined;
865
+ observed_at?: number | undefined;
866
+ metric_name?: string | undefined;
867
+ };
868
+ metric_progress: {
869
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
870
+ checked_at: number;
871
+ current_value?: number | undefined;
872
+ previous_value?: number | undefined;
873
+ reason?: string | undefined;
874
+ observed_at?: number | undefined;
875
+ metric_name?: string | undefined;
876
+ };
877
+ blocker: {
878
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
879
+ checked_at: number;
880
+ reason?: string | undefined;
881
+ observed_at?: number | undefined;
882
+ };
883
+ expected_next_checkpoint_at?: number | undefined;
884
+ resumable?: boolean | undefined;
885
+ };
886
+ }, {
887
+ checked_at: number;
888
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
889
+ signals: {
890
+ process: {
891
+ status: "unknown" | "alive" | "dead";
892
+ checked_at: number;
893
+ reason?: string | undefined;
894
+ observed_at?: number | undefined;
895
+ pid?: number | undefined;
896
+ };
897
+ child_activity: {
898
+ status: "unknown" | "active" | "idle";
899
+ checked_at: number;
900
+ reason?: string | undefined;
901
+ observed_at?: number | undefined;
902
+ active_count?: number | undefined;
903
+ };
904
+ log_freshness: {
905
+ status: "unknown" | "stale" | "missing" | "fresh";
906
+ checked_at: number;
907
+ path?: string | undefined;
908
+ reason?: string | undefined;
909
+ observed_at?: number | undefined;
910
+ };
911
+ artifact_freshness: {
912
+ status: "unknown" | "stale" | "missing" | "fresh";
913
+ checked_at: number;
914
+ path?: string | undefined;
915
+ reason?: string | undefined;
916
+ observed_at?: number | undefined;
917
+ };
918
+ metric_freshness: {
919
+ status: "unknown" | "stale" | "missing" | "fresh";
920
+ checked_at: number;
921
+ reason?: string | undefined;
922
+ observed_at?: number | undefined;
923
+ metric_name?: string | undefined;
924
+ };
925
+ metric_progress: {
926
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
927
+ checked_at: number;
928
+ current_value?: number | undefined;
929
+ previous_value?: number | undefined;
930
+ reason?: string | undefined;
931
+ observed_at?: number | undefined;
932
+ metric_name?: string | undefined;
933
+ };
934
+ blocker: {
935
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
936
+ checked_at: number;
937
+ reason?: string | undefined;
938
+ observed_at?: number | undefined;
939
+ };
940
+ expected_next_checkpoint_at?: number | undefined;
941
+ resumable?: boolean | undefined;
942
+ };
943
+ }>;
944
+ export type RuntimeLongRunHealth = z.infer<typeof RuntimeLongRunHealthSchema>;
169
945
  export declare const RuntimeHealthCapabilitySchema: z.ZodObject<{
170
946
  status: z.ZodEnum<["ok", "degraded", "failed"]>;
171
947
  checked_at: z.ZodNumber;
@@ -455,6 +1231,377 @@ export declare const RuntimeDaemonHealthSchema: z.ZodObject<{
455
1231
  degraded_at?: number | undefined;
456
1232
  recovered_at?: number | undefined;
457
1233
  }>>;
1234
+ long_running: z.ZodOptional<z.ZodObject<{
1235
+ summary: z.ZodEnum<["alive_and_progressing", "alive_but_metric_stalled", "alive_but_artifact_stalled", "alive_but_waiting", "alive_but_stalled", "dead_but_resumable", "dead_needs_intervention", "unknown"]>;
1236
+ checked_at: z.ZodNumber;
1237
+ signals: z.ZodObject<{
1238
+ process: z.ZodObject<{
1239
+ checked_at: z.ZodNumber;
1240
+ observed_at: z.ZodOptional<z.ZodNumber>;
1241
+ reason: z.ZodOptional<z.ZodString>;
1242
+ } & {
1243
+ status: z.ZodEnum<["alive", "dead", "unknown"]>;
1244
+ pid: z.ZodOptional<z.ZodNumber>;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ status: "unknown" | "alive" | "dead";
1247
+ checked_at: number;
1248
+ reason?: string | undefined;
1249
+ observed_at?: number | undefined;
1250
+ pid?: number | undefined;
1251
+ }, {
1252
+ status: "unknown" | "alive" | "dead";
1253
+ checked_at: number;
1254
+ reason?: string | undefined;
1255
+ observed_at?: number | undefined;
1256
+ pid?: number | undefined;
1257
+ }>;
1258
+ child_activity: z.ZodObject<{
1259
+ checked_at: z.ZodNumber;
1260
+ observed_at: z.ZodOptional<z.ZodNumber>;
1261
+ reason: z.ZodOptional<z.ZodString>;
1262
+ } & {
1263
+ status: z.ZodEnum<["active", "idle", "unknown"]>;
1264
+ active_count: z.ZodOptional<z.ZodNumber>;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ status: "unknown" | "active" | "idle";
1267
+ checked_at: number;
1268
+ reason?: string | undefined;
1269
+ observed_at?: number | undefined;
1270
+ active_count?: number | undefined;
1271
+ }, {
1272
+ status: "unknown" | "active" | "idle";
1273
+ checked_at: number;
1274
+ reason?: string | undefined;
1275
+ observed_at?: number | undefined;
1276
+ active_count?: number | undefined;
1277
+ }>;
1278
+ log_freshness: z.ZodObject<{
1279
+ checked_at: z.ZodNumber;
1280
+ observed_at: z.ZodOptional<z.ZodNumber>;
1281
+ reason: z.ZodOptional<z.ZodString>;
1282
+ } & {
1283
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
1284
+ path: z.ZodOptional<z.ZodString>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ status: "unknown" | "stale" | "missing" | "fresh";
1287
+ checked_at: number;
1288
+ path?: string | undefined;
1289
+ reason?: string | undefined;
1290
+ observed_at?: number | undefined;
1291
+ }, {
1292
+ status: "unknown" | "stale" | "missing" | "fresh";
1293
+ checked_at: number;
1294
+ path?: string | undefined;
1295
+ reason?: string | undefined;
1296
+ observed_at?: number | undefined;
1297
+ }>;
1298
+ artifact_freshness: z.ZodObject<{
1299
+ checked_at: z.ZodNumber;
1300
+ observed_at: z.ZodOptional<z.ZodNumber>;
1301
+ reason: z.ZodOptional<z.ZodString>;
1302
+ } & {
1303
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
1304
+ path: z.ZodOptional<z.ZodString>;
1305
+ }, "strip", z.ZodTypeAny, {
1306
+ status: "unknown" | "stale" | "missing" | "fresh";
1307
+ checked_at: number;
1308
+ path?: string | undefined;
1309
+ reason?: string | undefined;
1310
+ observed_at?: number | undefined;
1311
+ }, {
1312
+ status: "unknown" | "stale" | "missing" | "fresh";
1313
+ checked_at: number;
1314
+ path?: string | undefined;
1315
+ reason?: string | undefined;
1316
+ observed_at?: number | undefined;
1317
+ }>;
1318
+ metric_freshness: z.ZodObject<{
1319
+ checked_at: z.ZodNumber;
1320
+ observed_at: z.ZodOptional<z.ZodNumber>;
1321
+ reason: z.ZodOptional<z.ZodString>;
1322
+ } & {
1323
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
1324
+ metric_name: z.ZodOptional<z.ZodString>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ status: "unknown" | "stale" | "missing" | "fresh";
1327
+ checked_at: number;
1328
+ reason?: string | undefined;
1329
+ observed_at?: number | undefined;
1330
+ metric_name?: string | undefined;
1331
+ }, {
1332
+ status: "unknown" | "stale" | "missing" | "fresh";
1333
+ checked_at: number;
1334
+ reason?: string | undefined;
1335
+ observed_at?: number | undefined;
1336
+ metric_name?: string | undefined;
1337
+ }>;
1338
+ metric_progress: z.ZodObject<{
1339
+ checked_at: z.ZodNumber;
1340
+ observed_at: z.ZodOptional<z.ZodNumber>;
1341
+ reason: z.ZodOptional<z.ZodString>;
1342
+ } & {
1343
+ status: z.ZodEnum<["improved", "plateau", "regressed", "missing", "unknown"]>;
1344
+ metric_name: z.ZodOptional<z.ZodString>;
1345
+ previous_value: z.ZodOptional<z.ZodNumber>;
1346
+ current_value: z.ZodOptional<z.ZodNumber>;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1349
+ checked_at: number;
1350
+ current_value?: number | undefined;
1351
+ previous_value?: number | undefined;
1352
+ reason?: string | undefined;
1353
+ observed_at?: number | undefined;
1354
+ metric_name?: string | undefined;
1355
+ }, {
1356
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1357
+ checked_at: number;
1358
+ current_value?: number | undefined;
1359
+ previous_value?: number | undefined;
1360
+ reason?: string | undefined;
1361
+ observed_at?: number | undefined;
1362
+ metric_name?: string | undefined;
1363
+ }>;
1364
+ blocker: z.ZodObject<{
1365
+ checked_at: z.ZodNumber;
1366
+ observed_at: z.ZodOptional<z.ZodNumber>;
1367
+ reason: z.ZodOptional<z.ZodString>;
1368
+ } & {
1369
+ status: z.ZodEnum<["none", "approval_wait", "auth_wait", "operator_wait", "resource_pressure", "blocked", "unknown"]>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1372
+ checked_at: number;
1373
+ reason?: string | undefined;
1374
+ observed_at?: number | undefined;
1375
+ }, {
1376
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1377
+ checked_at: number;
1378
+ reason?: string | undefined;
1379
+ observed_at?: number | undefined;
1380
+ }>;
1381
+ expected_next_checkpoint_at: z.ZodOptional<z.ZodNumber>;
1382
+ resumable: z.ZodOptional<z.ZodBoolean>;
1383
+ }, "strip", z.ZodTypeAny, {
1384
+ process: {
1385
+ status: "unknown" | "alive" | "dead";
1386
+ checked_at: number;
1387
+ reason?: string | undefined;
1388
+ observed_at?: number | undefined;
1389
+ pid?: number | undefined;
1390
+ };
1391
+ child_activity: {
1392
+ status: "unknown" | "active" | "idle";
1393
+ checked_at: number;
1394
+ reason?: string | undefined;
1395
+ observed_at?: number | undefined;
1396
+ active_count?: number | undefined;
1397
+ };
1398
+ log_freshness: {
1399
+ status: "unknown" | "stale" | "missing" | "fresh";
1400
+ checked_at: number;
1401
+ path?: string | undefined;
1402
+ reason?: string | undefined;
1403
+ observed_at?: number | undefined;
1404
+ };
1405
+ artifact_freshness: {
1406
+ status: "unknown" | "stale" | "missing" | "fresh";
1407
+ checked_at: number;
1408
+ path?: string | undefined;
1409
+ reason?: string | undefined;
1410
+ observed_at?: number | undefined;
1411
+ };
1412
+ metric_freshness: {
1413
+ status: "unknown" | "stale" | "missing" | "fresh";
1414
+ checked_at: number;
1415
+ reason?: string | undefined;
1416
+ observed_at?: number | undefined;
1417
+ metric_name?: string | undefined;
1418
+ };
1419
+ metric_progress: {
1420
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1421
+ checked_at: number;
1422
+ current_value?: number | undefined;
1423
+ previous_value?: number | undefined;
1424
+ reason?: string | undefined;
1425
+ observed_at?: number | undefined;
1426
+ metric_name?: string | undefined;
1427
+ };
1428
+ blocker: {
1429
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1430
+ checked_at: number;
1431
+ reason?: string | undefined;
1432
+ observed_at?: number | undefined;
1433
+ };
1434
+ expected_next_checkpoint_at?: number | undefined;
1435
+ resumable?: boolean | undefined;
1436
+ }, {
1437
+ process: {
1438
+ status: "unknown" | "alive" | "dead";
1439
+ checked_at: number;
1440
+ reason?: string | undefined;
1441
+ observed_at?: number | undefined;
1442
+ pid?: number | undefined;
1443
+ };
1444
+ child_activity: {
1445
+ status: "unknown" | "active" | "idle";
1446
+ checked_at: number;
1447
+ reason?: string | undefined;
1448
+ observed_at?: number | undefined;
1449
+ active_count?: number | undefined;
1450
+ };
1451
+ log_freshness: {
1452
+ status: "unknown" | "stale" | "missing" | "fresh";
1453
+ checked_at: number;
1454
+ path?: string | undefined;
1455
+ reason?: string | undefined;
1456
+ observed_at?: number | undefined;
1457
+ };
1458
+ artifact_freshness: {
1459
+ status: "unknown" | "stale" | "missing" | "fresh";
1460
+ checked_at: number;
1461
+ path?: string | undefined;
1462
+ reason?: string | undefined;
1463
+ observed_at?: number | undefined;
1464
+ };
1465
+ metric_freshness: {
1466
+ status: "unknown" | "stale" | "missing" | "fresh";
1467
+ checked_at: number;
1468
+ reason?: string | undefined;
1469
+ observed_at?: number | undefined;
1470
+ metric_name?: string | undefined;
1471
+ };
1472
+ metric_progress: {
1473
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1474
+ checked_at: number;
1475
+ current_value?: number | undefined;
1476
+ previous_value?: number | undefined;
1477
+ reason?: string | undefined;
1478
+ observed_at?: number | undefined;
1479
+ metric_name?: string | undefined;
1480
+ };
1481
+ blocker: {
1482
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1483
+ checked_at: number;
1484
+ reason?: string | undefined;
1485
+ observed_at?: number | undefined;
1486
+ };
1487
+ expected_next_checkpoint_at?: number | undefined;
1488
+ resumable?: boolean | undefined;
1489
+ }>;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ checked_at: number;
1492
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
1493
+ signals: {
1494
+ process: {
1495
+ status: "unknown" | "alive" | "dead";
1496
+ checked_at: number;
1497
+ reason?: string | undefined;
1498
+ observed_at?: number | undefined;
1499
+ pid?: number | undefined;
1500
+ };
1501
+ child_activity: {
1502
+ status: "unknown" | "active" | "idle";
1503
+ checked_at: number;
1504
+ reason?: string | undefined;
1505
+ observed_at?: number | undefined;
1506
+ active_count?: number | undefined;
1507
+ };
1508
+ log_freshness: {
1509
+ status: "unknown" | "stale" | "missing" | "fresh";
1510
+ checked_at: number;
1511
+ path?: string | undefined;
1512
+ reason?: string | undefined;
1513
+ observed_at?: number | undefined;
1514
+ };
1515
+ artifact_freshness: {
1516
+ status: "unknown" | "stale" | "missing" | "fresh";
1517
+ checked_at: number;
1518
+ path?: string | undefined;
1519
+ reason?: string | undefined;
1520
+ observed_at?: number | undefined;
1521
+ };
1522
+ metric_freshness: {
1523
+ status: "unknown" | "stale" | "missing" | "fresh";
1524
+ checked_at: number;
1525
+ reason?: string | undefined;
1526
+ observed_at?: number | undefined;
1527
+ metric_name?: string | undefined;
1528
+ };
1529
+ metric_progress: {
1530
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1531
+ checked_at: number;
1532
+ current_value?: number | undefined;
1533
+ previous_value?: number | undefined;
1534
+ reason?: string | undefined;
1535
+ observed_at?: number | undefined;
1536
+ metric_name?: string | undefined;
1537
+ };
1538
+ blocker: {
1539
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1540
+ checked_at: number;
1541
+ reason?: string | undefined;
1542
+ observed_at?: number | undefined;
1543
+ };
1544
+ expected_next_checkpoint_at?: number | undefined;
1545
+ resumable?: boolean | undefined;
1546
+ };
1547
+ }, {
1548
+ checked_at: number;
1549
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
1550
+ signals: {
1551
+ process: {
1552
+ status: "unknown" | "alive" | "dead";
1553
+ checked_at: number;
1554
+ reason?: string | undefined;
1555
+ observed_at?: number | undefined;
1556
+ pid?: number | undefined;
1557
+ };
1558
+ child_activity: {
1559
+ status: "unknown" | "active" | "idle";
1560
+ checked_at: number;
1561
+ reason?: string | undefined;
1562
+ observed_at?: number | undefined;
1563
+ active_count?: number | undefined;
1564
+ };
1565
+ log_freshness: {
1566
+ status: "unknown" | "stale" | "missing" | "fresh";
1567
+ checked_at: number;
1568
+ path?: string | undefined;
1569
+ reason?: string | undefined;
1570
+ observed_at?: number | undefined;
1571
+ };
1572
+ artifact_freshness: {
1573
+ status: "unknown" | "stale" | "missing" | "fresh";
1574
+ checked_at: number;
1575
+ path?: string | undefined;
1576
+ reason?: string | undefined;
1577
+ observed_at?: number | undefined;
1578
+ };
1579
+ metric_freshness: {
1580
+ status: "unknown" | "stale" | "missing" | "fresh";
1581
+ checked_at: number;
1582
+ reason?: string | undefined;
1583
+ observed_at?: number | undefined;
1584
+ metric_name?: string | undefined;
1585
+ };
1586
+ metric_progress: {
1587
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1588
+ checked_at: number;
1589
+ current_value?: number | undefined;
1590
+ previous_value?: number | undefined;
1591
+ reason?: string | undefined;
1592
+ observed_at?: number | undefined;
1593
+ metric_name?: string | undefined;
1594
+ };
1595
+ blocker: {
1596
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1597
+ checked_at: number;
1598
+ reason?: string | undefined;
1599
+ observed_at?: number | undefined;
1600
+ };
1601
+ expected_next_checkpoint_at?: number | undefined;
1602
+ resumable?: boolean | undefined;
1603
+ };
1604
+ }>>;
458
1605
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
459
1606
  }, "strip", z.ZodTypeAny, {
460
1607
  status: "ok" | "failed" | "degraded";
@@ -489,6 +1636,64 @@ export declare const RuntimeDaemonHealthSchema: z.ZodObject<{
489
1636
  degraded_at?: number | undefined;
490
1637
  recovered_at?: number | undefined;
491
1638
  } | undefined;
1639
+ long_running?: {
1640
+ checked_at: number;
1641
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
1642
+ signals: {
1643
+ process: {
1644
+ status: "unknown" | "alive" | "dead";
1645
+ checked_at: number;
1646
+ reason?: string | undefined;
1647
+ observed_at?: number | undefined;
1648
+ pid?: number | undefined;
1649
+ };
1650
+ child_activity: {
1651
+ status: "unknown" | "active" | "idle";
1652
+ checked_at: number;
1653
+ reason?: string | undefined;
1654
+ observed_at?: number | undefined;
1655
+ active_count?: number | undefined;
1656
+ };
1657
+ log_freshness: {
1658
+ status: "unknown" | "stale" | "missing" | "fresh";
1659
+ checked_at: number;
1660
+ path?: string | undefined;
1661
+ reason?: string | undefined;
1662
+ observed_at?: number | undefined;
1663
+ };
1664
+ artifact_freshness: {
1665
+ status: "unknown" | "stale" | "missing" | "fresh";
1666
+ checked_at: number;
1667
+ path?: string | undefined;
1668
+ reason?: string | undefined;
1669
+ observed_at?: number | undefined;
1670
+ };
1671
+ metric_freshness: {
1672
+ status: "unknown" | "stale" | "missing" | "fresh";
1673
+ checked_at: number;
1674
+ reason?: string | undefined;
1675
+ observed_at?: number | undefined;
1676
+ metric_name?: string | undefined;
1677
+ };
1678
+ metric_progress: {
1679
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1680
+ checked_at: number;
1681
+ current_value?: number | undefined;
1682
+ previous_value?: number | undefined;
1683
+ reason?: string | undefined;
1684
+ observed_at?: number | undefined;
1685
+ metric_name?: string | undefined;
1686
+ };
1687
+ blocker: {
1688
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1689
+ checked_at: number;
1690
+ reason?: string | undefined;
1691
+ observed_at?: number | undefined;
1692
+ };
1693
+ expected_next_checkpoint_at?: number | undefined;
1694
+ resumable?: boolean | undefined;
1695
+ };
1696
+ } | undefined;
492
1697
  }, {
493
1698
  status: "ok" | "failed" | "degraded";
494
1699
  checked_at: number;
@@ -522,6 +1727,64 @@ export declare const RuntimeDaemonHealthSchema: z.ZodObject<{
522
1727
  degraded_at?: number | undefined;
523
1728
  recovered_at?: number | undefined;
524
1729
  } | undefined;
1730
+ long_running?: {
1731
+ checked_at: number;
1732
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
1733
+ signals: {
1734
+ process: {
1735
+ status: "unknown" | "alive" | "dead";
1736
+ checked_at: number;
1737
+ reason?: string | undefined;
1738
+ observed_at?: number | undefined;
1739
+ pid?: number | undefined;
1740
+ };
1741
+ child_activity: {
1742
+ status: "unknown" | "active" | "idle";
1743
+ checked_at: number;
1744
+ reason?: string | undefined;
1745
+ observed_at?: number | undefined;
1746
+ active_count?: number | undefined;
1747
+ };
1748
+ log_freshness: {
1749
+ status: "unknown" | "stale" | "missing" | "fresh";
1750
+ checked_at: number;
1751
+ path?: string | undefined;
1752
+ reason?: string | undefined;
1753
+ observed_at?: number | undefined;
1754
+ };
1755
+ artifact_freshness: {
1756
+ status: "unknown" | "stale" | "missing" | "fresh";
1757
+ checked_at: number;
1758
+ path?: string | undefined;
1759
+ reason?: string | undefined;
1760
+ observed_at?: number | undefined;
1761
+ };
1762
+ metric_freshness: {
1763
+ status: "unknown" | "stale" | "missing" | "fresh";
1764
+ checked_at: number;
1765
+ reason?: string | undefined;
1766
+ observed_at?: number | undefined;
1767
+ metric_name?: string | undefined;
1768
+ };
1769
+ metric_progress: {
1770
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
1771
+ checked_at: number;
1772
+ current_value?: number | undefined;
1773
+ previous_value?: number | undefined;
1774
+ reason?: string | undefined;
1775
+ observed_at?: number | undefined;
1776
+ metric_name?: string | undefined;
1777
+ };
1778
+ blocker: {
1779
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
1780
+ checked_at: number;
1781
+ reason?: string | undefined;
1782
+ observed_at?: number | undefined;
1783
+ };
1784
+ expected_next_checkpoint_at?: number | undefined;
1785
+ resumable?: boolean | undefined;
1786
+ };
1787
+ } | undefined;
525
1788
  }>;
526
1789
  export type RuntimeDaemonHealth = z.infer<typeof RuntimeDaemonHealthSchema>;
527
1790
  export declare const RuntimeComponentsHealthSchema: z.ZodObject<{
@@ -664,6 +1927,377 @@ export declare const RuntimeHealthSnapshotSchema: z.ZodObject<{
664
1927
  degraded_at?: number | undefined;
665
1928
  recovered_at?: number | undefined;
666
1929
  }>>;
1930
+ long_running: z.ZodOptional<z.ZodObject<{
1931
+ summary: z.ZodEnum<["alive_and_progressing", "alive_but_metric_stalled", "alive_but_artifact_stalled", "alive_but_waiting", "alive_but_stalled", "dead_but_resumable", "dead_needs_intervention", "unknown"]>;
1932
+ checked_at: z.ZodNumber;
1933
+ signals: z.ZodObject<{
1934
+ process: z.ZodObject<{
1935
+ checked_at: z.ZodNumber;
1936
+ observed_at: z.ZodOptional<z.ZodNumber>;
1937
+ reason: z.ZodOptional<z.ZodString>;
1938
+ } & {
1939
+ status: z.ZodEnum<["alive", "dead", "unknown"]>;
1940
+ pid: z.ZodOptional<z.ZodNumber>;
1941
+ }, "strip", z.ZodTypeAny, {
1942
+ status: "unknown" | "alive" | "dead";
1943
+ checked_at: number;
1944
+ reason?: string | undefined;
1945
+ observed_at?: number | undefined;
1946
+ pid?: number | undefined;
1947
+ }, {
1948
+ status: "unknown" | "alive" | "dead";
1949
+ checked_at: number;
1950
+ reason?: string | undefined;
1951
+ observed_at?: number | undefined;
1952
+ pid?: number | undefined;
1953
+ }>;
1954
+ child_activity: z.ZodObject<{
1955
+ checked_at: z.ZodNumber;
1956
+ observed_at: z.ZodOptional<z.ZodNumber>;
1957
+ reason: z.ZodOptional<z.ZodString>;
1958
+ } & {
1959
+ status: z.ZodEnum<["active", "idle", "unknown"]>;
1960
+ active_count: z.ZodOptional<z.ZodNumber>;
1961
+ }, "strip", z.ZodTypeAny, {
1962
+ status: "unknown" | "active" | "idle";
1963
+ checked_at: number;
1964
+ reason?: string | undefined;
1965
+ observed_at?: number | undefined;
1966
+ active_count?: number | undefined;
1967
+ }, {
1968
+ status: "unknown" | "active" | "idle";
1969
+ checked_at: number;
1970
+ reason?: string | undefined;
1971
+ observed_at?: number | undefined;
1972
+ active_count?: number | undefined;
1973
+ }>;
1974
+ log_freshness: z.ZodObject<{
1975
+ checked_at: z.ZodNumber;
1976
+ observed_at: z.ZodOptional<z.ZodNumber>;
1977
+ reason: z.ZodOptional<z.ZodString>;
1978
+ } & {
1979
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
1980
+ path: z.ZodOptional<z.ZodString>;
1981
+ }, "strip", z.ZodTypeAny, {
1982
+ status: "unknown" | "stale" | "missing" | "fresh";
1983
+ checked_at: number;
1984
+ path?: string | undefined;
1985
+ reason?: string | undefined;
1986
+ observed_at?: number | undefined;
1987
+ }, {
1988
+ status: "unknown" | "stale" | "missing" | "fresh";
1989
+ checked_at: number;
1990
+ path?: string | undefined;
1991
+ reason?: string | undefined;
1992
+ observed_at?: number | undefined;
1993
+ }>;
1994
+ artifact_freshness: z.ZodObject<{
1995
+ checked_at: z.ZodNumber;
1996
+ observed_at: z.ZodOptional<z.ZodNumber>;
1997
+ reason: z.ZodOptional<z.ZodString>;
1998
+ } & {
1999
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
2000
+ path: z.ZodOptional<z.ZodString>;
2001
+ }, "strip", z.ZodTypeAny, {
2002
+ status: "unknown" | "stale" | "missing" | "fresh";
2003
+ checked_at: number;
2004
+ path?: string | undefined;
2005
+ reason?: string | undefined;
2006
+ observed_at?: number | undefined;
2007
+ }, {
2008
+ status: "unknown" | "stale" | "missing" | "fresh";
2009
+ checked_at: number;
2010
+ path?: string | undefined;
2011
+ reason?: string | undefined;
2012
+ observed_at?: number | undefined;
2013
+ }>;
2014
+ metric_freshness: z.ZodObject<{
2015
+ checked_at: z.ZodNumber;
2016
+ observed_at: z.ZodOptional<z.ZodNumber>;
2017
+ reason: z.ZodOptional<z.ZodString>;
2018
+ } & {
2019
+ status: z.ZodEnum<["fresh", "stale", "missing", "unknown"]>;
2020
+ metric_name: z.ZodOptional<z.ZodString>;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ status: "unknown" | "stale" | "missing" | "fresh";
2023
+ checked_at: number;
2024
+ reason?: string | undefined;
2025
+ observed_at?: number | undefined;
2026
+ metric_name?: string | undefined;
2027
+ }, {
2028
+ status: "unknown" | "stale" | "missing" | "fresh";
2029
+ checked_at: number;
2030
+ reason?: string | undefined;
2031
+ observed_at?: number | undefined;
2032
+ metric_name?: string | undefined;
2033
+ }>;
2034
+ metric_progress: z.ZodObject<{
2035
+ checked_at: z.ZodNumber;
2036
+ observed_at: z.ZodOptional<z.ZodNumber>;
2037
+ reason: z.ZodOptional<z.ZodString>;
2038
+ } & {
2039
+ status: z.ZodEnum<["improved", "plateau", "regressed", "missing", "unknown"]>;
2040
+ metric_name: z.ZodOptional<z.ZodString>;
2041
+ previous_value: z.ZodOptional<z.ZodNumber>;
2042
+ current_value: z.ZodOptional<z.ZodNumber>;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2045
+ checked_at: number;
2046
+ current_value?: number | undefined;
2047
+ previous_value?: number | undefined;
2048
+ reason?: string | undefined;
2049
+ observed_at?: number | undefined;
2050
+ metric_name?: string | undefined;
2051
+ }, {
2052
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2053
+ checked_at: number;
2054
+ current_value?: number | undefined;
2055
+ previous_value?: number | undefined;
2056
+ reason?: string | undefined;
2057
+ observed_at?: number | undefined;
2058
+ metric_name?: string | undefined;
2059
+ }>;
2060
+ blocker: z.ZodObject<{
2061
+ checked_at: z.ZodNumber;
2062
+ observed_at: z.ZodOptional<z.ZodNumber>;
2063
+ reason: z.ZodOptional<z.ZodString>;
2064
+ } & {
2065
+ status: z.ZodEnum<["none", "approval_wait", "auth_wait", "operator_wait", "resource_pressure", "blocked", "unknown"]>;
2066
+ }, "strip", z.ZodTypeAny, {
2067
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2068
+ checked_at: number;
2069
+ reason?: string | undefined;
2070
+ observed_at?: number | undefined;
2071
+ }, {
2072
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2073
+ checked_at: number;
2074
+ reason?: string | undefined;
2075
+ observed_at?: number | undefined;
2076
+ }>;
2077
+ expected_next_checkpoint_at: z.ZodOptional<z.ZodNumber>;
2078
+ resumable: z.ZodOptional<z.ZodBoolean>;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ process: {
2081
+ status: "unknown" | "alive" | "dead";
2082
+ checked_at: number;
2083
+ reason?: string | undefined;
2084
+ observed_at?: number | undefined;
2085
+ pid?: number | undefined;
2086
+ };
2087
+ child_activity: {
2088
+ status: "unknown" | "active" | "idle";
2089
+ checked_at: number;
2090
+ reason?: string | undefined;
2091
+ observed_at?: number | undefined;
2092
+ active_count?: number | undefined;
2093
+ };
2094
+ log_freshness: {
2095
+ status: "unknown" | "stale" | "missing" | "fresh";
2096
+ checked_at: number;
2097
+ path?: string | undefined;
2098
+ reason?: string | undefined;
2099
+ observed_at?: number | undefined;
2100
+ };
2101
+ artifact_freshness: {
2102
+ status: "unknown" | "stale" | "missing" | "fresh";
2103
+ checked_at: number;
2104
+ path?: string | undefined;
2105
+ reason?: string | undefined;
2106
+ observed_at?: number | undefined;
2107
+ };
2108
+ metric_freshness: {
2109
+ status: "unknown" | "stale" | "missing" | "fresh";
2110
+ checked_at: number;
2111
+ reason?: string | undefined;
2112
+ observed_at?: number | undefined;
2113
+ metric_name?: string | undefined;
2114
+ };
2115
+ metric_progress: {
2116
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2117
+ checked_at: number;
2118
+ current_value?: number | undefined;
2119
+ previous_value?: number | undefined;
2120
+ reason?: string | undefined;
2121
+ observed_at?: number | undefined;
2122
+ metric_name?: string | undefined;
2123
+ };
2124
+ blocker: {
2125
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2126
+ checked_at: number;
2127
+ reason?: string | undefined;
2128
+ observed_at?: number | undefined;
2129
+ };
2130
+ expected_next_checkpoint_at?: number | undefined;
2131
+ resumable?: boolean | undefined;
2132
+ }, {
2133
+ process: {
2134
+ status: "unknown" | "alive" | "dead";
2135
+ checked_at: number;
2136
+ reason?: string | undefined;
2137
+ observed_at?: number | undefined;
2138
+ pid?: number | undefined;
2139
+ };
2140
+ child_activity: {
2141
+ status: "unknown" | "active" | "idle";
2142
+ checked_at: number;
2143
+ reason?: string | undefined;
2144
+ observed_at?: number | undefined;
2145
+ active_count?: number | undefined;
2146
+ };
2147
+ log_freshness: {
2148
+ status: "unknown" | "stale" | "missing" | "fresh";
2149
+ checked_at: number;
2150
+ path?: string | undefined;
2151
+ reason?: string | undefined;
2152
+ observed_at?: number | undefined;
2153
+ };
2154
+ artifact_freshness: {
2155
+ status: "unknown" | "stale" | "missing" | "fresh";
2156
+ checked_at: number;
2157
+ path?: string | undefined;
2158
+ reason?: string | undefined;
2159
+ observed_at?: number | undefined;
2160
+ };
2161
+ metric_freshness: {
2162
+ status: "unknown" | "stale" | "missing" | "fresh";
2163
+ checked_at: number;
2164
+ reason?: string | undefined;
2165
+ observed_at?: number | undefined;
2166
+ metric_name?: string | undefined;
2167
+ };
2168
+ metric_progress: {
2169
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2170
+ checked_at: number;
2171
+ current_value?: number | undefined;
2172
+ previous_value?: number | undefined;
2173
+ reason?: string | undefined;
2174
+ observed_at?: number | undefined;
2175
+ metric_name?: string | undefined;
2176
+ };
2177
+ blocker: {
2178
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2179
+ checked_at: number;
2180
+ reason?: string | undefined;
2181
+ observed_at?: number | undefined;
2182
+ };
2183
+ expected_next_checkpoint_at?: number | undefined;
2184
+ resumable?: boolean | undefined;
2185
+ }>;
2186
+ }, "strip", z.ZodTypeAny, {
2187
+ checked_at: number;
2188
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
2189
+ signals: {
2190
+ process: {
2191
+ status: "unknown" | "alive" | "dead";
2192
+ checked_at: number;
2193
+ reason?: string | undefined;
2194
+ observed_at?: number | undefined;
2195
+ pid?: number | undefined;
2196
+ };
2197
+ child_activity: {
2198
+ status: "unknown" | "active" | "idle";
2199
+ checked_at: number;
2200
+ reason?: string | undefined;
2201
+ observed_at?: number | undefined;
2202
+ active_count?: number | undefined;
2203
+ };
2204
+ log_freshness: {
2205
+ status: "unknown" | "stale" | "missing" | "fresh";
2206
+ checked_at: number;
2207
+ path?: string | undefined;
2208
+ reason?: string | undefined;
2209
+ observed_at?: number | undefined;
2210
+ };
2211
+ artifact_freshness: {
2212
+ status: "unknown" | "stale" | "missing" | "fresh";
2213
+ checked_at: number;
2214
+ path?: string | undefined;
2215
+ reason?: string | undefined;
2216
+ observed_at?: number | undefined;
2217
+ };
2218
+ metric_freshness: {
2219
+ status: "unknown" | "stale" | "missing" | "fresh";
2220
+ checked_at: number;
2221
+ reason?: string | undefined;
2222
+ observed_at?: number | undefined;
2223
+ metric_name?: string | undefined;
2224
+ };
2225
+ metric_progress: {
2226
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2227
+ checked_at: number;
2228
+ current_value?: number | undefined;
2229
+ previous_value?: number | undefined;
2230
+ reason?: string | undefined;
2231
+ observed_at?: number | undefined;
2232
+ metric_name?: string | undefined;
2233
+ };
2234
+ blocker: {
2235
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2236
+ checked_at: number;
2237
+ reason?: string | undefined;
2238
+ observed_at?: number | undefined;
2239
+ };
2240
+ expected_next_checkpoint_at?: number | undefined;
2241
+ resumable?: boolean | undefined;
2242
+ };
2243
+ }, {
2244
+ checked_at: number;
2245
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
2246
+ signals: {
2247
+ process: {
2248
+ status: "unknown" | "alive" | "dead";
2249
+ checked_at: number;
2250
+ reason?: string | undefined;
2251
+ observed_at?: number | undefined;
2252
+ pid?: number | undefined;
2253
+ };
2254
+ child_activity: {
2255
+ status: "unknown" | "active" | "idle";
2256
+ checked_at: number;
2257
+ reason?: string | undefined;
2258
+ observed_at?: number | undefined;
2259
+ active_count?: number | undefined;
2260
+ };
2261
+ log_freshness: {
2262
+ status: "unknown" | "stale" | "missing" | "fresh";
2263
+ checked_at: number;
2264
+ path?: string | undefined;
2265
+ reason?: string | undefined;
2266
+ observed_at?: number | undefined;
2267
+ };
2268
+ artifact_freshness: {
2269
+ status: "unknown" | "stale" | "missing" | "fresh";
2270
+ checked_at: number;
2271
+ path?: string | undefined;
2272
+ reason?: string | undefined;
2273
+ observed_at?: number | undefined;
2274
+ };
2275
+ metric_freshness: {
2276
+ status: "unknown" | "stale" | "missing" | "fresh";
2277
+ checked_at: number;
2278
+ reason?: string | undefined;
2279
+ observed_at?: number | undefined;
2280
+ metric_name?: string | undefined;
2281
+ };
2282
+ metric_progress: {
2283
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2284
+ checked_at: number;
2285
+ current_value?: number | undefined;
2286
+ previous_value?: number | undefined;
2287
+ reason?: string | undefined;
2288
+ observed_at?: number | undefined;
2289
+ metric_name?: string | undefined;
2290
+ };
2291
+ blocker: {
2292
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2293
+ checked_at: number;
2294
+ reason?: string | undefined;
2295
+ observed_at?: number | undefined;
2296
+ };
2297
+ expected_next_checkpoint_at?: number | undefined;
2298
+ resumable?: boolean | undefined;
2299
+ };
2300
+ }>>;
667
2301
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
668
2302
  }, "strip", z.ZodTypeAny, {
669
2303
  status: "ok" | "failed" | "degraded";
@@ -699,6 +2333,64 @@ export declare const RuntimeHealthSnapshotSchema: z.ZodObject<{
699
2333
  degraded_at?: number | undefined;
700
2334
  recovered_at?: number | undefined;
701
2335
  } | undefined;
2336
+ long_running?: {
2337
+ checked_at: number;
2338
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
2339
+ signals: {
2340
+ process: {
2341
+ status: "unknown" | "alive" | "dead";
2342
+ checked_at: number;
2343
+ reason?: string | undefined;
2344
+ observed_at?: number | undefined;
2345
+ pid?: number | undefined;
2346
+ };
2347
+ child_activity: {
2348
+ status: "unknown" | "active" | "idle";
2349
+ checked_at: number;
2350
+ reason?: string | undefined;
2351
+ observed_at?: number | undefined;
2352
+ active_count?: number | undefined;
2353
+ };
2354
+ log_freshness: {
2355
+ status: "unknown" | "stale" | "missing" | "fresh";
2356
+ checked_at: number;
2357
+ path?: string | undefined;
2358
+ reason?: string | undefined;
2359
+ observed_at?: number | undefined;
2360
+ };
2361
+ artifact_freshness: {
2362
+ status: "unknown" | "stale" | "missing" | "fresh";
2363
+ checked_at: number;
2364
+ path?: string | undefined;
2365
+ reason?: string | undefined;
2366
+ observed_at?: number | undefined;
2367
+ };
2368
+ metric_freshness: {
2369
+ status: "unknown" | "stale" | "missing" | "fresh";
2370
+ checked_at: number;
2371
+ reason?: string | undefined;
2372
+ observed_at?: number | undefined;
2373
+ metric_name?: string | undefined;
2374
+ };
2375
+ metric_progress: {
2376
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2377
+ checked_at: number;
2378
+ current_value?: number | undefined;
2379
+ previous_value?: number | undefined;
2380
+ reason?: string | undefined;
2381
+ observed_at?: number | undefined;
2382
+ metric_name?: string | undefined;
2383
+ };
2384
+ blocker: {
2385
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2386
+ checked_at: number;
2387
+ reason?: string | undefined;
2388
+ observed_at?: number | undefined;
2389
+ };
2390
+ expected_next_checkpoint_at?: number | undefined;
2391
+ resumable?: boolean | undefined;
2392
+ };
2393
+ } | undefined;
702
2394
  }, {
703
2395
  status: "ok" | "failed" | "degraded";
704
2396
  checked_at: number;
@@ -733,9 +2425,236 @@ export declare const RuntimeHealthSnapshotSchema: z.ZodObject<{
733
2425
  degraded_at?: number | undefined;
734
2426
  recovered_at?: number | undefined;
735
2427
  } | undefined;
2428
+ long_running?: {
2429
+ checked_at: number;
2430
+ summary: "unknown" | "alive_and_progressing" | "alive_but_metric_stalled" | "alive_but_artifact_stalled" | "alive_but_waiting" | "alive_but_stalled" | "dead_but_resumable" | "dead_needs_intervention";
2431
+ signals: {
2432
+ process: {
2433
+ status: "unknown" | "alive" | "dead";
2434
+ checked_at: number;
2435
+ reason?: string | undefined;
2436
+ observed_at?: number | undefined;
2437
+ pid?: number | undefined;
2438
+ };
2439
+ child_activity: {
2440
+ status: "unknown" | "active" | "idle";
2441
+ checked_at: number;
2442
+ reason?: string | undefined;
2443
+ observed_at?: number | undefined;
2444
+ active_count?: number | undefined;
2445
+ };
2446
+ log_freshness: {
2447
+ status: "unknown" | "stale" | "missing" | "fresh";
2448
+ checked_at: number;
2449
+ path?: string | undefined;
2450
+ reason?: string | undefined;
2451
+ observed_at?: number | undefined;
2452
+ };
2453
+ artifact_freshness: {
2454
+ status: "unknown" | "stale" | "missing" | "fresh";
2455
+ checked_at: number;
2456
+ path?: string | undefined;
2457
+ reason?: string | undefined;
2458
+ observed_at?: number | undefined;
2459
+ };
2460
+ metric_freshness: {
2461
+ status: "unknown" | "stale" | "missing" | "fresh";
2462
+ checked_at: number;
2463
+ reason?: string | undefined;
2464
+ observed_at?: number | undefined;
2465
+ metric_name?: string | undefined;
2466
+ };
2467
+ metric_progress: {
2468
+ status: "unknown" | "improved" | "missing" | "plateau" | "regressed";
2469
+ checked_at: number;
2470
+ current_value?: number | undefined;
2471
+ previous_value?: number | undefined;
2472
+ reason?: string | undefined;
2473
+ observed_at?: number | undefined;
2474
+ metric_name?: string | undefined;
2475
+ };
2476
+ blocker: {
2477
+ status: "unknown" | "none" | "approval_wait" | "auth_wait" | "operator_wait" | "resource_pressure" | "blocked";
2478
+ checked_at: number;
2479
+ reason?: string | undefined;
2480
+ observed_at?: number | undefined;
2481
+ };
2482
+ expected_next_checkpoint_at?: number | undefined;
2483
+ resumable?: boolean | undefined;
2484
+ };
2485
+ } | undefined;
736
2486
  }>;
737
2487
  export type RuntimeHealthSnapshot = z.infer<typeof RuntimeHealthSnapshotSchema>;
2488
+ export declare const BrowserAutomationSessionStateSchema: z.ZodEnum<["fresh", "authenticated", "auth_required", "expired", "blocked", "unavailable"]>;
2489
+ export type BrowserAutomationSessionState = z.infer<typeof BrowserAutomationSessionStateSchema>;
2490
+ export declare const BrowserAutomationSessionRecordSchema: z.ZodObject<{
2491
+ session_id: z.ZodString;
2492
+ provider_id: z.ZodString;
2493
+ service_key: z.ZodString;
2494
+ workspace: z.ZodString;
2495
+ actor_key: z.ZodString;
2496
+ state: z.ZodEnum<["fresh", "authenticated", "auth_required", "expired", "blocked", "unavailable"]>;
2497
+ created_at: z.ZodString;
2498
+ updated_at: z.ZodString;
2499
+ last_auth_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2500
+ expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2501
+ last_failure_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2502
+ last_failure_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2503
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2504
+ }, "strip", z.ZodTypeAny, {
2505
+ created_at: string;
2506
+ updated_at: string;
2507
+ state: "expired" | "fresh" | "blocked" | "authenticated" | "auth_required" | "unavailable";
2508
+ session_id: string;
2509
+ provider_id: string;
2510
+ service_key: string;
2511
+ workspace: string;
2512
+ actor_key: string;
2513
+ metadata?: Record<string, unknown> | undefined;
2514
+ expires_at?: string | null | undefined;
2515
+ last_auth_at?: string | null | undefined;
2516
+ last_failure_code?: string | null | undefined;
2517
+ last_failure_message?: string | null | undefined;
2518
+ }, {
2519
+ created_at: string;
2520
+ updated_at: string;
2521
+ state: "expired" | "fresh" | "blocked" | "authenticated" | "auth_required" | "unavailable";
2522
+ session_id: string;
2523
+ provider_id: string;
2524
+ service_key: string;
2525
+ workspace: string;
2526
+ actor_key: string;
2527
+ metadata?: Record<string, unknown> | undefined;
2528
+ expires_at?: string | null | undefined;
2529
+ last_auth_at?: string | null | undefined;
2530
+ last_failure_code?: string | null | undefined;
2531
+ last_failure_message?: string | null | undefined;
2532
+ }>;
2533
+ export type BrowserAutomationSessionRecord = z.infer<typeof BrowserAutomationSessionRecordSchema>;
2534
+ export declare const CircuitBreakerStateSchema: z.ZodEnum<["closed", "open", "half_open", "paused"]>;
2535
+ export type CircuitBreakerState = z.infer<typeof CircuitBreakerStateSchema>;
2536
+ export declare const CircuitBreakerRecordSchema: z.ZodObject<{
2537
+ key: z.ZodString;
2538
+ provider_id: z.ZodString;
2539
+ service_key: z.ZodString;
2540
+ state: z.ZodEnum<["closed", "open", "half_open", "paused"]>;
2541
+ failure_count: z.ZodNumber;
2542
+ last_failure_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2543
+ last_failure_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2544
+ last_failure_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2545
+ opened_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2546
+ cooldown_until: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2547
+ updated_at: z.ZodString;
2548
+ }, "strip", z.ZodTypeAny, {
2549
+ updated_at: string;
2550
+ state: "paused" | "closed" | "open" | "half_open";
2551
+ provider_id: string;
2552
+ service_key: string;
2553
+ key: string;
2554
+ failure_count: number;
2555
+ cooldown_until?: string | null | undefined;
2556
+ last_failure_code?: string | null | undefined;
2557
+ last_failure_message?: string | null | undefined;
2558
+ last_failure_at?: string | null | undefined;
2559
+ opened_at?: string | null | undefined;
2560
+ }, {
2561
+ updated_at: string;
2562
+ state: "paused" | "closed" | "open" | "half_open";
2563
+ provider_id: string;
2564
+ service_key: string;
2565
+ key: string;
2566
+ failure_count: number;
2567
+ cooldown_until?: string | null | undefined;
2568
+ last_failure_code?: string | null | undefined;
2569
+ last_failure_message?: string | null | undefined;
2570
+ last_failure_at?: string | null | undefined;
2571
+ opened_at?: string | null | undefined;
2572
+ }>;
2573
+ export type CircuitBreakerRecord = z.infer<typeof CircuitBreakerRecordSchema>;
2574
+ export declare const BackpressureLeaseSchema: z.ZodObject<{
2575
+ provider_id: z.ZodString;
2576
+ service_key: z.ZodString;
2577
+ run_key: z.ZodString;
2578
+ acquired_at: z.ZodString;
2579
+ }, "strip", z.ZodTypeAny, {
2580
+ acquired_at: string;
2581
+ provider_id: string;
2582
+ service_key: string;
2583
+ run_key: string;
2584
+ }, {
2585
+ acquired_at: string;
2586
+ provider_id: string;
2587
+ service_key: string;
2588
+ run_key: string;
2589
+ }>;
2590
+ export type BackpressureLease = z.infer<typeof BackpressureLeaseSchema>;
2591
+ export declare const BackpressureSnapshotSchema: z.ZodObject<{
2592
+ updated_at: z.ZodString;
2593
+ active: z.ZodArray<z.ZodObject<{
2594
+ provider_id: z.ZodString;
2595
+ service_key: z.ZodString;
2596
+ run_key: z.ZodString;
2597
+ acquired_at: z.ZodString;
2598
+ }, "strip", z.ZodTypeAny, {
2599
+ acquired_at: string;
2600
+ provider_id: string;
2601
+ service_key: string;
2602
+ run_key: string;
2603
+ }, {
2604
+ acquired_at: string;
2605
+ provider_id: string;
2606
+ service_key: string;
2607
+ run_key: string;
2608
+ }>, "many">;
2609
+ throttled: z.ZodDefault<z.ZodArray<z.ZodObject<{
2610
+ provider_id: z.ZodString;
2611
+ service_key: z.ZodString;
2612
+ reason: z.ZodString;
2613
+ at: z.ZodString;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ at: string;
2616
+ reason: string;
2617
+ provider_id: string;
2618
+ service_key: string;
2619
+ }, {
2620
+ at: string;
2621
+ reason: string;
2622
+ provider_id: string;
2623
+ service_key: string;
2624
+ }>, "many">>;
2625
+ }, "strip", z.ZodTypeAny, {
2626
+ active: {
2627
+ acquired_at: string;
2628
+ provider_id: string;
2629
+ service_key: string;
2630
+ run_key: string;
2631
+ }[];
2632
+ updated_at: string;
2633
+ throttled: {
2634
+ at: string;
2635
+ reason: string;
2636
+ provider_id: string;
2637
+ service_key: string;
2638
+ }[];
2639
+ }, {
2640
+ active: {
2641
+ acquired_at: string;
2642
+ provider_id: string;
2643
+ service_key: string;
2644
+ run_key: string;
2645
+ }[];
2646
+ updated_at: string;
2647
+ throttled?: {
2648
+ at: string;
2649
+ reason: string;
2650
+ provider_id: string;
2651
+ service_key: string;
2652
+ }[] | undefined;
2653
+ }>;
2654
+ export type BackpressureSnapshot = z.infer<typeof BackpressureSnapshotSchema>;
738
2655
  export declare function summarizeRuntimeHealthStatus(components: Record<string, RuntimeHealthStatus>): RuntimeHealthStatus;
2656
+ export declare function classifyLongRunHealth(signals: RuntimeLongRunHealthSignals): RuntimeLongRunHealthSummary;
2657
+ export declare function buildLongRunHealth(signals: RuntimeLongRunHealthSignals, checkedAt?: number): RuntimeLongRunHealth;
739
2658
  export declare function evolveRuntimeHealthKpi(previous: RuntimeHealthKpi | null | undefined, nextStatuses: RuntimeHealthCapabilityStatuses, checkedAt: number, reasons?: Partial<Record<keyof RuntimeHealthCapabilityStatuses, string>>): RuntimeHealthKpi;
740
2659
  export declare function summarizeRuntimeHealthKpi(kpi: RuntimeHealthKpi): RuntimeHealthStatus;
741
2660
  export declare function compactRuntimeHealthKpi(kpi: RuntimeHealthKpi | null | undefined): RuntimeHealthKpiSnapshot | null;