pulseed 0.6.4 → 0.6.6

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 (2974) hide show
  1. package/README.md +105 -86
  2. package/dist/adapters/datasources/artifact-metric-datasource.d.ts +1 -1
  3. package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -1
  4. package/dist/adapters/datasources/artifact-metric-datasource.js +20 -249
  5. package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
  6. package/dist/adapters/datasources/artifact-metric-discovery.d.ts +44 -0
  7. package/dist/adapters/datasources/artifact-metric-discovery.d.ts.map +1 -0
  8. package/dist/adapters/datasources/artifact-metric-discovery.js +256 -0
  9. package/dist/adapters/datasources/artifact-metric-discovery.js.map +1 -0
  10. package/dist/adapters/datasources/mcp-datasource.d.ts.map +1 -1
  11. package/dist/adapters/datasources/mcp-datasource.js +2 -4
  12. package/dist/adapters/datasources/mcp-datasource.js.map +1 -1
  13. package/dist/adapters/datasources/shell-datasource.d.ts.map +1 -1
  14. package/dist/adapters/datasources/shell-datasource.js +9 -2
  15. package/dist/adapters/datasources/shell-datasource.js.map +1 -1
  16. package/dist/adapters/mcp-client-manager.d.ts +1 -0
  17. package/dist/adapters/mcp-client-manager.d.ts.map +1 -1
  18. package/dist/adapters/mcp-client-manager.js +8 -3
  19. package/dist/adapters/mcp-client-manager.js.map +1 -1
  20. package/dist/adapters/types/a2a.d.ts +6 -6
  21. package/dist/adapters/types/mcp.d.ts +6 -6
  22. package/dist/base/config/global-config.d.ts +67 -5
  23. package/dist/base/config/global-config.d.ts.map +1 -1
  24. package/dist/base/config/global-config.js +76 -25
  25. package/dist/base/config/global-config.js.map +1 -1
  26. package/dist/base/config/identity-loader.d.ts +1 -1
  27. package/dist/base/config/identity-loader.d.ts.map +1 -1
  28. package/dist/base/config/identity-loader.js +3 -6
  29. package/dist/base/config/identity-loader.js.map +1 -1
  30. package/dist/base/config/tool-metadata.js +39 -39
  31. package/dist/base/config/tool-metadata.js.map +1 -1
  32. package/dist/base/llm/anthropic-runtime.d.ts +3 -0
  33. package/dist/base/llm/anthropic-runtime.d.ts.map +1 -0
  34. package/dist/base/llm/anthropic-runtime.js +4 -0
  35. package/dist/base/llm/anthropic-runtime.js.map +1 -0
  36. package/dist/base/llm/base-llm-client.d.ts.map +1 -1
  37. package/dist/base/llm/base-llm-client.js +15 -3
  38. package/dist/base/llm/base-llm-client.js.map +1 -1
  39. package/dist/base/llm/codex-llm-client.d.ts +13 -2
  40. package/dist/base/llm/codex-llm-client.d.ts.map +1 -1
  41. package/dist/base/llm/codex-llm-client.js +435 -38
  42. package/dist/base/llm/codex-llm-client.js.map +1 -1
  43. package/dist/base/llm/llm-client.d.ts +27 -4
  44. package/dist/base/llm/llm-client.d.ts.map +1 -1
  45. package/dist/base/llm/llm-client.js +43 -10
  46. package/dist/base/llm/llm-client.js.map +1 -1
  47. package/dist/base/llm/ollama-client.d.ts.map +1 -1
  48. package/dist/base/llm/ollama-client.js +6 -1
  49. package/dist/base/llm/ollama-client.js.map +1 -1
  50. package/dist/base/llm/openai-client.d.ts +1 -0
  51. package/dist/base/llm/openai-client.d.ts.map +1 -1
  52. package/dist/base/llm/openai-client.js +239 -20
  53. package/dist/base/llm/openai-client.js.map +1 -1
  54. package/dist/base/llm/provider-config-models.d.ts +13 -0
  55. package/dist/base/llm/provider-config-models.d.ts.map +1 -0
  56. package/dist/base/llm/provider-config-models.js +37 -0
  57. package/dist/base/llm/provider-config-models.js.map +1 -0
  58. package/dist/base/llm/provider-config-resolution.d.ts +18 -0
  59. package/dist/base/llm/provider-config-resolution.d.ts.map +1 -0
  60. package/dist/base/llm/provider-config-resolution.js +116 -0
  61. package/dist/base/llm/provider-config-resolution.js.map +1 -0
  62. package/dist/base/llm/provider-config-types.d.ts +103 -0
  63. package/dist/base/llm/provider-config-types.d.ts.map +1 -0
  64. package/dist/base/llm/provider-config-types.js +2 -0
  65. package/dist/base/llm/provider-config-types.js.map +1 -0
  66. package/dist/base/llm/provider-config.d.ts +3 -111
  67. package/dist/base/llm/provider-config.d.ts.map +1 -1
  68. package/dist/base/llm/provider-config.js +22 -160
  69. package/dist/base/llm/provider-config.js.map +1 -1
  70. package/dist/base/llm/provider-factory.d.ts +10 -0
  71. package/dist/base/llm/provider-factory.d.ts.map +1 -1
  72. package/dist/base/llm/provider-factory.js +26 -1
  73. package/dist/base/llm/provider-factory.js.map +1 -1
  74. package/dist/base/state/legacy-archived-goal-recovery.d.ts +8 -0
  75. package/dist/base/state/legacy-archived-goal-recovery.d.ts.map +1 -0
  76. package/dist/base/state/legacy-archived-goal-recovery.js +29 -0
  77. package/dist/base/state/legacy-archived-goal-recovery.js.map +1 -0
  78. package/dist/base/state/legacy-state-manager-wal-recovery.d.ts +13 -0
  79. package/dist/base/state/legacy-state-manager-wal-recovery.d.ts.map +1 -0
  80. package/dist/base/state/legacy-state-manager-wal-recovery.js +102 -0
  81. package/dist/base/state/legacy-state-manager-wal-recovery.js.map +1 -0
  82. package/dist/base/state/{state-wal.d.ts → legacy-state-wal.d.ts} +7 -1
  83. package/dist/base/state/legacy-state-wal.d.ts.map +1 -0
  84. package/dist/base/state/{state-wal.js → legacy-state-wal.js} +50 -2
  85. package/dist/base/state/legacy-state-wal.js.map +1 -0
  86. package/dist/base/state/state-manager.d.ts +73 -44
  87. package/dist/base/state/state-manager.d.ts.map +1 -1
  88. package/dist/base/state/state-manager.js +492 -265
  89. package/dist/base/state/state-manager.js.map +1 -1
  90. package/dist/base/state/state-snapshot.d.ts.map +1 -1
  91. package/dist/base/state/state-snapshot.js +16 -3
  92. package/dist/base/state/state-snapshot.js.map +1 -1
  93. package/dist/base/types/time-horizon.d.ts +1 -0
  94. package/dist/base/types/time-horizon.d.ts.map +1 -1
  95. package/dist/base/types/time-horizon.js +20 -19
  96. package/dist/base/types/time-horizon.js.map +1 -1
  97. package/dist/base/utils/abort-reason.d.ts +11 -0
  98. package/dist/base/utils/abort-reason.d.ts.map +1 -0
  99. package/dist/base/utils/abort-reason.js +17 -0
  100. package/dist/base/utils/abort-reason.js.map +1 -0
  101. package/dist/base/utils/event-spool.d.ts +26 -0
  102. package/dist/base/utils/event-spool.d.ts.map +1 -0
  103. package/dist/base/utils/event-spool.js +149 -0
  104. package/dist/base/utils/event-spool.js.map +1 -0
  105. package/dist/base/utils/execFileNoThrow.d.ts.map +1 -1
  106. package/dist/base/utils/execFileNoThrow.js +21 -3
  107. package/dist/base/utils/execFileNoThrow.js.map +1 -1
  108. package/dist/base/utils/json-io.d.ts +25 -1
  109. package/dist/base/utils/json-io.d.ts.map +1 -1
  110. package/dist/base/utils/json-io.js +144 -3
  111. package/dist/base/utils/json-io.js.map +1 -1
  112. package/dist/base/utils/package-metadata.d.ts +10 -0
  113. package/dist/base/utils/package-metadata.d.ts.map +1 -0
  114. package/dist/base/utils/package-metadata.js +40 -0
  115. package/dist/base/utils/package-metadata.js.map +1 -0
  116. package/dist/base/utils/paths.d.ts +7 -0
  117. package/dist/base/utils/paths.d.ts.map +1 -1
  118. package/dist/base/utils/paths.js +13 -0
  119. package/dist/base/utils/paths.js.map +1 -1
  120. package/dist/base/utils/process-pid.d.ts +15 -0
  121. package/dist/base/utils/process-pid.d.ts.map +1 -0
  122. package/dist/base/utils/process-pid.js +45 -0
  123. package/dist/base/utils/process-pid.js.map +1 -0
  124. package/dist/base/utils/usage-counter.d.ts +14 -0
  125. package/dist/base/utils/usage-counter.d.ts.map +1 -0
  126. package/dist/base/utils/usage-counter.js +50 -0
  127. package/dist/base/utils/usage-counter.js.map +1 -0
  128. package/dist/base/utils/workspace-root.d.ts +6 -0
  129. package/dist/base/utils/workspace-root.d.ts.map +1 -0
  130. package/dist/base/utils/workspace-root.js +87 -0
  131. package/dist/base/utils/workspace-root.js.map +1 -0
  132. package/dist/grounding/contracts.d.ts +2 -0
  133. package/dist/grounding/contracts.d.ts.map +1 -1
  134. package/dist/grounding/profile-surface.d.ts +30 -0
  135. package/dist/grounding/profile-surface.d.ts.map +1 -0
  136. package/dist/grounding/profile-surface.js +257 -0
  137. package/dist/grounding/profile-surface.js.map +1 -0
  138. package/dist/grounding/providers/helpers.d.ts +6 -1
  139. package/dist/grounding/providers/helpers.d.ts.map +1 -1
  140. package/dist/grounding/providers/helpers.js +11 -3
  141. package/dist/grounding/providers/helpers.js.map +1 -1
  142. package/dist/grounding/providers/knowledge-provider.d.ts.map +1 -1
  143. package/dist/grounding/providers/knowledge-provider.js +22 -5
  144. package/dist/grounding/providers/knowledge-provider.js.map +1 -1
  145. package/dist/grounding/providers/session-history-provider.d.ts.map +1 -1
  146. package/dist/grounding/providers/session-history-provider.js +12 -22
  147. package/dist/grounding/providers/session-history-provider.js.map +1 -1
  148. package/dist/grounding/providers/soil-provider.d.ts.map +1 -1
  149. package/dist/grounding/providers/soil-provider.js +65 -10
  150. package/dist/grounding/providers/soil-provider.js.map +1 -1
  151. package/dist/grounding/providers/task-state-provider.d.ts.map +1 -1
  152. package/dist/grounding/providers/task-state-provider.js +7 -27
  153. package/dist/grounding/providers/task-state-provider.js.map +1 -1
  154. package/dist/grounding/providers/trust-state-provider.d.ts.map +1 -1
  155. package/dist/grounding/providers/trust-state-provider.js +5 -4
  156. package/dist/grounding/providers/trust-state-provider.js.map +1 -1
  157. package/dist/grounding/surface-contract-source-helpers.d.ts +37 -0
  158. package/dist/grounding/surface-contract-source-helpers.d.ts.map +1 -0
  159. package/dist/grounding/surface-contract-source-helpers.js +58 -0
  160. package/dist/grounding/surface-contract-source-helpers.js.map +1 -0
  161. package/dist/grounding/surface-contracts.d.ts +19531 -0
  162. package/dist/grounding/surface-contracts.d.ts.map +1 -0
  163. package/dist/grounding/surface-contracts.js +1352 -0
  164. package/dist/grounding/surface-contracts.js.map +1 -0
  165. package/dist/index.d.ts +17 -7
  166. package/dist/index.d.ts.map +1 -1
  167. package/dist/index.js +9 -4
  168. package/dist/index.js.map +1 -1
  169. package/dist/interface/chat/chat-agentloop-state-migration.d.ts +14 -0
  170. package/dist/interface/chat/chat-agentloop-state-migration.d.ts.map +1 -0
  171. package/dist/interface/chat/chat-agentloop-state-migration.js +252 -0
  172. package/dist/interface/chat/chat-agentloop-state-migration.js.map +1 -0
  173. package/dist/interface/chat/chat-command-args.d.ts +47 -0
  174. package/dist/interface/chat/chat-command-args.d.ts.map +1 -0
  175. package/dist/interface/chat/chat-command-args.js +134 -0
  176. package/dist/interface/chat/chat-command-args.js.map +1 -0
  177. package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
  178. package/dist/interface/chat/chat-event-state.js +17 -0
  179. package/dist/interface/chat/chat-event-state.js.map +1 -1
  180. package/dist/interface/chat/chat-events.d.ts +23 -11
  181. package/dist/interface/chat/chat-events.d.ts.map +1 -1
  182. package/dist/interface/chat/chat-history.d.ts +18 -8969
  183. package/dist/interface/chat/chat-history.d.ts.map +1 -1
  184. package/dist/interface/chat/chat-history.js +67 -182
  185. package/dist/interface/chat/chat-history.js.map +1 -1
  186. package/dist/interface/chat/chat-runner-command-helpers.d.ts +4 -8
  187. package/dist/interface/chat/chat-runner-command-helpers.d.ts.map +1 -1
  188. package/dist/interface/chat/chat-runner-command-helpers.js +25 -50
  189. package/dist/interface/chat/chat-runner-command-helpers.js.map +1 -1
  190. package/dist/interface/chat/chat-runner-commands.d.ts +2 -7
  191. package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
  192. package/dist/interface/chat/chat-runner-commands.js +112 -197
  193. package/dist/interface/chat/chat-runner-commands.js.map +1 -1
  194. package/dist/interface/chat/chat-runner-contracts.d.ts +34 -3
  195. package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -1
  196. package/dist/interface/chat/chat-runner-event-bridge.d.ts +35 -21
  197. package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
  198. package/dist/interface/chat/chat-runner-event-bridge.js +406 -71
  199. package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
  200. package/dist/interface/chat/chat-runner-guardrail-status.d.ts +12 -0
  201. package/dist/interface/chat/chat-runner-guardrail-status.d.ts.map +1 -0
  202. package/dist/interface/chat/chat-runner-guardrail-status.js +173 -0
  203. package/dist/interface/chat/chat-runner-guardrail-status.js.map +1 -0
  204. package/dist/interface/chat/chat-runner-routes.d.ts +34 -88
  205. package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
  206. package/dist/interface/chat/chat-runner-routes.js +815 -426
  207. package/dist/interface/chat/chat-runner-routes.js.map +1 -1
  208. package/dist/interface/chat/chat-runner-runtime.d.ts +9 -4
  209. package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
  210. package/dist/interface/chat/chat-runner-runtime.js +47 -17
  211. package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
  212. package/dist/interface/chat/chat-runner-setup-format.d.ts +11 -0
  213. package/dist/interface/chat/chat-runner-setup-format.d.ts.map +1 -0
  214. package/dist/interface/chat/chat-runner-setup-format.js +28 -0
  215. package/dist/interface/chat/chat-runner-setup-format.js.map +1 -0
  216. package/dist/interface/chat/chat-runner-state.d.ts +2 -6
  217. package/dist/interface/chat/chat-runner-state.d.ts.map +1 -1
  218. package/dist/interface/chat/chat-runner-state.js +22 -128
  219. package/dist/interface/chat/chat-runner-state.js.map +1 -1
  220. package/dist/interface/chat/chat-runner-support.d.ts +2 -2
  221. package/dist/interface/chat/chat-runner.d.ts +36 -1
  222. package/dist/interface/chat/chat-runner.d.ts.map +1 -1
  223. package/dist/interface/chat/chat-runner.js +449 -188
  224. package/dist/interface/chat/chat-runner.js.map +1 -1
  225. package/dist/interface/chat/chat-session-contracts.d.ts +8872 -0
  226. package/dist/interface/chat/chat-session-contracts.d.ts.map +1 -0
  227. package/dist/interface/chat/chat-session-contracts.js +143 -0
  228. package/dist/interface/chat/chat-session-contracts.js.map +1 -0
  229. package/dist/interface/chat/chat-session-data-store.d.ts +26 -0
  230. package/dist/interface/chat/chat-session-data-store.d.ts.map +1 -0
  231. package/dist/interface/chat/chat-session-data-store.js +227 -0
  232. package/dist/interface/chat/chat-session-data-store.js.map +1 -0
  233. package/dist/interface/chat/chat-session-store.d.ts +8 -3
  234. package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
  235. package/dist/interface/chat/chat-session-store.js +111 -246
  236. package/dist/interface/chat/chat-session-store.js.map +1 -1
  237. package/dist/interface/chat/chat-state-base-dir.d.ts +3 -0
  238. package/dist/interface/chat/chat-state-base-dir.d.ts.map +1 -0
  239. package/dist/interface/chat/chat-state-base-dir.js +17 -0
  240. package/dist/interface/chat/chat-state-base-dir.js.map +1 -0
  241. package/dist/interface/chat/chat-state-service.d.ts.map +1 -1
  242. package/dist/interface/chat/chat-state-service.js +2 -3
  243. package/dist/interface/chat/chat-state-service.js.map +1 -1
  244. package/dist/interface/chat/chat-usage-contracts.d.ts +102 -0
  245. package/dist/interface/chat/chat-usage-contracts.d.ts.map +1 -0
  246. package/dist/interface/chat/chat-usage-contracts.js +17 -0
  247. package/dist/interface/chat/chat-usage-contracts.js.map +1 -0
  248. package/dist/interface/chat/chat-usage.d.ts +12 -0
  249. package/dist/interface/chat/chat-usage.d.ts.map +1 -0
  250. package/dist/interface/chat/chat-usage.js +38 -0
  251. package/dist/interface/chat/chat-usage.js.map +1 -0
  252. package/dist/interface/chat/cross-platform-session-normalization.d.ts +50 -0
  253. package/dist/interface/chat/cross-platform-session-normalization.d.ts.map +1 -0
  254. package/dist/interface/chat/cross-platform-session-normalization.js +134 -0
  255. package/dist/interface/chat/cross-platform-session-normalization.js.map +1 -0
  256. package/dist/interface/chat/cross-platform-session-types.d.ts +105 -0
  257. package/dist/interface/chat/cross-platform-session-types.d.ts.map +1 -0
  258. package/dist/interface/chat/cross-platform-session-types.js +2 -0
  259. package/dist/interface/chat/cross-platform-session-types.js.map +1 -0
  260. package/dist/interface/chat/cross-platform-session.d.ts +12 -101
  261. package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
  262. package/dist/interface/chat/cross-platform-session.js +410 -220
  263. package/dist/interface/chat/cross-platform-session.js.map +1 -1
  264. package/dist/interface/chat/event-subscriber.d.ts.map +1 -1
  265. package/dist/interface/chat/event-subscriber.js +3 -2
  266. package/dist/interface/chat/event-subscriber.js.map +1 -1
  267. package/dist/interface/chat/failure-recovery.d.ts +5 -5
  268. package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
  269. package/dist/interface/chat/failure-recovery.js +23 -18
  270. package/dist/interface/chat/failure-recovery.js.map +1 -1
  271. package/dist/interface/chat/feedback-ingestion.d.ts +17 -0
  272. package/dist/interface/chat/feedback-ingestion.d.ts.map +1 -0
  273. package/dist/interface/chat/feedback-ingestion.js +140 -0
  274. package/dist/interface/chat/feedback-ingestion.js.map +1 -0
  275. package/dist/interface/chat/gateway-progress.d.ts +17 -0
  276. package/dist/interface/chat/gateway-progress.d.ts.map +1 -0
  277. package/dist/interface/chat/gateway-progress.js +2 -0
  278. package/dist/interface/chat/gateway-progress.js.map +1 -0
  279. package/dist/interface/chat/grounding.d.ts.map +1 -1
  280. package/dist/interface/chat/grounding.js +2 -0
  281. package/dist/interface/chat/grounding.js.map +1 -1
  282. package/dist/interface/chat/ingress-router.d.ts +11 -63
  283. package/dist/interface/chat/ingress-router.d.ts.map +1 -1
  284. package/dist/interface/chat/ingress-router.js +90 -142
  285. package/dist/interface/chat/ingress-router.js.map +1 -1
  286. package/dist/interface/chat/ingress-types.d.ts +52 -0
  287. package/dist/interface/chat/ingress-types.d.ts.map +1 -0
  288. package/dist/interface/chat/ingress-types.js +2 -0
  289. package/dist/interface/chat/ingress-types.js.map +1 -0
  290. package/dist/interface/chat/operation-progress.d.ts +2 -0
  291. package/dist/interface/chat/operation-progress.d.ts.map +1 -1
  292. package/dist/interface/chat/operation-progress.js +1 -0
  293. package/dist/interface/chat/operation-progress.js.map +1 -1
  294. package/dist/interface/chat/recovery-resume.d.ts +33 -0
  295. package/dist/interface/chat/recovery-resume.d.ts.map +1 -0
  296. package/dist/interface/chat/recovery-resume.js +92 -0
  297. package/dist/interface/chat/recovery-resume.js.map +1 -0
  298. package/dist/interface/chat/resume-choice.d.ts +2 -0
  299. package/dist/interface/chat/resume-choice.d.ts.map +1 -0
  300. package/dist/interface/chat/resume-choice.js +10 -0
  301. package/dist/interface/chat/resume-choice.js.map +1 -0
  302. package/dist/interface/chat/runtime-evidence-gate.d.ts +17 -0
  303. package/dist/interface/chat/runtime-evidence-gate.d.ts.map +1 -0
  304. package/dist/interface/chat/runtime-evidence-gate.js +171 -0
  305. package/dist/interface/chat/runtime-evidence-gate.js.map +1 -0
  306. package/dist/interface/chat/seedy-presence-text.d.ts +7 -0
  307. package/dist/interface/chat/seedy-presence-text.d.ts.map +1 -0
  308. package/dist/interface/chat/seedy-presence-text.js +78 -0
  309. package/dist/interface/chat/seedy-presence-text.js.map +1 -0
  310. package/dist/interface/chat/seedy-presence-view-model.d.ts +15 -0
  311. package/dist/interface/chat/seedy-presence-view-model.d.ts.map +1 -0
  312. package/dist/interface/chat/seedy-presence-view-model.js +90 -0
  313. package/dist/interface/chat/seedy-presence-view-model.js.map +1 -0
  314. package/dist/interface/chat/seedy-turn-presence.d.ts +103 -0
  315. package/dist/interface/chat/seedy-turn-presence.d.ts.map +1 -0
  316. package/dist/interface/chat/seedy-turn-presence.js +195 -0
  317. package/dist/interface/chat/seedy-turn-presence.js.map +1 -0
  318. package/dist/interface/chat/setup-config-write.js +1 -1
  319. package/dist/interface/chat/setup-config-write.js.map +1 -1
  320. package/dist/interface/chat/telegram-setup-guidance.d.ts +55 -0
  321. package/dist/interface/chat/telegram-setup-guidance.d.ts.map +1 -0
  322. package/dist/interface/chat/telegram-setup-guidance.js +105 -0
  323. package/dist/interface/chat/telegram-setup-guidance.js.map +1 -0
  324. package/dist/interface/chat/tend-command.d.ts +1 -0
  325. package/dist/interface/chat/tend-command.d.ts.map +1 -1
  326. package/dist/interface/chat/tend-command.js +67 -15
  327. package/dist/interface/chat/tend-command.js.map +1 -1
  328. package/dist/interface/chat/turn-context.d.ts +2 -0
  329. package/dist/interface/chat/turn-context.d.ts.map +1 -1
  330. package/dist/interface/chat/turn-context.js +2 -0
  331. package/dist/interface/chat/turn-context.js.map +1 -1
  332. package/dist/interface/chat/turn-language.d.ts +0 -1
  333. package/dist/interface/chat/turn-language.d.ts.map +1 -1
  334. package/dist/interface/chat/turn-language.js +0 -3
  335. package/dist/interface/chat/turn-language.js.map +1 -1
  336. package/dist/interface/chat/turn-protocol.d.ts +1 -2
  337. package/dist/interface/chat/turn-protocol.d.ts.map +1 -1
  338. package/dist/interface/chat/turn-protocol.js.map +1 -1
  339. package/dist/interface/chat/turn-state.d.ts +22 -0
  340. package/dist/interface/chat/turn-state.d.ts.map +1 -0
  341. package/dist/interface/chat/turn-state.js +2 -0
  342. package/dist/interface/chat/turn-state.js.map +1 -0
  343. package/dist/interface/cli/cli-command-registry.d.ts +6 -6
  344. package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
  345. package/dist/interface/cli/cli-command-registry.js +55 -50
  346. package/dist/interface/cli/cli-command-registry.js.map +1 -1
  347. package/dist/interface/cli/cli-runner.d.ts +2 -2
  348. package/dist/interface/cli/cli-runner.d.ts.map +1 -1
  349. package/dist/interface/cli/cli-runner.js +85 -9
  350. package/dist/interface/cli/cli-runner.js.map +1 -1
  351. package/dist/interface/cli/commands/approval.d.ts +1 -1
  352. package/dist/interface/cli/commands/approval.d.ts.map +1 -1
  353. package/dist/interface/cli/commands/approval.js +2 -33
  354. package/dist/interface/cli/commands/approval.js.map +1 -1
  355. package/dist/interface/cli/commands/config.d.ts +2 -2
  356. package/dist/interface/cli/commands/config.d.ts.map +1 -1
  357. package/dist/interface/cli/commands/config.js +85 -28
  358. package/dist/interface/cli/commands/config.js.map +1 -1
  359. package/dist/interface/cli/commands/daemon-shared.d.ts +8 -8
  360. package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
  361. package/dist/interface/cli/commands/daemon-shared.js +55 -55
  362. package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
  363. package/dist/interface/cli/commands/daemon-status-health.d.ts +16 -0
  364. package/dist/interface/cli/commands/daemon-status-health.d.ts.map +1 -0
  365. package/dist/interface/cli/commands/daemon-status-health.js +134 -0
  366. package/dist/interface/cli/commands/daemon-status-health.js.map +1 -0
  367. package/dist/interface/cli/commands/daemon.d.ts +8 -2
  368. package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
  369. package/dist/interface/cli/commands/daemon.js +203 -105
  370. package/dist/interface/cli/commands/daemon.js.map +1 -1
  371. package/dist/interface/cli/commands/display-format.d.ts +8 -0
  372. package/dist/interface/cli/commands/display-format.d.ts.map +1 -0
  373. package/dist/interface/cli/commands/display-format.js +79 -0
  374. package/dist/interface/cli/commands/display-format.js.map +1 -0
  375. package/dist/interface/cli/commands/doctor.d.ts +3 -2
  376. package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
  377. package/dist/interface/cli/commands/doctor.js +220 -109
  378. package/dist/interface/cli/commands/doctor.js.map +1 -1
  379. package/dist/interface/cli/commands/exact-number.d.ts +2 -0
  380. package/dist/interface/cli/commands/exact-number.d.ts.map +1 -0
  381. package/dist/interface/cli/commands/exact-number.js +9 -0
  382. package/dist/interface/cli/commands/exact-number.js.map +1 -0
  383. package/dist/interface/cli/commands/gateway.d.ts +1 -1
  384. package/dist/interface/cli/commands/gateway.d.ts.map +1 -1
  385. package/dist/interface/cli/commands/gateway.js +40 -1
  386. package/dist/interface/cli/commands/gateway.js.map +1 -1
  387. package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -1
  388. package/dist/interface/cli/commands/goal-dispatch.js +9 -2
  389. package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
  390. package/dist/interface/cli/commands/goal-read.d.ts +8 -2
  391. package/dist/interface/cli/commands/goal-read.d.ts.map +1 -1
  392. package/dist/interface/cli/commands/goal-read.js +143 -70
  393. package/dist/interface/cli/commands/goal-read.js.map +1 -1
  394. package/dist/interface/cli/commands/goal-utils.d.ts +5 -12
  395. package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -1
  396. package/dist/interface/cli/commands/goal-utils.js +27 -20
  397. package/dist/interface/cli/commands/goal-utils.js.map +1 -1
  398. package/dist/interface/cli/commands/goal-write.d.ts +2 -2
  399. package/dist/interface/cli/commands/goal-write.d.ts.map +1 -1
  400. package/dist/interface/cli/commands/goal-write.js +17 -7
  401. package/dist/interface/cli/commands/goal-write.js.map +1 -1
  402. package/dist/interface/cli/commands/goal.d.ts +1 -1
  403. package/dist/interface/cli/commands/goal.d.ts.map +1 -1
  404. package/dist/interface/cli/commands/goal.js +1 -1
  405. package/dist/interface/cli/commands/goal.js.map +1 -1
  406. package/dist/interface/cli/commands/install.d.ts +1 -0
  407. package/dist/interface/cli/commands/install.d.ts.map +1 -1
  408. package/dist/interface/cli/commands/install.js +20 -4
  409. package/dist/interface/cli/commands/install.js.map +1 -1
  410. package/dist/interface/cli/commands/logs.d.ts +1 -0
  411. package/dist/interface/cli/commands/logs.d.ts.map +1 -1
  412. package/dist/interface/cli/commands/logs.js +23 -4
  413. package/dist/interface/cli/commands/logs.js.map +1 -1
  414. package/dist/interface/cli/commands/notify.d.ts.map +1 -1
  415. package/dist/interface/cli/commands/notify.js +59 -15
  416. package/dist/interface/cli/commands/notify.js.map +1 -1
  417. package/dist/interface/cli/commands/operator-binding-status.d.ts +2 -0
  418. package/dist/interface/cli/commands/operator-binding-status.d.ts.map +1 -1
  419. package/dist/interface/cli/commands/operator-binding-status.js +191 -14
  420. package/dist/interface/cli/commands/operator-binding-status.js.map +1 -1
  421. package/dist/interface/cli/commands/plugin.d.ts.map +1 -1
  422. package/dist/interface/cli/commands/plugin.js +54 -40
  423. package/dist/interface/cli/commands/plugin.js.map +1 -1
  424. package/dist/interface/cli/commands/profile.d.ts.map +1 -1
  425. package/dist/interface/cli/commands/profile.js +3 -2
  426. package/dist/interface/cli/commands/profile.js.map +1 -1
  427. package/dist/interface/cli/commands/run.d.ts +5 -5
  428. package/dist/interface/cli/commands/run.d.ts.map +1 -1
  429. package/dist/interface/cli/commands/run.js +15 -26
  430. package/dist/interface/cli/commands/run.js.map +1 -1
  431. package/dist/interface/cli/commands/runtime.d.ts.map +1 -1
  432. package/dist/interface/cli/commands/runtime.js +73 -11
  433. package/dist/interface/cli/commands/runtime.js.map +1 -1
  434. package/dist/interface/cli/commands/schedule/cost.d.ts +1 -1
  435. package/dist/interface/cli/commands/schedule/cost.d.ts.map +1 -1
  436. package/dist/interface/cli/commands/schedule/cost.js +9 -22
  437. package/dist/interface/cli/commands/schedule/cost.js.map +1 -1
  438. package/dist/interface/cli/commands/schedule/history.d.ts.map +1 -1
  439. package/dist/interface/cli/commands/schedule/history.js +19 -1
  440. package/dist/interface/cli/commands/schedule/history.js.map +1 -1
  441. package/dist/interface/cli/commands/schedule/shared.d.ts.map +1 -1
  442. package/dist/interface/cli/commands/schedule/shared.js +25 -8
  443. package/dist/interface/cli/commands/schedule/shared.js.map +1 -1
  444. package/dist/interface/cli/commands/schedule.d.ts +1 -1
  445. package/dist/interface/cli/commands/schedule.d.ts.map +1 -1
  446. package/dist/interface/cli/commands/schedule.js +163 -86
  447. package/dist/interface/cli/commands/schedule.js.map +1 -1
  448. package/dist/interface/cli/commands/setup/import/apply.d.ts.map +1 -1
  449. package/dist/interface/cli/commands/setup/import/apply.js +153 -7
  450. package/dist/interface/cli/commands/setup/import/apply.js.map +1 -1
  451. package/dist/interface/cli/commands/setup/import/discovery.js +14 -15
  452. package/dist/interface/cli/commands/setup/import/discovery.js.map +1 -1
  453. package/dist/interface/cli/commands/setup/import/fs-utils.d.ts +4 -0
  454. package/dist/interface/cli/commands/setup/import/fs-utils.d.ts.map +1 -1
  455. package/dist/interface/cli/commands/setup/import/fs-utils.js +20 -2
  456. package/dist/interface/cli/commands/setup/import/fs-utils.js.map +1 -1
  457. package/dist/interface/cli/commands/setup/import/provider.d.ts.map +1 -1
  458. package/dist/interface/cli/commands/setup/import/provider.js +44 -31
  459. package/dist/interface/cli/commands/setup/import/provider.js.map +1 -1
  460. package/dist/interface/cli/commands/setup/import/telegram.d.ts.map +1 -1
  461. package/dist/interface/cli/commands/setup/import/telegram.js +4 -3
  462. package/dist/interface/cli/commands/setup/import/telegram.js.map +1 -1
  463. package/dist/interface/cli/commands/setup/import/types.d.ts +3 -0
  464. package/dist/interface/cli/commands/setup/import/types.d.ts.map +1 -1
  465. package/dist/interface/cli/commands/setup/resident-readiness.d.ts +42 -0
  466. package/dist/interface/cli/commands/setup/resident-readiness.d.ts.map +1 -0
  467. package/dist/interface/cli/commands/setup/resident-readiness.js +79 -0
  468. package/dist/interface/cli/commands/setup/resident-readiness.js.map +1 -0
  469. package/dist/interface/cli/commands/setup/steps-gateway.d.ts +10 -0
  470. package/dist/interface/cli/commands/setup/steps-gateway.d.ts.map +1 -1
  471. package/dist/interface/cli/commands/setup/steps-gateway.js +89 -44
  472. package/dist/interface/cli/commands/setup/steps-gateway.js.map +1 -1
  473. package/dist/interface/cli/commands/setup/steps-runtime.d.ts +1 -0
  474. package/dist/interface/cli/commands/setup/steps-runtime.d.ts.map +1 -1
  475. package/dist/interface/cli/commands/setup/steps-runtime.js +29 -18
  476. package/dist/interface/cli/commands/setup/steps-runtime.js.map +1 -1
  477. package/dist/interface/cli/commands/setup-wizard.d.ts +3 -33
  478. package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
  479. package/dist/interface/cli/commands/setup-wizard.js +18 -81
  480. package/dist/interface/cli/commands/setup-wizard.js.map +1 -1
  481. package/dist/interface/cli/commands/skills.d.ts.map +1 -1
  482. package/dist/interface/cli/commands/skills.js +10 -2
  483. package/dist/interface/cli/commands/skills.js.map +1 -1
  484. package/dist/interface/cli/commands/suggest-normalizer.d.ts +7 -3
  485. package/dist/interface/cli/commands/suggest-normalizer.d.ts.map +1 -1
  486. package/dist/interface/cli/commands/suggest-normalizer.js +70 -23
  487. package/dist/interface/cli/commands/suggest-normalizer.js.map +1 -1
  488. package/dist/interface/cli/commands/suggest.d.ts +1 -0
  489. package/dist/interface/cli/commands/suggest.d.ts.map +1 -1
  490. package/dist/interface/cli/commands/suggest.js +40 -10
  491. package/dist/interface/cli/commands/suggest.js.map +1 -1
  492. package/dist/interface/cli/commands/task-read.d.ts +1 -1
  493. package/dist/interface/cli/commands/task-read.d.ts.map +1 -1
  494. package/dist/interface/cli/commands/task-read.js +8 -30
  495. package/dist/interface/cli/commands/task-read.js.map +1 -1
  496. package/dist/interface/cli/commands/telegram-id-parser.d.ts +10 -0
  497. package/dist/interface/cli/commands/telegram-id-parser.d.ts.map +1 -0
  498. package/dist/interface/cli/commands/telegram-id-parser.js +26 -0
  499. package/dist/interface/cli/commands/telegram-id-parser.js.map +1 -0
  500. package/dist/interface/cli/commands/telegram.d.ts +2 -1
  501. package/dist/interface/cli/commands/telegram.d.ts.map +1 -1
  502. package/dist/interface/cli/commands/telegram.js +66 -20
  503. package/dist/interface/cli/commands/telegram.js.map +1 -1
  504. package/dist/interface/cli/commands/usage.d.ts.map +1 -1
  505. package/dist/interface/cli/commands/usage.js +17 -83
  506. package/dist/interface/cli/commands/usage.js.map +1 -1
  507. package/dist/interface/cli/data-source-bootstrap.d.ts +1 -1
  508. package/dist/interface/cli/data-source-bootstrap.d.ts.map +1 -1
  509. package/dist/interface/cli/data-source-bootstrap.js +43 -10
  510. package/dist/interface/cli/data-source-bootstrap.js.map +1 -1
  511. package/dist/interface/cli/datasource-config-file.d.ts +5 -0
  512. package/dist/interface/cli/datasource-config-file.d.ts.map +1 -0
  513. package/dist/interface/cli/datasource-config-file.js +14 -0
  514. package/dist/interface/cli/datasource-config-file.js.map +1 -0
  515. package/dist/interface/cli/ensure-api-key.d.ts.map +1 -1
  516. package/dist/interface/cli/ensure-api-key.js +5 -1
  517. package/dist/interface/cli/ensure-api-key.js.map +1 -1
  518. package/dist/interface/cli/setup.d.ts.map +1 -1
  519. package/dist/interface/cli/setup.js +13 -10
  520. package/dist/interface/cli/setup.js.map +1 -1
  521. package/dist/interface/cli/utils/loop-runner.d.ts +2 -2
  522. package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
  523. package/dist/interface/cli/utils/loop-runner.js +3 -3
  524. package/dist/interface/cli/utils/loop-runner.js.map +1 -1
  525. package/dist/interface/cli/utils.d.ts.map +1 -1
  526. package/dist/interface/cli/utils.js +5 -2
  527. package/dist/interface/cli/utils.js.map +1 -1
  528. package/dist/interface/current-goal-summary.d.ts +20 -0
  529. package/dist/interface/current-goal-summary.d.ts.map +1 -0
  530. package/dist/interface/current-goal-summary.js +197 -0
  531. package/dist/interface/current-goal-summary.js.map +1 -0
  532. package/dist/interface/goal-status-display.d.ts +7 -0
  533. package/dist/interface/goal-status-display.d.ts.map +1 -0
  534. package/dist/interface/goal-status-display.js +48 -0
  535. package/dist/interface/goal-status-display.js.map +1 -0
  536. package/dist/interface/mcp-server/tools.d.ts.map +1 -1
  537. package/dist/interface/mcp-server/tools.js +6 -29
  538. package/dist/interface/mcp-server/tools.js.map +1 -1
  539. package/dist/interface/runtime-budget-summary.d.ts +19 -0
  540. package/dist/interface/runtime-budget-summary.d.ts.map +1 -0
  541. package/dist/interface/runtime-budget-summary.js +157 -0
  542. package/dist/interface/runtime-budget-summary.js.map +1 -0
  543. package/dist/interface/tui/actions.d.ts +7 -0
  544. package/dist/interface/tui/actions.d.ts.map +1 -1
  545. package/dist/interface/tui/actions.js +91 -46
  546. package/dist/interface/tui/actions.js.map +1 -1
  547. package/dist/interface/tui/app-approval.d.ts +4 -0
  548. package/dist/interface/tui/app-approval.d.ts.map +1 -0
  549. package/dist/interface/tui/app-approval.js +53 -0
  550. package/dist/interface/tui/app-approval.js.map +1 -0
  551. package/dist/interface/tui/app-shell.d.ts +18 -0
  552. package/dist/interface/tui/app-shell.d.ts.map +1 -0
  553. package/dist/interface/tui/app-shell.js +47 -0
  554. package/dist/interface/tui/app-shell.js.map +1 -0
  555. package/dist/interface/tui/app.d.ts +4 -6
  556. package/dist/interface/tui/app.d.ts.map +1 -1
  557. package/dist/interface/tui/app.js +81 -77
  558. package/dist/interface/tui/app.js.map +1 -1
  559. package/dist/interface/tui/chat/scroll.d.ts.map +1 -1
  560. package/dist/interface/tui/chat/scroll.js +18 -8
  561. package/dist/interface/tui/chat/scroll.js.map +1 -1
  562. package/dist/interface/tui/chat/suggestions.js +19 -19
  563. package/dist/interface/tui/chat/suggestions.js.map +1 -1
  564. package/dist/interface/tui/chat.d.ts +1 -1
  565. package/dist/interface/tui/chat.d.ts.map +1 -1
  566. package/dist/interface/tui/chat.js +4 -3
  567. package/dist/interface/tui/chat.js.map +1 -1
  568. package/dist/interface/tui/dashboard.d.ts.map +1 -1
  569. package/dist/interface/tui/dashboard.js +2 -2
  570. package/dist/interface/tui/dashboard.js.map +1 -1
  571. package/dist/interface/tui/entry-daemon.d.ts.map +1 -1
  572. package/dist/interface/tui/entry-daemon.js +9 -4
  573. package/dist/interface/tui/entry-daemon.js.map +1 -1
  574. package/dist/interface/tui/entry-deps.d.ts.map +1 -1
  575. package/dist/interface/tui/entry-deps.js +12 -9
  576. package/dist/interface/tui/entry-deps.js.map +1 -1
  577. package/dist/interface/tui/flicker-overlay.d.ts.map +1 -1
  578. package/dist/interface/tui/flicker-overlay.js +5 -4
  579. package/dist/interface/tui/flicker-overlay.js.map +1 -1
  580. package/dist/interface/tui/fullscreen-chat-actions.d.ts +17 -0
  581. package/dist/interface/tui/fullscreen-chat-actions.d.ts.map +1 -0
  582. package/dist/interface/tui/fullscreen-chat-actions.js +98 -0
  583. package/dist/interface/tui/fullscreen-chat-actions.js.map +1 -0
  584. package/dist/interface/tui/fullscreen-chat-composer.d.ts +28 -0
  585. package/dist/interface/tui/fullscreen-chat-composer.d.ts.map +1 -0
  586. package/dist/interface/tui/fullscreen-chat-composer.js +385 -0
  587. package/dist/interface/tui/fullscreen-chat-composer.js.map +1 -0
  588. package/dist/interface/tui/fullscreen-chat-render-types.d.ts +68 -0
  589. package/dist/interface/tui/fullscreen-chat-render-types.d.ts.map +1 -0
  590. package/dist/interface/tui/fullscreen-chat-render-types.js +2 -0
  591. package/dist/interface/tui/fullscreen-chat-render-types.js.map +1 -0
  592. package/dist/interface/tui/fullscreen-chat-render-utils.d.ts +10 -0
  593. package/dist/interface/tui/fullscreen-chat-render-utils.d.ts.map +1 -0
  594. package/dist/interface/tui/fullscreen-chat-render-utils.js +45 -0
  595. package/dist/interface/tui/fullscreen-chat-render-utils.js.map +1 -0
  596. package/dist/interface/tui/fullscreen-chat-render.d.ts +13 -93
  597. package/dist/interface/tui/fullscreen-chat-render.d.ts.map +1 -1
  598. package/dist/interface/tui/fullscreen-chat-render.js +19 -420
  599. package/dist/interface/tui/fullscreen-chat-render.js.map +1 -1
  600. package/dist/interface/tui/fullscreen-chat.d.ts.map +1 -1
  601. package/dist/interface/tui/fullscreen-chat.js +2 -97
  602. package/dist/interface/tui/fullscreen-chat.js.map +1 -1
  603. package/dist/interface/tui/help-overlay.d.ts.map +1 -1
  604. package/dist/interface/tui/help-overlay.js +1 -1
  605. package/dist/interface/tui/help-overlay.js.map +1 -1
  606. package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
  607. package/dist/interface/tui/intent-recognizer.js +59 -3
  608. package/dist/interface/tui/intent-recognizer.js.map +1 -1
  609. package/dist/interface/tui/markdown-code-highlight.d.ts +7 -0
  610. package/dist/interface/tui/markdown-code-highlight.d.ts.map +1 -0
  611. package/dist/interface/tui/markdown-code-highlight.js +64 -0
  612. package/dist/interface/tui/markdown-code-highlight.js.map +1 -0
  613. package/dist/interface/tui/markdown-inline.d.ts +9 -0
  614. package/dist/interface/tui/markdown-inline.d.ts.map +1 -0
  615. package/dist/interface/tui/markdown-inline.js +86 -0
  616. package/dist/interface/tui/markdown-inline.js.map +1 -0
  617. package/dist/interface/tui/markdown-renderer-types.d.ts +16 -0
  618. package/dist/interface/tui/markdown-renderer-types.d.ts.map +1 -0
  619. package/dist/interface/tui/markdown-renderer-types.js +2 -0
  620. package/dist/interface/tui/markdown-renderer-types.js.map +1 -0
  621. package/dist/interface/tui/markdown-renderer.d.ts +4 -25
  622. package/dist/interface/tui/markdown-renderer.d.ts.map +1 -1
  623. package/dist/interface/tui/markdown-renderer.js +8 -164
  624. package/dist/interface/tui/markdown-renderer.js.map +1 -1
  625. package/dist/interface/tui/report-view.d.ts +2 -1
  626. package/dist/interface/tui/report-view.d.ts.map +1 -1
  627. package/dist/interface/tui/report-view.js +18 -7
  628. package/dist/interface/tui/report-view.js.map +1 -1
  629. package/dist/interface/tui/settings-overlay.js +4 -4
  630. package/dist/interface/tui/settings-overlay.js.map +1 -1
  631. package/dist/interface/tui/use-loop.d.ts +3 -3
  632. package/dist/interface/tui/use-loop.d.ts.map +1 -1
  633. package/dist/interface/tui/use-loop.js +18 -8
  634. package/dist/interface/tui/use-loop.js.map +1 -1
  635. package/dist/interface/usage-counter.d.ts +3 -0
  636. package/dist/interface/usage-counter.d.ts.map +1 -0
  637. package/dist/interface/usage-counter.js +2 -0
  638. package/dist/interface/usage-counter.js.map +1 -0
  639. package/dist/interface/usage-period.d.ts +2 -0
  640. package/dist/interface/usage-period.d.ts.map +1 -0
  641. package/dist/interface/usage-period.js +23 -0
  642. package/dist/interface/usage-period.js.map +1 -0
  643. package/dist/orchestrator/execution/adapter-layer.d.ts +8 -1
  644. package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -1
  645. package/dist/orchestrator/execution/adapter-layer.js.map +1 -1
  646. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
  647. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +19 -1
  648. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
  649. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
  650. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +1 -4
  651. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
  652. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +3 -0
  653. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
  654. package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
  655. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.d.ts.map +1 -1
  656. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js +22 -3
  657. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js.map +1 -1
  658. package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts +5 -0
  659. package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts.map +1 -1
  660. package/dist/orchestrator/execution/agent-loop/agent-loop-model.js.map +1 -1
  661. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
  662. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +1 -0
  663. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
  664. package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts +8 -0
  665. package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
  666. package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.d.ts +37 -0
  667. package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.d.ts.map +1 -0
  668. package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.js +206 -0
  669. package/dist/orchestrator/execution/agent-loop/agent-loop-session-db-store.js.map +1 -0
  670. package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.d.ts +1 -1
  671. package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.d.ts.map +1 -1
  672. package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.js +6 -12
  673. package/dist/orchestrator/execution/agent-loop/agent-loop-session-factory.js.map +1 -1
  674. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +0 -6
  675. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
  676. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +0 -21
  677. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
  678. package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.d.ts +0 -7
  679. package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.d.ts.map +1 -1
  680. package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.js +0 -20
  681. package/dist/orchestrator/execution/agent-loop/agent-loop-trace-store.js.map +1 -1
  682. package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.d.ts +17 -0
  683. package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.d.ts.map +1 -0
  684. package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.js +144 -0
  685. package/dist/orchestrator/execution/agent-loop/agent-loop-workspace-snapshot.js.map +1 -0
  686. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.d.ts.map +1 -1
  687. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js +2 -2
  688. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js.map +1 -1
  689. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +2 -9
  690. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
  691. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +86 -203
  692. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
  693. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.d.ts +11 -0
  694. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.d.ts.map +1 -0
  695. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.js +63 -0
  696. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-tool-observation.js.map +1 -0
  697. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +2 -2
  698. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
  699. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +6 -3
  700. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
  701. package/dist/orchestrator/execution/agent-loop/core-phase-runner.d.ts.map +1 -1
  702. package/dist/orchestrator/execution/agent-loop/core-phase-runner.js +16 -2
  703. package/dist/orchestrator/execution/agent-loop/core-phase-runner.js.map +1 -1
  704. package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.d.ts.map +1 -1
  705. package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.js +26 -13
  706. package/dist/orchestrator/execution/agent-loop/durable-loop-control-tools.js.map +1 -1
  707. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts.map +1 -1
  708. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js +1 -0
  709. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js.map +1 -1
  710. package/dist/orchestrator/execution/agent-loop/response-item.d.ts +58 -55
  711. package/dist/orchestrator/execution/agent-loop/response-item.d.ts.map +1 -1
  712. package/dist/orchestrator/execution/agent-loop/response-item.js.map +1 -1
  713. package/dist/orchestrator/execution/agent-loop/self-protection.d.ts.map +1 -1
  714. package/dist/orchestrator/execution/agent-loop/self-protection.js +2 -2
  715. package/dist/orchestrator/execution/agent-loop/self-protection.js.map +1 -1
  716. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts.map +1 -1
  717. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js +31 -6
  718. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js.map +1 -1
  719. package/dist/orchestrator/execution/agent-loop/task-agent-loop-factory.js +32 -11
  720. package/dist/orchestrator/execution/agent-loop/task-agent-loop-factory.js.map +1 -1
  721. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +27 -14
  722. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts.map +1 -1
  723. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +70 -8
  724. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js.map +1 -1
  725. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts +2 -0
  726. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts.map +1 -1
  727. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js +181 -0
  728. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js.map +1 -1
  729. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.d.ts.map +1 -1
  730. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js +27 -1
  731. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js.map +1 -1
  732. package/dist/orchestrator/execution/checkpoint-manager.d.ts +0 -3
  733. package/dist/orchestrator/execution/checkpoint-manager.d.ts.map +1 -1
  734. package/dist/orchestrator/execution/checkpoint-manager.js +12 -52
  735. package/dist/orchestrator/execution/checkpoint-manager.js.map +1 -1
  736. package/dist/orchestrator/execution/context/context-budget.d.ts.map +1 -1
  737. package/dist/orchestrator/execution/context/context-budget.js +36 -14
  738. package/dist/orchestrator/execution/context/context-budget.js.map +1 -1
  739. package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +1 -1
  740. package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -1
  741. package/dist/orchestrator/execution/context/issue-context-fetcher.js +11 -3
  742. package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -1
  743. package/dist/orchestrator/execution/pipeline-executor.d.ts.map +1 -1
  744. package/dist/orchestrator/execution/pipeline-executor.js +3 -5
  745. package/dist/orchestrator/execution/pipeline-executor.js.map +1 -1
  746. package/dist/orchestrator/execution/session-manager.d.ts +4 -7
  747. package/dist/orchestrator/execution/session-manager.d.ts.map +1 -1
  748. package/dist/orchestrator/execution/session-manager.js +8 -38
  749. package/dist/orchestrator/execution/session-manager.js.map +1 -1
  750. package/dist/orchestrator/execution/task/task-artifact-contract.d.ts +1 -0
  751. package/dist/orchestrator/execution/task/task-artifact-contract.d.ts.map +1 -1
  752. package/dist/orchestrator/execution/task/task-artifact-contract.js +74 -5
  753. package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -1
  754. package/dist/orchestrator/execution/task/task-diff-capture.d.ts +2 -0
  755. package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
  756. package/dist/orchestrator/execution/task/task-diff-capture.js +101 -11
  757. package/dist/orchestrator/execution/task/task-diff-capture.js.map +1 -1
  758. package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +2 -1
  759. package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
  760. package/dist/orchestrator/execution/task/task-execution-helpers.js +19 -6
  761. package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
  762. package/dist/orchestrator/execution/task/task-execution-types.d.ts +2 -0
  763. package/dist/orchestrator/execution/task/task-execution-types.d.ts.map +1 -1
  764. package/dist/orchestrator/execution/task/task-execution-types.js.map +1 -1
  765. package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -1
  766. package/dist/orchestrator/execution/task/task-executor.js +7 -6
  767. package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
  768. package/dist/orchestrator/execution/task/task-generation-schema.d.ts +210 -0
  769. package/dist/orchestrator/execution/task/task-generation-schema.d.ts.map +1 -0
  770. package/dist/orchestrator/execution/task/task-generation-schema.js +42 -0
  771. package/dist/orchestrator/execution/task/task-generation-schema.js.map +1 -0
  772. package/dist/orchestrator/execution/task/task-generation-workspace-contract.d.ts +11 -0
  773. package/dist/orchestrator/execution/task/task-generation-workspace-contract.d.ts.map +1 -0
  774. package/dist/orchestrator/execution/task/task-generation-workspace-contract.js +149 -0
  775. package/dist/orchestrator/execution/task/task-generation-workspace-contract.js.map +1 -0
  776. package/dist/orchestrator/execution/task/task-generation.d.ts +3 -198
  777. package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
  778. package/dist/orchestrator/execution/task/task-generation.js +74 -88
  779. package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
  780. package/dist/orchestrator/execution/task/task-history-metrics.d.ts +2 -0
  781. package/dist/orchestrator/execution/task/task-history-metrics.d.ts.map +1 -0
  782. package/dist/orchestrator/execution/task/task-history-metrics.js +13 -0
  783. package/dist/orchestrator/execution/task/task-history-metrics.js.map +1 -0
  784. package/dist/orchestrator/execution/task/task-lifecycle-policies.d.ts +29 -0
  785. package/dist/orchestrator/execution/task/task-lifecycle-policies.d.ts.map +1 -0
  786. package/dist/orchestrator/execution/task/task-lifecycle-policies.js +96 -0
  787. package/dist/orchestrator/execution/task/task-lifecycle-policies.js.map +1 -0
  788. package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
  789. package/dist/orchestrator/execution/task/task-lifecycle-runner.js +35 -3
  790. package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
  791. package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
  792. package/dist/orchestrator/execution/task/task-lifecycle.js +60 -52
  793. package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
  794. package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +2 -1
  795. package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
  796. package/dist/orchestrator/execution/task/task-outcome-ledger.js +11 -72
  797. package/dist/orchestrator/execution/task/task-outcome-ledger.js.map +1 -1
  798. package/dist/orchestrator/execution/task/task-post-execution.d.ts +2 -1
  799. package/dist/orchestrator/execution/task/task-post-execution.d.ts.map +1 -1
  800. package/dist/orchestrator/execution/task/task-post-execution.js +3 -3
  801. package/dist/orchestrator/execution/task/task-post-execution.js.map +1 -1
  802. package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
  803. package/dist/orchestrator/execution/task/task-prompt-builder.js +44 -22
  804. package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
  805. package/dist/orchestrator/execution/task/task-verifier-evidence.d.ts +33 -0
  806. package/dist/orchestrator/execution/task/task-verifier-evidence.d.ts.map +1 -0
  807. package/dist/orchestrator/execution/task/task-verifier-evidence.js +164 -0
  808. package/dist/orchestrator/execution/task/task-verifier-evidence.js.map +1 -0
  809. package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +1 -0
  810. package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
  811. package/dist/orchestrator/execution/task/task-verifier-rules.js +106 -51
  812. package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
  813. package/dist/orchestrator/execution/task/task-verifier-types.d.ts +2 -2
  814. package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -1
  815. package/dist/orchestrator/execution/task/task-verifier-workspace-guards.d.ts +10 -0
  816. package/dist/orchestrator/execution/task/task-verifier-workspace-guards.d.ts.map +1 -0
  817. package/dist/orchestrator/execution/task/task-verifier-workspace-guards.js +65 -0
  818. package/dist/orchestrator/execution/task/task-verifier-workspace-guards.js.map +1 -0
  819. package/dist/orchestrator/execution/task/task-verifier.d.ts +3 -2
  820. package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -1
  821. package/dist/orchestrator/execution/task/task-verifier.js +216 -212
  822. package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
  823. package/dist/orchestrator/execution/types/session.d.ts +2 -0
  824. package/dist/orchestrator/execution/types/session.d.ts.map +1 -1
  825. package/dist/orchestrator/execution/types/session.js +11 -7
  826. package/dist/orchestrator/execution/types/session.js.map +1 -1
  827. package/dist/orchestrator/execution/types/task-group.d.ts +14 -0
  828. package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
  829. package/dist/orchestrator/execution/types/task.d.ts +49 -0
  830. package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
  831. package/dist/orchestrator/execution/types/task.js +8 -0
  832. package/dist/orchestrator/execution/types/task.js.map +1 -1
  833. package/dist/orchestrator/goal/goal-dependency-graph.d.ts +7 -5
  834. package/dist/orchestrator/goal/goal-dependency-graph.d.ts.map +1 -1
  835. package/dist/orchestrator/goal/goal-dependency-graph.js +53 -18
  836. package/dist/orchestrator/goal/goal-dependency-graph.js.map +1 -1
  837. package/dist/orchestrator/goal/goal-negotiator.d.ts +5 -1
  838. package/dist/orchestrator/goal/goal-negotiator.d.ts.map +1 -1
  839. package/dist/orchestrator/goal/goal-negotiator.js +7 -6
  840. package/dist/orchestrator/goal/goal-negotiator.js.map +1 -1
  841. package/dist/orchestrator/goal/goal-refiner.d.ts.map +1 -1
  842. package/dist/orchestrator/goal/goal-refiner.js +15 -8
  843. package/dist/orchestrator/goal/goal-refiner.js.map +1 -1
  844. package/dist/orchestrator/goal/goal-suggest.d.ts +6 -2
  845. package/dist/orchestrator/goal/goal-suggest.d.ts.map +1 -1
  846. package/dist/orchestrator/goal/goal-suggest.js +19 -30
  847. package/dist/orchestrator/goal/goal-suggest.js.map +1 -1
  848. package/dist/orchestrator/goal/milestone-evaluator.d.ts.map +1 -1
  849. package/dist/orchestrator/goal/milestone-evaluator.js +65 -31
  850. package/dist/orchestrator/goal/milestone-evaluator.js.map +1 -1
  851. package/dist/orchestrator/goal/negotiator-context.d.ts.map +1 -1
  852. package/dist/orchestrator/goal/negotiator-context.js +68 -76
  853. package/dist/orchestrator/goal/negotiator-context.js.map +1 -1
  854. package/dist/orchestrator/goal/negotiator-feasibility.d.ts.map +1 -1
  855. package/dist/orchestrator/goal/negotiator-feasibility.js +2 -1
  856. package/dist/orchestrator/goal/negotiator-feasibility.js.map +1 -1
  857. package/dist/orchestrator/goal/types/dependency.d.ts +55 -0
  858. package/dist/orchestrator/goal/types/dependency.d.ts.map +1 -1
  859. package/dist/orchestrator/goal/types/dependency.js +5 -0
  860. package/dist/orchestrator/goal/types/dependency.js.map +1 -1
  861. package/dist/orchestrator/goal/types/goal-refiner.d.ts.map +1 -1
  862. package/dist/orchestrator/goal/types/goal-refiner.js +0 -1
  863. package/dist/orchestrator/goal/types/goal-refiner.js.map +1 -1
  864. package/dist/orchestrator/loop/checkpoint-manager-loop.d.ts.map +1 -1
  865. package/dist/orchestrator/loop/checkpoint-manager-loop.js +6 -9
  866. package/dist/orchestrator/loop/checkpoint-manager-loop.js.map +1 -1
  867. package/dist/orchestrator/loop/durable-loop/contracts.d.ts +2 -0
  868. package/dist/orchestrator/loop/durable-loop/contracts.d.ts.map +1 -1
  869. package/dist/orchestrator/loop/durable-loop/contracts.js.map +1 -1
  870. package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.js +1 -9
  871. package/dist/orchestrator/loop/durable-loop/dream-review-checkpoint.js.map +1 -1
  872. package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.d.ts +13 -0
  873. package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.d.ts.map +1 -0
  874. package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.js +65 -0
  875. package/dist/orchestrator/loop/durable-loop/iteration-kernel-evidence-helpers.js.map +1 -0
  876. package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.d.ts.map +1 -1
  877. package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.js +1 -2
  878. package/dist/orchestrator/loop/durable-loop/iteration-kernel-wait.js.map +1 -1
  879. package/dist/orchestrator/loop/durable-loop/iteration-kernel.d.ts.map +1 -1
  880. package/dist/orchestrator/loop/durable-loop/iteration-kernel.js +9 -65
  881. package/dist/orchestrator/loop/durable-loop/iteration-kernel.js.map +1 -1
  882. package/dist/orchestrator/loop/durable-loop/learning.js +3 -3
  883. package/dist/orchestrator/loop/durable-loop/learning.js.map +1 -1
  884. package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts +76 -66
  885. package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts.map +1 -1
  886. package/dist/orchestrator/loop/durable-loop/phase-specs.js +33 -26
  887. package/dist/orchestrator/loop/durable-loop/phase-specs.js.map +1 -1
  888. package/dist/orchestrator/loop/durable-loop/task-cycle-stall.d.ts +3 -1
  889. package/dist/orchestrator/loop/durable-loop/task-cycle-stall.d.ts.map +1 -1
  890. package/dist/orchestrator/loop/durable-loop/task-cycle-stall.js +10 -4
  891. package/dist/orchestrator/loop/durable-loop/task-cycle-stall.js.map +1 -1
  892. package/dist/orchestrator/loop/durable-loop/task-cycle-wait.js +2 -3
  893. package/dist/orchestrator/loop/durable-loop/task-cycle-wait.js.map +1 -1
  894. package/dist/orchestrator/loop/durable-loop/task-cycle.d.ts +1 -4
  895. package/dist/orchestrator/loop/durable-loop/task-cycle.d.ts.map +1 -1
  896. package/dist/orchestrator/loop/durable-loop/task-cycle.js +32 -12
  897. package/dist/orchestrator/loop/durable-loop/task-cycle.js.map +1 -1
  898. package/dist/orchestrator/loop/iteration-budget.d.ts +11 -1
  899. package/dist/orchestrator/loop/iteration-budget.d.ts.map +1 -1
  900. package/dist/orchestrator/loop/iteration-budget.js +29 -11
  901. package/dist/orchestrator/loop/iteration-budget.js.map +1 -1
  902. package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
  903. package/dist/orchestrator/loop/loop-report-helper.js +2 -0
  904. package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
  905. package/dist/orchestrator/loop/tree-loop-runner.d.ts.map +1 -1
  906. package/dist/orchestrator/loop/tree-loop-runner.js +18 -8
  907. package/dist/orchestrator/loop/tree-loop-runner.js.map +1 -1
  908. package/dist/orchestrator/strategy/cross-goal-portfolio.d.ts.map +1 -1
  909. package/dist/orchestrator/strategy/cross-goal-portfolio.js +7 -5
  910. package/dist/orchestrator/strategy/cross-goal-portfolio.js.map +1 -1
  911. package/dist/orchestrator/strategy/portfolio-manager.d.ts +7 -1
  912. package/dist/orchestrator/strategy/portfolio-manager.d.ts.map +1 -1
  913. package/dist/orchestrator/strategy/portfolio-manager.js +8 -6
  914. package/dist/orchestrator/strategy/portfolio-manager.js.map +1 -1
  915. package/dist/orchestrator/strategy/portfolio-rebalance.d.ts +6 -5
  916. package/dist/orchestrator/strategy/portfolio-rebalance.d.ts.map +1 -1
  917. package/dist/orchestrator/strategy/portfolio-rebalance.js +28 -398
  918. package/dist/orchestrator/strategy/portfolio-rebalance.js.map +1 -1
  919. package/dist/orchestrator/strategy/portfolio-wait-observation.d.ts +18 -0
  920. package/dist/orchestrator/strategy/portfolio-wait-observation.d.ts.map +1 -0
  921. package/dist/orchestrator/strategy/portfolio-wait-observation.js +377 -0
  922. package/dist/orchestrator/strategy/portfolio-wait-observation.js.map +1 -0
  923. package/dist/orchestrator/strategy/strategy-helpers.d.ts +3 -2
  924. package/dist/orchestrator/strategy/strategy-helpers.d.ts.map +1 -1
  925. package/dist/orchestrator/strategy/strategy-helpers.js +5 -17
  926. package/dist/orchestrator/strategy/strategy-helpers.js.map +1 -1
  927. package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
  928. package/dist/orchestrator/strategy/strategy-manager-base.js +5 -10
  929. package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -1
  930. package/dist/orchestrator/strategy/strategy-manager.d.ts +1 -3
  931. package/dist/orchestrator/strategy/strategy-manager.d.ts.map +1 -1
  932. package/dist/orchestrator/strategy/strategy-manager.js +23 -44
  933. package/dist/orchestrator/strategy/strategy-manager.js.map +1 -1
  934. package/dist/orchestrator/strategy/strategy-template-registry.d.ts +5 -6
  935. package/dist/orchestrator/strategy/strategy-template-registry.d.ts.map +1 -1
  936. package/dist/orchestrator/strategy/strategy-template-registry.js +10 -25
  937. package/dist/orchestrator/strategy/strategy-template-registry.js.map +1 -1
  938. package/dist/orchestrator/strategy/strategy-template-state-migration.d.ts +14 -0
  939. package/dist/orchestrator/strategy/strategy-template-state-migration.d.ts.map +1 -0
  940. package/dist/orchestrator/strategy/strategy-template-state-migration.js +136 -0
  941. package/dist/orchestrator/strategy/strategy-template-state-migration.js.map +1 -0
  942. package/dist/orchestrator/strategy/strategy-template-state-store.d.ts +16 -0
  943. package/dist/orchestrator/strategy/strategy-template-state-store.d.ts.map +1 -0
  944. package/dist/orchestrator/strategy/strategy-template-state-store.js +84 -0
  945. package/dist/orchestrator/strategy/strategy-template-state-store.js.map +1 -0
  946. package/dist/orchestrator/strategy/strategy-workspace.d.ts.map +1 -1
  947. package/dist/orchestrator/strategy/strategy-workspace.js +6 -19
  948. package/dist/orchestrator/strategy/strategy-workspace.js.map +1 -1
  949. package/dist/orchestrator/strategy/types/cross-portfolio.d.ts +7 -6
  950. package/dist/orchestrator/strategy/types/cross-portfolio.d.ts.map +1 -1
  951. package/dist/orchestrator/strategy/types/cross-portfolio.js +2 -1
  952. package/dist/orchestrator/strategy/types/cross-portfolio.js.map +1 -1
  953. package/dist/orchestrator/strategy/types/portfolio.d.ts +1 -0
  954. package/dist/orchestrator/strategy/types/portfolio.d.ts.map +1 -1
  955. package/dist/orchestrator/strategy/types/portfolio.js +2 -1
  956. package/dist/orchestrator/strategy/types/portfolio.js.map +1 -1
  957. package/dist/orchestrator/strategy/types/strategy.d.ts +8 -3
  958. package/dist/orchestrator/strategy/types/strategy.d.ts.map +1 -1
  959. package/dist/orchestrator/strategy/types/strategy.js +25 -17
  960. package/dist/orchestrator/strategy/types/strategy.js.map +1 -1
  961. package/dist/platform/code-search/candidate-normalizer.d.ts.map +1 -1
  962. package/dist/platform/code-search/candidate-normalizer.js +4 -2
  963. package/dist/platform/code-search/candidate-normalizer.js.map +1 -1
  964. package/dist/platform/code-search/candidate.d.ts.map +1 -1
  965. package/dist/platform/code-search/candidate.js +5 -0
  966. package/dist/platform/code-search/candidate.js.map +1 -1
  967. package/dist/platform/code-search/contracts.d.ts +8 -0
  968. package/dist/platform/code-search/contracts.d.ts.map +1 -1
  969. package/dist/platform/code-search/contracts.js.map +1 -1
  970. package/dist/platform/code-search/indexes/file-index.d.ts.map +1 -1
  971. package/dist/platform/code-search/indexes/file-index.js +4 -0
  972. package/dist/platform/code-search/indexes/file-index.js.map +1 -1
  973. package/dist/platform/code-search/indexes/package-graph.d.ts.map +1 -1
  974. package/dist/platform/code-search/indexes/package-graph.js +5 -2
  975. package/dist/platform/code-search/indexes/package-graph.js.map +1 -1
  976. package/dist/platform/code-search/parse-position.d.ts +2 -0
  977. package/dist/platform/code-search/parse-position.d.ts.map +1 -0
  978. package/dist/platform/code-search/parse-position.js +10 -0
  979. package/dist/platform/code-search/parse-position.js.map +1 -0
  980. package/dist/platform/code-search/progressive-reader.d.ts.map +1 -1
  981. package/dist/platform/code-search/progressive-reader.js +58 -13
  982. package/dist/platform/code-search/progressive-reader.js.map +1 -1
  983. package/dist/platform/code-search/query-planner.d.ts.map +1 -1
  984. package/dist/platform/code-search/query-planner.js +4 -3
  985. package/dist/platform/code-search/query-planner.js.map +1 -1
  986. package/dist/platform/code-search/verification-retrieval.d.ts.map +1 -1
  987. package/dist/platform/code-search/verification-retrieval.js +2 -1
  988. package/dist/platform/code-search/verification-retrieval.js.map +1 -1
  989. package/dist/platform/corrections/cognition-memory-review.d.ts +233 -0
  990. package/dist/platform/corrections/cognition-memory-review.d.ts.map +1 -0
  991. package/dist/platform/corrections/cognition-memory-review.js +93 -0
  992. package/dist/platform/corrections/cognition-memory-review.js.map +1 -0
  993. package/dist/platform/corrections/index.d.ts +2 -0
  994. package/dist/platform/corrections/index.d.ts.map +1 -1
  995. package/dist/platform/corrections/index.js +2 -0
  996. package/dist/platform/corrections/index.js.map +1 -1
  997. package/dist/platform/corrections/memory-correction-ledger.d.ts +60 -60
  998. package/dist/platform/corrections/memory-governance.d.ts +6 -6
  999. package/dist/platform/corrections/memory-quarantine.d.ts +3 -3
  1000. package/dist/platform/corrections/user-memory-operations.js +4 -4
  1001. package/dist/platform/corrections/user-memory-operations.js.map +1 -1
  1002. package/dist/platform/dream/dream-activation-artifacts.d.ts.map +1 -1
  1003. package/dist/platform/dream/dream-activation-artifacts.js +4 -16
  1004. package/dist/platform/dream/dream-activation-artifacts.js.map +1 -1
  1005. package/dist/platform/dream/dream-activation.d.ts +2 -185
  1006. package/dist/platform/dream/dream-activation.d.ts.map +1 -1
  1007. package/dist/platform/dream/dream-activation.js +10 -57
  1008. package/dist/platform/dream/dream-activation.js.map +1 -1
  1009. package/dist/platform/dream/dream-analyzer.d.ts +1 -2
  1010. package/dist/platform/dream/dream-analyzer.d.ts.map +1 -1
  1011. package/dist/platform/dream/dream-analyzer.js +21 -59
  1012. package/dist/platform/dream/dream-analyzer.js.map +1 -1
  1013. package/dist/platform/dream/dream-consolidator/evidence-helpers.d.ts +12 -0
  1014. package/dist/platform/dream/dream-consolidator/evidence-helpers.d.ts.map +1 -0
  1015. package/dist/platform/dream/dream-consolidator/evidence-helpers.js +73 -0
  1016. package/dist/platform/dream/dream-consolidator/evidence-helpers.js.map +1 -0
  1017. package/dist/platform/dream/dream-consolidator/fs-metrics.d.ts.map +1 -1
  1018. package/dist/platform/dream/dream-consolidator/fs-metrics.js +27 -38
  1019. package/dist/platform/dream/dream-consolidator/fs-metrics.js.map +1 -1
  1020. package/dist/platform/dream/dream-consolidator.d.ts +3 -0
  1021. package/dist/platform/dream/dream-consolidator.d.ts.map +1 -1
  1022. package/dist/platform/dream/dream-consolidator.js +35 -129
  1023. package/dist/platform/dream/dream-consolidator.js.map +1 -1
  1024. package/dist/platform/dream/dream-decision-heuristics.d.ts +421 -0
  1025. package/dist/platform/dream/dream-decision-heuristics.d.ts.map +1 -0
  1026. package/dist/platform/dream/dream-decision-heuristics.js +27 -0
  1027. package/dist/platform/dream/dream-decision-heuristics.js.map +1 -0
  1028. package/dist/platform/dream/dream-event-workflows.d.ts.map +1 -1
  1029. package/dist/platform/dream/dream-event-workflows.js +23 -37
  1030. package/dist/platform/dream/dream-event-workflows.js.map +1 -1
  1031. package/dist/platform/dream/dream-importance.d.ts +1 -2
  1032. package/dist/platform/dream/dream-importance.d.ts.map +1 -1
  1033. package/dist/platform/dream/dream-importance.js +6 -24
  1034. package/dist/platform/dream/dream-importance.js.map +1 -1
  1035. package/dist/platform/dream/dream-log-collector.d.ts +4 -15
  1036. package/dist/platform/dream/dream-log-collector.d.ts.map +1 -1
  1037. package/dist/platform/dream/dream-log-collector.js +12 -101
  1038. package/dist/platform/dream/dream-log-collector.js.map +1 -1
  1039. package/dist/platform/dream/dream-schedule-suggestions.d.ts +1 -2
  1040. package/dist/platform/dream/dream-schedule-suggestions.d.ts.map +1 -1
  1041. package/dist/platform/dream/dream-schedule-suggestions.js +6 -20
  1042. package/dist/platform/dream/dream-schedule-suggestions.js.map +1 -1
  1043. package/dist/platform/dream/dream-soil-sync.d.ts.map +1 -1
  1044. package/dist/platform/dream/dream-soil-sync.js +2 -6
  1045. package/dist/platform/dream/dream-soil-sync.js.map +1 -1
  1046. package/dist/platform/dream/dream-types.d.ts +269 -269
  1047. package/dist/platform/dream/dream-types.js +2 -2
  1048. package/dist/platform/dream/dream-types.js.map +1 -1
  1049. package/dist/platform/dream/index.d.ts +1 -0
  1050. package/dist/platform/dream/index.d.ts.map +1 -1
  1051. package/dist/platform/dream/index.js +1 -0
  1052. package/dist/platform/dream/index.js.map +1 -1
  1053. package/dist/platform/dream/playbook-memory.d.ts +8 -8
  1054. package/dist/platform/dream/playbook-memory.d.ts.map +1 -1
  1055. package/dist/platform/dream/playbook-memory.js +14 -75
  1056. package/dist/platform/dream/playbook-memory.js.map +1 -1
  1057. package/dist/platform/dream/procedural-memory.d.ts +262 -0
  1058. package/dist/platform/dream/procedural-memory.d.ts.map +1 -0
  1059. package/dist/platform/dream/procedural-memory.js +78 -0
  1060. package/dist/platform/dream/procedural-memory.js.map +1 -0
  1061. package/dist/platform/drive/drive-schedule-state-migration.d.ts +13 -0
  1062. package/dist/platform/drive/drive-schedule-state-migration.d.ts.map +1 -0
  1063. package/dist/platform/drive/drive-schedule-state-migration.js +115 -0
  1064. package/dist/platform/drive/drive-schedule-state-migration.js.map +1 -0
  1065. package/dist/platform/drive/drive-schedule-state-store.d.ts +15 -0
  1066. package/dist/platform/drive/drive-schedule-state-store.d.ts.map +1 -0
  1067. package/dist/platform/drive/drive-schedule-state-store.js +84 -0
  1068. package/dist/platform/drive/drive-schedule-state-store.js.map +1 -0
  1069. package/dist/platform/drive/drive-scorer.d.ts +6 -6
  1070. package/dist/platform/drive/drive-scorer.d.ts.map +1 -1
  1071. package/dist/platform/drive/drive-scorer.js +44 -16
  1072. package/dist/platform/drive/drive-scorer.js.map +1 -1
  1073. package/dist/platform/drive/drive-system.d.ts +10 -8
  1074. package/dist/platform/drive/drive-system.d.ts.map +1 -1
  1075. package/dist/platform/drive/drive-system.js +42 -57
  1076. package/dist/platform/drive/drive-system.js.map +1 -1
  1077. package/dist/platform/drive/gap-calculator.d.ts.map +1 -1
  1078. package/dist/platform/drive/gap-calculator.js +36 -8
  1079. package/dist/platform/drive/gap-calculator.js.map +1 -1
  1080. package/dist/platform/drive/satisficing-helpers.d.ts.map +1 -1
  1081. package/dist/platform/drive/satisficing-helpers.js +14 -10
  1082. package/dist/platform/drive/satisficing-helpers.js.map +1 -1
  1083. package/dist/platform/drive/satisficing-judge.d.ts.map +1 -1
  1084. package/dist/platform/drive/satisficing-judge.js +16 -10
  1085. package/dist/platform/drive/satisficing-judge.js.map +1 -1
  1086. package/dist/platform/drive/satisficing-propagation.d.ts.map +1 -1
  1087. package/dist/platform/drive/satisficing-propagation.js +20 -16
  1088. package/dist/platform/drive/satisficing-propagation.js.map +1 -1
  1089. package/dist/platform/drive/stall-detector/repetitive.d.ts +28 -1
  1090. package/dist/platform/drive/stall-detector/repetitive.d.ts.map +1 -1
  1091. package/dist/platform/drive/stall-detector/repetitive.js.map +1 -1
  1092. package/dist/platform/drive/stall-detector/thresholds.d.ts.map +1 -1
  1093. package/dist/platform/drive/stall-detector/thresholds.js +2 -1
  1094. package/dist/platform/drive/stall-detector/thresholds.js.map +1 -1
  1095. package/dist/platform/drive/stall-detector.d.ts +7 -32
  1096. package/dist/platform/drive/stall-detector.d.ts.map +1 -1
  1097. package/dist/platform/drive/stall-detector.js +16 -13
  1098. package/dist/platform/drive/stall-detector.js.map +1 -1
  1099. package/dist/platform/drive/types/drive.d.ts +4 -0
  1100. package/dist/platform/drive/types/drive.d.ts.map +1 -1
  1101. package/dist/platform/drive/types/drive.js +26 -15
  1102. package/dist/platform/drive/types/drive.js.map +1 -1
  1103. package/dist/platform/drive/types/satisficing.js +1 -1
  1104. package/dist/platform/drive/types/satisficing.js.map +1 -1
  1105. package/dist/platform/knowledge/knowledge-graph-state-migration.d.ts +15 -0
  1106. package/dist/platform/knowledge/knowledge-graph-state-migration.d.ts.map +1 -0
  1107. package/dist/platform/knowledge/knowledge-graph-state-migration.js +137 -0
  1108. package/dist/platform/knowledge/knowledge-graph-state-migration.js.map +1 -0
  1109. package/dist/platform/knowledge/knowledge-graph-state-store.d.ts +38 -0
  1110. package/dist/platform/knowledge/knowledge-graph-state-store.d.ts.map +1 -0
  1111. package/dist/platform/knowledge/knowledge-graph-state-store.js +137 -0
  1112. package/dist/platform/knowledge/knowledge-graph-state-store.js.map +1 -0
  1113. package/dist/platform/knowledge/knowledge-graph.d.ts +17 -12
  1114. package/dist/platform/knowledge/knowledge-graph.d.ts.map +1 -1
  1115. package/dist/platform/knowledge/knowledge-graph.js +35 -44
  1116. package/dist/platform/knowledge/knowledge-graph.js.map +1 -1
  1117. package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts.map +1 -1
  1118. package/dist/platform/knowledge/knowledge-manager-agent-memory.js +18 -8
  1119. package/dist/platform/knowledge/knowledge-manager-agent-memory.js.map +1 -1
  1120. package/dist/platform/knowledge/knowledge-manager-internals.d.ts +3 -2
  1121. package/dist/platform/knowledge/knowledge-manager-internals.d.ts.map +1 -1
  1122. package/dist/platform/knowledge/knowledge-manager-internals.js +8 -7
  1123. package/dist/platform/knowledge/knowledge-manager-internals.js.map +1 -1
  1124. package/dist/platform/knowledge/knowledge-manager-query.js +2 -2
  1125. package/dist/platform/knowledge/knowledge-manager-query.js.map +1 -1
  1126. package/dist/platform/knowledge/knowledge-manager-store.js +3 -3
  1127. package/dist/platform/knowledge/knowledge-manager-store.js.map +1 -1
  1128. package/dist/platform/knowledge/knowledge-manager.d.ts +5 -6
  1129. package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
  1130. package/dist/platform/knowledge/knowledge-manager.js +53 -27
  1131. package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
  1132. package/dist/platform/knowledge/knowledge-memory-state-store.d.ts +17 -0
  1133. package/dist/platform/knowledge/knowledge-memory-state-store.d.ts.map +1 -0
  1134. package/dist/platform/knowledge/knowledge-memory-state-store.js +565 -0
  1135. package/dist/platform/knowledge/knowledge-memory-state-store.js.map +1 -0
  1136. package/dist/platform/knowledge/knowledge-search.d.ts.map +1 -1
  1137. package/dist/platform/knowledge/knowledge-search.js +4 -17
  1138. package/dist/platform/knowledge/knowledge-search.js.map +1 -1
  1139. package/dist/platform/knowledge/learning/learning-cross-goal.d.ts +2 -2
  1140. package/dist/platform/knowledge/learning/learning-cross-goal.d.ts.map +1 -1
  1141. package/dist/platform/knowledge/learning/learning-feedback.d.ts +3 -3
  1142. package/dist/platform/knowledge/learning/learning-feedback.d.ts.map +1 -1
  1143. package/dist/platform/knowledge/learning/learning-feedback.js +3 -11
  1144. package/dist/platform/knowledge/learning/learning-feedback.js.map +1 -1
  1145. package/dist/platform/knowledge/learning/learning-pipeline.d.ts +4 -5
  1146. package/dist/platform/knowledge/learning/learning-pipeline.d.ts.map +1 -1
  1147. package/dist/platform/knowledge/learning/learning-pipeline.js +16 -33
  1148. package/dist/platform/knowledge/learning/learning-pipeline.js.map +1 -1
  1149. package/dist/platform/knowledge/memory/memory-compression.d.ts.map +1 -1
  1150. package/dist/platform/knowledge/memory/memory-compression.js +19 -43
  1151. package/dist/platform/knowledge/memory/memory-compression.js.map +1 -1
  1152. package/dist/platform/knowledge/memory/memory-exports.d.ts +2 -1
  1153. package/dist/platform/knowledge/memory/memory-exports.d.ts.map +1 -1
  1154. package/dist/platform/knowledge/memory/memory-exports.js +2 -1
  1155. package/dist/platform/knowledge/memory/memory-exports.js.map +1 -1
  1156. package/dist/platform/knowledge/memory/memory-index.d.ts +1 -1
  1157. package/dist/platform/knowledge/memory/memory-index.d.ts.map +1 -1
  1158. package/dist/platform/knowledge/memory/memory-index.js +11 -115
  1159. package/dist/platform/knowledge/memory/memory-index.js.map +1 -1
  1160. package/dist/platform/knowledge/memory/memory-lifecycle-state-store.d.ts +51 -0
  1161. package/dist/platform/knowledge/memory/memory-lifecycle-state-store.d.ts.map +1 -0
  1162. package/dist/platform/knowledge/memory/memory-lifecycle-state-store.js +498 -0
  1163. package/dist/platform/knowledge/memory/memory-lifecycle-state-store.js.map +1 -0
  1164. package/dist/platform/knowledge/memory/memory-lifecycle-storage.d.ts.map +1 -1
  1165. package/dist/platform/knowledge/memory/memory-lifecycle-storage.js +13 -91
  1166. package/dist/platform/knowledge/memory/memory-lifecycle-storage.js.map +1 -1
  1167. package/dist/platform/knowledge/memory/memory-lifecycle.d.ts +7 -9
  1168. package/dist/platform/knowledge/memory/memory-lifecycle.d.ts.map +1 -1
  1169. package/dist/platform/knowledge/memory/memory-lifecycle.js +14 -24
  1170. package/dist/platform/knowledge/memory/memory-lifecycle.js.map +1 -1
  1171. package/dist/platform/knowledge/memory/memory-persistence.d.ts +1 -27
  1172. package/dist/platform/knowledge/memory/memory-persistence.d.ts.map +1 -1
  1173. package/dist/platform/knowledge/memory/memory-persistence.js +0 -122
  1174. package/dist/platform/knowledge/memory/memory-persistence.js.map +1 -1
  1175. package/dist/platform/knowledge/memory/memory-query.d.ts.map +1 -1
  1176. package/dist/platform/knowledge/memory/memory-query.js +3 -59
  1177. package/dist/platform/knowledge/memory/memory-query.js.map +1 -1
  1178. package/dist/platform/knowledge/memory/memory-selection.d.ts.map +1 -1
  1179. package/dist/platform/knowledge/memory/memory-selection.js +7 -19
  1180. package/dist/platform/knowledge/memory/memory-selection.js.map +1 -1
  1181. package/dist/platform/knowledge/memory/memory-stats.d.ts.map +1 -1
  1182. package/dist/platform/knowledge/memory/memory-stats.js +4 -5
  1183. package/dist/platform/knowledge/memory/memory-stats.js.map +1 -1
  1184. package/dist/platform/knowledge/transfer/knowledge-transfer-types.d.ts.map +1 -1
  1185. package/dist/platform/knowledge/transfer/knowledge-transfer-types.js +6 -10
  1186. package/dist/platform/knowledge/transfer/knowledge-transfer-types.js.map +1 -1
  1187. package/dist/platform/knowledge/transfer/knowledge-transfer.d.ts +3 -2
  1188. package/dist/platform/knowledge/transfer/knowledge-transfer.d.ts.map +1 -1
  1189. package/dist/platform/knowledge/transfer/knowledge-transfer.js +19 -34
  1190. package/dist/platform/knowledge/transfer/knowledge-transfer.js.map +1 -1
  1191. package/dist/platform/knowledge/transfer/transfer-trust.d.ts +6 -5
  1192. package/dist/platform/knowledge/transfer/transfer-trust.d.ts.map +1 -1
  1193. package/dist/platform/knowledge/transfer/transfer-trust.js +23 -30
  1194. package/dist/platform/knowledge/transfer/transfer-trust.js.map +1 -1
  1195. package/dist/platform/knowledge/types/agent-memory.d.ts +204 -204
  1196. package/dist/platform/knowledge/types/embedding.js +2 -2
  1197. package/dist/platform/knowledge/types/embedding.js.map +1 -1
  1198. package/dist/platform/knowledge/types/memory-lifecycle.d.ts +4 -4
  1199. package/dist/platform/knowledge/vector-index-state-migration.d.ts +14 -0
  1200. package/dist/platform/knowledge/vector-index-state-migration.d.ts.map +1 -0
  1201. package/dist/platform/knowledge/vector-index-state-migration.js +132 -0
  1202. package/dist/platform/knowledge/vector-index-state-migration.js.map +1 -0
  1203. package/dist/platform/knowledge/vector-index-state-store.d.ts +19 -0
  1204. package/dist/platform/knowledge/vector-index-state-store.d.ts.map +1 -0
  1205. package/dist/platform/knowledge/vector-index-state-store.js +124 -0
  1206. package/dist/platform/knowledge/vector-index-state-store.js.map +1 -0
  1207. package/dist/platform/knowledge/vector-index.d.ts +11 -6
  1208. package/dist/platform/knowledge/vector-index.d.ts.map +1 -1
  1209. package/dist/platform/knowledge/vector-index.js +27 -37
  1210. package/dist/platform/knowledge/vector-index.js.map +1 -1
  1211. package/dist/platform/observation/capability-dependencies.d.ts +4 -3
  1212. package/dist/platform/observation/capability-dependencies.d.ts.map +1 -1
  1213. package/dist/platform/observation/capability-dependencies.js +8 -15
  1214. package/dist/platform/observation/capability-dependencies.js.map +1 -1
  1215. package/dist/platform/observation/capability-detector.d.ts.map +1 -1
  1216. package/dist/platform/observation/capability-detector.js +8 -2
  1217. package/dist/platform/observation/capability-detector.js.map +1 -1
  1218. package/dist/platform/observation/capability-graph.d.ts +16 -0
  1219. package/dist/platform/observation/capability-graph.d.ts.map +1 -0
  1220. package/dist/platform/observation/capability-graph.js +387 -0
  1221. package/dist/platform/observation/capability-graph.js.map +1 -0
  1222. package/dist/platform/observation/capability-readiness.d.ts +13 -0
  1223. package/dist/platform/observation/capability-readiness.d.ts.map +1 -0
  1224. package/dist/platform/observation/capability-readiness.js +192 -0
  1225. package/dist/platform/observation/capability-readiness.js.map +1 -0
  1226. package/dist/platform/observation/capability-registry.d.ts +3 -3
  1227. package/dist/platform/observation/capability-registry.d.ts.map +1 -1
  1228. package/dist/platform/observation/capability-registry.js +5 -14
  1229. package/dist/platform/observation/capability-registry.js.map +1 -1
  1230. package/dist/platform/observation/data-source-adapter.js +1 -1
  1231. package/dist/platform/observation/data-source-adapter.js.map +1 -1
  1232. package/dist/platform/observation/dimension-pre-checker.d.ts.map +1 -1
  1233. package/dist/platform/observation/dimension-pre-checker.js +12 -2
  1234. package/dist/platform/observation/dimension-pre-checker.js.map +1 -1
  1235. package/dist/platform/observation/observation-apply.d.ts.map +1 -1
  1236. package/dist/platform/observation/observation-apply.js +2 -14
  1237. package/dist/platform/observation/observation-apply.js.map +1 -1
  1238. package/dist/platform/observation/observation-datasource.d.ts.map +1 -1
  1239. package/dist/platform/observation/observation-datasource.js +2 -14
  1240. package/dist/platform/observation/observation-datasource.js.map +1 -1
  1241. package/dist/platform/observation/observation-engine.js +0 -2
  1242. package/dist/platform/observation/observation-engine.js.map +1 -1
  1243. package/dist/platform/observation/observation-value.d.ts +2 -0
  1244. package/dist/platform/observation/observation-value.d.ts.map +1 -0
  1245. package/dist/platform/observation/observation-value.js +18 -0
  1246. package/dist/platform/observation/observation-value.js.map +1 -0
  1247. package/dist/platform/observation/types/capability.d.ts +689 -0
  1248. package/dist/platform/observation/types/capability.d.ts.map +1 -1
  1249. package/dist/platform/observation/types/capability.js +170 -2
  1250. package/dist/platform/observation/types/capability.js.map +1 -1
  1251. package/dist/platform/observation/types/data-source.d.ts +122 -25
  1252. package/dist/platform/observation/types/data-source.d.ts.map +1 -1
  1253. package/dist/platform/observation/types/data-source.js +17 -9
  1254. package/dist/platform/observation/types/data-source.js.map +1 -1
  1255. package/dist/platform/profile/governed-memory.d.ts +667 -0
  1256. package/dist/platform/profile/governed-memory.d.ts.map +1 -0
  1257. package/dist/platform/profile/governed-memory.js +535 -0
  1258. package/dist/platform/profile/governed-memory.js.map +1 -0
  1259. package/dist/platform/profile/profile-change-proposal.d.ts +91 -89
  1260. package/dist/platform/profile/profile-change-proposal.d.ts.map +1 -1
  1261. package/dist/platform/profile/profile-change-proposal.js +134 -19
  1262. package/dist/platform/profile/profile-change-proposal.js.map +1 -1
  1263. package/dist/platform/profile/relationship-profile.d.ts +51 -51
  1264. package/dist/platform/profile/relationship-profile.d.ts.map +1 -1
  1265. package/dist/platform/profile/relationship-profile.js +3 -2
  1266. package/dist/platform/profile/relationship-profile.js.map +1 -1
  1267. package/dist/platform/profile/retrieval-context.d.ts +16 -0
  1268. package/dist/platform/profile/retrieval-context.d.ts.map +1 -1
  1269. package/dist/platform/profile/retrieval-context.js +17 -0
  1270. package/dist/platform/profile/retrieval-context.js.map +1 -1
  1271. package/dist/platform/profile/user-md-profile-import.d.ts +6 -6
  1272. package/dist/platform/soil/compiled-memory-projections.js +6 -6
  1273. package/dist/platform/soil/compiled-memory-projections.js.map +1 -1
  1274. package/dist/platform/soil/content-projections.js +12 -12
  1275. package/dist/platform/soil/content-projections.js.map +1 -1
  1276. package/dist/platform/soil/contracts.d.ts +416 -387
  1277. package/dist/platform/soil/contracts.d.ts.map +1 -1
  1278. package/dist/platform/soil/contracts.js +23 -3
  1279. package/dist/platform/soil/contracts.js.map +1 -1
  1280. package/dist/platform/soil/doctor.d.ts +0 -1
  1281. package/dist/platform/soil/doctor.d.ts.map +1 -1
  1282. package/dist/platform/soil/doctor.js +3 -17
  1283. package/dist/platform/soil/doctor.js.map +1 -1
  1284. package/dist/platform/soil/frontmatter.js +1 -1
  1285. package/dist/platform/soil/frontmatter.js.map +1 -1
  1286. package/dist/platform/soil/importer.d.ts +6 -6
  1287. package/dist/platform/soil/index-store.d.ts.map +1 -1
  1288. package/dist/platform/soil/index-store.js +6 -7
  1289. package/dist/platform/soil/index-store.js.map +1 -1
  1290. package/dist/platform/soil/projections.d.ts.map +1 -1
  1291. package/dist/platform/soil/projections.js +8 -4
  1292. package/dist/platform/soil/projections.js.map +1 -1
  1293. package/dist/platform/soil/runtime-rebuild.d.ts.map +1 -1
  1294. package/dist/platform/soil/runtime-rebuild.js +17 -23
  1295. package/dist/platform/soil/runtime-rebuild.js.map +1 -1
  1296. package/dist/platform/soil/source-paths.d.ts +2 -0
  1297. package/dist/platform/soil/source-paths.d.ts.map +1 -0
  1298. package/dist/platform/soil/source-paths.js +25 -0
  1299. package/dist/platform/soil/source-paths.js.map +1 -0
  1300. package/dist/platform/soil/sqlite-repository-helpers.d.ts.map +1 -1
  1301. package/dist/platform/soil/sqlite-repository-helpers.js +7 -3
  1302. package/dist/platform/soil/sqlite-repository-helpers.js.map +1 -1
  1303. package/dist/platform/soil/sqlite-repository-search.d.ts.map +1 -1
  1304. package/dist/platform/soil/sqlite-repository-search.js +5 -1
  1305. package/dist/platform/soil/sqlite-repository-search.js.map +1 -1
  1306. package/dist/platform/soil/types.d.ts +19 -18
  1307. package/dist/platform/soil/types.d.ts.map +1 -1
  1308. package/dist/platform/soil/types.js +58 -16
  1309. package/dist/platform/soil/types.js.map +1 -1
  1310. package/dist/platform/time/time-horizon-engine.d.ts.map +1 -1
  1311. package/dist/platform/time/time-horizon-engine.js +8 -3
  1312. package/dist/platform/time/time-horizon-engine.js.map +1 -1
  1313. package/dist/platform/traits/character-policy.d.ts +4 -0
  1314. package/dist/platform/traits/character-policy.d.ts.map +1 -0
  1315. package/dist/platform/traits/character-policy.js +10 -0
  1316. package/dist/platform/traits/character-policy.js.map +1 -0
  1317. package/dist/platform/traits/curiosity-engine.d.ts +5 -26
  1318. package/dist/platform/traits/curiosity-engine.d.ts.map +1 -1
  1319. package/dist/platform/traits/curiosity-engine.js +29 -203
  1320. package/dist/platform/traits/curiosity-engine.js.map +1 -1
  1321. package/dist/platform/traits/curiosity-triggers.d.ts +16 -0
  1322. package/dist/platform/traits/curiosity-triggers.d.ts.map +1 -0
  1323. package/dist/platform/traits/curiosity-triggers.js +187 -0
  1324. package/dist/platform/traits/curiosity-triggers.js.map +1 -0
  1325. package/dist/platform/traits/ethics-gate.d.ts +5 -4
  1326. package/dist/platform/traits/ethics-gate.d.ts.map +1 -1
  1327. package/dist/platform/traits/ethics-gate.js +11 -17
  1328. package/dist/platform/traits/ethics-gate.js.map +1 -1
  1329. package/dist/platform/traits/trust-manager.d.ts +5 -2
  1330. package/dist/platform/traits/trust-manager.d.ts.map +1 -1
  1331. package/dist/platform/traits/trust-manager.js +11 -20
  1332. package/dist/platform/traits/trust-manager.js.map +1 -1
  1333. package/dist/platform/traits/types/curiosity.d.ts +12 -12
  1334. package/dist/platform/traits/types/curiosity.d.ts.map +1 -1
  1335. package/dist/platform/traits/types/curiosity.js +24 -11
  1336. package/dist/platform/traits/types/curiosity.js.map +1 -1
  1337. package/dist/platform/traits/types/guardrail.d.ts +6 -6
  1338. package/dist/prompt/gateway.d.ts +2 -2
  1339. package/dist/prompt/gateway.d.ts.map +1 -1
  1340. package/dist/prompt/gateway.js +4 -3
  1341. package/dist/prompt/gateway.js.map +1 -1
  1342. package/dist/prompt/purposes/dream.d.ts.map +1 -1
  1343. package/dist/prompt/purposes/dream.js +3 -2
  1344. package/dist/prompt/purposes/dream.js.map +1 -1
  1345. package/dist/prompt/purposes/verification.d.ts +2 -2
  1346. package/dist/reflection/cognition-writeback-evaluator.d.ts +10 -0
  1347. package/dist/reflection/cognition-writeback-evaluator.d.ts.map +1 -0
  1348. package/dist/reflection/cognition-writeback-evaluator.js +49 -0
  1349. package/dist/reflection/cognition-writeback-evaluator.js.map +1 -0
  1350. package/dist/reflection/cognition-writeback-queue.d.ts +835 -0
  1351. package/dist/reflection/cognition-writeback-queue.d.ts.map +1 -0
  1352. package/dist/reflection/cognition-writeback-queue.js +198 -0
  1353. package/dist/reflection/cognition-writeback-queue.js.map +1 -0
  1354. package/dist/reflection/dream-consolidation.d.ts +4 -0
  1355. package/dist/reflection/dream-consolidation.d.ts.map +1 -1
  1356. package/dist/reflection/dream-consolidation.js +28 -8
  1357. package/dist/reflection/dream-consolidation.js.map +1 -1
  1358. package/dist/reflection/evening-catchup.d.ts.map +1 -1
  1359. package/dist/reflection/evening-catchup.js +21 -13
  1360. package/dist/reflection/evening-catchup.js.map +1 -1
  1361. package/dist/reflection/index.d.ts +4 -0
  1362. package/dist/reflection/index.d.ts.map +1 -1
  1363. package/dist/reflection/index.js +2 -0
  1364. package/dist/reflection/index.js.map +1 -1
  1365. package/dist/reflection/morning-planning.d.ts.map +1 -1
  1366. package/dist/reflection/morning-planning.js +17 -6
  1367. package/dist/reflection/morning-planning.js.map +1 -1
  1368. package/dist/reflection/reflection-profile-surface.d.ts +8 -0
  1369. package/dist/reflection/reflection-profile-surface.d.ts.map +1 -0
  1370. package/dist/reflection/reflection-profile-surface.js +20 -0
  1371. package/dist/reflection/reflection-profile-surface.js.map +1 -0
  1372. package/dist/reflection/reflection-report-state-migration.d.ts +14 -0
  1373. package/dist/reflection/reflection-report-state-migration.d.ts.map +1 -0
  1374. package/dist/reflection/reflection-report-state-migration.js +169 -0
  1375. package/dist/reflection/reflection-report-state-migration.js.map +1 -0
  1376. package/dist/reflection/reflection-report-state-store.d.ts +23 -0
  1377. package/dist/reflection/reflection-report-state-store.d.ts.map +1 -0
  1378. package/dist/reflection/reflection-report-state-store.js +90 -0
  1379. package/dist/reflection/reflection-report-state-store.js.map +1 -0
  1380. package/dist/reflection/reflection-utils.d.ts +7 -1
  1381. package/dist/reflection/reflection-utils.d.ts.map +1 -1
  1382. package/dist/reflection/reflection-utils.js +24 -7
  1383. package/dist/reflection/reflection-utils.js.map +1 -1
  1384. package/dist/reflection/types.d.ts +16 -4
  1385. package/dist/reflection/types.d.ts.map +1 -1
  1386. package/dist/reflection/types.js +14 -9
  1387. package/dist/reflection/types.js.map +1 -1
  1388. package/dist/reflection/weekly-review.d.ts.map +1 -1
  1389. package/dist/reflection/weekly-review.js +29 -8
  1390. package/dist/reflection/weekly-review.js.map +1 -1
  1391. package/dist/reporting/report-formatters.d.ts +1 -1
  1392. package/dist/reporting/report-formatters.d.ts.map +1 -1
  1393. package/dist/reporting/report-formatters.js +46 -17
  1394. package/dist/reporting/report-formatters.js.map +1 -1
  1395. package/dist/reporting/report-summary-builders.d.ts +16 -0
  1396. package/dist/reporting/report-summary-builders.d.ts.map +1 -0
  1397. package/dist/reporting/report-summary-builders.js +125 -0
  1398. package/dist/reporting/report-summary-builders.js.map +1 -0
  1399. package/dist/reporting/reporting-engine.d.ts +1 -1
  1400. package/dist/reporting/reporting-engine.d.ts.map +1 -1
  1401. package/dist/reporting/reporting-engine.js +11 -132
  1402. package/dist/reporting/reporting-engine.js.map +1 -1
  1403. package/dist/reporting/reporting-types.d.ts +7 -0
  1404. package/dist/reporting/reporting-types.d.ts.map +1 -1
  1405. package/dist/reporting/types/report.d.ts +5 -0
  1406. package/dist/reporting/types/report.d.ts.map +1 -1
  1407. package/dist/reporting/types/report.js +1 -0
  1408. package/dist/reporting/types/report.js.map +1 -1
  1409. package/dist/runtime/approval-broker.d.ts +8 -2
  1410. package/dist/runtime/approval-broker.d.ts.map +1 -1
  1411. package/dist/runtime/approval-broker.js +87 -7
  1412. package/dist/runtime/approval-broker.js.map +1 -1
  1413. package/dist/runtime/assets/checksum.d.ts +2 -0
  1414. package/dist/runtime/assets/checksum.d.ts.map +1 -0
  1415. package/dist/runtime/assets/checksum.js +44 -0
  1416. package/dist/runtime/assets/checksum.js.map +1 -0
  1417. package/dist/runtime/assets/index.d.ts +4 -0
  1418. package/dist/runtime/assets/index.d.ts.map +1 -0
  1419. package/dist/runtime/assets/index.js +4 -0
  1420. package/dist/runtime/assets/index.js.map +1 -0
  1421. package/dist/runtime/assets/registry.d.ts +16 -0
  1422. package/dist/runtime/assets/registry.d.ts.map +1 -0
  1423. package/dist/runtime/assets/registry.js +105 -0
  1424. package/dist/runtime/assets/registry.js.map +1 -0
  1425. package/dist/runtime/assets/types.d.ts +233 -0
  1426. package/dist/runtime/assets/types.d.ts.map +1 -0
  1427. package/dist/runtime/assets/types.js +92 -0
  1428. package/dist/runtime/assets/types.js.map +1 -0
  1429. package/dist/runtime/attention/attention-admission.d.ts +29 -0
  1430. package/dist/runtime/attention/attention-admission.d.ts.map +1 -0
  1431. package/dist/runtime/attention/attention-admission.js +92 -0
  1432. package/dist/runtime/attention/attention-admission.js.map +1 -0
  1433. package/dist/runtime/attention/attention-agenda.d.ts +21 -0
  1434. package/dist/runtime/attention/attention-agenda.d.ts.map +1 -0
  1435. package/dist/runtime/attention/attention-agenda.js +539 -0
  1436. package/dist/runtime/attention/attention-agenda.js.map +1 -0
  1437. package/dist/runtime/attention/attention-clustering.d.ts +54 -0
  1438. package/dist/runtime/attention/attention-clustering.d.ts.map +1 -0
  1439. package/dist/runtime/attention/attention-clustering.js +243 -0
  1440. package/dist/runtime/attention/attention-clustering.js.map +1 -0
  1441. package/dist/runtime/attention/attention-continuity.d.ts +609 -0
  1442. package/dist/runtime/attention/attention-continuity.d.ts.map +1 -0
  1443. package/dist/runtime/attention/attention-continuity.js +414 -0
  1444. package/dist/runtime/attention/attention-continuity.js.map +1 -0
  1445. package/dist/runtime/attention/attention-cycle.d.ts +56 -0
  1446. package/dist/runtime/attention/attention-cycle.d.ts.map +1 -0
  1447. package/dist/runtime/attention/attention-cycle.js +266 -0
  1448. package/dist/runtime/attention/attention-cycle.js.map +1 -0
  1449. package/dist/runtime/attention/attention-decomposition.d.ts +15 -0
  1450. package/dist/runtime/attention/attention-decomposition.d.ts.map +1 -0
  1451. package/dist/runtime/attention/attention-decomposition.js +157 -0
  1452. package/dist/runtime/attention/attention-decomposition.js.map +1 -0
  1453. package/dist/runtime/attention/attention-diagnostics.d.ts +122 -0
  1454. package/dist/runtime/attention/attention-diagnostics.d.ts.map +1 -0
  1455. package/dist/runtime/attention/attention-diagnostics.js +101 -0
  1456. package/dist/runtime/attention/attention-diagnostics.js.map +1 -0
  1457. package/dist/runtime/attention/attention-feedback.d.ts +58 -0
  1458. package/dist/runtime/attention/attention-feedback.d.ts.map +1 -0
  1459. package/dist/runtime/attention/attention-feedback.js +212 -0
  1460. package/dist/runtime/attention/attention-feedback.js.map +1 -0
  1461. package/dist/runtime/attention/attention-input.d.ts +673 -0
  1462. package/dist/runtime/attention/attention-input.d.ts.map +1 -0
  1463. package/dist/runtime/attention/attention-input.js +439 -0
  1464. package/dist/runtime/attention/attention-input.js.map +1 -0
  1465. package/dist/runtime/attention/attention-metabolism-types.d.ts +222 -0
  1466. package/dist/runtime/attention/attention-metabolism-types.d.ts.map +1 -0
  1467. package/dist/runtime/attention/attention-metabolism-types.js +2 -0
  1468. package/dist/runtime/attention/attention-metabolism-types.js.map +1 -0
  1469. package/dist/runtime/attention/attention-metabolism.d.ts +21 -0
  1470. package/dist/runtime/attention/attention-metabolism.d.ts.map +1 -0
  1471. package/dist/runtime/attention/attention-metabolism.js +1351 -0
  1472. package/dist/runtime/attention/attention-metabolism.js.map +1 -0
  1473. package/dist/runtime/attention/attention-promotion.d.ts +15 -0
  1474. package/dist/runtime/attention/attention-promotion.d.ts.map +1 -0
  1475. package/dist/runtime/attention/attention-promotion.js +110 -0
  1476. package/dist/runtime/attention/attention-promotion.js.map +1 -0
  1477. package/dist/runtime/attention/attention-refs.d.ts +12 -0
  1478. package/dist/runtime/attention/attention-refs.d.ts.map +1 -0
  1479. package/dist/runtime/attention/attention-refs.js +46 -0
  1480. package/dist/runtime/attention/attention-refs.js.map +1 -0
  1481. package/dist/runtime/attention/attention-scope.d.ts +33 -0
  1482. package/dist/runtime/attention/attention-scope.d.ts.map +1 -0
  1483. package/dist/runtime/attention/attention-scope.js +215 -0
  1484. package/dist/runtime/attention/attention-scope.js.map +1 -0
  1485. package/dist/runtime/attention/attention-semantic.d.ts +65 -0
  1486. package/dist/runtime/attention/attention-semantic.d.ts.map +1 -0
  1487. package/dist/runtime/attention/attention-semantic.js +102 -0
  1488. package/dist/runtime/attention/attention-semantic.js.map +1 -0
  1489. package/dist/runtime/attention/direct-path-inventory.d.ts +25 -0
  1490. package/dist/runtime/attention/direct-path-inventory.d.ts.map +1 -0
  1491. package/dist/runtime/attention/direct-path-inventory.js +377 -0
  1492. package/dist/runtime/attention/direct-path-inventory.js.map +1 -0
  1493. package/dist/runtime/attention/feedback-ingestion.d.ts +2236 -0
  1494. package/dist/runtime/attention/feedback-ingestion.d.ts.map +1 -0
  1495. package/dist/runtime/attention/feedback-ingestion.js +568 -0
  1496. package/dist/runtime/attention/feedback-ingestion.js.map +1 -0
  1497. package/dist/runtime/attention/index.d.ts +31 -0
  1498. package/dist/runtime/attention/index.d.ts.map +1 -0
  1499. package/dist/runtime/attention/index.js +16 -0
  1500. package/dist/runtime/attention/index.js.map +1 -0
  1501. package/dist/runtime/attention/proactive-policy.d.ts +200 -0
  1502. package/dist/runtime/attention/proactive-policy.d.ts.map +1 -0
  1503. package/dist/runtime/attention/proactive-policy.js +133 -0
  1504. package/dist/runtime/attention/proactive-policy.js.map +1 -0
  1505. package/dist/runtime/attention/surface-delivery.d.ts +215 -0
  1506. package/dist/runtime/attention/surface-delivery.d.ts.map +1 -0
  1507. package/dist/runtime/attention/surface-delivery.js +232 -0
  1508. package/dist/runtime/attention/surface-delivery.js.map +1 -0
  1509. package/dist/runtime/builtin-integrations.d.ts +4 -0
  1510. package/dist/runtime/builtin-integrations.d.ts.map +1 -1
  1511. package/dist/runtime/builtin-integrations.js +29 -0
  1512. package/dist/runtime/builtin-integrations.js.map +1 -1
  1513. package/dist/runtime/capability-execution-resolver.d.ts +9 -0
  1514. package/dist/runtime/capability-execution-resolver.d.ts.map +1 -0
  1515. package/dist/runtime/capability-execution-resolver.js +92 -0
  1516. package/dist/runtime/capability-execution-resolver.js.map +1 -0
  1517. package/dist/runtime/capability-operation-planner.d.ts +81 -0
  1518. package/dist/runtime/capability-operation-planner.d.ts.map +1 -0
  1519. package/dist/runtime/capability-operation-planner.js +481 -0
  1520. package/dist/runtime/capability-operation-planner.js.map +1 -0
  1521. package/dist/runtime/change-detector.d.ts.map +1 -1
  1522. package/dist/runtime/change-detector.js +17 -2
  1523. package/dist/runtime/change-detector.js.map +1 -1
  1524. package/dist/runtime/channels/http-post.d.ts +5 -1
  1525. package/dist/runtime/channels/http-post.d.ts.map +1 -1
  1526. package/dist/runtime/channels/http-post.js +65 -9
  1527. package/dist/runtime/channels/http-post.js.map +1 -1
  1528. package/dist/runtime/cognition/audit-sink.d.ts +37 -0
  1529. package/dist/runtime/cognition/audit-sink.d.ts.map +1 -0
  1530. package/dist/runtime/cognition/audit-sink.js +108 -0
  1531. package/dist/runtime/cognition/audit-sink.js.map +1 -0
  1532. package/dist/runtime/cognition/cloud-boundary.d.ts +308 -0
  1533. package/dist/runtime/cognition/cloud-boundary.d.ts.map +1 -0
  1534. package/dist/runtime/cognition/cloud-boundary.js +114 -0
  1535. package/dist/runtime/cognition/cloud-boundary.js.map +1 -0
  1536. package/dist/runtime/cognition/companion-cognition-service.d.ts +18 -0
  1537. package/dist/runtime/cognition/companion-cognition-service.d.ts.map +1 -0
  1538. package/dist/runtime/cognition/companion-cognition-service.js +224 -0
  1539. package/dist/runtime/cognition/companion-cognition-service.js.map +1 -0
  1540. package/dist/runtime/cognition/contracts.d.ts +19901 -0
  1541. package/dist/runtime/cognition/contracts.d.ts.map +1 -0
  1542. package/dist/runtime/cognition/contracts.js +559 -0
  1543. package/dist/runtime/cognition/contracts.js.map +1 -0
  1544. package/dist/runtime/cognition/index.d.ts +13 -0
  1545. package/dist/runtime/cognition/index.d.ts.map +1 -0
  1546. package/dist/runtime/cognition/index.js +9 -0
  1547. package/dist/runtime/cognition/index.js.map +1 -0
  1548. package/dist/runtime/cognition/memory-context.d.ts +19 -0
  1549. package/dist/runtime/cognition/memory-context.d.ts.map +1 -0
  1550. package/dist/runtime/cognition/memory-context.js +187 -0
  1551. package/dist/runtime/cognition/memory-context.js.map +1 -0
  1552. package/dist/runtime/cognition/ports.d.ts +11 -0
  1553. package/dist/runtime/cognition/ports.d.ts.map +1 -0
  1554. package/dist/runtime/cognition/ports.js +2 -0
  1555. package/dist/runtime/cognition/ports.js.map +1 -0
  1556. package/dist/runtime/cognition/situation.d.ts +6 -0
  1557. package/dist/runtime/cognition/situation.d.ts.map +1 -0
  1558. package/dist/runtime/cognition/situation.js +66 -0
  1559. package/dist/runtime/cognition/situation.js.map +1 -0
  1560. package/dist/runtime/cognition/tool-authority.d.ts +21 -0
  1561. package/dist/runtime/cognition/tool-authority.d.ts.map +1 -0
  1562. package/dist/runtime/cognition/tool-authority.js +56 -0
  1563. package/dist/runtime/cognition/tool-authority.js.map +1 -0
  1564. package/dist/runtime/cognition/writeback.d.ts +17 -0
  1565. package/dist/runtime/cognition/writeback.d.ts.map +1 -0
  1566. package/dist/runtime/cognition/writeback.js +40 -0
  1567. package/dist/runtime/cognition/writeback.js.map +1 -0
  1568. package/dist/runtime/companion-state-reducer.d.ts +10 -0
  1569. package/dist/runtime/companion-state-reducer.d.ts.map +1 -0
  1570. package/dist/runtime/companion-state-reducer.js +601 -0
  1571. package/dist/runtime/companion-state-reducer.js.map +1 -0
  1572. package/dist/runtime/companion-state-runtime-selectors.d.ts +44 -0
  1573. package/dist/runtime/companion-state-runtime-selectors.d.ts.map +1 -0
  1574. package/dist/runtime/companion-state-runtime-selectors.js +308 -0
  1575. package/dist/runtime/companion-state-runtime-selectors.js.map +1 -0
  1576. package/dist/runtime/confirmation-decision.d.ts +2 -2
  1577. package/dist/runtime/confirmation-decision.d.ts.map +1 -1
  1578. package/dist/runtime/confirmation-decision.js +3 -2
  1579. package/dist/runtime/confirmation-decision.js.map +1 -1
  1580. package/dist/runtime/control/admission-policy.d.ts +1228 -0
  1581. package/dist/runtime/control/admission-policy.d.ts.map +1 -0
  1582. package/dist/runtime/control/admission-policy.js +455 -0
  1583. package/dist/runtime/control/admission-policy.js.map +1 -0
  1584. package/dist/runtime/control/autonomy-governor.d.ts +1345 -0
  1585. package/dist/runtime/control/autonomy-governor.d.ts.map +1 -0
  1586. package/dist/runtime/control/autonomy-governor.js +1030 -0
  1587. package/dist/runtime/control/autonomy-governor.js.map +1 -0
  1588. package/dist/runtime/control/autonomy-ttl.d.ts +4 -0
  1589. package/dist/runtime/control/autonomy-ttl.d.ts.map +1 -0
  1590. package/dist/runtime/control/autonomy-ttl.js +8 -0
  1591. package/dist/runtime/control/autonomy-ttl.js.map +1 -0
  1592. package/dist/runtime/control/capability-status-projection.d.ts +987 -0
  1593. package/dist/runtime/control/capability-status-projection.d.ts.map +1 -0
  1594. package/dist/runtime/control/capability-status-projection.js +384 -0
  1595. package/dist/runtime/control/capability-status-projection.js.map +1 -0
  1596. package/dist/runtime/control/companion-action-projection.d.ts +640 -0
  1597. package/dist/runtime/control/companion-action-projection.d.ts.map +1 -0
  1598. package/dist/runtime/control/companion-action-projection.js +304 -0
  1599. package/dist/runtime/control/companion-action-projection.js.map +1 -0
  1600. package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
  1601. package/dist/runtime/control/daemon-runtime-control-executor.js +2 -3
  1602. package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
  1603. package/dist/runtime/control/index.d.ts +14 -1
  1604. package/dist/runtime/control/index.d.ts.map +1 -1
  1605. package/dist/runtime/control/index.js +7 -0
  1606. package/dist/runtime/control/index.js.map +1 -1
  1607. package/dist/runtime/control/internal-autonomy-default.d.ts +163 -0
  1608. package/dist/runtime/control/internal-autonomy-default.d.ts.map +1 -0
  1609. package/dist/runtime/control/internal-autonomy-default.js +379 -0
  1610. package/dist/runtime/control/internal-autonomy-default.js.map +1 -0
  1611. package/dist/runtime/control/runtime-control-intent.d.ts +4 -0
  1612. package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
  1613. package/dist/runtime/control/runtime-control-intent.js +29 -6
  1614. package/dist/runtime/control/runtime-control-intent.js.map +1 -1
  1615. package/dist/runtime/control/runtime-control-messages.d.ts +5 -0
  1616. package/dist/runtime/control/runtime-control-messages.d.ts.map +1 -0
  1617. package/dist/runtime/control/runtime-control-messages.js +11 -0
  1618. package/dist/runtime/control/runtime-control-messages.js.map +1 -0
  1619. package/dist/runtime/control/runtime-control-permission-grants.d.ts +16 -0
  1620. package/dist/runtime/control/runtime-control-permission-grants.d.ts.map +1 -0
  1621. package/dist/runtime/control/runtime-control-permission-grants.js +125 -0
  1622. package/dist/runtime/control/runtime-control-permission-grants.js.map +1 -0
  1623. package/dist/runtime/control/runtime-control-result-routing.d.ts +1 -0
  1624. package/dist/runtime/control/runtime-control-result-routing.d.ts.map +1 -1
  1625. package/dist/runtime/control/runtime-control-result-routing.js +1 -1
  1626. package/dist/runtime/control/runtime-control-result-routing.js.map +1 -1
  1627. package/dist/runtime/control/runtime-control-service.d.ts +74 -1
  1628. package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
  1629. package/dist/runtime/control/runtime-control-service.js +1084 -15
  1630. package/dist/runtime/control/runtime-control-service.js.map +1 -1
  1631. package/dist/runtime/control/runtime-target-resolver.d.ts.map +1 -1
  1632. package/dist/runtime/control/runtime-target-resolver.js +54 -8
  1633. package/dist/runtime/control/runtime-target-resolver.js.map +1 -1
  1634. package/dist/runtime/conversational-approval-decision.d.ts +2 -2
  1635. package/dist/runtime/daemon/browser-backpressure-policy.d.ts +23 -0
  1636. package/dist/runtime/daemon/browser-backpressure-policy.d.ts.map +1 -0
  1637. package/dist/runtime/daemon/browser-backpressure-policy.js +94 -0
  1638. package/dist/runtime/daemon/browser-backpressure-policy.js.map +1 -0
  1639. package/dist/runtime/daemon/client.d.ts +2 -0
  1640. package/dist/runtime/daemon/client.d.ts.map +1 -1
  1641. package/dist/runtime/daemon/client.js +64 -24
  1642. package/dist/runtime/daemon/client.js.map +1 -1
  1643. package/dist/runtime/daemon/config-json.d.ts +5 -0
  1644. package/dist/runtime/daemon/config-json.d.ts.map +1 -0
  1645. package/dist/runtime/daemon/config-json.js +19 -0
  1646. package/dist/runtime/daemon/config-json.js.map +1 -0
  1647. package/dist/runtime/daemon/maintenance.d.ts +12 -2
  1648. package/dist/runtime/daemon/maintenance.d.ts.map +1 -1
  1649. package/dist/runtime/daemon/maintenance.js +59 -22
  1650. package/dist/runtime/daemon/maintenance.js.map +1 -1
  1651. package/dist/runtime/daemon/persistence.d.ts +1 -1
  1652. package/dist/runtime/daemon/persistence.d.ts.map +1 -1
  1653. package/dist/runtime/daemon/persistence.js +10 -20
  1654. package/dist/runtime/daemon/persistence.js.map +1 -1
  1655. package/dist/runtime/daemon/resident-attention-orchestrator.d.ts +35 -0
  1656. package/dist/runtime/daemon/resident-attention-orchestrator.d.ts.map +1 -0
  1657. package/dist/runtime/daemon/resident-attention-orchestrator.js +495 -0
  1658. package/dist/runtime/daemon/resident-attention-orchestrator.js.map +1 -0
  1659. package/dist/runtime/daemon/runner-bootstrap.d.ts.map +1 -1
  1660. package/dist/runtime/daemon/runner-bootstrap.js +8 -6
  1661. package/dist/runtime/daemon/runner-bootstrap.js.map +1 -1
  1662. package/dist/runtime/daemon/runner-commands.d.ts +6 -6
  1663. package/dist/runtime/daemon/runner-commands.d.ts.map +1 -1
  1664. package/dist/runtime/daemon/runner-commands.js +10 -6
  1665. package/dist/runtime/daemon/runner-commands.js.map +1 -1
  1666. package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
  1667. package/dist/runtime/daemon/runner-goal-cycle.js +4 -1
  1668. package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
  1669. package/dist/runtime/daemon/runner-recovery.d.ts +2 -2
  1670. package/dist/runtime/daemon/runner-recovery.d.ts.map +1 -1
  1671. package/dist/runtime/daemon/runner-recovery.js +82 -88
  1672. package/dist/runtime/daemon/runner-recovery.js.map +1 -1
  1673. package/dist/runtime/daemon/runner-resident-curiosity.d.ts +6 -4
  1674. package/dist/runtime/daemon/runner-resident-curiosity.d.ts.map +1 -1
  1675. package/dist/runtime/daemon/runner-resident-curiosity.js +125 -20
  1676. package/dist/runtime/daemon/runner-resident-curiosity.js.map +1 -1
  1677. package/dist/runtime/daemon/runner-resident-dream.d.ts +2 -3
  1678. package/dist/runtime/daemon/runner-resident-dream.d.ts.map +1 -1
  1679. package/dist/runtime/daemon/runner-resident-dream.js +4 -14
  1680. package/dist/runtime/daemon/runner-resident-dream.js.map +1 -1
  1681. package/dist/runtime/daemon/runner-resident-proactive.d.ts +14 -3
  1682. package/dist/runtime/daemon/runner-resident-proactive.d.ts.map +1 -1
  1683. package/dist/runtime/daemon/runner-resident-proactive.js +312 -23
  1684. package/dist/runtime/daemon/runner-resident-proactive.js.map +1 -1
  1685. package/dist/runtime/daemon/runner-resident-shared.d.ts +25 -0
  1686. package/dist/runtime/daemon/runner-resident-shared.d.ts.map +1 -1
  1687. package/dist/runtime/daemon/runner-resident-shared.js +57 -12
  1688. package/dist/runtime/daemon/runner-resident-shared.js.map +1 -1
  1689. package/dist/runtime/daemon/runner-resident.d.ts +1 -1
  1690. package/dist/runtime/daemon/runner-resident.d.ts.map +1 -1
  1691. package/dist/runtime/daemon/runner-resident.js +1 -1
  1692. package/dist/runtime/daemon/runner-resident.js.map +1 -1
  1693. package/dist/runtime/daemon/runner-startup.d.ts +2 -1
  1694. package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
  1695. package/dist/runtime/daemon/runner-startup.js +19 -14
  1696. package/dist/runtime/daemon/runner-startup.js.map +1 -1
  1697. package/dist/runtime/daemon/runner.d.ts +28 -14
  1698. package/dist/runtime/daemon/runner.d.ts.map +1 -1
  1699. package/dist/runtime/daemon/runner.js +30 -20
  1700. package/dist/runtime/daemon/runner.js.map +1 -1
  1701. package/dist/runtime/daemon/runtime-ownership.d.ts +8 -0
  1702. package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
  1703. package/dist/runtime/daemon/runtime-ownership.js +157 -18
  1704. package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
  1705. package/dist/runtime/daemon/runtime-root.d.ts.map +1 -1
  1706. package/dist/runtime/daemon/runtime-root.js +13 -17
  1707. package/dist/runtime/daemon/runtime-root.js.map +1 -1
  1708. package/dist/runtime/daemon/types.d.ts +18 -4
  1709. package/dist/runtime/daemon/types.d.ts.map +1 -1
  1710. package/dist/runtime/daemon/types.js +8 -1
  1711. package/dist/runtime/daemon/types.js.map +1 -1
  1712. package/dist/runtime/daemon/wait-deadline-resolver.d.ts +9 -2
  1713. package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
  1714. package/dist/runtime/daemon/wait-deadline-resolver.js +13 -12
  1715. package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
  1716. package/dist/runtime/decision/companion-behavior-eval-contract.d.ts +645 -0
  1717. package/dist/runtime/decision/companion-behavior-eval-contract.d.ts.map +1 -0
  1718. package/dist/runtime/decision/companion-behavior-eval-contract.js +263 -0
  1719. package/dist/runtime/decision/companion-behavior-eval-contract.js.map +1 -0
  1720. package/dist/runtime/decision/companion-character-policy-projection.d.ts +325 -0
  1721. package/dist/runtime/decision/companion-character-policy-projection.d.ts.map +1 -0
  1722. package/dist/runtime/decision/companion-character-policy-projection.js +231 -0
  1723. package/dist/runtime/decision/companion-character-policy-projection.js.map +1 -0
  1724. package/dist/runtime/decision/companion-decision-contract.d.ts +503 -0
  1725. package/dist/runtime/decision/companion-decision-contract.d.ts.map +1 -0
  1726. package/dist/runtime/decision/companion-decision-contract.js +128 -0
  1727. package/dist/runtime/decision/companion-decision-contract.js.map +1 -0
  1728. package/dist/runtime/decision/companion-gadget-planning.d.ts +2252 -0
  1729. package/dist/runtime/decision/companion-gadget-planning.d.ts.map +1 -0
  1730. package/dist/runtime/decision/companion-gadget-planning.js +534 -0
  1731. package/dist/runtime/decision/companion-gadget-planning.js.map +1 -0
  1732. package/dist/runtime/decision/core-companion-memory-projection.d.ts +3059 -0
  1733. package/dist/runtime/decision/core-companion-memory-projection.d.ts.map +1 -0
  1734. package/dist/runtime/decision/core-companion-memory-projection.js +449 -0
  1735. package/dist/runtime/decision/core-companion-memory-projection.js.map +1 -0
  1736. package/dist/runtime/decision/index.d.ts +11 -0
  1737. package/dist/runtime/decision/index.d.ts.map +1 -0
  1738. package/dist/runtime/decision/index.js +6 -0
  1739. package/dist/runtime/decision/index.js.map +1 -0
  1740. package/dist/runtime/dream-sidecar-review.d.ts.map +1 -1
  1741. package/dist/runtime/dream-sidecar-review.js +2 -2
  1742. package/dist/runtime/dream-sidecar-review.js.map +1 -1
  1743. package/dist/runtime/event/outbox-seq.d.ts +2 -0
  1744. package/dist/runtime/event/outbox-seq.d.ts.map +1 -0
  1745. package/dist/runtime/event/outbox-seq.js +11 -0
  1746. package/dist/runtime/event/outbox-seq.js.map +1 -0
  1747. package/dist/runtime/event/server-auth.d.ts +1 -1
  1748. package/dist/runtime/event/server-auth.d.ts.map +1 -1
  1749. package/dist/runtime/event/server-auth.js +3 -1
  1750. package/dist/runtime/event/server-auth.js.map +1 -1
  1751. package/dist/runtime/event/server-command-handler.d.ts.map +1 -1
  1752. package/dist/runtime/event/server-command-handler.js +45 -44
  1753. package/dist/runtime/event/server-command-handler.js.map +1 -1
  1754. package/dist/runtime/event/server-file-ingestion.d.ts +1 -0
  1755. package/dist/runtime/event/server-file-ingestion.d.ts.map +1 -1
  1756. package/dist/runtime/event/server-file-ingestion.js +18 -29
  1757. package/dist/runtime/event/server-file-ingestion.js.map +1 -1
  1758. package/dist/runtime/event/server-http.d.ts +2 -1
  1759. package/dist/runtime/event/server-http.d.ts.map +1 -1
  1760. package/dist/runtime/event/server-http.js +2 -18
  1761. package/dist/runtime/event/server-http.js.map +1 -1
  1762. package/dist/runtime/event/server-router.d.ts +2 -0
  1763. package/dist/runtime/event/server-router.d.ts.map +1 -1
  1764. package/dist/runtime/event/server-router.js +21 -12
  1765. package/dist/runtime/event/server-router.js.map +1 -1
  1766. package/dist/runtime/event/server-snapshot-reader.d.ts +12 -2
  1767. package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
  1768. package/dist/runtime/event/server-snapshot-reader.js +159 -62
  1769. package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
  1770. package/dist/runtime/event/server-sse.d.ts.map +1 -1
  1771. package/dist/runtime/event/server-sse.js +3 -4
  1772. package/dist/runtime/event/server-sse.js.map +1 -1
  1773. package/dist/runtime/event/server-trigger-handler.d.ts.map +1 -1
  1774. package/dist/runtime/event/server-trigger-handler.js +7 -10
  1775. package/dist/runtime/event/server-trigger-handler.js.map +1 -1
  1776. package/dist/runtime/event/server-types.d.ts +6 -0
  1777. package/dist/runtime/event/server-types.d.ts.map +1 -1
  1778. package/dist/runtime/event/server.d.ts +1 -0
  1779. package/dist/runtime/event/server.d.ts.map +1 -1
  1780. package/dist/runtime/event/server.js +15 -4
  1781. package/dist/runtime/event/server.js.map +1 -1
  1782. package/dist/runtime/evidence-answer.d.ts +26 -0
  1783. package/dist/runtime/evidence-answer.d.ts.map +1 -1
  1784. package/dist/runtime/evidence-answer.js +134 -14
  1785. package/dist/runtime/evidence-answer.js.map +1 -1
  1786. package/dist/runtime/executor/goal-worker.d.ts +3 -3
  1787. package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
  1788. package/dist/runtime/executor/goal-worker.js +4 -4
  1789. package/dist/runtime/executor/goal-worker.js.map +1 -1
  1790. package/dist/runtime/executor/loop-supervisor.d.ts +13 -6
  1791. package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
  1792. package/dist/runtime/executor/loop-supervisor.js +91 -23
  1793. package/dist/runtime/executor/loop-supervisor.js.map +1 -1
  1794. package/dist/runtime/foreign-plugins/compatibility.d.ts +18 -1
  1795. package/dist/runtime/foreign-plugins/compatibility.d.ts.map +1 -1
  1796. package/dist/runtime/foreign-plugins/compatibility.js +183 -55
  1797. package/dist/runtime/foreign-plugins/compatibility.js.map +1 -1
  1798. package/dist/runtime/foreign-plugins/index.d.ts +2 -2
  1799. package/dist/runtime/foreign-plugins/index.d.ts.map +1 -1
  1800. package/dist/runtime/foreign-plugins/index.js +1 -1
  1801. package/dist/runtime/foreign-plugins/index.js.map +1 -1
  1802. package/dist/runtime/foreign-plugins/types.d.ts +347 -14
  1803. package/dist/runtime/foreign-plugins/types.d.ts.map +1 -1
  1804. package/dist/runtime/foreign-plugins/types.js +88 -1
  1805. package/dist/runtime/foreign-plugins/types.js.map +1 -1
  1806. package/dist/runtime/gateway/channel-adapter.d.ts +3 -0
  1807. package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
  1808. package/dist/runtime/gateway/channel-display-policy.js +1 -1
  1809. package/dist/runtime/gateway/channel-display-policy.js.map +1 -1
  1810. package/dist/runtime/gateway/channel-policy.d.ts +55 -0
  1811. package/dist/runtime/gateway/channel-policy.d.ts.map +1 -1
  1812. package/dist/runtime/gateway/channel-policy.js +108 -0
  1813. package/dist/runtime/gateway/channel-policy.js.map +1 -1
  1814. package/dist/runtime/gateway/channel-presence-policy.d.ts +34 -0
  1815. package/dist/runtime/gateway/channel-presence-policy.d.ts.map +1 -0
  1816. package/dist/runtime/gateway/channel-presence-policy.js +118 -0
  1817. package/dist/runtime/gateway/channel-presence-policy.js.map +1 -0
  1818. package/dist/runtime/gateway/chat-event-rendering.d.ts +18 -27
  1819. package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -1
  1820. package/dist/runtime/gateway/chat-event-rendering.js +49 -34
  1821. package/dist/runtime/gateway/chat-event-rendering.js.map +1 -1
  1822. package/dist/runtime/gateway/chat-session-dispatch.d.ts +13 -0
  1823. package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
  1824. package/dist/runtime/gateway/chat-session-dispatch.js +43 -6
  1825. package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
  1826. package/dist/runtime/gateway/chat-session-port.d.ts +2 -0
  1827. package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -1
  1828. package/dist/runtime/gateway/chat-session-port.js.map +1 -1
  1829. package/dist/runtime/gateway/config-json.d.ts +3 -0
  1830. package/dist/runtime/gateway/config-json.d.ts.map +1 -0
  1831. package/dist/runtime/gateway/config-json.js +27 -0
  1832. package/dist/runtime/gateway/config-json.js.map +1 -0
  1833. package/dist/runtime/gateway/direct-chat-latency-smoke.d.ts +2 -0
  1834. package/dist/runtime/gateway/direct-chat-latency-smoke.d.ts.map +1 -0
  1835. package/dist/runtime/gateway/direct-chat-latency-smoke.js +214 -0
  1836. package/dist/runtime/gateway/direct-chat-latency-smoke.js.map +1 -0
  1837. package/dist/runtime/gateway/discord-gateway-adapter.d.ts +1 -1
  1838. package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
  1839. package/dist/runtime/gateway/discord-gateway-adapter.js +87 -43
  1840. package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
  1841. package/dist/runtime/gateway/gateway-progress-narration.d.ts +12 -0
  1842. package/dist/runtime/gateway/gateway-progress-narration.d.ts.map +1 -0
  1843. package/dist/runtime/gateway/gateway-progress-narration.js +294 -0
  1844. package/dist/runtime/gateway/gateway-progress-narration.js.map +1 -0
  1845. package/dist/runtime/gateway/http-channel-adapter.d.ts +1 -0
  1846. package/dist/runtime/gateway/http-channel-adapter.d.ts.map +1 -1
  1847. package/dist/runtime/gateway/http-channel-adapter.js +2 -0
  1848. package/dist/runtime/gateway/http-channel-adapter.js.map +1 -1
  1849. package/dist/runtime/gateway/index.d.ts +7 -0
  1850. package/dist/runtime/gateway/index.d.ts.map +1 -1
  1851. package/dist/runtime/gateway/index.js +5 -0
  1852. package/dist/runtime/gateway/index.js.map +1 -1
  1853. package/dist/runtime/gateway/ingress-gateway.d.ts.map +1 -1
  1854. package/dist/runtime/gateway/ingress-gateway.js +2 -6
  1855. package/dist/runtime/gateway/ingress-gateway.js.map +1 -1
  1856. package/dist/runtime/gateway/non-tui-display-projector.d.ts +5 -0
  1857. package/dist/runtime/gateway/non-tui-display-projector.d.ts.map +1 -1
  1858. package/dist/runtime/gateway/non-tui-display-projector.js +202 -27
  1859. package/dist/runtime/gateway/non-tui-display-projector.js.map +1 -1
  1860. package/dist/runtime/gateway/seedy-presence-projector.d.ts +74 -0
  1861. package/dist/runtime/gateway/seedy-presence-projector.d.ts.map +1 -0
  1862. package/dist/runtime/gateway/seedy-presence-projector.js +395 -0
  1863. package/dist/runtime/gateway/seedy-presence-projector.js.map +1 -0
  1864. package/dist/runtime/gateway/seedy-presence-rendering.d.ts +9 -0
  1865. package/dist/runtime/gateway/seedy-presence-rendering.d.ts.map +1 -0
  1866. package/dist/runtime/gateway/seedy-presence-rendering.js +103 -0
  1867. package/dist/runtime/gateway/seedy-presence-rendering.js.map +1 -0
  1868. package/dist/runtime/gateway/signal-gateway-adapter.d.ts +1 -0
  1869. package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
  1870. package/dist/runtime/gateway/signal-gateway-adapter.js +67 -38
  1871. package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
  1872. package/dist/runtime/gateway/slack-channel-adapter.d.ts +1 -0
  1873. package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
  1874. package/dist/runtime/gateway/slack-channel-adapter.js +85 -34
  1875. package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
  1876. package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +19 -4
  1877. package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
  1878. package/dist/runtime/gateway/telegram-gateway-adapter.js +428 -117
  1879. package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
  1880. package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +1 -1
  1881. package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
  1882. package/dist/runtime/gateway/whatsapp-gateway-adapter.js +86 -54
  1883. package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
  1884. package/dist/runtime/gateway/ws-channel-adapter.d.ts.map +1 -1
  1885. package/dist/runtime/gateway/ws-channel-adapter.js +3 -4
  1886. package/dist/runtime/gateway/ws-channel-adapter.js.map +1 -1
  1887. package/dist/runtime/goal-lease-manager.d.ts +9 -14
  1888. package/dist/runtime/goal-lease-manager.d.ts.map +1 -1
  1889. package/dist/runtime/goal-lease-manager.js +85 -141
  1890. package/dist/runtime/goal-lease-manager.js.map +1 -1
  1891. package/dist/runtime/guardrails/backpressure-controller.d.ts +1 -1
  1892. package/dist/runtime/guardrails/backpressure-controller.d.ts.map +1 -1
  1893. package/dist/runtime/guardrails/backpressure-controller.js +5 -4
  1894. package/dist/runtime/guardrails/backpressure-controller.js.map +1 -1
  1895. package/dist/runtime/guardrails/backpressure-limits.d.ts +5 -0
  1896. package/dist/runtime/guardrails/backpressure-limits.d.ts.map +1 -0
  1897. package/dist/runtime/guardrails/backpressure-limits.js +13 -0
  1898. package/dist/runtime/guardrails/backpressure-limits.js.map +1 -0
  1899. package/dist/runtime/guardrails/guardrail-store.d.ts +8 -10
  1900. package/dist/runtime/guardrails/guardrail-store.d.ts.map +1 -1
  1901. package/dist/runtime/guardrails/guardrail-store.js +78 -55
  1902. package/dist/runtime/guardrails/guardrail-store.js.map +1 -1
  1903. package/dist/runtime/hook-manager.d.ts +2 -0
  1904. package/dist/runtime/hook-manager.d.ts.map +1 -1
  1905. package/dist/runtime/hook-manager.js +10 -4
  1906. package/dist/runtime/hook-manager.js.map +1 -1
  1907. package/dist/runtime/http-body.d.ts +8 -0
  1908. package/dist/runtime/http-body.d.ts.map +1 -0
  1909. package/dist/runtime/http-body.js +43 -0
  1910. package/dist/runtime/http-body.js.map +1 -0
  1911. package/dist/runtime/intention/companion-intention-state.d.ts +680 -0
  1912. package/dist/runtime/intention/companion-intention-state.d.ts.map +1 -0
  1913. package/dist/runtime/intention/companion-intention-state.js +146 -0
  1914. package/dist/runtime/intention/companion-intention-state.js.map +1 -0
  1915. package/dist/runtime/intention/index.d.ts +3 -0
  1916. package/dist/runtime/intention/index.d.ts.map +1 -0
  1917. package/dist/runtime/intention/index.js +2 -0
  1918. package/dist/runtime/intention/index.js.map +1 -0
  1919. package/dist/runtime/interactive-automation/browser-session-resolver.d.ts +26 -0
  1920. package/dist/runtime/interactive-automation/browser-session-resolver.d.ts.map +1 -0
  1921. package/dist/runtime/interactive-automation/browser-session-resolver.js +75 -0
  1922. package/dist/runtime/interactive-automation/browser-session-resolver.js.map +1 -0
  1923. package/dist/runtime/interactive-automation/browser-session-store.d.ts +8 -4
  1924. package/dist/runtime/interactive-automation/browser-session-store.d.ts.map +1 -1
  1925. package/dist/runtime/interactive-automation/browser-session-store.js +78 -9
  1926. package/dist/runtime/interactive-automation/browser-session-store.js.map +1 -1
  1927. package/dist/runtime/interactive-automation/index.d.ts +2 -0
  1928. package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
  1929. package/dist/runtime/interactive-automation/index.js +2 -0
  1930. package/dist/runtime/interactive-automation/index.js.map +1 -1
  1931. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts +40 -0
  1932. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts.map +1 -0
  1933. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js +198 -0
  1934. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js.map +1 -0
  1935. package/dist/runtime/leader-lock-manager.d.ts +27 -4
  1936. package/dist/runtime/leader-lock-manager.d.ts.map +1 -1
  1937. package/dist/runtime/leader-lock-manager.js +102 -105
  1938. package/dist/runtime/leader-lock-manager.js.map +1 -1
  1939. package/dist/runtime/mcp/compatibility.d.ts +53 -0
  1940. package/dist/runtime/mcp/compatibility.d.ts.map +1 -0
  1941. package/dist/runtime/mcp/compatibility.js +94 -0
  1942. package/dist/runtime/mcp/compatibility.js.map +1 -0
  1943. package/dist/runtime/mcp/index.d.ts +3 -0
  1944. package/dist/runtime/mcp/index.d.ts.map +1 -0
  1945. package/dist/runtime/mcp/index.js +2 -0
  1946. package/dist/runtime/mcp/index.js.map +1 -0
  1947. package/dist/runtime/notification-routing.d.ts.map +1 -1
  1948. package/dist/runtime/notification-routing.js +2 -1
  1949. package/dist/runtime/notification-routing.js.map +1 -1
  1950. package/dist/runtime/observation/index.d.ts +3 -0
  1951. package/dist/runtime/observation/index.d.ts.map +1 -0
  1952. package/dist/runtime/observation/index.js +2 -0
  1953. package/dist/runtime/observation/index.js.map +1 -0
  1954. package/dist/runtime/observation/observation-contracts.d.ts +1518 -0
  1955. package/dist/runtime/observation/observation-contracts.d.ts.map +1 -0
  1956. package/dist/runtime/observation/observation-contracts.js +311 -0
  1957. package/dist/runtime/observation/observation-contracts.js.map +1 -0
  1958. package/dist/runtime/permission-dialogue.d.ts +87 -10
  1959. package/dist/runtime/permission-dialogue.d.ts.map +1 -1
  1960. package/dist/runtime/permission-dialogue.js +39 -4
  1961. package/dist/runtime/permission-dialogue.js.map +1 -1
  1962. package/dist/runtime/permission-grant-decision.d.ts +50 -0
  1963. package/dist/runtime/permission-grant-decision.d.ts.map +1 -0
  1964. package/dist/runtime/permission-grant-decision.js +139 -0
  1965. package/dist/runtime/permission-grant-decision.js.map +1 -0
  1966. package/dist/runtime/pid-manager.d.ts +1 -0
  1967. package/dist/runtime/pid-manager.d.ts.map +1 -1
  1968. package/dist/runtime/pid-manager.js +44 -21
  1969. package/dist/runtime/pid-manager.js.map +1 -1
  1970. package/dist/runtime/plugin-loader.d.ts +10 -1
  1971. package/dist/runtime/plugin-loader.d.ts.map +1 -1
  1972. package/dist/runtime/plugin-loader.js +104 -78
  1973. package/dist/runtime/plugin-loader.js.map +1 -1
  1974. package/dist/runtime/plugin-manifest-reader.d.ts +38 -0
  1975. package/dist/runtime/plugin-manifest-reader.d.ts.map +1 -0
  1976. package/dist/runtime/plugin-manifest-reader.js +163 -0
  1977. package/dist/runtime/plugin-manifest-reader.js.map +1 -0
  1978. package/dist/runtime/port-utils.d.ts.map +1 -1
  1979. package/dist/runtime/port-utils.js +20 -6
  1980. package/dist/runtime/port-utils.js.map +1 -1
  1981. package/dist/runtime/queue/journal-backed-queue.d.ts +8 -7
  1982. package/dist/runtime/queue/journal-backed-queue.d.ts.map +1 -1
  1983. package/dist/runtime/queue/journal-backed-queue.js +172 -122
  1984. package/dist/runtime/queue/journal-backed-queue.js.map +1 -1
  1985. package/dist/runtime/resident-runtime-interface.d.ts +1034 -0
  1986. package/dist/runtime/resident-runtime-interface.d.ts.map +1 -0
  1987. package/dist/runtime/resident-runtime-interface.js +429 -0
  1988. package/dist/runtime/resident-runtime-interface.js.map +1 -0
  1989. package/dist/runtime/run-spec/confirmation.d.ts +4 -1
  1990. package/dist/runtime/run-spec/confirmation.d.ts.map +1 -1
  1991. package/dist/runtime/run-spec/confirmation.js +101 -6
  1992. package/dist/runtime/run-spec/confirmation.js.map +1 -1
  1993. package/dist/runtime/run-spec/derive.d.ts +29 -29
  1994. package/dist/runtime/run-spec/derive.d.ts.map +1 -1
  1995. package/dist/runtime/run-spec/derive.js +8 -7
  1996. package/dist/runtime/run-spec/derive.js.map +1 -1
  1997. package/dist/runtime/run-spec/handoff.d.ts.map +1 -1
  1998. package/dist/runtime/run-spec/handoff.js +73 -38
  1999. package/dist/runtime/run-spec/handoff.js.map +1 -1
  2000. package/dist/runtime/run-spec/index.d.ts +2 -0
  2001. package/dist/runtime/run-spec/index.d.ts.map +1 -1
  2002. package/dist/runtime/run-spec/index.js +1 -0
  2003. package/dist/runtime/run-spec/index.js.map +1 -1
  2004. package/dist/runtime/run-spec/pending-dialogue-arbiter.d.ts +4 -4
  2005. package/dist/runtime/run-spec/pending-dialogue-arbiter.js +1 -1
  2006. package/dist/runtime/run-spec/pending-dialogue-arbiter.js.map +1 -1
  2007. package/dist/runtime/run-spec/run-spec-state-migration.d.ts +13 -0
  2008. package/dist/runtime/run-spec/run-spec-state-migration.d.ts.map +1 -0
  2009. package/dist/runtime/run-spec/run-spec-state-migration.js +117 -0
  2010. package/dist/runtime/run-spec/run-spec-state-migration.js.map +1 -0
  2011. package/dist/runtime/run-spec/store.d.ts +9 -3
  2012. package/dist/runtime/run-spec/store.d.ts.map +1 -1
  2013. package/dist/runtime/run-spec/store.js +68 -19
  2014. package/dist/runtime/run-spec/store.js.map +1 -1
  2015. package/dist/runtime/run-spec/types.d.ts +49 -44
  2016. package/dist/runtime/run-spec/types.d.ts.map +1 -1
  2017. package/dist/runtime/run-spec/types.js +11 -6
  2018. package/dist/runtime/run-spec/types.js.map +1 -1
  2019. package/dist/runtime/schedule/engine-execution.d.ts +7 -3
  2020. package/dist/runtime/schedule/engine-execution.d.ts.map +1 -1
  2021. package/dist/runtime/schedule/engine-execution.js +61 -26
  2022. package/dist/runtime/schedule/engine-execution.js.map +1 -1
  2023. package/dist/runtime/schedule/engine-heartbeat.d.ts.map +1 -1
  2024. package/dist/runtime/schedule/engine-heartbeat.js +15 -7
  2025. package/dist/runtime/schedule/engine-heartbeat.js.map +1 -1
  2026. package/dist/runtime/schedule/engine-layers.d.ts +4 -1
  2027. package/dist/runtime/schedule/engine-layers.d.ts.map +1 -1
  2028. package/dist/runtime/schedule/engine-layers.js +155 -12
  2029. package/dist/runtime/schedule/engine-layers.js.map +1 -1
  2030. package/dist/runtime/schedule/engine-mutations.js.map +1 -1
  2031. package/dist/runtime/schedule/engine.d.ts +7 -3
  2032. package/dist/runtime/schedule/engine.d.ts.map +1 -1
  2033. package/dist/runtime/schedule/engine.js +62 -13
  2034. package/dist/runtime/schedule/engine.js.map +1 -1
  2035. package/dist/runtime/schedule/entry-normalization.d.ts +9 -0
  2036. package/dist/runtime/schedule/entry-normalization.d.ts.map +1 -0
  2037. package/dist/runtime/schedule/entry-normalization.js +105 -0
  2038. package/dist/runtime/schedule/entry-normalization.js.map +1 -0
  2039. package/dist/runtime/schedule/entry-store.d.ts +7 -6
  2040. package/dist/runtime/schedule/entry-store.d.ts.map +1 -1
  2041. package/dist/runtime/schedule/entry-store.js +94 -67
  2042. package/dist/runtime/schedule/entry-store.js.map +1 -1
  2043. package/dist/runtime/schedule/history.d.ts +649 -9
  2044. package/dist/runtime/schedule/history.d.ts.map +1 -1
  2045. package/dist/runtime/schedule/history.js +66 -23
  2046. package/dist/runtime/schedule/history.js.map +1 -1
  2047. package/dist/runtime/schedule/legacy-cron-migration.d.ts.map +1 -1
  2048. package/dist/runtime/schedule/legacy-cron-migration.js +34 -8
  2049. package/dist/runtime/schedule/legacy-cron-migration.js.map +1 -1
  2050. package/dist/runtime/schedule/presets.d.ts +20 -20
  2051. package/dist/runtime/schedule/presets.d.ts.map +1 -1
  2052. package/dist/runtime/schedule/presets.js +4 -2
  2053. package/dist/runtime/schedule/presets.js.map +1 -1
  2054. package/dist/runtime/schedule/source.d.ts +30 -28
  2055. package/dist/runtime/schedule/source.d.ts.map +1 -1
  2056. package/dist/runtime/schedule/source.js +16 -5
  2057. package/dist/runtime/schedule/source.js.map +1 -1
  2058. package/dist/runtime/schedule/wait-projection.d.ts.map +1 -1
  2059. package/dist/runtime/schedule/wait-projection.js +6 -9
  2060. package/dist/runtime/schedule/wait-projection.js.map +1 -1
  2061. package/dist/runtime/session-registry/registry-helpers.d.ts +2 -0
  2062. package/dist/runtime/session-registry/registry-helpers.d.ts.map +1 -1
  2063. package/dist/runtime/session-registry/registry-helpers.js +34 -10
  2064. package/dist/runtime/session-registry/registry-helpers.js.map +1 -1
  2065. package/dist/runtime/session-registry/registry.d.ts +3 -2
  2066. package/dist/runtime/session-registry/registry.d.ts.map +1 -1
  2067. package/dist/runtime/session-registry/registry.js +118 -211
  2068. package/dist/runtime/session-registry/registry.js.map +1 -1
  2069. package/dist/runtime/session-registry/types.d.ts +160 -160
  2070. package/dist/runtime/session-registry/types.d.ts.map +1 -1
  2071. package/dist/runtime/session-registry/types.js +1 -0
  2072. package/dist/runtime/session-registry/types.js.map +1 -1
  2073. package/dist/runtime/skills/skill-bundle.d.ts +45 -0
  2074. package/dist/runtime/skills/skill-bundle.d.ts.map +1 -0
  2075. package/dist/runtime/skills/skill-bundle.js +203 -0
  2076. package/dist/runtime/skills/skill-bundle.js.map +1 -0
  2077. package/dist/runtime/skills/skill-parser.d.ts +1 -0
  2078. package/dist/runtime/skills/skill-parser.d.ts.map +1 -1
  2079. package/dist/runtime/skills/skill-parser.js +30 -11
  2080. package/dist/runtime/skills/skill-parser.js.map +1 -1
  2081. package/dist/runtime/skills/skill-registry.d.ts +5 -0
  2082. package/dist/runtime/skills/skill-registry.d.ts.map +1 -1
  2083. package/dist/runtime/skills/skill-registry.js +53 -9
  2084. package/dist/runtime/skills/skill-registry.js.map +1 -1
  2085. package/dist/runtime/store/approval-store.d.ts +5 -5
  2086. package/dist/runtime/store/approval-store.d.ts.map +1 -1
  2087. package/dist/runtime/store/approval-store.js +86 -81
  2088. package/dist/runtime/store/approval-store.js.map +1 -1
  2089. package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
  2090. package/dist/runtime/store/artifact-retention.js +13 -2
  2091. package/dist/runtime/store/artifact-retention.js.map +1 -1
  2092. package/dist/runtime/store/attention-state-store.d.ts +195 -0
  2093. package/dist/runtime/store/attention-state-store.d.ts.map +1 -0
  2094. package/dist/runtime/store/attention-state-store.js +1186 -0
  2095. package/dist/runtime/store/attention-state-store.js.map +1 -0
  2096. package/dist/runtime/store/background-run-store.d.ts +233 -2
  2097. package/dist/runtime/store/background-run-store.d.ts.map +1 -1
  2098. package/dist/runtime/store/background-run-store.js +65 -9
  2099. package/dist/runtime/store/background-run-store.js.map +1 -1
  2100. package/dist/runtime/store/budget-store.d.ts +101 -48
  2101. package/dist/runtime/store/budget-store.d.ts.map +1 -1
  2102. package/dist/runtime/store/budget-store.js +226 -47
  2103. package/dist/runtime/store/budget-store.js.map +1 -1
  2104. package/dist/runtime/store/capability-registry-state-migration.d.ts +24 -0
  2105. package/dist/runtime/store/capability-registry-state-migration.d.ts.map +1 -0
  2106. package/dist/runtime/store/capability-registry-state-migration.js +208 -0
  2107. package/dist/runtime/store/capability-registry-state-migration.js.map +1 -0
  2108. package/dist/runtime/store/capability-registry-state-store.d.ts +36 -0
  2109. package/dist/runtime/store/capability-registry-state-store.d.ts.map +1 -0
  2110. package/dist/runtime/store/capability-registry-state-store.js +181 -0
  2111. package/dist/runtime/store/capability-registry-state-store.js.map +1 -0
  2112. package/dist/runtime/store/capability-verification-schemas.d.ts +184 -0
  2113. package/dist/runtime/store/capability-verification-schemas.d.ts.map +1 -0
  2114. package/dist/runtime/store/capability-verification-schemas.js +150 -0
  2115. package/dist/runtime/store/capability-verification-schemas.js.map +1 -0
  2116. package/dist/runtime/store/capability-verification-store.d.ts +31 -0
  2117. package/dist/runtime/store/capability-verification-store.d.ts.map +1 -0
  2118. package/dist/runtime/store/capability-verification-store.js +198 -0
  2119. package/dist/runtime/store/capability-verification-store.js.map +1 -0
  2120. package/dist/runtime/store/control-db/control-db.d.ts +80 -0
  2121. package/dist/runtime/store/control-db/control-db.d.ts.map +1 -0
  2122. package/dist/runtime/store/control-db/control-db.js +313 -0
  2123. package/dist/runtime/store/control-db/control-db.js.map +1 -0
  2124. package/dist/runtime/store/control-db/index.d.ts +7 -0
  2125. package/dist/runtime/store/control-db/index.d.ts.map +1 -0
  2126. package/dist/runtime/store/control-db/index.js +4 -0
  2127. package/dist/runtime/store/control-db/index.js.map +1 -0
  2128. package/dist/runtime/store/control-db/runtime-control-db.d.ts +11 -0
  2129. package/dist/runtime/store/control-db/runtime-control-db.d.ts.map +1 -0
  2130. package/dist/runtime/store/control-db/runtime-control-db.js +27 -0
  2131. package/dist/runtime/store/control-db/runtime-control-db.js.map +1 -0
  2132. package/dist/runtime/store/control-db/schema.d.ts +41 -0
  2133. package/dist/runtime/store/control-db/schema.d.ts.map +1 -0
  2134. package/dist/runtime/store/control-db/schema.js +2032 -0
  2135. package/dist/runtime/store/control-db/schema.js.map +1 -0
  2136. package/dist/runtime/store/curiosity-state-migration.d.ts +14 -0
  2137. package/dist/runtime/store/curiosity-state-migration.d.ts.map +1 -0
  2138. package/dist/runtime/store/curiosity-state-migration.js +98 -0
  2139. package/dist/runtime/store/curiosity-state-migration.js.map +1 -0
  2140. package/dist/runtime/store/curiosity-state-store.d.ts +19 -0
  2141. package/dist/runtime/store/curiosity-state-store.d.ts.map +1 -0
  2142. package/dist/runtime/store/curiosity-state-store.js +161 -0
  2143. package/dist/runtime/store/curiosity-state-store.js.map +1 -0
  2144. package/dist/runtime/store/daemon-state-store.d.ts +25 -0
  2145. package/dist/runtime/store/daemon-state-store.d.ts.map +1 -0
  2146. package/dist/runtime/store/daemon-state-store.js +145 -0
  2147. package/dist/runtime/store/daemon-state-store.js.map +1 -0
  2148. package/dist/runtime/store/dream-decision-heuristic-migration.d.ts +8 -0
  2149. package/dist/runtime/store/dream-decision-heuristic-migration.d.ts.map +1 -0
  2150. package/dist/runtime/store/dream-decision-heuristic-migration.js +89 -0
  2151. package/dist/runtime/store/dream-decision-heuristic-migration.js.map +1 -0
  2152. package/dist/runtime/store/dream-decision-heuristic-store.d.ts +13 -0
  2153. package/dist/runtime/store/dream-decision-heuristic-store.d.ts.map +1 -0
  2154. package/dist/runtime/store/dream-decision-heuristic-store.js +62 -0
  2155. package/dist/runtime/store/dream-decision-heuristic-store.js.map +1 -0
  2156. package/dist/runtime/store/ethics-log-migration.d.ts +12 -0
  2157. package/dist/runtime/store/ethics-log-migration.d.ts.map +1 -0
  2158. package/dist/runtime/store/ethics-log-migration.js +94 -0
  2159. package/dist/runtime/store/ethics-log-migration.js.map +1 -0
  2160. package/dist/runtime/store/ethics-log-store.d.ts +20 -0
  2161. package/dist/runtime/store/ethics-log-store.d.ts.map +1 -0
  2162. package/dist/runtime/store/ethics-log-store.js +90 -0
  2163. package/dist/runtime/store/ethics-log-store.js.map +1 -0
  2164. package/dist/runtime/store/evidence-ledger.d.ts +8 -203
  2165. package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
  2166. package/dist/runtime/store/evidence-ledger.js +172 -507
  2167. package/dist/runtime/store/evidence-ledger.js.map +1 -1
  2168. package/dist/runtime/store/evidence-types.d.ts +860 -841
  2169. package/dist/runtime/store/evidence-types.d.ts.map +1 -1
  2170. package/dist/runtime/store/evidence-types.js +7 -4
  2171. package/dist/runtime/store/evidence-types.js.map +1 -1
  2172. package/dist/runtime/store/execution-session-state-migration.d.ts +14 -0
  2173. package/dist/runtime/store/execution-session-state-migration.d.ts.map +1 -0
  2174. package/dist/runtime/store/execution-session-state-migration.js +184 -0
  2175. package/dist/runtime/store/execution-session-state-migration.js.map +1 -0
  2176. package/dist/runtime/store/execution-session-state-store.d.ts +21 -0
  2177. package/dist/runtime/store/execution-session-state-store.d.ts.map +1 -0
  2178. package/dist/runtime/store/execution-session-state-store.js +117 -0
  2179. package/dist/runtime/store/execution-session-state-store.js.map +1 -0
  2180. package/dist/runtime/store/experiment-queue-store.d.ts +76 -72
  2181. package/dist/runtime/store/experiment-queue-store.d.ts.map +1 -1
  2182. package/dist/runtime/store/experiment-queue-store.js +72 -9
  2183. package/dist/runtime/store/experiment-queue-store.js.map +1 -1
  2184. package/dist/runtime/store/feedback-ingestion-store.d.ts +19 -0
  2185. package/dist/runtime/store/feedback-ingestion-store.d.ts.map +1 -0
  2186. package/dist/runtime/store/feedback-ingestion-store.js +147 -0
  2187. package/dist/runtime/store/feedback-ingestion-store.js.map +1 -0
  2188. package/dist/runtime/store/goal-orchestration-state-migration.d.ts +14 -0
  2189. package/dist/runtime/store/goal-orchestration-state-migration.d.ts.map +1 -0
  2190. package/dist/runtime/store/goal-orchestration-state-migration.js +206 -0
  2191. package/dist/runtime/store/goal-orchestration-state-migration.js.map +1 -0
  2192. package/dist/runtime/store/goal-orchestration-state-store.d.ts +25 -0
  2193. package/dist/runtime/store/goal-orchestration-state-store.d.ts.map +1 -0
  2194. package/dist/runtime/store/goal-orchestration-state-store.js +101 -0
  2195. package/dist/runtime/store/goal-orchestration-state-store.js.map +1 -0
  2196. package/dist/runtime/store/goal-task-state-migration.d.ts +24 -0
  2197. package/dist/runtime/store/goal-task-state-migration.d.ts.map +1 -0
  2198. package/dist/runtime/store/goal-task-state-migration.js +554 -0
  2199. package/dist/runtime/store/goal-task-state-migration.js.map +1 -0
  2200. package/dist/runtime/store/goal-task-state-store.d.ts +85 -0
  2201. package/dist/runtime/store/goal-task-state-store.d.ts.map +1 -0
  2202. package/dist/runtime/store/goal-task-state-store.js +992 -0
  2203. package/dist/runtime/store/goal-task-state-store.js.map +1 -0
  2204. package/dist/runtime/store/health-store.d.ts +5 -2
  2205. package/dist/runtime/store/health-store.d.ts.map +1 -1
  2206. package/dist/runtime/store/health-store.js +70 -23
  2207. package/dist/runtime/store/health-store.js.map +1 -1
  2208. package/dist/runtime/store/index.d.ts +91 -4
  2209. package/dist/runtime/store/index.d.ts.map +1 -1
  2210. package/dist/runtime/store/index.js +49 -3
  2211. package/dist/runtime/store/index.js.map +1 -1
  2212. package/dist/runtime/store/knowledge-memory-state-migration.d.ts +14 -0
  2213. package/dist/runtime/store/knowledge-memory-state-migration.d.ts.map +1 -0
  2214. package/dist/runtime/store/knowledge-memory-state-migration.js +160 -0
  2215. package/dist/runtime/store/knowledge-memory-state-migration.js.map +1 -0
  2216. package/dist/runtime/store/knowledge-transfer-state-migration.d.ts +14 -0
  2217. package/dist/runtime/store/knowledge-transfer-state-migration.d.ts.map +1 -0
  2218. package/dist/runtime/store/knowledge-transfer-state-migration.js +210 -0
  2219. package/dist/runtime/store/knowledge-transfer-state-migration.js.map +1 -0
  2220. package/dist/runtime/store/knowledge-transfer-state-store.d.ts +658 -0
  2221. package/dist/runtime/store/knowledge-transfer-state-store.d.ts.map +1 -0
  2222. package/dist/runtime/store/knowledge-transfer-state-store.js +214 -0
  2223. package/dist/runtime/store/knowledge-transfer-state-store.js.map +1 -0
  2224. package/dist/runtime/store/learning-runtime-state-migration.d.ts +16 -0
  2225. package/dist/runtime/store/learning-runtime-state-migration.d.ts.map +1 -0
  2226. package/dist/runtime/store/learning-runtime-state-migration.js +202 -0
  2227. package/dist/runtime/store/learning-runtime-state-migration.js.map +1 -0
  2228. package/dist/runtime/store/learning-runtime-state-store.d.ts +53 -0
  2229. package/dist/runtime/store/learning-runtime-state-store.d.ts.map +1 -0
  2230. package/dist/runtime/store/learning-runtime-state-store.js +232 -0
  2231. package/dist/runtime/store/learning-runtime-state-store.js.map +1 -0
  2232. package/dist/runtime/store/memory-lifecycle-state-migration.d.ts +18 -0
  2233. package/dist/runtime/store/memory-lifecycle-state-migration.d.ts.map +1 -0
  2234. package/dist/runtime/store/memory-lifecycle-state-migration.js +344 -0
  2235. package/dist/runtime/store/memory-lifecycle-state-migration.js.map +1 -0
  2236. package/dist/runtime/store/metric-history.d.ts +4 -1
  2237. package/dist/runtime/store/metric-history.d.ts.map +1 -1
  2238. package/dist/runtime/store/metric-history.js +18 -3
  2239. package/dist/runtime/store/metric-history.js.map +1 -1
  2240. package/dist/runtime/store/operator-handoff-store.d.ts +22 -17
  2241. package/dist/runtime/store/operator-handoff-store.d.ts.map +1 -1
  2242. package/dist/runtime/store/operator-handoff-store.js +74 -7
  2243. package/dist/runtime/store/operator-handoff-store.js.map +1 -1
  2244. package/dist/runtime/store/outbox-store.d.ts +5 -3
  2245. package/dist/runtime/store/outbox-store.d.ts.map +1 -1
  2246. package/dist/runtime/store/outbox-store.js +76 -66
  2247. package/dist/runtime/store/outbox-store.js.map +1 -1
  2248. package/dist/runtime/store/permission-grant-store.d.ts +961 -0
  2249. package/dist/runtime/store/permission-grant-store.d.ts.map +1 -0
  2250. package/dist/runtime/store/permission-grant-store.js +525 -0
  2251. package/dist/runtime/store/permission-grant-store.js.map +1 -0
  2252. package/dist/runtime/store/permission-wait-plan-store.d.ts +633 -0
  2253. package/dist/runtime/store/permission-wait-plan-store.d.ts.map +1 -0
  2254. package/dist/runtime/store/permission-wait-plan-store.js +366 -0
  2255. package/dist/runtime/store/permission-wait-plan-store.js.map +1 -0
  2256. package/dist/runtime/store/plugin-channel-runtime-state-migration.d.ts +14 -0
  2257. package/dist/runtime/store/plugin-channel-runtime-state-migration.d.ts.map +1 -0
  2258. package/dist/runtime/store/plugin-channel-runtime-state-migration.js +204 -0
  2259. package/dist/runtime/store/plugin-channel-runtime-state-migration.js.map +1 -0
  2260. package/dist/runtime/store/plugin-channel-runtime-state-store.d.ts +78 -0
  2261. package/dist/runtime/store/plugin-channel-runtime-state-store.d.ts.map +1 -0
  2262. package/dist/runtime/store/plugin-channel-runtime-state-store.js +278 -0
  2263. package/dist/runtime/store/plugin-channel-runtime-state-store.js.map +1 -0
  2264. package/dist/runtime/store/postmortem-report.d.ts +10 -8
  2265. package/dist/runtime/store/postmortem-report.d.ts.map +1 -1
  2266. package/dist/runtime/store/postmortem-report.js +40 -18
  2267. package/dist/runtime/store/postmortem-report.js.map +1 -1
  2268. package/dist/runtime/store/proactive-intervention-store.d.ts +2376 -33
  2269. package/dist/runtime/store/proactive-intervention-store.d.ts.map +1 -1
  2270. package/dist/runtime/store/proactive-intervention-store.js +83 -37
  2271. package/dist/runtime/store/proactive-intervention-store.js.map +1 -1
  2272. package/dist/runtime/store/process-session-state-store.d.ts +83 -0
  2273. package/dist/runtime/store/process-session-state-store.d.ts.map +1 -0
  2274. package/dist/runtime/store/process-session-state-store.js +199 -0
  2275. package/dist/runtime/store/process-session-state-store.js.map +1 -0
  2276. package/dist/runtime/store/queue-daemon-schedule-state-migration.d.ts +17 -0
  2277. package/dist/runtime/store/queue-daemon-schedule-state-migration.d.ts.map +1 -0
  2278. package/dist/runtime/store/queue-daemon-schedule-state-migration.js +261 -0
  2279. package/dist/runtime/store/queue-daemon-schedule-state-migration.js.map +1 -0
  2280. package/dist/runtime/store/relationship-profile-proposal-state-migration.d.ts +13 -0
  2281. package/dist/runtime/store/relationship-profile-proposal-state-migration.d.ts.map +1 -0
  2282. package/dist/runtime/store/relationship-profile-proposal-state-migration.js +94 -0
  2283. package/dist/runtime/store/relationship-profile-proposal-state-migration.js.map +1 -0
  2284. package/dist/runtime/store/reproducibility-manifest.d.ts +33 -33
  2285. package/dist/runtime/store/reproducibility-manifest.d.ts.map +1 -1
  2286. package/dist/runtime/store/reproducibility-manifest.js +22 -11
  2287. package/dist/runtime/store/reproducibility-manifest.js.map +1 -1
  2288. package/dist/runtime/store/runtime-control-state-migration.d.ts +23 -0
  2289. package/dist/runtime/store/runtime-control-state-migration.d.ts.map +1 -0
  2290. package/dist/runtime/store/runtime-control-state-migration.js +151 -0
  2291. package/dist/runtime/store/runtime-control-state-migration.js.map +1 -0
  2292. package/dist/runtime/store/runtime-control-store-migration.d.ts +18 -0
  2293. package/dist/runtime/store/runtime-control-store-migration.d.ts.map +1 -0
  2294. package/dist/runtime/store/runtime-control-store-migration.js +119 -0
  2295. package/dist/runtime/store/runtime-control-store-migration.js.map +1 -0
  2296. package/dist/runtime/store/runtime-evidence-state-store.d.ts +34 -0
  2297. package/dist/runtime/store/runtime-evidence-state-store.d.ts.map +1 -0
  2298. package/dist/runtime/store/runtime-evidence-state-store.js +181 -0
  2299. package/dist/runtime/store/runtime-evidence-state-store.js.map +1 -0
  2300. package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.d.ts +24 -0
  2301. package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.d.ts.map +1 -0
  2302. package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.js +369 -0
  2303. package/dist/runtime/store/runtime-evidence-strategy-dream-state-migration.js.map +1 -0
  2304. package/dist/runtime/store/runtime-evidence-summary-types.d.ts +213 -0
  2305. package/dist/runtime/store/runtime-evidence-summary-types.d.ts.map +1 -0
  2306. package/dist/runtime/store/runtime-evidence-summary-types.js +2 -0
  2307. package/dist/runtime/store/runtime-evidence-summary-types.js.map +1 -0
  2308. package/dist/runtime/store/runtime-journal-state-migration.d.ts +20 -0
  2309. package/dist/runtime/store/runtime-journal-state-migration.d.ts.map +1 -0
  2310. package/dist/runtime/store/runtime-journal-state-migration.js +280 -0
  2311. package/dist/runtime/store/runtime-journal-state-migration.js.map +1 -0
  2312. package/dist/runtime/store/runtime-journal.d.ts +0 -11
  2313. package/dist/runtime/store/runtime-journal.d.ts.map +1 -1
  2314. package/dist/runtime/store/runtime-journal.js +0 -25
  2315. package/dist/runtime/store/runtime-journal.js.map +1 -1
  2316. package/dist/runtime/store/runtime-operation-companion.d.ts +13 -0
  2317. package/dist/runtime/store/runtime-operation-companion.d.ts.map +1 -0
  2318. package/dist/runtime/store/runtime-operation-companion.js +597 -0
  2319. package/dist/runtime/store/runtime-operation-companion.js.map +1 -0
  2320. package/dist/runtime/store/runtime-operation-schemas.d.ts +692 -70
  2321. package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
  2322. package/dist/runtime/store/runtime-operation-schemas.js +70 -1
  2323. package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
  2324. package/dist/runtime/store/runtime-operation-store.d.ts +19 -8
  2325. package/dist/runtime/store/runtime-operation-store.d.ts.map +1 -1
  2326. package/dist/runtime/store/runtime-operation-store.js +173 -36
  2327. package/dist/runtime/store/runtime-operation-store.js.map +1 -1
  2328. package/dist/runtime/store/runtime-paths.d.ts +4 -15
  2329. package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
  2330. package/dist/runtime/store/runtime-paths.js +10 -55
  2331. package/dist/runtime/store/runtime-paths.js.map +1 -1
  2332. package/dist/runtime/store/runtime-schemas.d.ts +2689 -56
  2333. package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
  2334. package/dist/runtime/store/runtime-schemas.js +153 -35
  2335. package/dist/runtime/store/runtime-schemas.js.map +1 -1
  2336. package/dist/runtime/store/safe-pause-store.d.ts +5 -2
  2337. package/dist/runtime/store/safe-pause-store.d.ts.map +1 -1
  2338. package/dist/runtime/store/safe-pause-store.js +46 -8
  2339. package/dist/runtime/store/safe-pause-store.js.map +1 -1
  2340. package/dist/runtime/store/stall-state-migration.d.ts +13 -0
  2341. package/dist/runtime/store/stall-state-migration.d.ts.map +1 -0
  2342. package/dist/runtime/store/stall-state-migration.js +143 -0
  2343. package/dist/runtime/store/stall-state-migration.js.map +1 -0
  2344. package/dist/runtime/store/stall-state-store.d.ts +22 -0
  2345. package/dist/runtime/store/stall-state-store.d.ts.map +1 -0
  2346. package/dist/runtime/store/stall-state-store.js +76 -0
  2347. package/dist/runtime/store/stall-state-store.js.map +1 -0
  2348. package/dist/runtime/store/strategy-dream-state-store.d.ts +65 -0
  2349. package/dist/runtime/store/strategy-dream-state-store.d.ts.map +1 -0
  2350. package/dist/runtime/store/strategy-dream-state-store.js +524 -0
  2351. package/dist/runtime/store/strategy-dream-state-store.js.map +1 -0
  2352. package/dist/runtime/store/supervisor-state-store.d.ts +71 -0
  2353. package/dist/runtime/store/supervisor-state-store.d.ts.map +1 -0
  2354. package/dist/runtime/store/supervisor-state-store.js +134 -0
  2355. package/dist/runtime/store/supervisor-state-store.js.map +1 -0
  2356. package/dist/runtime/store/transfer-trust-state-migration.d.ts +15 -0
  2357. package/dist/runtime/store/transfer-trust-state-migration.d.ts.map +1 -0
  2358. package/dist/runtime/store/transfer-trust-state-migration.js +281 -0
  2359. package/dist/runtime/store/transfer-trust-state-migration.js.map +1 -0
  2360. package/dist/runtime/store/transfer-trust-state-store.d.ts +62 -0
  2361. package/dist/runtime/store/transfer-trust-state-store.d.ts.map +1 -0
  2362. package/dist/runtime/store/transfer-trust-state-store.js +322 -0
  2363. package/dist/runtime/store/transfer-trust-state-store.js.map +1 -0
  2364. package/dist/runtime/store/trust-state-migration.d.ts +14 -0
  2365. package/dist/runtime/store/trust-state-migration.d.ts.map +1 -0
  2366. package/dist/runtime/store/trust-state-migration.js +99 -0
  2367. package/dist/runtime/store/trust-state-migration.js.map +1 -0
  2368. package/dist/runtime/store/trust-state-store.d.ts +18 -0
  2369. package/dist/runtime/store/trust-state-store.d.ts.map +1 -0
  2370. package/dist/runtime/store/trust-state-store.js +132 -0
  2371. package/dist/runtime/store/trust-state-store.js.map +1 -0
  2372. package/dist/runtime/trigger-mapper.d.ts +1 -0
  2373. package/dist/runtime/trigger-mapper.d.ts.map +1 -1
  2374. package/dist/runtime/trigger-mapper.js +83 -18
  2375. package/dist/runtime/trigger-mapper.js.map +1 -1
  2376. package/dist/runtime/trigger-mappings-json.d.ts +4 -0
  2377. package/dist/runtime/trigger-mappings-json.d.ts.map +1 -0
  2378. package/dist/runtime/trigger-mappings-json.js +10 -0
  2379. package/dist/runtime/trigger-mappings-json.js.map +1 -0
  2380. package/dist/runtime/types/capability-operation-plan.d.ts +580 -0
  2381. package/dist/runtime/types/capability-operation-plan.d.ts.map +1 -0
  2382. package/dist/runtime/types/capability-operation-plan.js +38 -0
  2383. package/dist/runtime/types/capability-operation-plan.js.map +1 -0
  2384. package/dist/runtime/types/companion-autonomy.d.ts +10283 -0
  2385. package/dist/runtime/types/companion-autonomy.d.ts.map +1 -0
  2386. package/dist/runtime/types/companion-autonomy.js +1091 -0
  2387. package/dist/runtime/types/companion-autonomy.js.map +1 -0
  2388. package/dist/runtime/types/companion-state.d.ts +8234 -0
  2389. package/dist/runtime/types/companion-state.d.ts.map +1 -0
  2390. package/dist/runtime/types/companion-state.js +403 -0
  2391. package/dist/runtime/types/companion-state.js.map +1 -0
  2392. package/dist/runtime/types/companion.d.ts +74 -72
  2393. package/dist/runtime/types/companion.d.ts.map +1 -1
  2394. package/dist/runtime/types/companion.js +3 -1
  2395. package/dist/runtime/types/companion.js.map +1 -1
  2396. package/dist/runtime/types/daemon.d.ts +2121 -33
  2397. package/dist/runtime/types/daemon.d.ts.map +1 -1
  2398. package/dist/runtime/types/daemon.js +69 -26
  2399. package/dist/runtime/types/daemon.js.map +1 -1
  2400. package/dist/runtime/types/envelope.d.ts +8 -8
  2401. package/dist/runtime/types/envelope.js +2 -2
  2402. package/dist/runtime/types/envelope.js.map +1 -1
  2403. package/dist/runtime/types/hook.d.ts.map +1 -1
  2404. package/dist/runtime/types/hook.js +2 -1
  2405. package/dist/runtime/types/hook.js.map +1 -1
  2406. package/dist/runtime/types/notification.d.ts +57 -56
  2407. package/dist/runtime/types/notification.d.ts.map +1 -1
  2408. package/dist/runtime/types/notification.js +24 -10
  2409. package/dist/runtime/types/notification.js.map +1 -1
  2410. package/dist/runtime/types/plugin.d.ts +8 -8
  2411. package/dist/runtime/types/plugin.d.ts.map +1 -1
  2412. package/dist/runtime/types/plugin.js +30 -15
  2413. package/dist/runtime/types/plugin.js.map +1 -1
  2414. package/dist/runtime/types/schedule.d.ts +1385 -97
  2415. package/dist/runtime/types/schedule.d.ts.map +1 -1
  2416. package/dist/runtime/types/schedule.js +120 -27
  2417. package/dist/runtime/types/schedule.js.map +1 -1
  2418. package/dist/runtime/types/trigger.d.ts +6 -6
  2419. package/dist/runtime/visibility/cognitive-replay-index.d.ts +1072 -0
  2420. package/dist/runtime/visibility/cognitive-replay-index.d.ts.map +1 -0
  2421. package/dist/runtime/visibility/cognitive-replay-index.js +226 -0
  2422. package/dist/runtime/visibility/cognitive-replay-index.js.map +1 -0
  2423. package/dist/runtime/visibility/companion-audit-visibility.d.ts +161 -0
  2424. package/dist/runtime/visibility/companion-audit-visibility.d.ts.map +1 -0
  2425. package/dist/runtime/visibility/companion-audit-visibility.js +565 -0
  2426. package/dist/runtime/visibility/companion-audit-visibility.js.map +1 -0
  2427. package/dist/runtime/visibility/index.d.ts +5 -0
  2428. package/dist/runtime/visibility/index.d.ts.map +1 -0
  2429. package/dist/runtime/visibility/index.js +3 -0
  2430. package/dist/runtime/visibility/index.js.map +1 -0
  2431. package/dist/runtime/watchdog.d.ts +9 -1
  2432. package/dist/runtime/watchdog.d.ts.map +1 -1
  2433. package/dist/runtime/watchdog.js +53 -11
  2434. package/dist/runtime/watchdog.js.map +1 -1
  2435. package/dist/tools/automation/InteractiveAutomationTools.d.ts +68 -208
  2436. package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
  2437. package/dist/tools/automation/InteractiveAutomationTools.js +76 -123
  2438. package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
  2439. package/dist/tools/automation/automation-tool-base.d.ts +37 -0
  2440. package/dist/tools/automation/automation-tool-base.d.ts.map +1 -0
  2441. package/dist/tools/automation/automation-tool-base.js +77 -0
  2442. package/dist/tools/automation/automation-tool-base.js.map +1 -0
  2443. package/dist/tools/automation/interactive-automation-schemas.d.ts +136 -0
  2444. package/dist/tools/automation/interactive-automation-schemas.d.ts.map +1 -0
  2445. package/dist/tools/automation/interactive-automation-schemas.js +54 -0
  2446. package/dist/tools/automation/interactive-automation-schemas.js.map +1 -0
  2447. package/dist/tools/builtin/factory.d.ts +6 -3
  2448. package/dist/tools/builtin/factory.d.ts.map +1 -1
  2449. package/dist/tools/builtin/factory.js +10 -4
  2450. package/dist/tools/builtin/factory.js.map +1 -1
  2451. package/dist/tools/capability-execution-records.d.ts +8 -0
  2452. package/dist/tools/capability-execution-records.d.ts.map +1 -0
  2453. package/dist/tools/capability-execution-records.js +165 -0
  2454. package/dist/tools/capability-execution-records.js.map +1 -0
  2455. package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts +4 -4
  2456. package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +40 -40
  2457. package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.d.ts +2 -2
  2458. package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.d.ts.map +1 -1
  2459. package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.js +1 -1
  2460. package/dist/tools/execution/QueryDataSourceTool/QueryDataSourceTool.js.map +1 -1
  2461. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts +2 -2
  2462. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
  2463. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +1 -1
  2464. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
  2465. package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.d.ts +2 -2
  2466. package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.d.ts.map +1 -1
  2467. package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.js +1 -1
  2468. package/dist/tools/execution/SoilDoctorTool/SoilDoctorTool.js.map +1 -1
  2469. package/dist/tools/execution/SoilImportTool/SoilImportTool.d.ts +8 -8
  2470. package/dist/tools/execution/SoilImportTool/SoilImportTool.js +4 -4
  2471. package/dist/tools/execution/SoilImportTool/SoilImportTool.js.map +1 -1
  2472. package/dist/tools/execution/SoilOpenTool/SoilOpenTool.d.ts +2 -2
  2473. package/dist/tools/execution/SoilOpenTool/SoilOpenTool.d.ts.map +1 -1
  2474. package/dist/tools/execution/SoilOpenTool/SoilOpenTool.js +1 -1
  2475. package/dist/tools/execution/SoilOpenTool/SoilOpenTool.js.map +1 -1
  2476. package/dist/tools/execution/SoilPublishTool/SoilPublishTool.d.ts +2 -2
  2477. package/dist/tools/execution/SoilPublishTool/SoilPublishTool.d.ts.map +1 -1
  2478. package/dist/tools/execution/SoilPublishTool/SoilPublishTool.js +1 -1
  2479. package/dist/tools/execution/SoilPublishTool/SoilPublishTool.js.map +1 -1
  2480. package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.d.ts +2 -2
  2481. package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.d.ts.map +1 -1
  2482. package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.js +1 -1
  2483. package/dist/tools/execution/SoilRebuildTool/SoilRebuildTool.js.map +1 -1
  2484. package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.d.ts +3 -2
  2485. package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.d.ts.map +1 -1
  2486. package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.js +3 -2
  2487. package/dist/tools/execution/SpawnSessionTool/SpawnSessionTool.js.map +1 -1
  2488. package/dist/tools/execution-orchestrator.d.ts +2 -9
  2489. package/dist/tools/execution-orchestrator.d.ts.map +1 -1
  2490. package/dist/tools/execution-orchestrator.js.map +1 -1
  2491. package/dist/tools/executor.d.ts +2 -0
  2492. package/dist/tools/executor.d.ts.map +1 -1
  2493. package/dist/tools/executor.js +163 -22
  2494. package/dist/tools/executor.js.map +1 -1
  2495. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts +2 -2
  2496. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
  2497. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +1 -1
  2498. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
  2499. package/dist/tools/fs/FileEditTool/FileEditTool.d.ts +2 -2
  2500. package/dist/tools/fs/FileEditTool/FileEditTool.d.ts.map +1 -1
  2501. package/dist/tools/fs/FileEditTool/FileEditTool.js +1 -1
  2502. package/dist/tools/fs/FileEditTool/FileEditTool.js.map +1 -1
  2503. package/dist/tools/fs/FileWriteTool/FileWriteTool.d.ts +2 -2
  2504. package/dist/tools/fs/FileWriteTool/FileWriteTool.d.ts.map +1 -1
  2505. package/dist/tools/fs/FileWriteTool/FileWriteTool.js +1 -1
  2506. package/dist/tools/fs/FileWriteTool/FileWriteTool.js.map +1 -1
  2507. package/dist/tools/fs/GlobTool/GlobTool.d.ts +2 -2
  2508. package/dist/tools/fs/GlobTool/GlobTool.d.ts.map +1 -1
  2509. package/dist/tools/fs/GlobTool/GlobTool.js +23 -9
  2510. package/dist/tools/fs/GlobTool/GlobTool.js.map +1 -1
  2511. package/dist/tools/fs/GrepTool/GrepTool.d.ts +8 -2
  2512. package/dist/tools/fs/GrepTool/GrepTool.d.ts.map +1 -1
  2513. package/dist/tools/fs/GrepTool/GrepTool.js +53 -7
  2514. package/dist/tools/fs/GrepTool/GrepTool.js.map +1 -1
  2515. package/dist/tools/fs/GrepTool/prompt.d.ts +1 -1
  2516. package/dist/tools/fs/GrepTool/prompt.d.ts.map +1 -1
  2517. package/dist/tools/fs/GrepTool/prompt.js +1 -1
  2518. package/dist/tools/fs/GrepTool/prompt.js.map +1 -1
  2519. package/dist/tools/fs/JsonQueryTool/JsonQueryTool.d.ts +2 -2
  2520. package/dist/tools/fs/JsonQueryTool/JsonQueryTool.d.ts.map +1 -1
  2521. package/dist/tools/fs/JsonQueryTool/JsonQueryTool.js +20 -5
  2522. package/dist/tools/fs/JsonQueryTool/JsonQueryTool.js.map +1 -1
  2523. package/dist/tools/fs/JsonQueryTool/constants.d.ts +1 -0
  2524. package/dist/tools/fs/JsonQueryTool/constants.d.ts.map +1 -1
  2525. package/dist/tools/fs/JsonQueryTool/constants.js +1 -0
  2526. package/dist/tools/fs/JsonQueryTool/constants.js.map +1 -1
  2527. package/dist/tools/fs/ListDirTool/ListDirTool.d.ts +2 -2
  2528. package/dist/tools/fs/ListDirTool/ListDirTool.d.ts.map +1 -1
  2529. package/dist/tools/fs/ListDirTool/ListDirTool.js +7 -4
  2530. package/dist/tools/fs/ListDirTool/ListDirTool.js.map +1 -1
  2531. package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.d.ts +2 -2
  2532. package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.d.ts.map +1 -1
  2533. package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.js +1 -1
  2534. package/dist/tools/fs/ReadPulseedFileTool/ReadPulseedFileTool.js.map +1 -1
  2535. package/dist/tools/fs/ReadTool/ReadTool.d.ts +2 -2
  2536. package/dist/tools/fs/ReadTool/ReadTool.d.ts.map +1 -1
  2537. package/dist/tools/fs/ReadTool/ReadTool.js +51 -12
  2538. package/dist/tools/fs/ReadTool/ReadTool.js.map +1 -1
  2539. package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.d.ts +2 -2
  2540. package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.d.ts.map +1 -1
  2541. package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.js +1 -2
  2542. package/dist/tools/fs/WritePulseedFileTool/WritePulseedFileTool.js.map +1 -1
  2543. package/dist/tools/interaction/AskHumanTool/AskHumanTool.d.ts +75 -2
  2544. package/dist/tools/interaction/AskHumanTool/AskHumanTool.d.ts.map +1 -1
  2545. package/dist/tools/interaction/AskHumanTool/AskHumanTool.js +55 -6
  2546. package/dist/tools/interaction/AskHumanTool/AskHumanTool.js.map +1 -1
  2547. package/dist/tools/interaction/AskHumanTool/prompt.d.ts +1 -1
  2548. package/dist/tools/interaction/AskHumanTool/prompt.d.ts.map +1 -1
  2549. package/dist/tools/interaction/AskHumanTool/prompt.js +1 -1
  2550. package/dist/tools/interaction/AskHumanTool/prompt.js.map +1 -1
  2551. package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.d.ts +2 -2
  2552. package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.d.ts.map +1 -1
  2553. package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.js +4 -4
  2554. package/dist/tools/interaction/CreatePlanTool/CreatePlanTool.js.map +1 -1
  2555. package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.d.ts +2 -2
  2556. package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.d.ts.map +1 -1
  2557. package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.js +14 -5
  2558. package/dist/tools/interaction/ReadPlanTool/ReadPlanTool.js.map +1 -1
  2559. package/dist/tools/interaction/plan-utils.d.ts +3 -0
  2560. package/dist/tools/interaction/plan-utils.d.ts.map +1 -1
  2561. package/dist/tools/interaction/plan-utils.js +3 -0
  2562. package/dist/tools/interaction/plan-utils.js.map +1 -1
  2563. package/dist/tools/kaggle/KaggleExperimentTools.d.ts +2 -2
  2564. package/dist/tools/kaggle/KaggleExperimentTools.d.ts.map +1 -1
  2565. package/dist/tools/kaggle/KaggleExperimentTools.js +18 -323
  2566. package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
  2567. package/dist/tools/kaggle/KaggleSubmissionTools.d.ts +6 -6
  2568. package/dist/tools/kaggle/KaggleSubmissionTools.d.ts.map +1 -1
  2569. package/dist/tools/kaggle/KaggleSubmissionTools.js +13 -6
  2570. package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
  2571. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +6 -5
  2572. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
  2573. package/dist/tools/kaggle/experiment-artifacts.d.ts +16 -0
  2574. package/dist/tools/kaggle/experiment-artifacts.d.ts.map +1 -0
  2575. package/dist/tools/kaggle/experiment-artifacts.js +103 -0
  2576. package/dist/tools/kaggle/experiment-artifacts.js.map +1 -0
  2577. package/dist/tools/kaggle/metrics.d.ts +2 -2
  2578. package/dist/tools/kaggle/metrics.js +3 -1
  2579. package/dist/tools/kaggle/metrics.js.map +1 -1
  2580. package/dist/tools/kaggle/paths.d.ts.map +1 -1
  2581. package/dist/tools/kaggle/paths.js +12 -8
  2582. package/dist/tools/kaggle/paths.js.map +1 -1
  2583. package/dist/tools/kaggle/tee-wrapper.d.ts +2 -0
  2584. package/dist/tools/kaggle/tee-wrapper.d.ts.map +1 -0
  2585. package/dist/tools/kaggle/tee-wrapper.js +244 -0
  2586. package/dist/tools/kaggle/tee-wrapper.js.map +1 -0
  2587. package/dist/tools/media/ViewImageTool/ViewImageTool.d.ts +2 -2
  2588. package/dist/tools/media/ViewImageTool/ViewImageTool.d.ts.map +1 -1
  2589. package/dist/tools/media/ViewImageTool/ViewImageTool.js +1 -1
  2590. package/dist/tools/media/ViewImageTool/ViewImageTool.js.map +1 -1
  2591. package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.d.ts +2 -2
  2592. package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.d.ts.map +1 -1
  2593. package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.js +1 -1
  2594. package/dist/tools/mutation/ArchiveGoalTool/ArchiveGoalTool.js.map +1 -1
  2595. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts +2 -2
  2596. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts.map +1 -1
  2597. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js +1 -1
  2598. package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js.map +1 -1
  2599. package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.d.ts +1 -1
  2600. package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.d.ts.map +1 -1
  2601. package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.js +1 -1
  2602. package/dist/tools/mutation/ConfigureNotificationRoutingTool/prompt.js.map +1 -1
  2603. package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.d.ts +2 -2
  2604. package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.d.ts.map +1 -1
  2605. package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.js +1 -1
  2606. package/dist/tools/mutation/DeleteGoalTool/DeleteGoalTool.js.map +1 -1
  2607. package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.d.ts +2 -2
  2608. package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.d.ts.map +1 -1
  2609. package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.js +1 -1
  2610. package/dist/tools/mutation/ResetTrustTool/ResetTrustTool.js.map +1 -1
  2611. package/dist/tools/mutation/SetGoalTool/SetGoalTool.d.ts +2 -2
  2612. package/dist/tools/mutation/SetGoalTool/SetGoalTool.d.ts.map +1 -1
  2613. package/dist/tools/mutation/SetGoalTool/SetGoalTool.js +1 -1
  2614. package/dist/tools/mutation/SetGoalTool/SetGoalTool.js.map +1 -1
  2615. package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts +8 -8
  2616. package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts.map +1 -1
  2617. package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.js +8 -5
  2618. package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.js.map +1 -1
  2619. package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.d.ts +2 -2
  2620. package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.d.ts.map +1 -1
  2621. package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.js +3 -3
  2622. package/dist/tools/mutation/TaskOutputTool/TaskOutputTool.js.map +1 -1
  2623. package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts +2 -2
  2624. package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts.map +1 -1
  2625. package/dist/tools/mutation/TaskStopTool/TaskStopTool.js +3 -3
  2626. package/dist/tools/mutation/TaskStopTool/TaskStopTool.js.map +1 -1
  2627. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +10 -10
  2628. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts.map +1 -1
  2629. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js +58 -13
  2630. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js.map +1 -1
  2631. package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.d.ts +2 -2
  2632. package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.d.ts.map +1 -1
  2633. package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.js +1 -1
  2634. package/dist/tools/mutation/TogglePluginTool/TogglePluginTool.js.map +1 -1
  2635. package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.d.ts +2 -2
  2636. package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.d.ts.map +1 -1
  2637. package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.js +1 -1
  2638. package/dist/tools/mutation/UpdateConfigTool/UpdateConfigTool.js.map +1 -1
  2639. package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.d.ts +2 -2
  2640. package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.d.ts.map +1 -1
  2641. package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.js +1 -1
  2642. package/dist/tools/mutation/UpdateGoalTool/UpdateGoalTool.js.map +1 -1
  2643. package/dist/tools/mutation/task-history-utils.d.ts.map +1 -1
  2644. package/dist/tools/mutation/task-history-utils.js +4 -7
  2645. package/dist/tools/mutation/task-history-utils.js.map +1 -1
  2646. package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +10 -10
  2647. package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts.map +1 -1
  2648. package/dist/tools/network/GitHubCliTool/GitHubCliTool.js +6 -5
  2649. package/dist/tools/network/GitHubCliTool/GitHubCliTool.js.map +1 -1
  2650. package/dist/tools/network/HttpFetchTool/HttpFetchTool.d.ts +2 -2
  2651. package/dist/tools/network/HttpFetchTool/HttpFetchTool.d.ts.map +1 -1
  2652. package/dist/tools/network/HttpFetchTool/HttpFetchTool.js +19 -7
  2653. package/dist/tools/network/HttpFetchTool/HttpFetchTool.js.map +1 -1
  2654. package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +14 -14
  2655. package/dist/tools/network/McpStdioTool/McpStdioTool.js +1 -1
  2656. package/dist/tools/network/McpStdioTool/McpStdioTool.js.map +1 -1
  2657. package/dist/tools/network/WebSearchTool/WebSearchTool.d.ts +3 -3
  2658. package/dist/tools/network/WebSearchTool/WebSearchTool.d.ts.map +1 -1
  2659. package/dist/tools/network/WebSearchTool/WebSearchTool.js +2 -2
  2660. package/dist/tools/network/WebSearchTool/WebSearchTool.js.map +1 -1
  2661. package/dist/tools/permission-grant-evaluator.d.ts +22 -0
  2662. package/dist/tools/permission-grant-evaluator.d.ts.map +1 -0
  2663. package/dist/tools/permission-grant-evaluator.js +289 -0
  2664. package/dist/tools/permission-grant-evaluator.js.map +1 -0
  2665. package/dist/tools/permission.d.ts.map +1 -1
  2666. package/dist/tools/permission.js +21 -1
  2667. package/dist/tools/permission.js.map +1 -1
  2668. package/dist/tools/query/ArchitectureTool/ArchitectureTool.d.ts +2 -2
  2669. package/dist/tools/query/ArchitectureTool/ArchitectureTool.d.ts.map +1 -1
  2670. package/dist/tools/query/ArchitectureTool/ArchitectureTool.js +1 -1
  2671. package/dist/tools/query/ArchitectureTool/ArchitectureTool.js.map +1 -1
  2672. package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +262 -12
  2673. package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts.map +1 -1
  2674. package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.js +31 -13
  2675. package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.js.map +1 -1
  2676. package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts +4 -4
  2677. package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts.map +1 -1
  2678. package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js +3 -3
  2679. package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js.map +1 -1
  2680. package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts +4 -4
  2681. package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts.map +1 -1
  2682. package/dist/tools/query/CodeSearchTool/CodeSearchTool.js +12 -7
  2683. package/dist/tools/query/CodeSearchTool/CodeSearchTool.js.map +1 -1
  2684. package/dist/tools/query/ConfigTool/ConfigTool.d.ts +3 -3
  2685. package/dist/tools/query/ConfigTool/ConfigTool.d.ts.map +1 -1
  2686. package/dist/tools/query/ConfigTool/ConfigTool.js +17 -29
  2687. package/dist/tools/query/ConfigTool/ConfigTool.js.map +1 -1
  2688. package/dist/tools/query/ConfigTool/prompt.d.ts +1 -1
  2689. package/dist/tools/query/ConfigTool/prompt.d.ts.map +1 -1
  2690. package/dist/tools/query/ConfigTool/prompt.js +1 -1
  2691. package/dist/tools/query/ConfigTool/prompt.js.map +1 -1
  2692. package/dist/tools/query/GoalStateTool/GoalStateTool.d.ts +2 -2
  2693. package/dist/tools/query/GoalStateTool/GoalStateTool.d.ts.map +1 -1
  2694. package/dist/tools/query/GoalStateTool/GoalStateTool.js +1 -1
  2695. package/dist/tools/query/GoalStateTool/GoalStateTool.js.map +1 -1
  2696. package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.d.ts +2 -2
  2697. package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.d.ts.map +1 -1
  2698. package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.js +1 -1
  2699. package/dist/tools/query/KnowledgeQueryTool/KnowledgeQueryTool.js.map +1 -1
  2700. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +10 -10
  2701. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts.map +1 -1
  2702. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js +1 -1
  2703. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js.map +1 -1
  2704. package/dist/tools/query/PluginStateTool/PluginStateTool.d.ts +2 -2
  2705. package/dist/tools/query/PluginStateTool/PluginStateTool.d.ts.map +1 -1
  2706. package/dist/tools/query/PluginStateTool/PluginStateTool.js +11 -7
  2707. package/dist/tools/query/PluginStateTool/PluginStateTool.js.map +1 -1
  2708. package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.d.ts +2 -2
  2709. package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.d.ts.map +1 -1
  2710. package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.js +1 -1
  2711. package/dist/tools/query/ProgressHistoryTool/ProgressHistoryTool.js.map +1 -1
  2712. package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.d.ts +8 -3
  2713. package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.d.ts.map +1 -1
  2714. package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.js +29 -53
  2715. package/dist/tools/query/SessionHistoryTool/SessionHistoryTool.js.map +1 -1
  2716. package/dist/tools/query/SkillSearchTool/SkillSearchTool.d.ts +2 -2
  2717. package/dist/tools/query/SkillSearchTool/SkillSearchTool.d.ts.map +1 -1
  2718. package/dist/tools/query/SkillSearchTool/SkillSearchTool.js +1 -1
  2719. package/dist/tools/query/SkillSearchTool/SkillSearchTool.js.map +1 -1
  2720. package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts +8 -8
  2721. package/dist/tools/query/TaskGetTool/TaskGetTool.d.ts +2 -2
  2722. package/dist/tools/query/TaskGetTool/TaskGetTool.d.ts.map +1 -1
  2723. package/dist/tools/query/TaskGetTool/TaskGetTool.js +2 -9
  2724. package/dist/tools/query/TaskGetTool/TaskGetTool.js.map +1 -1
  2725. package/dist/tools/query/TaskListTool/TaskListTool.d.ts +2 -2
  2726. package/dist/tools/query/TaskListTool/TaskListTool.d.ts.map +1 -1
  2727. package/dist/tools/query/TaskListTool/TaskListTool.js +2 -22
  2728. package/dist/tools/query/TaskListTool/TaskListTool.js.map +1 -1
  2729. package/dist/tools/query/ToolSearchTool/ToolSearchTool.d.ts +2 -2
  2730. package/dist/tools/query/ToolSearchTool/ToolSearchTool.d.ts.map +1 -1
  2731. package/dist/tools/query/ToolSearchTool/ToolSearchTool.js +2 -1
  2732. package/dist/tools/query/ToolSearchTool/ToolSearchTool.js.map +1 -1
  2733. package/dist/tools/query/TrustStateTool/TrustStateTool.d.ts +6 -3
  2734. package/dist/tools/query/TrustStateTool/TrustStateTool.d.ts.map +1 -1
  2735. package/dist/tools/query/TrustStateTool/TrustStateTool.js +10 -5
  2736. package/dist/tools/query/TrustStateTool/TrustStateTool.js.map +1 -1
  2737. package/dist/tools/query/runtime-dream-review-tool.d.ts +2 -2
  2738. package/dist/tools/query/runtime-dream-review-tool.d.ts.map +1 -1
  2739. package/dist/tools/query/runtime-dream-review-tool.js +1 -1
  2740. package/dist/tools/query/runtime-dream-review-tool.js.map +1 -1
  2741. package/dist/tools/query/runtime-session-tool-schemas.d.ts +211 -0
  2742. package/dist/tools/query/runtime-session-tool-schemas.d.ts.map +1 -0
  2743. package/dist/tools/query/runtime-session-tool-schemas.js +83 -0
  2744. package/dist/tools/query/runtime-session-tool-schemas.js.map +1 -0
  2745. package/dist/tools/query/runtime-session-tools.d.ts +72 -280
  2746. package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
  2747. package/dist/tools/query/runtime-session-tools.js +87 -294
  2748. package/dist/tools/query/runtime-session-tools.js.map +1 -1
  2749. package/dist/tools/registry.d.ts +1 -1
  2750. package/dist/tools/registry.d.ts.map +1 -1
  2751. package/dist/tools/registry.js +4 -2
  2752. package/dist/tools/registry.js.map +1 -1
  2753. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +44 -554
  2754. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
  2755. package/dist/tools/runtime/LongRunningRuntimeTools.js +29 -226
  2756. package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
  2757. package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -1
  2758. package/dist/tools/runtime/RunSpecHandoffTools.js +13 -12
  2759. package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -1
  2760. package/dist/tools/runtime/SetupRuntimeControlTools.js +28 -16
  2761. package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -1
  2762. package/dist/tools/runtime/long-running-report-render.d.ts +5 -0
  2763. package/dist/tools/runtime/long-running-report-render.d.ts.map +1 -0
  2764. package/dist/tools/runtime/long-running-report-render.js +53 -0
  2765. package/dist/tools/runtime/long-running-report-render.js.map +1 -0
  2766. package/dist/tools/runtime/long-running-runtime-paths.d.ts +8 -0
  2767. package/dist/tools/runtime/long-running-runtime-paths.d.ts.map +1 -0
  2768. package/dist/tools/runtime/long-running-runtime-paths.js +77 -0
  2769. package/dist/tools/runtime/long-running-runtime-paths.js.map +1 -0
  2770. package/dist/tools/runtime/long-running-runtime-schemas.d.ts +515 -0
  2771. package/dist/tools/runtime/long-running-runtime-schemas.d.ts.map +1 -0
  2772. package/dist/tools/runtime/long-running-runtime-schemas.js +92 -0
  2773. package/dist/tools/runtime/long-running-runtime-schemas.js.map +1 -0
  2774. package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts +509 -145
  2775. package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts.map +1 -1
  2776. package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.js +14 -14
  2777. package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.js.map +1 -1
  2778. package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.d.ts +2 -2
  2779. package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.d.ts.map +1 -1
  2780. package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.js +1 -1
  2781. package/dist/tools/schedule/GetScheduleTool/GetScheduleTool.js.map +1 -1
  2782. package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.d.ts +6 -6
  2783. package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.d.ts.map +1 -1
  2784. package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.js +1 -1
  2785. package/dist/tools/schedule/ListSchedulesTool/ListSchedulesTool.js.map +1 -1
  2786. package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.d.ts +2 -2
  2787. package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.d.ts.map +1 -1
  2788. package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.js +1 -1
  2789. package/dist/tools/schedule/PauseScheduleTool/PauseScheduleTool.js.map +1 -1
  2790. package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.d.ts +2 -2
  2791. package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.d.ts.map +1 -1
  2792. package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.js +1 -1
  2793. package/dist/tools/schedule/RemoveScheduleTool/RemoveScheduleTool.js.map +1 -1
  2794. package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.d.ts +2 -2
  2795. package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.d.ts.map +1 -1
  2796. package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.js +1 -1
  2797. package/dist/tools/schedule/ResumeScheduleTool/ResumeScheduleTool.js.map +1 -1
  2798. package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.d.ts +2 -2
  2799. package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.d.ts.map +1 -1
  2800. package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.js +1 -1
  2801. package/dist/tools/schedule/RunScheduleTool/RunScheduleTool.js.map +1 -1
  2802. package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts +594 -106
  2803. package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts.map +1 -1
  2804. package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.js +8 -8
  2805. package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.js.map +1 -1
  2806. package/dist/tools/schedule/schedule-tool-input-schemas.d.ts +611 -0
  2807. package/dist/tools/schedule/schedule-tool-input-schemas.d.ts.map +1 -0
  2808. package/dist/tools/schedule/schedule-tool-input-schemas.js +152 -0
  2809. package/dist/tools/schedule/schedule-tool-input-schemas.js.map +1 -0
  2810. package/dist/tools/shared/parse-tool-output.d.ts.map +1 -1
  2811. package/dist/tools/shared/parse-tool-output.js +6 -3
  2812. package/dist/tools/shared/parse-tool-output.js.map +1 -1
  2813. package/dist/tools/system/EnvTool/EnvTool.d.ts +6 -6
  2814. package/dist/tools/system/EnvTool/EnvTool.d.ts.map +1 -1
  2815. package/dist/tools/system/EnvTool/EnvTool.js +1 -1
  2816. package/dist/tools/system/EnvTool/EnvTool.js.map +1 -1
  2817. package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts +6 -6
  2818. package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts.map +1 -1
  2819. package/dist/tools/system/GitDiffTool/GitDiffTool.js +1 -1
  2820. package/dist/tools/system/GitDiffTool/GitDiffTool.js.map +1 -1
  2821. package/dist/tools/system/GitLogTool/GitLogTool.d.ts +6 -6
  2822. package/dist/tools/system/GitLogTool/GitLogTool.d.ts.map +1 -1
  2823. package/dist/tools/system/GitLogTool/GitLogTool.js +4 -2
  2824. package/dist/tools/system/GitLogTool/GitLogTool.js.map +1 -1
  2825. package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts +17 -14
  2826. package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts.map +1 -1
  2827. package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js +43 -54
  2828. package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js.map +1 -1
  2829. package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.d.ts +3 -3
  2830. package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.d.ts.map +1 -1
  2831. package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.js +43 -10
  2832. package/dist/tools/system/ProcessStatusTool/ProcessStatusTool.js.map +1 -1
  2833. package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts +2 -2
  2834. package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
  2835. package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +4 -4
  2836. package/dist/tools/system/ShellCommandTool/ShellCommandTool.js.map +1 -1
  2837. package/dist/tools/system/ShellTool/ShellTool.d.ts +5 -2
  2838. package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
  2839. package/dist/tools/system/ShellTool/ShellTool.js +11 -4
  2840. package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
  2841. package/dist/tools/system/ShellTool/command-policy.d.ts +1 -0
  2842. package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
  2843. package/dist/tools/system/ShellTool/command-policy.js +10 -0
  2844. package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
  2845. package/dist/tools/system/ShellTool/prompt.d.ts +1 -1
  2846. package/dist/tools/system/ShellTool/prompt.d.ts.map +1 -1
  2847. package/dist/tools/system/ShellTool/prompt.js +1 -1
  2848. package/dist/tools/system/ShellTool/prompt.js.map +1 -1
  2849. package/dist/tools/system/SleepTool/SleepTool.d.ts +2 -2
  2850. package/dist/tools/system/SleepTool/SleepTool.d.ts.map +1 -1
  2851. package/dist/tools/system/SleepTool/SleepTool.js +1 -1
  2852. package/dist/tools/system/SleepTool/SleepTool.js.map +1 -1
  2853. package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +8 -6
  2854. package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts.map +1 -1
  2855. package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +59 -44
  2856. package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
  2857. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.d.ts +4 -4
  2858. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.d.ts.map +1 -1
  2859. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +6 -5
  2860. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
  2861. package/dist/tools/tool-definition-adapter.d.ts.map +1 -1
  2862. package/dist/tools/tool-definition-adapter.js +189 -20
  2863. package/dist/tools/tool-definition-adapter.js.map +1 -1
  2864. package/dist/tools/types.d.ts +100 -7
  2865. package/dist/tools/types.d.ts.map +1 -1
  2866. package/dist/tools/types.js +26 -8
  2867. package/dist/tools/types.js.map +1 -1
  2868. package/package.json +10 -3
  2869. package/dist/base/state/state-lock.d.ts +0 -17
  2870. package/dist/base/state/state-lock.d.ts.map +0 -1
  2871. package/dist/base/state/state-lock.js +0 -134
  2872. package/dist/base/state/state-lock.js.map +0 -1
  2873. package/dist/base/state/state-manager-goal-state.d.ts +0 -40
  2874. package/dist/base/state/state-manager-goal-state.d.ts.map +0 -1
  2875. package/dist/base/state/state-manager-goal-state.js +0 -235
  2876. package/dist/base/state/state-manager-goal-state.js.map +0 -1
  2877. package/dist/base/state/state-manager-goal-write.d.ts +0 -26
  2878. package/dist/base/state/state-manager-goal-write.d.ts.map +0 -1
  2879. package/dist/base/state/state-manager-goal-write.js +0 -116
  2880. package/dist/base/state/state-manager-goal-write.js.map +0 -1
  2881. package/dist/base/state/state-manager-wal.d.ts +0 -11
  2882. package/dist/base/state/state-manager-wal.d.ts.map +0 -1
  2883. package/dist/base/state/state-manager-wal.js +0 -101
  2884. package/dist/base/state/state-manager-wal.js.map +0 -1
  2885. package/dist/base/state/state-wal.d.ts.map +0 -1
  2886. package/dist/base/state/state-wal.js.map +0 -1
  2887. package/dist/interface/chat/freeform-route-classifier.d.ts +0 -21
  2888. package/dist/interface/chat/freeform-route-classifier.d.ts.map +0 -1
  2889. package/dist/interface/chat/freeform-route-classifier.js +0 -43
  2890. package/dist/interface/chat/freeform-route-classifier.js.map +0 -1
  2891. package/dist/orchestrator/ethics-gate.d.ts +0 -3
  2892. package/dist/orchestrator/ethics-gate.d.ts.map +0 -1
  2893. package/dist/orchestrator/ethics-gate.js +0 -2
  2894. package/dist/orchestrator/ethics-gate.js.map +0 -1
  2895. package/dist/orchestrator/loop/core-loop/capability.d.ts +0 -2
  2896. package/dist/orchestrator/loop/core-loop/capability.d.ts.map +0 -1
  2897. package/dist/orchestrator/loop/core-loop/capability.js +0 -2
  2898. package/dist/orchestrator/loop/core-loop/capability.js.map +0 -1
  2899. package/dist/orchestrator/loop/core-loop/contracts.d.ts +0 -2
  2900. package/dist/orchestrator/loop/core-loop/contracts.d.ts.map +0 -1
  2901. package/dist/orchestrator/loop/core-loop/contracts.js +0 -2
  2902. package/dist/orchestrator/loop/core-loop/contracts.js.map +0 -1
  2903. package/dist/orchestrator/loop/core-loop/control.d.ts +0 -2
  2904. package/dist/orchestrator/loop/core-loop/control.d.ts.map +0 -1
  2905. package/dist/orchestrator/loop/core-loop/control.js +0 -2
  2906. package/dist/orchestrator/loop/core-loop/control.js.map +0 -1
  2907. package/dist/orchestrator/loop/core-loop/decision-engine.d.ts +0 -2
  2908. package/dist/orchestrator/loop/core-loop/decision-engine.d.ts.map +0 -1
  2909. package/dist/orchestrator/loop/core-loop/decision-engine.js +0 -2
  2910. package/dist/orchestrator/loop/core-loop/decision-engine.js.map +0 -1
  2911. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts +0 -2
  2912. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts.map +0 -1
  2913. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js +0 -2
  2914. package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js.map +0 -1
  2915. package/dist/orchestrator/loop/core-loop/evidence-ledger.d.ts +0 -2
  2916. package/dist/orchestrator/loop/core-loop/evidence-ledger.d.ts.map +0 -1
  2917. package/dist/orchestrator/loop/core-loop/evidence-ledger.js +0 -2
  2918. package/dist/orchestrator/loop/core-loop/evidence-ledger.js.map +0 -1
  2919. package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts +0 -2
  2920. package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts.map +0 -1
  2921. package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js +0 -2
  2922. package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js.map +0 -1
  2923. package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts +0 -2
  2924. package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts.map +0 -1
  2925. package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js +0 -2
  2926. package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js.map +0 -1
  2927. package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts +0 -2
  2928. package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts.map +0 -1
  2929. package/dist/orchestrator/loop/core-loop/iteration-kernel.js +0 -2
  2930. package/dist/orchestrator/loop/core-loop/iteration-kernel.js.map +0 -1
  2931. package/dist/orchestrator/loop/core-loop/learning.d.ts +0 -2
  2932. package/dist/orchestrator/loop/core-loop/learning.d.ts.map +0 -1
  2933. package/dist/orchestrator/loop/core-loop/learning.js +0 -2
  2934. package/dist/orchestrator/loop/core-loop/learning.js.map +0 -1
  2935. package/dist/orchestrator/loop/core-loop/phase-policy.d.ts +0 -2
  2936. package/dist/orchestrator/loop/core-loop/phase-policy.d.ts.map +0 -1
  2937. package/dist/orchestrator/loop/core-loop/phase-policy.js +0 -2
  2938. package/dist/orchestrator/loop/core-loop/phase-policy.js.map +0 -1
  2939. package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts +0 -2
  2940. package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts.map +0 -1
  2941. package/dist/orchestrator/loop/core-loop/phase-runtime.js +0 -2
  2942. package/dist/orchestrator/loop/core-loop/phase-runtime.js.map +0 -1
  2943. package/dist/orchestrator/loop/core-loop/phase-specs.d.ts +0 -2
  2944. package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +0 -1
  2945. package/dist/orchestrator/loop/core-loop/phase-specs.js +0 -2
  2946. package/dist/orchestrator/loop/core-loop/phase-specs.js.map +0 -1
  2947. package/dist/orchestrator/loop/core-loop/preparation.d.ts +0 -2
  2948. package/dist/orchestrator/loop/core-loop/preparation.d.ts.map +0 -1
  2949. package/dist/orchestrator/loop/core-loop/preparation.js +0 -2
  2950. package/dist/orchestrator/loop/core-loop/preparation.js.map +0 -1
  2951. package/dist/orchestrator/loop/core-loop/public-research.d.ts +0 -2
  2952. package/dist/orchestrator/loop/core-loop/public-research.d.ts.map +0 -1
  2953. package/dist/orchestrator/loop/core-loop/public-research.js +0 -2
  2954. package/dist/orchestrator/loop/core-loop/public-research.js.map +0 -1
  2955. package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts +0 -2
  2956. package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts.map +0 -1
  2957. package/dist/orchestrator/loop/core-loop/task-cycle-stall.js +0 -2
  2958. package/dist/orchestrator/loop/core-loop/task-cycle-stall.js.map +0 -1
  2959. package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts +0 -2
  2960. package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts.map +0 -1
  2961. package/dist/orchestrator/loop/core-loop/task-cycle-wait.js +0 -2
  2962. package/dist/orchestrator/loop/core-loop/task-cycle-wait.js.map +0 -1
  2963. package/dist/orchestrator/loop/core-loop/task-cycle.d.ts +0 -2
  2964. package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +0 -1
  2965. package/dist/orchestrator/loop/core-loop/task-cycle.js +0 -2
  2966. package/dist/orchestrator/loop/core-loop/task-cycle.js.map +0 -1
  2967. package/dist/platform/dream/dream-log-store.d.ts +0 -22
  2968. package/dist/platform/dream/dream-log-store.d.ts.map +0 -1
  2969. package/dist/platform/dream/dream-log-store.js +0 -150
  2970. package/dist/platform/dream/dream-log-store.js.map +0 -1
  2971. package/dist/platform/ethics-gate.d.ts +0 -2
  2972. package/dist/platform/ethics-gate.d.ts.map +0 -1
  2973. package/dist/platform/ethics-gate.js +0 -2
  2974. package/dist/platform/ethics-gate.js.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { ResidentActivitySchema } from "../../base/types/daemon.js";
3
3
  import { type RuntimeStorePaths } from "./runtime-paths.js";
4
+ import { type RuntimeControlDbStoreOptions } from "./control-db/index.js";
4
5
  export declare const ProactiveInterventionOutcomeSchema: z.ZodEnum<["accepted", "ignored", "dismissed", "corrected", "overreach"]>;
5
6
  export declare const ProactiveOverreachIndicatorSchema: z.ZodEnum<["too_frequent", "wrong_context", "sensitive", "unwanted_timing"]>;
6
7
  export declare const ProactiveInterventionActivityEventSchema: z.ZodObject<{
@@ -19,27 +20,947 @@ export declare const ProactiveInterventionActivityEventSchema: z.ZodObject<{
19
20
  recorded_at: z.ZodString;
20
21
  suggestion_title: z.ZodOptional<z.ZodString>;
21
22
  goal_id: z.ZodOptional<z.ZodString>;
23
+ surface_id: z.ZodOptional<z.ZodString>;
24
+ surface_included_count: z.ZodOptional<z.ZodNumber>;
25
+ surface_excluded_count: z.ZodOptional<z.ZodNumber>;
26
+ surface_inspection: z.ZodOptional<z.ZodObject<{
27
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
28
+ inspection: z.ZodObject<{
29
+ surface_id: z.ZodString;
30
+ version: z.ZodNumber;
31
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
32
+ scope: z.ZodObject<{
33
+ kind: z.ZodEnum<["conversation", "task", "runtime_item", "inspection", "session_resume"]>;
34
+ ref: z.ZodString;
35
+ }, "strict", z.ZodTypeAny, {
36
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
37
+ ref: string;
38
+ }, {
39
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
40
+ ref: string;
41
+ }>;
42
+ source_refs: z.ZodArray<z.ZodObject<{
43
+ kind: z.ZodEnum<["memory_record", "permission_grant", "runtime_item", "agenda_item", "urge_candidate", "outcome_decision", "expression_decision", "memory_write_candidate", "session_resume_attempt", "audit_trace"]>;
44
+ ref: z.ZodString;
45
+ owning_store_ref: z.ZodOptional<z.ZodObject<{
46
+ kind: z.ZodEnum<["relationship_profile", "profile_proposal", "runtime_session", "soil", "knowledge", "dream_seed"]>;
47
+ store_ref: z.ZodString;
48
+ record_ref: z.ZodString;
49
+ schema_version: z.ZodDefault<z.ZodNumber>;
50
+ }, "strict", z.ZodTypeAny, {
51
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
52
+ schema_version: number;
53
+ store_ref: string;
54
+ record_ref: string;
55
+ }, {
56
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
57
+ store_ref: string;
58
+ record_ref: string;
59
+ schema_version?: number | undefined;
60
+ }>>;
61
+ content_state: z.ZodDefault<z.ZodEnum<["materialized", "redacted"]>>;
62
+ lifecycle: z.ZodOptional<z.ZodEnum<["active", "planted", "matured", "decayed", "retired", "suppressed", "superseded", "retracted", "tombstoned", "deleted", "archived"]>>;
63
+ correction_state: z.ZodOptional<z.ZodEnum<["current", "under_review", "corrected", "superseded", "retracted", "deleted"]>>;
64
+ superseded_by_memory_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ surface_ref: z.ZodOptional<z.ZodString>;
66
+ }, "strict", z.ZodTypeAny, {
67
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
68
+ ref: string;
69
+ content_state: "materialized" | "redacted";
70
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
71
+ owning_store_ref?: {
72
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
73
+ schema_version: number;
74
+ store_ref: string;
75
+ record_ref: string;
76
+ } | undefined;
77
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
78
+ superseded_by_memory_id?: string | null | undefined;
79
+ surface_ref?: string | undefined;
80
+ }, {
81
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
82
+ ref: string;
83
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
84
+ owning_store_ref?: {
85
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
86
+ store_ref: string;
87
+ record_ref: string;
88
+ schema_version?: number | undefined;
89
+ } | undefined;
90
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
91
+ superseded_by_memory_id?: string | null | undefined;
92
+ content_state?: "materialized" | "redacted" | undefined;
93
+ surface_ref?: string | undefined;
94
+ }>, "many">;
95
+ gate_outcomes: z.ZodArray<z.ZodObject<{
96
+ gate: z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>;
97
+ status: z.ZodEnum<["passed", "blocked", "unknown"]>;
98
+ reason_ref: z.ZodOptional<z.ZodString>;
99
+ evaluated_at: z.ZodString;
100
+ }, "strict", z.ZodTypeAny, {
101
+ status: "unknown" | "blocked" | "passed";
102
+ evaluated_at: string;
103
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
104
+ reason_ref?: string | undefined;
105
+ }, {
106
+ status: "unknown" | "blocked" | "passed";
107
+ evaluated_at: string;
108
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
109
+ reason_ref?: string | undefined;
110
+ }>, "many">;
111
+ included_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
112
+ lane: z.ZodEnum<["knowledge", "work_memory", "relationship", "boundary", "promise", "tension", "anti_memory"]>;
113
+ memory_id: z.ZodString;
114
+ record_kind: z.ZodEnum<["stable_profile_fact", "preference", "routine", "boundary", "intervention_policy", "episodic_event", "promise", "correction", "relationship_posture", "consent_scope", "work_commitment", "project_fact", "knowledge_fact", "open_tension", "anti_memory_rule", "seed_candidate"]>;
115
+ use_class: z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>;
116
+ summary_ref: z.ZodString;
117
+ }, "strict", z.ZodTypeAny, {
118
+ memory_id: string;
119
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
120
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
121
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
122
+ summary_ref: string;
123
+ }, {
124
+ memory_id: string;
125
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
126
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
127
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
128
+ summary_ref: string;
129
+ }>, "many">>;
130
+ excluded_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
131
+ lane: z.ZodLiteral<"exclusion">;
132
+ memory_id: z.ZodString;
133
+ requested_use: z.ZodUnion<[z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>, z.ZodEnum<["user_personality_labeling", "diagnosis", "motivation_claim", "emotional_leverage", "engagement_optimization", "attachment_optimization", "proactive_trigger", "side_effect_authorization", "stale_session_authorization", "raw_prompt_injection", "cross_scope_reuse"]>]>;
134
+ blocked_by: z.ZodArray<z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>, "many">;
135
+ redaction_ref: z.ZodOptional<z.ZodString>;
136
+ inhibition_ref: z.ZodOptional<z.ZodString>;
137
+ }, "strict", z.ZodTypeAny, {
138
+ memory_id: string;
139
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
140
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
141
+ lane: "exclusion";
142
+ redaction_ref?: string | undefined;
143
+ inhibition_ref?: string | undefined;
144
+ }, {
145
+ memory_id: string;
146
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
147
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
148
+ lane: "exclusion";
149
+ redaction_ref?: string | undefined;
150
+ inhibition_ref?: string | undefined;
151
+ }>, "many">>;
152
+ redacted_audit_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
153
+ invalidation_state: z.ZodEnum<["valid", "invalid", "unknown"]>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ source_refs: {
156
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
157
+ ref: string;
158
+ content_state: "materialized" | "redacted";
159
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
160
+ owning_store_ref?: {
161
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
162
+ schema_version: number;
163
+ store_ref: string;
164
+ record_ref: string;
165
+ } | undefined;
166
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
167
+ superseded_by_memory_id?: string | null | undefined;
168
+ surface_ref?: string | undefined;
169
+ }[];
170
+ scope: {
171
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
172
+ ref: string;
173
+ };
174
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
175
+ version: number;
176
+ invalidation_state: "valid" | "unknown" | "invalid";
177
+ surface_id: string;
178
+ gate_outcomes: {
179
+ status: "unknown" | "blocked" | "passed";
180
+ evaluated_at: string;
181
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
182
+ reason_ref?: string | undefined;
183
+ }[];
184
+ included_summaries: {
185
+ memory_id: string;
186
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
187
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
188
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
189
+ summary_ref: string;
190
+ }[];
191
+ excluded_summaries: {
192
+ memory_id: string;
193
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
194
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
195
+ lane: "exclusion";
196
+ redaction_ref?: string | undefined;
197
+ inhibition_ref?: string | undefined;
198
+ }[];
199
+ redacted_audit_refs: string[];
200
+ }, {
201
+ source_refs: {
202
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
203
+ ref: string;
204
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
205
+ owning_store_ref?: {
206
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
207
+ store_ref: string;
208
+ record_ref: string;
209
+ schema_version?: number | undefined;
210
+ } | undefined;
211
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
212
+ superseded_by_memory_id?: string | null | undefined;
213
+ content_state?: "materialized" | "redacted" | undefined;
214
+ surface_ref?: string | undefined;
215
+ }[];
216
+ scope: {
217
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
218
+ ref: string;
219
+ };
220
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
221
+ version: number;
222
+ invalidation_state: "valid" | "unknown" | "invalid";
223
+ surface_id: string;
224
+ gate_outcomes: {
225
+ status: "unknown" | "blocked" | "passed";
226
+ evaluated_at: string;
227
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
228
+ reason_ref?: string | undefined;
229
+ }[];
230
+ included_summaries?: {
231
+ memory_id: string;
232
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
233
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
234
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
235
+ summary_ref: string;
236
+ }[] | undefined;
237
+ excluded_summaries?: {
238
+ memory_id: string;
239
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
240
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
241
+ lane: "exclusion";
242
+ redaction_ref?: string | undefined;
243
+ inhibition_ref?: string | undefined;
244
+ }[] | undefined;
245
+ redacted_audit_refs?: string[] | undefined;
246
+ }>;
247
+ prompt_dump: z.ZodOptional<z.ZodNever>;
248
+ }, "strict", z.ZodTypeAny, {
249
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
250
+ inspection: {
251
+ source_refs: {
252
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
253
+ ref: string;
254
+ content_state: "materialized" | "redacted";
255
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
256
+ owning_store_ref?: {
257
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
258
+ schema_version: number;
259
+ store_ref: string;
260
+ record_ref: string;
261
+ } | undefined;
262
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
263
+ superseded_by_memory_id?: string | null | undefined;
264
+ surface_ref?: string | undefined;
265
+ }[];
266
+ scope: {
267
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
268
+ ref: string;
269
+ };
270
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
271
+ version: number;
272
+ invalidation_state: "valid" | "unknown" | "invalid";
273
+ surface_id: string;
274
+ gate_outcomes: {
275
+ status: "unknown" | "blocked" | "passed";
276
+ evaluated_at: string;
277
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
278
+ reason_ref?: string | undefined;
279
+ }[];
280
+ included_summaries: {
281
+ memory_id: string;
282
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
283
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
284
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
285
+ summary_ref: string;
286
+ }[];
287
+ excluded_summaries: {
288
+ memory_id: string;
289
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
290
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
291
+ lane: "exclusion";
292
+ redaction_ref?: string | undefined;
293
+ inhibition_ref?: string | undefined;
294
+ }[];
295
+ redacted_audit_refs: string[];
296
+ };
297
+ prompt_dump?: undefined;
298
+ }, {
299
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
300
+ inspection: {
301
+ source_refs: {
302
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
303
+ ref: string;
304
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
305
+ owning_store_ref?: {
306
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
307
+ store_ref: string;
308
+ record_ref: string;
309
+ schema_version?: number | undefined;
310
+ } | undefined;
311
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
312
+ superseded_by_memory_id?: string | null | undefined;
313
+ content_state?: "materialized" | "redacted" | undefined;
314
+ surface_ref?: string | undefined;
315
+ }[];
316
+ scope: {
317
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
318
+ ref: string;
319
+ };
320
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
321
+ version: number;
322
+ invalidation_state: "valid" | "unknown" | "invalid";
323
+ surface_id: string;
324
+ gate_outcomes: {
325
+ status: "unknown" | "blocked" | "passed";
326
+ evaluated_at: string;
327
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
328
+ reason_ref?: string | undefined;
329
+ }[];
330
+ included_summaries?: {
331
+ memory_id: string;
332
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
333
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
334
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
335
+ summary_ref: string;
336
+ }[] | undefined;
337
+ excluded_summaries?: {
338
+ memory_id: string;
339
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
340
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
341
+ lane: "exclusion";
342
+ redaction_ref?: string | undefined;
343
+ inhibition_ref?: string | undefined;
344
+ }[] | undefined;
345
+ redacted_audit_refs?: string[] | undefined;
346
+ };
347
+ prompt_dump?: undefined;
348
+ }>>;
349
+ surface_inspections: z.ZodOptional<z.ZodArray<z.ZodObject<{
350
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
351
+ inspection: z.ZodObject<{
352
+ surface_id: z.ZodString;
353
+ version: z.ZodNumber;
354
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
355
+ scope: z.ZodObject<{
356
+ kind: z.ZodEnum<["conversation", "task", "runtime_item", "inspection", "session_resume"]>;
357
+ ref: z.ZodString;
358
+ }, "strict", z.ZodTypeAny, {
359
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
360
+ ref: string;
361
+ }, {
362
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
363
+ ref: string;
364
+ }>;
365
+ source_refs: z.ZodArray<z.ZodObject<{
366
+ kind: z.ZodEnum<["memory_record", "permission_grant", "runtime_item", "agenda_item", "urge_candidate", "outcome_decision", "expression_decision", "memory_write_candidate", "session_resume_attempt", "audit_trace"]>;
367
+ ref: z.ZodString;
368
+ owning_store_ref: z.ZodOptional<z.ZodObject<{
369
+ kind: z.ZodEnum<["relationship_profile", "profile_proposal", "runtime_session", "soil", "knowledge", "dream_seed"]>;
370
+ store_ref: z.ZodString;
371
+ record_ref: z.ZodString;
372
+ schema_version: z.ZodDefault<z.ZodNumber>;
373
+ }, "strict", z.ZodTypeAny, {
374
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
375
+ schema_version: number;
376
+ store_ref: string;
377
+ record_ref: string;
378
+ }, {
379
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
380
+ store_ref: string;
381
+ record_ref: string;
382
+ schema_version?: number | undefined;
383
+ }>>;
384
+ content_state: z.ZodDefault<z.ZodEnum<["materialized", "redacted"]>>;
385
+ lifecycle: z.ZodOptional<z.ZodEnum<["active", "planted", "matured", "decayed", "retired", "suppressed", "superseded", "retracted", "tombstoned", "deleted", "archived"]>>;
386
+ correction_state: z.ZodOptional<z.ZodEnum<["current", "under_review", "corrected", "superseded", "retracted", "deleted"]>>;
387
+ superseded_by_memory_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
388
+ surface_ref: z.ZodOptional<z.ZodString>;
389
+ }, "strict", z.ZodTypeAny, {
390
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
391
+ ref: string;
392
+ content_state: "materialized" | "redacted";
393
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
394
+ owning_store_ref?: {
395
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
396
+ schema_version: number;
397
+ store_ref: string;
398
+ record_ref: string;
399
+ } | undefined;
400
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
401
+ superseded_by_memory_id?: string | null | undefined;
402
+ surface_ref?: string | undefined;
403
+ }, {
404
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
405
+ ref: string;
406
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
407
+ owning_store_ref?: {
408
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
409
+ store_ref: string;
410
+ record_ref: string;
411
+ schema_version?: number | undefined;
412
+ } | undefined;
413
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
414
+ superseded_by_memory_id?: string | null | undefined;
415
+ content_state?: "materialized" | "redacted" | undefined;
416
+ surface_ref?: string | undefined;
417
+ }>, "many">;
418
+ gate_outcomes: z.ZodArray<z.ZodObject<{
419
+ gate: z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>;
420
+ status: z.ZodEnum<["passed", "blocked", "unknown"]>;
421
+ reason_ref: z.ZodOptional<z.ZodString>;
422
+ evaluated_at: z.ZodString;
423
+ }, "strict", z.ZodTypeAny, {
424
+ status: "unknown" | "blocked" | "passed";
425
+ evaluated_at: string;
426
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
427
+ reason_ref?: string | undefined;
428
+ }, {
429
+ status: "unknown" | "blocked" | "passed";
430
+ evaluated_at: string;
431
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
432
+ reason_ref?: string | undefined;
433
+ }>, "many">;
434
+ included_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
435
+ lane: z.ZodEnum<["knowledge", "work_memory", "relationship", "boundary", "promise", "tension", "anti_memory"]>;
436
+ memory_id: z.ZodString;
437
+ record_kind: z.ZodEnum<["stable_profile_fact", "preference", "routine", "boundary", "intervention_policy", "episodic_event", "promise", "correction", "relationship_posture", "consent_scope", "work_commitment", "project_fact", "knowledge_fact", "open_tension", "anti_memory_rule", "seed_candidate"]>;
438
+ use_class: z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>;
439
+ summary_ref: z.ZodString;
440
+ }, "strict", z.ZodTypeAny, {
441
+ memory_id: string;
442
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
443
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
444
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
445
+ summary_ref: string;
446
+ }, {
447
+ memory_id: string;
448
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
449
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
450
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
451
+ summary_ref: string;
452
+ }>, "many">>;
453
+ excluded_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
454
+ lane: z.ZodLiteral<"exclusion">;
455
+ memory_id: z.ZodString;
456
+ requested_use: z.ZodUnion<[z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>, z.ZodEnum<["user_personality_labeling", "diagnosis", "motivation_claim", "emotional_leverage", "engagement_optimization", "attachment_optimization", "proactive_trigger", "side_effect_authorization", "stale_session_authorization", "raw_prompt_injection", "cross_scope_reuse"]>]>;
457
+ blocked_by: z.ZodArray<z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>, "many">;
458
+ redaction_ref: z.ZodOptional<z.ZodString>;
459
+ inhibition_ref: z.ZodOptional<z.ZodString>;
460
+ }, "strict", z.ZodTypeAny, {
461
+ memory_id: string;
462
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
463
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
464
+ lane: "exclusion";
465
+ redaction_ref?: string | undefined;
466
+ inhibition_ref?: string | undefined;
467
+ }, {
468
+ memory_id: string;
469
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
470
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
471
+ lane: "exclusion";
472
+ redaction_ref?: string | undefined;
473
+ inhibition_ref?: string | undefined;
474
+ }>, "many">>;
475
+ redacted_audit_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
476
+ invalidation_state: z.ZodEnum<["valid", "invalid", "unknown"]>;
477
+ }, "strict", z.ZodTypeAny, {
478
+ source_refs: {
479
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
480
+ ref: string;
481
+ content_state: "materialized" | "redacted";
482
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
483
+ owning_store_ref?: {
484
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
485
+ schema_version: number;
486
+ store_ref: string;
487
+ record_ref: string;
488
+ } | undefined;
489
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
490
+ superseded_by_memory_id?: string | null | undefined;
491
+ surface_ref?: string | undefined;
492
+ }[];
493
+ scope: {
494
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
495
+ ref: string;
496
+ };
497
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
498
+ version: number;
499
+ invalidation_state: "valid" | "unknown" | "invalid";
500
+ surface_id: string;
501
+ gate_outcomes: {
502
+ status: "unknown" | "blocked" | "passed";
503
+ evaluated_at: string;
504
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
505
+ reason_ref?: string | undefined;
506
+ }[];
507
+ included_summaries: {
508
+ memory_id: string;
509
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
510
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
511
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
512
+ summary_ref: string;
513
+ }[];
514
+ excluded_summaries: {
515
+ memory_id: string;
516
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
517
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
518
+ lane: "exclusion";
519
+ redaction_ref?: string | undefined;
520
+ inhibition_ref?: string | undefined;
521
+ }[];
522
+ redacted_audit_refs: string[];
523
+ }, {
524
+ source_refs: {
525
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
526
+ ref: string;
527
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
528
+ owning_store_ref?: {
529
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
530
+ store_ref: string;
531
+ record_ref: string;
532
+ schema_version?: number | undefined;
533
+ } | undefined;
534
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
535
+ superseded_by_memory_id?: string | null | undefined;
536
+ content_state?: "materialized" | "redacted" | undefined;
537
+ surface_ref?: string | undefined;
538
+ }[];
539
+ scope: {
540
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
541
+ ref: string;
542
+ };
543
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
544
+ version: number;
545
+ invalidation_state: "valid" | "unknown" | "invalid";
546
+ surface_id: string;
547
+ gate_outcomes: {
548
+ status: "unknown" | "blocked" | "passed";
549
+ evaluated_at: string;
550
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
551
+ reason_ref?: string | undefined;
552
+ }[];
553
+ included_summaries?: {
554
+ memory_id: string;
555
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
556
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
557
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
558
+ summary_ref: string;
559
+ }[] | undefined;
560
+ excluded_summaries?: {
561
+ memory_id: string;
562
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
563
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
564
+ lane: "exclusion";
565
+ redaction_ref?: string | undefined;
566
+ inhibition_ref?: string | undefined;
567
+ }[] | undefined;
568
+ redacted_audit_refs?: string[] | undefined;
569
+ }>;
570
+ prompt_dump: z.ZodOptional<z.ZodNever>;
571
+ }, "strict", z.ZodTypeAny, {
572
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
573
+ inspection: {
574
+ source_refs: {
575
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
576
+ ref: string;
577
+ content_state: "materialized" | "redacted";
578
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
579
+ owning_store_ref?: {
580
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
581
+ schema_version: number;
582
+ store_ref: string;
583
+ record_ref: string;
584
+ } | undefined;
585
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
586
+ superseded_by_memory_id?: string | null | undefined;
587
+ surface_ref?: string | undefined;
588
+ }[];
589
+ scope: {
590
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
591
+ ref: string;
592
+ };
593
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
594
+ version: number;
595
+ invalidation_state: "valid" | "unknown" | "invalid";
596
+ surface_id: string;
597
+ gate_outcomes: {
598
+ status: "unknown" | "blocked" | "passed";
599
+ evaluated_at: string;
600
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
601
+ reason_ref?: string | undefined;
602
+ }[];
603
+ included_summaries: {
604
+ memory_id: string;
605
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
606
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
607
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
608
+ summary_ref: string;
609
+ }[];
610
+ excluded_summaries: {
611
+ memory_id: string;
612
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
613
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
614
+ lane: "exclusion";
615
+ redaction_ref?: string | undefined;
616
+ inhibition_ref?: string | undefined;
617
+ }[];
618
+ redacted_audit_refs: string[];
619
+ };
620
+ prompt_dump?: undefined;
621
+ }, {
622
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
623
+ inspection: {
624
+ source_refs: {
625
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
626
+ ref: string;
627
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
628
+ owning_store_ref?: {
629
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
630
+ store_ref: string;
631
+ record_ref: string;
632
+ schema_version?: number | undefined;
633
+ } | undefined;
634
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
635
+ superseded_by_memory_id?: string | null | undefined;
636
+ content_state?: "materialized" | "redacted" | undefined;
637
+ surface_ref?: string | undefined;
638
+ }[];
639
+ scope: {
640
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
641
+ ref: string;
642
+ };
643
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
644
+ version: number;
645
+ invalidation_state: "valid" | "unknown" | "invalid";
646
+ surface_id: string;
647
+ gate_outcomes: {
648
+ status: "unknown" | "blocked" | "passed";
649
+ evaluated_at: string;
650
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
651
+ reason_ref?: string | undefined;
652
+ }[];
653
+ included_summaries?: {
654
+ memory_id: string;
655
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
656
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
657
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
658
+ summary_ref: string;
659
+ }[] | undefined;
660
+ excluded_summaries?: {
661
+ memory_id: string;
662
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
663
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
664
+ lane: "exclusion";
665
+ redaction_ref?: string | undefined;
666
+ inhibition_ref?: string | undefined;
667
+ }[] | undefined;
668
+ redacted_audit_refs?: string[] | undefined;
669
+ };
670
+ prompt_dump?: undefined;
671
+ }>, "many">>;
672
+ attention_input_id: z.ZodOptional<z.ZodString>;
673
+ attention_replay_disposition: z.ZodOptional<z.ZodEnum<["accepted", "duplicate"]>>;
674
+ agenda_item_id: z.ZodOptional<z.ZodString>;
675
+ outcome_decision_id: z.ZodOptional<z.ZodString>;
676
+ operation_plan_assembly_id: z.ZodOptional<z.ZodString>;
677
+ operation_plan_status: z.ZodOptional<z.ZodEnum<["planned", "no_supported_plan", "clarification_required", "fail_closed"]>>;
678
+ operation_plan_reason: z.ZodOptional<z.ZodString>;
679
+ operation_plan_id: z.ZodOptional<z.ZodString>;
680
+ operation_admission_evaluation_id: z.ZodOptional<z.ZodString>;
681
+ autonomy_decision_id: z.ZodOptional<z.ZodString>;
682
+ autonomy_decision_level: z.ZodOptional<z.ZodEnum<["advisory", "prepare_only", "user_directed_execute", "autonomous_low_risk", "approval_required", "prohibited"]>>;
683
+ operation_preparation_allowed: z.ZodOptional<z.ZodBoolean>;
684
+ operation_execution_allowed: z.ZodOptional<z.ZodBoolean>;
685
+ cognition_id: z.ZodOptional<z.ZodString>;
686
+ cognition_response_plan_id: z.ZodOptional<z.ZodString>;
687
+ cognition_delivery_kind: z.ZodOptional<z.ZodEnum<["hold", "digest", "suggest", "notify", "speak", "prepare", "execute"]>>;
688
+ cognition_writeback_proposal_count: z.ZodOptional<z.ZodNumber>;
689
+ cognition_tool_candidate_count: z.ZodOptional<z.ZodNumber>;
690
+ cognition_replay_record_id: z.ZodOptional<z.ZodString>;
691
+ cognition_replay_index_entry_id: z.ZodOptional<z.ZodString>;
22
692
  }, "strip", z.ZodTypeAny, {
23
693
  kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
24
694
  trigger: "schedule" | "external" | "proactive_tick";
25
695
  summary: string;
26
696
  recorded_at: string;
27
697
  goal_id?: string | undefined;
698
+ surface_id?: string | undefined;
28
699
  intervention_id?: string | undefined;
29
700
  suggestion_title?: string | undefined;
701
+ surface_included_count?: number | undefined;
702
+ surface_excluded_count?: number | undefined;
703
+ surface_inspection?: {
704
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
705
+ inspection: {
706
+ source_refs: {
707
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
708
+ ref: string;
709
+ content_state: "materialized" | "redacted";
710
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
711
+ owning_store_ref?: {
712
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
713
+ schema_version: number;
714
+ store_ref: string;
715
+ record_ref: string;
716
+ } | undefined;
717
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
718
+ superseded_by_memory_id?: string | null | undefined;
719
+ surface_ref?: string | undefined;
720
+ }[];
721
+ scope: {
722
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
723
+ ref: string;
724
+ };
725
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
726
+ version: number;
727
+ invalidation_state: "valid" | "unknown" | "invalid";
728
+ surface_id: string;
729
+ gate_outcomes: {
730
+ status: "unknown" | "blocked" | "passed";
731
+ evaluated_at: string;
732
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
733
+ reason_ref?: string | undefined;
734
+ }[];
735
+ included_summaries: {
736
+ memory_id: string;
737
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
738
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
739
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
740
+ summary_ref: string;
741
+ }[];
742
+ excluded_summaries: {
743
+ memory_id: string;
744
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
745
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
746
+ lane: "exclusion";
747
+ redaction_ref?: string | undefined;
748
+ inhibition_ref?: string | undefined;
749
+ }[];
750
+ redacted_audit_refs: string[];
751
+ };
752
+ prompt_dump?: undefined;
753
+ } | undefined;
754
+ surface_inspections?: {
755
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
756
+ inspection: {
757
+ source_refs: {
758
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
759
+ ref: string;
760
+ content_state: "materialized" | "redacted";
761
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
762
+ owning_store_ref?: {
763
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
764
+ schema_version: number;
765
+ store_ref: string;
766
+ record_ref: string;
767
+ } | undefined;
768
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
769
+ superseded_by_memory_id?: string | null | undefined;
770
+ surface_ref?: string | undefined;
771
+ }[];
772
+ scope: {
773
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
774
+ ref: string;
775
+ };
776
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
777
+ version: number;
778
+ invalidation_state: "valid" | "unknown" | "invalid";
779
+ surface_id: string;
780
+ gate_outcomes: {
781
+ status: "unknown" | "blocked" | "passed";
782
+ evaluated_at: string;
783
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
784
+ reason_ref?: string | undefined;
785
+ }[];
786
+ included_summaries: {
787
+ memory_id: string;
788
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
789
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
790
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
791
+ summary_ref: string;
792
+ }[];
793
+ excluded_summaries: {
794
+ memory_id: string;
795
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
796
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
797
+ lane: "exclusion";
798
+ redaction_ref?: string | undefined;
799
+ inhibition_ref?: string | undefined;
800
+ }[];
801
+ redacted_audit_refs: string[];
802
+ };
803
+ prompt_dump?: undefined;
804
+ }[] | undefined;
805
+ attention_input_id?: string | undefined;
806
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
807
+ agenda_item_id?: string | undefined;
808
+ outcome_decision_id?: string | undefined;
809
+ operation_plan_assembly_id?: string | undefined;
810
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
811
+ operation_plan_reason?: string | undefined;
812
+ operation_plan_id?: string | undefined;
813
+ operation_admission_evaluation_id?: string | undefined;
814
+ autonomy_decision_id?: string | undefined;
815
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
816
+ operation_preparation_allowed?: boolean | undefined;
817
+ operation_execution_allowed?: boolean | undefined;
818
+ cognition_id?: string | undefined;
819
+ cognition_response_plan_id?: string | undefined;
820
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
821
+ cognition_writeback_proposal_count?: number | undefined;
822
+ cognition_tool_candidate_count?: number | undefined;
823
+ cognition_replay_record_id?: string | undefined;
824
+ cognition_replay_index_entry_id?: string | undefined;
30
825
  }, {
31
826
  kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
32
827
  summary: string;
33
828
  recorded_at: string;
34
829
  trigger?: "schedule" | "external" | "proactive_tick" | undefined;
35
830
  goal_id?: string | undefined;
831
+ surface_id?: string | undefined;
36
832
  intervention_id?: string | undefined;
37
833
  suggestion_title?: string | undefined;
834
+ surface_included_count?: number | undefined;
835
+ surface_excluded_count?: number | undefined;
836
+ surface_inspection?: {
837
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
838
+ inspection: {
839
+ source_refs: {
840
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
841
+ ref: string;
842
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
843
+ owning_store_ref?: {
844
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
845
+ store_ref: string;
846
+ record_ref: string;
847
+ schema_version?: number | undefined;
848
+ } | undefined;
849
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
850
+ superseded_by_memory_id?: string | null | undefined;
851
+ content_state?: "materialized" | "redacted" | undefined;
852
+ surface_ref?: string | undefined;
853
+ }[];
854
+ scope: {
855
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
856
+ ref: string;
857
+ };
858
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
859
+ version: number;
860
+ invalidation_state: "valid" | "unknown" | "invalid";
861
+ surface_id: string;
862
+ gate_outcomes: {
863
+ status: "unknown" | "blocked" | "passed";
864
+ evaluated_at: string;
865
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
866
+ reason_ref?: string | undefined;
867
+ }[];
868
+ included_summaries?: {
869
+ memory_id: string;
870
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
871
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
872
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
873
+ summary_ref: string;
874
+ }[] | undefined;
875
+ excluded_summaries?: {
876
+ memory_id: string;
877
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
878
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
879
+ lane: "exclusion";
880
+ redaction_ref?: string | undefined;
881
+ inhibition_ref?: string | undefined;
882
+ }[] | undefined;
883
+ redacted_audit_refs?: string[] | undefined;
884
+ };
885
+ prompt_dump?: undefined;
886
+ } | undefined;
887
+ surface_inspections?: {
888
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
889
+ inspection: {
890
+ source_refs: {
891
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
892
+ ref: string;
893
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
894
+ owning_store_ref?: {
895
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
896
+ store_ref: string;
897
+ record_ref: string;
898
+ schema_version?: number | undefined;
899
+ } | undefined;
900
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
901
+ superseded_by_memory_id?: string | null | undefined;
902
+ content_state?: "materialized" | "redacted" | undefined;
903
+ surface_ref?: string | undefined;
904
+ }[];
905
+ scope: {
906
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
907
+ ref: string;
908
+ };
909
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
910
+ version: number;
911
+ invalidation_state: "valid" | "unknown" | "invalid";
912
+ surface_id: string;
913
+ gate_outcomes: {
914
+ status: "unknown" | "blocked" | "passed";
915
+ evaluated_at: string;
916
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
917
+ reason_ref?: string | undefined;
918
+ }[];
919
+ included_summaries?: {
920
+ memory_id: string;
921
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
922
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
923
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
924
+ summary_ref: string;
925
+ }[] | undefined;
926
+ excluded_summaries?: {
927
+ memory_id: string;
928
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
929
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
930
+ lane: "exclusion";
931
+ redaction_ref?: string | undefined;
932
+ inhibition_ref?: string | undefined;
933
+ }[] | undefined;
934
+ redacted_audit_refs?: string[] | undefined;
935
+ };
936
+ prompt_dump?: undefined;
937
+ }[] | undefined;
938
+ attention_input_id?: string | undefined;
939
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
940
+ agenda_item_id?: string | undefined;
941
+ outcome_decision_id?: string | undefined;
942
+ operation_plan_assembly_id?: string | undefined;
943
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
944
+ operation_plan_reason?: string | undefined;
945
+ operation_plan_id?: string | undefined;
946
+ operation_admission_evaluation_id?: string | undefined;
947
+ autonomy_decision_id?: string | undefined;
948
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
949
+ operation_preparation_allowed?: boolean | undefined;
950
+ operation_execution_allowed?: boolean | undefined;
951
+ cognition_id?: string | undefined;
952
+ cognition_response_plan_id?: string | undefined;
953
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
954
+ cognition_writeback_proposal_count?: number | undefined;
955
+ cognition_tool_candidate_count?: number | undefined;
956
+ cognition_replay_record_id?: string | undefined;
957
+ cognition_replay_index_entry_id?: string | undefined;
38
958
  }>;
39
959
  }, "strip", z.ZodTypeAny, {
40
960
  schema_version: "runtime-proactive-intervention-event-v1";
41
- channel: "gateway" | "cli" | "daemon";
961
+ event_id: string;
42
962
  event_type: "intervention";
963
+ channel: "cli" | "daemon" | "gateway";
43
964
  intervention_id: string;
44
965
  recorded_at: string;
45
966
  activity: {
@@ -48,12 +969,137 @@ export declare const ProactiveInterventionActivityEventSchema: z.ZodObject<{
48
969
  summary: string;
49
970
  recorded_at: string;
50
971
  goal_id?: string | undefined;
972
+ surface_id?: string | undefined;
51
973
  intervention_id?: string | undefined;
52
974
  suggestion_title?: string | undefined;
975
+ surface_included_count?: number | undefined;
976
+ surface_excluded_count?: number | undefined;
977
+ surface_inspection?: {
978
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
979
+ inspection: {
980
+ source_refs: {
981
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
982
+ ref: string;
983
+ content_state: "materialized" | "redacted";
984
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
985
+ owning_store_ref?: {
986
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
987
+ schema_version: number;
988
+ store_ref: string;
989
+ record_ref: string;
990
+ } | undefined;
991
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
992
+ superseded_by_memory_id?: string | null | undefined;
993
+ surface_ref?: string | undefined;
994
+ }[];
995
+ scope: {
996
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
997
+ ref: string;
998
+ };
999
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1000
+ version: number;
1001
+ invalidation_state: "valid" | "unknown" | "invalid";
1002
+ surface_id: string;
1003
+ gate_outcomes: {
1004
+ status: "unknown" | "blocked" | "passed";
1005
+ evaluated_at: string;
1006
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1007
+ reason_ref?: string | undefined;
1008
+ }[];
1009
+ included_summaries: {
1010
+ memory_id: string;
1011
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1012
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1013
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1014
+ summary_ref: string;
1015
+ }[];
1016
+ excluded_summaries: {
1017
+ memory_id: string;
1018
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1019
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1020
+ lane: "exclusion";
1021
+ redaction_ref?: string | undefined;
1022
+ inhibition_ref?: string | undefined;
1023
+ }[];
1024
+ redacted_audit_refs: string[];
1025
+ };
1026
+ prompt_dump?: undefined;
1027
+ } | undefined;
1028
+ surface_inspections?: {
1029
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1030
+ inspection: {
1031
+ source_refs: {
1032
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1033
+ ref: string;
1034
+ content_state: "materialized" | "redacted";
1035
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1036
+ owning_store_ref?: {
1037
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1038
+ schema_version: number;
1039
+ store_ref: string;
1040
+ record_ref: string;
1041
+ } | undefined;
1042
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1043
+ superseded_by_memory_id?: string | null | undefined;
1044
+ surface_ref?: string | undefined;
1045
+ }[];
1046
+ scope: {
1047
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1048
+ ref: string;
1049
+ };
1050
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1051
+ version: number;
1052
+ invalidation_state: "valid" | "unknown" | "invalid";
1053
+ surface_id: string;
1054
+ gate_outcomes: {
1055
+ status: "unknown" | "blocked" | "passed";
1056
+ evaluated_at: string;
1057
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1058
+ reason_ref?: string | undefined;
1059
+ }[];
1060
+ included_summaries: {
1061
+ memory_id: string;
1062
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1063
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1064
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1065
+ summary_ref: string;
1066
+ }[];
1067
+ excluded_summaries: {
1068
+ memory_id: string;
1069
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1070
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1071
+ lane: "exclusion";
1072
+ redaction_ref?: string | undefined;
1073
+ inhibition_ref?: string | undefined;
1074
+ }[];
1075
+ redacted_audit_refs: string[];
1076
+ };
1077
+ prompt_dump?: undefined;
1078
+ }[] | undefined;
1079
+ attention_input_id?: string | undefined;
1080
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
1081
+ agenda_item_id?: string | undefined;
1082
+ outcome_decision_id?: string | undefined;
1083
+ operation_plan_assembly_id?: string | undefined;
1084
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
1085
+ operation_plan_reason?: string | undefined;
1086
+ operation_plan_id?: string | undefined;
1087
+ operation_admission_evaluation_id?: string | undefined;
1088
+ autonomy_decision_id?: string | undefined;
1089
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
1090
+ operation_preparation_allowed?: boolean | undefined;
1091
+ operation_execution_allowed?: boolean | undefined;
1092
+ cognition_id?: string | undefined;
1093
+ cognition_response_plan_id?: string | undefined;
1094
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
1095
+ cognition_writeback_proposal_count?: number | undefined;
1096
+ cognition_tool_candidate_count?: number | undefined;
1097
+ cognition_replay_record_id?: string | undefined;
1098
+ cognition_replay_index_entry_id?: string | undefined;
53
1099
  };
54
- event_id: string;
55
1100
  }, {
56
1101
  schema_version: "runtime-proactive-intervention-event-v1";
1102
+ event_id: string;
57
1103
  event_type: "intervention";
58
1104
  intervention_id: string;
59
1105
  recorded_at: string;
@@ -63,11 +1109,135 @@ export declare const ProactiveInterventionActivityEventSchema: z.ZodObject<{
63
1109
  recorded_at: string;
64
1110
  trigger?: "schedule" | "external" | "proactive_tick" | undefined;
65
1111
  goal_id?: string | undefined;
1112
+ surface_id?: string | undefined;
66
1113
  intervention_id?: string | undefined;
67
1114
  suggestion_title?: string | undefined;
1115
+ surface_included_count?: number | undefined;
1116
+ surface_excluded_count?: number | undefined;
1117
+ surface_inspection?: {
1118
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1119
+ inspection: {
1120
+ source_refs: {
1121
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1122
+ ref: string;
1123
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1124
+ owning_store_ref?: {
1125
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1126
+ store_ref: string;
1127
+ record_ref: string;
1128
+ schema_version?: number | undefined;
1129
+ } | undefined;
1130
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1131
+ superseded_by_memory_id?: string | null | undefined;
1132
+ content_state?: "materialized" | "redacted" | undefined;
1133
+ surface_ref?: string | undefined;
1134
+ }[];
1135
+ scope: {
1136
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1137
+ ref: string;
1138
+ };
1139
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1140
+ version: number;
1141
+ invalidation_state: "valid" | "unknown" | "invalid";
1142
+ surface_id: string;
1143
+ gate_outcomes: {
1144
+ status: "unknown" | "blocked" | "passed";
1145
+ evaluated_at: string;
1146
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1147
+ reason_ref?: string | undefined;
1148
+ }[];
1149
+ included_summaries?: {
1150
+ memory_id: string;
1151
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1152
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1153
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1154
+ summary_ref: string;
1155
+ }[] | undefined;
1156
+ excluded_summaries?: {
1157
+ memory_id: string;
1158
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1159
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1160
+ lane: "exclusion";
1161
+ redaction_ref?: string | undefined;
1162
+ inhibition_ref?: string | undefined;
1163
+ }[] | undefined;
1164
+ redacted_audit_refs?: string[] | undefined;
1165
+ };
1166
+ prompt_dump?: undefined;
1167
+ } | undefined;
1168
+ surface_inspections?: {
1169
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1170
+ inspection: {
1171
+ source_refs: {
1172
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1173
+ ref: string;
1174
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1175
+ owning_store_ref?: {
1176
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1177
+ store_ref: string;
1178
+ record_ref: string;
1179
+ schema_version?: number | undefined;
1180
+ } | undefined;
1181
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1182
+ superseded_by_memory_id?: string | null | undefined;
1183
+ content_state?: "materialized" | "redacted" | undefined;
1184
+ surface_ref?: string | undefined;
1185
+ }[];
1186
+ scope: {
1187
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1188
+ ref: string;
1189
+ };
1190
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1191
+ version: number;
1192
+ invalidation_state: "valid" | "unknown" | "invalid";
1193
+ surface_id: string;
1194
+ gate_outcomes: {
1195
+ status: "unknown" | "blocked" | "passed";
1196
+ evaluated_at: string;
1197
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1198
+ reason_ref?: string | undefined;
1199
+ }[];
1200
+ included_summaries?: {
1201
+ memory_id: string;
1202
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1203
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1204
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1205
+ summary_ref: string;
1206
+ }[] | undefined;
1207
+ excluded_summaries?: {
1208
+ memory_id: string;
1209
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1210
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1211
+ lane: "exclusion";
1212
+ redaction_ref?: string | undefined;
1213
+ inhibition_ref?: string | undefined;
1214
+ }[] | undefined;
1215
+ redacted_audit_refs?: string[] | undefined;
1216
+ };
1217
+ prompt_dump?: undefined;
1218
+ }[] | undefined;
1219
+ attention_input_id?: string | undefined;
1220
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
1221
+ agenda_item_id?: string | undefined;
1222
+ outcome_decision_id?: string | undefined;
1223
+ operation_plan_assembly_id?: string | undefined;
1224
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
1225
+ operation_plan_reason?: string | undefined;
1226
+ operation_plan_id?: string | undefined;
1227
+ operation_admission_evaluation_id?: string | undefined;
1228
+ autonomy_decision_id?: string | undefined;
1229
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
1230
+ operation_preparation_allowed?: boolean | undefined;
1231
+ operation_execution_allowed?: boolean | undefined;
1232
+ cognition_id?: string | undefined;
1233
+ cognition_response_plan_id?: string | undefined;
1234
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
1235
+ cognition_writeback_proposal_count?: number | undefined;
1236
+ cognition_tool_candidate_count?: number | undefined;
1237
+ cognition_replay_record_id?: string | undefined;
1238
+ cognition_replay_index_entry_id?: string | undefined;
68
1239
  };
69
- event_id: string;
70
- channel?: "gateway" | "cli" | "daemon" | undefined;
1240
+ channel?: "cli" | "daemon" | "gateway" | undefined;
71
1241
  }>;
72
1242
  export declare const ProactiveInterventionFeedbackEventSchema: z.ZodObject<{
73
1243
  schema_version: z.ZodLiteral<"runtime-proactive-intervention-event-v1">;
@@ -87,44 +1257,44 @@ export declare const ProactiveInterventionFeedbackEventSchema: z.ZodObject<{
87
1257
  reason: z.ZodString;
88
1258
  }, "strip", z.ZodTypeAny, {
89
1259
  reason: string;
90
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
91
1260
  relationship_profile_key: string;
1261
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
92
1262
  }, {
93
1263
  reason: string;
94
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
95
1264
  relationship_profile_key: string;
1265
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
96
1266
  }>>>;
97
1267
  }, "strip", z.ZodTypeAny, {
98
1268
  schema_version: "runtime-proactive-intervention-event-v1";
99
- outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
100
- channel: "gateway" | "cli" | "daemon";
1269
+ outcome: "accepted" | "corrected" | "ignored" | "dismissed" | "overreach";
1270
+ event_id: string;
101
1271
  event_type: "feedback";
1272
+ channel: "cli" | "daemon" | "gateway";
102
1273
  intervention_id: string;
103
1274
  recorded_at: string;
104
- event_id: string;
105
1275
  overreach_indicators: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[];
106
1276
  follow_through_success: boolean | null;
107
1277
  policy_adjustment_recommendation: {
108
1278
  reason: string;
109
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
110
1279
  relationship_profile_key: string;
1280
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
111
1281
  } | null;
112
1282
  reason?: string | undefined;
113
1283
  }, {
114
1284
  schema_version: "runtime-proactive-intervention-event-v1";
115
- outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
1285
+ outcome: "accepted" | "corrected" | "ignored" | "dismissed" | "overreach";
1286
+ event_id: string;
116
1287
  event_type: "feedback";
117
1288
  intervention_id: string;
118
1289
  recorded_at: string;
119
- event_id: string;
120
1290
  reason?: string | undefined;
121
- channel?: "gateway" | "cli" | "daemon" | undefined;
1291
+ channel?: "cli" | "daemon" | "gateway" | undefined;
122
1292
  overreach_indicators?: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[] | undefined;
123
1293
  follow_through_success?: boolean | null | undefined;
124
1294
  policy_adjustment_recommendation?: {
125
1295
  reason: string;
126
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
127
1296
  relationship_profile_key: string;
1297
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
128
1298
  } | null | undefined;
129
1299
  }>;
130
1300
  export declare const ProactiveInterventionEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
@@ -143,27 +1313,947 @@ export declare const ProactiveInterventionEventSchema: z.ZodDiscriminatedUnion<"
143
1313
  recorded_at: z.ZodString;
144
1314
  suggestion_title: z.ZodOptional<z.ZodString>;
145
1315
  goal_id: z.ZodOptional<z.ZodString>;
1316
+ surface_id: z.ZodOptional<z.ZodString>;
1317
+ surface_included_count: z.ZodOptional<z.ZodNumber>;
1318
+ surface_excluded_count: z.ZodOptional<z.ZodNumber>;
1319
+ surface_inspection: z.ZodOptional<z.ZodObject<{
1320
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
1321
+ inspection: z.ZodObject<{
1322
+ surface_id: z.ZodString;
1323
+ version: z.ZodNumber;
1324
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
1325
+ scope: z.ZodObject<{
1326
+ kind: z.ZodEnum<["conversation", "task", "runtime_item", "inspection", "session_resume"]>;
1327
+ ref: z.ZodString;
1328
+ }, "strict", z.ZodTypeAny, {
1329
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1330
+ ref: string;
1331
+ }, {
1332
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1333
+ ref: string;
1334
+ }>;
1335
+ source_refs: z.ZodArray<z.ZodObject<{
1336
+ kind: z.ZodEnum<["memory_record", "permission_grant", "runtime_item", "agenda_item", "urge_candidate", "outcome_decision", "expression_decision", "memory_write_candidate", "session_resume_attempt", "audit_trace"]>;
1337
+ ref: z.ZodString;
1338
+ owning_store_ref: z.ZodOptional<z.ZodObject<{
1339
+ kind: z.ZodEnum<["relationship_profile", "profile_proposal", "runtime_session", "soil", "knowledge", "dream_seed"]>;
1340
+ store_ref: z.ZodString;
1341
+ record_ref: z.ZodString;
1342
+ schema_version: z.ZodDefault<z.ZodNumber>;
1343
+ }, "strict", z.ZodTypeAny, {
1344
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1345
+ schema_version: number;
1346
+ store_ref: string;
1347
+ record_ref: string;
1348
+ }, {
1349
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1350
+ store_ref: string;
1351
+ record_ref: string;
1352
+ schema_version?: number | undefined;
1353
+ }>>;
1354
+ content_state: z.ZodDefault<z.ZodEnum<["materialized", "redacted"]>>;
1355
+ lifecycle: z.ZodOptional<z.ZodEnum<["active", "planted", "matured", "decayed", "retired", "suppressed", "superseded", "retracted", "tombstoned", "deleted", "archived"]>>;
1356
+ correction_state: z.ZodOptional<z.ZodEnum<["current", "under_review", "corrected", "superseded", "retracted", "deleted"]>>;
1357
+ superseded_by_memory_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ surface_ref: z.ZodOptional<z.ZodString>;
1359
+ }, "strict", z.ZodTypeAny, {
1360
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1361
+ ref: string;
1362
+ content_state: "materialized" | "redacted";
1363
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1364
+ owning_store_ref?: {
1365
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1366
+ schema_version: number;
1367
+ store_ref: string;
1368
+ record_ref: string;
1369
+ } | undefined;
1370
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1371
+ superseded_by_memory_id?: string | null | undefined;
1372
+ surface_ref?: string | undefined;
1373
+ }, {
1374
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1375
+ ref: string;
1376
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1377
+ owning_store_ref?: {
1378
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1379
+ store_ref: string;
1380
+ record_ref: string;
1381
+ schema_version?: number | undefined;
1382
+ } | undefined;
1383
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1384
+ superseded_by_memory_id?: string | null | undefined;
1385
+ content_state?: "materialized" | "redacted" | undefined;
1386
+ surface_ref?: string | undefined;
1387
+ }>, "many">;
1388
+ gate_outcomes: z.ZodArray<z.ZodObject<{
1389
+ gate: z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>;
1390
+ status: z.ZodEnum<["passed", "blocked", "unknown"]>;
1391
+ reason_ref: z.ZodOptional<z.ZodString>;
1392
+ evaluated_at: z.ZodString;
1393
+ }, "strict", z.ZodTypeAny, {
1394
+ status: "unknown" | "blocked" | "passed";
1395
+ evaluated_at: string;
1396
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1397
+ reason_ref?: string | undefined;
1398
+ }, {
1399
+ status: "unknown" | "blocked" | "passed";
1400
+ evaluated_at: string;
1401
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1402
+ reason_ref?: string | undefined;
1403
+ }>, "many">;
1404
+ included_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1405
+ lane: z.ZodEnum<["knowledge", "work_memory", "relationship", "boundary", "promise", "tension", "anti_memory"]>;
1406
+ memory_id: z.ZodString;
1407
+ record_kind: z.ZodEnum<["stable_profile_fact", "preference", "routine", "boundary", "intervention_policy", "episodic_event", "promise", "correction", "relationship_posture", "consent_scope", "work_commitment", "project_fact", "knowledge_fact", "open_tension", "anti_memory_rule", "seed_candidate"]>;
1408
+ use_class: z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>;
1409
+ summary_ref: z.ZodString;
1410
+ }, "strict", z.ZodTypeAny, {
1411
+ memory_id: string;
1412
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1413
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1414
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1415
+ summary_ref: string;
1416
+ }, {
1417
+ memory_id: string;
1418
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1419
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1420
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1421
+ summary_ref: string;
1422
+ }>, "many">>;
1423
+ excluded_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1424
+ lane: z.ZodLiteral<"exclusion">;
1425
+ memory_id: z.ZodString;
1426
+ requested_use: z.ZodUnion<[z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>, z.ZodEnum<["user_personality_labeling", "diagnosis", "motivation_claim", "emotional_leverage", "engagement_optimization", "attachment_optimization", "proactive_trigger", "side_effect_authorization", "stale_session_authorization", "raw_prompt_injection", "cross_scope_reuse"]>]>;
1427
+ blocked_by: z.ZodArray<z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>, "many">;
1428
+ redaction_ref: z.ZodOptional<z.ZodString>;
1429
+ inhibition_ref: z.ZodOptional<z.ZodString>;
1430
+ }, "strict", z.ZodTypeAny, {
1431
+ memory_id: string;
1432
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1433
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1434
+ lane: "exclusion";
1435
+ redaction_ref?: string | undefined;
1436
+ inhibition_ref?: string | undefined;
1437
+ }, {
1438
+ memory_id: string;
1439
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1440
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1441
+ lane: "exclusion";
1442
+ redaction_ref?: string | undefined;
1443
+ inhibition_ref?: string | undefined;
1444
+ }>, "many">>;
1445
+ redacted_audit_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1446
+ invalidation_state: z.ZodEnum<["valid", "invalid", "unknown"]>;
1447
+ }, "strict", z.ZodTypeAny, {
1448
+ source_refs: {
1449
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1450
+ ref: string;
1451
+ content_state: "materialized" | "redacted";
1452
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1453
+ owning_store_ref?: {
1454
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1455
+ schema_version: number;
1456
+ store_ref: string;
1457
+ record_ref: string;
1458
+ } | undefined;
1459
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1460
+ superseded_by_memory_id?: string | null | undefined;
1461
+ surface_ref?: string | undefined;
1462
+ }[];
1463
+ scope: {
1464
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1465
+ ref: string;
1466
+ };
1467
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1468
+ version: number;
1469
+ invalidation_state: "valid" | "unknown" | "invalid";
1470
+ surface_id: string;
1471
+ gate_outcomes: {
1472
+ status: "unknown" | "blocked" | "passed";
1473
+ evaluated_at: string;
1474
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1475
+ reason_ref?: string | undefined;
1476
+ }[];
1477
+ included_summaries: {
1478
+ memory_id: string;
1479
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1480
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1481
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1482
+ summary_ref: string;
1483
+ }[];
1484
+ excluded_summaries: {
1485
+ memory_id: string;
1486
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1487
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1488
+ lane: "exclusion";
1489
+ redaction_ref?: string | undefined;
1490
+ inhibition_ref?: string | undefined;
1491
+ }[];
1492
+ redacted_audit_refs: string[];
1493
+ }, {
1494
+ source_refs: {
1495
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1496
+ ref: string;
1497
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1498
+ owning_store_ref?: {
1499
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1500
+ store_ref: string;
1501
+ record_ref: string;
1502
+ schema_version?: number | undefined;
1503
+ } | undefined;
1504
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1505
+ superseded_by_memory_id?: string | null | undefined;
1506
+ content_state?: "materialized" | "redacted" | undefined;
1507
+ surface_ref?: string | undefined;
1508
+ }[];
1509
+ scope: {
1510
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1511
+ ref: string;
1512
+ };
1513
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1514
+ version: number;
1515
+ invalidation_state: "valid" | "unknown" | "invalid";
1516
+ surface_id: string;
1517
+ gate_outcomes: {
1518
+ status: "unknown" | "blocked" | "passed";
1519
+ evaluated_at: string;
1520
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1521
+ reason_ref?: string | undefined;
1522
+ }[];
1523
+ included_summaries?: {
1524
+ memory_id: string;
1525
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1526
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1527
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1528
+ summary_ref: string;
1529
+ }[] | undefined;
1530
+ excluded_summaries?: {
1531
+ memory_id: string;
1532
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1533
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1534
+ lane: "exclusion";
1535
+ redaction_ref?: string | undefined;
1536
+ inhibition_ref?: string | undefined;
1537
+ }[] | undefined;
1538
+ redacted_audit_refs?: string[] | undefined;
1539
+ }>;
1540
+ prompt_dump: z.ZodOptional<z.ZodNever>;
1541
+ }, "strict", z.ZodTypeAny, {
1542
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1543
+ inspection: {
1544
+ source_refs: {
1545
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1546
+ ref: string;
1547
+ content_state: "materialized" | "redacted";
1548
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1549
+ owning_store_ref?: {
1550
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1551
+ schema_version: number;
1552
+ store_ref: string;
1553
+ record_ref: string;
1554
+ } | undefined;
1555
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1556
+ superseded_by_memory_id?: string | null | undefined;
1557
+ surface_ref?: string | undefined;
1558
+ }[];
1559
+ scope: {
1560
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1561
+ ref: string;
1562
+ };
1563
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1564
+ version: number;
1565
+ invalidation_state: "valid" | "unknown" | "invalid";
1566
+ surface_id: string;
1567
+ gate_outcomes: {
1568
+ status: "unknown" | "blocked" | "passed";
1569
+ evaluated_at: string;
1570
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1571
+ reason_ref?: string | undefined;
1572
+ }[];
1573
+ included_summaries: {
1574
+ memory_id: string;
1575
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1576
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1577
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1578
+ summary_ref: string;
1579
+ }[];
1580
+ excluded_summaries: {
1581
+ memory_id: string;
1582
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1583
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1584
+ lane: "exclusion";
1585
+ redaction_ref?: string | undefined;
1586
+ inhibition_ref?: string | undefined;
1587
+ }[];
1588
+ redacted_audit_refs: string[];
1589
+ };
1590
+ prompt_dump?: undefined;
1591
+ }, {
1592
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1593
+ inspection: {
1594
+ source_refs: {
1595
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1596
+ ref: string;
1597
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1598
+ owning_store_ref?: {
1599
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1600
+ store_ref: string;
1601
+ record_ref: string;
1602
+ schema_version?: number | undefined;
1603
+ } | undefined;
1604
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1605
+ superseded_by_memory_id?: string | null | undefined;
1606
+ content_state?: "materialized" | "redacted" | undefined;
1607
+ surface_ref?: string | undefined;
1608
+ }[];
1609
+ scope: {
1610
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1611
+ ref: string;
1612
+ };
1613
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1614
+ version: number;
1615
+ invalidation_state: "valid" | "unknown" | "invalid";
1616
+ surface_id: string;
1617
+ gate_outcomes: {
1618
+ status: "unknown" | "blocked" | "passed";
1619
+ evaluated_at: string;
1620
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1621
+ reason_ref?: string | undefined;
1622
+ }[];
1623
+ included_summaries?: {
1624
+ memory_id: string;
1625
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1626
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1627
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1628
+ summary_ref: string;
1629
+ }[] | undefined;
1630
+ excluded_summaries?: {
1631
+ memory_id: string;
1632
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1633
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1634
+ lane: "exclusion";
1635
+ redaction_ref?: string | undefined;
1636
+ inhibition_ref?: string | undefined;
1637
+ }[] | undefined;
1638
+ redacted_audit_refs?: string[] | undefined;
1639
+ };
1640
+ prompt_dump?: undefined;
1641
+ }>>;
1642
+ surface_inspections: z.ZodOptional<z.ZodArray<z.ZodObject<{
1643
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
1644
+ inspection: z.ZodObject<{
1645
+ surface_id: z.ZodString;
1646
+ version: z.ZodNumber;
1647
+ target: z.ZodEnum<["chat", "tui", "cli", "daemon", "gateway", "gui", "agent_loop", "core_loop"]>;
1648
+ scope: z.ZodObject<{
1649
+ kind: z.ZodEnum<["conversation", "task", "runtime_item", "inspection", "session_resume"]>;
1650
+ ref: z.ZodString;
1651
+ }, "strict", z.ZodTypeAny, {
1652
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1653
+ ref: string;
1654
+ }, {
1655
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1656
+ ref: string;
1657
+ }>;
1658
+ source_refs: z.ZodArray<z.ZodObject<{
1659
+ kind: z.ZodEnum<["memory_record", "permission_grant", "runtime_item", "agenda_item", "urge_candidate", "outcome_decision", "expression_decision", "memory_write_candidate", "session_resume_attempt", "audit_trace"]>;
1660
+ ref: z.ZodString;
1661
+ owning_store_ref: z.ZodOptional<z.ZodObject<{
1662
+ kind: z.ZodEnum<["relationship_profile", "profile_proposal", "runtime_session", "soil", "knowledge", "dream_seed"]>;
1663
+ store_ref: z.ZodString;
1664
+ record_ref: z.ZodString;
1665
+ schema_version: z.ZodDefault<z.ZodNumber>;
1666
+ }, "strict", z.ZodTypeAny, {
1667
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1668
+ schema_version: number;
1669
+ store_ref: string;
1670
+ record_ref: string;
1671
+ }, {
1672
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1673
+ store_ref: string;
1674
+ record_ref: string;
1675
+ schema_version?: number | undefined;
1676
+ }>>;
1677
+ content_state: z.ZodDefault<z.ZodEnum<["materialized", "redacted"]>>;
1678
+ lifecycle: z.ZodOptional<z.ZodEnum<["active", "planted", "matured", "decayed", "retired", "suppressed", "superseded", "retracted", "tombstoned", "deleted", "archived"]>>;
1679
+ correction_state: z.ZodOptional<z.ZodEnum<["current", "under_review", "corrected", "superseded", "retracted", "deleted"]>>;
1680
+ superseded_by_memory_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1681
+ surface_ref: z.ZodOptional<z.ZodString>;
1682
+ }, "strict", z.ZodTypeAny, {
1683
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1684
+ ref: string;
1685
+ content_state: "materialized" | "redacted";
1686
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1687
+ owning_store_ref?: {
1688
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1689
+ schema_version: number;
1690
+ store_ref: string;
1691
+ record_ref: string;
1692
+ } | undefined;
1693
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1694
+ superseded_by_memory_id?: string | null | undefined;
1695
+ surface_ref?: string | undefined;
1696
+ }, {
1697
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1698
+ ref: string;
1699
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1700
+ owning_store_ref?: {
1701
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1702
+ store_ref: string;
1703
+ record_ref: string;
1704
+ schema_version?: number | undefined;
1705
+ } | undefined;
1706
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1707
+ superseded_by_memory_id?: string | null | undefined;
1708
+ content_state?: "materialized" | "redacted" | undefined;
1709
+ surface_ref?: string | undefined;
1710
+ }>, "many">;
1711
+ gate_outcomes: z.ZodArray<z.ZodObject<{
1712
+ gate: z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>;
1713
+ status: z.ZodEnum<["passed", "blocked", "unknown"]>;
1714
+ reason_ref: z.ZodOptional<z.ZodString>;
1715
+ evaluated_at: z.ZodString;
1716
+ }, "strict", z.ZodTypeAny, {
1717
+ status: "unknown" | "blocked" | "passed";
1718
+ evaluated_at: string;
1719
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1720
+ reason_ref?: string | undefined;
1721
+ }, {
1722
+ status: "unknown" | "blocked" | "passed";
1723
+ evaluated_at: string;
1724
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1725
+ reason_ref?: string | undefined;
1726
+ }>, "many">;
1727
+ included_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1728
+ lane: z.ZodEnum<["knowledge", "work_memory", "relationship", "boundary", "promise", "tension", "anti_memory"]>;
1729
+ memory_id: z.ZodString;
1730
+ record_kind: z.ZodEnum<["stable_profile_fact", "preference", "routine", "boundary", "intervention_policy", "episodic_event", "promise", "correction", "relationship_posture", "consent_scope", "work_commitment", "project_fact", "knowledge_fact", "open_tension", "anti_memory_rule", "seed_candidate"]>;
1731
+ use_class: z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>;
1732
+ summary_ref: z.ZodString;
1733
+ }, "strict", z.ZodTypeAny, {
1734
+ memory_id: string;
1735
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1736
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1737
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1738
+ summary_ref: string;
1739
+ }, {
1740
+ memory_id: string;
1741
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1742
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1743
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1744
+ summary_ref: string;
1745
+ }>, "many">>;
1746
+ excluded_summaries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1747
+ lane: z.ZodLiteral<"exclusion">;
1748
+ memory_id: z.ZodString;
1749
+ requested_use: z.ZodUnion<[z.ZodEnum<["runtime_grounding", "design_grounding", "behavioral_inhibition", "attention_prioritization", "expression_mode_selection", "tone_adaptation", "goal_planning", "ask_for_confirmation", "proactive_action_candidate", "user_facing_reference", "memory_write_candidate", "surface_projection", "never_use_directly"]>, z.ZodEnum<["user_personality_labeling", "diagnosis", "motivation_claim", "emotional_leverage", "engagement_optimization", "attachment_optimization", "proactive_trigger", "side_effect_authorization", "stale_session_authorization", "raw_prompt_injection", "cross_scope_reuse"]>]>;
1750
+ blocked_by: z.ZodArray<z.ZodEnum<["scope", "lifecycle", "staleness", "sensitivity", "permission", "allowed_use", "forbidden_use", "projection", "audit"]>, "many">;
1751
+ redaction_ref: z.ZodOptional<z.ZodString>;
1752
+ inhibition_ref: z.ZodOptional<z.ZodString>;
1753
+ }, "strict", z.ZodTypeAny, {
1754
+ memory_id: string;
1755
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1756
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1757
+ lane: "exclusion";
1758
+ redaction_ref?: string | undefined;
1759
+ inhibition_ref?: string | undefined;
1760
+ }, {
1761
+ memory_id: string;
1762
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1763
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1764
+ lane: "exclusion";
1765
+ redaction_ref?: string | undefined;
1766
+ inhibition_ref?: string | undefined;
1767
+ }>, "many">>;
1768
+ redacted_audit_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1769
+ invalidation_state: z.ZodEnum<["valid", "invalid", "unknown"]>;
1770
+ }, "strict", z.ZodTypeAny, {
1771
+ source_refs: {
1772
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1773
+ ref: string;
1774
+ content_state: "materialized" | "redacted";
1775
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1776
+ owning_store_ref?: {
1777
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1778
+ schema_version: number;
1779
+ store_ref: string;
1780
+ record_ref: string;
1781
+ } | undefined;
1782
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1783
+ superseded_by_memory_id?: string | null | undefined;
1784
+ surface_ref?: string | undefined;
1785
+ }[];
1786
+ scope: {
1787
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1788
+ ref: string;
1789
+ };
1790
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1791
+ version: number;
1792
+ invalidation_state: "valid" | "unknown" | "invalid";
1793
+ surface_id: string;
1794
+ gate_outcomes: {
1795
+ status: "unknown" | "blocked" | "passed";
1796
+ evaluated_at: string;
1797
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1798
+ reason_ref?: string | undefined;
1799
+ }[];
1800
+ included_summaries: {
1801
+ memory_id: string;
1802
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1803
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1804
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1805
+ summary_ref: string;
1806
+ }[];
1807
+ excluded_summaries: {
1808
+ memory_id: string;
1809
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1810
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1811
+ lane: "exclusion";
1812
+ redaction_ref?: string | undefined;
1813
+ inhibition_ref?: string | undefined;
1814
+ }[];
1815
+ redacted_audit_refs: string[];
1816
+ }, {
1817
+ source_refs: {
1818
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1819
+ ref: string;
1820
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1821
+ owning_store_ref?: {
1822
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1823
+ store_ref: string;
1824
+ record_ref: string;
1825
+ schema_version?: number | undefined;
1826
+ } | undefined;
1827
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1828
+ superseded_by_memory_id?: string | null | undefined;
1829
+ content_state?: "materialized" | "redacted" | undefined;
1830
+ surface_ref?: string | undefined;
1831
+ }[];
1832
+ scope: {
1833
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1834
+ ref: string;
1835
+ };
1836
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1837
+ version: number;
1838
+ invalidation_state: "valid" | "unknown" | "invalid";
1839
+ surface_id: string;
1840
+ gate_outcomes: {
1841
+ status: "unknown" | "blocked" | "passed";
1842
+ evaluated_at: string;
1843
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1844
+ reason_ref?: string | undefined;
1845
+ }[];
1846
+ included_summaries?: {
1847
+ memory_id: string;
1848
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1849
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1850
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1851
+ summary_ref: string;
1852
+ }[] | undefined;
1853
+ excluded_summaries?: {
1854
+ memory_id: string;
1855
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1856
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1857
+ lane: "exclusion";
1858
+ redaction_ref?: string | undefined;
1859
+ inhibition_ref?: string | undefined;
1860
+ }[] | undefined;
1861
+ redacted_audit_refs?: string[] | undefined;
1862
+ }>;
1863
+ prompt_dump: z.ZodOptional<z.ZodNever>;
1864
+ }, "strict", z.ZodTypeAny, {
1865
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1866
+ inspection: {
1867
+ source_refs: {
1868
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1869
+ ref: string;
1870
+ content_state: "materialized" | "redacted";
1871
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1872
+ owning_store_ref?: {
1873
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1874
+ schema_version: number;
1875
+ store_ref: string;
1876
+ record_ref: string;
1877
+ } | undefined;
1878
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1879
+ superseded_by_memory_id?: string | null | undefined;
1880
+ surface_ref?: string | undefined;
1881
+ }[];
1882
+ scope: {
1883
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1884
+ ref: string;
1885
+ };
1886
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1887
+ version: number;
1888
+ invalidation_state: "valid" | "unknown" | "invalid";
1889
+ surface_id: string;
1890
+ gate_outcomes: {
1891
+ status: "unknown" | "blocked" | "passed";
1892
+ evaluated_at: string;
1893
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1894
+ reason_ref?: string | undefined;
1895
+ }[];
1896
+ included_summaries: {
1897
+ memory_id: string;
1898
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1899
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1900
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1901
+ summary_ref: string;
1902
+ }[];
1903
+ excluded_summaries: {
1904
+ memory_id: string;
1905
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1906
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1907
+ lane: "exclusion";
1908
+ redaction_ref?: string | undefined;
1909
+ inhibition_ref?: string | undefined;
1910
+ }[];
1911
+ redacted_audit_refs: string[];
1912
+ };
1913
+ prompt_dump?: undefined;
1914
+ }, {
1915
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1916
+ inspection: {
1917
+ source_refs: {
1918
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
1919
+ ref: string;
1920
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
1921
+ owning_store_ref?: {
1922
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
1923
+ store_ref: string;
1924
+ record_ref: string;
1925
+ schema_version?: number | undefined;
1926
+ } | undefined;
1927
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
1928
+ superseded_by_memory_id?: string | null | undefined;
1929
+ content_state?: "materialized" | "redacted" | undefined;
1930
+ surface_ref?: string | undefined;
1931
+ }[];
1932
+ scope: {
1933
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
1934
+ ref: string;
1935
+ };
1936
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1937
+ version: number;
1938
+ invalidation_state: "valid" | "unknown" | "invalid";
1939
+ surface_id: string;
1940
+ gate_outcomes: {
1941
+ status: "unknown" | "blocked" | "passed";
1942
+ evaluated_at: string;
1943
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
1944
+ reason_ref?: string | undefined;
1945
+ }[];
1946
+ included_summaries?: {
1947
+ memory_id: string;
1948
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
1949
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
1950
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
1951
+ summary_ref: string;
1952
+ }[] | undefined;
1953
+ excluded_summaries?: {
1954
+ memory_id: string;
1955
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
1956
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
1957
+ lane: "exclusion";
1958
+ redaction_ref?: string | undefined;
1959
+ inhibition_ref?: string | undefined;
1960
+ }[] | undefined;
1961
+ redacted_audit_refs?: string[] | undefined;
1962
+ };
1963
+ prompt_dump?: undefined;
1964
+ }>, "many">>;
1965
+ attention_input_id: z.ZodOptional<z.ZodString>;
1966
+ attention_replay_disposition: z.ZodOptional<z.ZodEnum<["accepted", "duplicate"]>>;
1967
+ agenda_item_id: z.ZodOptional<z.ZodString>;
1968
+ outcome_decision_id: z.ZodOptional<z.ZodString>;
1969
+ operation_plan_assembly_id: z.ZodOptional<z.ZodString>;
1970
+ operation_plan_status: z.ZodOptional<z.ZodEnum<["planned", "no_supported_plan", "clarification_required", "fail_closed"]>>;
1971
+ operation_plan_reason: z.ZodOptional<z.ZodString>;
1972
+ operation_plan_id: z.ZodOptional<z.ZodString>;
1973
+ operation_admission_evaluation_id: z.ZodOptional<z.ZodString>;
1974
+ autonomy_decision_id: z.ZodOptional<z.ZodString>;
1975
+ autonomy_decision_level: z.ZodOptional<z.ZodEnum<["advisory", "prepare_only", "user_directed_execute", "autonomous_low_risk", "approval_required", "prohibited"]>>;
1976
+ operation_preparation_allowed: z.ZodOptional<z.ZodBoolean>;
1977
+ operation_execution_allowed: z.ZodOptional<z.ZodBoolean>;
1978
+ cognition_id: z.ZodOptional<z.ZodString>;
1979
+ cognition_response_plan_id: z.ZodOptional<z.ZodString>;
1980
+ cognition_delivery_kind: z.ZodOptional<z.ZodEnum<["hold", "digest", "suggest", "notify", "speak", "prepare", "execute"]>>;
1981
+ cognition_writeback_proposal_count: z.ZodOptional<z.ZodNumber>;
1982
+ cognition_tool_candidate_count: z.ZodOptional<z.ZodNumber>;
1983
+ cognition_replay_record_id: z.ZodOptional<z.ZodString>;
1984
+ cognition_replay_index_entry_id: z.ZodOptional<z.ZodString>;
146
1985
  }, "strip", z.ZodTypeAny, {
147
1986
  kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
148
1987
  trigger: "schedule" | "external" | "proactive_tick";
149
1988
  summary: string;
150
1989
  recorded_at: string;
151
1990
  goal_id?: string | undefined;
1991
+ surface_id?: string | undefined;
152
1992
  intervention_id?: string | undefined;
153
1993
  suggestion_title?: string | undefined;
1994
+ surface_included_count?: number | undefined;
1995
+ surface_excluded_count?: number | undefined;
1996
+ surface_inspection?: {
1997
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
1998
+ inspection: {
1999
+ source_refs: {
2000
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2001
+ ref: string;
2002
+ content_state: "materialized" | "redacted";
2003
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2004
+ owning_store_ref?: {
2005
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2006
+ schema_version: number;
2007
+ store_ref: string;
2008
+ record_ref: string;
2009
+ } | undefined;
2010
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2011
+ superseded_by_memory_id?: string | null | undefined;
2012
+ surface_ref?: string | undefined;
2013
+ }[];
2014
+ scope: {
2015
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2016
+ ref: string;
2017
+ };
2018
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2019
+ version: number;
2020
+ invalidation_state: "valid" | "unknown" | "invalid";
2021
+ surface_id: string;
2022
+ gate_outcomes: {
2023
+ status: "unknown" | "blocked" | "passed";
2024
+ evaluated_at: string;
2025
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2026
+ reason_ref?: string | undefined;
2027
+ }[];
2028
+ included_summaries: {
2029
+ memory_id: string;
2030
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2031
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2032
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2033
+ summary_ref: string;
2034
+ }[];
2035
+ excluded_summaries: {
2036
+ memory_id: string;
2037
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2038
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2039
+ lane: "exclusion";
2040
+ redaction_ref?: string | undefined;
2041
+ inhibition_ref?: string | undefined;
2042
+ }[];
2043
+ redacted_audit_refs: string[];
2044
+ };
2045
+ prompt_dump?: undefined;
2046
+ } | undefined;
2047
+ surface_inspections?: {
2048
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2049
+ inspection: {
2050
+ source_refs: {
2051
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2052
+ ref: string;
2053
+ content_state: "materialized" | "redacted";
2054
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2055
+ owning_store_ref?: {
2056
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2057
+ schema_version: number;
2058
+ store_ref: string;
2059
+ record_ref: string;
2060
+ } | undefined;
2061
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2062
+ superseded_by_memory_id?: string | null | undefined;
2063
+ surface_ref?: string | undefined;
2064
+ }[];
2065
+ scope: {
2066
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2067
+ ref: string;
2068
+ };
2069
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2070
+ version: number;
2071
+ invalidation_state: "valid" | "unknown" | "invalid";
2072
+ surface_id: string;
2073
+ gate_outcomes: {
2074
+ status: "unknown" | "blocked" | "passed";
2075
+ evaluated_at: string;
2076
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2077
+ reason_ref?: string | undefined;
2078
+ }[];
2079
+ included_summaries: {
2080
+ memory_id: string;
2081
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2082
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2083
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2084
+ summary_ref: string;
2085
+ }[];
2086
+ excluded_summaries: {
2087
+ memory_id: string;
2088
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2089
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2090
+ lane: "exclusion";
2091
+ redaction_ref?: string | undefined;
2092
+ inhibition_ref?: string | undefined;
2093
+ }[];
2094
+ redacted_audit_refs: string[];
2095
+ };
2096
+ prompt_dump?: undefined;
2097
+ }[] | undefined;
2098
+ attention_input_id?: string | undefined;
2099
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
2100
+ agenda_item_id?: string | undefined;
2101
+ outcome_decision_id?: string | undefined;
2102
+ operation_plan_assembly_id?: string | undefined;
2103
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
2104
+ operation_plan_reason?: string | undefined;
2105
+ operation_plan_id?: string | undefined;
2106
+ operation_admission_evaluation_id?: string | undefined;
2107
+ autonomy_decision_id?: string | undefined;
2108
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
2109
+ operation_preparation_allowed?: boolean | undefined;
2110
+ operation_execution_allowed?: boolean | undefined;
2111
+ cognition_id?: string | undefined;
2112
+ cognition_response_plan_id?: string | undefined;
2113
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
2114
+ cognition_writeback_proposal_count?: number | undefined;
2115
+ cognition_tool_candidate_count?: number | undefined;
2116
+ cognition_replay_record_id?: string | undefined;
2117
+ cognition_replay_index_entry_id?: string | undefined;
154
2118
  }, {
155
2119
  kind: "error" | "negotiation" | "curiosity" | "observation" | "dream" | "sleep" | "suggestion" | "skipped";
156
2120
  summary: string;
157
2121
  recorded_at: string;
158
2122
  trigger?: "schedule" | "external" | "proactive_tick" | undefined;
159
2123
  goal_id?: string | undefined;
2124
+ surface_id?: string | undefined;
160
2125
  intervention_id?: string | undefined;
161
2126
  suggestion_title?: string | undefined;
2127
+ surface_included_count?: number | undefined;
2128
+ surface_excluded_count?: number | undefined;
2129
+ surface_inspection?: {
2130
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2131
+ inspection: {
2132
+ source_refs: {
2133
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2134
+ ref: string;
2135
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2136
+ owning_store_ref?: {
2137
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2138
+ store_ref: string;
2139
+ record_ref: string;
2140
+ schema_version?: number | undefined;
2141
+ } | undefined;
2142
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2143
+ superseded_by_memory_id?: string | null | undefined;
2144
+ content_state?: "materialized" | "redacted" | undefined;
2145
+ surface_ref?: string | undefined;
2146
+ }[];
2147
+ scope: {
2148
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2149
+ ref: string;
2150
+ };
2151
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2152
+ version: number;
2153
+ invalidation_state: "valid" | "unknown" | "invalid";
2154
+ surface_id: string;
2155
+ gate_outcomes: {
2156
+ status: "unknown" | "blocked" | "passed";
2157
+ evaluated_at: string;
2158
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2159
+ reason_ref?: string | undefined;
2160
+ }[];
2161
+ included_summaries?: {
2162
+ memory_id: string;
2163
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2164
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2165
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2166
+ summary_ref: string;
2167
+ }[] | undefined;
2168
+ excluded_summaries?: {
2169
+ memory_id: string;
2170
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2171
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2172
+ lane: "exclusion";
2173
+ redaction_ref?: string | undefined;
2174
+ inhibition_ref?: string | undefined;
2175
+ }[] | undefined;
2176
+ redacted_audit_refs?: string[] | undefined;
2177
+ };
2178
+ prompt_dump?: undefined;
2179
+ } | undefined;
2180
+ surface_inspections?: {
2181
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2182
+ inspection: {
2183
+ source_refs: {
2184
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2185
+ ref: string;
2186
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2187
+ owning_store_ref?: {
2188
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2189
+ store_ref: string;
2190
+ record_ref: string;
2191
+ schema_version?: number | undefined;
2192
+ } | undefined;
2193
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2194
+ superseded_by_memory_id?: string | null | undefined;
2195
+ content_state?: "materialized" | "redacted" | undefined;
2196
+ surface_ref?: string | undefined;
2197
+ }[];
2198
+ scope: {
2199
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2200
+ ref: string;
2201
+ };
2202
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2203
+ version: number;
2204
+ invalidation_state: "valid" | "unknown" | "invalid";
2205
+ surface_id: string;
2206
+ gate_outcomes: {
2207
+ status: "unknown" | "blocked" | "passed";
2208
+ evaluated_at: string;
2209
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2210
+ reason_ref?: string | undefined;
2211
+ }[];
2212
+ included_summaries?: {
2213
+ memory_id: string;
2214
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2215
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2216
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2217
+ summary_ref: string;
2218
+ }[] | undefined;
2219
+ excluded_summaries?: {
2220
+ memory_id: string;
2221
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2222
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2223
+ lane: "exclusion";
2224
+ redaction_ref?: string | undefined;
2225
+ inhibition_ref?: string | undefined;
2226
+ }[] | undefined;
2227
+ redacted_audit_refs?: string[] | undefined;
2228
+ };
2229
+ prompt_dump?: undefined;
2230
+ }[] | undefined;
2231
+ attention_input_id?: string | undefined;
2232
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
2233
+ agenda_item_id?: string | undefined;
2234
+ outcome_decision_id?: string | undefined;
2235
+ operation_plan_assembly_id?: string | undefined;
2236
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
2237
+ operation_plan_reason?: string | undefined;
2238
+ operation_plan_id?: string | undefined;
2239
+ operation_admission_evaluation_id?: string | undefined;
2240
+ autonomy_decision_id?: string | undefined;
2241
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
2242
+ operation_preparation_allowed?: boolean | undefined;
2243
+ operation_execution_allowed?: boolean | undefined;
2244
+ cognition_id?: string | undefined;
2245
+ cognition_response_plan_id?: string | undefined;
2246
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
2247
+ cognition_writeback_proposal_count?: number | undefined;
2248
+ cognition_tool_candidate_count?: number | undefined;
2249
+ cognition_replay_record_id?: string | undefined;
2250
+ cognition_replay_index_entry_id?: string | undefined;
162
2251
  }>;
163
2252
  }, "strip", z.ZodTypeAny, {
164
2253
  schema_version: "runtime-proactive-intervention-event-v1";
165
- channel: "gateway" | "cli" | "daemon";
2254
+ event_id: string;
166
2255
  event_type: "intervention";
2256
+ channel: "cli" | "daemon" | "gateway";
167
2257
  intervention_id: string;
168
2258
  recorded_at: string;
169
2259
  activity: {
@@ -172,12 +2262,137 @@ export declare const ProactiveInterventionEventSchema: z.ZodDiscriminatedUnion<"
172
2262
  summary: string;
173
2263
  recorded_at: string;
174
2264
  goal_id?: string | undefined;
2265
+ surface_id?: string | undefined;
175
2266
  intervention_id?: string | undefined;
176
2267
  suggestion_title?: string | undefined;
2268
+ surface_included_count?: number | undefined;
2269
+ surface_excluded_count?: number | undefined;
2270
+ surface_inspection?: {
2271
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2272
+ inspection: {
2273
+ source_refs: {
2274
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2275
+ ref: string;
2276
+ content_state: "materialized" | "redacted";
2277
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2278
+ owning_store_ref?: {
2279
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2280
+ schema_version: number;
2281
+ store_ref: string;
2282
+ record_ref: string;
2283
+ } | undefined;
2284
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2285
+ superseded_by_memory_id?: string | null | undefined;
2286
+ surface_ref?: string | undefined;
2287
+ }[];
2288
+ scope: {
2289
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2290
+ ref: string;
2291
+ };
2292
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2293
+ version: number;
2294
+ invalidation_state: "valid" | "unknown" | "invalid";
2295
+ surface_id: string;
2296
+ gate_outcomes: {
2297
+ status: "unknown" | "blocked" | "passed";
2298
+ evaluated_at: string;
2299
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2300
+ reason_ref?: string | undefined;
2301
+ }[];
2302
+ included_summaries: {
2303
+ memory_id: string;
2304
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2305
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2306
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2307
+ summary_ref: string;
2308
+ }[];
2309
+ excluded_summaries: {
2310
+ memory_id: string;
2311
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2312
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2313
+ lane: "exclusion";
2314
+ redaction_ref?: string | undefined;
2315
+ inhibition_ref?: string | undefined;
2316
+ }[];
2317
+ redacted_audit_refs: string[];
2318
+ };
2319
+ prompt_dump?: undefined;
2320
+ } | undefined;
2321
+ surface_inspections?: {
2322
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2323
+ inspection: {
2324
+ source_refs: {
2325
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2326
+ ref: string;
2327
+ content_state: "materialized" | "redacted";
2328
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2329
+ owning_store_ref?: {
2330
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2331
+ schema_version: number;
2332
+ store_ref: string;
2333
+ record_ref: string;
2334
+ } | undefined;
2335
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2336
+ superseded_by_memory_id?: string | null | undefined;
2337
+ surface_ref?: string | undefined;
2338
+ }[];
2339
+ scope: {
2340
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2341
+ ref: string;
2342
+ };
2343
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2344
+ version: number;
2345
+ invalidation_state: "valid" | "unknown" | "invalid";
2346
+ surface_id: string;
2347
+ gate_outcomes: {
2348
+ status: "unknown" | "blocked" | "passed";
2349
+ evaluated_at: string;
2350
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2351
+ reason_ref?: string | undefined;
2352
+ }[];
2353
+ included_summaries: {
2354
+ memory_id: string;
2355
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2356
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2357
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2358
+ summary_ref: string;
2359
+ }[];
2360
+ excluded_summaries: {
2361
+ memory_id: string;
2362
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2363
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2364
+ lane: "exclusion";
2365
+ redaction_ref?: string | undefined;
2366
+ inhibition_ref?: string | undefined;
2367
+ }[];
2368
+ redacted_audit_refs: string[];
2369
+ };
2370
+ prompt_dump?: undefined;
2371
+ }[] | undefined;
2372
+ attention_input_id?: string | undefined;
2373
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
2374
+ agenda_item_id?: string | undefined;
2375
+ outcome_decision_id?: string | undefined;
2376
+ operation_plan_assembly_id?: string | undefined;
2377
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
2378
+ operation_plan_reason?: string | undefined;
2379
+ operation_plan_id?: string | undefined;
2380
+ operation_admission_evaluation_id?: string | undefined;
2381
+ autonomy_decision_id?: string | undefined;
2382
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
2383
+ operation_preparation_allowed?: boolean | undefined;
2384
+ operation_execution_allowed?: boolean | undefined;
2385
+ cognition_id?: string | undefined;
2386
+ cognition_response_plan_id?: string | undefined;
2387
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
2388
+ cognition_writeback_proposal_count?: number | undefined;
2389
+ cognition_tool_candidate_count?: number | undefined;
2390
+ cognition_replay_record_id?: string | undefined;
2391
+ cognition_replay_index_entry_id?: string | undefined;
177
2392
  };
178
- event_id: string;
179
2393
  }, {
180
2394
  schema_version: "runtime-proactive-intervention-event-v1";
2395
+ event_id: string;
181
2396
  event_type: "intervention";
182
2397
  intervention_id: string;
183
2398
  recorded_at: string;
@@ -187,11 +2402,135 @@ export declare const ProactiveInterventionEventSchema: z.ZodDiscriminatedUnion<"
187
2402
  recorded_at: string;
188
2403
  trigger?: "schedule" | "external" | "proactive_tick" | undefined;
189
2404
  goal_id?: string | undefined;
2405
+ surface_id?: string | undefined;
190
2406
  intervention_id?: string | undefined;
191
2407
  suggestion_title?: string | undefined;
2408
+ surface_included_count?: number | undefined;
2409
+ surface_excluded_count?: number | undefined;
2410
+ surface_inspection?: {
2411
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2412
+ inspection: {
2413
+ source_refs: {
2414
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2415
+ ref: string;
2416
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2417
+ owning_store_ref?: {
2418
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2419
+ store_ref: string;
2420
+ record_ref: string;
2421
+ schema_version?: number | undefined;
2422
+ } | undefined;
2423
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2424
+ superseded_by_memory_id?: string | null | undefined;
2425
+ content_state?: "materialized" | "redacted" | undefined;
2426
+ surface_ref?: string | undefined;
2427
+ }[];
2428
+ scope: {
2429
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2430
+ ref: string;
2431
+ };
2432
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2433
+ version: number;
2434
+ invalidation_state: "valid" | "unknown" | "invalid";
2435
+ surface_id: string;
2436
+ gate_outcomes: {
2437
+ status: "unknown" | "blocked" | "passed";
2438
+ evaluated_at: string;
2439
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2440
+ reason_ref?: string | undefined;
2441
+ }[];
2442
+ included_summaries?: {
2443
+ memory_id: string;
2444
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2445
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2446
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2447
+ summary_ref: string;
2448
+ }[] | undefined;
2449
+ excluded_summaries?: {
2450
+ memory_id: string;
2451
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2452
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2453
+ lane: "exclusion";
2454
+ redaction_ref?: string | undefined;
2455
+ inhibition_ref?: string | undefined;
2456
+ }[] | undefined;
2457
+ redacted_audit_refs?: string[] | undefined;
2458
+ };
2459
+ prompt_dump?: undefined;
2460
+ } | undefined;
2461
+ surface_inspections?: {
2462
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2463
+ inspection: {
2464
+ source_refs: {
2465
+ kind: "memory_write_candidate" | "memory_record" | "permission_grant" | "runtime_item" | "agenda_item" | "urge_candidate" | "outcome_decision" | "expression_decision" | "session_resume_attempt" | "audit_trace";
2466
+ ref: string;
2467
+ correction_state?: "deleted" | "superseded" | "retracted" | "current" | "under_review" | "corrected" | undefined;
2468
+ owning_store_ref?: {
2469
+ kind: "relationship_profile" | "profile_proposal" | "runtime_session" | "soil" | "knowledge" | "dream_seed";
2470
+ store_ref: string;
2471
+ record_ref: string;
2472
+ schema_version?: number | undefined;
2473
+ } | undefined;
2474
+ lifecycle?: "active" | "archived" | "suppressed" | "tombstoned" | "deleted" | "planted" | "matured" | "decayed" | "retired" | "superseded" | "retracted" | undefined;
2475
+ superseded_by_memory_id?: string | null | undefined;
2476
+ content_state?: "materialized" | "redacted" | undefined;
2477
+ surface_ref?: string | undefined;
2478
+ }[];
2479
+ scope: {
2480
+ kind: "task" | "runtime_item" | "conversation" | "inspection" | "session_resume";
2481
+ ref: string;
2482
+ };
2483
+ target: "chat" | "tui" | "cli" | "daemon" | "gateway" | "gui" | "agent_loop" | "core_loop";
2484
+ version: number;
2485
+ invalidation_state: "valid" | "unknown" | "invalid";
2486
+ surface_id: string;
2487
+ gate_outcomes: {
2488
+ status: "unknown" | "blocked" | "passed";
2489
+ evaluated_at: string;
2490
+ gate: "permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection";
2491
+ reason_ref?: string | undefined;
2492
+ }[];
2493
+ included_summaries?: {
2494
+ memory_id: string;
2495
+ record_kind: "promise" | "boundary" | "stable_profile_fact" | "preference" | "routine" | "intervention_policy" | "episodic_event" | "correction" | "relationship_posture" | "consent_scope" | "work_commitment" | "project_fact" | "knowledge_fact" | "open_tension" | "anti_memory_rule" | "seed_candidate";
2496
+ lane: "promise" | "knowledge" | "work_memory" | "relationship" | "boundary" | "anti_memory" | "tension";
2497
+ use_class: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly";
2498
+ summary_ref: string;
2499
+ }[] | undefined;
2500
+ excluded_summaries?: {
2501
+ memory_id: string;
2502
+ requested_use: "runtime_grounding" | "design_grounding" | "behavioral_inhibition" | "attention_prioritization" | "expression_mode_selection" | "tone_adaptation" | "goal_planning" | "ask_for_confirmation" | "proactive_action_candidate" | "user_facing_reference" | "memory_write_candidate" | "surface_projection" | "never_use_directly" | "user_personality_labeling" | "diagnosis" | "motivation_claim" | "emotional_leverage" | "engagement_optimization" | "attachment_optimization" | "proactive_trigger" | "side_effect_authorization" | "stale_session_authorization" | "raw_prompt_injection" | "cross_scope_reuse";
2503
+ blocked_by: ("permission" | "scope" | "sensitivity" | "lifecycle" | "allowed_use" | "forbidden_use" | "audit" | "staleness" | "projection")[];
2504
+ lane: "exclusion";
2505
+ redaction_ref?: string | undefined;
2506
+ inhibition_ref?: string | undefined;
2507
+ }[] | undefined;
2508
+ redacted_audit_refs?: string[] | undefined;
2509
+ };
2510
+ prompt_dump?: undefined;
2511
+ }[] | undefined;
2512
+ attention_input_id?: string | undefined;
2513
+ attention_replay_disposition?: "accepted" | "duplicate" | undefined;
2514
+ agenda_item_id?: string | undefined;
2515
+ outcome_decision_id?: string | undefined;
2516
+ operation_plan_assembly_id?: string | undefined;
2517
+ operation_plan_status?: "fail_closed" | "planned" | "no_supported_plan" | "clarification_required" | undefined;
2518
+ operation_plan_reason?: string | undefined;
2519
+ operation_plan_id?: string | undefined;
2520
+ operation_admission_evaluation_id?: string | undefined;
2521
+ autonomy_decision_id?: string | undefined;
2522
+ autonomy_decision_level?: "approval_required" | "advisory" | "prepare_only" | "user_directed_execute" | "autonomous_low_risk" | "prohibited" | undefined;
2523
+ operation_preparation_allowed?: boolean | undefined;
2524
+ operation_execution_allowed?: boolean | undefined;
2525
+ cognition_id?: string | undefined;
2526
+ cognition_response_plan_id?: string | undefined;
2527
+ cognition_delivery_kind?: "prepare" | "hold" | "notify" | "digest" | "suggest" | "speak" | "execute" | undefined;
2528
+ cognition_writeback_proposal_count?: number | undefined;
2529
+ cognition_tool_candidate_count?: number | undefined;
2530
+ cognition_replay_record_id?: string | undefined;
2531
+ cognition_replay_index_entry_id?: string | undefined;
192
2532
  };
193
- event_id: string;
194
- channel?: "gateway" | "cli" | "daemon" | undefined;
2533
+ channel?: "cli" | "daemon" | "gateway" | undefined;
195
2534
  }>, z.ZodObject<{
196
2535
  schema_version: z.ZodLiteral<"runtime-proactive-intervention-event-v1">;
197
2536
  event_id: z.ZodString;
@@ -210,44 +2549,44 @@ export declare const ProactiveInterventionEventSchema: z.ZodDiscriminatedUnion<"
210
2549
  reason: z.ZodString;
211
2550
  }, "strip", z.ZodTypeAny, {
212
2551
  reason: string;
213
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
214
2552
  relationship_profile_key: string;
2553
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
215
2554
  }, {
216
2555
  reason: string;
217
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
218
2556
  relationship_profile_key: string;
2557
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
219
2558
  }>>>;
220
2559
  }, "strip", z.ZodTypeAny, {
221
2560
  schema_version: "runtime-proactive-intervention-event-v1";
222
- outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
223
- channel: "gateway" | "cli" | "daemon";
2561
+ outcome: "accepted" | "corrected" | "ignored" | "dismissed" | "overreach";
2562
+ event_id: string;
224
2563
  event_type: "feedback";
2564
+ channel: "cli" | "daemon" | "gateway";
225
2565
  intervention_id: string;
226
2566
  recorded_at: string;
227
- event_id: string;
228
2567
  overreach_indicators: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[];
229
2568
  follow_through_success: boolean | null;
230
2569
  policy_adjustment_recommendation: {
231
2570
  reason: string;
232
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
233
2571
  relationship_profile_key: string;
2572
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
234
2573
  } | null;
235
2574
  reason?: string | undefined;
236
2575
  }, {
237
2576
  schema_version: "runtime-proactive-intervention-event-v1";
238
- outcome: "accepted" | "corrected" | "dismissed" | "ignored" | "overreach";
2577
+ outcome: "accepted" | "corrected" | "ignored" | "dismissed" | "overreach";
2578
+ event_id: string;
239
2579
  event_type: "feedback";
240
2580
  intervention_id: string;
241
2581
  recorded_at: string;
242
- event_id: string;
243
2582
  reason?: string | undefined;
244
- channel?: "gateway" | "cli" | "daemon" | undefined;
2583
+ channel?: "cli" | "daemon" | "gateway" | undefined;
245
2584
  overreach_indicators?: ("sensitive" | "too_frequent" | "wrong_context" | "unwanted_timing")[] | undefined;
246
2585
  follow_through_success?: boolean | null | undefined;
247
2586
  policy_adjustment_recommendation?: {
248
2587
  reason: string;
249
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
250
2588
  relationship_profile_key: string;
2589
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
251
2590
  } | null | undefined;
252
2591
  }>]>;
253
2592
  export declare const ProactiveInterventionSummarySchema: z.ZodObject<{
@@ -274,18 +2613,18 @@ export declare const ProactiveInterventionSummarySchema: z.ZodObject<{
274
2613
  reason: z.ZodString;
275
2614
  }, "strip", z.ZodTypeAny, {
276
2615
  reason: string;
277
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
278
2616
  relationship_profile_key: string;
2617
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
279
2618
  }, {
280
2619
  reason: string;
281
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
282
2620
  relationship_profile_key: string;
2621
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
283
2622
  }>>;
284
2623
  }, "strip", z.ZodTypeAny, {
285
2624
  policy_adjustment_recommendation: {
286
2625
  reason: string;
287
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
288
2626
  relationship_profile_key: string;
2627
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
289
2628
  } | null;
290
2629
  total_interventions: number;
291
2630
  pending_count: number;
@@ -307,8 +2646,8 @@ export declare const ProactiveInterventionSummarySchema: z.ZodObject<{
307
2646
  }, {
308
2647
  policy_adjustment_recommendation: {
309
2648
  reason: string;
310
- suggested_action: "reduce_frequency" | "require_confirmation" | "narrow_scope" | "avoid_sensitive_context";
311
2649
  relationship_profile_key: string;
2650
+ suggested_action: "narrow_scope" | "require_confirmation" | "reduce_frequency" | "avoid_sensitive_context";
312
2651
  } | null;
313
2652
  total_interventions: number;
314
2653
  pending_count: number;
@@ -345,7 +2684,9 @@ export interface ProactiveFeedbackInput {
345
2684
  }
346
2685
  export declare class ProactiveInterventionStore {
347
2686
  private readonly paths;
348
- constructor(runtimeRootOrPaths?: string | RuntimeStorePaths);
2687
+ private readonly dbOptions;
2688
+ private dbPromise;
2689
+ constructor(runtimeRootOrPaths?: string | RuntimeStorePaths, options?: RuntimeControlDbStoreOptions);
349
2690
  ensureReady(): Promise<void>;
350
2691
  appendIntervention(input: {
351
2692
  activity: z.infer<typeof ResidentActivitySchema>;
@@ -355,6 +2696,8 @@ export declare class ProactiveInterventionStore {
355
2696
  append<T extends ProactiveInterventionEvent>(event: T): Promise<T>;
356
2697
  list(limit?: number): Promise<ProactiveInterventionEvent[]>;
357
2698
  summarize(): Promise<ProactiveInterventionSummary>;
2699
+ importLegacyEvent(event: ProactiveInterventionEvent): Promise<ProactiveInterventionEvent>;
2700
+ private database;
358
2701
  }
359
2702
  export declare function summarizeProactiveInterventions(events: ProactiveInterventionEvent[]): ProactiveInterventionSummary;
360
2703
  //# sourceMappingURL=proactive-intervention-store.d.ts.map