@remnic/core 9.26.0 → 9.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/dist/access-admin-ops-surface.d.ts +13 -10
  2. package/dist/access-admin-ops-surface.js +43 -38
  3. package/dist/access-audit.js +2 -2
  4. package/dist/access-authorization-probe.d.ts +13 -10
  5. package/dist/access-authorization-probe.js +44 -39
  6. package/dist/access-boundary.d.ts +13 -10
  7. package/dist/access-boundary.js +43 -38
  8. package/dist/access-cli.js +100 -94
  9. package/dist/access-cli.js.map +1 -1
  10. package/dist/access-health-types.d.ts +10 -1
  11. package/dist/access-http-lcm-compaction.d.ts +13 -10
  12. package/dist/access-http.d.ts +13 -10
  13. package/dist/access-http.js +53 -48
  14. package/dist/access-identity-continuity-surface.d.ts +9 -8
  15. package/dist/access-identity-continuity-surface.js +43 -38
  16. package/dist/access-lcm-surface.d.ts +13 -10
  17. package/dist/access-lcm-surface.js +43 -38
  18. package/dist/access-mcp.d.ts +13 -10
  19. package/dist/access-mcp.js +48 -43
  20. package/dist/access-memory-search-fanout.d.ts +2 -2
  21. package/dist/{access-namespace-preflight-wRSZEO5V.d.ts → access-namespace-preflight-BiQ_-iUJ.d.ts} +1 -1
  22. package/dist/access-namespace-preflight.d.ts +3 -3
  23. package/dist/access-namespace-preflight.js +43 -38
  24. package/dist/access-observe-write-surface.d.ts +13 -10
  25. package/dist/access-observe-write-surface.js +43 -38
  26. package/dist/access-operations-batch.js +45 -40
  27. package/dist/access-operations.d.ts +16 -13
  28. package/dist/access-operations.js +47 -42
  29. package/dist/access-recall-concurrency.d.ts +13 -10
  30. package/dist/access-recall-concurrency.js +43 -38
  31. package/dist/access-recall-response.d.ts +13 -10
  32. package/dist/access-recall-response.js +43 -38
  33. package/dist/access-recall-surface.d.ts +13 -10
  34. package/dist/access-recall-surface.js +43 -38
  35. package/dist/access-schema.d.ts +80 -80
  36. package/dist/access-schema.js +4 -4
  37. package/dist/{access-service-DL8FJnTj.d.ts → access-service-CXkIgcGh.d.ts} +12 -8
  38. package/dist/access-service.d.ts +13 -10
  39. package/dist/access-service.js +43 -38
  40. package/dist/access-surface-catalog.d.ts +13 -10
  41. package/dist/access-wearables-meetings-surface.d.ts +4 -3
  42. package/dist/action-confidence.d.ts +1 -1
  43. package/dist/active-memory-bridge.d.ts +1 -1
  44. package/dist/active-recall.d.ts +1 -1
  45. package/dist/active-recall.js +4 -2
  46. package/dist/active-recall.js.map +1 -1
  47. package/dist/adapters/index.js +7 -7
  48. package/dist/adapters/registry.js +3 -3
  49. package/dist/behavior-learner.d.ts +1 -1
  50. package/dist/behavior-signals.d.ts +1 -1
  51. package/dist/bootstrap.d.ts +9 -8
  52. package/dist/briefing.d.ts +3 -2
  53. package/dist/briefing.js +12 -10
  54. package/dist/buffer-surprise-report.d.ts +1 -1
  55. package/dist/buffer.d.ts +3 -2
  56. package/dist/bulk-import/index.d.ts +3 -3
  57. package/dist/calibration.d.ts +1 -1
  58. package/dist/capabilities.d.ts +1 -1
  59. package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-7FJQINUR.js} +2 -2
  60. package/dist/{catalog-BLLxZ5L5.d.ts → catalog-Bouj8Gfg.d.ts} +1 -1
  61. package/dist/causal-behavior.d.ts +1 -1
  62. package/dist/causal-consolidation.d.ts +1 -1
  63. package/dist/causal-consolidation.js +13 -11
  64. package/dist/causal-consolidation.js.map +1 -1
  65. package/dist/causal-trajectory-graph.d.ts +1 -1
  66. package/dist/{chunk-7RZJWZ46.js → chunk-227UFSEQ.js} +5 -5
  67. package/dist/{chunk-VGEH3STZ.js → chunk-2BEJ4XCF.js} +2 -2
  68. package/dist/{chunk-LIIQPDFN.js → chunk-2FYNLDKJ.js} +24 -3
  69. package/dist/chunk-2FYNLDKJ.js.map +1 -0
  70. package/dist/{chunk-BXLOS5AJ.js → chunk-2NLLXCJG.js} +2 -2
  71. package/dist/{chunk-6NNNURLK.js → chunk-2PHX3I5C.js} +8 -8
  72. package/dist/{chunk-YN4AUGNF.js → chunk-2TQ2UFKH.js} +65 -60
  73. package/dist/chunk-2TQ2UFKH.js.map +1 -0
  74. package/dist/{chunk-XAAIUXJO.js → chunk-3BSJBIZ3.js} +2 -2
  75. package/dist/{chunk-JCVQV6QX.js → chunk-3UOSVTFR.js} +11 -11
  76. package/dist/{chunk-AJ7QCSIS.js → chunk-7CPOZH6Y.js} +2 -2
  77. package/dist/{chunk-EXM2Q555.js → chunk-AHFZXUZM.js} +7 -5
  78. package/dist/chunk-AHFZXUZM.js.map +1 -0
  79. package/dist/{chunk-M2KGXXTL.js → chunk-ALTP3MFS.js} +2 -2
  80. package/dist/{chunk-77CNV7DY.js → chunk-BLAKS3CP.js} +4 -4
  81. package/dist/{chunk-FE5FKTCI.js → chunk-BR4UFMLO.js} +2 -2
  82. package/dist/chunk-CVILPI77.js +432 -0
  83. package/dist/chunk-CVILPI77.js.map +1 -0
  84. package/dist/{chunk-H2PBM562.js → chunk-DKQM5Q6Q.js} +2 -2
  85. package/dist/{chunk-CSXHRAJJ.js → chunk-EG64LXKL.js} +3 -3
  86. package/dist/{chunk-PTN6UAUA.js → chunk-ES36HTSC.js} +4 -4
  87. package/dist/{chunk-WMDRLTNA.js → chunk-EZWWCN7I.js} +2 -2
  88. package/dist/{chunk-XKGPIWGI.js → chunk-FBZTWUK5.js} +5 -5
  89. package/dist/{chunk-GJJBPI6I.js → chunk-FOCEI3TN.js} +6 -3
  90. package/dist/chunk-FOCEI3TN.js.map +1 -0
  91. package/dist/{chunk-Y6E37WRG.js → chunk-GJPCP5CA.js} +2 -2
  92. package/dist/{chunk-IHMXPG4P.js → chunk-GQSMYXKL.js} +6 -4
  93. package/dist/{chunk-IHMXPG4P.js.map → chunk-GQSMYXKL.js.map} +1 -1
  94. package/dist/{chunk-TGQ2NTWH.js → chunk-IJ6WHMFB.js} +16 -2
  95. package/dist/{chunk-TGQ2NTWH.js.map → chunk-IJ6WHMFB.js.map} +1 -1
  96. package/dist/{chunk-VDX2J7OX.js → chunk-IPLYGWQF.js} +6 -6
  97. package/dist/{chunk-XNUBF6RF.js → chunk-IYT632D5.js} +3 -3
  98. package/dist/{chunk-2QSZNTDO.js → chunk-JBPKEARU.js} +7 -7
  99. package/dist/{chunk-67DSDRUB.js → chunk-JIF3VRKQ.js} +8 -8
  100. package/dist/{chunk-V25OWXAC.js → chunk-JQ7T5VDC.js} +1 -1
  101. package/dist/chunk-JQ7T5VDC.js.map +1 -0
  102. package/dist/{chunk-MIFF37NN.js → chunk-KKBTBUVT.js} +2 -2
  103. package/dist/{chunk-ZHP4SUPB.js → chunk-LIHC3T43.js} +2 -2
  104. package/dist/{chunk-PX7VDW7R.js → chunk-MJPV4LBH.js} +79 -79
  105. package/dist/{chunk-PX7VDW7R.js.map → chunk-MJPV4LBH.js.map} +1 -1
  106. package/dist/{chunk-UGH6VPPO.js → chunk-MWTMTW2T.js} +2 -2
  107. package/dist/{chunk-F6LSNPPB.js → chunk-MXJ3VP6S.js} +6 -6
  108. package/dist/{chunk-KPWLZBXZ.js → chunk-NBNDVNJ2.js} +186 -25
  109. package/dist/chunk-NBNDVNJ2.js.map +1 -0
  110. package/dist/{chunk-M5EPMNS4.js → chunk-P2CLYN6H.js} +2 -2
  111. package/dist/{chunk-7XXCIO6X.js → chunk-PXQM2HOG.js} +13 -6
  112. package/dist/{chunk-7XXCIO6X.js.map → chunk-PXQM2HOG.js.map} +1 -1
  113. package/dist/{chunk-UZK7VVPD.js → chunk-Q5VJUNXA.js} +1858 -272
  114. package/dist/chunk-Q5VJUNXA.js.map +1 -0
  115. package/dist/{chunk-KGTD2KZJ.js → chunk-Q6YJW6KE.js} +2 -2
  116. package/dist/{chunk-X3SQYAPP.js → chunk-R372P2EH.js} +2 -2
  117. package/dist/{chunk-HBVOJNV4.js → chunk-RKXZ7P4V.js} +3 -3
  118. package/dist/chunk-RMMVQQA6.js +70 -0
  119. package/dist/chunk-RMMVQQA6.js.map +1 -0
  120. package/dist/{chunk-E6EAB4J6.js → chunk-S24E4MBQ.js} +14 -14
  121. package/dist/chunk-S24E4MBQ.js.map +1 -0
  122. package/dist/{chunk-RYHWZ52A.js → chunk-S2BBISHU.js} +4 -4
  123. package/dist/{chunk-LLISELSY.js → chunk-TBMRQZDY.js} +2 -2
  124. package/dist/{chunk-FMLKOL2Z.js → chunk-TC3VNKGX.js} +4 -4
  125. package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
  126. package/dist/{chunk-2XP3PWL3.js → chunk-UR5SIN7H.js} +53 -35
  127. package/dist/chunk-UR5SIN7H.js.map +1 -0
  128. package/dist/{chunk-NKDVXEFU.js → chunk-VFNI3RPT.js} +2 -2
  129. package/dist/chunk-VNA7W7QF.js +134 -0
  130. package/dist/chunk-VNA7W7QF.js.map +1 -0
  131. package/dist/{chunk-PQPSZICJ.js → chunk-VYYNBJXH.js} +5 -5
  132. package/dist/chunk-WNIUPHWV.js +152 -0
  133. package/dist/chunk-WNIUPHWV.js.map +1 -0
  134. package/dist/chunk-WRJVB3C2.js +118 -0
  135. package/dist/chunk-WRJVB3C2.js.map +1 -0
  136. package/dist/{chunk-SN3ZESWQ.js → chunk-WVVK2RFM.js} +6 -6
  137. package/dist/{chunk-DQEMWVMT.js → chunk-X7Y7WX73.js} +1 -1
  138. package/dist/{chunk-4KKV7W62.js → chunk-YOBNCD3Z.js} +6 -6
  139. package/dist/chunk-YXZG5TVN.js +40 -0
  140. package/dist/chunk-YXZG5TVN.js.map +1 -0
  141. package/dist/{chunk-4DJQYKMN.js → chunk-ZIKENA2C.js} +2 -2
  142. package/dist/chunk-ZIKENA2C.js.map +1 -0
  143. package/dist/{chunk-SK3EYPKC.js → chunk-ZN4UZWMT.js} +2 -2
  144. package/dist/{cli-BoouX6LX.d.ts → cli-DJbkaZBU.d.ts} +5 -5
  145. package/dist/cli.d.ts +14 -12
  146. package/dist/cli.js +79 -74
  147. package/dist/compounding/engine.d.ts +3 -2
  148. package/dist/compounding/engine.js +12 -10
  149. package/dist/compounding/preference-consolidator.d.ts +1 -1
  150. package/dist/compression-optimizer.d.ts +1 -1
  151. package/dist/config.d.ts +1 -1
  152. package/dist/config.js +4 -2
  153. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  154. package/dist/connectors/codex-materialize-runner.js +12 -10
  155. package/dist/connectors/codex-materialize.d.ts +1 -1
  156. package/dist/connectors/index.d.ts +1 -1
  157. package/dist/connectors/index.js +12 -10
  158. package/dist/consolidation-provenance-check.d.ts +3 -2
  159. package/dist/consolidation-undo.d.ts +3 -2
  160. package/dist/contradiction/index.d.ts +3 -2
  161. package/dist/conversation-index/backend.d.ts +1 -1
  162. package/dist/conversation-index/backend.js +2 -2
  163. package/dist/conversation-index/chunker.d.ts +1 -1
  164. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  165. package/dist/conversation-index/indexer.d.ts +1 -1
  166. package/dist/conversation-index/search.d.ts +1 -1
  167. package/dist/corpus-watermark.d.ts +15 -2
  168. package/dist/corpus-watermark.js +25 -21
  169. package/dist/day-summary.d.ts +1 -1
  170. package/dist/delinearize.d.ts +1 -1
  171. package/dist/direct-answer-wiring.d.ts +1 -1
  172. package/dist/direct-answer.d.ts +1 -1
  173. package/dist/embedding-fallback.d.ts +1 -1
  174. package/dist/enrichment/index.d.ts +1 -1
  175. package/dist/entity-id-normalization.d.ts +4 -0
  176. package/dist/entity-id-normalization.js +10 -0
  177. package/dist/entity-id-normalization.js.map +1 -0
  178. package/dist/entity-retrieval-boundaries.d.ts +3 -0
  179. package/dist/entity-retrieval-boundaries.js +8 -0
  180. package/dist/entity-retrieval-boundaries.js.map +1 -0
  181. package/dist/entity-retrieval.d.ts +3 -2
  182. package/dist/entity-retrieval.js +13 -10
  183. package/dist/entity-schema.d.ts +1 -1
  184. package/dist/entity-schema.js +1 -1
  185. package/dist/explicit-capture.d.ts +9 -8
  186. package/dist/extraction-error-classification.d.ts +1 -1
  187. package/dist/extraction-faithfulness.d.ts +1 -1
  188. package/dist/extraction-judge-telemetry.d.ts +1 -1
  189. package/dist/extraction-judge-training.d.ts +1 -1
  190. package/dist/extraction-judge.d.ts +1 -1
  191. package/dist/extraction-liveness.d.ts +1 -1
  192. package/dist/extraction.d.ts +1 -1
  193. package/dist/fallback-llm.d.ts +1 -1
  194. package/dist/{first-start-migration-LEXL3XYL.js → first-start-migration-BKNGOFED.js} +4 -4
  195. package/dist/graph-dashboard-diff.d.ts +1 -1
  196. package/dist/graph-dashboard-key.d.ts +1 -1
  197. package/dist/graph-dashboard-parser.d.ts +1 -1
  198. package/dist/graph-edge-reinforcement.d.ts +1 -1
  199. package/dist/graph-snapshot.d.ts +1 -1
  200. package/dist/graph.d.ts +1 -1
  201. package/dist/importance.d.ts +1 -1
  202. package/dist/importers/index.d.ts +1 -1
  203. package/dist/in-flight-reads.d.ts +1 -1
  204. package/dist/index.d.ts +409 -407
  205. package/dist/index.js +147 -141
  206. package/dist/intent.d.ts +1 -1
  207. package/dist/lcm/engine.d.ts +1 -1
  208. package/dist/lcm/engine.js +3 -3
  209. package/dist/lcm/index.d.ts +1 -1
  210. package/dist/lcm/index.js +9 -9
  211. package/dist/lcm/tools.d.ts +1 -1
  212. package/dist/lifecycle.d.ts +1 -1
  213. package/dist/live-connectors-runner.d.ts +1 -1
  214. package/dist/local-llm.d.ts +1 -1
  215. package/dist/local-model-endpoint.d.ts +1 -1
  216. package/dist/maintenance/memory-governance.d.ts +1 -1
  217. package/dist/maintenance/memory-governance.js +12 -10
  218. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
  219. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +12 -10
  220. package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
  221. package/dist/maintenance/rebuild-memory-projection.js +13 -11
  222. package/dist/{maintenance-DD22oIx9.d.ts → maintenance-DveW6azo.d.ts} +3 -3
  223. package/dist/mcp-memory-inspector-app.d.ts +13 -10
  224. package/dist/memory-action-policy.d.ts +1 -1
  225. package/dist/memory-cache.d.ts +1 -1
  226. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  227. package/dist/memory-projection-mutations.d.ts +4 -0
  228. package/dist/memory-projection-mutations.js +15 -0
  229. package/dist/memory-projection-mutations.js.map +1 -0
  230. package/dist/memory-projection-store.d.ts +1 -1
  231. package/dist/memory-provenance.d.ts +1 -1
  232. package/dist/memory-worth-outcomes.d.ts +3 -2
  233. package/dist/models-json.d.ts +1 -1
  234. package/dist/namespaces/migrate.d.ts +4 -3
  235. package/dist/namespaces/migrate.js +22 -20
  236. package/dist/namespaces/principal.d.ts +1 -1
  237. package/dist/namespaces/search.d.ts +1 -1
  238. package/dist/namespaces/search.js +9 -9
  239. package/dist/namespaces/storage.d.ts +4 -3
  240. package/dist/namespaces/storage.js +12 -10
  241. package/dist/native-knowledge.d.ts +1 -1
  242. package/dist/offline-sync-impression-drain.d.ts +1 -1
  243. package/dist/offline-sync-impression-drain.js +3 -3
  244. package/dist/operator-doctor-corpus.d.ts +22 -3
  245. package/dist/operator-doctor-corpus.js +32 -22
  246. package/dist/operator-doctor-replica.d.ts +52 -0
  247. package/dist/operator-doctor-replica.js +15 -0
  248. package/dist/operator-doctor-replica.js.map +1 -0
  249. package/dist/operator-toolkit.d.ts +7 -3
  250. package/dist/operator-toolkit.js +33 -27
  251. package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
  252. package/dist/orchestration/maintenance.d.ts +5 -4
  253. package/dist/orchestration/maintenance.js +17 -15
  254. package/dist/{orchestrator-CFJ_TG6D.d.ts → orchestrator-Cvlgpe6I.d.ts} +7 -7
  255. package/dist/orchestrator.d.ts +9 -8
  256. package/dist/orchestrator.js +99 -93
  257. package/dist/patterns-cli.d.ts +1 -1
  258. package/dist/{pipeline-Bq5zU6Bp.d.ts → pipeline-BveYVaz7.d.ts} +1 -1
  259. package/dist/policy-runtime.d.ts +1 -1
  260. package/dist/proactive-contention.d.ts +1 -1
  261. package/dist/provenance.d.ts +1 -1
  262. package/dist/{qmd-3ILJkC70.d.ts → qmd-CLWDsbYR.d.ts} +1 -1
  263. package/dist/qmd-preflight.d.ts +2 -2
  264. package/dist/qmd-recall-cache.d.ts +1 -1
  265. package/dist/qmd.d.ts +2 -2
  266. package/dist/recall-concurrency-config.d.ts +1 -1
  267. package/dist/recall-disclosure-escalation.d.ts +1 -1
  268. package/dist/recall-explain-renderer.d.ts +1 -1
  269. package/dist/recall-explain-renderer.js +3 -3
  270. package/dist/recall-memory-map.d.ts +1 -1
  271. package/dist/recall-planner-llm.d.ts +1 -1
  272. package/dist/recall-state.d.ts +1 -1
  273. package/dist/recall-state.js +2 -2
  274. package/dist/recall-tag-filter.d.ts +1 -1
  275. package/dist/recall-timings.d.ts +1 -1
  276. package/dist/recall-xray-cli.d.ts +1 -1
  277. package/dist/recall-xray-cli.js +4 -4
  278. package/dist/recall-xray-renderer.d.ts +1 -1
  279. package/dist/recall-xray-renderer.js +3 -3
  280. package/dist/recall-xray.d.ts +1 -1
  281. package/dist/recall-xray.js +2 -2
  282. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  283. package/dist/replay/normalizers/claude.d.ts +1 -1
  284. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  285. package/dist/replay/normalizers/shared.d.ts +1 -1
  286. package/dist/replay/runner.d.ts +1 -1
  287. package/dist/replay/types.d.ts +1 -1
  288. package/dist/replica-divergence.d.ts +279 -0
  289. package/dist/replica-divergence.js +28 -0
  290. package/dist/replica-divergence.js.map +1 -0
  291. package/dist/replica-peers-config.d.ts +5 -0
  292. package/dist/replica-peers-config.js +13 -0
  293. package/dist/replica-peers-config.js.map +1 -0
  294. package/dist/resolve-auth-token.d.ts +21 -2
  295. package/dist/resolve-auth-token.js +5 -1
  296. package/dist/resume-bundles.js +5 -3
  297. package/dist/retrieval-agents.d.ts +2 -2
  298. package/dist/retrieval-tiers.d.ts +1 -1
  299. package/dist/routing/engine.d.ts +1 -1
  300. package/dist/routing/store.d.ts +1 -1
  301. package/dist/salvage-envelope.d.ts +1 -1
  302. package/dist/schemas.d.ts +76 -76
  303. package/dist/{scope-profiles-D0-ff4xT.d.ts → scope-profiles-BVf3DZ7z.d.ts} +1 -1
  304. package/dist/search/embed-helper.d.ts +1 -1
  305. package/dist/search/factory.d.ts +1 -1
  306. package/dist/search/factory.js +8 -8
  307. package/dist/search/index.d.ts +1 -1
  308. package/dist/search/index.js +13 -13
  309. package/dist/search/lancedb-backend.d.ts +1 -1
  310. package/dist/search/lancedb-backend.js +2 -2
  311. package/dist/search/meilisearch-backend.d.ts +1 -1
  312. package/dist/search/meilisearch-backend.js +2 -2
  313. package/dist/search/noop-backend.d.ts +1 -1
  314. package/dist/search/orama-backend.d.ts +1 -1
  315. package/dist/search/orama-backend.js +2 -2
  316. package/dist/search/port.d.ts +1 -1
  317. package/dist/search/remote-backend.d.ts +1 -1
  318. package/dist/{semantic-consolidation-4Tfh7c1g.d.ts → semantic-consolidation-DXLV47y2.d.ts} +1 -1
  319. package/dist/semantic-consolidation.d.ts +2 -2
  320. package/dist/semantic-consolidation.js +13 -11
  321. package/dist/semantic-rule-promotion.js +12 -10
  322. package/dist/semantic-rule-verifier.d.ts +1 -1
  323. package/dist/semantic-rule-verifier.js +12 -10
  324. package/dist/{service-Z8uzoAST.d.ts → service-DbgPTeMJ.d.ts} +2 -2
  325. package/dist/session-observer-bands.d.ts +1 -1
  326. package/dist/session-observer-state.d.ts +1 -1
  327. package/dist/shared-context/manager.d.ts +9 -9
  328. package/dist/signal.d.ts +1 -1
  329. package/dist/{storage-BZVMn8yJ.d.ts → storage-DOzTm8wG.d.ts} +13 -22
  330. package/dist/storage.d.ts +3 -2
  331. package/dist/storage.js +13 -10
  332. package/dist/summarizer.d.ts +1 -1
  333. package/dist/summary-snapshot.d.ts +1 -1
  334. package/dist/temporal-supersession.d.ts +3 -2
  335. package/dist/temporal-timeline-recall.d.ts +1 -1
  336. package/dist/temporal-validity.d.ts +1 -1
  337. package/dist/threading.d.ts +1 -1
  338. package/dist/tier-migration.d.ts +3 -2
  339. package/dist/tier-routing.d.ts +1 -1
  340. package/dist/topics.d.ts +1 -1
  341. package/dist/transcript.d.ts +1 -1
  342. package/dist/transfer/autodetect.js +1 -1
  343. package/dist/transfer/backup.js +2 -2
  344. package/dist/transfer/capsule-export.js +3 -3
  345. package/dist/transfer/capsule-import.js +2 -2
  346. package/dist/transfer/types.d.ts +66 -66
  347. package/dist/trust-score-stage.d.ts +1 -1
  348. package/dist/trust-score.d.ts +1 -1
  349. package/dist/{types-DHBxIF0s.d.ts → types-BA7W-_xy.d.ts} +53 -4
  350. package/dist/types.d.ts +1 -1
  351. package/dist/types.js +1 -1
  352. package/dist/utility-runtime.d.ts +1 -1
  353. package/dist/verified-recall.js +12 -10
  354. package/dist/write-envelope.d.ts +1 -1
  355. package/package.json +2 -2
  356. package/src/access-health-types.ts +8 -0
  357. package/src/access-http.test.ts +4 -0
  358. package/src/access-service-health.test.ts +23 -0
  359. package/src/access-service.ts +27 -4
  360. package/src/cli.ts +9 -7
  361. package/src/config.ts +2 -1
  362. package/src/corpus-watermark.test.ts +21 -0
  363. package/src/corpus-watermark.ts +25 -3
  364. package/src/entity-id-normalization.ts +55 -0
  365. package/src/entity-retrieval-boundaries.ts +134 -0
  366. package/src/entity-retrieval.ts +253 -27
  367. package/src/entity-schema.ts +2 -1
  368. package/src/memory-projection-mutations.ts +132 -0
  369. package/src/namespaces/storage.ts +5 -3
  370. package/src/operator-doctor-corpus.ts +41 -0
  371. package/src/operator-doctor-replica.test.ts +261 -0
  372. package/src/operator-doctor-replica.ts +129 -0
  373. package/src/operator-toolkit.ts +5 -4
  374. package/src/orchestration/orchestrator-init.ts +2 -2
  375. package/src/replica-divergence.test.ts +1475 -0
  376. package/src/replica-divergence.ts +910 -0
  377. package/src/replica-peers-config.ts +250 -0
  378. package/src/resolve-auth-token.ts +38 -0
  379. package/src/storage/entity-canonical-id-migration-adapter.ts +72 -0
  380. package/src/storage/entity-canonical-id-migration-runner.ts +68 -0
  381. package/src/storage/entity-canonical-id-migration.ts +904 -0
  382. package/src/storage/entity-store.ts +44 -0
  383. package/src/storage/memory-frontmatter-metadata.ts +17 -0
  384. package/src/storage/memory-migration-serialization.ts +37 -0
  385. package/src/storage/memory-read-store.ts +3 -2
  386. package/src/storage/profile-header.ts +898 -0
  387. package/src/storage-profile-timestamp.test.ts +3358 -0
  388. package/src/storage.ts +73 -77
  389. package/src/testing/subjects/profile-header-write.test.ts +71 -0
  390. package/src/types.ts +3 -3
  391. package/dist/chunk-2XP3PWL3.js.map +0 -1
  392. package/dist/chunk-4DJQYKMN.js.map +0 -1
  393. package/dist/chunk-E6EAB4J6.js.map +0 -1
  394. package/dist/chunk-EXM2Q555.js.map +0 -1
  395. package/dist/chunk-GJJBPI6I.js.map +0 -1
  396. package/dist/chunk-KPWLZBXZ.js.map +0 -1
  397. package/dist/chunk-LIIQPDFN.js.map +0 -1
  398. package/dist/chunk-UZK7VVPD.js.map +0 -1
  399. package/dist/chunk-V25OWXAC.js.map +0 -1
  400. package/dist/chunk-YN4AUGNF.js.map +0 -1
  401. /package/dist/{capsule-crypto-YO5QJ6L3.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
  402. /package/dist/{chunk-7RZJWZ46.js.map → chunk-227UFSEQ.js.map} +0 -0
  403. /package/dist/{chunk-VGEH3STZ.js.map → chunk-2BEJ4XCF.js.map} +0 -0
  404. /package/dist/{chunk-BXLOS5AJ.js.map → chunk-2NLLXCJG.js.map} +0 -0
  405. /package/dist/{chunk-6NNNURLK.js.map → chunk-2PHX3I5C.js.map} +0 -0
  406. /package/dist/{chunk-XAAIUXJO.js.map → chunk-3BSJBIZ3.js.map} +0 -0
  407. /package/dist/{chunk-JCVQV6QX.js.map → chunk-3UOSVTFR.js.map} +0 -0
  408. /package/dist/{chunk-AJ7QCSIS.js.map → chunk-7CPOZH6Y.js.map} +0 -0
  409. /package/dist/{chunk-M2KGXXTL.js.map → chunk-ALTP3MFS.js.map} +0 -0
  410. /package/dist/{chunk-77CNV7DY.js.map → chunk-BLAKS3CP.js.map} +0 -0
  411. /package/dist/{chunk-FE5FKTCI.js.map → chunk-BR4UFMLO.js.map} +0 -0
  412. /package/dist/{chunk-H2PBM562.js.map → chunk-DKQM5Q6Q.js.map} +0 -0
  413. /package/dist/{chunk-CSXHRAJJ.js.map → chunk-EG64LXKL.js.map} +0 -0
  414. /package/dist/{chunk-PTN6UAUA.js.map → chunk-ES36HTSC.js.map} +0 -0
  415. /package/dist/{chunk-WMDRLTNA.js.map → chunk-EZWWCN7I.js.map} +0 -0
  416. /package/dist/{chunk-XKGPIWGI.js.map → chunk-FBZTWUK5.js.map} +0 -0
  417. /package/dist/{chunk-Y6E37WRG.js.map → chunk-GJPCP5CA.js.map} +0 -0
  418. /package/dist/{chunk-VDX2J7OX.js.map → chunk-IPLYGWQF.js.map} +0 -0
  419. /package/dist/{chunk-XNUBF6RF.js.map → chunk-IYT632D5.js.map} +0 -0
  420. /package/dist/{chunk-2QSZNTDO.js.map → chunk-JBPKEARU.js.map} +0 -0
  421. /package/dist/{chunk-67DSDRUB.js.map → chunk-JIF3VRKQ.js.map} +0 -0
  422. /package/dist/{chunk-MIFF37NN.js.map → chunk-KKBTBUVT.js.map} +0 -0
  423. /package/dist/{chunk-ZHP4SUPB.js.map → chunk-LIHC3T43.js.map} +0 -0
  424. /package/dist/{chunk-UGH6VPPO.js.map → chunk-MWTMTW2T.js.map} +0 -0
  425. /package/dist/{chunk-F6LSNPPB.js.map → chunk-MXJ3VP6S.js.map} +0 -0
  426. /package/dist/{chunk-M5EPMNS4.js.map → chunk-P2CLYN6H.js.map} +0 -0
  427. /package/dist/{chunk-KGTD2KZJ.js.map → chunk-Q6YJW6KE.js.map} +0 -0
  428. /package/dist/{chunk-X3SQYAPP.js.map → chunk-R372P2EH.js.map} +0 -0
  429. /package/dist/{chunk-HBVOJNV4.js.map → chunk-RKXZ7P4V.js.map} +0 -0
  430. /package/dist/{chunk-RYHWZ52A.js.map → chunk-S2BBISHU.js.map} +0 -0
  431. /package/dist/{chunk-LLISELSY.js.map → chunk-TBMRQZDY.js.map} +0 -0
  432. /package/dist/{chunk-FMLKOL2Z.js.map → chunk-TC3VNKGX.js.map} +0 -0
  433. /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
  434. /package/dist/{chunk-NKDVXEFU.js.map → chunk-VFNI3RPT.js.map} +0 -0
  435. /package/dist/{chunk-PQPSZICJ.js.map → chunk-VYYNBJXH.js.map} +0 -0
  436. /package/dist/{chunk-SN3ZESWQ.js.map → chunk-WVVK2RFM.js.map} +0 -0
  437. /package/dist/{chunk-DQEMWVMT.js.map → chunk-X7Y7WX73.js.map} +0 -0
  438. /package/dist/{chunk-4KKV7W62.js.map → chunk-YOBNCD3Z.js.map} +0 -0
  439. /package/dist/{chunk-SK3EYPKC.js.map → chunk-ZN4UZWMT.js.map} +0 -0
  440. /package/dist/{first-start-migration-LEXL3XYL.js.map → first-start-migration-BKNGOFED.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { PluginEntryResolverOptions, resolvePluginEntry } from './plugin-entry-r
2
2
  export { isOpenaiApiKeyDisabled, parseConfig, resolveEnvVars } from './config.js';
3
3
  export { resolveRemnicConfigRecord } from './config-record.js';
4
4
  export { MigrationOptions, MigrationResult, RollbackResult, migrateFromEngram, rollbackFromEngramMigration } from './migrate/from-engram.js';
5
- export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-CFJ_TG6D.js';
5
+ export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-Cvlgpe6I.js';
6
6
  export { normalizeProjectionPreview, normalizeProjectionTags } from './memory-projection-format.js';
7
7
  export { ModelCapabilities, ModelRegistry } from './model-registry.js';
8
8
  export { ACTIVE_STATUSES, ContradictionFilter, ContradictionJudgeBatchResult, ContradictionJudgeInput, ContradictionJudgeResult, ContradictionListResult, ContradictionVerdict, ResolutionResult, ResolutionVerb, ScanDependencies, ScanResult, computePairId, executeResolution, isCoolingDown, isValidResolutionVerb, judgeContradictionPairs, listPairs, readPair, resolvePair, runContradictionScan, writePair, writePairs } from './contradiction/index.js';
@@ -12,8 +12,8 @@ export { TargetedFactRecallOptions, buildTargetedFactRecallSection, shouldRecall
12
12
  export { FocusedListRecallOptions, buildFocusedListRecallSection, shouldRecallFocusedListEvidence } from './focused-list-recall.js';
13
13
  export { ResponseGuidanceRecallOptions, buildResponseGuidanceRecallSection, shouldRecallResponseGuidance } from './response-guidance-recall.js';
14
14
  export { EventOrderRecallOptions, buildEventOrderRecallSection, shouldRecallEventOrderEvidence } from './event-order-recall.js';
15
- import { S as StorageManager, a as MeetingRecordStore } from './storage-BZVMn8yJ.js';
16
- export { C as ContentHashIndex, c as FUSION_KIND, d as MEETINGS_DIR_NAME, e as MEETING_FORMAT_VERSION, f as MEETING_KIND, g as MeetingRecordBase, h as MeetingRecordFileIo, b as MeetingRecordSummary, i as MeetingSaveResult, M as MemoryWriteResult, j as composeFusionDayMeta, k as composeMeetingRecord, l as hashFusionBody, m as meetingIdDate, p as parseEntityFile, n as parseFusionDay, o as parseMeetingRecordSummary, s as serializeEntityFile, q as serializeFusionDay, r as serializeMeetingRecord } from './storage-BZVMn8yJ.js';
15
+ import { S as StorageManager, a as MeetingRecordStore } from './storage-DOzTm8wG.js';
16
+ export { C as ContentHashIndex, c as FUSION_KIND, d as MEETINGS_DIR_NAME, e as MEETING_FORMAT_VERSION, f as MEETING_KIND, g as MeetingRecordBase, h as MeetingRecordFileIo, b as MeetingRecordSummary, i as MeetingSaveResult, M as MemoryWriteResult, j as composeFusionDayMeta, k as composeMeetingRecord, l as hashFusionBody, m as meetingIdDate, p as parseEntityFile, n as parseFusionDay, o as parseMeetingRecordSummary, s as serializeEntityFile, q as serializeFusionDay, r as serializeMeetingRecord } from './storage-DOzTm8wG.js';
17
17
  import { SealedMemoryEnvelope } from './write-envelope.js';
18
18
  export { AccessWriteFingerprintParts, ComposeEnvelopeOptions, FINGERPRINT_EXEMPT_FIELDS, FINGERPRINT_SCOPE_FIELDS, FingerprintScope, MemoryWriteInput, ObserveFingerprintParts, STRUCTURED_ATTRIBUTE_LIMITS, TAG_LIMITS, WRITE_FINGERPRINT_FIELDS, WriteContext, buildAccessWriteRequestFingerprint, buildObserveRequestFingerprint, buildWriteIdempotencyPayload, composeMemoryEnvelope, isSealedMemoryEnvelope, sealedWriteToLegacyArgs } from './write-envelope.js';
19
19
  export { HostEmbeddingInputType, HostEmbeddingProvider, getHostEmbeddingProvider, normalizeHostEmbeddingVector, registerHostEmbeddingProvider } from './host-embedding-provider.js';
@@ -22,13 +22,13 @@ export { CodexCliFallbackConfig, CodexCliFallbackMessage, CodexCliFallbackOption
22
22
  export { BufferSurpriseProbe, SmartBuffer, TriggerDecision } from './buffer.js';
23
23
  export { ComputeSurpriseOptions, DEFAULT_SURPRISE_K, RecentMemoryLike, computeSurprise } from './buffer-surprise.js';
24
24
  export { BufferSurpriseDistribution, BufferSurpriseReader, BufferSurpriseReportOptions, reportBufferSurpriseDistribution } from './buffer-surprise-report.js';
25
- import { b5 as CodingContext, bb as CodingModeConfig, b2 as FusionConversationInput, bc as FusedSpeaker, bd as FusedSegment, be as FusedDisagreement, bf as FusionOptions, aR as WearableConversation, bg as FusionDayResult, P as PluginConfig, bh as CodingKnowledgeConfig, t as MemoryCategory, bi as WearableCleanupSettings, bj as WearableFusionConfig, aS as WearableSourceSettings, aW as WearablesConfig, aV as WearableSourceConnector, a_ as WearableCorrectionRule, bk as WearableDayTranscriptMeta, aZ as WearableDayTranscript, ay as ActivitySnapshot, bl as ActivityDayMeta, bm as ActivityDayDigest, aB as ActivitySourceClient, bn as ActivitySourceCheck, bo as ActivitySnapshotPage, az as ActivityConfig, x as ExtractionResult, u as MemoryStatus, aj as ImportanceScore, bp as MeetingsDetectionConfig, b1 as MeetingsDetectionInput, b4 as DetectedMeeting, b0 as MeetingsConfig, aF as MeetingRecord, bq as MeetingAudioWindow, br as MeetingAppSpan } from './types-DHBxIF0s.js';
26
- export { bs as ActivityExtractionMode, aA as ActivitySourceConfig, a8 as AgentAccessAuthToken, g as BriefingActiveThread, bt as BriefingConfig, e as BriefingFocus, d as BriefingFollowup, bu as BriefingOpenCommitment, i as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bv as BriefingWindow, a2 as BufferSurpriseEvent, bw as BulkImportError, a4 as BulkImportOptions, a6 as BulkImportResult, a5 as BulkImportSource, bx as BulkImportSourceAdapter, f as CalendarEvent, C as CalendarSource, by as CodexCompatConfig, ba as ConsolidationObservation, bz as DEFAULT_RECALL_DISCLOSURE, bA as DisagreementKind, E as EntityFile, ai as EntityStructuredSection, bB as ExtractedFact, bC as FusedContribution, bD as FusedConversationProvenance, aE as FusedDayFile, aD as FusedDayMeta, aH as FusedMeeting, bE as FusedSegmentProvenance, aC as FusedWearableConversation, bF as FusionSegmentInput, G as GatewayConfig, bG as ImportSourceRole, a3 as ImportTurn, bH as ImportTurnValidationIssue, b3 as MeetingActivitySnapshot, a$ as MeetingBuildInput, aG as MeetingDetectionSource, bI as MeetingScreenContextEvent, bJ as MeetingSummaryMode, al as MemoryActionEligibilityContext, bK as MemoryActionEligibilitySource, ac as MemoryActionType, M as MemoryFile, l as MemoryFrontmatter, bL as MemoryObservation, bM as MemoryScope, bN as RECALL_DISCLOSURE_LEVELS, b as RecallDisclosure, a7 as SecretRef, bO as SegmentPickReason, bP as WearableAuthCheck, bQ as WearableFetchOptions, bR as WearableFetchPage, aU as WearableMemoryMode, aT as WearableNativeMemory, bS as WearableNativeMemoryPage, aY as WearableSourceStatus, aX as WearableSyncSummary, bT as WearableTranscriptSegment, bU as isImportRole, bV as isRecallDisclosure, bW as parseIsoTimestamp, bX as validateImportTurn } from './types-DHBxIF0s.js';
25
+ import { b7 as CodingContext, bd as CodingModeConfig, b4 as FusionConversationInput, be as FusedSpeaker, bf as FusedSegment, bg as FusedDisagreement, bh as FusionOptions, aT as WearableConversation, bi as FusionDayResult, P as PluginConfig, bj as CodingKnowledgeConfig, v as MemoryCategory, bk as WearableCleanupSettings, bl as WearableFusionConfig, aU as WearableSourceSettings, aY as WearablesConfig, aX as WearableSourceConnector, b0 as WearableCorrectionRule, bm as WearableDayTranscriptMeta, a$ as WearableDayTranscript, aA as ActivitySnapshot, bn as ActivityDayMeta, bo as ActivityDayDigest, aD as ActivitySourceClient, bp as ActivitySourceCheck, bq as ActivitySnapshotPage, aB as ActivityConfig, z as ExtractionResult, w as MemoryStatus, al as ImportanceScore, br as MeetingsDetectionConfig, b3 as MeetingsDetectionInput, b6 as DetectedMeeting, b2 as MeetingsConfig, aH as MeetingRecord, bs as MeetingAudioWindow, bt as MeetingAppSpan } from './types-BA7W-_xy.js';
26
+ export { bu as ActivityExtractionMode, aC as ActivitySourceConfig, t as AgentAccessAuthToken, g as BriefingActiveThread, bv as BriefingConfig, e as BriefingFocus, d as BriefingFollowup, bw as BriefingOpenCommitment, i as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bx as BriefingWindow, a6 as BufferSurpriseEvent, by as BulkImportError, a8 as BulkImportOptions, aa as BulkImportResult, a9 as BulkImportSource, bz as BulkImportSourceAdapter, f as CalendarEvent, C as CalendarSource, bA as CodexCompatConfig, bc as ConsolidationObservation, bB as DEFAULT_RECALL_DISCLOSURE, bC as DisagreementKind, E as EntityFile, ak as EntityStructuredSection, bD as ExtractedFact, bE as FusedContribution, bF as FusedConversationProvenance, aG as FusedDayFile, aF as FusedDayMeta, aJ as FusedMeeting, bG as FusedSegmentProvenance, aE as FusedWearableConversation, bH as FusionSegmentInput, G as GatewayConfig, bI as ImportSourceRole, a7 as ImportTurn, bJ as ImportTurnValidationIssue, b5 as MeetingActivitySnapshot, b1 as MeetingBuildInput, aI as MeetingDetectionSource, bK as MeetingScreenContextEvent, bL as MeetingSummaryMode, an as MemoryActionEligibilityContext, bM as MemoryActionEligibilitySource, ae as MemoryActionType, M as MemoryFile, l as MemoryFrontmatter, bN as MemoryObservation, bO as MemoryScope, bP as RECALL_DISCLOSURE_LEVELS, b as RecallDisclosure, s as SecretRef, bQ as SegmentPickReason, bR as WearableAuthCheck, bS as WearableFetchOptions, bT as WearableFetchPage, aW as WearableMemoryMode, aV as WearableNativeMemory, bU as WearableNativeMemoryPage, a_ as WearableSourceStatus, aZ as WearableSyncSummary, bV as WearableTranscriptSegment, bW as isImportRole, bX as isRecallDisclosure, bY as parseIsoTimestamp, bZ as validateImportTurn } from './types-BA7W-_xy.js';
27
27
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
28
28
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
29
29
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
30
- import { d as EngramAccessService } from './access-service-DL8FJnTj.js';
31
- export { P as ProcedureStatsConfigSnapshot, B as ProcedureStatsRecent, F as ProcedureStatsReport, G as ProcedureStatusCounts, H as computeProcedureStats, I as formatProcedureStatsText } from './access-service-DL8FJnTj.js';
30
+ import { d as EngramAccessService } from './access-service-CXkIgcGh.js';
31
+ export { P as ProcedureStatsConfigSnapshot, B as ProcedureStatsRecent, F as ProcedureStatsReport, G as ProcedureStatusCounts, H as computeProcedureStats, I as formatProcedureStatsText } from './access-service-CXkIgcGh.js';
32
32
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
33
33
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
34
34
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -36,13 +36,13 @@ export { LcmMessagePartInput, LcmMessagePartKind, LcmMessagePartRow, MessagePart
36
36
  export { USER_BOUNDARY_SCOPES, USER_CONTEXT_SCOPES, USER_MODEL_CORE_QUESTION, USER_MODEL_DIMENSIONS, UserBoundaryScope, UserContextScope, UserModelCoverage, UserModelDimension, UserModelFacet, facetHasBoundary, isUserBoundaryScope, isUserContextScope, isUserModelDimension, normalizeUserContextScope, normalizeUserModelDimension, summarizeUserModelCoverage } from './user-model.js';
37
37
  export { BuildRetrievedMemoryProvenanceOptions, RetrievedMemoryCorrectionState, RetrievedMemoryProvenance, RetrievedMemorySafety, buildRetrievedMemoryProvenance, normalizeRetrievedMemoryProvenance, summarizeRetrievedMemoryProvenance } from './memory-provenance.js';
38
38
  export { CITATION_UNKNOWN, CitationContext, DEFAULT_CITATION_FORMAT, ParsedCitation, attachCitation, deriveSessionId, formatCitation, hasCitation, parseAllCitations, parseCitation, stripCitation } from './source-attribution.js';
39
- export { Q as QmdClient } from './qmd-3ILJkC70.js';
39
+ export { Q as QmdClient } from './qmd-CLWDsbYR.js';
40
40
  export { LanceDbBackend } from './search/lancedb-backend.js';
41
41
  export { OramaBackend } from './search/orama-backend.js';
42
42
  export { MeilisearchBackend } from './search/meilisearch-backend.js';
43
43
  export { buildEntityRecallSection } from './entity-retrieval.js';
44
44
  export { isNamespacePolicyCovered, resolvePrincipal } from './namespaces/principal.js';
45
- export { N as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatalogRebuildResult, e as NamespaceCatalogSkippedRoot, f as NamespaceDiscoverySource, b as NamespaceKind, a as NamespaceRecord, g as NamespaceTouchMetadata } from './catalog-BLLxZ5L5.js';
45
+ export { N as NamespaceCatalog, c as NamespaceCatalogFilter, d as NamespaceCatalogRebuildResult, e as NamespaceCatalogSkippedRoot, f as NamespaceDiscoverySource, b as NamespaceKind, a as NamespaceRecord, g as NamespaceTouchMetadata } from './catalog-Bouj8Gfg.js';
46
46
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
47
47
  export { storagePathHash } from './storage-paths.js';
48
48
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
@@ -71,8 +71,8 @@ export { initLogger, log } from './logger.js';
71
71
  export { b as SemanticDedupDecision, a as SemanticDedupHit, S as SemanticDedupLookup, c as SemanticDedupOptions, d as decideSemanticDedup } from './semantic-TddhF0y7.js';
72
72
  export { drainPendingImpressionsForOfflineSync, drainPendingLifecycleForOfflineSync } from './offline-sync-impression-drain.js';
73
73
  export { OFFLINE_SYNC_APPLY_MAX_BODY_BYTES, OFFLINE_SYNC_CHANGESET_FORMAT, OFFLINE_SYNC_FILE_CONTENT_MAX_CHUNK_BYTES, OFFLINE_SYNC_FILE_CONTENT_TRANSFER_CHUNK_BYTES, OFFLINE_SYNC_SNAPSHOT_BASE_MAX_BODY_BYTES, OFFLINE_SYNC_SNAPSHOT_FORMAT, OFFLINE_SYNC_STATE_VERSION, OfflineSyncApplyChangesetResult, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplySnapshotResult, OfflineSyncChange, OfflineSyncChangeset, OfflineSyncConflict, OfflineSyncFileContentChunk, OfflineSyncFileDigest, OfflineSyncFileRecord, OfflineSyncFileState, OfflineSyncFileTarget, OfflineSyncFileWriteTarget, OfflineSyncSnapshot, OfflineSyncState, applyOfflineSyncChangeset, applyOfflineSyncFileContentChunk, applyOfflineSyncSnapshot, buildOfflineSyncChangeset, buildOfflineSyncChangesetFromSnapshot, buildOfflineSyncSnapshot, buildOfflineSyncSnapshotForPaths, buildOfflineSyncSnapshotFromBase, compileOfflineSyncExcludeGlobs, defaultOfflineSyncStatePath, fileStatesFromSnapshot, globToRegExp, iterateOfflineSyncSnapshotFileRecords, normalizeOfflineSyncChangeset, normalizeOfflineSyncSnapshot, offlineSyncStateFromSnapshot, readOfflineSyncFileContentChunk, readOfflineSyncState, shouldPreferIncomingOfflineRuntimeFile, summarizeOfflineSyncChangeset, summarizeOfflineSyncPendingChanges, summarizeOfflineSyncPendingFiles, writeOfflineSyncState } from './offline-sync.js';
74
- import { D as DiscoveredExtension } from './semantic-consolidation-4Tfh7c1g.js';
75
- export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-4Tfh7c1g.js';
74
+ import { D as DiscoveredExtension } from './semantic-consolidation-DXLV47y2.js';
75
+ export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-DXLV47y2.js';
76
76
  export { ConnectorCapability, ConnectorInstance, ConnectorManifest, ConnectorRegistry, DoctorCheck, DoctorResult, InstallOptions, InstallResult, MARKETPLACE_MANIFEST_FILENAME, MARKETPLACE_SCHEMA_VERSION, MarketplaceConfig, MarketplaceEntry, MarketplaceInstallResult, MarketplaceInstallType, MarketplaceLogger, MarketplaceManifest, MarketplaceValidation, RemoveResult, checkMarketplaceManifest, coerceInstallExtension, doctorConnector, generateMarketplaceManifest, getConnectorToken, installConnector, installFromMarketplace, listConnectors, loadRegistry, removeConnector, saveRegistry, validateMarketplaceManifest, writeMarketplaceManifest } from './connectors/index.js';
77
77
  import { L as LiveConnector, S as SyncIncrementalResult } from './framework-CNDn2164.js';
78
78
  export { c as CONNECTOR_ID_PATTERN, C as ConnectorConfig, b as ConnectorCursor, a as ConnectorDocument, d as ConnectorDocumentSource, e as SyncIncrementalArgs, i as isValidConnectorId, p as persistableConnectorConfig, r as redactConnectorConfigSecrets } from './framework-CNDn2164.js';
@@ -87,12 +87,12 @@ import { T as Taxonomy, R as ResolverDecision } from './types-DJhqDJUV.js';
87
87
  export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
88
88
  export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, EnrichmentPipelineConfig, EnrichmentProvider, EnrichmentProviderConfig, EnrichmentProviderRegistry, EnrichmentResult, EntityEnrichmentInput, WebSearchFn, WebSearchProvider, WebSearchProviderOptions, appendAuditEntry, defaultEnrichmentPipelineConfig, readAuditLog, runEnrichmentPipeline } from './enrichment/index.js';
89
89
  export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
90
- export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-Bq5zU6Bp.js';
91
- export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-BoouX6LX.js';
92
- import { S as SpeakerRegistry, W as WearablesService, d as MeetingMemoryWriter, e as MeetingMemoryGenerator, f as MeetingEpisodeGenResult, g as MeetingsBuilder, h as MeetingsDaySource, i as MeetingDayData } from './service-Z8uzoAST.js';
93
- export { D as DEFAULT_SELF_NAME, j as MeetingBuildOutcome, k as MeetingFusionOptions, l as MeetingMemoryOutcome, m as MeetingsBuilderHooks, a as MeetingsDayBuildSummary, n as MeetingsDayFactGenResult, b as MeetingsGetResult, o as MeetingsListDay, c as MeetingsListResult, M as MeetingsService, p as MeetingsServiceDeps, R as ResolvedSpeaker, q as SpeakerOverride, r as WEARABLE_SOURCE_PREFIX, s as WearableDayTranscriptView, t as WearableMemoryGenDeps, u as WearableMemoryGenResult, v as WearableMemorySearchResult, w as WearableMemoryWriter, x as WearableSearchBackend, y as WearableStorageIo, z as WearableSyncDeps, A as WearableSyncOptions, B as WearableTranscriptSearchResult, C as WearablesServiceDeps, E as buildExtractionTurns, F as buildMeetingRecordsForDay, G as dateInTimezone, H as defaultTimezone, I as distinctSpeakerLabels, J as emptySpeakerRegistry, K as fuseMeeting, L as generateWearableMemories, N as importNativeMemories, O as loadSpeakerRegistry, P as locateTranscriptPath, Q as memoryStatusForMode, T as resolveSpeaker, U as resolveSyncDates, V as saveSpeakerRegistry, X as speakerRegistryKey, Y as speakersFilePath, Z as syncWearableSource, _ as wearableDayTag, $ as wearableSourceLabel, a0 as writeDailyDigestMemory } from './service-Z8uzoAST.js';
94
- import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-DD22oIx9.js';
95
- export { b as ActivitySourceRunItem, c as ActivitySyncRunOptions, d as activityDatabasePath, e as applyActivitySchema, f as ensureActivityStateDir, o as openActivityDatabase, r as resolveActivitySyncDates, g as runActivitySyncOnce } from './maintenance-DD22oIx9.js';
90
+ export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-BveYVaz7.js';
91
+ export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-DJbkaZBU.js';
92
+ import { S as SpeakerRegistry, W as WearablesService, d as MeetingMemoryWriter, e as MeetingMemoryGenerator, f as MeetingEpisodeGenResult, g as MeetingsBuilder, h as MeetingsDaySource, i as MeetingDayData } from './service-DbgPTeMJ.js';
93
+ export { D as DEFAULT_SELF_NAME, j as MeetingBuildOutcome, k as MeetingFusionOptions, l as MeetingMemoryOutcome, m as MeetingsBuilderHooks, a as MeetingsDayBuildSummary, n as MeetingsDayFactGenResult, b as MeetingsGetResult, o as MeetingsListDay, c as MeetingsListResult, M as MeetingsService, p as MeetingsServiceDeps, R as ResolvedSpeaker, q as SpeakerOverride, r as WEARABLE_SOURCE_PREFIX, s as WearableDayTranscriptView, t as WearableMemoryGenDeps, u as WearableMemoryGenResult, v as WearableMemorySearchResult, w as WearableMemoryWriter, x as WearableSearchBackend, y as WearableStorageIo, z as WearableSyncDeps, A as WearableSyncOptions, B as WearableTranscriptSearchResult, C as WearablesServiceDeps, E as buildExtractionTurns, F as buildMeetingRecordsForDay, G as dateInTimezone, H as defaultTimezone, I as distinctSpeakerLabels, J as emptySpeakerRegistry, K as fuseMeeting, L as generateWearableMemories, N as importNativeMemories, O as loadSpeakerRegistry, P as locateTranscriptPath, Q as memoryStatusForMode, T as resolveSpeaker, U as resolveSyncDates, V as saveSpeakerRegistry, X as speakerRegistryKey, Y as speakersFilePath, Z as syncWearableSource, _ as wearableDayTag, $ as wearableSourceLabel, a0 as writeDailyDigestMemory } from './service-DbgPTeMJ.js';
94
+ import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-DveW6azo.js';
95
+ export { b as ActivitySourceRunItem, c as ActivitySyncRunOptions, d as activityDatabasePath, e as applyActivitySchema, f as ensureActivityStateDir, o as openActivityDatabase, r as resolveActivitySyncDates, g as runActivitySyncOnce } from './maintenance-DveW6azo.js';
96
96
  import { SearchExecutionOptions } from './search/port.js';
97
97
  export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
98
98
  export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
@@ -126,6 +126,7 @@ import './summarizer.js';
126
126
  import './compounding/engine.js';
127
127
  import './shared-context/manager.js';
128
128
  import './capabilities.js';
129
+ import './entity-id-normalization.js';
129
130
  import './consolidation-operator.js';
130
131
  import './memory-projection-store.js';
131
132
  import './maintenance/memory-governance.js';
@@ -152,7 +153,7 @@ import './faiss-adapter-BHecI1fF.js';
152
153
  import './runtime/child-process.js';
153
154
  import './namespaces/storage.js';
154
155
  import './threading.js';
155
- import './scope-profiles-D0-ff4xT.js';
156
+ import './scope-profiles-BVf3DZ7z.js';
156
157
  import './graph.js';
157
158
  import './relevance.js';
158
159
  import './negative.js';
@@ -169,12 +170,13 @@ import './policy-runtime.js';
169
170
  import './profiling.js';
170
171
  import './schemas.js';
171
172
  import './extraction-error-classification.js';
172
- import './access-namespace-preflight-wRSZEO5V.js';
173
+ import './access-namespace-preflight-BiQ_-iUJ.js';
173
174
  import './recall-explain-renderer.js';
174
175
  import './access-citation.js';
175
176
  import './access-health-types.js';
176
177
  import './corpus-watermark.js';
177
178
  import 'node:async_hooks';
179
+ import './replica-divergence.js';
178
180
  import './explicit-capture.js';
179
181
  import './access-wearables-meetings-surface.js';
180
182
  import './graph-snapshot.js';
@@ -872,15 +874,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
872
874
  locator: z.ZodOptional<z.ZodString>;
873
875
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
874
876
  }, "strict", z.ZodTypeAny, {
877
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
875
878
  id: string;
876
879
  label: string;
877
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
878
880
  capture: "at_action" | "historical_lookup" | "fixture";
879
881
  locator?: string | undefined;
880
882
  }, {
883
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
881
884
  id: string;
882
885
  label: string;
883
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
884
886
  capture: "at_action" | "historical_lookup" | "fixture";
885
887
  locator?: string | undefined;
886
888
  }>;
@@ -897,15 +899,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
897
899
  locator: z.ZodOptional<z.ZodString>;
898
900
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
899
901
  }, "strict", z.ZodTypeAny, {
902
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
900
903
  id: string;
901
904
  label: string;
902
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
903
905
  capture: "at_action" | "historical_lookup" | "fixture";
904
906
  locator?: string | undefined;
905
907
  }, {
908
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
906
909
  id: string;
907
910
  label: string;
908
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
909
911
  capture: "at_action" | "historical_lookup" | "fixture";
910
912
  locator?: string | undefined;
911
913
  }>, "many">>;
@@ -913,9 +915,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
913
915
  kind: "mission_started";
914
916
  title: string;
915
917
  evidence: {
918
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
916
919
  id: string;
917
920
  label: string;
918
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
919
921
  capture: "at_action" | "historical_lookup" | "fixture";
920
922
  locator?: string | undefined;
921
923
  }[];
@@ -927,9 +929,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
927
929
  objective: string;
928
930
  runMode: "replay" | "fixture" | "live";
929
931
  evidence?: {
932
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
930
933
  id: string;
931
934
  label: string;
932
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
933
935
  capture: "at_action" | "historical_lookup" | "fixture";
934
936
  locator?: string | undefined;
935
937
  }[] | undefined;
@@ -945,15 +947,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
945
947
  locator: z.ZodOptional<z.ZodString>;
946
948
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
947
949
  }, "strict", z.ZodTypeAny, {
950
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
948
951
  id: string;
949
952
  label: string;
950
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
951
953
  capture: "at_action" | "historical_lookup" | "fixture";
952
954
  locator?: string | undefined;
953
955
  }, {
956
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
954
957
  id: string;
955
958
  label: string;
956
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
957
959
  capture: "at_action" | "historical_lookup" | "fixture";
958
960
  locator?: string | undefined;
959
961
  }>, "many">>;
@@ -961,32 +963,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
961
963
  sessionId: z.ZodString;
962
964
  kind: z.ZodLiteral<"agent_status">;
963
965
  }, "strict", z.ZodTypeAny, {
964
- label: string;
965
- status: "failed" | "blocked" | "working" | "complete" | "idle";
966
966
  kind: "agent_status";
967
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
967
968
  role: string;
969
+ label: string;
968
970
  agentId: string;
969
971
  sessionId: string;
970
972
  evidence: {
973
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
971
974
  id: string;
972
975
  label: string;
973
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
974
976
  capture: "at_action" | "historical_lookup" | "fixture";
975
977
  locator?: string | undefined;
976
978
  }[];
977
979
  detail?: string | undefined;
978
980
  }, {
979
- label: string;
980
- status: "failed" | "blocked" | "working" | "complete" | "idle";
981
981
  kind: "agent_status";
982
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
982
983
  role: string;
984
+ label: string;
983
985
  agentId: string;
984
986
  sessionId: string;
985
987
  detail?: string | undefined;
986
988
  evidence?: {
989
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
987
990
  id: string;
988
991
  label: string;
989
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
990
992
  capture: "at_action" | "historical_lookup" | "fixture";
991
993
  locator?: string | undefined;
992
994
  }[] | undefined;
@@ -1000,15 +1002,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1000
1002
  locator: z.ZodOptional<z.ZodString>;
1001
1003
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1002
1004
  }, "strict", z.ZodTypeAny, {
1005
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1003
1006
  id: string;
1004
1007
  label: string;
1005
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1006
1008
  capture: "at_action" | "historical_lookup" | "fixture";
1007
1009
  locator?: string | undefined;
1008
1010
  }, {
1011
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1009
1012
  id: string;
1010
1013
  label: string;
1011
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1012
1014
  capture: "at_action" | "historical_lookup" | "fixture";
1013
1015
  locator?: string | undefined;
1014
1016
  }>, "many">>;
@@ -1016,28 +1018,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1016
1018
  sessionId: z.ZodString;
1017
1019
  kind: z.ZodLiteral<"agent_output">;
1018
1020
  }, "strict", z.ZodTypeAny, {
1019
- summary: string;
1020
1021
  kind: "agent_output";
1022
+ summary: string;
1021
1023
  agentId: string;
1022
1024
  sessionId: string;
1023
1025
  evidence: {
1026
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1024
1027
  id: string;
1025
1028
  label: string;
1026
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1027
1029
  capture: "at_action" | "historical_lookup" | "fixture";
1028
1030
  locator?: string | undefined;
1029
1031
  }[];
1030
1032
  outputId: string;
1031
1033
  }, {
1032
- summary: string;
1033
1034
  kind: "agent_output";
1035
+ summary: string;
1034
1036
  agentId: string;
1035
1037
  sessionId: string;
1036
1038
  outputId: string;
1037
1039
  evidence?: {
1040
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1038
1041
  id: string;
1039
1042
  label: string;
1040
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1041
1043
  capture: "at_action" | "historical_lookup" | "fixture";
1042
1044
  locator?: string | undefined;
1043
1045
  }[] | undefined;
@@ -1053,15 +1055,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1053
1055
  locator: z.ZodOptional<z.ZodString>;
1054
1056
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1055
1057
  }, "strict", z.ZodTypeAny, {
1058
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1056
1059
  id: string;
1057
1060
  label: string;
1058
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1059
1061
  capture: "at_action" | "historical_lookup" | "fixture";
1060
1062
  locator?: string | undefined;
1061
1063
  }, {
1064
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1062
1065
  id: string;
1063
1066
  label: string;
1064
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1065
1067
  capture: "at_action" | "historical_lookup" | "fixture";
1066
1068
  locator?: string | undefined;
1067
1069
  }>, "many">>;
@@ -1074,9 +1076,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1074
1076
  statement: string;
1075
1077
  sessionId: string;
1076
1078
  evidence: {
1079
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1077
1080
  id: string;
1078
1081
  label: string;
1079
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1080
1082
  capture: "at_action" | "historical_lookup" | "fixture";
1081
1083
  locator?: string | undefined;
1082
1084
  }[];
@@ -1092,9 +1094,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1092
1094
  decisionId: string;
1093
1095
  confidence?: number | undefined;
1094
1096
  evidence?: {
1097
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1095
1098
  id: string;
1096
1099
  label: string;
1097
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1098
1100
  capture: "at_action" | "historical_lookup" | "fixture";
1099
1101
  locator?: string | undefined;
1100
1102
  }[] | undefined;
@@ -1111,25 +1113,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1111
1113
  locator: z.ZodOptional<z.ZodString>;
1112
1114
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1113
1115
  }, "strict", z.ZodTypeAny, {
1116
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1114
1117
  id: string;
1115
1118
  label: string;
1116
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1117
1119
  capture: "at_action" | "historical_lookup" | "fixture";
1118
1120
  locator?: string | undefined;
1119
1121
  }, {
1122
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1120
1123
  id: string;
1121
1124
  label: string;
1122
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1123
1125
  capture: "at_action" | "historical_lookup" | "fixture";
1124
1126
  locator?: string | undefined;
1125
1127
  }>, "many">>;
1126
1128
  }, "strict", z.ZodTypeAny, {
1127
- summary: string;
1128
1129
  kind: "conflict_detected";
1130
+ summary: string;
1129
1131
  evidence: {
1132
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1130
1133
  id: string;
1131
1134
  label: string;
1132
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1133
1135
  capture: "at_action" | "historical_lookup" | "fixture";
1134
1136
  locator?: string | undefined;
1135
1137
  }[];
@@ -1137,15 +1139,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1137
1139
  decisionIds: string[];
1138
1140
  agentIds: string[];
1139
1141
  }, {
1140
- summary: string;
1141
1142
  kind: "conflict_detected";
1143
+ summary: string;
1142
1144
  conflictId: string;
1143
1145
  decisionIds: string[];
1144
1146
  agentIds: string[];
1145
1147
  evidence?: {
1148
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1146
1149
  id: string;
1147
1150
  label: string;
1148
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1149
1151
  capture: "at_action" | "historical_lookup" | "fixture";
1150
1152
  locator?: string | undefined;
1151
1153
  }[] | undefined;
@@ -1165,27 +1167,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1165
1167
  locator: z.ZodOptional<z.ZodString>;
1166
1168
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1167
1169
  }, "strict", z.ZodTypeAny, {
1170
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1168
1171
  id: string;
1169
1172
  label: string;
1170
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1171
1173
  capture: "at_action" | "historical_lookup" | "fixture";
1172
1174
  locator?: string | undefined;
1173
1175
  }, {
1176
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1174
1177
  id: string;
1175
1178
  label: string;
1176
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1177
1179
  capture: "at_action" | "historical_lookup" | "fixture";
1178
1180
  locator?: string | undefined;
1179
1181
  }>, "many">>;
1180
1182
  }, "strict", z.ZodTypeAny, {
1183
+ kind: "test_result";
1181
1184
  summary: string;
1182
1185
  status: "error" | "failed" | "passed";
1183
- kind: "test_result";
1184
1186
  command: string;
1185
1187
  evidence: {
1188
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1186
1189
  id: string;
1187
1190
  label: string;
1188
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1189
1191
  capture: "at_action" | "historical_lookup" | "fixture";
1190
1192
  locator?: string | undefined;
1191
1193
  }[];
@@ -1194,17 +1196,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1194
1196
  durationMs?: number | undefined;
1195
1197
  correctionId?: string | undefined;
1196
1198
  }, {
1199
+ kind: "test_result";
1197
1200
  summary: string;
1198
1201
  status: "error" | "failed" | "passed";
1199
- kind: "test_result";
1200
1202
  command: string;
1201
1203
  decisionId: string;
1202
1204
  testId: string;
1203
1205
  durationMs?: number | undefined;
1204
1206
  evidence?: {
1207
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1205
1208
  id: string;
1206
1209
  label: string;
1207
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1208
1210
  capture: "at_action" | "historical_lookup" | "fixture";
1209
1211
  locator?: string | undefined;
1210
1212
  }[] | undefined;
@@ -1225,15 +1227,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1225
1227
  locator: z.ZodOptional<z.ZodString>;
1226
1228
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1227
1229
  }, "strict", z.ZodTypeAny, {
1230
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1228
1231
  id: string;
1229
1232
  label: string;
1230
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1231
1233
  capture: "at_action" | "historical_lookup" | "fixture";
1232
1234
  locator?: string | undefined;
1233
1235
  }, {
1236
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1234
1237
  id: string;
1235
1238
  label: string;
1236
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1237
1239
  capture: "at_action" | "historical_lookup" | "fixture";
1238
1240
  locator?: string | undefined;
1239
1241
  }>, "many">>;
@@ -1242,9 +1244,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1242
1244
  rationale: string;
1243
1245
  statement: string;
1244
1246
  evidence: {
1247
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1245
1248
  id: string;
1246
1249
  label: string;
1247
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1248
1250
  capture: "at_action" | "historical_lookup" | "fixture";
1249
1251
  locator?: string | undefined;
1250
1252
  }[];
@@ -1263,9 +1265,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1263
1265
  supersedesDecisionIds: string[];
1264
1266
  proposedBy: string;
1265
1267
  evidence?: {
1268
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1266
1269
  id: string;
1267
1270
  label: string;
1268
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1269
1271
  capture: "at_action" | "historical_lookup" | "fixture";
1270
1272
  locator?: string | undefined;
1271
1273
  }[] | undefined;
@@ -1277,13 +1279,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1277
1279
  id: z.ZodString;
1278
1280
  label: z.ZodString;
1279
1281
  }, "strict", z.ZodTypeAny, {
1282
+ kind: "agent" | "human";
1280
1283
  id: string;
1281
1284
  label: string;
1282
- kind: "agent" | "human";
1283
1285
  }, {
1286
+ kind: "agent" | "human";
1284
1287
  id: string;
1285
1288
  label: string;
1286
- kind: "agent" | "human";
1287
1289
  }>;
1288
1290
  note: z.ZodOptional<z.ZodString>;
1289
1291
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1293,47 +1295,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1293
1295
  locator: z.ZodOptional<z.ZodString>;
1294
1296
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1295
1297
  }, "strict", z.ZodTypeAny, {
1298
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1296
1299
  id: string;
1297
1300
  label: string;
1298
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1299
1301
  capture: "at_action" | "historical_lookup" | "fixture";
1300
1302
  locator?: string | undefined;
1301
1303
  }, {
1304
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1302
1305
  id: string;
1303
1306
  label: string;
1304
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1305
1307
  capture: "at_action" | "historical_lookup" | "fixture";
1306
1308
  locator?: string | undefined;
1307
1309
  }>, "many">>;
1308
1310
  }, "strict", z.ZodTypeAny, {
1309
1311
  kind: "correction_approved";
1310
1312
  evidence: {
1313
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1311
1314
  id: string;
1312
1315
  label: string;
1313
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1314
1316
  capture: "at_action" | "historical_lookup" | "fixture";
1315
1317
  locator?: string | undefined;
1316
1318
  }[];
1317
1319
  correctionId: string;
1318
1320
  approvedBy: {
1321
+ kind: "agent" | "human";
1319
1322
  id: string;
1320
1323
  label: string;
1321
- kind: "agent" | "human";
1322
1324
  };
1323
1325
  note?: string | undefined;
1324
1326
  }, {
1325
1327
  kind: "correction_approved";
1326
1328
  correctionId: string;
1327
1329
  approvedBy: {
1330
+ kind: "agent" | "human";
1328
1331
  id: string;
1329
1332
  label: string;
1330
- kind: "agent" | "human";
1331
1333
  };
1332
1334
  note?: string | undefined;
1333
1335
  evidence?: {
1336
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1334
1337
  id: string;
1335
1338
  label: string;
1336
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1337
1339
  capture: "at_action" | "historical_lookup" | "fixture";
1338
1340
  locator?: string | undefined;
1339
1341
  }[] | undefined;
@@ -1349,24 +1351,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1349
1351
  locator: z.ZodOptional<z.ZodString>;
1350
1352
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1351
1353
  }, "strict", z.ZodTypeAny, {
1354
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1352
1355
  id: string;
1353
1356
  label: string;
1354
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1355
1357
  capture: "at_action" | "historical_lookup" | "fixture";
1356
1358
  locator?: string | undefined;
1357
1359
  }, {
1360
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1358
1361
  id: string;
1359
1362
  label: string;
1360
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1361
1363
  capture: "at_action" | "historical_lookup" | "fixture";
1362
1364
  locator?: string | undefined;
1363
1365
  }>, "many">>;
1364
1366
  }, "strict", z.ZodTypeAny, {
1365
1367
  kind: "decision_superseded";
1366
1368
  evidence: {
1369
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1367
1370
  id: string;
1368
1371
  label: string;
1369
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1370
1372
  capture: "at_action" | "historical_lookup" | "fixture";
1371
1373
  locator?: string | undefined;
1372
1374
  }[];
@@ -1379,9 +1381,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1379
1381
  correctionId: string;
1380
1382
  replacementDecisionId: string;
1381
1383
  evidence?: {
1384
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1382
1385
  id: string;
1383
1386
  label: string;
1384
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1385
1387
  capture: "at_action" | "historical_lookup" | "fixture";
1386
1388
  locator?: string | undefined;
1387
1389
  }[] | undefined;
@@ -1397,15 +1399,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1397
1399
  locator: z.ZodOptional<z.ZodString>;
1398
1400
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1399
1401
  }, "strict", z.ZodTypeAny, {
1402
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1400
1403
  id: string;
1401
1404
  label: string;
1402
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1403
1405
  capture: "at_action" | "historical_lookup" | "fixture";
1404
1406
  locator?: string | undefined;
1405
1407
  }, {
1408
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1406
1409
  id: string;
1407
1410
  label: string;
1408
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1409
1411
  capture: "at_action" | "historical_lookup" | "fixture";
1410
1412
  locator?: string | undefined;
1411
1413
  }>, "many">>;
@@ -1418,9 +1420,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1418
1420
  agentId: string;
1419
1421
  sessionId: string;
1420
1422
  evidence: {
1423
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1421
1424
  id: string;
1422
1425
  label: string;
1423
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1424
1426
  capture: "at_action" | "historical_lookup" | "fixture";
1425
1427
  locator?: string | undefined;
1426
1428
  }[];
@@ -1436,9 +1438,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1436
1438
  recallReceiptId: string;
1437
1439
  capturedAtAction: boolean;
1438
1440
  evidence?: {
1441
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1439
1442
  id: string;
1440
1443
  label: string;
1441
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1442
1444
  capture: "at_action" | "historical_lookup" | "fixture";
1443
1445
  locator?: string | undefined;
1444
1446
  }[] | undefined;
@@ -1454,15 +1456,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1454
1456
  locator: z.ZodOptional<z.ZodString>;
1455
1457
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1456
1458
  }, "strict", z.ZodTypeAny, {
1459
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1457
1460
  id: string;
1458
1461
  label: string;
1459
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1460
1462
  capture: "at_action" | "historical_lookup" | "fixture";
1461
1463
  locator?: string | undefined;
1462
1464
  }, {
1465
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1463
1466
  id: string;
1464
1467
  label: string;
1465
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1466
1468
  capture: "at_action" | "historical_lookup" | "fixture";
1467
1469
  locator?: string | undefined;
1468
1470
  }>, "many">>;
@@ -1474,9 +1476,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1474
1476
  agentId: string;
1475
1477
  sessionId: string;
1476
1478
  evidence: {
1479
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1477
1480
  id: string;
1478
1481
  label: string;
1479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1480
1482
  capture: "at_action" | "historical_lookup" | "fixture";
1481
1483
  locator?: string | undefined;
1482
1484
  }[];
@@ -1493,9 +1495,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1493
1495
  recallReceiptId: string;
1494
1496
  staleDecisionAbsent: boolean;
1495
1497
  evidence?: {
1498
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1496
1499
  id: string;
1497
1500
  label: string;
1498
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1499
1501
  capture: "at_action" | "historical_lookup" | "fixture";
1500
1502
  locator?: string | undefined;
1501
1503
  }[] | undefined;
@@ -1510,37 +1512,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1510
1512
  locator: z.ZodOptional<z.ZodString>;
1511
1513
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1512
1514
  }, "strict", z.ZodTypeAny, {
1515
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1513
1516
  id: string;
1514
1517
  label: string;
1515
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1516
1518
  capture: "at_action" | "historical_lookup" | "fixture";
1517
1519
  locator?: string | undefined;
1518
1520
  }, {
1521
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1519
1522
  id: string;
1520
1523
  label: string;
1521
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1522
1524
  capture: "at_action" | "historical_lookup" | "fixture";
1523
1525
  locator?: string | undefined;
1524
1526
  }>, "many">>;
1525
1527
  }, "strict", z.ZodTypeAny, {
1526
- summary: string;
1527
1528
  kind: "mission_completed";
1529
+ summary: string;
1528
1530
  outcome: "failed" | "recovered" | "inconclusive";
1529
1531
  evidence: {
1532
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1530
1533
  id: string;
1531
1534
  label: string;
1532
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1533
1535
  capture: "at_action" | "historical_lookup" | "fixture";
1534
1536
  locator?: string | undefined;
1535
1537
  }[];
1536
1538
  }, {
1537
- summary: string;
1538
1539
  kind: "mission_completed";
1540
+ summary: string;
1539
1541
  outcome: "failed" | "recovered" | "inconclusive";
1540
1542
  evidence?: {
1543
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1541
1544
  id: string;
1542
1545
  label: string;
1543
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1544
1546
  capture: "at_action" | "historical_lookup" | "fixture";
1545
1547
  locator?: string | undefined;
1546
1548
  }[] | undefined;
@@ -1548,38 +1550,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1548
1550
  kind: "mission_started";
1549
1551
  title: string;
1550
1552
  evidence: {
1553
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1551
1554
  id: string;
1552
1555
  label: string;
1553
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1554
1556
  capture: "at_action" | "historical_lookup" | "fixture";
1555
1557
  locator?: string | undefined;
1556
1558
  }[];
1557
1559
  objective: string;
1558
1560
  runMode: "replay" | "fixture" | "live";
1559
1561
  } | {
1560
- label: string;
1561
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1562
1562
  kind: "agent_status";
1563
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1563
1564
  role: string;
1565
+ label: string;
1564
1566
  agentId: string;
1565
1567
  sessionId: string;
1566
1568
  evidence: {
1569
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1567
1570
  id: string;
1568
1571
  label: string;
1569
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1570
1572
  capture: "at_action" | "historical_lookup" | "fixture";
1571
1573
  locator?: string | undefined;
1572
1574
  }[];
1573
1575
  detail?: string | undefined;
1574
1576
  } | {
1575
- summary: string;
1576
1577
  kind: "agent_output";
1578
+ summary: string;
1577
1579
  agentId: string;
1578
1580
  sessionId: string;
1579
1581
  evidence: {
1582
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1580
1583
  id: string;
1581
1584
  label: string;
1582
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1583
1585
  capture: "at_action" | "historical_lookup" | "fixture";
1584
1586
  locator?: string | undefined;
1585
1587
  }[];
@@ -1590,9 +1592,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1590
1592
  statement: string;
1591
1593
  sessionId: string;
1592
1594
  evidence: {
1595
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1593
1596
  id: string;
1594
1597
  label: string;
1595
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1596
1598
  capture: "at_action" | "historical_lookup" | "fixture";
1597
1599
  locator?: string | undefined;
1598
1600
  }[];
@@ -1600,12 +1602,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1600
1602
  decisionId: string;
1601
1603
  confidence?: number | undefined;
1602
1604
  } | {
1603
- summary: string;
1604
1605
  kind: "conflict_detected";
1606
+ summary: string;
1605
1607
  evidence: {
1608
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1606
1609
  id: string;
1607
1610
  label: string;
1608
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1609
1611
  capture: "at_action" | "historical_lookup" | "fixture";
1610
1612
  locator?: string | undefined;
1611
1613
  }[];
@@ -1613,14 +1615,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1613
1615
  decisionIds: string[];
1614
1616
  agentIds: string[];
1615
1617
  } | {
1618
+ kind: "test_result";
1616
1619
  summary: string;
1617
1620
  status: "error" | "failed" | "passed";
1618
- kind: "test_result";
1619
1621
  command: string;
1620
1622
  evidence: {
1623
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1621
1624
  id: string;
1622
1625
  label: string;
1623
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1624
1626
  capture: "at_action" | "historical_lookup" | "fixture";
1625
1627
  locator?: string | undefined;
1626
1628
  }[];
@@ -1633,9 +1635,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1633
1635
  rationale: string;
1634
1636
  statement: string;
1635
1637
  evidence: {
1638
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1636
1639
  id: string;
1637
1640
  label: string;
1638
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1639
1641
  capture: "at_action" | "historical_lookup" | "fixture";
1640
1642
  locator?: string | undefined;
1641
1643
  }[];
@@ -1647,25 +1649,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1647
1649
  } | {
1648
1650
  kind: "correction_approved";
1649
1651
  evidence: {
1652
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1650
1653
  id: string;
1651
1654
  label: string;
1652
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1653
1655
  capture: "at_action" | "historical_lookup" | "fixture";
1654
1656
  locator?: string | undefined;
1655
1657
  }[];
1656
1658
  correctionId: string;
1657
1659
  approvedBy: {
1660
+ kind: "agent" | "human";
1658
1661
  id: string;
1659
1662
  label: string;
1660
- kind: "agent" | "human";
1661
1663
  };
1662
1664
  note?: string | undefined;
1663
1665
  } | {
1664
1666
  kind: "decision_superseded";
1665
1667
  evidence: {
1668
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1666
1669
  id: string;
1667
1670
  label: string;
1668
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1669
1671
  capture: "at_action" | "historical_lookup" | "fixture";
1670
1672
  locator?: string | undefined;
1671
1673
  }[];
@@ -1678,9 +1680,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1678
1680
  agentId: string;
1679
1681
  sessionId: string;
1680
1682
  evidence: {
1683
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1681
1684
  id: string;
1682
1685
  label: string;
1683
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1684
1686
  capture: "at_action" | "historical_lookup" | "fixture";
1685
1687
  locator?: string | undefined;
1686
1688
  }[];
@@ -1692,9 +1694,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1692
1694
  agentId: string;
1693
1695
  sessionId: string;
1694
1696
  evidence: {
1697
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1695
1698
  id: string;
1696
1699
  label: string;
1697
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1698
1700
  capture: "at_action" | "historical_lookup" | "fixture";
1699
1701
  locator?: string | undefined;
1700
1702
  }[];
@@ -1703,13 +1705,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1703
1705
  recallReceiptId: string;
1704
1706
  staleDecisionAbsent: boolean;
1705
1707
  } | {
1706
- summary: string;
1707
1708
  kind: "mission_completed";
1709
+ summary: string;
1708
1710
  outcome: "failed" | "recovered" | "inconclusive";
1709
1711
  evidence: {
1712
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1710
1713
  id: string;
1711
1714
  label: string;
1712
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1713
1715
  capture: "at_action" | "historical_lookup" | "fixture";
1714
1716
  locator?: string | undefined;
1715
1717
  }[];
@@ -1719,37 +1721,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1719
1721
  objective: string;
1720
1722
  runMode: "replay" | "fixture" | "live";
1721
1723
  evidence?: {
1724
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1722
1725
  id: string;
1723
1726
  label: string;
1724
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1725
1727
  capture: "at_action" | "historical_lookup" | "fixture";
1726
1728
  locator?: string | undefined;
1727
1729
  }[] | undefined;
1728
1730
  } | {
1729
- label: string;
1730
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1731
1731
  kind: "agent_status";
1732
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1732
1733
  role: string;
1734
+ label: string;
1733
1735
  agentId: string;
1734
1736
  sessionId: string;
1735
1737
  detail?: string | undefined;
1736
1738
  evidence?: {
1739
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1737
1740
  id: string;
1738
1741
  label: string;
1739
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1740
1742
  capture: "at_action" | "historical_lookup" | "fixture";
1741
1743
  locator?: string | undefined;
1742
1744
  }[] | undefined;
1743
1745
  } | {
1744
- summary: string;
1745
1746
  kind: "agent_output";
1747
+ summary: string;
1746
1748
  agentId: string;
1747
1749
  sessionId: string;
1748
1750
  outputId: string;
1749
1751
  evidence?: {
1752
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1750
1753
  id: string;
1751
1754
  label: string;
1752
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1753
1755
  capture: "at_action" | "historical_lookup" | "fixture";
1754
1756
  locator?: string | undefined;
1755
1757
  }[] | undefined;
@@ -1762,37 +1764,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1762
1764
  decisionId: string;
1763
1765
  confidence?: number | undefined;
1764
1766
  evidence?: {
1767
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1765
1768
  id: string;
1766
1769
  label: string;
1767
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1768
1770
  capture: "at_action" | "historical_lookup" | "fixture";
1769
1771
  locator?: string | undefined;
1770
1772
  }[] | undefined;
1771
1773
  } | {
1772
- summary: string;
1773
1774
  kind: "conflict_detected";
1775
+ summary: string;
1774
1776
  conflictId: string;
1775
1777
  decisionIds: string[];
1776
1778
  agentIds: string[];
1777
1779
  evidence?: {
1780
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1778
1781
  id: string;
1779
1782
  label: string;
1780
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1781
1783
  capture: "at_action" | "historical_lookup" | "fixture";
1782
1784
  locator?: string | undefined;
1783
1785
  }[] | undefined;
1784
1786
  } | {
1787
+ kind: "test_result";
1785
1788
  summary: string;
1786
1789
  status: "error" | "failed" | "passed";
1787
- kind: "test_result";
1788
1790
  command: string;
1789
1791
  decisionId: string;
1790
1792
  testId: string;
1791
1793
  durationMs?: number | undefined;
1792
1794
  evidence?: {
1795
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1793
1796
  id: string;
1794
1797
  label: string;
1795
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1796
1798
  capture: "at_action" | "historical_lookup" | "fixture";
1797
1799
  locator?: string | undefined;
1798
1800
  }[] | undefined;
@@ -1807,9 +1809,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1807
1809
  supersedesDecisionIds: string[];
1808
1810
  proposedBy: string;
1809
1811
  evidence?: {
1812
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1810
1813
  id: string;
1811
1814
  label: string;
1812
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1813
1815
  capture: "at_action" | "historical_lookup" | "fixture";
1814
1816
  locator?: string | undefined;
1815
1817
  }[] | undefined;
@@ -1817,15 +1819,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1817
1819
  kind: "correction_approved";
1818
1820
  correctionId: string;
1819
1821
  approvedBy: {
1822
+ kind: "agent" | "human";
1820
1823
  id: string;
1821
1824
  label: string;
1822
- kind: "agent" | "human";
1823
1825
  };
1824
1826
  note?: string | undefined;
1825
1827
  evidence?: {
1828
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1826
1829
  id: string;
1827
1830
  label: string;
1828
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1829
1831
  capture: "at_action" | "historical_lookup" | "fixture";
1830
1832
  locator?: string | undefined;
1831
1833
  }[] | undefined;
@@ -1835,9 +1837,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1835
1837
  correctionId: string;
1836
1838
  replacementDecisionId: string;
1837
1839
  evidence?: {
1840
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1838
1841
  id: string;
1839
1842
  label: string;
1840
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1841
1843
  capture: "at_action" | "historical_lookup" | "fixture";
1842
1844
  locator?: string | undefined;
1843
1845
  }[] | undefined;
@@ -1850,9 +1852,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1850
1852
  recallReceiptId: string;
1851
1853
  capturedAtAction: boolean;
1852
1854
  evidence?: {
1855
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1853
1856
  id: string;
1854
1857
  label: string;
1855
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1856
1858
  capture: "at_action" | "historical_lookup" | "fixture";
1857
1859
  locator?: string | undefined;
1858
1860
  }[] | undefined;
@@ -1865,20 +1867,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1865
1867
  recallReceiptId: string;
1866
1868
  staleDecisionAbsent: boolean;
1867
1869
  evidence?: {
1870
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1868
1871
  id: string;
1869
1872
  label: string;
1870
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1871
1873
  capture: "at_action" | "historical_lookup" | "fixture";
1872
1874
  locator?: string | undefined;
1873
1875
  }[] | undefined;
1874
1876
  } | {
1875
- summary: string;
1876
1877
  kind: "mission_completed";
1878
+ summary: string;
1877
1879
  outcome: "failed" | "recovered" | "inconclusive";
1878
1880
  evidence?: {
1881
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1879
1882
  id: string;
1880
1883
  label: string;
1881
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1882
1884
  capture: "at_action" | "historical_lookup" | "fixture";
1883
1885
  locator?: string | undefined;
1884
1886
  }[] | undefined;
@@ -1899,15 +1901,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1899
1901
  locator: z.ZodOptional<z.ZodString>;
1900
1902
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1901
1903
  }, "strict", z.ZodTypeAny, {
1904
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1902
1905
  id: string;
1903
1906
  label: string;
1904
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1905
1907
  capture: "at_action" | "historical_lookup" | "fixture";
1906
1908
  locator?: string | undefined;
1907
1909
  }, {
1910
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1908
1911
  id: string;
1909
1912
  label: string;
1910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1911
1913
  capture: "at_action" | "historical_lookup" | "fixture";
1912
1914
  locator?: string | undefined;
1913
1915
  }>, "many">>;
@@ -1915,9 +1917,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1915
1917
  kind: "mission_started";
1916
1918
  title: string;
1917
1919
  evidence: {
1920
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1918
1921
  id: string;
1919
1922
  label: string;
1920
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1921
1923
  capture: "at_action" | "historical_lookup" | "fixture";
1922
1924
  locator?: string | undefined;
1923
1925
  }[];
@@ -1929,9 +1931,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1929
1931
  objective: string;
1930
1932
  runMode: "replay" | "fixture" | "live";
1931
1933
  evidence?: {
1934
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1932
1935
  id: string;
1933
1936
  label: string;
1934
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1935
1937
  capture: "at_action" | "historical_lookup" | "fixture";
1936
1938
  locator?: string | undefined;
1937
1939
  }[] | undefined;
@@ -1947,15 +1949,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1947
1949
  locator: z.ZodOptional<z.ZodString>;
1948
1950
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1949
1951
  }, "strict", z.ZodTypeAny, {
1952
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1950
1953
  id: string;
1951
1954
  label: string;
1952
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1953
1955
  capture: "at_action" | "historical_lookup" | "fixture";
1954
1956
  locator?: string | undefined;
1955
1957
  }, {
1958
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1956
1959
  id: string;
1957
1960
  label: string;
1958
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1959
1961
  capture: "at_action" | "historical_lookup" | "fixture";
1960
1962
  locator?: string | undefined;
1961
1963
  }>, "many">>;
@@ -1963,32 +1965,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1963
1965
  sessionId: z.ZodString;
1964
1966
  kind: z.ZodLiteral<"agent_status">;
1965
1967
  }, "strict", z.ZodTypeAny, {
1966
- label: string;
1967
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1968
1968
  kind: "agent_status";
1969
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1969
1970
  role: string;
1971
+ label: string;
1970
1972
  agentId: string;
1971
1973
  sessionId: string;
1972
1974
  evidence: {
1975
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1973
1976
  id: string;
1974
1977
  label: string;
1975
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1976
1978
  capture: "at_action" | "historical_lookup" | "fixture";
1977
1979
  locator?: string | undefined;
1978
1980
  }[];
1979
1981
  detail?: string | undefined;
1980
1982
  }, {
1981
- label: string;
1982
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1983
1983
  kind: "agent_status";
1984
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1984
1985
  role: string;
1986
+ label: string;
1985
1987
  agentId: string;
1986
1988
  sessionId: string;
1987
1989
  detail?: string | undefined;
1988
1990
  evidence?: {
1991
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1989
1992
  id: string;
1990
1993
  label: string;
1991
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1992
1994
  capture: "at_action" | "historical_lookup" | "fixture";
1993
1995
  locator?: string | undefined;
1994
1996
  }[] | undefined;
@@ -2002,15 +2004,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2002
2004
  locator: z.ZodOptional<z.ZodString>;
2003
2005
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2004
2006
  }, "strict", z.ZodTypeAny, {
2007
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2005
2008
  id: string;
2006
2009
  label: string;
2007
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2008
2010
  capture: "at_action" | "historical_lookup" | "fixture";
2009
2011
  locator?: string | undefined;
2010
2012
  }, {
2013
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2011
2014
  id: string;
2012
2015
  label: string;
2013
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2014
2016
  capture: "at_action" | "historical_lookup" | "fixture";
2015
2017
  locator?: string | undefined;
2016
2018
  }>, "many">>;
@@ -2018,28 +2020,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2018
2020
  sessionId: z.ZodString;
2019
2021
  kind: z.ZodLiteral<"agent_output">;
2020
2022
  }, "strict", z.ZodTypeAny, {
2021
- summary: string;
2022
2023
  kind: "agent_output";
2024
+ summary: string;
2023
2025
  agentId: string;
2024
2026
  sessionId: string;
2025
2027
  evidence: {
2028
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2026
2029
  id: string;
2027
2030
  label: string;
2028
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2029
2031
  capture: "at_action" | "historical_lookup" | "fixture";
2030
2032
  locator?: string | undefined;
2031
2033
  }[];
2032
2034
  outputId: string;
2033
2035
  }, {
2034
- summary: string;
2035
2036
  kind: "agent_output";
2037
+ summary: string;
2036
2038
  agentId: string;
2037
2039
  sessionId: string;
2038
2040
  outputId: string;
2039
2041
  evidence?: {
2042
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2040
2043
  id: string;
2041
2044
  label: string;
2042
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2043
2045
  capture: "at_action" | "historical_lookup" | "fixture";
2044
2046
  locator?: string | undefined;
2045
2047
  }[] | undefined;
@@ -2055,15 +2057,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2055
2057
  locator: z.ZodOptional<z.ZodString>;
2056
2058
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2057
2059
  }, "strict", z.ZodTypeAny, {
2060
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2058
2061
  id: string;
2059
2062
  label: string;
2060
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2061
2063
  capture: "at_action" | "historical_lookup" | "fixture";
2062
2064
  locator?: string | undefined;
2063
2065
  }, {
2066
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2064
2067
  id: string;
2065
2068
  label: string;
2066
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2067
2069
  capture: "at_action" | "historical_lookup" | "fixture";
2068
2070
  locator?: string | undefined;
2069
2071
  }>, "many">>;
@@ -2076,9 +2078,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2076
2078
  statement: string;
2077
2079
  sessionId: string;
2078
2080
  evidence: {
2081
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2079
2082
  id: string;
2080
2083
  label: string;
2081
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2082
2084
  capture: "at_action" | "historical_lookup" | "fixture";
2083
2085
  locator?: string | undefined;
2084
2086
  }[];
@@ -2094,9 +2096,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2094
2096
  decisionId: string;
2095
2097
  confidence?: number | undefined;
2096
2098
  evidence?: {
2099
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2097
2100
  id: string;
2098
2101
  label: string;
2099
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2100
2102
  capture: "at_action" | "historical_lookup" | "fixture";
2101
2103
  locator?: string | undefined;
2102
2104
  }[] | undefined;
@@ -2113,25 +2115,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2113
2115
  locator: z.ZodOptional<z.ZodString>;
2114
2116
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2115
2117
  }, "strict", z.ZodTypeAny, {
2118
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2116
2119
  id: string;
2117
2120
  label: string;
2118
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2119
2121
  capture: "at_action" | "historical_lookup" | "fixture";
2120
2122
  locator?: string | undefined;
2121
2123
  }, {
2124
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2122
2125
  id: string;
2123
2126
  label: string;
2124
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2125
2127
  capture: "at_action" | "historical_lookup" | "fixture";
2126
2128
  locator?: string | undefined;
2127
2129
  }>, "many">>;
2128
2130
  }, "strict", z.ZodTypeAny, {
2129
- summary: string;
2130
2131
  kind: "conflict_detected";
2132
+ summary: string;
2131
2133
  evidence: {
2134
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2132
2135
  id: string;
2133
2136
  label: string;
2134
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2135
2137
  capture: "at_action" | "historical_lookup" | "fixture";
2136
2138
  locator?: string | undefined;
2137
2139
  }[];
@@ -2139,15 +2141,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2139
2141
  decisionIds: string[];
2140
2142
  agentIds: string[];
2141
2143
  }, {
2142
- summary: string;
2143
2144
  kind: "conflict_detected";
2145
+ summary: string;
2144
2146
  conflictId: string;
2145
2147
  decisionIds: string[];
2146
2148
  agentIds: string[];
2147
2149
  evidence?: {
2150
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2148
2151
  id: string;
2149
2152
  label: string;
2150
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2151
2153
  capture: "at_action" | "historical_lookup" | "fixture";
2152
2154
  locator?: string | undefined;
2153
2155
  }[] | undefined;
@@ -2167,27 +2169,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2167
2169
  locator: z.ZodOptional<z.ZodString>;
2168
2170
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2169
2171
  }, "strict", z.ZodTypeAny, {
2172
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2170
2173
  id: string;
2171
2174
  label: string;
2172
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2173
2175
  capture: "at_action" | "historical_lookup" | "fixture";
2174
2176
  locator?: string | undefined;
2175
2177
  }, {
2178
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2176
2179
  id: string;
2177
2180
  label: string;
2178
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2179
2181
  capture: "at_action" | "historical_lookup" | "fixture";
2180
2182
  locator?: string | undefined;
2181
2183
  }>, "many">>;
2182
2184
  }, "strict", z.ZodTypeAny, {
2185
+ kind: "test_result";
2183
2186
  summary: string;
2184
2187
  status: "error" | "failed" | "passed";
2185
- kind: "test_result";
2186
2188
  command: string;
2187
2189
  evidence: {
2190
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2188
2191
  id: string;
2189
2192
  label: string;
2190
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2191
2193
  capture: "at_action" | "historical_lookup" | "fixture";
2192
2194
  locator?: string | undefined;
2193
2195
  }[];
@@ -2196,17 +2198,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2196
2198
  durationMs?: number | undefined;
2197
2199
  correctionId?: string | undefined;
2198
2200
  }, {
2201
+ kind: "test_result";
2199
2202
  summary: string;
2200
2203
  status: "error" | "failed" | "passed";
2201
- kind: "test_result";
2202
2204
  command: string;
2203
2205
  decisionId: string;
2204
2206
  testId: string;
2205
2207
  durationMs?: number | undefined;
2206
2208
  evidence?: {
2209
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2207
2210
  id: string;
2208
2211
  label: string;
2209
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2210
2212
  capture: "at_action" | "historical_lookup" | "fixture";
2211
2213
  locator?: string | undefined;
2212
2214
  }[] | undefined;
@@ -2227,15 +2229,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2227
2229
  locator: z.ZodOptional<z.ZodString>;
2228
2230
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2229
2231
  }, "strict", z.ZodTypeAny, {
2232
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2230
2233
  id: string;
2231
2234
  label: string;
2232
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2233
2235
  capture: "at_action" | "historical_lookup" | "fixture";
2234
2236
  locator?: string | undefined;
2235
2237
  }, {
2238
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2236
2239
  id: string;
2237
2240
  label: string;
2238
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2239
2241
  capture: "at_action" | "historical_lookup" | "fixture";
2240
2242
  locator?: string | undefined;
2241
2243
  }>, "many">>;
@@ -2244,9 +2246,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2244
2246
  rationale: string;
2245
2247
  statement: string;
2246
2248
  evidence: {
2249
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2247
2250
  id: string;
2248
2251
  label: string;
2249
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2250
2252
  capture: "at_action" | "historical_lookup" | "fixture";
2251
2253
  locator?: string | undefined;
2252
2254
  }[];
@@ -2265,9 +2267,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2265
2267
  supersedesDecisionIds: string[];
2266
2268
  proposedBy: string;
2267
2269
  evidence?: {
2270
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2268
2271
  id: string;
2269
2272
  label: string;
2270
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2271
2273
  capture: "at_action" | "historical_lookup" | "fixture";
2272
2274
  locator?: string | undefined;
2273
2275
  }[] | undefined;
@@ -2279,13 +2281,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2279
2281
  id: z.ZodString;
2280
2282
  label: z.ZodString;
2281
2283
  }, "strict", z.ZodTypeAny, {
2284
+ kind: "agent" | "human";
2282
2285
  id: string;
2283
2286
  label: string;
2284
- kind: "agent" | "human";
2285
2287
  }, {
2288
+ kind: "agent" | "human";
2286
2289
  id: string;
2287
2290
  label: string;
2288
- kind: "agent" | "human";
2289
2291
  }>;
2290
2292
  note: z.ZodOptional<z.ZodString>;
2291
2293
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2295,47 +2297,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2295
2297
  locator: z.ZodOptional<z.ZodString>;
2296
2298
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2297
2299
  }, "strict", z.ZodTypeAny, {
2300
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2298
2301
  id: string;
2299
2302
  label: string;
2300
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2301
2303
  capture: "at_action" | "historical_lookup" | "fixture";
2302
2304
  locator?: string | undefined;
2303
2305
  }, {
2306
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2304
2307
  id: string;
2305
2308
  label: string;
2306
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2307
2309
  capture: "at_action" | "historical_lookup" | "fixture";
2308
2310
  locator?: string | undefined;
2309
2311
  }>, "many">>;
2310
2312
  }, "strict", z.ZodTypeAny, {
2311
2313
  kind: "correction_approved";
2312
2314
  evidence: {
2315
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2313
2316
  id: string;
2314
2317
  label: string;
2315
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2316
2318
  capture: "at_action" | "historical_lookup" | "fixture";
2317
2319
  locator?: string | undefined;
2318
2320
  }[];
2319
2321
  correctionId: string;
2320
2322
  approvedBy: {
2323
+ kind: "agent" | "human";
2321
2324
  id: string;
2322
2325
  label: string;
2323
- kind: "agent" | "human";
2324
2326
  };
2325
2327
  note?: string | undefined;
2326
2328
  }, {
2327
2329
  kind: "correction_approved";
2328
2330
  correctionId: string;
2329
2331
  approvedBy: {
2332
+ kind: "agent" | "human";
2330
2333
  id: string;
2331
2334
  label: string;
2332
- kind: "agent" | "human";
2333
2335
  };
2334
2336
  note?: string | undefined;
2335
2337
  evidence?: {
2338
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2336
2339
  id: string;
2337
2340
  label: string;
2338
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2339
2341
  capture: "at_action" | "historical_lookup" | "fixture";
2340
2342
  locator?: string | undefined;
2341
2343
  }[] | undefined;
@@ -2351,24 +2353,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2351
2353
  locator: z.ZodOptional<z.ZodString>;
2352
2354
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2353
2355
  }, "strict", z.ZodTypeAny, {
2356
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2354
2357
  id: string;
2355
2358
  label: string;
2356
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2357
2359
  capture: "at_action" | "historical_lookup" | "fixture";
2358
2360
  locator?: string | undefined;
2359
2361
  }, {
2362
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2360
2363
  id: string;
2361
2364
  label: string;
2362
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2363
2365
  capture: "at_action" | "historical_lookup" | "fixture";
2364
2366
  locator?: string | undefined;
2365
2367
  }>, "many">>;
2366
2368
  }, "strict", z.ZodTypeAny, {
2367
2369
  kind: "decision_superseded";
2368
2370
  evidence: {
2371
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2369
2372
  id: string;
2370
2373
  label: string;
2371
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2372
2374
  capture: "at_action" | "historical_lookup" | "fixture";
2373
2375
  locator?: string | undefined;
2374
2376
  }[];
@@ -2381,9 +2383,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2381
2383
  correctionId: string;
2382
2384
  replacementDecisionId: string;
2383
2385
  evidence?: {
2386
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2384
2387
  id: string;
2385
2388
  label: string;
2386
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2387
2389
  capture: "at_action" | "historical_lookup" | "fixture";
2388
2390
  locator?: string | undefined;
2389
2391
  }[] | undefined;
@@ -2399,15 +2401,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2399
2401
  locator: z.ZodOptional<z.ZodString>;
2400
2402
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2401
2403
  }, "strict", z.ZodTypeAny, {
2404
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2402
2405
  id: string;
2403
2406
  label: string;
2404
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2405
2407
  capture: "at_action" | "historical_lookup" | "fixture";
2406
2408
  locator?: string | undefined;
2407
2409
  }, {
2410
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2408
2411
  id: string;
2409
2412
  label: string;
2410
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2411
2413
  capture: "at_action" | "historical_lookup" | "fixture";
2412
2414
  locator?: string | undefined;
2413
2415
  }>, "many">>;
@@ -2420,9 +2422,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2420
2422
  agentId: string;
2421
2423
  sessionId: string;
2422
2424
  evidence: {
2425
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2423
2426
  id: string;
2424
2427
  label: string;
2425
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2426
2428
  capture: "at_action" | "historical_lookup" | "fixture";
2427
2429
  locator?: string | undefined;
2428
2430
  }[];
@@ -2438,9 +2440,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2438
2440
  recallReceiptId: string;
2439
2441
  capturedAtAction: boolean;
2440
2442
  evidence?: {
2443
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2441
2444
  id: string;
2442
2445
  label: string;
2443
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2444
2446
  capture: "at_action" | "historical_lookup" | "fixture";
2445
2447
  locator?: string | undefined;
2446
2448
  }[] | undefined;
@@ -2456,15 +2458,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2456
2458
  locator: z.ZodOptional<z.ZodString>;
2457
2459
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2458
2460
  }, "strict", z.ZodTypeAny, {
2461
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2459
2462
  id: string;
2460
2463
  label: string;
2461
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2462
2464
  capture: "at_action" | "historical_lookup" | "fixture";
2463
2465
  locator?: string | undefined;
2464
2466
  }, {
2467
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2465
2468
  id: string;
2466
2469
  label: string;
2467
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2468
2470
  capture: "at_action" | "historical_lookup" | "fixture";
2469
2471
  locator?: string | undefined;
2470
2472
  }>, "many">>;
@@ -2476,9 +2478,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2476
2478
  agentId: string;
2477
2479
  sessionId: string;
2478
2480
  evidence: {
2481
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2479
2482
  id: string;
2480
2483
  label: string;
2481
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2482
2484
  capture: "at_action" | "historical_lookup" | "fixture";
2483
2485
  locator?: string | undefined;
2484
2486
  }[];
@@ -2495,9 +2497,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2495
2497
  recallReceiptId: string;
2496
2498
  staleDecisionAbsent: boolean;
2497
2499
  evidence?: {
2500
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2498
2501
  id: string;
2499
2502
  label: string;
2500
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2501
2503
  capture: "at_action" | "historical_lookup" | "fixture";
2502
2504
  locator?: string | undefined;
2503
2505
  }[] | undefined;
@@ -2512,37 +2514,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2512
2514
  locator: z.ZodOptional<z.ZodString>;
2513
2515
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2514
2516
  }, "strict", z.ZodTypeAny, {
2517
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2515
2518
  id: string;
2516
2519
  label: string;
2517
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2518
2520
  capture: "at_action" | "historical_lookup" | "fixture";
2519
2521
  locator?: string | undefined;
2520
2522
  }, {
2523
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2521
2524
  id: string;
2522
2525
  label: string;
2523
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2524
2526
  capture: "at_action" | "historical_lookup" | "fixture";
2525
2527
  locator?: string | undefined;
2526
2528
  }>, "many">>;
2527
2529
  }, "strict", z.ZodTypeAny, {
2528
- summary: string;
2529
2530
  kind: "mission_completed";
2531
+ summary: string;
2530
2532
  outcome: "failed" | "recovered" | "inconclusive";
2531
2533
  evidence: {
2534
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2532
2535
  id: string;
2533
2536
  label: string;
2534
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2535
2537
  capture: "at_action" | "historical_lookup" | "fixture";
2536
2538
  locator?: string | undefined;
2537
2539
  }[];
2538
2540
  }, {
2539
- summary: string;
2540
2541
  kind: "mission_completed";
2542
+ summary: string;
2541
2543
  outcome: "failed" | "recovered" | "inconclusive";
2542
2544
  evidence?: {
2545
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2543
2546
  id: string;
2544
2547
  label: string;
2545
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2546
2548
  capture: "at_action" | "historical_lookup" | "fixture";
2547
2549
  locator?: string | undefined;
2548
2550
  }[] | undefined;
@@ -2550,38 +2552,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2550
2552
  kind: "mission_started";
2551
2553
  title: string;
2552
2554
  evidence: {
2555
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2553
2556
  id: string;
2554
2557
  label: string;
2555
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2556
2558
  capture: "at_action" | "historical_lookup" | "fixture";
2557
2559
  locator?: string | undefined;
2558
2560
  }[];
2559
2561
  objective: string;
2560
2562
  runMode: "replay" | "fixture" | "live";
2561
2563
  } | {
2562
- label: string;
2563
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2564
2564
  kind: "agent_status";
2565
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2565
2566
  role: string;
2567
+ label: string;
2566
2568
  agentId: string;
2567
2569
  sessionId: string;
2568
2570
  evidence: {
2571
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2569
2572
  id: string;
2570
2573
  label: string;
2571
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2572
2574
  capture: "at_action" | "historical_lookup" | "fixture";
2573
2575
  locator?: string | undefined;
2574
2576
  }[];
2575
2577
  detail?: string | undefined;
2576
2578
  } | {
2577
- summary: string;
2578
2579
  kind: "agent_output";
2580
+ summary: string;
2579
2581
  agentId: string;
2580
2582
  sessionId: string;
2581
2583
  evidence: {
2584
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2582
2585
  id: string;
2583
2586
  label: string;
2584
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2585
2587
  capture: "at_action" | "historical_lookup" | "fixture";
2586
2588
  locator?: string | undefined;
2587
2589
  }[];
@@ -2592,9 +2594,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2592
2594
  statement: string;
2593
2595
  sessionId: string;
2594
2596
  evidence: {
2597
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2595
2598
  id: string;
2596
2599
  label: string;
2597
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2598
2600
  capture: "at_action" | "historical_lookup" | "fixture";
2599
2601
  locator?: string | undefined;
2600
2602
  }[];
@@ -2602,12 +2604,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2602
2604
  decisionId: string;
2603
2605
  confidence?: number | undefined;
2604
2606
  } | {
2605
- summary: string;
2606
2607
  kind: "conflict_detected";
2608
+ summary: string;
2607
2609
  evidence: {
2610
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2608
2611
  id: string;
2609
2612
  label: string;
2610
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2611
2613
  capture: "at_action" | "historical_lookup" | "fixture";
2612
2614
  locator?: string | undefined;
2613
2615
  }[];
@@ -2615,14 +2617,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2615
2617
  decisionIds: string[];
2616
2618
  agentIds: string[];
2617
2619
  } | {
2620
+ kind: "test_result";
2618
2621
  summary: string;
2619
2622
  status: "error" | "failed" | "passed";
2620
- kind: "test_result";
2621
2623
  command: string;
2622
2624
  evidence: {
2625
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2623
2626
  id: string;
2624
2627
  label: string;
2625
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2626
2628
  capture: "at_action" | "historical_lookup" | "fixture";
2627
2629
  locator?: string | undefined;
2628
2630
  }[];
@@ -2635,9 +2637,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2635
2637
  rationale: string;
2636
2638
  statement: string;
2637
2639
  evidence: {
2640
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2638
2641
  id: string;
2639
2642
  label: string;
2640
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2641
2643
  capture: "at_action" | "historical_lookup" | "fixture";
2642
2644
  locator?: string | undefined;
2643
2645
  }[];
@@ -2649,25 +2651,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2649
2651
  } | {
2650
2652
  kind: "correction_approved";
2651
2653
  evidence: {
2654
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2652
2655
  id: string;
2653
2656
  label: string;
2654
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2655
2657
  capture: "at_action" | "historical_lookup" | "fixture";
2656
2658
  locator?: string | undefined;
2657
2659
  }[];
2658
2660
  correctionId: string;
2659
2661
  approvedBy: {
2662
+ kind: "agent" | "human";
2660
2663
  id: string;
2661
2664
  label: string;
2662
- kind: "agent" | "human";
2663
2665
  };
2664
2666
  note?: string | undefined;
2665
2667
  } | {
2666
2668
  kind: "decision_superseded";
2667
2669
  evidence: {
2670
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2668
2671
  id: string;
2669
2672
  label: string;
2670
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2671
2673
  capture: "at_action" | "historical_lookup" | "fixture";
2672
2674
  locator?: string | undefined;
2673
2675
  }[];
@@ -2680,9 +2682,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2680
2682
  agentId: string;
2681
2683
  sessionId: string;
2682
2684
  evidence: {
2685
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2683
2686
  id: string;
2684
2687
  label: string;
2685
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2686
2688
  capture: "at_action" | "historical_lookup" | "fixture";
2687
2689
  locator?: string | undefined;
2688
2690
  }[];
@@ -2694,9 +2696,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2694
2696
  agentId: string;
2695
2697
  sessionId: string;
2696
2698
  evidence: {
2699
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2697
2700
  id: string;
2698
2701
  label: string;
2699
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2700
2702
  capture: "at_action" | "historical_lookup" | "fixture";
2701
2703
  locator?: string | undefined;
2702
2704
  }[];
@@ -2705,13 +2707,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2705
2707
  recallReceiptId: string;
2706
2708
  staleDecisionAbsent: boolean;
2707
2709
  } | {
2708
- summary: string;
2709
2710
  kind: "mission_completed";
2711
+ summary: string;
2710
2712
  outcome: "failed" | "recovered" | "inconclusive";
2711
2713
  evidence: {
2714
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2712
2715
  id: string;
2713
2716
  label: string;
2714
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2715
2717
  capture: "at_action" | "historical_lookup" | "fixture";
2716
2718
  locator?: string | undefined;
2717
2719
  }[];
@@ -2721,37 +2723,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2721
2723
  objective: string;
2722
2724
  runMode: "replay" | "fixture" | "live";
2723
2725
  evidence?: {
2726
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2724
2727
  id: string;
2725
2728
  label: string;
2726
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2727
2729
  capture: "at_action" | "historical_lookup" | "fixture";
2728
2730
  locator?: string | undefined;
2729
2731
  }[] | undefined;
2730
2732
  } | {
2731
- label: string;
2732
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2733
2733
  kind: "agent_status";
2734
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2734
2735
  role: string;
2736
+ label: string;
2735
2737
  agentId: string;
2736
2738
  sessionId: string;
2737
2739
  detail?: string | undefined;
2738
2740
  evidence?: {
2741
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2739
2742
  id: string;
2740
2743
  label: string;
2741
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2742
2744
  capture: "at_action" | "historical_lookup" | "fixture";
2743
2745
  locator?: string | undefined;
2744
2746
  }[] | undefined;
2745
2747
  } | {
2746
- summary: string;
2747
2748
  kind: "agent_output";
2749
+ summary: string;
2748
2750
  agentId: string;
2749
2751
  sessionId: string;
2750
2752
  outputId: string;
2751
2753
  evidence?: {
2754
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2752
2755
  id: string;
2753
2756
  label: string;
2754
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2755
2757
  capture: "at_action" | "historical_lookup" | "fixture";
2756
2758
  locator?: string | undefined;
2757
2759
  }[] | undefined;
@@ -2764,37 +2766,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2764
2766
  decisionId: string;
2765
2767
  confidence?: number | undefined;
2766
2768
  evidence?: {
2769
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2767
2770
  id: string;
2768
2771
  label: string;
2769
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2770
2772
  capture: "at_action" | "historical_lookup" | "fixture";
2771
2773
  locator?: string | undefined;
2772
2774
  }[] | undefined;
2773
2775
  } | {
2774
- summary: string;
2775
2776
  kind: "conflict_detected";
2777
+ summary: string;
2776
2778
  conflictId: string;
2777
2779
  decisionIds: string[];
2778
2780
  agentIds: string[];
2779
2781
  evidence?: {
2782
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2780
2783
  id: string;
2781
2784
  label: string;
2782
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2783
2785
  capture: "at_action" | "historical_lookup" | "fixture";
2784
2786
  locator?: string | undefined;
2785
2787
  }[] | undefined;
2786
2788
  } | {
2789
+ kind: "test_result";
2787
2790
  summary: string;
2788
2791
  status: "error" | "failed" | "passed";
2789
- kind: "test_result";
2790
2792
  command: string;
2791
2793
  decisionId: string;
2792
2794
  testId: string;
2793
2795
  durationMs?: number | undefined;
2794
2796
  evidence?: {
2797
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2795
2798
  id: string;
2796
2799
  label: string;
2797
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2798
2800
  capture: "at_action" | "historical_lookup" | "fixture";
2799
2801
  locator?: string | undefined;
2800
2802
  }[] | undefined;
@@ -2809,9 +2811,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2809
2811
  supersedesDecisionIds: string[];
2810
2812
  proposedBy: string;
2811
2813
  evidence?: {
2814
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2812
2815
  id: string;
2813
2816
  label: string;
2814
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2815
2817
  capture: "at_action" | "historical_lookup" | "fixture";
2816
2818
  locator?: string | undefined;
2817
2819
  }[] | undefined;
@@ -2819,15 +2821,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2819
2821
  kind: "correction_approved";
2820
2822
  correctionId: string;
2821
2823
  approvedBy: {
2824
+ kind: "agent" | "human";
2822
2825
  id: string;
2823
2826
  label: string;
2824
- kind: "agent" | "human";
2825
2827
  };
2826
2828
  note?: string | undefined;
2827
2829
  evidence?: {
2830
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2828
2831
  id: string;
2829
2832
  label: string;
2830
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2831
2833
  capture: "at_action" | "historical_lookup" | "fixture";
2832
2834
  locator?: string | undefined;
2833
2835
  }[] | undefined;
@@ -2837,9 +2839,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2837
2839
  correctionId: string;
2838
2840
  replacementDecisionId: string;
2839
2841
  evidence?: {
2842
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2840
2843
  id: string;
2841
2844
  label: string;
2842
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2843
2845
  capture: "at_action" | "historical_lookup" | "fixture";
2844
2846
  locator?: string | undefined;
2845
2847
  }[] | undefined;
@@ -2852,9 +2854,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2852
2854
  recallReceiptId: string;
2853
2855
  capturedAtAction: boolean;
2854
2856
  evidence?: {
2857
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2855
2858
  id: string;
2856
2859
  label: string;
2857
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2858
2860
  capture: "at_action" | "historical_lookup" | "fixture";
2859
2861
  locator?: string | undefined;
2860
2862
  }[] | undefined;
@@ -2867,20 +2869,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2867
2869
  recallReceiptId: string;
2868
2870
  staleDecisionAbsent: boolean;
2869
2871
  evidence?: {
2872
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2870
2873
  id: string;
2871
2874
  label: string;
2872
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2873
2875
  capture: "at_action" | "historical_lookup" | "fixture";
2874
2876
  locator?: string | undefined;
2875
2877
  }[] | undefined;
2876
2878
  } | {
2877
- summary: string;
2878
2879
  kind: "mission_completed";
2880
+ summary: string;
2879
2881
  outcome: "failed" | "recovered" | "inconclusive";
2880
2882
  evidence?: {
2883
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2881
2884
  id: string;
2882
2885
  label: string;
2883
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2884
2886
  capture: "at_action" | "historical_lookup" | "fixture";
2885
2887
  locator?: string | undefined;
2886
2888
  }[] | undefined;
@@ -2890,38 +2892,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2890
2892
  kind: "mission_started";
2891
2893
  title: string;
2892
2894
  evidence: {
2895
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2893
2896
  id: string;
2894
2897
  label: string;
2895
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2896
2898
  capture: "at_action" | "historical_lookup" | "fixture";
2897
2899
  locator?: string | undefined;
2898
2900
  }[];
2899
2901
  objective: string;
2900
2902
  runMode: "replay" | "fixture" | "live";
2901
2903
  } | {
2902
- label: string;
2903
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2904
2904
  kind: "agent_status";
2905
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2905
2906
  role: string;
2907
+ label: string;
2906
2908
  agentId: string;
2907
2909
  sessionId: string;
2908
2910
  evidence: {
2911
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2909
2912
  id: string;
2910
2913
  label: string;
2911
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2912
2914
  capture: "at_action" | "historical_lookup" | "fixture";
2913
2915
  locator?: string | undefined;
2914
2916
  }[];
2915
2917
  detail?: string | undefined;
2916
2918
  } | {
2917
- summary: string;
2918
2919
  kind: "agent_output";
2920
+ summary: string;
2919
2921
  agentId: string;
2920
2922
  sessionId: string;
2921
2923
  evidence: {
2924
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2922
2925
  id: string;
2923
2926
  label: string;
2924
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2925
2927
  capture: "at_action" | "historical_lookup" | "fixture";
2926
2928
  locator?: string | undefined;
2927
2929
  }[];
@@ -2932,9 +2934,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2932
2934
  statement: string;
2933
2935
  sessionId: string;
2934
2936
  evidence: {
2937
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2935
2938
  id: string;
2936
2939
  label: string;
2937
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2938
2940
  capture: "at_action" | "historical_lookup" | "fixture";
2939
2941
  locator?: string | undefined;
2940
2942
  }[];
@@ -2942,12 +2944,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2942
2944
  decisionId: string;
2943
2945
  confidence?: number | undefined;
2944
2946
  } | {
2945
- summary: string;
2946
2947
  kind: "conflict_detected";
2948
+ summary: string;
2947
2949
  evidence: {
2950
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2948
2951
  id: string;
2949
2952
  label: string;
2950
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2951
2953
  capture: "at_action" | "historical_lookup" | "fixture";
2952
2954
  locator?: string | undefined;
2953
2955
  }[];
@@ -2955,14 +2957,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2955
2957
  decisionIds: string[];
2956
2958
  agentIds: string[];
2957
2959
  } | {
2960
+ kind: "test_result";
2958
2961
  summary: string;
2959
2962
  status: "error" | "failed" | "passed";
2960
- kind: "test_result";
2961
2963
  command: string;
2962
2964
  evidence: {
2965
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2963
2966
  id: string;
2964
2967
  label: string;
2965
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2966
2968
  capture: "at_action" | "historical_lookup" | "fixture";
2967
2969
  locator?: string | undefined;
2968
2970
  }[];
@@ -2975,9 +2977,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2975
2977
  rationale: string;
2976
2978
  statement: string;
2977
2979
  evidence: {
2980
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2978
2981
  id: string;
2979
2982
  label: string;
2980
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2981
2983
  capture: "at_action" | "historical_lookup" | "fixture";
2982
2984
  locator?: string | undefined;
2983
2985
  }[];
@@ -2989,25 +2991,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2989
2991
  } | {
2990
2992
  kind: "correction_approved";
2991
2993
  evidence: {
2994
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2992
2995
  id: string;
2993
2996
  label: string;
2994
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2995
2997
  capture: "at_action" | "historical_lookup" | "fixture";
2996
2998
  locator?: string | undefined;
2997
2999
  }[];
2998
3000
  correctionId: string;
2999
3001
  approvedBy: {
3002
+ kind: "agent" | "human";
3000
3003
  id: string;
3001
3004
  label: string;
3002
- kind: "agent" | "human";
3003
3005
  };
3004
3006
  note?: string | undefined;
3005
3007
  } | {
3006
3008
  kind: "decision_superseded";
3007
3009
  evidence: {
3010
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3008
3011
  id: string;
3009
3012
  label: string;
3010
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3011
3013
  capture: "at_action" | "historical_lookup" | "fixture";
3012
3014
  locator?: string | undefined;
3013
3015
  }[];
@@ -3020,9 +3022,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3020
3022
  agentId: string;
3021
3023
  sessionId: string;
3022
3024
  evidence: {
3025
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3023
3026
  id: string;
3024
3027
  label: string;
3025
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3026
3028
  capture: "at_action" | "historical_lookup" | "fixture";
3027
3029
  locator?: string | undefined;
3028
3030
  }[];
@@ -3034,9 +3036,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3034
3036
  agentId: string;
3035
3037
  sessionId: string;
3036
3038
  evidence: {
3039
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3037
3040
  id: string;
3038
3041
  label: string;
3039
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3040
3042
  capture: "at_action" | "historical_lookup" | "fixture";
3041
3043
  locator?: string | undefined;
3042
3044
  }[];
@@ -3045,13 +3047,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3045
3047
  recallReceiptId: string;
3046
3048
  staleDecisionAbsent: boolean;
3047
3049
  } | {
3048
- summary: string;
3049
3050
  kind: "mission_completed";
3051
+ summary: string;
3050
3052
  outcome: "failed" | "recovered" | "inconclusive";
3051
3053
  evidence: {
3054
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3052
3055
  id: string;
3053
3056
  label: string;
3054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3055
3057
  capture: "at_action" | "historical_lookup" | "fixture";
3056
3058
  locator?: string | undefined;
3057
3059
  }[];
@@ -3065,37 +3067,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3065
3067
  objective: string;
3066
3068
  runMode: "replay" | "fixture" | "live";
3067
3069
  evidence?: {
3070
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3068
3071
  id: string;
3069
3072
  label: string;
3070
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3071
3073
  capture: "at_action" | "historical_lookup" | "fixture";
3072
3074
  locator?: string | undefined;
3073
3075
  }[] | undefined;
3074
3076
  } | {
3075
- label: string;
3076
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3077
3077
  kind: "agent_status";
3078
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3078
3079
  role: string;
3080
+ label: string;
3079
3081
  agentId: string;
3080
3082
  sessionId: string;
3081
3083
  detail?: string | undefined;
3082
3084
  evidence?: {
3085
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3083
3086
  id: string;
3084
3087
  label: string;
3085
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3086
3088
  capture: "at_action" | "historical_lookup" | "fixture";
3087
3089
  locator?: string | undefined;
3088
3090
  }[] | undefined;
3089
3091
  } | {
3090
- summary: string;
3091
3092
  kind: "agent_output";
3093
+ summary: string;
3092
3094
  agentId: string;
3093
3095
  sessionId: string;
3094
3096
  outputId: string;
3095
3097
  evidence?: {
3098
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3096
3099
  id: string;
3097
3100
  label: string;
3098
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3099
3101
  capture: "at_action" | "historical_lookup" | "fixture";
3100
3102
  locator?: string | undefined;
3101
3103
  }[] | undefined;
@@ -3108,37 +3110,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3108
3110
  decisionId: string;
3109
3111
  confidence?: number | undefined;
3110
3112
  evidence?: {
3113
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3111
3114
  id: string;
3112
3115
  label: string;
3113
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3114
3116
  capture: "at_action" | "historical_lookup" | "fixture";
3115
3117
  locator?: string | undefined;
3116
3118
  }[] | undefined;
3117
3119
  } | {
3118
- summary: string;
3119
3120
  kind: "conflict_detected";
3121
+ summary: string;
3120
3122
  conflictId: string;
3121
3123
  decisionIds: string[];
3122
3124
  agentIds: string[];
3123
3125
  evidence?: {
3126
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3124
3127
  id: string;
3125
3128
  label: string;
3126
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3127
3129
  capture: "at_action" | "historical_lookup" | "fixture";
3128
3130
  locator?: string | undefined;
3129
3131
  }[] | undefined;
3130
3132
  } | {
3133
+ kind: "test_result";
3131
3134
  summary: string;
3132
3135
  status: "error" | "failed" | "passed";
3133
- kind: "test_result";
3134
3136
  command: string;
3135
3137
  decisionId: string;
3136
3138
  testId: string;
3137
3139
  durationMs?: number | undefined;
3138
3140
  evidence?: {
3141
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3139
3142
  id: string;
3140
3143
  label: string;
3141
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3142
3144
  capture: "at_action" | "historical_lookup" | "fixture";
3143
3145
  locator?: string | undefined;
3144
3146
  }[] | undefined;
@@ -3153,9 +3155,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3153
3155
  supersedesDecisionIds: string[];
3154
3156
  proposedBy: string;
3155
3157
  evidence?: {
3158
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3156
3159
  id: string;
3157
3160
  label: string;
3158
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3159
3161
  capture: "at_action" | "historical_lookup" | "fixture";
3160
3162
  locator?: string | undefined;
3161
3163
  }[] | undefined;
@@ -3163,15 +3165,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3163
3165
  kind: "correction_approved";
3164
3166
  correctionId: string;
3165
3167
  approvedBy: {
3168
+ kind: "agent" | "human";
3166
3169
  id: string;
3167
3170
  label: string;
3168
- kind: "agent" | "human";
3169
3171
  };
3170
3172
  note?: string | undefined;
3171
3173
  evidence?: {
3174
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3172
3175
  id: string;
3173
3176
  label: string;
3174
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3175
3177
  capture: "at_action" | "historical_lookup" | "fixture";
3176
3178
  locator?: string | undefined;
3177
3179
  }[] | undefined;
@@ -3181,9 +3183,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3181
3183
  correctionId: string;
3182
3184
  replacementDecisionId: string;
3183
3185
  evidence?: {
3186
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3184
3187
  id: string;
3185
3188
  label: string;
3186
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3187
3189
  capture: "at_action" | "historical_lookup" | "fixture";
3188
3190
  locator?: string | undefined;
3189
3191
  }[] | undefined;
@@ -3196,9 +3198,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3196
3198
  recallReceiptId: string;
3197
3199
  capturedAtAction: boolean;
3198
3200
  evidence?: {
3201
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3199
3202
  id: string;
3200
3203
  label: string;
3201
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3202
3204
  capture: "at_action" | "historical_lookup" | "fixture";
3203
3205
  locator?: string | undefined;
3204
3206
  }[] | undefined;
@@ -3211,20 +3213,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3211
3213
  recallReceiptId: string;
3212
3214
  staleDecisionAbsent: boolean;
3213
3215
  evidence?: {
3216
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3214
3217
  id: string;
3215
3218
  label: string;
3216
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3217
3219
  capture: "at_action" | "historical_lookup" | "fixture";
3218
3220
  locator?: string | undefined;
3219
3221
  }[] | undefined;
3220
3222
  } | {
3221
- summary: string;
3222
3223
  kind: "mission_completed";
3224
+ summary: string;
3223
3225
  outcome: "failed" | "recovered" | "inconclusive";
3224
3226
  evidence?: {
3227
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3225
3228
  id: string;
3226
3229
  label: string;
3227
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3228
3230
  capture: "at_action" | "historical_lookup" | "fixture";
3229
3231
  locator?: string | undefined;
3230
3232
  }[] | undefined;
@@ -3254,15 +3256,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3254
3256
  locator: z.ZodOptional<z.ZodString>;
3255
3257
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3256
3258
  }, "strict", z.ZodTypeAny, {
3259
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3257
3260
  id: string;
3258
3261
  label: string;
3259
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3260
3262
  capture: "at_action" | "historical_lookup" | "fixture";
3261
3263
  locator?: string | undefined;
3262
3264
  }, {
3265
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3263
3266
  id: string;
3264
3267
  label: string;
3265
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3266
3268
  capture: "at_action" | "historical_lookup" | "fixture";
3267
3269
  locator?: string | undefined;
3268
3270
  }>, "many">>;
@@ -3270,9 +3272,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3270
3272
  kind: "mission_started";
3271
3273
  title: string;
3272
3274
  evidence: {
3275
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3273
3276
  id: string;
3274
3277
  label: string;
3275
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3276
3278
  capture: "at_action" | "historical_lookup" | "fixture";
3277
3279
  locator?: string | undefined;
3278
3280
  }[];
@@ -3284,9 +3286,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3284
3286
  objective: string;
3285
3287
  runMode: "replay" | "fixture" | "live";
3286
3288
  evidence?: {
3289
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3287
3290
  id: string;
3288
3291
  label: string;
3289
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3290
3292
  capture: "at_action" | "historical_lookup" | "fixture";
3291
3293
  locator?: string | undefined;
3292
3294
  }[] | undefined;
@@ -3302,15 +3304,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3302
3304
  locator: z.ZodOptional<z.ZodString>;
3303
3305
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3304
3306
  }, "strict", z.ZodTypeAny, {
3307
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3305
3308
  id: string;
3306
3309
  label: string;
3307
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3308
3310
  capture: "at_action" | "historical_lookup" | "fixture";
3309
3311
  locator?: string | undefined;
3310
3312
  }, {
3313
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3311
3314
  id: string;
3312
3315
  label: string;
3313
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3314
3316
  capture: "at_action" | "historical_lookup" | "fixture";
3315
3317
  locator?: string | undefined;
3316
3318
  }>, "many">>;
@@ -3318,32 +3320,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3318
3320
  sessionId: z.ZodString;
3319
3321
  kind: z.ZodLiteral<"agent_status">;
3320
3322
  }, "strict", z.ZodTypeAny, {
3321
- label: string;
3322
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3323
3323
  kind: "agent_status";
3324
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3324
3325
  role: string;
3326
+ label: string;
3325
3327
  agentId: string;
3326
3328
  sessionId: string;
3327
3329
  evidence: {
3330
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3328
3331
  id: string;
3329
3332
  label: string;
3330
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3331
3333
  capture: "at_action" | "historical_lookup" | "fixture";
3332
3334
  locator?: string | undefined;
3333
3335
  }[];
3334
3336
  detail?: string | undefined;
3335
3337
  }, {
3336
- label: string;
3337
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3338
3338
  kind: "agent_status";
3339
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3339
3340
  role: string;
3341
+ label: string;
3340
3342
  agentId: string;
3341
3343
  sessionId: string;
3342
3344
  detail?: string | undefined;
3343
3345
  evidence?: {
3346
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3344
3347
  id: string;
3345
3348
  label: string;
3346
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3347
3349
  capture: "at_action" | "historical_lookup" | "fixture";
3348
3350
  locator?: string | undefined;
3349
3351
  }[] | undefined;
@@ -3357,15 +3359,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3357
3359
  locator: z.ZodOptional<z.ZodString>;
3358
3360
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3359
3361
  }, "strict", z.ZodTypeAny, {
3362
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3360
3363
  id: string;
3361
3364
  label: string;
3362
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3363
3365
  capture: "at_action" | "historical_lookup" | "fixture";
3364
3366
  locator?: string | undefined;
3365
3367
  }, {
3368
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3366
3369
  id: string;
3367
3370
  label: string;
3368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3369
3371
  capture: "at_action" | "historical_lookup" | "fixture";
3370
3372
  locator?: string | undefined;
3371
3373
  }>, "many">>;
@@ -3373,28 +3375,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3373
3375
  sessionId: z.ZodString;
3374
3376
  kind: z.ZodLiteral<"agent_output">;
3375
3377
  }, "strict", z.ZodTypeAny, {
3376
- summary: string;
3377
3378
  kind: "agent_output";
3379
+ summary: string;
3378
3380
  agentId: string;
3379
3381
  sessionId: string;
3380
3382
  evidence: {
3383
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3381
3384
  id: string;
3382
3385
  label: string;
3383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3384
3386
  capture: "at_action" | "historical_lookup" | "fixture";
3385
3387
  locator?: string | undefined;
3386
3388
  }[];
3387
3389
  outputId: string;
3388
3390
  }, {
3389
- summary: string;
3390
3391
  kind: "agent_output";
3392
+ summary: string;
3391
3393
  agentId: string;
3392
3394
  sessionId: string;
3393
3395
  outputId: string;
3394
3396
  evidence?: {
3397
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3395
3398
  id: string;
3396
3399
  label: string;
3397
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3398
3400
  capture: "at_action" | "historical_lookup" | "fixture";
3399
3401
  locator?: string | undefined;
3400
3402
  }[] | undefined;
@@ -3410,15 +3412,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3410
3412
  locator: z.ZodOptional<z.ZodString>;
3411
3413
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3412
3414
  }, "strict", z.ZodTypeAny, {
3415
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3413
3416
  id: string;
3414
3417
  label: string;
3415
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3416
3418
  capture: "at_action" | "historical_lookup" | "fixture";
3417
3419
  locator?: string | undefined;
3418
3420
  }, {
3421
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3419
3422
  id: string;
3420
3423
  label: string;
3421
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3422
3424
  capture: "at_action" | "historical_lookup" | "fixture";
3423
3425
  locator?: string | undefined;
3424
3426
  }>, "many">>;
@@ -3431,9 +3433,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3431
3433
  statement: string;
3432
3434
  sessionId: string;
3433
3435
  evidence: {
3436
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3434
3437
  id: string;
3435
3438
  label: string;
3436
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3437
3439
  capture: "at_action" | "historical_lookup" | "fixture";
3438
3440
  locator?: string | undefined;
3439
3441
  }[];
@@ -3449,9 +3451,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3449
3451
  decisionId: string;
3450
3452
  confidence?: number | undefined;
3451
3453
  evidence?: {
3454
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3452
3455
  id: string;
3453
3456
  label: string;
3454
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3455
3457
  capture: "at_action" | "historical_lookup" | "fixture";
3456
3458
  locator?: string | undefined;
3457
3459
  }[] | undefined;
@@ -3468,25 +3470,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3468
3470
  locator: z.ZodOptional<z.ZodString>;
3469
3471
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3470
3472
  }, "strict", z.ZodTypeAny, {
3473
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3471
3474
  id: string;
3472
3475
  label: string;
3473
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3474
3476
  capture: "at_action" | "historical_lookup" | "fixture";
3475
3477
  locator?: string | undefined;
3476
3478
  }, {
3479
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3477
3480
  id: string;
3478
3481
  label: string;
3479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3480
3482
  capture: "at_action" | "historical_lookup" | "fixture";
3481
3483
  locator?: string | undefined;
3482
3484
  }>, "many">>;
3483
3485
  }, "strict", z.ZodTypeAny, {
3484
- summary: string;
3485
3486
  kind: "conflict_detected";
3487
+ summary: string;
3486
3488
  evidence: {
3489
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3487
3490
  id: string;
3488
3491
  label: string;
3489
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3490
3492
  capture: "at_action" | "historical_lookup" | "fixture";
3491
3493
  locator?: string | undefined;
3492
3494
  }[];
@@ -3494,15 +3496,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3494
3496
  decisionIds: string[];
3495
3497
  agentIds: string[];
3496
3498
  }, {
3497
- summary: string;
3498
3499
  kind: "conflict_detected";
3500
+ summary: string;
3499
3501
  conflictId: string;
3500
3502
  decisionIds: string[];
3501
3503
  agentIds: string[];
3502
3504
  evidence?: {
3505
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3503
3506
  id: string;
3504
3507
  label: string;
3505
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3506
3508
  capture: "at_action" | "historical_lookup" | "fixture";
3507
3509
  locator?: string | undefined;
3508
3510
  }[] | undefined;
@@ -3522,27 +3524,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3522
3524
  locator: z.ZodOptional<z.ZodString>;
3523
3525
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3524
3526
  }, "strict", z.ZodTypeAny, {
3527
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3525
3528
  id: string;
3526
3529
  label: string;
3527
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3528
3530
  capture: "at_action" | "historical_lookup" | "fixture";
3529
3531
  locator?: string | undefined;
3530
3532
  }, {
3533
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3531
3534
  id: string;
3532
3535
  label: string;
3533
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3534
3536
  capture: "at_action" | "historical_lookup" | "fixture";
3535
3537
  locator?: string | undefined;
3536
3538
  }>, "many">>;
3537
3539
  }, "strict", z.ZodTypeAny, {
3540
+ kind: "test_result";
3538
3541
  summary: string;
3539
3542
  status: "error" | "failed" | "passed";
3540
- kind: "test_result";
3541
3543
  command: string;
3542
3544
  evidence: {
3545
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3543
3546
  id: string;
3544
3547
  label: string;
3545
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3546
3548
  capture: "at_action" | "historical_lookup" | "fixture";
3547
3549
  locator?: string | undefined;
3548
3550
  }[];
@@ -3551,17 +3553,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3551
3553
  durationMs?: number | undefined;
3552
3554
  correctionId?: string | undefined;
3553
3555
  }, {
3556
+ kind: "test_result";
3554
3557
  summary: string;
3555
3558
  status: "error" | "failed" | "passed";
3556
- kind: "test_result";
3557
3559
  command: string;
3558
3560
  decisionId: string;
3559
3561
  testId: string;
3560
3562
  durationMs?: number | undefined;
3561
3563
  evidence?: {
3564
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3562
3565
  id: string;
3563
3566
  label: string;
3564
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3565
3567
  capture: "at_action" | "historical_lookup" | "fixture";
3566
3568
  locator?: string | undefined;
3567
3569
  }[] | undefined;
@@ -3582,15 +3584,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3582
3584
  locator: z.ZodOptional<z.ZodString>;
3583
3585
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3584
3586
  }, "strict", z.ZodTypeAny, {
3587
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3585
3588
  id: string;
3586
3589
  label: string;
3587
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3588
3590
  capture: "at_action" | "historical_lookup" | "fixture";
3589
3591
  locator?: string | undefined;
3590
3592
  }, {
3593
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3591
3594
  id: string;
3592
3595
  label: string;
3593
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3594
3596
  capture: "at_action" | "historical_lookup" | "fixture";
3595
3597
  locator?: string | undefined;
3596
3598
  }>, "many">>;
@@ -3599,9 +3601,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3599
3601
  rationale: string;
3600
3602
  statement: string;
3601
3603
  evidence: {
3604
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3602
3605
  id: string;
3603
3606
  label: string;
3604
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3605
3607
  capture: "at_action" | "historical_lookup" | "fixture";
3606
3608
  locator?: string | undefined;
3607
3609
  }[];
@@ -3620,9 +3622,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3620
3622
  supersedesDecisionIds: string[];
3621
3623
  proposedBy: string;
3622
3624
  evidence?: {
3625
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3623
3626
  id: string;
3624
3627
  label: string;
3625
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3626
3628
  capture: "at_action" | "historical_lookup" | "fixture";
3627
3629
  locator?: string | undefined;
3628
3630
  }[] | undefined;
@@ -3634,13 +3636,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3634
3636
  id: z.ZodString;
3635
3637
  label: z.ZodString;
3636
3638
  }, "strict", z.ZodTypeAny, {
3639
+ kind: "agent" | "human";
3637
3640
  id: string;
3638
3641
  label: string;
3639
- kind: "agent" | "human";
3640
3642
  }, {
3643
+ kind: "agent" | "human";
3641
3644
  id: string;
3642
3645
  label: string;
3643
- kind: "agent" | "human";
3644
3646
  }>;
3645
3647
  note: z.ZodOptional<z.ZodString>;
3646
3648
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3650,47 +3652,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3650
3652
  locator: z.ZodOptional<z.ZodString>;
3651
3653
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3652
3654
  }, "strict", z.ZodTypeAny, {
3655
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3653
3656
  id: string;
3654
3657
  label: string;
3655
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3656
3658
  capture: "at_action" | "historical_lookup" | "fixture";
3657
3659
  locator?: string | undefined;
3658
3660
  }, {
3661
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3659
3662
  id: string;
3660
3663
  label: string;
3661
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3662
3664
  capture: "at_action" | "historical_lookup" | "fixture";
3663
3665
  locator?: string | undefined;
3664
3666
  }>, "many">>;
3665
3667
  }, "strict", z.ZodTypeAny, {
3666
3668
  kind: "correction_approved";
3667
3669
  evidence: {
3670
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3668
3671
  id: string;
3669
3672
  label: string;
3670
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3671
3673
  capture: "at_action" | "historical_lookup" | "fixture";
3672
3674
  locator?: string | undefined;
3673
3675
  }[];
3674
3676
  correctionId: string;
3675
3677
  approvedBy: {
3678
+ kind: "agent" | "human";
3676
3679
  id: string;
3677
3680
  label: string;
3678
- kind: "agent" | "human";
3679
3681
  };
3680
3682
  note?: string | undefined;
3681
3683
  }, {
3682
3684
  kind: "correction_approved";
3683
3685
  correctionId: string;
3684
3686
  approvedBy: {
3687
+ kind: "agent" | "human";
3685
3688
  id: string;
3686
3689
  label: string;
3687
- kind: "agent" | "human";
3688
3690
  };
3689
3691
  note?: string | undefined;
3690
3692
  evidence?: {
3693
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3691
3694
  id: string;
3692
3695
  label: string;
3693
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3694
3696
  capture: "at_action" | "historical_lookup" | "fixture";
3695
3697
  locator?: string | undefined;
3696
3698
  }[] | undefined;
@@ -3706,24 +3708,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3706
3708
  locator: z.ZodOptional<z.ZodString>;
3707
3709
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3708
3710
  }, "strict", z.ZodTypeAny, {
3711
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3709
3712
  id: string;
3710
3713
  label: string;
3711
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3712
3714
  capture: "at_action" | "historical_lookup" | "fixture";
3713
3715
  locator?: string | undefined;
3714
3716
  }, {
3717
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3715
3718
  id: string;
3716
3719
  label: string;
3717
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3718
3720
  capture: "at_action" | "historical_lookup" | "fixture";
3719
3721
  locator?: string | undefined;
3720
3722
  }>, "many">>;
3721
3723
  }, "strict", z.ZodTypeAny, {
3722
3724
  kind: "decision_superseded";
3723
3725
  evidence: {
3726
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3724
3727
  id: string;
3725
3728
  label: string;
3726
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3727
3729
  capture: "at_action" | "historical_lookup" | "fixture";
3728
3730
  locator?: string | undefined;
3729
3731
  }[];
@@ -3736,9 +3738,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3736
3738
  correctionId: string;
3737
3739
  replacementDecisionId: string;
3738
3740
  evidence?: {
3741
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3739
3742
  id: string;
3740
3743
  label: string;
3741
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3742
3744
  capture: "at_action" | "historical_lookup" | "fixture";
3743
3745
  locator?: string | undefined;
3744
3746
  }[] | undefined;
@@ -3754,15 +3756,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3754
3756
  locator: z.ZodOptional<z.ZodString>;
3755
3757
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3756
3758
  }, "strict", z.ZodTypeAny, {
3759
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3757
3760
  id: string;
3758
3761
  label: string;
3759
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3760
3762
  capture: "at_action" | "historical_lookup" | "fixture";
3761
3763
  locator?: string | undefined;
3762
3764
  }, {
3765
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3763
3766
  id: string;
3764
3767
  label: string;
3765
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3766
3768
  capture: "at_action" | "historical_lookup" | "fixture";
3767
3769
  locator?: string | undefined;
3768
3770
  }>, "many">>;
@@ -3775,9 +3777,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3775
3777
  agentId: string;
3776
3778
  sessionId: string;
3777
3779
  evidence: {
3780
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3778
3781
  id: string;
3779
3782
  label: string;
3780
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3781
3783
  capture: "at_action" | "historical_lookup" | "fixture";
3782
3784
  locator?: string | undefined;
3783
3785
  }[];
@@ -3793,9 +3795,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3793
3795
  recallReceiptId: string;
3794
3796
  capturedAtAction: boolean;
3795
3797
  evidence?: {
3798
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3796
3799
  id: string;
3797
3800
  label: string;
3798
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3799
3801
  capture: "at_action" | "historical_lookup" | "fixture";
3800
3802
  locator?: string | undefined;
3801
3803
  }[] | undefined;
@@ -3811,15 +3813,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3811
3813
  locator: z.ZodOptional<z.ZodString>;
3812
3814
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3813
3815
  }, "strict", z.ZodTypeAny, {
3816
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3814
3817
  id: string;
3815
3818
  label: string;
3816
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3817
3819
  capture: "at_action" | "historical_lookup" | "fixture";
3818
3820
  locator?: string | undefined;
3819
3821
  }, {
3822
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3820
3823
  id: string;
3821
3824
  label: string;
3822
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3823
3825
  capture: "at_action" | "historical_lookup" | "fixture";
3824
3826
  locator?: string | undefined;
3825
3827
  }>, "many">>;
@@ -3831,9 +3833,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3831
3833
  agentId: string;
3832
3834
  sessionId: string;
3833
3835
  evidence: {
3836
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3834
3837
  id: string;
3835
3838
  label: string;
3836
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3837
3839
  capture: "at_action" | "historical_lookup" | "fixture";
3838
3840
  locator?: string | undefined;
3839
3841
  }[];
@@ -3850,9 +3852,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3850
3852
  recallReceiptId: string;
3851
3853
  staleDecisionAbsent: boolean;
3852
3854
  evidence?: {
3855
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3853
3856
  id: string;
3854
3857
  label: string;
3855
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3856
3858
  capture: "at_action" | "historical_lookup" | "fixture";
3857
3859
  locator?: string | undefined;
3858
3860
  }[] | undefined;
@@ -3867,37 +3869,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3867
3869
  locator: z.ZodOptional<z.ZodString>;
3868
3870
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3869
3871
  }, "strict", z.ZodTypeAny, {
3872
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3870
3873
  id: string;
3871
3874
  label: string;
3872
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3873
3875
  capture: "at_action" | "historical_lookup" | "fixture";
3874
3876
  locator?: string | undefined;
3875
3877
  }, {
3878
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3876
3879
  id: string;
3877
3880
  label: string;
3878
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3879
3881
  capture: "at_action" | "historical_lookup" | "fixture";
3880
3882
  locator?: string | undefined;
3881
3883
  }>, "many">>;
3882
3884
  }, "strict", z.ZodTypeAny, {
3883
- summary: string;
3884
3885
  kind: "mission_completed";
3886
+ summary: string;
3885
3887
  outcome: "failed" | "recovered" | "inconclusive";
3886
3888
  evidence: {
3889
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3887
3890
  id: string;
3888
3891
  label: string;
3889
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3890
3892
  capture: "at_action" | "historical_lookup" | "fixture";
3891
3893
  locator?: string | undefined;
3892
3894
  }[];
3893
3895
  }, {
3894
- summary: string;
3895
3896
  kind: "mission_completed";
3897
+ summary: string;
3896
3898
  outcome: "failed" | "recovered" | "inconclusive";
3897
3899
  evidence?: {
3900
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3898
3901
  id: string;
3899
3902
  label: string;
3900
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3901
3903
  capture: "at_action" | "historical_lookup" | "fixture";
3902
3904
  locator?: string | undefined;
3903
3905
  }[] | undefined;
@@ -3905,38 +3907,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3905
3907
  kind: "mission_started";
3906
3908
  title: string;
3907
3909
  evidence: {
3910
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3908
3911
  id: string;
3909
3912
  label: string;
3910
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3911
3913
  capture: "at_action" | "historical_lookup" | "fixture";
3912
3914
  locator?: string | undefined;
3913
3915
  }[];
3914
3916
  objective: string;
3915
3917
  runMode: "replay" | "fixture" | "live";
3916
3918
  } | {
3917
- label: string;
3918
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3919
3919
  kind: "agent_status";
3920
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3920
3921
  role: string;
3922
+ label: string;
3921
3923
  agentId: string;
3922
3924
  sessionId: string;
3923
3925
  evidence: {
3926
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3924
3927
  id: string;
3925
3928
  label: string;
3926
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3927
3929
  capture: "at_action" | "historical_lookup" | "fixture";
3928
3930
  locator?: string | undefined;
3929
3931
  }[];
3930
3932
  detail?: string | undefined;
3931
3933
  } | {
3932
- summary: string;
3933
3934
  kind: "agent_output";
3935
+ summary: string;
3934
3936
  agentId: string;
3935
3937
  sessionId: string;
3936
3938
  evidence: {
3939
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3937
3940
  id: string;
3938
3941
  label: string;
3939
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3940
3942
  capture: "at_action" | "historical_lookup" | "fixture";
3941
3943
  locator?: string | undefined;
3942
3944
  }[];
@@ -3947,9 +3949,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3947
3949
  statement: string;
3948
3950
  sessionId: string;
3949
3951
  evidence: {
3952
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3950
3953
  id: string;
3951
3954
  label: string;
3952
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3953
3955
  capture: "at_action" | "historical_lookup" | "fixture";
3954
3956
  locator?: string | undefined;
3955
3957
  }[];
@@ -3957,12 +3959,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3957
3959
  decisionId: string;
3958
3960
  confidence?: number | undefined;
3959
3961
  } | {
3960
- summary: string;
3961
3962
  kind: "conflict_detected";
3963
+ summary: string;
3962
3964
  evidence: {
3965
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3963
3966
  id: string;
3964
3967
  label: string;
3965
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3966
3968
  capture: "at_action" | "historical_lookup" | "fixture";
3967
3969
  locator?: string | undefined;
3968
3970
  }[];
@@ -3970,14 +3972,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3970
3972
  decisionIds: string[];
3971
3973
  agentIds: string[];
3972
3974
  } | {
3975
+ kind: "test_result";
3973
3976
  summary: string;
3974
3977
  status: "error" | "failed" | "passed";
3975
- kind: "test_result";
3976
3978
  command: string;
3977
3979
  evidence: {
3980
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3978
3981
  id: string;
3979
3982
  label: string;
3980
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3981
3983
  capture: "at_action" | "historical_lookup" | "fixture";
3982
3984
  locator?: string | undefined;
3983
3985
  }[];
@@ -3990,9 +3992,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3990
3992
  rationale: string;
3991
3993
  statement: string;
3992
3994
  evidence: {
3995
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3993
3996
  id: string;
3994
3997
  label: string;
3995
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3996
3998
  capture: "at_action" | "historical_lookup" | "fixture";
3997
3999
  locator?: string | undefined;
3998
4000
  }[];
@@ -4004,25 +4006,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4004
4006
  } | {
4005
4007
  kind: "correction_approved";
4006
4008
  evidence: {
4009
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4007
4010
  id: string;
4008
4011
  label: string;
4009
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4010
4012
  capture: "at_action" | "historical_lookup" | "fixture";
4011
4013
  locator?: string | undefined;
4012
4014
  }[];
4013
4015
  correctionId: string;
4014
4016
  approvedBy: {
4017
+ kind: "agent" | "human";
4015
4018
  id: string;
4016
4019
  label: string;
4017
- kind: "agent" | "human";
4018
4020
  };
4019
4021
  note?: string | undefined;
4020
4022
  } | {
4021
4023
  kind: "decision_superseded";
4022
4024
  evidence: {
4025
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4023
4026
  id: string;
4024
4027
  label: string;
4025
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4026
4028
  capture: "at_action" | "historical_lookup" | "fixture";
4027
4029
  locator?: string | undefined;
4028
4030
  }[];
@@ -4035,9 +4037,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4035
4037
  agentId: string;
4036
4038
  sessionId: string;
4037
4039
  evidence: {
4040
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4038
4041
  id: string;
4039
4042
  label: string;
4040
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4041
4043
  capture: "at_action" | "historical_lookup" | "fixture";
4042
4044
  locator?: string | undefined;
4043
4045
  }[];
@@ -4049,9 +4051,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4049
4051
  agentId: string;
4050
4052
  sessionId: string;
4051
4053
  evidence: {
4054
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4052
4055
  id: string;
4053
4056
  label: string;
4054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4055
4057
  capture: "at_action" | "historical_lookup" | "fixture";
4056
4058
  locator?: string | undefined;
4057
4059
  }[];
@@ -4060,13 +4062,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4060
4062
  recallReceiptId: string;
4061
4063
  staleDecisionAbsent: boolean;
4062
4064
  } | {
4063
- summary: string;
4064
4065
  kind: "mission_completed";
4066
+ summary: string;
4065
4067
  outcome: "failed" | "recovered" | "inconclusive";
4066
4068
  evidence: {
4069
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4067
4070
  id: string;
4068
4071
  label: string;
4069
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4070
4072
  capture: "at_action" | "historical_lookup" | "fixture";
4071
4073
  locator?: string | undefined;
4072
4074
  }[];
@@ -4076,37 +4078,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4076
4078
  objective: string;
4077
4079
  runMode: "replay" | "fixture" | "live";
4078
4080
  evidence?: {
4081
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4079
4082
  id: string;
4080
4083
  label: string;
4081
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4082
4084
  capture: "at_action" | "historical_lookup" | "fixture";
4083
4085
  locator?: string | undefined;
4084
4086
  }[] | undefined;
4085
4087
  } | {
4086
- label: string;
4087
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4088
4088
  kind: "agent_status";
4089
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4089
4090
  role: string;
4091
+ label: string;
4090
4092
  agentId: string;
4091
4093
  sessionId: string;
4092
4094
  detail?: string | undefined;
4093
4095
  evidence?: {
4096
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4094
4097
  id: string;
4095
4098
  label: string;
4096
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4097
4099
  capture: "at_action" | "historical_lookup" | "fixture";
4098
4100
  locator?: string | undefined;
4099
4101
  }[] | undefined;
4100
4102
  } | {
4101
- summary: string;
4102
4103
  kind: "agent_output";
4104
+ summary: string;
4103
4105
  agentId: string;
4104
4106
  sessionId: string;
4105
4107
  outputId: string;
4106
4108
  evidence?: {
4109
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4107
4110
  id: string;
4108
4111
  label: string;
4109
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4110
4112
  capture: "at_action" | "historical_lookup" | "fixture";
4111
4113
  locator?: string | undefined;
4112
4114
  }[] | undefined;
@@ -4119,37 +4121,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4119
4121
  decisionId: string;
4120
4122
  confidence?: number | undefined;
4121
4123
  evidence?: {
4124
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4122
4125
  id: string;
4123
4126
  label: string;
4124
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4125
4127
  capture: "at_action" | "historical_lookup" | "fixture";
4126
4128
  locator?: string | undefined;
4127
4129
  }[] | undefined;
4128
4130
  } | {
4129
- summary: string;
4130
4131
  kind: "conflict_detected";
4132
+ summary: string;
4131
4133
  conflictId: string;
4132
4134
  decisionIds: string[];
4133
4135
  agentIds: string[];
4134
4136
  evidence?: {
4137
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4135
4138
  id: string;
4136
4139
  label: string;
4137
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4138
4140
  capture: "at_action" | "historical_lookup" | "fixture";
4139
4141
  locator?: string | undefined;
4140
4142
  }[] | undefined;
4141
4143
  } | {
4144
+ kind: "test_result";
4142
4145
  summary: string;
4143
4146
  status: "error" | "failed" | "passed";
4144
- kind: "test_result";
4145
4147
  command: string;
4146
4148
  decisionId: string;
4147
4149
  testId: string;
4148
4150
  durationMs?: number | undefined;
4149
4151
  evidence?: {
4152
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4150
4153
  id: string;
4151
4154
  label: string;
4152
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4153
4155
  capture: "at_action" | "historical_lookup" | "fixture";
4154
4156
  locator?: string | undefined;
4155
4157
  }[] | undefined;
@@ -4164,9 +4166,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4164
4166
  supersedesDecisionIds: string[];
4165
4167
  proposedBy: string;
4166
4168
  evidence?: {
4169
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4167
4170
  id: string;
4168
4171
  label: string;
4169
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4170
4172
  capture: "at_action" | "historical_lookup" | "fixture";
4171
4173
  locator?: string | undefined;
4172
4174
  }[] | undefined;
@@ -4174,15 +4176,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4174
4176
  kind: "correction_approved";
4175
4177
  correctionId: string;
4176
4178
  approvedBy: {
4179
+ kind: "agent" | "human";
4177
4180
  id: string;
4178
4181
  label: string;
4179
- kind: "agent" | "human";
4180
4182
  };
4181
4183
  note?: string | undefined;
4182
4184
  evidence?: {
4185
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4183
4186
  id: string;
4184
4187
  label: string;
4185
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4186
4188
  capture: "at_action" | "historical_lookup" | "fixture";
4187
4189
  locator?: string | undefined;
4188
4190
  }[] | undefined;
@@ -4192,9 +4194,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4192
4194
  correctionId: string;
4193
4195
  replacementDecisionId: string;
4194
4196
  evidence?: {
4197
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4195
4198
  id: string;
4196
4199
  label: string;
4197
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4198
4200
  capture: "at_action" | "historical_lookup" | "fixture";
4199
4201
  locator?: string | undefined;
4200
4202
  }[] | undefined;
@@ -4207,9 +4209,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4207
4209
  recallReceiptId: string;
4208
4210
  capturedAtAction: boolean;
4209
4211
  evidence?: {
4212
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4210
4213
  id: string;
4211
4214
  label: string;
4212
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4213
4215
  capture: "at_action" | "historical_lookup" | "fixture";
4214
4216
  locator?: string | undefined;
4215
4217
  }[] | undefined;
@@ -4222,64 +4224,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4222
4224
  recallReceiptId: string;
4223
4225
  staleDecisionAbsent: boolean;
4224
4226
  evidence?: {
4227
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4225
4228
  id: string;
4226
4229
  label: string;
4227
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4228
4230
  capture: "at_action" | "historical_lookup" | "fixture";
4229
4231
  locator?: string | undefined;
4230
4232
  }[] | undefined;
4231
4233
  } | {
4232
- summary: string;
4233
4234
  kind: "mission_completed";
4235
+ summary: string;
4234
4236
  outcome: "failed" | "recovered" | "inconclusive";
4235
4237
  evidence?: {
4238
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4236
4239
  id: string;
4237
4240
  label: string;
4238
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4239
4241
  capture: "at_action" | "historical_lookup" | "fixture";
4240
4242
  locator?: string | undefined;
4241
4243
  }[] | undefined;
4242
4244
  }>;
4243
4245
  }, "strict", z.ZodTypeAny, {
4244
- namespace: string;
4245
- recordedAt: string;
4246
4246
  schemaVersion: "1";
4247
+ recordedAt: string;
4247
4248
  payload: {
4248
4249
  kind: "mission_started";
4249
4250
  title: string;
4250
4251
  evidence: {
4252
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4251
4253
  id: string;
4252
4254
  label: string;
4253
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4254
4255
  capture: "at_action" | "historical_lookup" | "fixture";
4255
4256
  locator?: string | undefined;
4256
4257
  }[];
4257
4258
  objective: string;
4258
4259
  runMode: "replay" | "fixture" | "live";
4259
4260
  } | {
4260
- label: string;
4261
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4262
4261
  kind: "agent_status";
4262
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4263
4263
  role: string;
4264
+ label: string;
4264
4265
  agentId: string;
4265
4266
  sessionId: string;
4266
4267
  evidence: {
4268
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4267
4269
  id: string;
4268
4270
  label: string;
4269
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4270
4271
  capture: "at_action" | "historical_lookup" | "fixture";
4271
4272
  locator?: string | undefined;
4272
4273
  }[];
4273
4274
  detail?: string | undefined;
4274
4275
  } | {
4275
- summary: string;
4276
4276
  kind: "agent_output";
4277
+ summary: string;
4277
4278
  agentId: string;
4278
4279
  sessionId: string;
4279
4280
  evidence: {
4281
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4280
4282
  id: string;
4281
4283
  label: string;
4282
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4283
4284
  capture: "at_action" | "historical_lookup" | "fixture";
4284
4285
  locator?: string | undefined;
4285
4286
  }[];
@@ -4290,9 +4291,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4290
4291
  statement: string;
4291
4292
  sessionId: string;
4292
4293
  evidence: {
4294
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4293
4295
  id: string;
4294
4296
  label: string;
4295
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4296
4297
  capture: "at_action" | "historical_lookup" | "fixture";
4297
4298
  locator?: string | undefined;
4298
4299
  }[];
@@ -4300,12 +4301,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4300
4301
  decisionId: string;
4301
4302
  confidence?: number | undefined;
4302
4303
  } | {
4303
- summary: string;
4304
4304
  kind: "conflict_detected";
4305
+ summary: string;
4305
4306
  evidence: {
4307
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4306
4308
  id: string;
4307
4309
  label: string;
4308
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4309
4310
  capture: "at_action" | "historical_lookup" | "fixture";
4310
4311
  locator?: string | undefined;
4311
4312
  }[];
@@ -4313,14 +4314,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4313
4314
  decisionIds: string[];
4314
4315
  agentIds: string[];
4315
4316
  } | {
4317
+ kind: "test_result";
4316
4318
  summary: string;
4317
4319
  status: "error" | "failed" | "passed";
4318
- kind: "test_result";
4319
4320
  command: string;
4320
4321
  evidence: {
4322
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4321
4323
  id: string;
4322
4324
  label: string;
4323
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4324
4325
  capture: "at_action" | "historical_lookup" | "fixture";
4325
4326
  locator?: string | undefined;
4326
4327
  }[];
@@ -4333,9 +4334,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4333
4334
  rationale: string;
4334
4335
  statement: string;
4335
4336
  evidence: {
4337
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4336
4338
  id: string;
4337
4339
  label: string;
4338
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4339
4340
  capture: "at_action" | "historical_lookup" | "fixture";
4340
4341
  locator?: string | undefined;
4341
4342
  }[];
@@ -4347,25 +4348,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4347
4348
  } | {
4348
4349
  kind: "correction_approved";
4349
4350
  evidence: {
4351
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4350
4352
  id: string;
4351
4353
  label: string;
4352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4353
4354
  capture: "at_action" | "historical_lookup" | "fixture";
4354
4355
  locator?: string | undefined;
4355
4356
  }[];
4356
4357
  correctionId: string;
4357
4358
  approvedBy: {
4359
+ kind: "agent" | "human";
4358
4360
  id: string;
4359
4361
  label: string;
4360
- kind: "agent" | "human";
4361
4362
  };
4362
4363
  note?: string | undefined;
4363
4364
  } | {
4364
4365
  kind: "decision_superseded";
4365
4366
  evidence: {
4367
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4366
4368
  id: string;
4367
4369
  label: string;
4368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4369
4370
  capture: "at_action" | "historical_lookup" | "fixture";
4370
4371
  locator?: string | undefined;
4371
4372
  }[];
@@ -4378,9 +4379,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4378
4379
  agentId: string;
4379
4380
  sessionId: string;
4380
4381
  evidence: {
4382
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4381
4383
  id: string;
4382
4384
  label: string;
4383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4384
4385
  capture: "at_action" | "historical_lookup" | "fixture";
4385
4386
  locator?: string | undefined;
4386
4387
  }[];
@@ -4392,9 +4393,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4392
4393
  agentId: string;
4393
4394
  sessionId: string;
4394
4395
  evidence: {
4396
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4395
4397
  id: string;
4396
4398
  label: string;
4397
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4398
4399
  capture: "at_action" | "historical_lookup" | "fixture";
4399
4400
  locator?: string | undefined;
4400
4401
  }[];
@@ -4403,63 +4404,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4403
4404
  recallReceiptId: string;
4404
4405
  staleDecisionAbsent: boolean;
4405
4406
  } | {
4406
- summary: string;
4407
4407
  kind: "mission_completed";
4408
+ summary: string;
4408
4409
  outcome: "failed" | "recovered" | "inconclusive";
4409
4410
  evidence: {
4411
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4410
4412
  id: string;
4411
4413
  label: string;
4412
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4413
4414
  capture: "at_action" | "historical_lookup" | "fixture";
4414
4415
  locator?: string | undefined;
4415
4416
  }[];
4416
4417
  };
4418
+ namespace: string;
4417
4419
  eventId: string;
4418
4420
  occurredAt: string;
4419
4421
  missionId: string;
4420
4422
  authenticatedPrincipal?: string | undefined;
4421
4423
  idempotencyKey?: string | undefined;
4422
4424
  }, {
4423
- namespace: string;
4424
- recordedAt: string;
4425
4425
  schemaVersion: "1";
4426
+ recordedAt: string;
4426
4427
  payload: {
4427
4428
  kind: "mission_started";
4428
4429
  title: string;
4429
4430
  objective: string;
4430
4431
  runMode: "replay" | "fixture" | "live";
4431
4432
  evidence?: {
4433
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4432
4434
  id: string;
4433
4435
  label: string;
4434
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4435
4436
  capture: "at_action" | "historical_lookup" | "fixture";
4436
4437
  locator?: string | undefined;
4437
4438
  }[] | undefined;
4438
4439
  } | {
4439
- label: string;
4440
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4441
4440
  kind: "agent_status";
4441
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4442
4442
  role: string;
4443
+ label: string;
4443
4444
  agentId: string;
4444
4445
  sessionId: string;
4445
4446
  detail?: string | undefined;
4446
4447
  evidence?: {
4448
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4447
4449
  id: string;
4448
4450
  label: string;
4449
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4450
4451
  capture: "at_action" | "historical_lookup" | "fixture";
4451
4452
  locator?: string | undefined;
4452
4453
  }[] | undefined;
4453
4454
  } | {
4454
- summary: string;
4455
4455
  kind: "agent_output";
4456
+ summary: string;
4456
4457
  agentId: string;
4457
4458
  sessionId: string;
4458
4459
  outputId: string;
4459
4460
  evidence?: {
4461
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4460
4462
  id: string;
4461
4463
  label: string;
4462
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4463
4464
  capture: "at_action" | "historical_lookup" | "fixture";
4464
4465
  locator?: string | undefined;
4465
4466
  }[] | undefined;
@@ -4472,37 +4473,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4472
4473
  decisionId: string;
4473
4474
  confidence?: number | undefined;
4474
4475
  evidence?: {
4476
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4475
4477
  id: string;
4476
4478
  label: string;
4477
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4478
4479
  capture: "at_action" | "historical_lookup" | "fixture";
4479
4480
  locator?: string | undefined;
4480
4481
  }[] | undefined;
4481
4482
  } | {
4482
- summary: string;
4483
4483
  kind: "conflict_detected";
4484
+ summary: string;
4484
4485
  conflictId: string;
4485
4486
  decisionIds: string[];
4486
4487
  agentIds: string[];
4487
4488
  evidence?: {
4489
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4488
4490
  id: string;
4489
4491
  label: string;
4490
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4491
4492
  capture: "at_action" | "historical_lookup" | "fixture";
4492
4493
  locator?: string | undefined;
4493
4494
  }[] | undefined;
4494
4495
  } | {
4496
+ kind: "test_result";
4495
4497
  summary: string;
4496
4498
  status: "error" | "failed" | "passed";
4497
- kind: "test_result";
4498
4499
  command: string;
4499
4500
  decisionId: string;
4500
4501
  testId: string;
4501
4502
  durationMs?: number | undefined;
4502
4503
  evidence?: {
4504
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4503
4505
  id: string;
4504
4506
  label: string;
4505
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4506
4507
  capture: "at_action" | "historical_lookup" | "fixture";
4507
4508
  locator?: string | undefined;
4508
4509
  }[] | undefined;
@@ -4517,9 +4518,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4517
4518
  supersedesDecisionIds: string[];
4518
4519
  proposedBy: string;
4519
4520
  evidence?: {
4521
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4520
4522
  id: string;
4521
4523
  label: string;
4522
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4523
4524
  capture: "at_action" | "historical_lookup" | "fixture";
4524
4525
  locator?: string | undefined;
4525
4526
  }[] | undefined;
@@ -4527,15 +4528,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4527
4528
  kind: "correction_approved";
4528
4529
  correctionId: string;
4529
4530
  approvedBy: {
4531
+ kind: "agent" | "human";
4530
4532
  id: string;
4531
4533
  label: string;
4532
- kind: "agent" | "human";
4533
4534
  };
4534
4535
  note?: string | undefined;
4535
4536
  evidence?: {
4537
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4536
4538
  id: string;
4537
4539
  label: string;
4538
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4539
4540
  capture: "at_action" | "historical_lookup" | "fixture";
4540
4541
  locator?: string | undefined;
4541
4542
  }[] | undefined;
@@ -4545,9 +4546,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4545
4546
  correctionId: string;
4546
4547
  replacementDecisionId: string;
4547
4548
  evidence?: {
4549
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4548
4550
  id: string;
4549
4551
  label: string;
4550
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4551
4552
  capture: "at_action" | "historical_lookup" | "fixture";
4552
4553
  locator?: string | undefined;
4553
4554
  }[] | undefined;
@@ -4560,9 +4561,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4560
4561
  recallReceiptId: string;
4561
4562
  capturedAtAction: boolean;
4562
4563
  evidence?: {
4564
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4563
4565
  id: string;
4564
4566
  label: string;
4565
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4566
4567
  capture: "at_action" | "historical_lookup" | "fixture";
4567
4568
  locator?: string | undefined;
4568
4569
  }[] | undefined;
@@ -4575,24 +4576,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4575
4576
  recallReceiptId: string;
4576
4577
  staleDecisionAbsent: boolean;
4577
4578
  evidence?: {
4579
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4578
4580
  id: string;
4579
4581
  label: string;
4580
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4581
4582
  capture: "at_action" | "historical_lookup" | "fixture";
4582
4583
  locator?: string | undefined;
4583
4584
  }[] | undefined;
4584
4585
  } | {
4585
- summary: string;
4586
4586
  kind: "mission_completed";
4587
+ summary: string;
4587
4588
  outcome: "failed" | "recovered" | "inconclusive";
4588
4589
  evidence?: {
4590
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4589
4591
  id: string;
4590
4592
  label: string;
4591
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4592
4593
  capture: "at_action" | "historical_lookup" | "fixture";
4593
4594
  locator?: string | undefined;
4594
4595
  }[] | undefined;
4595
4596
  };
4597
+ namespace: string;
4596
4598
  eventId: string;
4597
4599
  occurredAt: string;
4598
4600
  missionId: string;