@remnic/core 9.66.1 → 9.66.2

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 (310) hide show
  1. package/dist/access-admin-ops-surface.d.ts +1 -1
  2. package/dist/access-admin-ops-surface.js +26 -26
  3. package/dist/access-audit.js +2 -2
  4. package/dist/access-authorization-probe.d.ts +1 -1
  5. package/dist/access-authorization-probe.js +27 -27
  6. package/dist/access-boundary.d.ts +1 -1
  7. package/dist/access-boundary.js +26 -26
  8. package/dist/access-cli.js +90 -88
  9. package/dist/access-cli.js.map +1 -1
  10. package/dist/access-extraction-force-flush.d.ts +1 -1
  11. package/dist/access-extraction-force-flush.js +26 -26
  12. package/dist/access-http-lcm-compaction.d.ts +1 -1
  13. package/dist/access-http-lifecycle-flush.d.ts +1 -1
  14. package/dist/access-http-offline-stream.d.ts +1 -1
  15. package/dist/access-http-query.js +28 -28
  16. package/dist/access-http.d.ts +2 -2
  17. package/dist/access-http.js +41 -41
  18. package/dist/access-identity-continuity-surface.js +26 -26
  19. package/dist/access-lcm-surface.d.ts +1 -1
  20. package/dist/access-lcm-surface.js +26 -26
  21. package/dist/access-mcp.d.ts +1 -1
  22. package/dist/access-mcp.js +33 -33
  23. package/dist/access-namespace-preflight.js +26 -26
  24. package/dist/access-observe-write-surface.d.ts +1 -1
  25. package/dist/access-observe-write-surface.js +26 -26
  26. package/dist/access-operations-batch.js +28 -28
  27. package/dist/access-operations.d.ts +6 -6
  28. package/dist/access-operations.js +32 -32
  29. package/dist/access-recall-concurrency.d.ts +1 -1
  30. package/dist/access-recall-concurrency.js +26 -26
  31. package/dist/access-recall-response.d.ts +1 -1
  32. package/dist/access-recall-response.js +26 -26
  33. package/dist/access-recall-surface.d.ts +1 -1
  34. package/dist/access-recall-surface.js +26 -26
  35. package/dist/access-schema.d.ts +89 -89
  36. package/dist/access-service-helpers.d.ts +1 -1
  37. package/dist/access-service.d.ts +1 -1
  38. package/dist/access-service.js +26 -26
  39. package/dist/access-surface-catalog.d.ts +1 -1
  40. package/dist/access-surface-catalog.js +28 -28
  41. package/dist/active-recall.js +3 -3
  42. package/dist/adapters/index.js +4 -4
  43. package/dist/adapters/registry.js +2 -2
  44. package/dist/briefing.js +10 -10
  45. package/dist/buffer.js +4 -4
  46. package/dist/causal-behavior.js +2 -2
  47. package/dist/causal-chain.js +2 -2
  48. package/dist/causal-consolidation.js +13 -13
  49. package/dist/causal-retrieval.js +2 -2
  50. package/dist/causal-trajectory-graph.js +2 -2
  51. package/dist/causal-trajectory.js +1 -1
  52. package/dist/{chunk-LYUUA6QB.js → chunk-25OLNWYG.js} +2 -2
  53. package/dist/{chunk-2X6BGKQL.js → chunk-2QSGJTDG.js} +10 -10
  54. package/dist/{chunk-ZZZWEDF4.js → chunk-2VZHB5US.js} +2 -2
  55. package/dist/{chunk-JKTV3JNX.js → chunk-36HJ36FK.js} +3 -3
  56. package/dist/{chunk-XKNHFDTT.js → chunk-3A2Z4OOS.js} +2 -2
  57. package/dist/{chunk-TCF4MU7L.js → chunk-47WWTCJY.js} +1001 -101
  58. package/dist/chunk-47WWTCJY.js.map +1 -0
  59. package/dist/{chunk-RDGKVH6T.js → chunk-4NKIGSJM.js} +2 -2
  60. package/dist/{chunk-QBNE55VA.js → chunk-4PG2CKI6.js} +2 -2
  61. package/dist/{chunk-S4CDUXQY.js → chunk-6545JDIM.js} +2 -2
  62. package/dist/{chunk-2FA7U5XY.js → chunk-65HXVEVG.js} +2 -2
  63. package/dist/{chunk-U6NGKS32.js → chunk-6BYJQ3L2.js} +8 -8
  64. package/dist/{chunk-OMX6TKXH.js → chunk-6PUF7LUO.js} +2 -2
  65. package/dist/{chunk-TVVEYCNW.js → chunk-7K5Q6COX.js} +4 -4
  66. package/dist/{chunk-VG4SSPAW.js → chunk-AI5M4FVQ.js} +2 -2
  67. package/dist/{chunk-MUEGIKKY.js → chunk-B4B3QDV3.js} +21 -20
  68. package/dist/chunk-B4B3QDV3.js.map +1 -0
  69. package/dist/{chunk-YMOPYG3K.js → chunk-BIJAWZYW.js} +6 -6
  70. package/dist/{chunk-M5ERTI4I.js → chunk-BLHKR4GJ.js} +2 -2
  71. package/dist/chunk-BLUYQFRH.js +36 -0
  72. package/dist/chunk-BLUYQFRH.js.map +1 -0
  73. package/dist/{chunk-CEH2AFXG.js → chunk-C24UZSFW.js} +6 -6
  74. package/dist/{chunk-EH65UV2Z.js → chunk-C3ZYZKDJ.js} +2 -2
  75. package/dist/{chunk-NFP4KPTA.js → chunk-CDLPF3PX.js} +2 -2
  76. package/dist/{chunk-FFUMTH27.js → chunk-CQ6IWZDI.js} +2 -2
  77. package/dist/{chunk-KWIGDKM2.js → chunk-D2YNNDML.js} +2 -2
  78. package/dist/{chunk-65JOGLIS.js → chunk-D3DUA64S.js} +2 -2
  79. package/dist/{chunk-2ITZ74A6.js → chunk-DSEHPUID.js} +11 -11
  80. package/dist/chunk-E4X2YX2F.js +22 -0
  81. package/dist/chunk-E4X2YX2F.js.map +1 -0
  82. package/dist/{chunk-AF5H7TKI.js → chunk-EH7BNIUN.js} +2 -2
  83. package/dist/{chunk-IGZCAHFL.js → chunk-EQRD4NMH.js} +2 -2
  84. package/dist/{chunk-CX4OLNIH.js → chunk-ER2UPUMG.js} +2 -2
  85. package/dist/{chunk-SZMYGDSM.js → chunk-F2JXJABQ.js} +2 -2
  86. package/dist/{chunk-CHGG74CY.js → chunk-F4W5HTED.js} +2 -2
  87. package/dist/{chunk-H2IRSXZN.js → chunk-FFWONAAW.js} +3 -3
  88. package/dist/chunk-FYDW33ZB.js +13 -0
  89. package/dist/chunk-FYDW33ZB.js.map +1 -0
  90. package/dist/{chunk-TNGH4ZYI.js → chunk-GNWLTCKC.js} +2 -2
  91. package/dist/{chunk-OJUEUQDJ.js → chunk-JJ6ZEFXC.js} +2 -2
  92. package/dist/{chunk-U65VJSCJ.js → chunk-JMXHVJ2V.js} +10 -10
  93. package/dist/{chunk-NACLNNFQ.js → chunk-KSZKQTZS.js} +2 -2
  94. package/dist/{chunk-TCQRIIIN.js → chunk-LSR5LQXN.js} +2 -2
  95. package/dist/chunk-MAG6M3B6.js +51 -0
  96. package/dist/chunk-MAG6M3B6.js.map +1 -0
  97. package/dist/{chunk-B4AOWRYF.js → chunk-NTFXBILO.js} +4 -4
  98. package/dist/{chunk-2PSX5BJU.js → chunk-NZPFCP5A.js} +2 -2
  99. package/dist/{chunk-C5IUOBCN.js → chunk-OERZXNSK.js} +2 -2
  100. package/dist/{chunk-ZPS724LT.js → chunk-OIDICRH7.js} +2 -2
  101. package/dist/{chunk-LTBKKSCX.js → chunk-OLBZ2WGG.js} +2 -2
  102. package/dist/{chunk-PD66CVSD.js → chunk-OUKBMQ2O.js} +2 -2
  103. package/dist/{chunk-GPFZFCRN.js → chunk-PP7R754B.js} +1 -1
  104. package/dist/{chunk-GAJK3DQ5.js → chunk-PRRUK2ZH.js} +2 -2
  105. package/dist/{chunk-TBCDF556.js → chunk-PW3GKWH3.js} +3 -3
  106. package/dist/chunk-Q3SHEAXR.js +80 -0
  107. package/dist/chunk-Q3SHEAXR.js.map +1 -0
  108. package/dist/{chunk-KI64TTBL.js → chunk-R2Q6FTOX.js} +2 -2
  109. package/dist/{chunk-KJXCD7VR.js → chunk-RCPKBW7K.js} +4 -4
  110. package/dist/{chunk-INUBU6I5.js → chunk-RH3XLQG4.js} +2 -2
  111. package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
  112. package/dist/{chunk-NSTNGMSS.js → chunk-U4HZEW2B.js} +5 -5
  113. package/dist/{chunk-XOHYGIWF.js → chunk-UHQE37NI.js} +2 -2
  114. package/dist/{chunk-D3UXGE5D.js → chunk-UMZUKOJU.js} +7 -7
  115. package/dist/{chunk-S4Z2OBTX.js → chunk-UVYL5G7A.js} +3 -3
  116. package/dist/{chunk-4XLTUR6R.js → chunk-VKDBDJIX.js} +3 -3
  117. package/dist/{chunk-UW4RYPWC.js → chunk-VSMSYDIH.js} +2 -2
  118. package/dist/{chunk-LJABGXC4.js → chunk-W5IYHQA5.js} +3 -3
  119. package/dist/{chunk-7UOXCCCI.js → chunk-WKWY7YF3.js} +2 -2
  120. package/dist/{chunk-YWPLOJ7T.js → chunk-Y2YM4C75.js} +2 -2
  121. package/dist/{chunk-NUF7VSEX.js → chunk-YZ5VC2JJ.js} +2 -2
  122. package/dist/{chunk-EWKVYCFP.js → chunk-ZBIEX4XN.js} +1 -1
  123. package/dist/{chunk-GBEOUCBB.js → chunk-ZMVW2HJJ.js} +2 -2
  124. package/dist/{chunk-RPIS5FQ7.js → chunk-ZXROBS53.js} +44 -44
  125. package/dist/{cli-CsfFMe6n.d.ts → cli-BOuEb4Ia.d.ts} +1 -1
  126. package/dist/cli.d.ts +2 -2
  127. package/dist/cli.js +61 -61
  128. package/dist/coding/export-okf-codegraph.js +10 -10
  129. package/dist/coding/pre-action-gate.js +2 -2
  130. package/dist/compounding/engine.js +10 -10
  131. package/dist/config.js +3 -3
  132. package/dist/connectors/codex-materialize-runner.js +10 -10
  133. package/dist/connectors/index.js +10 -10
  134. package/dist/convergence-refresh.js +12 -12
  135. package/dist/corpus-watermark.js +12 -12
  136. package/dist/entity-retrieval.js +10 -10
  137. package/dist/external-wiki-access.d.ts +1 -1
  138. package/dist/external-wiki-access.js +27 -27
  139. package/dist/external-wiki-mcp-tools.d.ts +1 -1
  140. package/dist/extraction-span-wire.d.ts +17 -0
  141. package/dist/extraction-span-wire.js +13 -0
  142. package/dist/extraction-span-wire.js.map +1 -0
  143. package/dist/extraction-span.d.ts +17 -0
  144. package/dist/extraction-span.js +8 -0
  145. package/dist/extraction.js +13 -13
  146. package/dist/{graph-edge-decay-A4SDFMMS.js → graph-edge-decay-FXGELBFA.js} +4 -4
  147. package/dist/graph-edge-decay-FXGELBFA.js.map +1 -0
  148. package/dist/graph-snapshot.js +3 -3
  149. package/dist/graph.js +3 -3
  150. package/dist/harmonic-retrieval.js +1 -1
  151. package/dist/index.d.ts +887 -681
  152. package/dist/index.js +161 -108
  153. package/dist/lcm/engine.js +3 -3
  154. package/dist/lcm/index.js +11 -11
  155. package/dist/location/index.js +12 -12
  156. package/dist/maintenance/memory-governance.js +10 -10
  157. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -10
  158. package/dist/maintenance/rebuild-memory-projection.js +11 -11
  159. package/dist/mcp-memory-inspector-app.d.ts +1 -1
  160. package/dist/memory-subject-cli.d.ts +1 -1
  161. package/dist/memory-subject.d.ts +1 -1
  162. package/dist/namespaces/migrate.js +11 -11
  163. package/dist/namespaces/search.js +6 -6
  164. package/dist/namespaces/storage.js +10 -10
  165. package/dist/operator-doctor-corpus.js +13 -13
  166. package/dist/operator-toolkit.js +23 -23
  167. package/dist/orchestration/maintenance.js +18 -18
  168. package/dist/orchestrator.js +90 -88
  169. package/dist/{public-http-Cwvl4QZr.d.ts → public-http-CmQRjQCD.d.ts} +1 -1
  170. package/dist/qmd.js +4 -4
  171. package/dist/recall-deep-access.d.ts +30 -0
  172. package/dist/recall-deep-access.js +50 -0
  173. package/dist/recall-deep-access.js.map +1 -0
  174. package/dist/recall-deep-render.d.ts +11 -0
  175. package/dist/recall-deep-render.js +28 -0
  176. package/dist/recall-deep-render.js.map +1 -0
  177. package/dist/recall-deep.js +6 -73
  178. package/dist/recall-deep.js.map +1 -1
  179. package/dist/recall-navigate.js +6 -42
  180. package/dist/recall-navigate.js.map +1 -1
  181. package/dist/recall-state-view-render.d.ts +18 -0
  182. package/dist/recall-state-view-render.js +22 -0
  183. package/dist/recall-state-view-render.js.map +1 -0
  184. package/dist/recall-state-view-widen.d.ts +13 -0
  185. package/dist/recall-state-view-widen.js +11 -0
  186. package/dist/recall-state-view-widen.js.map +1 -0
  187. package/dist/recall-state-view-wire.d.ts +3 -4
  188. package/dist/recall-state-view-wire.js +2 -1
  189. package/dist/resume-bundles.js +4 -4
  190. package/dist/schemas.d.ts +176 -176
  191. package/dist/search/factory.js +5 -5
  192. package/dist/search/index.js +9 -9
  193. package/dist/semantic-consolidation.js +11 -11
  194. package/dist/semantic-rule-promotion.js +10 -10
  195. package/dist/semantic-rule-verifier.js +10 -10
  196. package/dist/shared-context/manager.d.ts +6 -6
  197. package/dist/source-agent-qualifier.js +12 -12
  198. package/dist/storage.js +9 -9
  199. package/dist/support-passport/index.d.ts +4 -4
  200. package/dist/support-passport/index.js +29 -29
  201. package/dist/transfer/export-okf.js +11 -11
  202. package/dist/transfer/types.d.ts +78 -78
  203. package/dist/verified-recall.js +10 -10
  204. package/dist/who-knows-cli.d.ts +1 -1
  205. package/dist/who-knows-cli.js +11 -11
  206. package/dist/who-knows.d.ts +1 -1
  207. package/dist/who-knows.js +10 -10
  208. package/package.json +2 -2
  209. package/src/activity/index.ts +3 -0
  210. package/src/activity/journal-vault-read.test.ts +153 -0
  211. package/src/activity/journal-vault-read.ts +214 -0
  212. package/src/activity/journal.ts +1 -1
  213. package/src/activity/timeline/analysis-batch.test.ts +56 -0
  214. package/src/activity/timeline/analysis-batch.ts +45 -0
  215. package/src/activity/timeline/analysis.test.ts +413 -0
  216. package/src/activity/timeline/analysis.ts +362 -0
  217. package/src/activity/timeline/index.ts +5 -0
  218. package/src/activity/timeline/journal-recap-persist.test.ts +148 -0
  219. package/src/activity/timeline/journal-recap-persist.ts +37 -0
  220. package/src/activity/timeline/weekly-persist.test.ts +121 -0
  221. package/src/activity/timeline/weekly-persist.ts +103 -0
  222. package/src/activity/vault-path.test.ts +38 -0
  223. package/src/activity/vault-path.ts +59 -0
  224. package/src/activity/vault-publish.test.ts +102 -0
  225. package/src/activity/vault-publish.ts +92 -13
  226. package/src/dedup/merge-on-write-wire.test.ts +101 -0
  227. package/src/dedup/merge-on-write-wire.ts +34 -0
  228. package/src/extraction-span-wire.test.ts +20 -0
  229. package/src/extraction-span-wire.ts +17 -0
  230. package/src/extraction-span.test.ts +59 -0
  231. package/src/extraction-span.ts +39 -0
  232. package/src/index.ts +1 -0
  233. package/src/recall-deep-access.test.ts +58 -0
  234. package/src/recall-deep-access.ts +71 -0
  235. package/src/recall-deep-render.test.ts +68 -0
  236. package/src/recall-deep-render.ts +32 -0
  237. package/src/recall-state-view-render.test.ts +94 -0
  238. package/src/recall-state-view-render.ts +24 -0
  239. package/src/recall-state-view-widen.test.ts +66 -0
  240. package/src/recall-state-view-widen.ts +49 -0
  241. package/src/recall-state-view-wire.ts +6 -16
  242. package/src/shared-context/staleness.test.ts +36 -0
  243. package/src/shared-context/staleness.ts +38 -0
  244. package/src/shared-context/trajectories.test.ts +77 -0
  245. package/src/shared-context/trajectories.ts +49 -0
  246. package/dist/chunk-MUEGIKKY.js.map +0 -1
  247. package/dist/chunk-TCF4MU7L.js.map +0 -1
  248. package/dist/chunk-WFCWP4XU.js +0 -17
  249. package/dist/chunk-WFCWP4XU.js.map +0 -1
  250. package/dist/{access-service-C2tV2-uL.d.ts → access-service-Dz6I9AZ-.d.ts} +64 -64
  251. /package/dist/{chunk-LYUUA6QB.js.map → chunk-25OLNWYG.js.map} +0 -0
  252. /package/dist/{chunk-2X6BGKQL.js.map → chunk-2QSGJTDG.js.map} +0 -0
  253. /package/dist/{chunk-ZZZWEDF4.js.map → chunk-2VZHB5US.js.map} +0 -0
  254. /package/dist/{chunk-JKTV3JNX.js.map → chunk-36HJ36FK.js.map} +0 -0
  255. /package/dist/{chunk-XKNHFDTT.js.map → chunk-3A2Z4OOS.js.map} +0 -0
  256. /package/dist/{chunk-RDGKVH6T.js.map → chunk-4NKIGSJM.js.map} +0 -0
  257. /package/dist/{chunk-QBNE55VA.js.map → chunk-4PG2CKI6.js.map} +0 -0
  258. /package/dist/{chunk-S4CDUXQY.js.map → chunk-6545JDIM.js.map} +0 -0
  259. /package/dist/{chunk-2FA7U5XY.js.map → chunk-65HXVEVG.js.map} +0 -0
  260. /package/dist/{chunk-U6NGKS32.js.map → chunk-6BYJQ3L2.js.map} +0 -0
  261. /package/dist/{chunk-OMX6TKXH.js.map → chunk-6PUF7LUO.js.map} +0 -0
  262. /package/dist/{chunk-TVVEYCNW.js.map → chunk-7K5Q6COX.js.map} +0 -0
  263. /package/dist/{chunk-VG4SSPAW.js.map → chunk-AI5M4FVQ.js.map} +0 -0
  264. /package/dist/{chunk-YMOPYG3K.js.map → chunk-BIJAWZYW.js.map} +0 -0
  265. /package/dist/{chunk-M5ERTI4I.js.map → chunk-BLHKR4GJ.js.map} +0 -0
  266. /package/dist/{chunk-CEH2AFXG.js.map → chunk-C24UZSFW.js.map} +0 -0
  267. /package/dist/{chunk-EH65UV2Z.js.map → chunk-C3ZYZKDJ.js.map} +0 -0
  268. /package/dist/{chunk-NFP4KPTA.js.map → chunk-CDLPF3PX.js.map} +0 -0
  269. /package/dist/{chunk-FFUMTH27.js.map → chunk-CQ6IWZDI.js.map} +0 -0
  270. /package/dist/{chunk-KWIGDKM2.js.map → chunk-D2YNNDML.js.map} +0 -0
  271. /package/dist/{chunk-65JOGLIS.js.map → chunk-D3DUA64S.js.map} +0 -0
  272. /package/dist/{chunk-2ITZ74A6.js.map → chunk-DSEHPUID.js.map} +0 -0
  273. /package/dist/{chunk-AF5H7TKI.js.map → chunk-EH7BNIUN.js.map} +0 -0
  274. /package/dist/{chunk-IGZCAHFL.js.map → chunk-EQRD4NMH.js.map} +0 -0
  275. /package/dist/{chunk-CX4OLNIH.js.map → chunk-ER2UPUMG.js.map} +0 -0
  276. /package/dist/{chunk-SZMYGDSM.js.map → chunk-F2JXJABQ.js.map} +0 -0
  277. /package/dist/{chunk-CHGG74CY.js.map → chunk-F4W5HTED.js.map} +0 -0
  278. /package/dist/{chunk-H2IRSXZN.js.map → chunk-FFWONAAW.js.map} +0 -0
  279. /package/dist/{chunk-TNGH4ZYI.js.map → chunk-GNWLTCKC.js.map} +0 -0
  280. /package/dist/{chunk-OJUEUQDJ.js.map → chunk-JJ6ZEFXC.js.map} +0 -0
  281. /package/dist/{chunk-U65VJSCJ.js.map → chunk-JMXHVJ2V.js.map} +0 -0
  282. /package/dist/{chunk-NACLNNFQ.js.map → chunk-KSZKQTZS.js.map} +0 -0
  283. /package/dist/{chunk-TCQRIIIN.js.map → chunk-LSR5LQXN.js.map} +0 -0
  284. /package/dist/{chunk-B4AOWRYF.js.map → chunk-NTFXBILO.js.map} +0 -0
  285. /package/dist/{chunk-2PSX5BJU.js.map → chunk-NZPFCP5A.js.map} +0 -0
  286. /package/dist/{chunk-C5IUOBCN.js.map → chunk-OERZXNSK.js.map} +0 -0
  287. /package/dist/{chunk-ZPS724LT.js.map → chunk-OIDICRH7.js.map} +0 -0
  288. /package/dist/{chunk-LTBKKSCX.js.map → chunk-OLBZ2WGG.js.map} +0 -0
  289. /package/dist/{chunk-PD66CVSD.js.map → chunk-OUKBMQ2O.js.map} +0 -0
  290. /package/dist/{chunk-GPFZFCRN.js.map → chunk-PP7R754B.js.map} +0 -0
  291. /package/dist/{chunk-GAJK3DQ5.js.map → chunk-PRRUK2ZH.js.map} +0 -0
  292. /package/dist/{chunk-TBCDF556.js.map → chunk-PW3GKWH3.js.map} +0 -0
  293. /package/dist/{chunk-KI64TTBL.js.map → chunk-R2Q6FTOX.js.map} +0 -0
  294. /package/dist/{chunk-KJXCD7VR.js.map → chunk-RCPKBW7K.js.map} +0 -0
  295. /package/dist/{chunk-INUBU6I5.js.map → chunk-RH3XLQG4.js.map} +0 -0
  296. /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
  297. /package/dist/{chunk-NSTNGMSS.js.map → chunk-U4HZEW2B.js.map} +0 -0
  298. /package/dist/{chunk-XOHYGIWF.js.map → chunk-UHQE37NI.js.map} +0 -0
  299. /package/dist/{chunk-D3UXGE5D.js.map → chunk-UMZUKOJU.js.map} +0 -0
  300. /package/dist/{chunk-S4Z2OBTX.js.map → chunk-UVYL5G7A.js.map} +0 -0
  301. /package/dist/{chunk-4XLTUR6R.js.map → chunk-VKDBDJIX.js.map} +0 -0
  302. /package/dist/{chunk-UW4RYPWC.js.map → chunk-VSMSYDIH.js.map} +0 -0
  303. /package/dist/{chunk-LJABGXC4.js.map → chunk-W5IYHQA5.js.map} +0 -0
  304. /package/dist/{chunk-7UOXCCCI.js.map → chunk-WKWY7YF3.js.map} +0 -0
  305. /package/dist/{chunk-YWPLOJ7T.js.map → chunk-Y2YM4C75.js.map} +0 -0
  306. /package/dist/{chunk-NUF7VSEX.js.map → chunk-YZ5VC2JJ.js.map} +0 -0
  307. /package/dist/{chunk-EWKVYCFP.js.map → chunk-ZBIEX4XN.js.map} +0 -0
  308. /package/dist/{chunk-GBEOUCBB.js.map → chunk-ZMVW2HJJ.js.map} +0 -0
  309. /package/dist/{chunk-RPIS5FQ7.js.map → chunk-ZXROBS53.js.map} +0 -0
  310. /package/dist/{graph-edge-decay-A4SDFMMS.js.map → extraction-span.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -34,8 +34,8 @@ export { bS as ACTION_GATE_DEFAULTS, bT as ACTION_GATE_DEFAULT_MAX_ADVISORIES_PE
34
34
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
35
35
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
36
36
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
37
- import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-C2tV2-uL.js';
38
- export { N as EngramMcpServer, Q as OPERATION_NAMES, O as OperationName, T as PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS, U as PROMOTION_CANDIDATES_MCP_TOOLS, V as ProcedureLibraryMaintenanceReport, X as ProcedureMaintenanceAction, Y as ProcedureMaintenanceActionKind, Z as ProcedureMaintenanceEvidence, _ as ProcedureMaintenanceMarker, $ as ProcedureMaintenanceReasonCode, a0 as ProcedureStatsConfigSnapshot, a1 as ProcedureStatsRecent, a2 as ProcedureStatsReport, a3 as ProcedureStatusCounts, a4 as PromotionCandidate, P as PromotionCandidatesResult, a5 as PromotionReuseSignal, a6 as ReviewDeckActionReceipt, a7 as ReviewDeckActionRequest, a8 as ReviewDeckChoice, a9 as ReviewDeckCursorError, aa as ReviewDeckCursorScope, ab as ReviewDeckEvidence, ac as ReviewDeckItem, ad as ReviewDeckPage, ae as ReviewDeckRisk, af as ReviewDeckUndoRequest, ag as SUBJECT_GUARD_MODES, ah as SUBJECT_GUARD_OVERRIDE_FLAG, ai as SUBJECT_VALUES, aj as SUPPORT_PASSPORT_CARD_CATEGORIES, ak as SUPPORT_PASSPORT_CARD_STATUSES, al as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, am as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, an as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, ao as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, S as SubjectBackfillReport, ap as SubjectBackfillStorage, aq as SubjectGuardDecision, ar as SupportPassportAccessSurface, as as SupportPassportAccessSurfaceDependencies, at as SupportPassportAnswerModelInput, au as SupportPassportAnswerModelInputSchema, av as SupportPassportAnswerOutput, aw as SupportPassportAnswerOutputSchema, ax as SupportPassportAnswerResult, ay as SupportPassportCard, az as SupportPassportCardCategory, aA as SupportPassportCardCategorySchema, aB as SupportPassportCardListSchema, aC as SupportPassportCardMutationInput, aD as SupportPassportCardMutationInputSchema, aE as SupportPassportCardSchema, aF as SupportPassportCardServiceDependencies, aG as SupportPassportCardStatus, aH as SupportPassportCardStatusSchema, aI as SupportPassportCardTitleSchema, aJ as SupportPassportCreateGrantInput, aK as SupportPassportCreateGrantInputSchema, aL as SupportPassportCreateGrantRequest, aM as SupportPassportCreateGrantRequestSchema, aN as SupportPassportCreateGrantResult, aO as SupportPassportCreatedGrant, aP as SupportPassportCreatedGrantSchema, aQ as SupportPassportDraftCard, aR as SupportPassportDraftCardSchema, aS as SupportPassportDraftModelInput, aT as SupportPassportDraftModelInputSchema, aU as SupportPassportDraftOutputSchema, aV as SupportPassportDraftResult, aW as SupportPassportError, aX as SupportPassportErrorCode, aY as SupportPassportGrantCardRef, aZ as SupportPassportGrantCardRefSchema, a_ as SupportPassportGrantState, a$ as SupportPassportGrantStateSchema, b0 as SupportPassportListCardsInputSchema, b1 as SupportPassportListGrantsInputSchema, b2 as SupportPassportManualDraftInput, b3 as SupportPassportManualDraftInputSchema, b4 as SupportPassportMemoryIdSchema, b5 as SupportPassportMemoryPreview, b6 as SupportPassportModelAdapter, b7 as SupportPassportModelAdapterOptions, b8 as SupportPassportModelAuditRecord, b9 as SupportPassportModelAuditRecordSchema, ba as SupportPassportModelAuditSink, bb as SupportPassportModelAuditStore, bc as SupportPassportModelCallError, bd as SupportPassportModelClients, be as SupportPassportModelFailureMetadata, bf as SupportPassportModelMessage, bg as SupportPassportModelResultMetadata, bh as SupportPassportModelRoute, bi as SupportPassportModelRouteKind, bj as SupportPassportModelRouteResult, bk as SupportPassportModelUsage, bl as SupportPassportNamespaceSchema, bm as SupportPassportOwnerCreateGrantRequest, bn as SupportPassportOwnerCreateGrantRequestSchema, bo as SupportPassportOwnerGrant, bp as SupportPassportOwnerGrantSchema, bq as SupportPassportOwnerScope, br as SupportPassportPublicCardSchema, bs as SupportPassportPublicGuide, bt as SupportPassportPublicGuideSchema, bu as SupportPassportReplaceCardInput, bv as SupportPassportReplaceCardInputSchema, bw as SupportPassportRevokeGrantInput, bx as SupportPassportRevokeGrantInputSchema, by as SupportPassportRevokeGrantResult, bz as SupportPassportSourceMemoryIdSchema, bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bK as acceptsSupportPassportModelResponse, bL as backfillMemorySubjects, bM as buildReviewDeckPage, bN as buildSupportPassportDirectGatewayConfig, bO as compareReviewDeckRows, bP as computeProcedureStats, bQ as computePromotionCandidates, bR as computeReviewItemRevision, bS as computeSupportPassportCardRevision, bT as computeWhoKnows, bU as createSupportPassportModelAdapter, bV as decodeReviewDeckCursor, bW as encodeReviewDeckCursor, bX as evaluateSubjectGuard, bY as formatProcedureStatsText, bZ as handleWhoKnowsHttpQuery, b_ as hashSupportPassportAuditValues, b$ as isMemorySubject, c0 as isSharedPromotionTarget, c1 as isSubjectGuardMode, c2 as loadWhoKnowsEntities, c3 as projectReviewDeckItem, c4 as promotionCandidateKey, c5 as resolveSupportPassportModelRoutePlan, c6 as resolveWriteSubject, c7 as runProcedureLibraryMaintenance, c8 as subjectDefaultForCategory, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-C2tV2-uL.js';
37
+ import { f as EngramAccessService, B as BoundOperation, R as ReviewDeckSourceRow, L as ReviewDeckSnapshot } from './access-service-Dz6I9AZ-.js';
38
+ export { N as EngramMcpServer, Q as OPERATION_NAMES, O as OperationName, T as PROMOTION_CANDIDATES_DEFAULT_MIN_ACCESS, U as PROMOTION_CANDIDATES_MCP_TOOLS, V as ProcedureLibraryMaintenanceReport, X as ProcedureMaintenanceAction, Y as ProcedureMaintenanceActionKind, Z as ProcedureMaintenanceEvidence, _ as ProcedureMaintenanceMarker, $ as ProcedureMaintenanceReasonCode, a0 as ProcedureStatsConfigSnapshot, a1 as ProcedureStatsRecent, a2 as ProcedureStatsReport, a3 as ProcedureStatusCounts, a4 as PromotionCandidate, P as PromotionCandidatesResult, a5 as PromotionReuseSignal, a6 as ReviewDeckActionReceipt, a7 as ReviewDeckActionRequest, a8 as ReviewDeckChoice, a9 as ReviewDeckCursorError, aa as ReviewDeckCursorScope, ab as ReviewDeckEvidence, ac as ReviewDeckItem, ad as ReviewDeckPage, ae as ReviewDeckRisk, af as ReviewDeckUndoRequest, ag as SUBJECT_GUARD_MODES, ah as SUBJECT_GUARD_OVERRIDE_FLAG, ai as SUBJECT_VALUES, aj as SUPPORT_PASSPORT_CARD_CATEGORIES, ak as SUPPORT_PASSPORT_CARD_STATUSES, al as SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS, am as SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES, an as SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER, ao as SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH, S as SubjectBackfillReport, ap as SubjectBackfillStorage, aq as SubjectGuardDecision, ar as SupportPassportAccessSurface, as as SupportPassportAccessSurfaceDependencies, at as SupportPassportAnswerModelInput, au as SupportPassportAnswerModelInputSchema, av as SupportPassportAnswerOutput, aw as SupportPassportAnswerOutputSchema, ax as SupportPassportAnswerResult, ay as SupportPassportCard, az as SupportPassportCardCategory, aA as SupportPassportCardCategorySchema, aB as SupportPassportCardListSchema, aC as SupportPassportCardMutationInput, aD as SupportPassportCardMutationInputSchema, aE as SupportPassportCardSchema, aF as SupportPassportCardServiceDependencies, aG as SupportPassportCardStatus, aH as SupportPassportCardStatusSchema, aI as SupportPassportCardTitleSchema, aJ as SupportPassportCreateGrantInput, aK as SupportPassportCreateGrantInputSchema, aL as SupportPassportCreateGrantRequest, aM as SupportPassportCreateGrantRequestSchema, aN as SupportPassportCreateGrantResult, aO as SupportPassportCreatedGrant, aP as SupportPassportCreatedGrantSchema, aQ as SupportPassportDraftCard, aR as SupportPassportDraftCardSchema, aS as SupportPassportDraftModelInput, aT as SupportPassportDraftModelInputSchema, aU as SupportPassportDraftOutputSchema, aV as SupportPassportDraftResult, aW as SupportPassportError, aX as SupportPassportErrorCode, aY as SupportPassportGrantCardRef, aZ as SupportPassportGrantCardRefSchema, a_ as SupportPassportGrantState, a$ as SupportPassportGrantStateSchema, b0 as SupportPassportListCardsInputSchema, b1 as SupportPassportListGrantsInputSchema, b2 as SupportPassportManualDraftInput, b3 as SupportPassportManualDraftInputSchema, b4 as SupportPassportMemoryIdSchema, b5 as SupportPassportMemoryPreview, b6 as SupportPassportModelAdapter, b7 as SupportPassportModelAdapterOptions, b8 as SupportPassportModelAuditRecord, b9 as SupportPassportModelAuditRecordSchema, ba as SupportPassportModelAuditSink, bb as SupportPassportModelAuditStore, bc as SupportPassportModelCallError, bd as SupportPassportModelClients, be as SupportPassportModelFailureMetadata, bf as SupportPassportModelMessage, bg as SupportPassportModelResultMetadata, bh as SupportPassportModelRoute, bi as SupportPassportModelRouteKind, bj as SupportPassportModelRouteResult, bk as SupportPassportModelUsage, bl as SupportPassportNamespaceSchema, bm as SupportPassportOwnerCreateGrantRequest, bn as SupportPassportOwnerCreateGrantRequestSchema, bo as SupportPassportOwnerGrant, bp as SupportPassportOwnerGrantSchema, bq as SupportPassportOwnerScope, br as SupportPassportPublicCardSchema, bs as SupportPassportPublicGuide, bt as SupportPassportPublicGuideSchema, bu as SupportPassportReplaceCardInput, bv as SupportPassportReplaceCardInputSchema, bw as SupportPassportRevokeGrantInput, bx as SupportPassportRevokeGrantInputSchema, by as SupportPassportRevokeGrantResult, bz as SupportPassportSourceMemoryIdSchema, bA as WHO_KNOWS_AUTHORSHIP_BONUS, bB as WHO_KNOWS_DEFAULT_LIMIT, bC as WHO_KNOWS_MAX_EVIDENCE, bD as WHO_KNOWS_MAX_LIMIT, bE as WHO_KNOWS_MCP_TOOLS, bF as WhoKnowsEntity, bG as WhoKnowsEvidence, bH as WhoKnowsHit, bI as WhoKnowsHttpOutcome, W as WhoKnowsResult, bJ as WhoKnowsStorage, bK as acceptsSupportPassportModelResponse, bL as backfillMemorySubjects, bM as buildReviewDeckPage, bN as buildSupportPassportDirectGatewayConfig, bO as compareReviewDeckRows, bP as computeProcedureStats, bQ as computePromotionCandidates, bR as computeReviewItemRevision, bS as computeSupportPassportCardRevision, bT as computeWhoKnows, bU as createSupportPassportModelAdapter, bV as decodeReviewDeckCursor, bW as encodeReviewDeckCursor, bX as evaluateSubjectGuard, bY as formatProcedureStatsText, bZ as handleWhoKnowsHttpQuery, b_ as hashSupportPassportAuditValues, b$ as isMemorySubject, c0 as isSharedPromotionTarget, c1 as isSubjectGuardMode, c2 as loadWhoKnowsEntities, c3 as projectReviewDeckItem, c4 as promotionCandidateKey, c5 as resolveSupportPassportModelRoutePlan, c6 as resolveWriteSubject, c7 as runProcedureLibraryMaintenance, c8 as subjectDefaultForCategory, c9 as tokenizeTopic, ca as validateWhoKnowsInput } from './access-service-Dz6I9AZ-.js';
39
39
  import { LocalLlmClient } from './local-llm.js';
40
40
  import { FallbackLlmClient } from './fallback-llm.js';
41
41
  export { FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
@@ -58,10 +58,10 @@ export { a as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatal
58
58
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
59
59
  export { storagePathHash } from './storage-paths.js';
60
60
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
61
- export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-CsfFMe6n.js';
61
+ export { A as AuditMemoryReport, B as BulkImportCliCommandOptions, a as auditMemoryStore, f as formatAuditMemoryReport, p as parseStrictCliDate, r as runAuditMemoryCliCommand, b as runBulkImportCliCommand } from './cli-BOuEb4Ia.js';
62
62
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
63
63
  export { CreateStoredGrantInput, DEFAULT_SUPPORT_PASSPORT_CONFIG, SUPPORT_PASSPORT_ATTRIBUTE_KEYS, SUPPORT_PASSPORT_AUDIT_TAG, SUPPORT_PASSPORT_CARD_TAG, SUPPORT_PASSPORT_MODEL_ACK_PATH, SUPPORT_PASSPORT_MODEL_JOB_PATH, SUPPORT_PASSPORT_MODEL_RESULT_PATH, StoredSupportPassportCard, SupportPassportCardService, SupportPassportDraftService, SupportPassportDraftServiceDependencies, SupportPassportGrantMutationHooks, SupportPassportGrantService, SupportPassportGrantServiceDependencies, SupportPassportGrantStore, SupportPassportGrantStoreOptions, SupportPassportModelBridge, SupportPassportModelBridgeOptions, SupportPassportModelJob, SupportPassportQuestionService, SupportPassportQuestionServiceDependencies, activeSupportPassportReplacementPredecessorIds, computeSupportPassportOwnerKey, computeSupportPassportSourceRevision, createSupportPassportPrivateFileExclusion, decodeSupportPassportNamespaceAttributes, encodeSupportPassportNamespaceAttributes, excludeSupportPassportPrivateMemories, hasLiveSupportPassportCard, isSupportPassportPrivateMemory, isSupportPassportSourceEligible, notifySupportPassportCommitted, parseSupportPassportConfig, parseSupportPassportModelJob, projectSupportPassportCard, syncDirectoryForDurability } from './support-passport/index.js';
64
- export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-Cwvl4QZr.js';
64
+ export { a as SUPPORT_PASSPORT_PUBLIC_HTTP_ROUTES, S as SupportPassportExternalRequestHandler, b as SupportPassportPublicHandlerOptions, c as buildSupportPassportPublicRequestHandler, d as composeSupportPassportExternalRequestHandlers, n as normalizeSupportPassportNetworkAddress } from './public-http-CmQRjQCD.js';
65
65
  import { z } from 'zod';
66
66
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
67
67
  export { CuriosityQuestion, MEMORY_CONTEXT_HEADER, MEMORY_CONTEXT_INSTRUCTION, RECALL_CONTEXT_SEPARATOR, RecallAuthorityRenderOptions, RecallContextComposition, RenderMemoryContextPromptInput, RenderedMemoryContextPrompt, boundRecallContextComposition, composeRecallContext, contextBudgetForFooter, formatCuriosityFooter, renderAuthorityBoundContent, renderMemoryContextPrompt, selectCuriosityQuestion } from './recall-context-composition.js';
@@ -128,6 +128,7 @@ export { R as ResolvedScopeProfilePlan } from './scope-profiles-DFaojvoP.js';
128
128
  export { commitPreparedFileAtomically, copyExistingFileToBackup, writeFileAtomically } from './maintenance/atomic-file.js';
129
129
  export { BuildEvalTrajectoryReportOptions, EvalTrajectoryReader, EvalTrajectoryReaderResult, buildEvalTrajectoryReport, createSyntheticEvalTrajectoryReader } from './eval-trajectory.js';
130
130
  export { ActiveContextAdapter, ActiveContextMessage, ActiveContextPlan, MemoryControllerActionFamily, MemoryControllerChoice, MemoryControllerConfig, MemoryControllerCoordinator, MemoryControllerDeps, MemoryControllerEvent, MemoryControllerEvidence, MemoryControllerEvidenceReport, MemoryControllerExecutors, MemoryControllerMode, MemoryControllerPairedSeedEvidence, MemoryControllerReceipt, MemoryControllerRecorder, MemoryControllerReportReader, MemoryControllerRunResult, MemoryControllerState, chooseAction, computeEvidenceReportHash, controllerConfigHash, evaluateActiveGates, hashControllerState, verifyEvidenceReport } from './memory-controller.js';
131
+ export { RECALL_NAV_LINK_TYPES, RecallNavBudget, RecallNavEdge, RecallNavExpandResult, RecallNavLinkType, RecallNavNeighbor, RecallNavNode, RecallNavTraverseResult, expandRecallNode, isRecallNavLinkType, traverseRecallLink } from './recall-navigate.js';
131
132
  export { ContinuityImprovementLoop } from './types-continuity.js';
132
133
  export { DEFAULT_EVAL_TRAJECTORY_MAX_FUTURE_SKEW_MS, DEFAULT_EVAL_TRAJECTORY_MAX_ROWS, DEFAULT_EVAL_TRAJECTORY_OUTCOME_WINDOW_MS, DEFAULT_EVAL_TRAJECTORY_REPORT_MAX_AGE_MS, DEFAULT_EVAL_TRAJECTORY_WEIGHTS, EVAL_TRAJECTORY_PROMOTION_THRESHOLDS, EVAL_TRAJECTORY_REPORT_SCHEMA_VERSION, EvalActionInput, EvalActionProjection, EvalOutcomeInput, EvalOutcomeProjection, EvalStaleUseEvidence, EvalStaleUseEvidenceInput, EvalStaleUseLifecycleState, EvalStaleUseOutcome, EvalTrajectoryAggregates, EvalTrajectoryJoinKind, EvalTrajectoryMetricName, EvalTrajectoryOutcomeSource, EvalTrajectoryRejectionReason, EvalTrajectoryReport, EvalTrajectoryRowStatus, EvalTrajectoryRunConfig, EvalTrajectoryTaskResult, EvalTrajectoryWeights, MAX_EVAL_TRAJECTORY_ROWS_LIMIT, UnifiedMemoryPromotionReport, UnifiedMemoryPromotionState, resolveEvalTrajectoryRunConfig, serializeEvalTrajectoryReport } from './eval-trajectory-contracts.js';
133
134
  export { EngramAccessInputError } from './access-errors.js';
@@ -1230,15 +1231,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
1230
1231
  locator: z.ZodOptional<z.ZodString>;
1231
1232
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1232
1233
  }, "strict", z.ZodTypeAny, {
1233
- id: string;
1234
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1234
1235
  label: string;
1235
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1236
+ id: string;
1236
1237
  capture: "at_action" | "historical_lookup" | "fixture";
1237
1238
  locator?: string | undefined;
1238
1239
  }, {
1239
- id: string;
1240
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1240
1241
  label: string;
1241
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1242
+ id: string;
1242
1243
  capture: "at_action" | "historical_lookup" | "fixture";
1243
1244
  locator?: string | undefined;
1244
1245
  }>;
@@ -1255,15 +1256,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1255
1256
  locator: z.ZodOptional<z.ZodString>;
1256
1257
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1257
1258
  }, "strict", z.ZodTypeAny, {
1258
- id: string;
1259
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1259
1260
  label: string;
1260
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1261
+ id: string;
1261
1262
  capture: "at_action" | "historical_lookup" | "fixture";
1262
1263
  locator?: string | undefined;
1263
1264
  }, {
1264
- id: string;
1265
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1265
1266
  label: string;
1266
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1267
+ id: string;
1267
1268
  capture: "at_action" | "historical_lookup" | "fixture";
1268
1269
  locator?: string | undefined;
1269
1270
  }>, "many">>;
@@ -1271,9 +1272,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1271
1272
  kind: "mission_started";
1272
1273
  title: string;
1273
1274
  evidence: {
1274
- id: string;
1275
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1275
1276
  label: string;
1276
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1277
+ id: string;
1277
1278
  capture: "at_action" | "historical_lookup" | "fixture";
1278
1279
  locator?: string | undefined;
1279
1280
  }[];
@@ -1285,9 +1286,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1285
1286
  objective: string;
1286
1287
  runMode: "replay" | "fixture" | "live";
1287
1288
  evidence?: {
1288
- id: string;
1289
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1289
1290
  label: string;
1290
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1291
+ id: string;
1291
1292
  capture: "at_action" | "historical_lookup" | "fixture";
1292
1293
  locator?: string | undefined;
1293
1294
  }[] | undefined;
@@ -1303,15 +1304,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1303
1304
  locator: z.ZodOptional<z.ZodString>;
1304
1305
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1305
1306
  }, "strict", z.ZodTypeAny, {
1306
- id: string;
1307
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1307
1308
  label: string;
1308
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1309
+ id: string;
1309
1310
  capture: "at_action" | "historical_lookup" | "fixture";
1310
1311
  locator?: string | undefined;
1311
1312
  }, {
1312
- id: string;
1313
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1313
1314
  label: string;
1314
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1315
+ id: string;
1315
1316
  capture: "at_action" | "historical_lookup" | "fixture";
1316
1317
  locator?: string | undefined;
1317
1318
  }>, "many">>;
@@ -1319,32 +1320,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1319
1320
  sessionId: z.ZodString;
1320
1321
  kind: z.ZodLiteral<"agent_status">;
1321
1322
  }, "strict", z.ZodTypeAny, {
1322
- label: string;
1323
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1324
1323
  kind: "agent_status";
1324
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1325
+ label: string;
1325
1326
  role: string;
1326
1327
  agentId: string;
1327
1328
  sessionId: string;
1328
1329
  evidence: {
1329
- id: string;
1330
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1330
1331
  label: string;
1331
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1332
+ id: string;
1332
1333
  capture: "at_action" | "historical_lookup" | "fixture";
1333
1334
  locator?: string | undefined;
1334
1335
  }[];
1335
1336
  detail?: string | undefined;
1336
1337
  }, {
1337
- label: string;
1338
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1339
1338
  kind: "agent_status";
1339
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1340
+ label: string;
1340
1341
  role: string;
1341
1342
  agentId: string;
1342
1343
  sessionId: string;
1343
1344
  detail?: string | undefined;
1344
1345
  evidence?: {
1345
- id: string;
1346
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1346
1347
  label: string;
1347
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1348
+ id: string;
1348
1349
  capture: "at_action" | "historical_lookup" | "fixture";
1349
1350
  locator?: string | undefined;
1350
1351
  }[] | undefined;
@@ -1358,15 +1359,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1358
1359
  locator: z.ZodOptional<z.ZodString>;
1359
1360
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1360
1361
  }, "strict", z.ZodTypeAny, {
1361
- id: string;
1362
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1362
1363
  label: string;
1363
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1364
+ id: string;
1364
1365
  capture: "at_action" | "historical_lookup" | "fixture";
1365
1366
  locator?: string | undefined;
1366
1367
  }, {
1367
- id: string;
1368
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1368
1369
  label: string;
1369
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1370
+ id: string;
1370
1371
  capture: "at_action" | "historical_lookup" | "fixture";
1371
1372
  locator?: string | undefined;
1372
1373
  }>, "many">>;
@@ -1374,28 +1375,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1374
1375
  sessionId: z.ZodString;
1375
1376
  kind: z.ZodLiteral<"agent_output">;
1376
1377
  }, "strict", z.ZodTypeAny, {
1377
- summary: string;
1378
1378
  kind: "agent_output";
1379
+ summary: string;
1379
1380
  agentId: string;
1380
1381
  sessionId: string;
1381
1382
  evidence: {
1382
- id: string;
1383
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1383
1384
  label: string;
1384
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1385
+ id: string;
1385
1386
  capture: "at_action" | "historical_lookup" | "fixture";
1386
1387
  locator?: string | undefined;
1387
1388
  }[];
1388
1389
  outputId: string;
1389
1390
  }, {
1390
- summary: string;
1391
1391
  kind: "agent_output";
1392
+ summary: string;
1392
1393
  agentId: string;
1393
1394
  sessionId: string;
1394
1395
  outputId: string;
1395
1396
  evidence?: {
1396
- id: string;
1397
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1397
1398
  label: string;
1398
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1399
+ id: string;
1399
1400
  capture: "at_action" | "historical_lookup" | "fixture";
1400
1401
  locator?: string | undefined;
1401
1402
  }[] | undefined;
@@ -1411,15 +1412,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1411
1412
  locator: z.ZodOptional<z.ZodString>;
1412
1413
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1413
1414
  }, "strict", z.ZodTypeAny, {
1414
- id: string;
1415
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1415
1416
  label: string;
1416
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1417
+ id: string;
1417
1418
  capture: "at_action" | "historical_lookup" | "fixture";
1418
1419
  locator?: string | undefined;
1419
1420
  }, {
1420
- id: string;
1421
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1421
1422
  label: string;
1422
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1423
+ id: string;
1423
1424
  capture: "at_action" | "historical_lookup" | "fixture";
1424
1425
  locator?: string | undefined;
1425
1426
  }>, "many">>;
@@ -1432,9 +1433,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1432
1433
  statement: string;
1433
1434
  sessionId: string;
1434
1435
  evidence: {
1435
- id: string;
1436
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1436
1437
  label: string;
1437
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1438
+ id: string;
1438
1439
  capture: "at_action" | "historical_lookup" | "fixture";
1439
1440
  locator?: string | undefined;
1440
1441
  }[];
@@ -1450,9 +1451,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1450
1451
  decisionId: string;
1451
1452
  confidence?: number | undefined;
1452
1453
  evidence?: {
1453
- id: string;
1454
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1454
1455
  label: string;
1455
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1456
+ id: string;
1456
1457
  capture: "at_action" | "historical_lookup" | "fixture";
1457
1458
  locator?: string | undefined;
1458
1459
  }[] | undefined;
@@ -1469,25 +1470,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1469
1470
  locator: z.ZodOptional<z.ZodString>;
1470
1471
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1471
1472
  }, "strict", z.ZodTypeAny, {
1472
- id: string;
1473
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1473
1474
  label: string;
1474
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1475
+ id: string;
1475
1476
  capture: "at_action" | "historical_lookup" | "fixture";
1476
1477
  locator?: string | undefined;
1477
1478
  }, {
1478
- id: string;
1479
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1479
1480
  label: string;
1480
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1481
+ id: string;
1481
1482
  capture: "at_action" | "historical_lookup" | "fixture";
1482
1483
  locator?: string | undefined;
1483
1484
  }>, "many">>;
1484
1485
  }, "strict", z.ZodTypeAny, {
1485
- summary: string;
1486
1486
  kind: "conflict_detected";
1487
+ summary: string;
1487
1488
  evidence: {
1488
- id: string;
1489
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1489
1490
  label: string;
1490
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1491
+ id: string;
1491
1492
  capture: "at_action" | "historical_lookup" | "fixture";
1492
1493
  locator?: string | undefined;
1493
1494
  }[];
@@ -1495,15 +1496,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1495
1496
  decisionIds: string[];
1496
1497
  agentIds: string[];
1497
1498
  }, {
1498
- summary: string;
1499
1499
  kind: "conflict_detected";
1500
+ summary: string;
1500
1501
  conflictId: string;
1501
1502
  decisionIds: string[];
1502
1503
  agentIds: string[];
1503
1504
  evidence?: {
1504
- id: string;
1505
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1505
1506
  label: string;
1506
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1507
+ id: string;
1507
1508
  capture: "at_action" | "historical_lookup" | "fixture";
1508
1509
  locator?: string | undefined;
1509
1510
  }[] | undefined;
@@ -1523,27 +1524,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1523
1524
  locator: z.ZodOptional<z.ZodString>;
1524
1525
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1525
1526
  }, "strict", z.ZodTypeAny, {
1526
- id: string;
1527
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1527
1528
  label: string;
1528
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1529
+ id: string;
1529
1530
  capture: "at_action" | "historical_lookup" | "fixture";
1530
1531
  locator?: string | undefined;
1531
1532
  }, {
1532
- id: string;
1533
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1533
1534
  label: string;
1534
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1535
+ id: string;
1535
1536
  capture: "at_action" | "historical_lookup" | "fixture";
1536
1537
  locator?: string | undefined;
1537
1538
  }>, "many">>;
1538
1539
  }, "strict", z.ZodTypeAny, {
1540
+ kind: "test_result";
1539
1541
  summary: string;
1540
1542
  status: "error" | "failed" | "passed";
1541
- kind: "test_result";
1542
1543
  command: string;
1543
1544
  evidence: {
1544
- id: string;
1545
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1545
1546
  label: string;
1546
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1547
+ id: string;
1547
1548
  capture: "at_action" | "historical_lookup" | "fixture";
1548
1549
  locator?: string | undefined;
1549
1550
  }[];
@@ -1552,17 +1553,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1552
1553
  durationMs?: number | undefined;
1553
1554
  correctionId?: string | undefined;
1554
1555
  }, {
1556
+ kind: "test_result";
1555
1557
  summary: string;
1556
1558
  status: "error" | "failed" | "passed";
1557
- kind: "test_result";
1558
1559
  command: string;
1559
1560
  decisionId: string;
1560
1561
  testId: string;
1561
1562
  durationMs?: number | undefined;
1562
1563
  evidence?: {
1563
- id: string;
1564
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1564
1565
  label: string;
1565
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1566
+ id: string;
1566
1567
  capture: "at_action" | "historical_lookup" | "fixture";
1567
1568
  locator?: string | undefined;
1568
1569
  }[] | undefined;
@@ -1583,15 +1584,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1583
1584
  locator: z.ZodOptional<z.ZodString>;
1584
1585
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1585
1586
  }, "strict", z.ZodTypeAny, {
1586
- id: string;
1587
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1587
1588
  label: string;
1588
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1589
+ id: string;
1589
1590
  capture: "at_action" | "historical_lookup" | "fixture";
1590
1591
  locator?: string | undefined;
1591
1592
  }, {
1592
- id: string;
1593
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1593
1594
  label: string;
1594
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1595
+ id: string;
1595
1596
  capture: "at_action" | "historical_lookup" | "fixture";
1596
1597
  locator?: string | undefined;
1597
1598
  }>, "many">>;
@@ -1600,9 +1601,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1600
1601
  statement: string;
1601
1602
  rationale: string;
1602
1603
  evidence: {
1603
- id: string;
1604
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1604
1605
  label: string;
1605
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1606
+ id: string;
1606
1607
  capture: "at_action" | "historical_lookup" | "fixture";
1607
1608
  locator?: string | undefined;
1608
1609
  }[];
@@ -1621,9 +1622,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1621
1622
  supersedesDecisionIds: string[];
1622
1623
  proposedBy: string;
1623
1624
  evidence?: {
1624
- id: string;
1625
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1625
1626
  label: string;
1626
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1627
+ id: string;
1627
1628
  capture: "at_action" | "historical_lookup" | "fixture";
1628
1629
  locator?: string | undefined;
1629
1630
  }[] | undefined;
@@ -1635,13 +1636,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1635
1636
  id: z.ZodString;
1636
1637
  label: z.ZodString;
1637
1638
  }, "strict", z.ZodTypeAny, {
1638
- id: string;
1639
- label: string;
1640
1639
  kind: "agent" | "human";
1641
- }, {
1642
- id: string;
1643
1640
  label: string;
1641
+ id: string;
1642
+ }, {
1644
1643
  kind: "agent" | "human";
1644
+ label: string;
1645
+ id: string;
1645
1646
  }>;
1646
1647
  note: z.ZodOptional<z.ZodString>;
1647
1648
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1651,47 +1652,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1651
1652
  locator: z.ZodOptional<z.ZodString>;
1652
1653
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1653
1654
  }, "strict", z.ZodTypeAny, {
1654
- id: string;
1655
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1655
1656
  label: string;
1656
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1657
+ id: string;
1657
1658
  capture: "at_action" | "historical_lookup" | "fixture";
1658
1659
  locator?: string | undefined;
1659
1660
  }, {
1660
- id: string;
1661
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1661
1662
  label: string;
1662
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1663
+ id: string;
1663
1664
  capture: "at_action" | "historical_lookup" | "fixture";
1664
1665
  locator?: string | undefined;
1665
1666
  }>, "many">>;
1666
1667
  }, "strict", z.ZodTypeAny, {
1667
1668
  kind: "correction_approved";
1668
1669
  evidence: {
1669
- id: string;
1670
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1670
1671
  label: string;
1671
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1672
+ id: string;
1672
1673
  capture: "at_action" | "historical_lookup" | "fixture";
1673
1674
  locator?: string | undefined;
1674
1675
  }[];
1675
1676
  correctionId: string;
1676
1677
  approvedBy: {
1677
- id: string;
1678
- label: string;
1679
1678
  kind: "agent" | "human";
1679
+ label: string;
1680
+ id: string;
1680
1681
  };
1681
1682
  note?: string | undefined;
1682
1683
  }, {
1683
1684
  kind: "correction_approved";
1684
1685
  correctionId: string;
1685
1686
  approvedBy: {
1686
- id: string;
1687
- label: string;
1688
1687
  kind: "agent" | "human";
1688
+ label: string;
1689
+ id: string;
1689
1690
  };
1690
1691
  note?: string | undefined;
1691
1692
  evidence?: {
1692
- id: string;
1693
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1693
1694
  label: string;
1694
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1695
+ id: string;
1695
1696
  capture: "at_action" | "historical_lookup" | "fixture";
1696
1697
  locator?: string | undefined;
1697
1698
  }[] | undefined;
@@ -1707,24 +1708,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1707
1708
  locator: z.ZodOptional<z.ZodString>;
1708
1709
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1709
1710
  }, "strict", z.ZodTypeAny, {
1710
- id: string;
1711
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1711
1712
  label: string;
1712
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1713
+ id: string;
1713
1714
  capture: "at_action" | "historical_lookup" | "fixture";
1714
1715
  locator?: string | undefined;
1715
1716
  }, {
1716
- id: string;
1717
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1717
1718
  label: string;
1718
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1719
+ id: string;
1719
1720
  capture: "at_action" | "historical_lookup" | "fixture";
1720
1721
  locator?: string | undefined;
1721
1722
  }>, "many">>;
1722
1723
  }, "strict", z.ZodTypeAny, {
1723
1724
  kind: "decision_superseded";
1724
1725
  evidence: {
1725
- id: string;
1726
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1726
1727
  label: string;
1727
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1728
+ id: string;
1728
1729
  capture: "at_action" | "historical_lookup" | "fixture";
1729
1730
  locator?: string | undefined;
1730
1731
  }[];
@@ -1737,9 +1738,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1737
1738
  correctionId: string;
1738
1739
  replacementDecisionId: string;
1739
1740
  evidence?: {
1740
- id: string;
1741
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1741
1742
  label: string;
1742
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1743
+ id: string;
1743
1744
  capture: "at_action" | "historical_lookup" | "fixture";
1744
1745
  locator?: string | undefined;
1745
1746
  }[] | undefined;
@@ -1755,15 +1756,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1755
1756
  locator: z.ZodOptional<z.ZodString>;
1756
1757
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1757
1758
  }, "strict", z.ZodTypeAny, {
1758
- id: string;
1759
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1759
1760
  label: string;
1760
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1761
+ id: string;
1761
1762
  capture: "at_action" | "historical_lookup" | "fixture";
1762
1763
  locator?: string | undefined;
1763
1764
  }, {
1764
- id: string;
1765
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1765
1766
  label: string;
1766
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1767
+ id: string;
1767
1768
  capture: "at_action" | "historical_lookup" | "fixture";
1768
1769
  locator?: string | undefined;
1769
1770
  }>, "many">>;
@@ -1776,9 +1777,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1776
1777
  agentId: string;
1777
1778
  sessionId: string;
1778
1779
  evidence: {
1779
- id: string;
1780
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1780
1781
  label: string;
1781
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1782
+ id: string;
1782
1783
  capture: "at_action" | "historical_lookup" | "fixture";
1783
1784
  locator?: string | undefined;
1784
1785
  }[];
@@ -1794,9 +1795,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1794
1795
  recallReceiptId: string;
1795
1796
  capturedAtAction: boolean;
1796
1797
  evidence?: {
1797
- id: string;
1798
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1798
1799
  label: string;
1799
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1800
+ id: string;
1800
1801
  capture: "at_action" | "historical_lookup" | "fixture";
1801
1802
  locator?: string | undefined;
1802
1803
  }[] | undefined;
@@ -1812,15 +1813,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1812
1813
  locator: z.ZodOptional<z.ZodString>;
1813
1814
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1814
1815
  }, "strict", z.ZodTypeAny, {
1815
- id: string;
1816
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1816
1817
  label: string;
1817
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1818
+ id: string;
1818
1819
  capture: "at_action" | "historical_lookup" | "fixture";
1819
1820
  locator?: string | undefined;
1820
1821
  }, {
1821
- id: string;
1822
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1822
1823
  label: string;
1823
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1824
+ id: string;
1824
1825
  capture: "at_action" | "historical_lookup" | "fixture";
1825
1826
  locator?: string | undefined;
1826
1827
  }>, "many">>;
@@ -1832,9 +1833,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1832
1833
  agentId: string;
1833
1834
  sessionId: string;
1834
1835
  evidence: {
1835
- id: string;
1836
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1836
1837
  label: string;
1837
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1838
+ id: string;
1838
1839
  capture: "at_action" | "historical_lookup" | "fixture";
1839
1840
  locator?: string | undefined;
1840
1841
  }[];
@@ -1851,9 +1852,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1851
1852
  recallReceiptId: string;
1852
1853
  staleDecisionAbsent: boolean;
1853
1854
  evidence?: {
1854
- id: string;
1855
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1855
1856
  label: string;
1856
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1857
+ id: string;
1857
1858
  capture: "at_action" | "historical_lookup" | "fixture";
1858
1859
  locator?: string | undefined;
1859
1860
  }[] | undefined;
@@ -1868,37 +1869,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1868
1869
  locator: z.ZodOptional<z.ZodString>;
1869
1870
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1870
1871
  }, "strict", z.ZodTypeAny, {
1871
- id: string;
1872
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1872
1873
  label: string;
1873
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1874
+ id: string;
1874
1875
  capture: "at_action" | "historical_lookup" | "fixture";
1875
1876
  locator?: string | undefined;
1876
1877
  }, {
1877
- id: string;
1878
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1878
1879
  label: string;
1879
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1880
+ id: string;
1880
1881
  capture: "at_action" | "historical_lookup" | "fixture";
1881
1882
  locator?: string | undefined;
1882
1883
  }>, "many">>;
1883
1884
  }, "strict", z.ZodTypeAny, {
1884
- summary: string;
1885
1885
  kind: "mission_completed";
1886
+ summary: string;
1886
1887
  outcome: "failed" | "recovered" | "inconclusive";
1887
1888
  evidence: {
1888
- id: string;
1889
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1889
1890
  label: string;
1890
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1891
+ id: string;
1891
1892
  capture: "at_action" | "historical_lookup" | "fixture";
1892
1893
  locator?: string | undefined;
1893
1894
  }[];
1894
1895
  }, {
1895
- summary: string;
1896
1896
  kind: "mission_completed";
1897
+ summary: string;
1897
1898
  outcome: "failed" | "recovered" | "inconclusive";
1898
1899
  evidence?: {
1899
- id: string;
1900
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1900
1901
  label: string;
1901
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1902
+ id: string;
1902
1903
  capture: "at_action" | "historical_lookup" | "fixture";
1903
1904
  locator?: string | undefined;
1904
1905
  }[] | undefined;
@@ -1906,38 +1907,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1906
1907
  kind: "mission_started";
1907
1908
  title: string;
1908
1909
  evidence: {
1909
- id: string;
1910
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1910
1911
  label: string;
1911
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1912
+ id: string;
1912
1913
  capture: "at_action" | "historical_lookup" | "fixture";
1913
1914
  locator?: string | undefined;
1914
1915
  }[];
1915
1916
  objective: string;
1916
1917
  runMode: "replay" | "fixture" | "live";
1917
1918
  } | {
1918
- label: string;
1919
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1920
1919
  kind: "agent_status";
1920
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1921
+ label: string;
1921
1922
  role: string;
1922
1923
  agentId: string;
1923
1924
  sessionId: string;
1924
1925
  evidence: {
1925
- id: string;
1926
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1926
1927
  label: string;
1927
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1928
+ id: string;
1928
1929
  capture: "at_action" | "historical_lookup" | "fixture";
1929
1930
  locator?: string | undefined;
1930
1931
  }[];
1931
1932
  detail?: string | undefined;
1932
1933
  } | {
1933
- summary: string;
1934
1934
  kind: "agent_output";
1935
+ summary: string;
1935
1936
  agentId: string;
1936
1937
  sessionId: string;
1937
1938
  evidence: {
1938
- id: string;
1939
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1939
1940
  label: string;
1940
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1941
+ id: string;
1941
1942
  capture: "at_action" | "historical_lookup" | "fixture";
1942
1943
  locator?: string | undefined;
1943
1944
  }[];
@@ -1948,9 +1949,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1948
1949
  statement: string;
1949
1950
  sessionId: string;
1950
1951
  evidence: {
1951
- id: string;
1952
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1952
1953
  label: string;
1953
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1954
+ id: string;
1954
1955
  capture: "at_action" | "historical_lookup" | "fixture";
1955
1956
  locator?: string | undefined;
1956
1957
  }[];
@@ -1958,12 +1959,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1958
1959
  decisionId: string;
1959
1960
  confidence?: number | undefined;
1960
1961
  } | {
1961
- summary: string;
1962
1962
  kind: "conflict_detected";
1963
+ summary: string;
1963
1964
  evidence: {
1964
- id: string;
1965
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1965
1966
  label: string;
1966
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1967
+ id: string;
1967
1968
  capture: "at_action" | "historical_lookup" | "fixture";
1968
1969
  locator?: string | undefined;
1969
1970
  }[];
@@ -1971,14 +1972,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1971
1972
  decisionIds: string[];
1972
1973
  agentIds: string[];
1973
1974
  } | {
1975
+ kind: "test_result";
1974
1976
  summary: string;
1975
1977
  status: "error" | "failed" | "passed";
1976
- kind: "test_result";
1977
1978
  command: string;
1978
1979
  evidence: {
1979
- id: string;
1980
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1980
1981
  label: string;
1981
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1982
+ id: string;
1982
1983
  capture: "at_action" | "historical_lookup" | "fixture";
1983
1984
  locator?: string | undefined;
1984
1985
  }[];
@@ -1991,9 +1992,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1991
1992
  statement: string;
1992
1993
  rationale: string;
1993
1994
  evidence: {
1994
- id: string;
1995
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1995
1996
  label: string;
1996
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1997
+ id: string;
1997
1998
  capture: "at_action" | "historical_lookup" | "fixture";
1998
1999
  locator?: string | undefined;
1999
2000
  }[];
@@ -2005,25 +2006,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2005
2006
  } | {
2006
2007
  kind: "correction_approved";
2007
2008
  evidence: {
2008
- id: string;
2009
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2009
2010
  label: string;
2010
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2011
+ id: string;
2011
2012
  capture: "at_action" | "historical_lookup" | "fixture";
2012
2013
  locator?: string | undefined;
2013
2014
  }[];
2014
2015
  correctionId: string;
2015
2016
  approvedBy: {
2016
- id: string;
2017
- label: string;
2018
2017
  kind: "agent" | "human";
2018
+ label: string;
2019
+ id: string;
2019
2020
  };
2020
2021
  note?: string | undefined;
2021
2022
  } | {
2022
2023
  kind: "decision_superseded";
2023
2024
  evidence: {
2024
- id: string;
2025
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2025
2026
  label: string;
2026
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2027
+ id: string;
2027
2028
  capture: "at_action" | "historical_lookup" | "fixture";
2028
2029
  locator?: string | undefined;
2029
2030
  }[];
@@ -2036,9 +2037,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2036
2037
  agentId: string;
2037
2038
  sessionId: string;
2038
2039
  evidence: {
2039
- id: string;
2040
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2040
2041
  label: string;
2041
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2042
+ id: string;
2042
2043
  capture: "at_action" | "historical_lookup" | "fixture";
2043
2044
  locator?: string | undefined;
2044
2045
  }[];
@@ -2050,9 +2051,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2050
2051
  agentId: string;
2051
2052
  sessionId: string;
2052
2053
  evidence: {
2053
- id: string;
2054
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2054
2055
  label: string;
2055
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2056
+ id: string;
2056
2057
  capture: "at_action" | "historical_lookup" | "fixture";
2057
2058
  locator?: string | undefined;
2058
2059
  }[];
@@ -2061,13 +2062,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2061
2062
  recallReceiptId: string;
2062
2063
  staleDecisionAbsent: boolean;
2063
2064
  } | {
2064
- summary: string;
2065
2065
  kind: "mission_completed";
2066
+ summary: string;
2066
2067
  outcome: "failed" | "recovered" | "inconclusive";
2067
2068
  evidence: {
2068
- id: string;
2069
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2069
2070
  label: string;
2070
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2071
+ id: string;
2071
2072
  capture: "at_action" | "historical_lookup" | "fixture";
2072
2073
  locator?: string | undefined;
2073
2074
  }[];
@@ -2077,37 +2078,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2077
2078
  objective: string;
2078
2079
  runMode: "replay" | "fixture" | "live";
2079
2080
  evidence?: {
2080
- id: string;
2081
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2081
2082
  label: string;
2082
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2083
+ id: string;
2083
2084
  capture: "at_action" | "historical_lookup" | "fixture";
2084
2085
  locator?: string | undefined;
2085
2086
  }[] | undefined;
2086
2087
  } | {
2087
- label: string;
2088
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2089
2088
  kind: "agent_status";
2089
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2090
+ label: string;
2090
2091
  role: string;
2091
2092
  agentId: string;
2092
2093
  sessionId: string;
2093
2094
  detail?: string | undefined;
2094
2095
  evidence?: {
2095
- id: string;
2096
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2096
2097
  label: string;
2097
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2098
+ id: string;
2098
2099
  capture: "at_action" | "historical_lookup" | "fixture";
2099
2100
  locator?: string | undefined;
2100
2101
  }[] | undefined;
2101
2102
  } | {
2102
- summary: string;
2103
2103
  kind: "agent_output";
2104
+ summary: string;
2104
2105
  agentId: string;
2105
2106
  sessionId: string;
2106
2107
  outputId: string;
2107
2108
  evidence?: {
2108
- id: string;
2109
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2109
2110
  label: string;
2110
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2111
+ id: string;
2111
2112
  capture: "at_action" | "historical_lookup" | "fixture";
2112
2113
  locator?: string | undefined;
2113
2114
  }[] | undefined;
@@ -2120,37 +2121,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2120
2121
  decisionId: string;
2121
2122
  confidence?: number | undefined;
2122
2123
  evidence?: {
2123
- id: string;
2124
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2124
2125
  label: string;
2125
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2126
+ id: string;
2126
2127
  capture: "at_action" | "historical_lookup" | "fixture";
2127
2128
  locator?: string | undefined;
2128
2129
  }[] | undefined;
2129
2130
  } | {
2130
- summary: string;
2131
2131
  kind: "conflict_detected";
2132
+ summary: string;
2132
2133
  conflictId: string;
2133
2134
  decisionIds: string[];
2134
2135
  agentIds: string[];
2135
2136
  evidence?: {
2136
- id: string;
2137
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2137
2138
  label: string;
2138
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2139
+ id: string;
2139
2140
  capture: "at_action" | "historical_lookup" | "fixture";
2140
2141
  locator?: string | undefined;
2141
2142
  }[] | undefined;
2142
2143
  } | {
2144
+ kind: "test_result";
2143
2145
  summary: string;
2144
2146
  status: "error" | "failed" | "passed";
2145
- kind: "test_result";
2146
2147
  command: string;
2147
2148
  decisionId: string;
2148
2149
  testId: string;
2149
2150
  durationMs?: number | undefined;
2150
2151
  evidence?: {
2151
- id: string;
2152
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2152
2153
  label: string;
2153
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2154
+ id: string;
2154
2155
  capture: "at_action" | "historical_lookup" | "fixture";
2155
2156
  locator?: string | undefined;
2156
2157
  }[] | undefined;
@@ -2165,9 +2166,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2165
2166
  supersedesDecisionIds: string[];
2166
2167
  proposedBy: string;
2167
2168
  evidence?: {
2168
- id: string;
2169
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2169
2170
  label: string;
2170
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2171
+ id: string;
2171
2172
  capture: "at_action" | "historical_lookup" | "fixture";
2172
2173
  locator?: string | undefined;
2173
2174
  }[] | undefined;
@@ -2175,15 +2176,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2175
2176
  kind: "correction_approved";
2176
2177
  correctionId: string;
2177
2178
  approvedBy: {
2178
- id: string;
2179
- label: string;
2180
2179
  kind: "agent" | "human";
2180
+ label: string;
2181
+ id: string;
2181
2182
  };
2182
2183
  note?: string | undefined;
2183
2184
  evidence?: {
2184
- id: string;
2185
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2185
2186
  label: string;
2186
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2187
+ id: string;
2187
2188
  capture: "at_action" | "historical_lookup" | "fixture";
2188
2189
  locator?: string | undefined;
2189
2190
  }[] | undefined;
@@ -2193,9 +2194,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2193
2194
  correctionId: string;
2194
2195
  replacementDecisionId: string;
2195
2196
  evidence?: {
2196
- id: string;
2197
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2197
2198
  label: string;
2198
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2199
+ id: string;
2199
2200
  capture: "at_action" | "historical_lookup" | "fixture";
2200
2201
  locator?: string | undefined;
2201
2202
  }[] | undefined;
@@ -2208,9 +2209,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2208
2209
  recallReceiptId: string;
2209
2210
  capturedAtAction: boolean;
2210
2211
  evidence?: {
2211
- id: string;
2212
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2212
2213
  label: string;
2213
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2214
+ id: string;
2214
2215
  capture: "at_action" | "historical_lookup" | "fixture";
2215
2216
  locator?: string | undefined;
2216
2217
  }[] | undefined;
@@ -2223,20 +2224,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
2223
2224
  recallReceiptId: string;
2224
2225
  staleDecisionAbsent: boolean;
2225
2226
  evidence?: {
2226
- id: string;
2227
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2227
2228
  label: string;
2228
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2229
+ id: string;
2229
2230
  capture: "at_action" | "historical_lookup" | "fixture";
2230
2231
  locator?: string | undefined;
2231
2232
  }[] | undefined;
2232
2233
  } | {
2233
- summary: string;
2234
2234
  kind: "mission_completed";
2235
+ summary: string;
2235
2236
  outcome: "failed" | "recovered" | "inconclusive";
2236
2237
  evidence?: {
2237
- id: string;
2238
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2238
2239
  label: string;
2239
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2240
+ id: string;
2240
2241
  capture: "at_action" | "historical_lookup" | "fixture";
2241
2242
  locator?: string | undefined;
2242
2243
  }[] | undefined;
@@ -2257,15 +2258,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2257
2258
  locator: z.ZodOptional<z.ZodString>;
2258
2259
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2259
2260
  }, "strict", z.ZodTypeAny, {
2260
- id: string;
2261
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2261
2262
  label: string;
2262
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2263
+ id: string;
2263
2264
  capture: "at_action" | "historical_lookup" | "fixture";
2264
2265
  locator?: string | undefined;
2265
2266
  }, {
2266
- id: string;
2267
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2267
2268
  label: string;
2268
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2269
+ id: string;
2269
2270
  capture: "at_action" | "historical_lookup" | "fixture";
2270
2271
  locator?: string | undefined;
2271
2272
  }>, "many">>;
@@ -2273,9 +2274,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2273
2274
  kind: "mission_started";
2274
2275
  title: string;
2275
2276
  evidence: {
2276
- id: string;
2277
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2277
2278
  label: string;
2278
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2279
+ id: string;
2279
2280
  capture: "at_action" | "historical_lookup" | "fixture";
2280
2281
  locator?: string | undefined;
2281
2282
  }[];
@@ -2287,9 +2288,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2287
2288
  objective: string;
2288
2289
  runMode: "replay" | "fixture" | "live";
2289
2290
  evidence?: {
2290
- id: string;
2291
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2291
2292
  label: string;
2292
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2293
+ id: string;
2293
2294
  capture: "at_action" | "historical_lookup" | "fixture";
2294
2295
  locator?: string | undefined;
2295
2296
  }[] | undefined;
@@ -2305,15 +2306,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2305
2306
  locator: z.ZodOptional<z.ZodString>;
2306
2307
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2307
2308
  }, "strict", z.ZodTypeAny, {
2308
- id: string;
2309
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2309
2310
  label: string;
2310
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2311
+ id: string;
2311
2312
  capture: "at_action" | "historical_lookup" | "fixture";
2312
2313
  locator?: string | undefined;
2313
2314
  }, {
2314
- id: string;
2315
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2315
2316
  label: string;
2316
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2317
+ id: string;
2317
2318
  capture: "at_action" | "historical_lookup" | "fixture";
2318
2319
  locator?: string | undefined;
2319
2320
  }>, "many">>;
@@ -2321,32 +2322,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2321
2322
  sessionId: z.ZodString;
2322
2323
  kind: z.ZodLiteral<"agent_status">;
2323
2324
  }, "strict", z.ZodTypeAny, {
2324
- label: string;
2325
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2326
2325
  kind: "agent_status";
2326
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2327
+ label: string;
2327
2328
  role: string;
2328
2329
  agentId: string;
2329
2330
  sessionId: string;
2330
2331
  evidence: {
2331
- id: string;
2332
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2332
2333
  label: string;
2333
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2334
+ id: string;
2334
2335
  capture: "at_action" | "historical_lookup" | "fixture";
2335
2336
  locator?: string | undefined;
2336
2337
  }[];
2337
2338
  detail?: string | undefined;
2338
2339
  }, {
2339
- label: string;
2340
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2341
2340
  kind: "agent_status";
2341
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2342
+ label: string;
2342
2343
  role: string;
2343
2344
  agentId: string;
2344
2345
  sessionId: string;
2345
2346
  detail?: string | undefined;
2346
2347
  evidence?: {
2347
- id: string;
2348
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2348
2349
  label: string;
2349
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2350
+ id: string;
2350
2351
  capture: "at_action" | "historical_lookup" | "fixture";
2351
2352
  locator?: string | undefined;
2352
2353
  }[] | undefined;
@@ -2360,15 +2361,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2360
2361
  locator: z.ZodOptional<z.ZodString>;
2361
2362
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2362
2363
  }, "strict", z.ZodTypeAny, {
2363
- id: string;
2364
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2364
2365
  label: string;
2365
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2366
+ id: string;
2366
2367
  capture: "at_action" | "historical_lookup" | "fixture";
2367
2368
  locator?: string | undefined;
2368
2369
  }, {
2369
- id: string;
2370
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2370
2371
  label: string;
2371
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2372
+ id: string;
2372
2373
  capture: "at_action" | "historical_lookup" | "fixture";
2373
2374
  locator?: string | undefined;
2374
2375
  }>, "many">>;
@@ -2376,28 +2377,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2376
2377
  sessionId: z.ZodString;
2377
2378
  kind: z.ZodLiteral<"agent_output">;
2378
2379
  }, "strict", z.ZodTypeAny, {
2379
- summary: string;
2380
2380
  kind: "agent_output";
2381
+ summary: string;
2381
2382
  agentId: string;
2382
2383
  sessionId: string;
2383
2384
  evidence: {
2384
- id: string;
2385
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2385
2386
  label: string;
2386
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2387
+ id: string;
2387
2388
  capture: "at_action" | "historical_lookup" | "fixture";
2388
2389
  locator?: string | undefined;
2389
2390
  }[];
2390
2391
  outputId: string;
2391
2392
  }, {
2392
- summary: string;
2393
2393
  kind: "agent_output";
2394
+ summary: string;
2394
2395
  agentId: string;
2395
2396
  sessionId: string;
2396
2397
  outputId: string;
2397
2398
  evidence?: {
2398
- id: string;
2399
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2399
2400
  label: string;
2400
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2401
+ id: string;
2401
2402
  capture: "at_action" | "historical_lookup" | "fixture";
2402
2403
  locator?: string | undefined;
2403
2404
  }[] | undefined;
@@ -2413,15 +2414,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2413
2414
  locator: z.ZodOptional<z.ZodString>;
2414
2415
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2415
2416
  }, "strict", z.ZodTypeAny, {
2416
- id: string;
2417
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2417
2418
  label: string;
2418
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2419
+ id: string;
2419
2420
  capture: "at_action" | "historical_lookup" | "fixture";
2420
2421
  locator?: string | undefined;
2421
2422
  }, {
2422
- id: string;
2423
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2423
2424
  label: string;
2424
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2425
+ id: string;
2425
2426
  capture: "at_action" | "historical_lookup" | "fixture";
2426
2427
  locator?: string | undefined;
2427
2428
  }>, "many">>;
@@ -2434,9 +2435,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2434
2435
  statement: string;
2435
2436
  sessionId: string;
2436
2437
  evidence: {
2437
- id: string;
2438
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2438
2439
  label: string;
2439
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2440
+ id: string;
2440
2441
  capture: "at_action" | "historical_lookup" | "fixture";
2441
2442
  locator?: string | undefined;
2442
2443
  }[];
@@ -2452,9 +2453,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2452
2453
  decisionId: string;
2453
2454
  confidence?: number | undefined;
2454
2455
  evidence?: {
2455
- id: string;
2456
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2456
2457
  label: string;
2457
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2458
+ id: string;
2458
2459
  capture: "at_action" | "historical_lookup" | "fixture";
2459
2460
  locator?: string | undefined;
2460
2461
  }[] | undefined;
@@ -2471,25 +2472,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2471
2472
  locator: z.ZodOptional<z.ZodString>;
2472
2473
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2473
2474
  }, "strict", z.ZodTypeAny, {
2474
- id: string;
2475
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2475
2476
  label: string;
2476
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2477
+ id: string;
2477
2478
  capture: "at_action" | "historical_lookup" | "fixture";
2478
2479
  locator?: string | undefined;
2479
2480
  }, {
2480
- id: string;
2481
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2481
2482
  label: string;
2482
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2483
+ id: string;
2483
2484
  capture: "at_action" | "historical_lookup" | "fixture";
2484
2485
  locator?: string | undefined;
2485
2486
  }>, "many">>;
2486
2487
  }, "strict", z.ZodTypeAny, {
2487
- summary: string;
2488
2488
  kind: "conflict_detected";
2489
+ summary: string;
2489
2490
  evidence: {
2490
- id: string;
2491
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2491
2492
  label: string;
2492
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2493
+ id: string;
2493
2494
  capture: "at_action" | "historical_lookup" | "fixture";
2494
2495
  locator?: string | undefined;
2495
2496
  }[];
@@ -2497,15 +2498,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2497
2498
  decisionIds: string[];
2498
2499
  agentIds: string[];
2499
2500
  }, {
2500
- summary: string;
2501
2501
  kind: "conflict_detected";
2502
+ summary: string;
2502
2503
  conflictId: string;
2503
2504
  decisionIds: string[];
2504
2505
  agentIds: string[];
2505
2506
  evidence?: {
2506
- id: string;
2507
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2507
2508
  label: string;
2508
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2509
+ id: string;
2509
2510
  capture: "at_action" | "historical_lookup" | "fixture";
2510
2511
  locator?: string | undefined;
2511
2512
  }[] | undefined;
@@ -2525,27 +2526,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2525
2526
  locator: z.ZodOptional<z.ZodString>;
2526
2527
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2527
2528
  }, "strict", z.ZodTypeAny, {
2528
- id: string;
2529
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2529
2530
  label: string;
2530
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2531
+ id: string;
2531
2532
  capture: "at_action" | "historical_lookup" | "fixture";
2532
2533
  locator?: string | undefined;
2533
2534
  }, {
2534
- id: string;
2535
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2535
2536
  label: string;
2536
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2537
+ id: string;
2537
2538
  capture: "at_action" | "historical_lookup" | "fixture";
2538
2539
  locator?: string | undefined;
2539
2540
  }>, "many">>;
2540
2541
  }, "strict", z.ZodTypeAny, {
2542
+ kind: "test_result";
2541
2543
  summary: string;
2542
2544
  status: "error" | "failed" | "passed";
2543
- kind: "test_result";
2544
2545
  command: string;
2545
2546
  evidence: {
2546
- id: string;
2547
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2547
2548
  label: string;
2548
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2549
+ id: string;
2549
2550
  capture: "at_action" | "historical_lookup" | "fixture";
2550
2551
  locator?: string | undefined;
2551
2552
  }[];
@@ -2554,17 +2555,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2554
2555
  durationMs?: number | undefined;
2555
2556
  correctionId?: string | undefined;
2556
2557
  }, {
2558
+ kind: "test_result";
2557
2559
  summary: string;
2558
2560
  status: "error" | "failed" | "passed";
2559
- kind: "test_result";
2560
2561
  command: string;
2561
2562
  decisionId: string;
2562
2563
  testId: string;
2563
2564
  durationMs?: number | undefined;
2564
2565
  evidence?: {
2565
- id: string;
2566
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2566
2567
  label: string;
2567
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2568
+ id: string;
2568
2569
  capture: "at_action" | "historical_lookup" | "fixture";
2569
2570
  locator?: string | undefined;
2570
2571
  }[] | undefined;
@@ -2585,15 +2586,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2585
2586
  locator: z.ZodOptional<z.ZodString>;
2586
2587
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2587
2588
  }, "strict", z.ZodTypeAny, {
2588
- id: string;
2589
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2589
2590
  label: string;
2590
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2591
+ id: string;
2591
2592
  capture: "at_action" | "historical_lookup" | "fixture";
2592
2593
  locator?: string | undefined;
2593
2594
  }, {
2594
- id: string;
2595
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2595
2596
  label: string;
2596
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2597
+ id: string;
2597
2598
  capture: "at_action" | "historical_lookup" | "fixture";
2598
2599
  locator?: string | undefined;
2599
2600
  }>, "many">>;
@@ -2602,9 +2603,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2602
2603
  statement: string;
2603
2604
  rationale: string;
2604
2605
  evidence: {
2605
- id: string;
2606
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2606
2607
  label: string;
2607
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2608
+ id: string;
2608
2609
  capture: "at_action" | "historical_lookup" | "fixture";
2609
2610
  locator?: string | undefined;
2610
2611
  }[];
@@ -2623,9 +2624,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2623
2624
  supersedesDecisionIds: string[];
2624
2625
  proposedBy: string;
2625
2626
  evidence?: {
2626
- id: string;
2627
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2627
2628
  label: string;
2628
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2629
+ id: string;
2629
2630
  capture: "at_action" | "historical_lookup" | "fixture";
2630
2631
  locator?: string | undefined;
2631
2632
  }[] | undefined;
@@ -2637,13 +2638,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2637
2638
  id: z.ZodString;
2638
2639
  label: z.ZodString;
2639
2640
  }, "strict", z.ZodTypeAny, {
2640
- id: string;
2641
- label: string;
2642
2641
  kind: "agent" | "human";
2643
- }, {
2644
- id: string;
2645
2642
  label: string;
2643
+ id: string;
2644
+ }, {
2646
2645
  kind: "agent" | "human";
2646
+ label: string;
2647
+ id: string;
2647
2648
  }>;
2648
2649
  note: z.ZodOptional<z.ZodString>;
2649
2650
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2653,47 +2654,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2653
2654
  locator: z.ZodOptional<z.ZodString>;
2654
2655
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2655
2656
  }, "strict", z.ZodTypeAny, {
2656
- id: string;
2657
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2657
2658
  label: string;
2658
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2659
+ id: string;
2659
2660
  capture: "at_action" | "historical_lookup" | "fixture";
2660
2661
  locator?: string | undefined;
2661
2662
  }, {
2662
- id: string;
2663
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2663
2664
  label: string;
2664
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2665
+ id: string;
2665
2666
  capture: "at_action" | "historical_lookup" | "fixture";
2666
2667
  locator?: string | undefined;
2667
2668
  }>, "many">>;
2668
2669
  }, "strict", z.ZodTypeAny, {
2669
2670
  kind: "correction_approved";
2670
2671
  evidence: {
2671
- id: string;
2672
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2672
2673
  label: string;
2673
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2674
+ id: string;
2674
2675
  capture: "at_action" | "historical_lookup" | "fixture";
2675
2676
  locator?: string | undefined;
2676
2677
  }[];
2677
2678
  correctionId: string;
2678
2679
  approvedBy: {
2679
- id: string;
2680
- label: string;
2681
2680
  kind: "agent" | "human";
2681
+ label: string;
2682
+ id: string;
2682
2683
  };
2683
2684
  note?: string | undefined;
2684
2685
  }, {
2685
2686
  kind: "correction_approved";
2686
2687
  correctionId: string;
2687
2688
  approvedBy: {
2688
- id: string;
2689
- label: string;
2690
2689
  kind: "agent" | "human";
2690
+ label: string;
2691
+ id: string;
2691
2692
  };
2692
2693
  note?: string | undefined;
2693
2694
  evidence?: {
2694
- id: string;
2695
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2695
2696
  label: string;
2696
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2697
+ id: string;
2697
2698
  capture: "at_action" | "historical_lookup" | "fixture";
2698
2699
  locator?: string | undefined;
2699
2700
  }[] | undefined;
@@ -2709,24 +2710,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2709
2710
  locator: z.ZodOptional<z.ZodString>;
2710
2711
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2711
2712
  }, "strict", z.ZodTypeAny, {
2712
- id: string;
2713
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2713
2714
  label: string;
2714
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2715
+ id: string;
2715
2716
  capture: "at_action" | "historical_lookup" | "fixture";
2716
2717
  locator?: string | undefined;
2717
2718
  }, {
2718
- id: string;
2719
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2719
2720
  label: string;
2720
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2721
+ id: string;
2721
2722
  capture: "at_action" | "historical_lookup" | "fixture";
2722
2723
  locator?: string | undefined;
2723
2724
  }>, "many">>;
2724
2725
  }, "strict", z.ZodTypeAny, {
2725
2726
  kind: "decision_superseded";
2726
2727
  evidence: {
2727
- id: string;
2728
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2728
2729
  label: string;
2729
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2730
+ id: string;
2730
2731
  capture: "at_action" | "historical_lookup" | "fixture";
2731
2732
  locator?: string | undefined;
2732
2733
  }[];
@@ -2739,9 +2740,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2739
2740
  correctionId: string;
2740
2741
  replacementDecisionId: string;
2741
2742
  evidence?: {
2742
- id: string;
2743
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2743
2744
  label: string;
2744
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2745
+ id: string;
2745
2746
  capture: "at_action" | "historical_lookup" | "fixture";
2746
2747
  locator?: string | undefined;
2747
2748
  }[] | undefined;
@@ -2757,15 +2758,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2757
2758
  locator: z.ZodOptional<z.ZodString>;
2758
2759
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2759
2760
  }, "strict", z.ZodTypeAny, {
2760
- id: string;
2761
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2761
2762
  label: string;
2762
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2763
+ id: string;
2763
2764
  capture: "at_action" | "historical_lookup" | "fixture";
2764
2765
  locator?: string | undefined;
2765
2766
  }, {
2766
- id: string;
2767
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2767
2768
  label: string;
2768
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2769
+ id: string;
2769
2770
  capture: "at_action" | "historical_lookup" | "fixture";
2770
2771
  locator?: string | undefined;
2771
2772
  }>, "many">>;
@@ -2778,9 +2779,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2778
2779
  agentId: string;
2779
2780
  sessionId: string;
2780
2781
  evidence: {
2781
- id: string;
2782
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2782
2783
  label: string;
2783
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2784
+ id: string;
2784
2785
  capture: "at_action" | "historical_lookup" | "fixture";
2785
2786
  locator?: string | undefined;
2786
2787
  }[];
@@ -2796,9 +2797,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2796
2797
  recallReceiptId: string;
2797
2798
  capturedAtAction: boolean;
2798
2799
  evidence?: {
2799
- id: string;
2800
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2800
2801
  label: string;
2801
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2802
+ id: string;
2802
2803
  capture: "at_action" | "historical_lookup" | "fixture";
2803
2804
  locator?: string | undefined;
2804
2805
  }[] | undefined;
@@ -2814,15 +2815,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2814
2815
  locator: z.ZodOptional<z.ZodString>;
2815
2816
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2816
2817
  }, "strict", z.ZodTypeAny, {
2817
- id: string;
2818
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2818
2819
  label: string;
2819
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2820
+ id: string;
2820
2821
  capture: "at_action" | "historical_lookup" | "fixture";
2821
2822
  locator?: string | undefined;
2822
2823
  }, {
2823
- id: string;
2824
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2824
2825
  label: string;
2825
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2826
+ id: string;
2826
2827
  capture: "at_action" | "historical_lookup" | "fixture";
2827
2828
  locator?: string | undefined;
2828
2829
  }>, "many">>;
@@ -2834,9 +2835,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2834
2835
  agentId: string;
2835
2836
  sessionId: string;
2836
2837
  evidence: {
2837
- id: string;
2838
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2838
2839
  label: string;
2839
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2840
+ id: string;
2840
2841
  capture: "at_action" | "historical_lookup" | "fixture";
2841
2842
  locator?: string | undefined;
2842
2843
  }[];
@@ -2853,9 +2854,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2853
2854
  recallReceiptId: string;
2854
2855
  staleDecisionAbsent: boolean;
2855
2856
  evidence?: {
2856
- id: string;
2857
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2857
2858
  label: string;
2858
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2859
+ id: string;
2859
2860
  capture: "at_action" | "historical_lookup" | "fixture";
2860
2861
  locator?: string | undefined;
2861
2862
  }[] | undefined;
@@ -2870,37 +2871,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2870
2871
  locator: z.ZodOptional<z.ZodString>;
2871
2872
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2872
2873
  }, "strict", z.ZodTypeAny, {
2873
- id: string;
2874
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2874
2875
  label: string;
2875
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2876
+ id: string;
2876
2877
  capture: "at_action" | "historical_lookup" | "fixture";
2877
2878
  locator?: string | undefined;
2878
2879
  }, {
2879
- id: string;
2880
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2880
2881
  label: string;
2881
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2882
+ id: string;
2882
2883
  capture: "at_action" | "historical_lookup" | "fixture";
2883
2884
  locator?: string | undefined;
2884
2885
  }>, "many">>;
2885
2886
  }, "strict", z.ZodTypeAny, {
2886
- summary: string;
2887
2887
  kind: "mission_completed";
2888
+ summary: string;
2888
2889
  outcome: "failed" | "recovered" | "inconclusive";
2889
2890
  evidence: {
2890
- id: string;
2891
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2891
2892
  label: string;
2892
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2893
+ id: string;
2893
2894
  capture: "at_action" | "historical_lookup" | "fixture";
2894
2895
  locator?: string | undefined;
2895
2896
  }[];
2896
2897
  }, {
2897
- summary: string;
2898
2898
  kind: "mission_completed";
2899
+ summary: string;
2899
2900
  outcome: "failed" | "recovered" | "inconclusive";
2900
2901
  evidence?: {
2901
- id: string;
2902
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2902
2903
  label: string;
2903
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2904
+ id: string;
2904
2905
  capture: "at_action" | "historical_lookup" | "fixture";
2905
2906
  locator?: string | undefined;
2906
2907
  }[] | undefined;
@@ -2908,38 +2909,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2908
2909
  kind: "mission_started";
2909
2910
  title: string;
2910
2911
  evidence: {
2911
- id: string;
2912
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2912
2913
  label: string;
2913
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2914
+ id: string;
2914
2915
  capture: "at_action" | "historical_lookup" | "fixture";
2915
2916
  locator?: string | undefined;
2916
2917
  }[];
2917
2918
  objective: string;
2918
2919
  runMode: "replay" | "fixture" | "live";
2919
2920
  } | {
2920
- label: string;
2921
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2922
2921
  kind: "agent_status";
2922
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2923
+ label: string;
2923
2924
  role: string;
2924
2925
  agentId: string;
2925
2926
  sessionId: string;
2926
2927
  evidence: {
2927
- id: string;
2928
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2928
2929
  label: string;
2929
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2930
+ id: string;
2930
2931
  capture: "at_action" | "historical_lookup" | "fixture";
2931
2932
  locator?: string | undefined;
2932
2933
  }[];
2933
2934
  detail?: string | undefined;
2934
2935
  } | {
2935
- summary: string;
2936
2936
  kind: "agent_output";
2937
+ summary: string;
2937
2938
  agentId: string;
2938
2939
  sessionId: string;
2939
2940
  evidence: {
2940
- id: string;
2941
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2941
2942
  label: string;
2942
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2943
+ id: string;
2943
2944
  capture: "at_action" | "historical_lookup" | "fixture";
2944
2945
  locator?: string | undefined;
2945
2946
  }[];
@@ -2950,9 +2951,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2950
2951
  statement: string;
2951
2952
  sessionId: string;
2952
2953
  evidence: {
2953
- id: string;
2954
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2954
2955
  label: string;
2955
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2956
+ id: string;
2956
2957
  capture: "at_action" | "historical_lookup" | "fixture";
2957
2958
  locator?: string | undefined;
2958
2959
  }[];
@@ -2960,12 +2961,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2960
2961
  decisionId: string;
2961
2962
  confidence?: number | undefined;
2962
2963
  } | {
2963
- summary: string;
2964
2964
  kind: "conflict_detected";
2965
+ summary: string;
2965
2966
  evidence: {
2966
- id: string;
2967
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2967
2968
  label: string;
2968
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2969
+ id: string;
2969
2970
  capture: "at_action" | "historical_lookup" | "fixture";
2970
2971
  locator?: string | undefined;
2971
2972
  }[];
@@ -2973,14 +2974,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2973
2974
  decisionIds: string[];
2974
2975
  agentIds: string[];
2975
2976
  } | {
2977
+ kind: "test_result";
2976
2978
  summary: string;
2977
2979
  status: "error" | "failed" | "passed";
2978
- kind: "test_result";
2979
2980
  command: string;
2980
2981
  evidence: {
2981
- id: string;
2982
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2982
2983
  label: string;
2983
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2984
+ id: string;
2984
2985
  capture: "at_action" | "historical_lookup" | "fixture";
2985
2986
  locator?: string | undefined;
2986
2987
  }[];
@@ -2993,9 +2994,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2993
2994
  statement: string;
2994
2995
  rationale: string;
2995
2996
  evidence: {
2996
- id: string;
2997
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2997
2998
  label: string;
2998
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2999
+ id: string;
2999
3000
  capture: "at_action" | "historical_lookup" | "fixture";
3000
3001
  locator?: string | undefined;
3001
3002
  }[];
@@ -3007,25 +3008,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3007
3008
  } | {
3008
3009
  kind: "correction_approved";
3009
3010
  evidence: {
3010
- id: string;
3011
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3011
3012
  label: string;
3012
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3013
+ id: string;
3013
3014
  capture: "at_action" | "historical_lookup" | "fixture";
3014
3015
  locator?: string | undefined;
3015
3016
  }[];
3016
3017
  correctionId: string;
3017
3018
  approvedBy: {
3018
- id: string;
3019
- label: string;
3020
3019
  kind: "agent" | "human";
3020
+ label: string;
3021
+ id: string;
3021
3022
  };
3022
3023
  note?: string | undefined;
3023
3024
  } | {
3024
3025
  kind: "decision_superseded";
3025
3026
  evidence: {
3026
- id: string;
3027
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3027
3028
  label: string;
3028
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3029
+ id: string;
3029
3030
  capture: "at_action" | "historical_lookup" | "fixture";
3030
3031
  locator?: string | undefined;
3031
3032
  }[];
@@ -3038,9 +3039,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3038
3039
  agentId: string;
3039
3040
  sessionId: string;
3040
3041
  evidence: {
3041
- id: string;
3042
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3042
3043
  label: string;
3043
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3044
+ id: string;
3044
3045
  capture: "at_action" | "historical_lookup" | "fixture";
3045
3046
  locator?: string | undefined;
3046
3047
  }[];
@@ -3052,9 +3053,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3052
3053
  agentId: string;
3053
3054
  sessionId: string;
3054
3055
  evidence: {
3055
- id: string;
3056
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3056
3057
  label: string;
3057
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3058
+ id: string;
3058
3059
  capture: "at_action" | "historical_lookup" | "fixture";
3059
3060
  locator?: string | undefined;
3060
3061
  }[];
@@ -3063,13 +3064,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3063
3064
  recallReceiptId: string;
3064
3065
  staleDecisionAbsent: boolean;
3065
3066
  } | {
3066
- summary: string;
3067
3067
  kind: "mission_completed";
3068
+ summary: string;
3068
3069
  outcome: "failed" | "recovered" | "inconclusive";
3069
3070
  evidence: {
3070
- id: string;
3071
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3071
3072
  label: string;
3072
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3073
+ id: string;
3073
3074
  capture: "at_action" | "historical_lookup" | "fixture";
3074
3075
  locator?: string | undefined;
3075
3076
  }[];
@@ -3079,37 +3080,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3079
3080
  objective: string;
3080
3081
  runMode: "replay" | "fixture" | "live";
3081
3082
  evidence?: {
3082
- id: string;
3083
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3083
3084
  label: string;
3084
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3085
+ id: string;
3085
3086
  capture: "at_action" | "historical_lookup" | "fixture";
3086
3087
  locator?: string | undefined;
3087
3088
  }[] | undefined;
3088
3089
  } | {
3089
- label: string;
3090
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3091
3090
  kind: "agent_status";
3091
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3092
+ label: string;
3092
3093
  role: string;
3093
3094
  agentId: string;
3094
3095
  sessionId: string;
3095
3096
  detail?: string | undefined;
3096
3097
  evidence?: {
3097
- id: string;
3098
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3098
3099
  label: string;
3099
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3100
+ id: string;
3100
3101
  capture: "at_action" | "historical_lookup" | "fixture";
3101
3102
  locator?: string | undefined;
3102
3103
  }[] | undefined;
3103
3104
  } | {
3104
- summary: string;
3105
3105
  kind: "agent_output";
3106
+ summary: string;
3106
3107
  agentId: string;
3107
3108
  sessionId: string;
3108
3109
  outputId: string;
3109
3110
  evidence?: {
3110
- id: string;
3111
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3111
3112
  label: string;
3112
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3113
+ id: string;
3113
3114
  capture: "at_action" | "historical_lookup" | "fixture";
3114
3115
  locator?: string | undefined;
3115
3116
  }[] | undefined;
@@ -3122,37 +3123,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3122
3123
  decisionId: string;
3123
3124
  confidence?: number | undefined;
3124
3125
  evidence?: {
3125
- id: string;
3126
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3126
3127
  label: string;
3127
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3128
+ id: string;
3128
3129
  capture: "at_action" | "historical_lookup" | "fixture";
3129
3130
  locator?: string | undefined;
3130
3131
  }[] | undefined;
3131
3132
  } | {
3132
- summary: string;
3133
3133
  kind: "conflict_detected";
3134
+ summary: string;
3134
3135
  conflictId: string;
3135
3136
  decisionIds: string[];
3136
3137
  agentIds: string[];
3137
3138
  evidence?: {
3138
- id: string;
3139
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3139
3140
  label: string;
3140
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3141
+ id: string;
3141
3142
  capture: "at_action" | "historical_lookup" | "fixture";
3142
3143
  locator?: string | undefined;
3143
3144
  }[] | undefined;
3144
3145
  } | {
3146
+ kind: "test_result";
3145
3147
  summary: string;
3146
3148
  status: "error" | "failed" | "passed";
3147
- kind: "test_result";
3148
3149
  command: string;
3149
3150
  decisionId: string;
3150
3151
  testId: string;
3151
3152
  durationMs?: number | undefined;
3152
3153
  evidence?: {
3153
- id: string;
3154
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3154
3155
  label: string;
3155
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3156
+ id: string;
3156
3157
  capture: "at_action" | "historical_lookup" | "fixture";
3157
3158
  locator?: string | undefined;
3158
3159
  }[] | undefined;
@@ -3167,9 +3168,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3167
3168
  supersedesDecisionIds: string[];
3168
3169
  proposedBy: string;
3169
3170
  evidence?: {
3170
- id: string;
3171
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3171
3172
  label: string;
3172
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3173
+ id: string;
3173
3174
  capture: "at_action" | "historical_lookup" | "fixture";
3174
3175
  locator?: string | undefined;
3175
3176
  }[] | undefined;
@@ -3177,15 +3178,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3177
3178
  kind: "correction_approved";
3178
3179
  correctionId: string;
3179
3180
  approvedBy: {
3180
- id: string;
3181
- label: string;
3182
3181
  kind: "agent" | "human";
3182
+ label: string;
3183
+ id: string;
3183
3184
  };
3184
3185
  note?: string | undefined;
3185
3186
  evidence?: {
3186
- id: string;
3187
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3187
3188
  label: string;
3188
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3189
+ id: string;
3189
3190
  capture: "at_action" | "historical_lookup" | "fixture";
3190
3191
  locator?: string | undefined;
3191
3192
  }[] | undefined;
@@ -3195,9 +3196,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3195
3196
  correctionId: string;
3196
3197
  replacementDecisionId: string;
3197
3198
  evidence?: {
3198
- id: string;
3199
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3199
3200
  label: string;
3200
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3201
+ id: string;
3201
3202
  capture: "at_action" | "historical_lookup" | "fixture";
3202
3203
  locator?: string | undefined;
3203
3204
  }[] | undefined;
@@ -3210,9 +3211,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3210
3211
  recallReceiptId: string;
3211
3212
  capturedAtAction: boolean;
3212
3213
  evidence?: {
3213
- id: string;
3214
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3214
3215
  label: string;
3215
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3216
+ id: string;
3216
3217
  capture: "at_action" | "historical_lookup" | "fixture";
3217
3218
  locator?: string | undefined;
3218
3219
  }[] | undefined;
@@ -3225,20 +3226,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3225
3226
  recallReceiptId: string;
3226
3227
  staleDecisionAbsent: boolean;
3227
3228
  evidence?: {
3228
- id: string;
3229
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3229
3230
  label: string;
3230
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3231
+ id: string;
3231
3232
  capture: "at_action" | "historical_lookup" | "fixture";
3232
3233
  locator?: string | undefined;
3233
3234
  }[] | undefined;
3234
3235
  } | {
3235
- summary: string;
3236
3236
  kind: "mission_completed";
3237
+ summary: string;
3237
3238
  outcome: "failed" | "recovered" | "inconclusive";
3238
3239
  evidence?: {
3239
- id: string;
3240
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3240
3241
  label: string;
3241
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3242
+ id: string;
3242
3243
  capture: "at_action" | "historical_lookup" | "fixture";
3243
3244
  locator?: string | undefined;
3244
3245
  }[] | undefined;
@@ -3248,38 +3249,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3248
3249
  kind: "mission_started";
3249
3250
  title: string;
3250
3251
  evidence: {
3251
- id: string;
3252
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3252
3253
  label: string;
3253
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3254
+ id: string;
3254
3255
  capture: "at_action" | "historical_lookup" | "fixture";
3255
3256
  locator?: string | undefined;
3256
3257
  }[];
3257
3258
  objective: string;
3258
3259
  runMode: "replay" | "fixture" | "live";
3259
3260
  } | {
3260
- label: string;
3261
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3262
3261
  kind: "agent_status";
3262
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3263
+ label: string;
3263
3264
  role: string;
3264
3265
  agentId: string;
3265
3266
  sessionId: string;
3266
3267
  evidence: {
3267
- id: string;
3268
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3268
3269
  label: string;
3269
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3270
+ id: string;
3270
3271
  capture: "at_action" | "historical_lookup" | "fixture";
3271
3272
  locator?: string | undefined;
3272
3273
  }[];
3273
3274
  detail?: string | undefined;
3274
3275
  } | {
3275
- summary: string;
3276
3276
  kind: "agent_output";
3277
+ summary: string;
3277
3278
  agentId: string;
3278
3279
  sessionId: string;
3279
3280
  evidence: {
3280
- id: string;
3281
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3281
3282
  label: string;
3282
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3283
+ id: string;
3283
3284
  capture: "at_action" | "historical_lookup" | "fixture";
3284
3285
  locator?: string | undefined;
3285
3286
  }[];
@@ -3290,9 +3291,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3290
3291
  statement: string;
3291
3292
  sessionId: string;
3292
3293
  evidence: {
3293
- id: string;
3294
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3294
3295
  label: string;
3295
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3296
+ id: string;
3296
3297
  capture: "at_action" | "historical_lookup" | "fixture";
3297
3298
  locator?: string | undefined;
3298
3299
  }[];
@@ -3300,12 +3301,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3300
3301
  decisionId: string;
3301
3302
  confidence?: number | undefined;
3302
3303
  } | {
3303
- summary: string;
3304
3304
  kind: "conflict_detected";
3305
+ summary: string;
3305
3306
  evidence: {
3306
- id: string;
3307
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3307
3308
  label: string;
3308
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3309
+ id: string;
3309
3310
  capture: "at_action" | "historical_lookup" | "fixture";
3310
3311
  locator?: string | undefined;
3311
3312
  }[];
@@ -3313,14 +3314,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3313
3314
  decisionIds: string[];
3314
3315
  agentIds: string[];
3315
3316
  } | {
3317
+ kind: "test_result";
3316
3318
  summary: string;
3317
3319
  status: "error" | "failed" | "passed";
3318
- kind: "test_result";
3319
3320
  command: string;
3320
3321
  evidence: {
3321
- id: string;
3322
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3322
3323
  label: string;
3323
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3324
+ id: string;
3324
3325
  capture: "at_action" | "historical_lookup" | "fixture";
3325
3326
  locator?: string | undefined;
3326
3327
  }[];
@@ -3333,9 +3334,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3333
3334
  statement: string;
3334
3335
  rationale: string;
3335
3336
  evidence: {
3336
- id: string;
3337
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3337
3338
  label: string;
3338
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3339
+ id: string;
3339
3340
  capture: "at_action" | "historical_lookup" | "fixture";
3340
3341
  locator?: string | undefined;
3341
3342
  }[];
@@ -3347,25 +3348,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3347
3348
  } | {
3348
3349
  kind: "correction_approved";
3349
3350
  evidence: {
3350
- id: string;
3351
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3351
3352
  label: string;
3352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3353
+ id: string;
3353
3354
  capture: "at_action" | "historical_lookup" | "fixture";
3354
3355
  locator?: string | undefined;
3355
3356
  }[];
3356
3357
  correctionId: string;
3357
3358
  approvedBy: {
3358
- id: string;
3359
- label: string;
3360
3359
  kind: "agent" | "human";
3360
+ label: string;
3361
+ id: string;
3361
3362
  };
3362
3363
  note?: string | undefined;
3363
3364
  } | {
3364
3365
  kind: "decision_superseded";
3365
3366
  evidence: {
3366
- id: string;
3367
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3367
3368
  label: string;
3368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3369
+ id: string;
3369
3370
  capture: "at_action" | "historical_lookup" | "fixture";
3370
3371
  locator?: string | undefined;
3371
3372
  }[];
@@ -3378,9 +3379,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3378
3379
  agentId: string;
3379
3380
  sessionId: string;
3380
3381
  evidence: {
3381
- id: string;
3382
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3382
3383
  label: string;
3383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3384
+ id: string;
3384
3385
  capture: "at_action" | "historical_lookup" | "fixture";
3385
3386
  locator?: string | undefined;
3386
3387
  }[];
@@ -3392,9 +3393,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3392
3393
  agentId: string;
3393
3394
  sessionId: string;
3394
3395
  evidence: {
3395
- id: string;
3396
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3396
3397
  label: string;
3397
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3398
+ id: string;
3398
3399
  capture: "at_action" | "historical_lookup" | "fixture";
3399
3400
  locator?: string | undefined;
3400
3401
  }[];
@@ -3403,13 +3404,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3403
3404
  recallReceiptId: string;
3404
3405
  staleDecisionAbsent: boolean;
3405
3406
  } | {
3406
- summary: string;
3407
3407
  kind: "mission_completed";
3408
+ summary: string;
3408
3409
  outcome: "failed" | "recovered" | "inconclusive";
3409
3410
  evidence: {
3410
- id: string;
3411
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3411
3412
  label: string;
3412
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3413
+ id: string;
3413
3414
  capture: "at_action" | "historical_lookup" | "fixture";
3414
3415
  locator?: string | undefined;
3415
3416
  }[];
@@ -3423,37 +3424,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3423
3424
  objective: string;
3424
3425
  runMode: "replay" | "fixture" | "live";
3425
3426
  evidence?: {
3426
- id: string;
3427
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3427
3428
  label: string;
3428
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3429
+ id: string;
3429
3430
  capture: "at_action" | "historical_lookup" | "fixture";
3430
3431
  locator?: string | undefined;
3431
3432
  }[] | undefined;
3432
3433
  } | {
3433
- label: string;
3434
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3435
3434
  kind: "agent_status";
3435
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3436
+ label: string;
3436
3437
  role: string;
3437
3438
  agentId: string;
3438
3439
  sessionId: string;
3439
3440
  detail?: string | undefined;
3440
3441
  evidence?: {
3441
- id: string;
3442
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3442
3443
  label: string;
3443
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3444
+ id: string;
3444
3445
  capture: "at_action" | "historical_lookup" | "fixture";
3445
3446
  locator?: string | undefined;
3446
3447
  }[] | undefined;
3447
3448
  } | {
3448
- summary: string;
3449
3449
  kind: "agent_output";
3450
+ summary: string;
3450
3451
  agentId: string;
3451
3452
  sessionId: string;
3452
3453
  outputId: string;
3453
3454
  evidence?: {
3454
- id: string;
3455
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3455
3456
  label: string;
3456
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3457
+ id: string;
3457
3458
  capture: "at_action" | "historical_lookup" | "fixture";
3458
3459
  locator?: string | undefined;
3459
3460
  }[] | undefined;
@@ -3466,37 +3467,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3466
3467
  decisionId: string;
3467
3468
  confidence?: number | undefined;
3468
3469
  evidence?: {
3469
- id: string;
3470
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3470
3471
  label: string;
3471
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3472
+ id: string;
3472
3473
  capture: "at_action" | "historical_lookup" | "fixture";
3473
3474
  locator?: string | undefined;
3474
3475
  }[] | undefined;
3475
3476
  } | {
3476
- summary: string;
3477
3477
  kind: "conflict_detected";
3478
+ summary: string;
3478
3479
  conflictId: string;
3479
3480
  decisionIds: string[];
3480
3481
  agentIds: string[];
3481
3482
  evidence?: {
3482
- id: string;
3483
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3483
3484
  label: string;
3484
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3485
+ id: string;
3485
3486
  capture: "at_action" | "historical_lookup" | "fixture";
3486
3487
  locator?: string | undefined;
3487
3488
  }[] | undefined;
3488
3489
  } | {
3490
+ kind: "test_result";
3489
3491
  summary: string;
3490
3492
  status: "error" | "failed" | "passed";
3491
- kind: "test_result";
3492
3493
  command: string;
3493
3494
  decisionId: string;
3494
3495
  testId: string;
3495
3496
  durationMs?: number | undefined;
3496
3497
  evidence?: {
3497
- id: string;
3498
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3498
3499
  label: string;
3499
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3500
+ id: string;
3500
3501
  capture: "at_action" | "historical_lookup" | "fixture";
3501
3502
  locator?: string | undefined;
3502
3503
  }[] | undefined;
@@ -3511,9 +3512,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3511
3512
  supersedesDecisionIds: string[];
3512
3513
  proposedBy: string;
3513
3514
  evidence?: {
3514
- id: string;
3515
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3515
3516
  label: string;
3516
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3517
+ id: string;
3517
3518
  capture: "at_action" | "historical_lookup" | "fixture";
3518
3519
  locator?: string | undefined;
3519
3520
  }[] | undefined;
@@ -3521,15 +3522,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3521
3522
  kind: "correction_approved";
3522
3523
  correctionId: string;
3523
3524
  approvedBy: {
3524
- id: string;
3525
- label: string;
3526
3525
  kind: "agent" | "human";
3526
+ label: string;
3527
+ id: string;
3527
3528
  };
3528
3529
  note?: string | undefined;
3529
3530
  evidence?: {
3530
- id: string;
3531
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3531
3532
  label: string;
3532
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3533
+ id: string;
3533
3534
  capture: "at_action" | "historical_lookup" | "fixture";
3534
3535
  locator?: string | undefined;
3535
3536
  }[] | undefined;
@@ -3539,9 +3540,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3539
3540
  correctionId: string;
3540
3541
  replacementDecisionId: string;
3541
3542
  evidence?: {
3542
- id: string;
3543
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3543
3544
  label: string;
3544
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3545
+ id: string;
3545
3546
  capture: "at_action" | "historical_lookup" | "fixture";
3546
3547
  locator?: string | undefined;
3547
3548
  }[] | undefined;
@@ -3554,9 +3555,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3554
3555
  recallReceiptId: string;
3555
3556
  capturedAtAction: boolean;
3556
3557
  evidence?: {
3557
- id: string;
3558
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3558
3559
  label: string;
3559
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3560
+ id: string;
3560
3561
  capture: "at_action" | "historical_lookup" | "fixture";
3561
3562
  locator?: string | undefined;
3562
3563
  }[] | undefined;
@@ -3569,20 +3570,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3569
3570
  recallReceiptId: string;
3570
3571
  staleDecisionAbsent: boolean;
3571
3572
  evidence?: {
3572
- id: string;
3573
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3573
3574
  label: string;
3574
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3575
+ id: string;
3575
3576
  capture: "at_action" | "historical_lookup" | "fixture";
3576
3577
  locator?: string | undefined;
3577
3578
  }[] | undefined;
3578
3579
  } | {
3579
- summary: string;
3580
3580
  kind: "mission_completed";
3581
+ summary: string;
3581
3582
  outcome: "failed" | "recovered" | "inconclusive";
3582
3583
  evidence?: {
3583
- id: string;
3584
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3584
3585
  label: string;
3585
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3586
+ id: string;
3586
3587
  capture: "at_action" | "historical_lookup" | "fixture";
3587
3588
  locator?: string | undefined;
3588
3589
  }[] | undefined;
@@ -3612,15 +3613,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3612
3613
  locator: z.ZodOptional<z.ZodString>;
3613
3614
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3614
3615
  }, "strict", z.ZodTypeAny, {
3615
- id: string;
3616
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3616
3617
  label: string;
3617
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3618
+ id: string;
3618
3619
  capture: "at_action" | "historical_lookup" | "fixture";
3619
3620
  locator?: string | undefined;
3620
3621
  }, {
3621
- id: string;
3622
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3622
3623
  label: string;
3623
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3624
+ id: string;
3624
3625
  capture: "at_action" | "historical_lookup" | "fixture";
3625
3626
  locator?: string | undefined;
3626
3627
  }>, "many">>;
@@ -3628,9 +3629,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3628
3629
  kind: "mission_started";
3629
3630
  title: string;
3630
3631
  evidence: {
3631
- id: string;
3632
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3632
3633
  label: string;
3633
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3634
+ id: string;
3634
3635
  capture: "at_action" | "historical_lookup" | "fixture";
3635
3636
  locator?: string | undefined;
3636
3637
  }[];
@@ -3642,9 +3643,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3642
3643
  objective: string;
3643
3644
  runMode: "replay" | "fixture" | "live";
3644
3645
  evidence?: {
3645
- id: string;
3646
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3646
3647
  label: string;
3647
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3648
+ id: string;
3648
3649
  capture: "at_action" | "historical_lookup" | "fixture";
3649
3650
  locator?: string | undefined;
3650
3651
  }[] | undefined;
@@ -3660,15 +3661,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3660
3661
  locator: z.ZodOptional<z.ZodString>;
3661
3662
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3662
3663
  }, "strict", z.ZodTypeAny, {
3663
- id: string;
3664
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3664
3665
  label: string;
3665
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3666
+ id: string;
3666
3667
  capture: "at_action" | "historical_lookup" | "fixture";
3667
3668
  locator?: string | undefined;
3668
3669
  }, {
3669
- id: string;
3670
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3670
3671
  label: string;
3671
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3672
+ id: string;
3672
3673
  capture: "at_action" | "historical_lookup" | "fixture";
3673
3674
  locator?: string | undefined;
3674
3675
  }>, "many">>;
@@ -3676,32 +3677,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3676
3677
  sessionId: z.ZodString;
3677
3678
  kind: z.ZodLiteral<"agent_status">;
3678
3679
  }, "strict", z.ZodTypeAny, {
3679
- label: string;
3680
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3681
3680
  kind: "agent_status";
3681
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3682
+ label: string;
3682
3683
  role: string;
3683
3684
  agentId: string;
3684
3685
  sessionId: string;
3685
3686
  evidence: {
3686
- id: string;
3687
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3687
3688
  label: string;
3688
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3689
+ id: string;
3689
3690
  capture: "at_action" | "historical_lookup" | "fixture";
3690
3691
  locator?: string | undefined;
3691
3692
  }[];
3692
3693
  detail?: string | undefined;
3693
3694
  }, {
3694
- label: string;
3695
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3696
3695
  kind: "agent_status";
3696
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3697
+ label: string;
3697
3698
  role: string;
3698
3699
  agentId: string;
3699
3700
  sessionId: string;
3700
3701
  detail?: string | undefined;
3701
3702
  evidence?: {
3702
- id: string;
3703
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3703
3704
  label: string;
3704
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3705
+ id: string;
3705
3706
  capture: "at_action" | "historical_lookup" | "fixture";
3706
3707
  locator?: string | undefined;
3707
3708
  }[] | undefined;
@@ -3715,15 +3716,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3715
3716
  locator: z.ZodOptional<z.ZodString>;
3716
3717
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3717
3718
  }, "strict", z.ZodTypeAny, {
3718
- id: string;
3719
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3719
3720
  label: string;
3720
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3721
+ id: string;
3721
3722
  capture: "at_action" | "historical_lookup" | "fixture";
3722
3723
  locator?: string | undefined;
3723
3724
  }, {
3724
- id: string;
3725
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3725
3726
  label: string;
3726
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3727
+ id: string;
3727
3728
  capture: "at_action" | "historical_lookup" | "fixture";
3728
3729
  locator?: string | undefined;
3729
3730
  }>, "many">>;
@@ -3731,28 +3732,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3731
3732
  sessionId: z.ZodString;
3732
3733
  kind: z.ZodLiteral<"agent_output">;
3733
3734
  }, "strict", z.ZodTypeAny, {
3734
- summary: string;
3735
3735
  kind: "agent_output";
3736
+ summary: string;
3736
3737
  agentId: string;
3737
3738
  sessionId: string;
3738
3739
  evidence: {
3739
- id: string;
3740
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3740
3741
  label: string;
3741
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3742
+ id: string;
3742
3743
  capture: "at_action" | "historical_lookup" | "fixture";
3743
3744
  locator?: string | undefined;
3744
3745
  }[];
3745
3746
  outputId: string;
3746
3747
  }, {
3747
- summary: string;
3748
3748
  kind: "agent_output";
3749
+ summary: string;
3749
3750
  agentId: string;
3750
3751
  sessionId: string;
3751
3752
  outputId: string;
3752
3753
  evidence?: {
3753
- id: string;
3754
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3754
3755
  label: string;
3755
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3756
+ id: string;
3756
3757
  capture: "at_action" | "historical_lookup" | "fixture";
3757
3758
  locator?: string | undefined;
3758
3759
  }[] | undefined;
@@ -3768,15 +3769,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3768
3769
  locator: z.ZodOptional<z.ZodString>;
3769
3770
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3770
3771
  }, "strict", z.ZodTypeAny, {
3771
- id: string;
3772
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3772
3773
  label: string;
3773
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3774
+ id: string;
3774
3775
  capture: "at_action" | "historical_lookup" | "fixture";
3775
3776
  locator?: string | undefined;
3776
3777
  }, {
3777
- id: string;
3778
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3778
3779
  label: string;
3779
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3780
+ id: string;
3780
3781
  capture: "at_action" | "historical_lookup" | "fixture";
3781
3782
  locator?: string | undefined;
3782
3783
  }>, "many">>;
@@ -3789,9 +3790,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3789
3790
  statement: string;
3790
3791
  sessionId: string;
3791
3792
  evidence: {
3792
- id: string;
3793
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3793
3794
  label: string;
3794
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3795
+ id: string;
3795
3796
  capture: "at_action" | "historical_lookup" | "fixture";
3796
3797
  locator?: string | undefined;
3797
3798
  }[];
@@ -3807,9 +3808,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3807
3808
  decisionId: string;
3808
3809
  confidence?: number | undefined;
3809
3810
  evidence?: {
3810
- id: string;
3811
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3811
3812
  label: string;
3812
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3813
+ id: string;
3813
3814
  capture: "at_action" | "historical_lookup" | "fixture";
3814
3815
  locator?: string | undefined;
3815
3816
  }[] | undefined;
@@ -3826,25 +3827,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3826
3827
  locator: z.ZodOptional<z.ZodString>;
3827
3828
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3828
3829
  }, "strict", z.ZodTypeAny, {
3829
- id: string;
3830
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3830
3831
  label: string;
3831
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3832
+ id: string;
3832
3833
  capture: "at_action" | "historical_lookup" | "fixture";
3833
3834
  locator?: string | undefined;
3834
3835
  }, {
3835
- id: string;
3836
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3836
3837
  label: string;
3837
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3838
+ id: string;
3838
3839
  capture: "at_action" | "historical_lookup" | "fixture";
3839
3840
  locator?: string | undefined;
3840
3841
  }>, "many">>;
3841
3842
  }, "strict", z.ZodTypeAny, {
3842
- summary: string;
3843
3843
  kind: "conflict_detected";
3844
+ summary: string;
3844
3845
  evidence: {
3845
- id: string;
3846
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3846
3847
  label: string;
3847
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3848
+ id: string;
3848
3849
  capture: "at_action" | "historical_lookup" | "fixture";
3849
3850
  locator?: string | undefined;
3850
3851
  }[];
@@ -3852,15 +3853,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3852
3853
  decisionIds: string[];
3853
3854
  agentIds: string[];
3854
3855
  }, {
3855
- summary: string;
3856
3856
  kind: "conflict_detected";
3857
+ summary: string;
3857
3858
  conflictId: string;
3858
3859
  decisionIds: string[];
3859
3860
  agentIds: string[];
3860
3861
  evidence?: {
3861
- id: string;
3862
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3862
3863
  label: string;
3863
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3864
+ id: string;
3864
3865
  capture: "at_action" | "historical_lookup" | "fixture";
3865
3866
  locator?: string | undefined;
3866
3867
  }[] | undefined;
@@ -3880,27 +3881,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3880
3881
  locator: z.ZodOptional<z.ZodString>;
3881
3882
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3882
3883
  }, "strict", z.ZodTypeAny, {
3883
- id: string;
3884
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3884
3885
  label: string;
3885
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3886
+ id: string;
3886
3887
  capture: "at_action" | "historical_lookup" | "fixture";
3887
3888
  locator?: string | undefined;
3888
3889
  }, {
3889
- id: string;
3890
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3890
3891
  label: string;
3891
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3892
+ id: string;
3892
3893
  capture: "at_action" | "historical_lookup" | "fixture";
3893
3894
  locator?: string | undefined;
3894
3895
  }>, "many">>;
3895
3896
  }, "strict", z.ZodTypeAny, {
3897
+ kind: "test_result";
3896
3898
  summary: string;
3897
3899
  status: "error" | "failed" | "passed";
3898
- kind: "test_result";
3899
3900
  command: string;
3900
3901
  evidence: {
3901
- id: string;
3902
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3902
3903
  label: string;
3903
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3904
+ id: string;
3904
3905
  capture: "at_action" | "historical_lookup" | "fixture";
3905
3906
  locator?: string | undefined;
3906
3907
  }[];
@@ -3909,17 +3910,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3909
3910
  durationMs?: number | undefined;
3910
3911
  correctionId?: string | undefined;
3911
3912
  }, {
3913
+ kind: "test_result";
3912
3914
  summary: string;
3913
3915
  status: "error" | "failed" | "passed";
3914
- kind: "test_result";
3915
3916
  command: string;
3916
3917
  decisionId: string;
3917
3918
  testId: string;
3918
3919
  durationMs?: number | undefined;
3919
3920
  evidence?: {
3920
- id: string;
3921
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3921
3922
  label: string;
3922
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3923
+ id: string;
3923
3924
  capture: "at_action" | "historical_lookup" | "fixture";
3924
3925
  locator?: string | undefined;
3925
3926
  }[] | undefined;
@@ -3940,15 +3941,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3940
3941
  locator: z.ZodOptional<z.ZodString>;
3941
3942
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3942
3943
  }, "strict", z.ZodTypeAny, {
3943
- id: string;
3944
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3944
3945
  label: string;
3945
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3946
+ id: string;
3946
3947
  capture: "at_action" | "historical_lookup" | "fixture";
3947
3948
  locator?: string | undefined;
3948
3949
  }, {
3949
- id: string;
3950
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3950
3951
  label: string;
3951
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3952
+ id: string;
3952
3953
  capture: "at_action" | "historical_lookup" | "fixture";
3953
3954
  locator?: string | undefined;
3954
3955
  }>, "many">>;
@@ -3957,9 +3958,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3957
3958
  statement: string;
3958
3959
  rationale: string;
3959
3960
  evidence: {
3960
- id: string;
3961
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3961
3962
  label: string;
3962
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3963
+ id: string;
3963
3964
  capture: "at_action" | "historical_lookup" | "fixture";
3964
3965
  locator?: string | undefined;
3965
3966
  }[];
@@ -3978,9 +3979,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3978
3979
  supersedesDecisionIds: string[];
3979
3980
  proposedBy: string;
3980
3981
  evidence?: {
3981
- id: string;
3982
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3982
3983
  label: string;
3983
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3984
+ id: string;
3984
3985
  capture: "at_action" | "historical_lookup" | "fixture";
3985
3986
  locator?: string | undefined;
3986
3987
  }[] | undefined;
@@ -3992,13 +3993,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3992
3993
  id: z.ZodString;
3993
3994
  label: z.ZodString;
3994
3995
  }, "strict", z.ZodTypeAny, {
3995
- id: string;
3996
- label: string;
3997
3996
  kind: "agent" | "human";
3998
- }, {
3999
- id: string;
4000
3997
  label: string;
3998
+ id: string;
3999
+ }, {
4001
4000
  kind: "agent" | "human";
4001
+ label: string;
4002
+ id: string;
4002
4003
  }>;
4003
4004
  note: z.ZodOptional<z.ZodString>;
4004
4005
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -4008,47 +4009,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4008
4009
  locator: z.ZodOptional<z.ZodString>;
4009
4010
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4010
4011
  }, "strict", z.ZodTypeAny, {
4011
- id: string;
4012
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4012
4013
  label: string;
4013
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4014
+ id: string;
4014
4015
  capture: "at_action" | "historical_lookup" | "fixture";
4015
4016
  locator?: string | undefined;
4016
4017
  }, {
4017
- id: string;
4018
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4018
4019
  label: string;
4019
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4020
+ id: string;
4020
4021
  capture: "at_action" | "historical_lookup" | "fixture";
4021
4022
  locator?: string | undefined;
4022
4023
  }>, "many">>;
4023
4024
  }, "strict", z.ZodTypeAny, {
4024
4025
  kind: "correction_approved";
4025
4026
  evidence: {
4026
- id: string;
4027
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4027
4028
  label: string;
4028
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4029
+ id: string;
4029
4030
  capture: "at_action" | "historical_lookup" | "fixture";
4030
4031
  locator?: string | undefined;
4031
4032
  }[];
4032
4033
  correctionId: string;
4033
4034
  approvedBy: {
4034
- id: string;
4035
- label: string;
4036
4035
  kind: "agent" | "human";
4036
+ label: string;
4037
+ id: string;
4037
4038
  };
4038
4039
  note?: string | undefined;
4039
4040
  }, {
4040
4041
  kind: "correction_approved";
4041
4042
  correctionId: string;
4042
4043
  approvedBy: {
4043
- id: string;
4044
- label: string;
4045
4044
  kind: "agent" | "human";
4045
+ label: string;
4046
+ id: string;
4046
4047
  };
4047
4048
  note?: string | undefined;
4048
4049
  evidence?: {
4049
- id: string;
4050
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4050
4051
  label: string;
4051
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4052
+ id: string;
4052
4053
  capture: "at_action" | "historical_lookup" | "fixture";
4053
4054
  locator?: string | undefined;
4054
4055
  }[] | undefined;
@@ -4064,24 +4065,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4064
4065
  locator: z.ZodOptional<z.ZodString>;
4065
4066
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4066
4067
  }, "strict", z.ZodTypeAny, {
4067
- id: string;
4068
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4068
4069
  label: string;
4069
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4070
+ id: string;
4070
4071
  capture: "at_action" | "historical_lookup" | "fixture";
4071
4072
  locator?: string | undefined;
4072
4073
  }, {
4073
- id: string;
4074
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4074
4075
  label: string;
4075
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4076
+ id: string;
4076
4077
  capture: "at_action" | "historical_lookup" | "fixture";
4077
4078
  locator?: string | undefined;
4078
4079
  }>, "many">>;
4079
4080
  }, "strict", z.ZodTypeAny, {
4080
4081
  kind: "decision_superseded";
4081
4082
  evidence: {
4082
- id: string;
4083
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4083
4084
  label: string;
4084
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4085
+ id: string;
4085
4086
  capture: "at_action" | "historical_lookup" | "fixture";
4086
4087
  locator?: string | undefined;
4087
4088
  }[];
@@ -4094,9 +4095,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4094
4095
  correctionId: string;
4095
4096
  replacementDecisionId: string;
4096
4097
  evidence?: {
4097
- id: string;
4098
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4098
4099
  label: string;
4099
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4100
+ id: string;
4100
4101
  capture: "at_action" | "historical_lookup" | "fixture";
4101
4102
  locator?: string | undefined;
4102
4103
  }[] | undefined;
@@ -4112,15 +4113,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4112
4113
  locator: z.ZodOptional<z.ZodString>;
4113
4114
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4114
4115
  }, "strict", z.ZodTypeAny, {
4115
- id: string;
4116
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4116
4117
  label: string;
4117
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4118
+ id: string;
4118
4119
  capture: "at_action" | "historical_lookup" | "fixture";
4119
4120
  locator?: string | undefined;
4120
4121
  }, {
4121
- id: string;
4122
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4122
4123
  label: string;
4123
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4124
+ id: string;
4124
4125
  capture: "at_action" | "historical_lookup" | "fixture";
4125
4126
  locator?: string | undefined;
4126
4127
  }>, "many">>;
@@ -4133,9 +4134,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4133
4134
  agentId: string;
4134
4135
  sessionId: string;
4135
4136
  evidence: {
4136
- id: string;
4137
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4137
4138
  label: string;
4138
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4139
+ id: string;
4139
4140
  capture: "at_action" | "historical_lookup" | "fixture";
4140
4141
  locator?: string | undefined;
4141
4142
  }[];
@@ -4151,9 +4152,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4151
4152
  recallReceiptId: string;
4152
4153
  capturedAtAction: boolean;
4153
4154
  evidence?: {
4154
- id: string;
4155
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4155
4156
  label: string;
4156
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4157
+ id: string;
4157
4158
  capture: "at_action" | "historical_lookup" | "fixture";
4158
4159
  locator?: string | undefined;
4159
4160
  }[] | undefined;
@@ -4169,15 +4170,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4169
4170
  locator: z.ZodOptional<z.ZodString>;
4170
4171
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4171
4172
  }, "strict", z.ZodTypeAny, {
4172
- id: string;
4173
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4173
4174
  label: string;
4174
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4175
+ id: string;
4175
4176
  capture: "at_action" | "historical_lookup" | "fixture";
4176
4177
  locator?: string | undefined;
4177
4178
  }, {
4178
- id: string;
4179
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4179
4180
  label: string;
4180
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4181
+ id: string;
4181
4182
  capture: "at_action" | "historical_lookup" | "fixture";
4182
4183
  locator?: string | undefined;
4183
4184
  }>, "many">>;
@@ -4189,9 +4190,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4189
4190
  agentId: string;
4190
4191
  sessionId: string;
4191
4192
  evidence: {
4192
- id: string;
4193
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4193
4194
  label: string;
4194
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4195
+ id: string;
4195
4196
  capture: "at_action" | "historical_lookup" | "fixture";
4196
4197
  locator?: string | undefined;
4197
4198
  }[];
@@ -4208,9 +4209,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4208
4209
  recallReceiptId: string;
4209
4210
  staleDecisionAbsent: boolean;
4210
4211
  evidence?: {
4211
- id: string;
4212
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4212
4213
  label: string;
4213
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4214
+ id: string;
4214
4215
  capture: "at_action" | "historical_lookup" | "fixture";
4215
4216
  locator?: string | undefined;
4216
4217
  }[] | undefined;
@@ -4225,37 +4226,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4225
4226
  locator: z.ZodOptional<z.ZodString>;
4226
4227
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
4227
4228
  }, "strict", z.ZodTypeAny, {
4228
- id: string;
4229
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4229
4230
  label: string;
4230
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4231
+ id: string;
4231
4232
  capture: "at_action" | "historical_lookup" | "fixture";
4232
4233
  locator?: string | undefined;
4233
4234
  }, {
4234
- id: string;
4235
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4235
4236
  label: string;
4236
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4237
+ id: string;
4237
4238
  capture: "at_action" | "historical_lookup" | "fixture";
4238
4239
  locator?: string | undefined;
4239
4240
  }>, "many">>;
4240
4241
  }, "strict", z.ZodTypeAny, {
4241
- summary: string;
4242
4242
  kind: "mission_completed";
4243
+ summary: string;
4243
4244
  outcome: "failed" | "recovered" | "inconclusive";
4244
4245
  evidence: {
4245
- id: string;
4246
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4246
4247
  label: string;
4247
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4248
+ id: string;
4248
4249
  capture: "at_action" | "historical_lookup" | "fixture";
4249
4250
  locator?: string | undefined;
4250
4251
  }[];
4251
4252
  }, {
4252
- summary: string;
4253
4253
  kind: "mission_completed";
4254
+ summary: string;
4254
4255
  outcome: "failed" | "recovered" | "inconclusive";
4255
4256
  evidence?: {
4256
- id: string;
4257
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4257
4258
  label: string;
4258
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4259
+ id: string;
4259
4260
  capture: "at_action" | "historical_lookup" | "fixture";
4260
4261
  locator?: string | undefined;
4261
4262
  }[] | undefined;
@@ -4263,38 +4264,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4263
4264
  kind: "mission_started";
4264
4265
  title: string;
4265
4266
  evidence: {
4266
- id: string;
4267
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4267
4268
  label: string;
4268
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4269
+ id: string;
4269
4270
  capture: "at_action" | "historical_lookup" | "fixture";
4270
4271
  locator?: string | undefined;
4271
4272
  }[];
4272
4273
  objective: string;
4273
4274
  runMode: "replay" | "fixture" | "live";
4274
4275
  } | {
4275
- label: string;
4276
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4277
4276
  kind: "agent_status";
4277
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4278
+ label: string;
4278
4279
  role: string;
4279
4280
  agentId: string;
4280
4281
  sessionId: string;
4281
4282
  evidence: {
4282
- id: string;
4283
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4283
4284
  label: string;
4284
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4285
+ id: string;
4285
4286
  capture: "at_action" | "historical_lookup" | "fixture";
4286
4287
  locator?: string | undefined;
4287
4288
  }[];
4288
4289
  detail?: string | undefined;
4289
4290
  } | {
4290
- summary: string;
4291
4291
  kind: "agent_output";
4292
+ summary: string;
4292
4293
  agentId: string;
4293
4294
  sessionId: string;
4294
4295
  evidence: {
4295
- id: string;
4296
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4296
4297
  label: string;
4297
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4298
+ id: string;
4298
4299
  capture: "at_action" | "historical_lookup" | "fixture";
4299
4300
  locator?: string | undefined;
4300
4301
  }[];
@@ -4305,9 +4306,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4305
4306
  statement: string;
4306
4307
  sessionId: string;
4307
4308
  evidence: {
4308
- id: string;
4309
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4309
4310
  label: string;
4310
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4311
+ id: string;
4311
4312
  capture: "at_action" | "historical_lookup" | "fixture";
4312
4313
  locator?: string | undefined;
4313
4314
  }[];
@@ -4315,12 +4316,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4315
4316
  decisionId: string;
4316
4317
  confidence?: number | undefined;
4317
4318
  } | {
4318
- summary: string;
4319
4319
  kind: "conflict_detected";
4320
+ summary: string;
4320
4321
  evidence: {
4321
- id: string;
4322
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4322
4323
  label: string;
4323
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4324
+ id: string;
4324
4325
  capture: "at_action" | "historical_lookup" | "fixture";
4325
4326
  locator?: string | undefined;
4326
4327
  }[];
@@ -4328,14 +4329,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4328
4329
  decisionIds: string[];
4329
4330
  agentIds: string[];
4330
4331
  } | {
4332
+ kind: "test_result";
4331
4333
  summary: string;
4332
4334
  status: "error" | "failed" | "passed";
4333
- kind: "test_result";
4334
4335
  command: string;
4335
4336
  evidence: {
4336
- id: string;
4337
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4337
4338
  label: string;
4338
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4339
+ id: string;
4339
4340
  capture: "at_action" | "historical_lookup" | "fixture";
4340
4341
  locator?: string | undefined;
4341
4342
  }[];
@@ -4348,9 +4349,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4348
4349
  statement: string;
4349
4350
  rationale: string;
4350
4351
  evidence: {
4351
- id: string;
4352
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4352
4353
  label: string;
4353
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4354
+ id: string;
4354
4355
  capture: "at_action" | "historical_lookup" | "fixture";
4355
4356
  locator?: string | undefined;
4356
4357
  }[];
@@ -4362,25 +4363,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4362
4363
  } | {
4363
4364
  kind: "correction_approved";
4364
4365
  evidence: {
4365
- id: string;
4366
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4366
4367
  label: string;
4367
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4368
+ id: string;
4368
4369
  capture: "at_action" | "historical_lookup" | "fixture";
4369
4370
  locator?: string | undefined;
4370
4371
  }[];
4371
4372
  correctionId: string;
4372
4373
  approvedBy: {
4373
- id: string;
4374
- label: string;
4375
4374
  kind: "agent" | "human";
4375
+ label: string;
4376
+ id: string;
4376
4377
  };
4377
4378
  note?: string | undefined;
4378
4379
  } | {
4379
4380
  kind: "decision_superseded";
4380
4381
  evidence: {
4381
- id: string;
4382
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4382
4383
  label: string;
4383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4384
+ id: string;
4384
4385
  capture: "at_action" | "historical_lookup" | "fixture";
4385
4386
  locator?: string | undefined;
4386
4387
  }[];
@@ -4393,9 +4394,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4393
4394
  agentId: string;
4394
4395
  sessionId: string;
4395
4396
  evidence: {
4396
- id: string;
4397
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4397
4398
  label: string;
4398
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4399
+ id: string;
4399
4400
  capture: "at_action" | "historical_lookup" | "fixture";
4400
4401
  locator?: string | undefined;
4401
4402
  }[];
@@ -4407,9 +4408,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4407
4408
  agentId: string;
4408
4409
  sessionId: string;
4409
4410
  evidence: {
4410
- id: string;
4411
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4411
4412
  label: string;
4412
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4413
+ id: string;
4413
4414
  capture: "at_action" | "historical_lookup" | "fixture";
4414
4415
  locator?: string | undefined;
4415
4416
  }[];
@@ -4418,13 +4419,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4418
4419
  recallReceiptId: string;
4419
4420
  staleDecisionAbsent: boolean;
4420
4421
  } | {
4421
- summary: string;
4422
4422
  kind: "mission_completed";
4423
+ summary: string;
4423
4424
  outcome: "failed" | "recovered" | "inconclusive";
4424
4425
  evidence: {
4425
- id: string;
4426
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4426
4427
  label: string;
4427
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4428
+ id: string;
4428
4429
  capture: "at_action" | "historical_lookup" | "fixture";
4429
4430
  locator?: string | undefined;
4430
4431
  }[];
@@ -4434,37 +4435,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4434
4435
  objective: string;
4435
4436
  runMode: "replay" | "fixture" | "live";
4436
4437
  evidence?: {
4437
- id: string;
4438
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4438
4439
  label: string;
4439
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4440
+ id: string;
4440
4441
  capture: "at_action" | "historical_lookup" | "fixture";
4441
4442
  locator?: string | undefined;
4442
4443
  }[] | undefined;
4443
4444
  } | {
4444
- label: string;
4445
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4446
4445
  kind: "agent_status";
4446
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4447
+ label: string;
4447
4448
  role: string;
4448
4449
  agentId: string;
4449
4450
  sessionId: string;
4450
4451
  detail?: string | undefined;
4451
4452
  evidence?: {
4452
- id: string;
4453
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4453
4454
  label: string;
4454
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4455
+ id: string;
4455
4456
  capture: "at_action" | "historical_lookup" | "fixture";
4456
4457
  locator?: string | undefined;
4457
4458
  }[] | undefined;
4458
4459
  } | {
4459
- summary: string;
4460
4460
  kind: "agent_output";
4461
+ summary: string;
4461
4462
  agentId: string;
4462
4463
  sessionId: string;
4463
4464
  outputId: string;
4464
4465
  evidence?: {
4465
- id: string;
4466
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4466
4467
  label: string;
4467
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4468
+ id: string;
4468
4469
  capture: "at_action" | "historical_lookup" | "fixture";
4469
4470
  locator?: string | undefined;
4470
4471
  }[] | undefined;
@@ -4477,37 +4478,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4477
4478
  decisionId: string;
4478
4479
  confidence?: number | undefined;
4479
4480
  evidence?: {
4480
- id: string;
4481
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4481
4482
  label: string;
4482
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4483
+ id: string;
4483
4484
  capture: "at_action" | "historical_lookup" | "fixture";
4484
4485
  locator?: string | undefined;
4485
4486
  }[] | undefined;
4486
4487
  } | {
4487
- summary: string;
4488
4488
  kind: "conflict_detected";
4489
+ summary: string;
4489
4490
  conflictId: string;
4490
4491
  decisionIds: string[];
4491
4492
  agentIds: string[];
4492
4493
  evidence?: {
4493
- id: string;
4494
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4494
4495
  label: string;
4495
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4496
+ id: string;
4496
4497
  capture: "at_action" | "historical_lookup" | "fixture";
4497
4498
  locator?: string | undefined;
4498
4499
  }[] | undefined;
4499
4500
  } | {
4501
+ kind: "test_result";
4500
4502
  summary: string;
4501
4503
  status: "error" | "failed" | "passed";
4502
- kind: "test_result";
4503
4504
  command: string;
4504
4505
  decisionId: string;
4505
4506
  testId: string;
4506
4507
  durationMs?: number | undefined;
4507
4508
  evidence?: {
4508
- id: string;
4509
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4509
4510
  label: string;
4510
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4511
+ id: string;
4511
4512
  capture: "at_action" | "historical_lookup" | "fixture";
4512
4513
  locator?: string | undefined;
4513
4514
  }[] | undefined;
@@ -4522,9 +4523,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4522
4523
  supersedesDecisionIds: string[];
4523
4524
  proposedBy: string;
4524
4525
  evidence?: {
4525
- id: string;
4526
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4526
4527
  label: string;
4527
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4528
+ id: string;
4528
4529
  capture: "at_action" | "historical_lookup" | "fixture";
4529
4530
  locator?: string | undefined;
4530
4531
  }[] | undefined;
@@ -4532,15 +4533,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4532
4533
  kind: "correction_approved";
4533
4534
  correctionId: string;
4534
4535
  approvedBy: {
4535
- id: string;
4536
- label: string;
4537
4536
  kind: "agent" | "human";
4537
+ label: string;
4538
+ id: string;
4538
4539
  };
4539
4540
  note?: string | undefined;
4540
4541
  evidence?: {
4541
- id: string;
4542
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4542
4543
  label: string;
4543
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4544
+ id: string;
4544
4545
  capture: "at_action" | "historical_lookup" | "fixture";
4545
4546
  locator?: string | undefined;
4546
4547
  }[] | undefined;
@@ -4550,9 +4551,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4550
4551
  correctionId: string;
4551
4552
  replacementDecisionId: string;
4552
4553
  evidence?: {
4553
- id: string;
4554
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4554
4555
  label: string;
4555
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4556
+ id: string;
4556
4557
  capture: "at_action" | "historical_lookup" | "fixture";
4557
4558
  locator?: string | undefined;
4558
4559
  }[] | undefined;
@@ -4565,9 +4566,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4565
4566
  recallReceiptId: string;
4566
4567
  capturedAtAction: boolean;
4567
4568
  evidence?: {
4568
- id: string;
4569
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4569
4570
  label: string;
4570
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4571
+ id: string;
4571
4572
  capture: "at_action" | "historical_lookup" | "fixture";
4572
4573
  locator?: string | undefined;
4573
4574
  }[] | undefined;
@@ -4580,64 +4581,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4580
4581
  recallReceiptId: string;
4581
4582
  staleDecisionAbsent: boolean;
4582
4583
  evidence?: {
4583
- id: string;
4584
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4584
4585
  label: string;
4585
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4586
+ id: string;
4586
4587
  capture: "at_action" | "historical_lookup" | "fixture";
4587
4588
  locator?: string | undefined;
4588
4589
  }[] | undefined;
4589
4590
  } | {
4590
- summary: string;
4591
4591
  kind: "mission_completed";
4592
+ summary: string;
4592
4593
  outcome: "failed" | "recovered" | "inconclusive";
4593
4594
  evidence?: {
4594
- id: string;
4595
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4595
4596
  label: string;
4596
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4597
+ id: string;
4597
4598
  capture: "at_action" | "historical_lookup" | "fixture";
4598
4599
  locator?: string | undefined;
4599
4600
  }[] | undefined;
4600
4601
  }>;
4601
4602
  }, "strict", z.ZodTypeAny, {
4602
- namespace: string;
4603
- recordedAt: string;
4604
4603
  schemaVersion: "1";
4604
+ recordedAt: string;
4605
4605
  payload: {
4606
4606
  kind: "mission_started";
4607
4607
  title: string;
4608
4608
  evidence: {
4609
- id: string;
4609
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4610
4610
  label: string;
4611
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4611
+ id: string;
4612
4612
  capture: "at_action" | "historical_lookup" | "fixture";
4613
4613
  locator?: string | undefined;
4614
4614
  }[];
4615
4615
  objective: string;
4616
4616
  runMode: "replay" | "fixture" | "live";
4617
4617
  } | {
4618
- label: string;
4619
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4620
4618
  kind: "agent_status";
4619
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4620
+ label: string;
4621
4621
  role: string;
4622
4622
  agentId: string;
4623
4623
  sessionId: string;
4624
4624
  evidence: {
4625
- id: string;
4625
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4626
4626
  label: string;
4627
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4627
+ id: string;
4628
4628
  capture: "at_action" | "historical_lookup" | "fixture";
4629
4629
  locator?: string | undefined;
4630
4630
  }[];
4631
4631
  detail?: string | undefined;
4632
4632
  } | {
4633
- summary: string;
4634
4633
  kind: "agent_output";
4634
+ summary: string;
4635
4635
  agentId: string;
4636
4636
  sessionId: string;
4637
4637
  evidence: {
4638
- id: string;
4638
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4639
4639
  label: string;
4640
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4640
+ id: string;
4641
4641
  capture: "at_action" | "historical_lookup" | "fixture";
4642
4642
  locator?: string | undefined;
4643
4643
  }[];
@@ -4648,9 +4648,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4648
4648
  statement: string;
4649
4649
  sessionId: string;
4650
4650
  evidence: {
4651
- id: string;
4651
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4652
4652
  label: string;
4653
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4653
+ id: string;
4654
4654
  capture: "at_action" | "historical_lookup" | "fixture";
4655
4655
  locator?: string | undefined;
4656
4656
  }[];
@@ -4658,12 +4658,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4658
4658
  decisionId: string;
4659
4659
  confidence?: number | undefined;
4660
4660
  } | {
4661
- summary: string;
4662
4661
  kind: "conflict_detected";
4662
+ summary: string;
4663
4663
  evidence: {
4664
- id: string;
4664
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4665
4665
  label: string;
4666
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4666
+ id: string;
4667
4667
  capture: "at_action" | "historical_lookup" | "fixture";
4668
4668
  locator?: string | undefined;
4669
4669
  }[];
@@ -4671,14 +4671,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4671
4671
  decisionIds: string[];
4672
4672
  agentIds: string[];
4673
4673
  } | {
4674
+ kind: "test_result";
4674
4675
  summary: string;
4675
4676
  status: "error" | "failed" | "passed";
4676
- kind: "test_result";
4677
4677
  command: string;
4678
4678
  evidence: {
4679
- id: string;
4679
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4680
4680
  label: string;
4681
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4681
+ id: string;
4682
4682
  capture: "at_action" | "historical_lookup" | "fixture";
4683
4683
  locator?: string | undefined;
4684
4684
  }[];
@@ -4691,9 +4691,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4691
4691
  statement: string;
4692
4692
  rationale: string;
4693
4693
  evidence: {
4694
- id: string;
4694
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4695
4695
  label: string;
4696
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4696
+ id: string;
4697
4697
  capture: "at_action" | "historical_lookup" | "fixture";
4698
4698
  locator?: string | undefined;
4699
4699
  }[];
@@ -4705,25 +4705,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4705
4705
  } | {
4706
4706
  kind: "correction_approved";
4707
4707
  evidence: {
4708
- id: string;
4708
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4709
4709
  label: string;
4710
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4710
+ id: string;
4711
4711
  capture: "at_action" | "historical_lookup" | "fixture";
4712
4712
  locator?: string | undefined;
4713
4713
  }[];
4714
4714
  correctionId: string;
4715
4715
  approvedBy: {
4716
- id: string;
4717
- label: string;
4718
4716
  kind: "agent" | "human";
4717
+ label: string;
4718
+ id: string;
4719
4719
  };
4720
4720
  note?: string | undefined;
4721
4721
  } | {
4722
4722
  kind: "decision_superseded";
4723
4723
  evidence: {
4724
- id: string;
4724
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4725
4725
  label: string;
4726
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4726
+ id: string;
4727
4727
  capture: "at_action" | "historical_lookup" | "fixture";
4728
4728
  locator?: string | undefined;
4729
4729
  }[];
@@ -4736,9 +4736,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4736
4736
  agentId: string;
4737
4737
  sessionId: string;
4738
4738
  evidence: {
4739
- id: string;
4739
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4740
4740
  label: string;
4741
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4741
+ id: string;
4742
4742
  capture: "at_action" | "historical_lookup" | "fixture";
4743
4743
  locator?: string | undefined;
4744
4744
  }[];
@@ -4750,9 +4750,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4750
4750
  agentId: string;
4751
4751
  sessionId: string;
4752
4752
  evidence: {
4753
- id: string;
4753
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4754
4754
  label: string;
4755
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4755
+ id: string;
4756
4756
  capture: "at_action" | "historical_lookup" | "fixture";
4757
4757
  locator?: string | undefined;
4758
4758
  }[];
@@ -4761,63 +4761,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4761
4761
  recallReceiptId: string;
4762
4762
  staleDecisionAbsent: boolean;
4763
4763
  } | {
4764
- summary: string;
4765
4764
  kind: "mission_completed";
4765
+ summary: string;
4766
4766
  outcome: "failed" | "recovered" | "inconclusive";
4767
4767
  evidence: {
4768
- id: string;
4768
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4769
4769
  label: string;
4770
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4770
+ id: string;
4771
4771
  capture: "at_action" | "historical_lookup" | "fixture";
4772
4772
  locator?: string | undefined;
4773
4773
  }[];
4774
4774
  };
4775
+ namespace: string;
4775
4776
  eventId: string;
4776
4777
  occurredAt: string;
4777
4778
  missionId: string;
4778
4779
  idempotencyKey?: string | undefined;
4779
4780
  authenticatedPrincipal?: string | undefined;
4780
4781
  }, {
4781
- namespace: string;
4782
- recordedAt: string;
4783
4782
  schemaVersion: "1";
4783
+ recordedAt: string;
4784
4784
  payload: {
4785
4785
  kind: "mission_started";
4786
4786
  title: string;
4787
4787
  objective: string;
4788
4788
  runMode: "replay" | "fixture" | "live";
4789
4789
  evidence?: {
4790
- id: string;
4790
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4791
4791
  label: string;
4792
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4792
+ id: string;
4793
4793
  capture: "at_action" | "historical_lookup" | "fixture";
4794
4794
  locator?: string | undefined;
4795
4795
  }[] | undefined;
4796
4796
  } | {
4797
- label: string;
4798
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4799
4797
  kind: "agent_status";
4798
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4799
+ label: string;
4800
4800
  role: string;
4801
4801
  agentId: string;
4802
4802
  sessionId: string;
4803
4803
  detail?: string | undefined;
4804
4804
  evidence?: {
4805
- id: string;
4805
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4806
4806
  label: string;
4807
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4807
+ id: string;
4808
4808
  capture: "at_action" | "historical_lookup" | "fixture";
4809
4809
  locator?: string | undefined;
4810
4810
  }[] | undefined;
4811
4811
  } | {
4812
- summary: string;
4813
4812
  kind: "agent_output";
4813
+ summary: string;
4814
4814
  agentId: string;
4815
4815
  sessionId: string;
4816
4816
  outputId: string;
4817
4817
  evidence?: {
4818
- id: string;
4818
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4819
4819
  label: string;
4820
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4820
+ id: string;
4821
4821
  capture: "at_action" | "historical_lookup" | "fixture";
4822
4822
  locator?: string | undefined;
4823
4823
  }[] | undefined;
@@ -4830,37 +4830,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4830
4830
  decisionId: string;
4831
4831
  confidence?: number | undefined;
4832
4832
  evidence?: {
4833
- id: string;
4833
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4834
4834
  label: string;
4835
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4835
+ id: string;
4836
4836
  capture: "at_action" | "historical_lookup" | "fixture";
4837
4837
  locator?: string | undefined;
4838
4838
  }[] | undefined;
4839
4839
  } | {
4840
- summary: string;
4841
4840
  kind: "conflict_detected";
4841
+ summary: string;
4842
4842
  conflictId: string;
4843
4843
  decisionIds: string[];
4844
4844
  agentIds: string[];
4845
4845
  evidence?: {
4846
- id: string;
4846
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4847
4847
  label: string;
4848
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4848
+ id: string;
4849
4849
  capture: "at_action" | "historical_lookup" | "fixture";
4850
4850
  locator?: string | undefined;
4851
4851
  }[] | undefined;
4852
4852
  } | {
4853
+ kind: "test_result";
4853
4854
  summary: string;
4854
4855
  status: "error" | "failed" | "passed";
4855
- kind: "test_result";
4856
4856
  command: string;
4857
4857
  decisionId: string;
4858
4858
  testId: string;
4859
4859
  durationMs?: number | undefined;
4860
4860
  evidence?: {
4861
- id: string;
4861
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4862
4862
  label: string;
4863
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4863
+ id: string;
4864
4864
  capture: "at_action" | "historical_lookup" | "fixture";
4865
4865
  locator?: string | undefined;
4866
4866
  }[] | undefined;
@@ -4875,9 +4875,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4875
4875
  supersedesDecisionIds: string[];
4876
4876
  proposedBy: string;
4877
4877
  evidence?: {
4878
- id: string;
4878
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4879
4879
  label: string;
4880
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4880
+ id: string;
4881
4881
  capture: "at_action" | "historical_lookup" | "fixture";
4882
4882
  locator?: string | undefined;
4883
4883
  }[] | undefined;
@@ -4885,15 +4885,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4885
4885
  kind: "correction_approved";
4886
4886
  correctionId: string;
4887
4887
  approvedBy: {
4888
- id: string;
4889
- label: string;
4890
4888
  kind: "agent" | "human";
4889
+ label: string;
4890
+ id: string;
4891
4891
  };
4892
4892
  note?: string | undefined;
4893
4893
  evidence?: {
4894
- id: string;
4894
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4895
4895
  label: string;
4896
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4896
+ id: string;
4897
4897
  capture: "at_action" | "historical_lookup" | "fixture";
4898
4898
  locator?: string | undefined;
4899
4899
  }[] | undefined;
@@ -4903,9 +4903,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4903
4903
  correctionId: string;
4904
4904
  replacementDecisionId: string;
4905
4905
  evidence?: {
4906
- id: string;
4906
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4907
4907
  label: string;
4908
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4908
+ id: string;
4909
4909
  capture: "at_action" | "historical_lookup" | "fixture";
4910
4910
  locator?: string | undefined;
4911
4911
  }[] | undefined;
@@ -4918,9 +4918,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4918
4918
  recallReceiptId: string;
4919
4919
  capturedAtAction: boolean;
4920
4920
  evidence?: {
4921
- id: string;
4921
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4922
4922
  label: string;
4923
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4923
+ id: string;
4924
4924
  capture: "at_action" | "historical_lookup" | "fixture";
4925
4925
  locator?: string | undefined;
4926
4926
  }[] | undefined;
@@ -4933,24 +4933,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4933
4933
  recallReceiptId: string;
4934
4934
  staleDecisionAbsent: boolean;
4935
4935
  evidence?: {
4936
- id: string;
4936
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4937
4937
  label: string;
4938
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4938
+ id: string;
4939
4939
  capture: "at_action" | "historical_lookup" | "fixture";
4940
4940
  locator?: string | undefined;
4941
4941
  }[] | undefined;
4942
4942
  } | {
4943
- summary: string;
4944
4943
  kind: "mission_completed";
4944
+ summary: string;
4945
4945
  outcome: "failed" | "recovered" | "inconclusive";
4946
4946
  evidence?: {
4947
- id: string;
4947
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4948
4948
  label: string;
4949
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4949
+ id: string;
4950
4950
  capture: "at_action" | "historical_lookup" | "fixture";
4951
4951
  locator?: string | undefined;
4952
4952
  }[] | undefined;
4953
4953
  };
4954
+ namespace: string;
4954
4955
  eventId: string;
4955
4956
  occurredAt: string;
4956
4957
  missionId: string;
@@ -7796,6 +7797,139 @@ interface DeterministicJournalOptions {
7796
7797
  /** Render a byte-stable Markdown journal for one local day. */
7797
7798
  declare function renderDeterministicJournal(cards: readonly TimelineCard[], options: DeterministicJournalOptions): string;
7798
7799
 
7800
+ interface PersistDeterministicJournalInput {
7801
+ memoryDir: string;
7802
+ date: string;
7803
+ cards: readonly TimelineCard[];
7804
+ timezone: string;
7805
+ force?: boolean;
7806
+ }
7807
+ interface PersistDeterministicJournalResult {
7808
+ path: string;
7809
+ wrote: boolean;
7810
+ }
7811
+ declare function persistDeterministicJournal(input: PersistDeterministicJournalInput): PersistDeterministicJournalResult;
7812
+
7813
+ declare const WEEKLY_ACTIVITY_FORMAT_VERSION = 1;
7814
+ interface WeeklyActivityOptions {
7815
+ timezone: string;
7816
+ weekStartUtc: string;
7817
+ weekEndUtc: string;
7818
+ categories: readonly TimelineCategory[];
7819
+ }
7820
+ interface WeeklyCategoryTotal {
7821
+ categoryId: string;
7822
+ durationMs: number;
7823
+ }
7824
+ interface WeeklyKindTotals {
7825
+ activeMs: number;
7826
+ idleMs: number;
7827
+ pauseMs: number;
7828
+ gapMs: number;
7829
+ unclassifiedMs: number;
7830
+ }
7831
+ interface WeeklyDayTotal extends WeeklyKindTotals {
7832
+ date: string;
7833
+ startUtc: string;
7834
+ endUtc: string;
7835
+ categories: WeeklyCategoryTotal[];
7836
+ }
7837
+ /** First slice never computes a prior week; the field is present so callers cannot treat absence as zero. */
7838
+ interface WeeklyPreviousPeriodUnavailable {
7839
+ available: false;
7840
+ }
7841
+ interface WeeklyActivitySummary extends WeeklyKindTotals {
7842
+ formatVersion: number;
7843
+ timezone: string;
7844
+ weekStartUtc: string;
7845
+ weekEndUtc: string;
7846
+ categories: WeeklyCategoryTotal[];
7847
+ days: WeeklyDayTotal[];
7848
+ previousPeriod: WeeklyPreviousPeriodUnavailable;
7849
+ }
7850
+ /** Build a time/activity summary for one half-open week. Pure. */
7851
+ declare function buildWeeklyActivitySummary(cards: readonly TimelineCard[], options: WeeklyActivityOptions): WeeklyActivitySummary;
7852
+
7853
+ declare const WEEKLY_SNAPSHOT_FORMAT_VERSION = 1;
7854
+ declare const WEEKLY_SNAPSHOT_DIR: string;
7855
+ interface PersistWeeklySnapshotInput {
7856
+ memoryDir: string;
7857
+ namespace: string;
7858
+ summary: WeeklyActivitySummary;
7859
+ sourceRevision: string;
7860
+ configHash: string;
7861
+ }
7862
+ interface PersistWeeklySnapshotResult {
7863
+ path: string;
7864
+ written: boolean;
7865
+ }
7866
+ declare function weeklySnapshotPath(input: PersistWeeklySnapshotInput): string;
7867
+ /** Persist one weekly snapshot. Same bytes are a no-op. */
7868
+ declare function persistWeeklySnapshot(input: PersistWeeklySnapshotInput): PersistWeeklySnapshotResult;
7869
+
7870
+ declare const TIMELINE_ANALYSIS_PROMPT_VERSION = 1;
7871
+ declare const TIMELINE_ANALYSIS_BATCH_SIZE = 40;
7872
+ declare const TIMELINE_ANALYSIS_BATCH_OVERLAP = 2;
7873
+ declare const TIMELINE_ANALYSIS_DEFAULT_TIMEOUT_MS = 15000;
7874
+ declare class TimelineAnalysisConfigError extends Error {
7875
+ readonly name = "TimelineAnalysisConfigError";
7876
+ readonly code: "invalid_config";
7877
+ constructor(message: string);
7878
+ }
7879
+ type TimelineAnalysisStatus = "ok" | "disabled" | "provider_failed" | "invalid_output";
7880
+ interface TimelineAnalysisCompleteInput {
7881
+ prompt: string;
7882
+ provider: string;
7883
+ model: string;
7884
+ signal: AbortSignal;
7885
+ }
7886
+ type TimelineAnalysisComplete = (input: TimelineAnalysisCompleteInput) => Promise<string>;
7887
+ interface TimelineAnalysisInput {
7888
+ enabled: boolean;
7889
+ cards: readonly TimelineCard[];
7890
+ observations: readonly TimelineObservation[];
7891
+ provider?: string;
7892
+ model?: string;
7893
+ complete?: TimelineAnalysisComplete;
7894
+ timeoutMs?: number;
7895
+ date?: string;
7896
+ timezone?: string;
7897
+ categories?: readonly TimelineCategory[];
7898
+ preferences?: readonly string[];
7899
+ priorEdits?: readonly TimelineCorrection[];
7900
+ signal?: AbortSignal;
7901
+ }
7902
+ interface TimelineAnalysisResult {
7903
+ status: TimelineAnalysisStatus;
7904
+ cards: TimelineCard[];
7905
+ provider?: string;
7906
+ model?: string;
7907
+ promptVersion?: number;
7908
+ }
7909
+ declare function buildTimelineAnalysisPrompt(input: {
7910
+ date?: string;
7911
+ timezone?: string;
7912
+ cards: readonly TimelineCard[];
7913
+ observations: readonly TimelineObservation[];
7914
+ categories: readonly TimelineCategory[];
7915
+ preferences?: readonly string[];
7916
+ priorEdits?: readonly TimelineCorrection[];
7917
+ }): string;
7918
+ /** Analyze one day of cards. Failures return the input cards unchanged. */
7919
+ declare function analyzeTimelineCards(input: TimelineAnalysisInput): Promise<TimelineAnalysisResult>;
7920
+
7921
+ /**
7922
+ * Bounded overlapping observation batches for timeline analysis (issue #2050).
7923
+ */
7924
+
7925
+ type TimelineBatchObservation = Pick<TimelineObservation, "id" | "capturedAtUtc">;
7926
+ interface BatchObservationsOptions {
7927
+ maxBatch: number;
7928
+ overlap: number;
7929
+ }
7930
+ /** Split observations into overlapping windows. Order is capturedAtUtc, then id. */
7931
+ declare function batchObservations<T extends TimelineBatchObservation>(observations: readonly T[], options: BatchObservationsOptions): T[][];
7932
+
7799
7933
  declare const JOURNAL_DIR_NAME = "journal";
7800
7934
  /** Minimal card shape the seed renderer needs. TimelineCard is assignable. */
7801
7935
  interface JournalSeedCard {
@@ -7821,8 +7955,44 @@ declare function journalPath(memoryDir: string, date: string): string;
7821
7955
  */
7822
7956
  declare function isJournalDayPath(filePath: string, memoryRoot?: string): boolean;
7823
7957
  declare function todayJournalDate(now?: Date): string;
7958
+ /** The only journal write. Stats first; existing files are a no-op unless force. */
7959
+ declare function writeJournalFile(filePath: string, content: string, force: boolean): boolean;
7824
7960
  declare function seedJournal(input: SeedJournalInput): SeedJournalResult;
7825
7961
 
7962
+ /**
7963
+ * Read-only vault daily-note journal section (issue #1987 first slice).
7964
+ *
7965
+ * Pure: file text in, journal body out. Never writes. Strips Remnic-owned
7966
+ * marker regions and publisher-owned headings so published timeline text
7967
+ * cannot re-enter the journal. Path templates stay in vault-publish.
7968
+ */
7969
+ interface ReadVaultJournalInput {
7970
+ fileText: string | null | undefined;
7971
+ journalSection: string;
7972
+ publishSectionNames?: readonly string[];
7973
+ }
7974
+ type ReadVaultJournalResult = {
7975
+ ok: true;
7976
+ exists: false;
7977
+ reason: "missing_file" | "missing_heading";
7978
+ } | {
7979
+ ok: true;
7980
+ exists: true;
7981
+ text: string;
7982
+ heading: string;
7983
+ warnings: readonly string[];
7984
+ } | {
7985
+ ok: false;
7986
+ reason: "duplicate_heading";
7987
+ lines: readonly number[];
7988
+ };
7989
+ declare function readVaultJournal(input: ReadVaultJournalInput): ReadVaultJournalResult;
7990
+ /** Remove Remnic marker pairs and publisher-owned heading sections. */
7991
+ declare function stripRemnicOwnedRegions(text: string, publishSectionNames?: readonly string[]): {
7992
+ text: string;
7993
+ warnings: readonly string[];
7994
+ };
7995
+
7826
7996
  interface ActivityMemoryWriter {
7827
7997
  /**
7828
7998
  * Locate an existing activity memory for this day whose normalized content
@@ -7907,6 +8077,42 @@ declare function shouldRetain(capturedAtMs: number, nowMs: number, retentionDays
7907
8077
  /** Export payload. Master off or the export gate off returns empty. */
7908
8078
  declare function observationsForExport<T>(observations: readonly T[], policy: Pick<ActivityPrivacyPolicy, "enabled" | "exportIncludeObservations">): readonly T[];
7909
8079
 
8080
+ declare function resolveVaultNotePath(template: string, date: string, options?: {
8081
+ timezone?: string;
8082
+ }): string;
8083
+
8084
+ type ApplyManagedRegionResult = {
8085
+ ok: true;
8086
+ text: string;
8087
+ } | {
8088
+ ok: false;
8089
+ reason: "no_marker" | "no_heading";
8090
+ text: string;
8091
+ } | {
8092
+ ok: false;
8093
+ reason: "duplicate_heading";
8094
+ lines: readonly number[];
8095
+ text: string;
8096
+ };
8097
+ type PublishVaultRegionResult = {
8098
+ ok: true;
8099
+ status: "updated" | "unchanged";
8100
+ } | {
8101
+ ok: false;
8102
+ reason: "no_marker" | "missing_file" | "not_directory";
8103
+ };
8104
+ declare function applyManagedRegion(fileText: string, opts: {
8105
+ strategy: "markers" | "heading";
8106
+ name: string;
8107
+ content: string;
8108
+ }): ApplyManagedRegionResult;
8109
+ declare function publishVaultRegion(input: {
8110
+ vaultPath: string;
8111
+ relativeFile: string;
8112
+ name: string;
8113
+ content: string;
8114
+ }): PublishVaultRegionResult;
8115
+
7910
8116
  /**
7911
8117
  * Retrospective meeting detection (issue #1900, Phase 4 slice 1).
7912
8118
  *
@@ -8627,4 +8833,4 @@ declare function forkCapsule(opts: ForkCapsuleOptions): Promise<ForkCapsuleResul
8627
8833
  */
8628
8834
  declare function readForkLineage(targetRoot: string, forkId: string): Promise<ForkLineage | null>;
8629
8835
 
8630
- export { ACTIVITY_DIGEST_FORMAT_VERSION, ACTIVITY_DIR_NAME, ACTIVITY_SYNC_DEFAULT_INTERVAL_MS, ActivityConfig, ActivityDayDigest, ActivityDayMeta, ActivityHttpSourceClient, type ActivityHttpSourceClientOptions, type ActivityIndexRefresher, type ActivityMemoryGenerationDeps, type ActivityMemoryGenerationResult, type ActivityMemoryWriter, type ActivityPrivacyPolicy, ActivitySnapshot, ActivitySnapshotPage, ActivitySourceCheck, ActivitySourceClient, ActivityStore, type ActivitySyncOptions, type ActivitySyncRegistration, type ActivitySyncResult, ActivitySyncRunSummary, ActivitySyncScheduler, type ActivitySyncSchedulerOptions, ActivityTimelineQaConfig, ActivityWearablesMeetingsDaySource, type ArchitectureHintsResult, type AuditEntry, BUILT_IN_OFF_THE_RECORD_END, BUILT_IN_OFF_THE_RECORD_START, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, type CleanupResult, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type CollectLocalSessionSummariesOptions, type CompiledCorrectionRule, type CompiledOffTheRecordMarkers, type CompiledRedactionRule, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_MEETINGS_CONFIG, DEFAULT_MEETINGS_DETECTION_CONFIG, DEFAULT_MEETING_APP_PATTERNS, DEFAULT_PROXIMITY_GAP_MS, DEFAULT_REDACTION_RULES, DEFAULT_SCAN_PATTERNS, DEFAULT_SOURCE_TRUST, DEFAULT_TAXONOMY, DEFAULT_TIMELINE_CATEGORIES, DEFAULT_UNTRUSTED_ORIGINS, DEFAULT_WINDOW_TOLERANCE_MS, type DedupOptions, type DedupResult, DetectedMeeting, type DeterministicJournalOptions, DiscoveredExtension, type DocFile, DriftDetectionConfig, type DriftRankInput, type DriftRankOutput, type DriftRecallFrontmatter, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, EngramAccessService, type ExportSkillsResult, FallbackLlmClient, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, type FuseClusterResult, FusedDisagreement, FusedSegment, FusedSpeaker, FusionConversationInput, FusionDayResult, FusionOptions, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, INJECTION_SCREEN_THRESHOLD, type ImportSkillsResult, type IngestionPlan, type InjectionScreenFinding, type InjectionScreenResult, JOURNAL_DIR_NAME, type JournalSeedCard, JudgeCandidate, JudgeVerdict, KNOWN_WEARABLE_SOURCE_IDS, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, type LocalSessionAdapterInput, type LocalSessionAdapterOptions, type LocalSessionParseWarning, type LocalSessionParsedFile, type LocalSessionRole, type LocalSessionSourceAdapter, type LocalSessionSummaryCliOptions, type LocalSessionSummaryReport, type LocalSessionTurn, MEETING_SOURCE_PREFIX, MS_PER_DAY, MeetingAppSpan, MeetingAudioWindow, MeetingDayData, MeetingEpisodeGenResult, type MeetingFactCandidate, MeetingMemoryGenerator, type MeetingMemoryStorageIo, MeetingMemoryWriter, MeetingRecord, MeetingRecordStore, type MeetingSummaryDeps, type MeetingSummaryExtractor, type MeetingSummaryJudge, type MeetingSummaryResult, type MeetingsActivityReader, MeetingsBuildScheduler, type MeetingsBuildSchedulerOptions, MeetingsBuilder, type MeetingsCliDeps, type MeetingsCliIo, MeetingsConfig, MeetingsDaySource, MeetingsDetectionConfig, MeetingsDetectionInput, MeetingsInputError, type MeetingsWearableReader, MemoryCategory, MemoryDriftState, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OffTheRecordMarkerInput, OffTheRecordMarkerSettings, type OnboardOptions, type OnboardResult, type OriginClass, PUBLISHERS, type PackReviewContextStructuralInput, ParsedSkillBundle, type PipelineResult, PluginConfig, type PreferenceDriftClassification, type PreferenceDriftDependencies, type PreferenceDriftEvidence, type PreferenceDriftFinding, type PreferenceDriftMarker, type PreferenceDriftReport, type PreferenceDriftResolutionOptions, type PreferenceDriftResolutionResult, type PreferenceDriftSkipReason, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, RELAY_DEMO_MISSION_ID, RELAY_DEMO_NAMESPACE, RELAY_MISSION_DEFAULT_EVENT_LIMIT, RELAY_MISSION_MAX_EVENTS, RELAY_MISSION_MAX_EVENT_LIMIT, RELAY_MISSION_MAX_FILE_BYTES, RELAY_MISSION_MAX_LINE_BYTES, RELAY_MISSION_SCHEMA_VERSION, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, type ReadSkillBundle, type RedactionConfig, type RedactionReport, type RedactionRuleConfig, type RelayAgentOutputSnapshot, type RelayAgentSnapshot, type RelayConflictSnapshot, type RelayCorrectionSnapshot, type RelayDecisionSnapshot, type RelayEvidenceRef, RelayEvidenceRefSchema, type RelayMissionAppendAccessInput, type RelayMissionAppendAccessOutput, type RelayMissionAppendResult, type RelayMissionEvent, type RelayMissionEventInput, RelayMissionEventInputSchema, RelayMissionEventSchema, type RelayMissionPayload, RelayMissionPayloadSchema, type RelayMissionReadAccessInput, type RelayMissionReadAccessOutput, type RelayMissionReadOptions, RelayMissionReadOptionsSchema, type RelayMissionSnapshot, type RelayMissionStatus, RelayMissionStore, RelayMissionStoreError, type RelayMissionStoreErrorCode, type RelayMissionStoreOptions, type RelayPropagationSnapshot, type RelayRecallSnapshot, type RelayTestSnapshot, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, ReviewDeckSnapshot, ReviewDeckSourceRow, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type ScriptHint, SealedMemoryEnvelope, type SeedJournalInput, type SeedJournalResult, SemanticDedupLookup, type SessionSummaryDraft, type SessionSummaryExcerpt, SkillBundle, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, SpeakerRegistry, type StatementProvenance, StorageManager, type StructuralContextDegradation, type StructuralContextErrorCode, type StructuralContextProvider, type StructuralProviderStatus, type StructuralSpawnFn, type StructuralSymbol, type SubprocessProviderOptions, type SymbolsForDiffErr, type SymbolsForDiffOk, type SymbolsForDiffResult, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, TIMELINE_FORMAT_VERSION, TIMELINE_MAX_DWELL_MS, TIMELINE_MERGE_GAP_MS, TIMELINE_RESERVED_IDLE, TIMELINE_RESERVED_PAUSE, TIMELINE_RESERVED_UNKNOWN, TRANSCRIPT_FORMAT_VERSION, Taxonomy, type TimelineBuildInput, type TimelineCard, type TimelineCardKind, type TimelineCategory, type TimelineClassification, type TimelineCliDeps, type TimelineCliIo, type TimelineCompactCard, type TimelineCompactRange, type TimelineCorrection, TimelineCorrectionStore, type TimelineDay, type TimelineEvidenceRange, type TimelineManualEdit, type TimelineObservation, type TimelinePause, type TimelineQueryCard, type TimelineRangeFormat, type TimelineRangeQuery, type TimelineSearchQuery, type TimelineSearchResult, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TranscriptSegmentMatch, type TreeNode, WEARABLES_DIR_NAME, WearableCleanupSettings, type WearableConnectorFactory, type WearableConnectorFactoryOptions, type WearableConnectorRegistration, WearableConversation, WearableCorrectionRule, type WearableDayBody, WearableDayTranscript, WearableDayTranscriptMeta, type WearableDayTranscriptStore, WearableFusionConfig, WearableSourceConnector, WearableSourceSettings, type WearableSourceSyncState, type WearableSyncStateFile, type WearablesCliIo, WearablesConfig, WearablesInputError, WearablesService, activityCursorKey, activityDayWindow, activityDigestPath, appendRelayMissionEvent, applyCorrections, applyOffTheRecord, applyPreferenceDriftRanking, applyTimelineCorrections, assertValidTimezone, bodyIsEscaped, branchNamespaceName, buildAudioWindows, buildPhraseMatcher, buildProcedureRecallSection, buildTimelineDay, builtInConnectorPackageSpecifier, classifyOrigin, classifyTimelineObservation, cleanConversation, clearStructuralContextProvidersForTest, clearTrainingExportAdapters, clearWearableConnectors, clusterConversations, collapseImmediateRepeats, collectLocalSessionSummaries, compareRelayEvents, compileCorrectionRule, compileCorrectionRules, compileOffTheRecordMarkers, compileRedactionPatterns, compileRedactionRules, composeActivityDigestBody, composeActivityDigestMeta, composeDayTranscriptBody, composeDayTranscriptMeta, composeMeetingEpisodeContent, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createMeetingMemoryGenerator, createMeetingMemoryWriter, createNotionConnector, createRelayMissionFixture, createSpace, createSubprocessStructuralProvider, curate, decodeTranscriptBody, defaultActivityConfig, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableFusionConfig, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, deriveAppSpans, describeCodingScope, describeErrorForOperator, describeStructuralProviderStatus, detectMeetings, detectScriptHints, driftAgeNote, emptyManifest, emptySyncState, ensureBuiltInWearableConnectors, escapeSegmentText, exportSkillBundles, findContradictions, findDuplicates, forkCapsule, fuseCluster, fuseDay, fusionInputsFromConversations, generateActivityMemories, generateContextTree, generateMeetingEpisodes, generateMeetingSummaryFacts, generateResolverDocument, getActiveSpace, getAuditLog, getLocalSessionSourceAdapter, getManifestPath, getSpacesDir, getStructuralContextProvider, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, getWearableConnector, hashActivityBody, hashTranscriptBody, hostIdForConnector, isEligibleActivityFact, isJournalDayPath, isLowQualitySegment, isPreferenceDriftStageActive, isReviewPrompt, isUntrustedOrigin, isValidActivityDate, isValidTranscriptDate, journalPath, listLocalSessionSourceAdapters, listReviewItems, listSpaces, listTrainingExportAdapters, listWearableConnectors, loadCorrectionsFile, loadManifest, loadSyncState, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, meetingDayTag, meetingId, meetingSourceLabel, mergeSpaces, normalizeOriginUrl, observationsForExport, onboard, packReviewContext, packReviewContextStructural, parseActivityConfig, parseActivityDigest, parseActivityPrivacy, parseDayTranscript, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseMeetingsConfig, parseOriginClass, parseTouchedFiles, parseTranscriptSegmentLine, parseWearablesConfig, performReview, persistImportedSkills, probeStructuralProviderForDoctor, projectNamespaceName, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, queryTimelineRange, queryTimelineSearch, rankReviewCandidates, readForkLineage, readManifest, readPreferenceDriftMarker, readRelayMission, readReviewDeckRow, readReviewDeckSnapshot, readSkillBundlesFromDir, reconstructFusionInputs, redactSessionSummaryText, redactText, reduceRelayMission, refreshActivityIndex, registerLocalSessionSourceAdapter, registerPublisher, registerStructuralContextProvider, registerTrainingExportAdapter, registerWearableConnector, relayMissionAppendOperation, relayMissionReadOperation, relayMissionReceiptDigest, renderAuthorityFence, renderDeterministicJournal, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, resolvePreferenceDrift, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runMeetingsCliCommand, runOkfCliCommand, runPreferenceDriftScan, runTimelineCliCommand, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, screenCandidateFact, seedJournal, serializeActivityDigest, serializeDayTranscript, serializeTimelineDay, shareSpace, shouldRetain, sortTimelineCategories, stableHash, storageWearableDayReader, stripFillerTokens, structuralProviderActive, switchSpace, syncActivitySource, syncChanges, syncStateFilePath, timelineCorrectionDatabasePath, timezoneOffsetIso, toStructuralContextDegradation, todayJournalDate, unescapeSegmentText, unescapeSpeakerLabel, updateSourceSyncState, validateActivityBaseUrl, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, validateTimelineCategories, watchForChanges, withRawEntityPageMutation, writeManifest, writeMeetingEpisodeMemory };
8836
+ export { ACTIVITY_DIGEST_FORMAT_VERSION, ACTIVITY_DIR_NAME, ACTIVITY_SYNC_DEFAULT_INTERVAL_MS, ActivityConfig, ActivityDayDigest, ActivityDayMeta, ActivityHttpSourceClient, type ActivityHttpSourceClientOptions, type ActivityIndexRefresher, type ActivityMemoryGenerationDeps, type ActivityMemoryGenerationResult, type ActivityMemoryWriter, type ActivityPrivacyPolicy, ActivitySnapshot, ActivitySnapshotPage, ActivitySourceCheck, ActivitySourceClient, ActivityStore, type ActivitySyncOptions, type ActivitySyncRegistration, type ActivitySyncResult, ActivitySyncRunSummary, ActivitySyncScheduler, type ActivitySyncSchedulerOptions, ActivityTimelineQaConfig, ActivityWearablesMeetingsDaySource, type ApplyManagedRegionResult, type ArchitectureHintsResult, type AuditEntry, BUILT_IN_OFF_THE_RECORD_END, BUILT_IN_OFF_THE_RECORD_START, type BatchObservationsOptions, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, type CleanupResult, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type CollectLocalSessionSummariesOptions, type CompiledCorrectionRule, type CompiledOffTheRecordMarkers, type CompiledRedactionRule, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_MEETINGS_CONFIG, DEFAULT_MEETINGS_DETECTION_CONFIG, DEFAULT_MEETING_APP_PATTERNS, DEFAULT_PROXIMITY_GAP_MS, DEFAULT_REDACTION_RULES, DEFAULT_SCAN_PATTERNS, DEFAULT_SOURCE_TRUST, DEFAULT_TAXONOMY, DEFAULT_TIMELINE_CATEGORIES, DEFAULT_UNTRUSTED_ORIGINS, DEFAULT_WINDOW_TOLERANCE_MS, type DedupOptions, type DedupResult, DetectedMeeting, type DeterministicJournalOptions, DiscoveredExtension, type DocFile, DriftDetectionConfig, type DriftRankInput, type DriftRankOutput, type DriftRecallFrontmatter, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, EngramAccessService, type ExportSkillsResult, FallbackLlmClient, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, type FuseClusterResult, FusedDisagreement, FusedSegment, FusedSpeaker, FusionConversationInput, FusionDayResult, FusionOptions, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, INJECTION_SCREEN_THRESHOLD, type ImportSkillsResult, type IngestionPlan, type InjectionScreenFinding, type InjectionScreenResult, JOURNAL_DIR_NAME, type JournalSeedCard, JudgeCandidate, JudgeVerdict, KNOWN_WEARABLE_SOURCE_IDS, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, type LocalSessionAdapterInput, type LocalSessionAdapterOptions, type LocalSessionParseWarning, type LocalSessionParsedFile, type LocalSessionRole, type LocalSessionSourceAdapter, type LocalSessionSummaryCliOptions, type LocalSessionSummaryReport, type LocalSessionTurn, MEETING_SOURCE_PREFIX, MS_PER_DAY, MeetingAppSpan, MeetingAudioWindow, MeetingDayData, MeetingEpisodeGenResult, type MeetingFactCandidate, MeetingMemoryGenerator, type MeetingMemoryStorageIo, MeetingMemoryWriter, MeetingRecord, MeetingRecordStore, type MeetingSummaryDeps, type MeetingSummaryExtractor, type MeetingSummaryJudge, type MeetingSummaryResult, type MeetingsActivityReader, MeetingsBuildScheduler, type MeetingsBuildSchedulerOptions, MeetingsBuilder, type MeetingsCliDeps, type MeetingsCliIo, MeetingsConfig, MeetingsDaySource, MeetingsDetectionConfig, MeetingsDetectionInput, MeetingsInputError, type MeetingsWearableReader, MemoryCategory, MemoryDriftState, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OffTheRecordMarkerInput, OffTheRecordMarkerSettings, type OnboardOptions, type OnboardResult, type OriginClass, PUBLISHERS, type PackReviewContextStructuralInput, ParsedSkillBundle, type PersistDeterministicJournalInput, type PersistDeterministicJournalResult, type PersistWeeklySnapshotInput, type PersistWeeklySnapshotResult, type PipelineResult, PluginConfig, type PreferenceDriftClassification, type PreferenceDriftDependencies, type PreferenceDriftEvidence, type PreferenceDriftFinding, type PreferenceDriftMarker, type PreferenceDriftReport, type PreferenceDriftResolutionOptions, type PreferenceDriftResolutionResult, type PreferenceDriftSkipReason, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublishVaultRegionResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, RELAY_DEMO_MISSION_ID, RELAY_DEMO_NAMESPACE, RELAY_MISSION_DEFAULT_EVENT_LIMIT, RELAY_MISSION_MAX_EVENTS, RELAY_MISSION_MAX_EVENT_LIMIT, RELAY_MISSION_MAX_FILE_BYTES, RELAY_MISSION_MAX_LINE_BYTES, RELAY_MISSION_SCHEMA_VERSION, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, type ReadSkillBundle, type ReadVaultJournalInput, type ReadVaultJournalResult, type RedactionConfig, type RedactionReport, type RedactionRuleConfig, type RelayAgentOutputSnapshot, type RelayAgentSnapshot, type RelayConflictSnapshot, type RelayCorrectionSnapshot, type RelayDecisionSnapshot, type RelayEvidenceRef, RelayEvidenceRefSchema, type RelayMissionAppendAccessInput, type RelayMissionAppendAccessOutput, type RelayMissionAppendResult, type RelayMissionEvent, type RelayMissionEventInput, RelayMissionEventInputSchema, RelayMissionEventSchema, type RelayMissionPayload, RelayMissionPayloadSchema, type RelayMissionReadAccessInput, type RelayMissionReadAccessOutput, type RelayMissionReadOptions, RelayMissionReadOptionsSchema, type RelayMissionSnapshot, type RelayMissionStatus, RelayMissionStore, RelayMissionStoreError, type RelayMissionStoreErrorCode, type RelayMissionStoreOptions, type RelayPropagationSnapshot, type RelayRecallSnapshot, type RelayTestSnapshot, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, ReviewDeckSnapshot, ReviewDeckSourceRow, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type ScriptHint, SealedMemoryEnvelope, type SeedJournalInput, type SeedJournalResult, SemanticDedupLookup, type SessionSummaryDraft, type SessionSummaryExcerpt, SkillBundle, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, SpeakerRegistry, type StatementProvenance, StorageManager, type StructuralContextDegradation, type StructuralContextErrorCode, type StructuralContextProvider, type StructuralProviderStatus, type StructuralSpawnFn, type StructuralSymbol, type SubprocessProviderOptions, type SymbolsForDiffErr, type SymbolsForDiffOk, type SymbolsForDiffResult, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, TIMELINE_ANALYSIS_BATCH_OVERLAP, TIMELINE_ANALYSIS_BATCH_SIZE, TIMELINE_ANALYSIS_DEFAULT_TIMEOUT_MS, TIMELINE_ANALYSIS_PROMPT_VERSION, TIMELINE_FORMAT_VERSION, TIMELINE_MAX_DWELL_MS, TIMELINE_MERGE_GAP_MS, TIMELINE_RESERVED_IDLE, TIMELINE_RESERVED_PAUSE, TIMELINE_RESERVED_UNKNOWN, TRANSCRIPT_FORMAT_VERSION, Taxonomy, type TimelineAnalysisComplete, type TimelineAnalysisCompleteInput, TimelineAnalysisConfigError, type TimelineAnalysisInput, type TimelineAnalysisResult, type TimelineAnalysisStatus, type TimelineBatchObservation, type TimelineBuildInput, type TimelineCard, type TimelineCardKind, type TimelineCategory, type TimelineClassification, type TimelineCliDeps, type TimelineCliIo, type TimelineCompactCard, type TimelineCompactRange, type TimelineCorrection, TimelineCorrectionStore, type TimelineDay, type TimelineEvidenceRange, type TimelineManualEdit, type TimelineObservation, type TimelinePause, type TimelineQueryCard, type TimelineRangeFormat, type TimelineRangeQuery, type TimelineSearchQuery, type TimelineSearchResult, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TranscriptSegmentMatch, type TreeNode, WEARABLES_DIR_NAME, WEEKLY_ACTIVITY_FORMAT_VERSION, WEEKLY_SNAPSHOT_DIR, WEEKLY_SNAPSHOT_FORMAT_VERSION, WearableCleanupSettings, type WearableConnectorFactory, type WearableConnectorFactoryOptions, type WearableConnectorRegistration, WearableConversation, WearableCorrectionRule, type WearableDayBody, WearableDayTranscript, WearableDayTranscriptMeta, type WearableDayTranscriptStore, WearableFusionConfig, WearableSourceConnector, WearableSourceSettings, type WearableSourceSyncState, type WearableSyncStateFile, type WearablesCliIo, WearablesConfig, WearablesInputError, WearablesService, type WeeklyActivityOptions, type WeeklyActivitySummary, type WeeklyCategoryTotal, type WeeklyDayTotal, type WeeklyKindTotals, type WeeklyPreviousPeriodUnavailable, activityCursorKey, activityDayWindow, activityDigestPath, analyzeTimelineCards, appendRelayMissionEvent, applyCorrections, applyManagedRegion, applyOffTheRecord, applyPreferenceDriftRanking, applyTimelineCorrections, assertValidTimezone, batchObservations, bodyIsEscaped, branchNamespaceName, buildAudioWindows, buildPhraseMatcher, buildProcedureRecallSection, buildTimelineAnalysisPrompt, buildTimelineDay, buildWeeklyActivitySummary, builtInConnectorPackageSpecifier, classifyOrigin, classifyTimelineObservation, cleanConversation, clearStructuralContextProvidersForTest, clearTrainingExportAdapters, clearWearableConnectors, clusterConversations, collapseImmediateRepeats, collectLocalSessionSummaries, compareRelayEvents, compileCorrectionRule, compileCorrectionRules, compileOffTheRecordMarkers, compileRedactionPatterns, compileRedactionRules, composeActivityDigestBody, composeActivityDigestMeta, composeDayTranscriptBody, composeDayTranscriptMeta, composeMeetingEpisodeContent, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createMeetingMemoryGenerator, createMeetingMemoryWriter, createNotionConnector, createRelayMissionFixture, createSpace, createSubprocessStructuralProvider, curate, decodeTranscriptBody, defaultActivityConfig, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableFusionConfig, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, deriveAppSpans, describeCodingScope, describeErrorForOperator, describeStructuralProviderStatus, detectMeetings, detectScriptHints, driftAgeNote, emptyManifest, emptySyncState, ensureBuiltInWearableConnectors, escapeSegmentText, exportSkillBundles, findContradictions, findDuplicates, forkCapsule, fuseCluster, fuseDay, fusionInputsFromConversations, generateActivityMemories, generateContextTree, generateMeetingEpisodes, generateMeetingSummaryFacts, generateResolverDocument, getActiveSpace, getAuditLog, getLocalSessionSourceAdapter, getManifestPath, getSpacesDir, getStructuralContextProvider, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, getWearableConnector, hashActivityBody, hashTranscriptBody, hostIdForConnector, isEligibleActivityFact, isJournalDayPath, isLowQualitySegment, isPreferenceDriftStageActive, isReviewPrompt, isUntrustedOrigin, isValidActivityDate, isValidTranscriptDate, journalPath, listLocalSessionSourceAdapters, listReviewItems, listSpaces, listTrainingExportAdapters, listWearableConnectors, loadCorrectionsFile, loadManifest, loadSyncState, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, meetingDayTag, meetingId, meetingSourceLabel, mergeSpaces, normalizeOriginUrl, observationsForExport, onboard, packReviewContext, packReviewContextStructural, parseActivityConfig, parseActivityDigest, parseActivityPrivacy, parseDayTranscript, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseMeetingsConfig, parseOriginClass, parseTouchedFiles, parseTranscriptSegmentLine, parseWearablesConfig, performReview, persistDeterministicJournal, persistImportedSkills, persistWeeklySnapshot, probeStructuralProviderForDoctor, projectNamespaceName, promoteSpace, publishVaultRegion, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, queryTimelineRange, queryTimelineSearch, rankReviewCandidates, readForkLineage, readManifest, readPreferenceDriftMarker, readRelayMission, readReviewDeckRow, readReviewDeckSnapshot, readSkillBundlesFromDir, readVaultJournal, reconstructFusionInputs, redactSessionSummaryText, redactText, reduceRelayMission, refreshActivityIndex, registerLocalSessionSourceAdapter, registerPublisher, registerStructuralContextProvider, registerTrainingExportAdapter, registerWearableConnector, relayMissionAppendOperation, relayMissionReadOperation, relayMissionReceiptDigest, renderAuthorityFence, renderDeterministicJournal, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, resolvePreferenceDrift, resolveVaultNotePath, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runMeetingsCliCommand, runOkfCliCommand, runPreferenceDriftScan, runTimelineCliCommand, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, screenCandidateFact, seedJournal, serializeActivityDigest, serializeDayTranscript, serializeTimelineDay, shareSpace, shouldRetain, sortTimelineCategories, stableHash, storageWearableDayReader, stripFillerTokens, stripRemnicOwnedRegions, structuralProviderActive, switchSpace, syncActivitySource, syncChanges, syncStateFilePath, timelineCorrectionDatabasePath, timezoneOffsetIso, toStructuralContextDegradation, todayJournalDate, unescapeSegmentText, unescapeSpeakerLabel, updateSourceSyncState, validateActivityBaseUrl, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, validateTimelineCategories, watchForChanges, weeklySnapshotPath, withRawEntityPageMutation, writeJournalFile, writeManifest, writeMeetingEpisodeMemory };