@remnic/core 9.45.5 → 9.46.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (402) hide show
  1. package/dist/access-admin-ops-surface.d.ts +10 -10
  2. package/dist/access-admin-ops-surface.js +24 -24
  3. package/dist/access-authorization-probe.d.ts +10 -10
  4. package/dist/access-authorization-probe.js +25 -25
  5. package/dist/access-boundary.d.ts +10 -10
  6. package/dist/access-boundary.js +24 -24
  7. package/dist/access-cli.js +73 -71
  8. package/dist/access-cli.js.map +1 -1
  9. package/dist/access-coding-context-resolution.d.ts +1 -1
  10. package/dist/access-extraction-force-flush.d.ts +10 -10
  11. package/dist/access-extraction-force-flush.js +24 -24
  12. package/dist/access-health-types.d.ts +1 -1
  13. package/dist/access-http-lcm-compaction.d.ts +10 -10
  14. package/dist/access-http-lifecycle-flush.d.ts +10 -10
  15. package/dist/access-http-offline-stream.d.ts +10 -10
  16. package/dist/access-http-query.js +24 -24
  17. package/dist/access-http.d.ts +10 -10
  18. package/dist/access-http.js +31 -31
  19. package/dist/access-identity-continuity-surface.d.ts +8 -8
  20. package/dist/access-identity-continuity-surface.js +24 -24
  21. package/dist/access-lcm-surface.d.ts +10 -10
  22. package/dist/access-lcm-surface.js +24 -24
  23. package/dist/access-mcp.d.ts +10 -10
  24. package/dist/access-mcp.js +28 -28
  25. package/dist/access-memory-search-fanout.d.ts +2 -2
  26. package/dist/{access-namespace-preflight-CWUDwB4M.d.ts → access-namespace-preflight--H6HwN85.d.ts} +1 -1
  27. package/dist/access-namespace-preflight.d.ts +3 -3
  28. package/dist/access-namespace-preflight.js +24 -24
  29. package/dist/access-observe-write-surface.d.ts +10 -10
  30. package/dist/access-observe-write-surface.js +24 -24
  31. package/dist/access-offline-manifest.d.ts +8 -8
  32. package/dist/access-operations-batch.js +25 -25
  33. package/dist/access-operations.d.ts +13 -13
  34. package/dist/access-operations.js +27 -27
  35. package/dist/access-recall-concurrency.d.ts +10 -10
  36. package/dist/access-recall-concurrency.js +24 -24
  37. package/dist/access-recall-response.d.ts +10 -10
  38. package/dist/access-recall-response.js +24 -24
  39. package/dist/access-recall-surface.d.ts +10 -10
  40. package/dist/access-recall-surface.js +24 -24
  41. package/dist/access-schema.d.ts +84 -84
  42. package/dist/access-service-helpers.d.ts +10 -10
  43. package/dist/{access-service-CNN89xyn.d.ts → access-service-loJadYd7.d.ts} +7 -7
  44. package/dist/access-service.d.ts +10 -10
  45. package/dist/access-service.js +24 -24
  46. package/dist/access-surface-catalog.d.ts +10 -10
  47. package/dist/access-wearables-meetings-surface.d.ts +3 -3
  48. package/dist/action-confidence.d.ts +1 -1
  49. package/dist/active-memory-bridge.d.ts +1 -1
  50. package/dist/active-recall.d.ts +1 -1
  51. package/dist/ambient-provenance.d.ts +109 -0
  52. package/dist/ambient-provenance.js +22 -0
  53. package/dist/ambient-provenance.js.map +1 -0
  54. package/dist/{auto-sync-UPTUVE4X.js → auto-sync-7O6RP2RT.js} +3 -2
  55. package/dist/{auto-sync-UPTUVE4X.js.map → auto-sync-7O6RP2RT.js.map} +1 -1
  56. package/dist/behavior-learner.d.ts +1 -1
  57. package/dist/behavior-signals.d.ts +1 -1
  58. package/dist/bootstrap.d.ts +8 -8
  59. package/dist/briefing.d.ts +2 -2
  60. package/dist/briefing.js +5 -5
  61. package/dist/buffer-surprise-report.d.ts +1 -1
  62. package/dist/buffer-turn-helpers.d.ts +1 -1
  63. package/dist/buffer-turn-helpers.js +1 -1
  64. package/dist/buffer.d.ts +2 -2
  65. package/dist/buffer.js +2 -2
  66. package/dist/bulk-import/index.d.ts +3 -3
  67. package/dist/calibration.d.ts +1 -1
  68. package/dist/capabilities.d.ts +1 -1
  69. package/dist/{catalog-bctMURhN.d.ts → catalog-Iwbk9h5E.d.ts} +1 -1
  70. package/dist/causal-behavior.d.ts +1 -1
  71. package/dist/causal-consolidation.d.ts +1 -1
  72. package/dist/causal-consolidation.js +6 -6
  73. package/dist/causal-trajectory-graph.d.ts +1 -1
  74. package/dist/{chunk-LEPOP46W.js → chunk-227UFSEQ.js} +4 -4
  75. package/dist/{chunk-ER7W6H4T.js → chunk-2AD5SXO4.js} +5 -2
  76. package/dist/chunk-2AD5SXO4.js.map +1 -0
  77. package/dist/{chunk-CX4ZUMC6.js → chunk-2DSUT7DZ.js} +9 -9
  78. package/dist/{chunk-DZPFMQZ7.js → chunk-3S63QIFQ.js} +1 -1
  79. package/dist/chunk-3S63QIFQ.js.map +1 -0
  80. package/dist/{chunk-DAJPRXBR.js → chunk-47J4EDGR.js} +5 -5
  81. package/dist/{chunk-QVJPH7SH.js → chunk-5LRDM4R7.js} +40 -40
  82. package/dist/{chunk-XAGYS7X6.js → chunk-5R6S4DJZ.js} +7 -7
  83. package/dist/{chunk-QR6G5KF4.js → chunk-5VQPZ4GV.js} +3 -3
  84. package/dist/{chunk-E5XQIWAL.js → chunk-64BHFFKZ.js} +2 -2
  85. package/dist/{chunk-GRUYA45P.js → chunk-6H744ZBH.js} +3 -3
  86. package/dist/{chunk-6ISC4AVB.js → chunk-BDNL34CT.js} +2 -2
  87. package/dist/{chunk-GQL52GQ5.js → chunk-CDKHKZL5.js} +15 -12
  88. package/dist/chunk-CDKHKZL5.js.map +1 -0
  89. package/dist/{chunk-AC5OWJLV.js → chunk-E4FOAENZ.js} +4 -4
  90. package/dist/{chunk-UW66OZTD.js → chunk-FULKGK7P.js} +2 -2
  91. package/dist/{chunk-V2TNYF6Q.js → chunk-HJ3SVHUW.js} +3 -3
  92. package/dist/{chunk-A4IJCD2Z.js → chunk-HXXTXLKA.js} +2 -2
  93. package/dist/{chunk-FUCYDRE5.js → chunk-IDE5AR5W.js} +11 -11
  94. package/dist/{chunk-2FSTB6BJ.js → chunk-ILBLZ5Y5.js} +2 -2
  95. package/dist/chunk-J7T4MX7P.js +131 -0
  96. package/dist/chunk-J7T4MX7P.js.map +1 -0
  97. package/dist/{chunk-WZ3TOIDW.js → chunk-JFO5QZ7N.js} +2 -2
  98. package/dist/{chunk-FR27HBBA.js → chunk-KA47C7BF.js} +2 -2
  99. package/dist/{chunk-JZH4LWHB.js → chunk-KMWYZTIE.js} +2 -2
  100. package/dist/{chunk-LPYDOLSM.js → chunk-L7G72WY4.js} +2 -2
  101. package/dist/{chunk-AMAUBUKY.js → chunk-LI7OE7G6.js} +2 -2
  102. package/dist/{chunk-MO4HSXHZ.js → chunk-M2INOSTA.js} +2 -2
  103. package/dist/{chunk-GODSPTOT.js → chunk-M32URQXV.js} +652 -601
  104. package/dist/chunk-M32URQXV.js.map +1 -0
  105. package/dist/{chunk-HFPASSFV.js → chunk-P2OTGMTR.js} +2 -2
  106. package/dist/{chunk-W2V7UESE.js → chunk-PFJXPOD4.js} +2 -2
  107. package/dist/{chunk-R3KHKU7M.js → chunk-PKCLQ7KM.js} +43 -143
  108. package/dist/chunk-PKCLQ7KM.js.map +1 -0
  109. package/dist/chunk-QW27DOHG.js +84 -0
  110. package/dist/chunk-QW27DOHG.js.map +1 -0
  111. package/dist/{chunk-QUENPGWZ.js → chunk-RCU25Z66.js} +24 -24
  112. package/dist/{chunk-QUENPGWZ.js.map → chunk-RCU25Z66.js.map} +1 -1
  113. package/dist/{chunk-NEF7LR5J.js → chunk-RVPTS4U5.js} +2 -2
  114. package/dist/{chunk-W3IC7QOY.js → chunk-RVYVMQK4.js} +3 -3
  115. package/dist/{chunk-GUAL4PQH.js → chunk-ST5IEK3H.js} +2 -2
  116. package/dist/{chunk-O4KMGRXE.js → chunk-SXWHN7GC.js} +2 -2
  117. package/dist/{chunk-RNHVVMFN.js → chunk-T6JRMVOV.js} +2 -2
  118. package/dist/{chunk-5QJQHBLE.js → chunk-U6JGQ37L.js} +2 -2
  119. package/dist/{chunk-UV72DEZD.js → chunk-UYUYZ4WY.js} +36 -10
  120. package/dist/chunk-UYUYZ4WY.js.map +1 -0
  121. package/dist/{chunk-HC3PBX23.js → chunk-V5FE3UAI.js} +2 -2
  122. package/dist/{chunk-ERZ2R42X.js → chunk-W2ZSNIBP.js} +2 -2
  123. package/dist/{chunk-3COYXTGM.js → chunk-WHWDBTCJ.js} +2 -2
  124. package/dist/{chunk-FIK3CQNA.js → chunk-WOC6DXP5.js} +3 -3
  125. package/dist/{chunk-4FBVAGV3.js → chunk-XBMJ35IP.js} +2 -2
  126. package/dist/{chunk-GFCVUY6G.js → chunk-YWCOJOUI.js} +2 -2
  127. package/dist/{chunk-2X2T2UVE.js → chunk-ZDAYWJV6.js} +1 -1
  128. package/dist/chunk-ZDAYWJV6.js.map +1 -0
  129. package/dist/{cli-BHBswmUa.d.ts → cli-D_RcqXfZ.d.ts} +5 -5
  130. package/dist/cli.d.ts +12 -12
  131. package/dist/cli.js +50 -50
  132. package/dist/compat/checks.js +1 -1
  133. package/dist/compounding/engine.d.ts +2 -2
  134. package/dist/compounding/engine.js +5 -5
  135. package/dist/compounding/preference-consolidator.d.ts +1 -1
  136. package/dist/compression-optimizer.d.ts +1 -1
  137. package/dist/config.d.ts +1 -1
  138. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  139. package/dist/connectors/codex-materialize-runner.js +5 -5
  140. package/dist/connectors/codex-materialize.d.ts +1 -1
  141. package/dist/connectors/index.d.ts +1 -1
  142. package/dist/connectors/index.js +5 -5
  143. package/dist/consolidation-provenance-check.d.ts +2 -2
  144. package/dist/consolidation-undo.d.ts +2 -2
  145. package/dist/contradiction/index.d.ts +2 -2
  146. package/dist/converge-config.d.ts +1 -1
  147. package/dist/convergence-refresh.d.ts +2 -2
  148. package/dist/convergence-refresh.js +7 -7
  149. package/dist/conversation-index/backend.d.ts +1 -1
  150. package/dist/conversation-index/backend.js +2 -2
  151. package/dist/conversation-index/chunker.d.ts +1 -1
  152. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  153. package/dist/conversation-index/indexer.d.ts +1 -1
  154. package/dist/conversation-index/search.d.ts +1 -1
  155. package/dist/corpus-watermark.d.ts +1 -1
  156. package/dist/corpus-watermark.js +13 -13
  157. package/dist/day-summary.d.ts +1 -1
  158. package/dist/delinearize.d.ts +1 -1
  159. package/dist/direct-answer-wiring.d.ts +1 -1
  160. package/dist/direct-answer.d.ts +1 -1
  161. package/dist/embedding-fallback.d.ts +1 -1
  162. package/dist/enrichment/index.d.ts +1 -1
  163. package/dist/entity-retrieval.d.ts +2 -2
  164. package/dist/entity-retrieval.js +5 -5
  165. package/dist/entity-schema.d.ts +1 -1
  166. package/dist/explicit-capture.d.ts +8 -8
  167. package/dist/external-wiki-access.d.ts +10 -10
  168. package/dist/external-wiki-access.js +25 -25
  169. package/dist/external-wiki-collection-registration.d.ts +1 -1
  170. package/dist/external-wiki-collection.d.ts +1 -1
  171. package/dist/external-wiki-mcp-tools.d.ts +10 -10
  172. package/dist/extraction-error-classification.d.ts +1 -1
  173. package/dist/extraction-faithfulness.d.ts +1 -1
  174. package/dist/extraction-judge-telemetry.d.ts +1 -1
  175. package/dist/extraction-judge-training.d.ts +1 -1
  176. package/dist/extraction-judge.d.ts +1 -1
  177. package/dist/extraction-liveness.d.ts +1 -1
  178. package/dist/extraction-prompt.d.ts +36 -0
  179. package/dist/extraction-prompt.js +16 -0
  180. package/dist/extraction-prompt.js.map +1 -0
  181. package/dist/extraction-source-grounding-rules.d.ts +1 -1
  182. package/dist/extraction-source-grounding.d.ts +1 -1
  183. package/dist/extraction.d.ts +6 -14
  184. package/dist/extraction.js +9 -7
  185. package/dist/fallback-llm.d.ts +1 -1
  186. package/dist/graph-dashboard-diff.d.ts +1 -1
  187. package/dist/graph-dashboard-key.d.ts +1 -1
  188. package/dist/graph-dashboard-parser.d.ts +1 -1
  189. package/dist/graph-edge-reinforcement.d.ts +1 -1
  190. package/dist/graph-snapshot.d.ts +1 -1
  191. package/dist/graph.d.ts +1 -1
  192. package/dist/importance.d.ts +1 -1
  193. package/dist/importers/index.d.ts +1 -1
  194. package/dist/in-flight-reads.d.ts +1 -1
  195. package/dist/index.d.ts +699 -696
  196. package/dist/index.js +124 -122
  197. package/dist/intent.d.ts +1 -1
  198. package/dist/lcm/engine.d.ts +1 -1
  199. package/dist/lcm/index.d.ts +1 -1
  200. package/dist/lcm/tools.d.ts +1 -1
  201. package/dist/lifecycle.d.ts +1 -1
  202. package/dist/live-connectors-runner.d.ts +1 -1
  203. package/dist/local-llm.d.ts +1 -1
  204. package/dist/local-model-endpoint.d.ts +1 -1
  205. package/dist/maintenance/memory-governance.d.ts +1 -1
  206. package/dist/maintenance/memory-governance.js +5 -5
  207. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
  208. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +5 -5
  209. package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
  210. package/dist/maintenance/rebuild-memory-projection.js +6 -6
  211. package/dist/{maintenance-CoRikzIt.d.ts → maintenance-DQrL93Uu.d.ts} +3 -3
  212. package/dist/mcp-memory-inspector-app.d.ts +10 -10
  213. package/dist/memory-action-policy.d.ts +1 -1
  214. package/dist/memory-cache.d.ts +1 -1
  215. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  216. package/dist/memory-projection-store.d.ts +1 -1
  217. package/dist/memory-provenance.d.ts +1 -1
  218. package/dist/memory-snapshot.d.ts +1 -1
  219. package/dist/memory-worth-outcomes.d.ts +2 -2
  220. package/dist/models-json.d.ts +1 -1
  221. package/dist/namespaces/migrate.d.ts +3 -3
  222. package/dist/namespaces/migrate.js +12 -12
  223. package/dist/namespaces/principal.d.ts +1 -1
  224. package/dist/namespaces/search.d.ts +1 -1
  225. package/dist/namespaces/search.js +6 -6
  226. package/dist/namespaces/storage.d.ts +3 -3
  227. package/dist/namespaces/storage.js +5 -5
  228. package/dist/native-knowledge.d.ts +1 -1
  229. package/dist/offline-sync-impression-drain.d.ts +1 -1
  230. package/dist/operator-doctor-corpus.d.ts +1 -1
  231. package/dist/operator-doctor-corpus.js +14 -14
  232. package/dist/operator-doctor-replica.d.ts +1 -1
  233. package/dist/operator-toolkit.d.ts +3 -3
  234. package/dist/operator-toolkit.js +18 -18
  235. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  236. package/dist/orchestration/maintenance.d.ts +4 -4
  237. package/dist/orchestration/maintenance.js +10 -10
  238. package/dist/{orchestrator-BJeq7Pw1.d.ts → orchestrator-LPGegii3.d.ts} +8 -8
  239. package/dist/orchestrator.d.ts +8 -8
  240. package/dist/orchestrator.js +73 -71
  241. package/dist/patterns-cli.d.ts +1 -1
  242. package/dist/{pipeline-CNjY4wk3.d.ts → pipeline-1h2GpiHP.d.ts} +1 -1
  243. package/dist/policy-runtime.d.ts +1 -1
  244. package/dist/proactive-contention.d.ts +1 -1
  245. package/dist/provenance.d.ts +1 -1
  246. package/dist/{qmd-C0UDZidt.d.ts → qmd-UdwoF71D.d.ts} +1 -1
  247. package/dist/qmd-preflight.d.ts +2 -2
  248. package/dist/qmd-recall-cache.d.ts +1 -1
  249. package/dist/qmd.d.ts +2 -2
  250. package/dist/recall-concurrency-config.d.ts +1 -1
  251. package/dist/recall-disclosure-escalation.d.ts +1 -1
  252. package/dist/recall-explain-renderer.d.ts +1 -1
  253. package/dist/recall-explain-renderer.js +3 -3
  254. package/dist/recall-memory-map.d.ts +1 -1
  255. package/dist/recall-planner-llm.d.ts +1 -1
  256. package/dist/recall-state.d.ts +1 -1
  257. package/dist/recall-tag-filter.d.ts +1 -1
  258. package/dist/recall-timings.d.ts +1 -1
  259. package/dist/recall-xray-cli.d.ts +1 -1
  260. package/dist/recall-xray-cli.js +4 -4
  261. package/dist/recall-xray-renderer.d.ts +1 -1
  262. package/dist/recall-xray-renderer.js +3 -3
  263. package/dist/recall-xray.d.ts +1 -1
  264. package/dist/recall-xray.js +2 -2
  265. package/dist/reconcile/cursor.d.ts +1 -1
  266. package/dist/reconcile/manifest.d.ts +1 -1
  267. package/dist/reconcile/plan.d.ts +1 -1
  268. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  269. package/dist/replay/normalizers/claude.d.ts +1 -1
  270. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  271. package/dist/replay/normalizers/shared.d.ts +1 -1
  272. package/dist/replay/runner.d.ts +1 -1
  273. package/dist/replay/types.d.ts +1 -1
  274. package/dist/replica-divergence.d.ts +1 -1
  275. package/dist/replica-peers-config.d.ts +1 -1
  276. package/dist/resolve-auth-token.d.ts +1 -1
  277. package/dist/retrieval-agents.d.ts +2 -2
  278. package/dist/retrieval-tiers.d.ts +1 -1
  279. package/dist/routing/engine.d.ts +1 -1
  280. package/dist/routing/store.d.ts +1 -1
  281. package/dist/salvage-envelope.d.ts +1 -1
  282. package/dist/schemas.d.ts +76 -76
  283. package/dist/{scope-profiles-BJzp2F5A.d.ts → scope-profiles-APjhSe-w.d.ts} +1 -1
  284. package/dist/sdk-compat.js.map +1 -1
  285. package/dist/search/embed-helper.d.ts +1 -1
  286. package/dist/search/factory.d.ts +1 -1
  287. package/dist/search/factory.js +5 -5
  288. package/dist/search/index.d.ts +1 -1
  289. package/dist/search/index.js +9 -9
  290. package/dist/search/lancedb-backend.d.ts +1 -1
  291. package/dist/search/meilisearch-backend.d.ts +1 -1
  292. package/dist/search/noop-backend.d.ts +1 -1
  293. package/dist/search/orama-backend.d.ts +1 -1
  294. package/dist/search/port.d.ts +1 -1
  295. package/dist/search/remote-backend.d.ts +1 -1
  296. package/dist/{semantic-consolidation-D4KAZO2G.d.ts → semantic-consolidation-CrySDbk3.d.ts} +1 -1
  297. package/dist/semantic-consolidation.d.ts +2 -2
  298. package/dist/semantic-consolidation.js +6 -6
  299. package/dist/semantic-rule-promotion.js +5 -5
  300. package/dist/semantic-rule-verifier.d.ts +1 -1
  301. package/dist/semantic-rule-verifier.js +5 -5
  302. package/dist/{service-DWC4tq7p.d.ts → service-DJ0LDyuN.d.ts} +2 -2
  303. package/dist/session-observer-bands.d.ts +1 -1
  304. package/dist/session-observer-state.d.ts +1 -1
  305. package/dist/shared-context/manager.d.ts +9 -9
  306. package/dist/signal.d.ts +1 -1
  307. package/dist/source-agent-qualifier.d.ts +4 -1
  308. package/dist/source-agent-qualifier.js +6 -6
  309. package/dist/{storage-DPGjB-8e.d.ts → storage-y340tYKb.d.ts} +1 -1
  310. package/dist/storage.d.ts +2 -2
  311. package/dist/storage.js +4 -4
  312. package/dist/summarizer.d.ts +1 -1
  313. package/dist/summary-snapshot.d.ts +1 -1
  314. package/dist/temporal-supersession.d.ts +2 -2
  315. package/dist/temporal-timeline-recall.d.ts +1 -1
  316. package/dist/temporal-validity.d.ts +1 -1
  317. package/dist/threading.d.ts +1 -1
  318. package/dist/tier-migration.d.ts +2 -2
  319. package/dist/tier-routing.d.ts +1 -1
  320. package/dist/topics.d.ts +1 -1
  321. package/dist/transcript.d.ts +1 -1
  322. package/dist/transfer/types.d.ts +66 -66
  323. package/dist/trust-score-stage.d.ts +1 -1
  324. package/dist/trust-score.d.ts +1 -1
  325. package/dist/{types-yX_FwERf.d.ts → types-D_Au9qJO.d.ts} +13 -2
  326. package/dist/types.d.ts +1 -1
  327. package/dist/types.js +1 -1
  328. package/dist/utility-runtime.d.ts +1 -1
  329. package/dist/verified-recall.js +5 -5
  330. package/dist/write-envelope.d.ts +1 -1
  331. package/package.json +2 -12
  332. package/src/ambient-provenance.test.ts +510 -0
  333. package/src/ambient-provenance.ts +229 -0
  334. package/src/buffer-turn-helpers.ts +17 -1
  335. package/src/compat/checks.test.ts +45 -1
  336. package/src/compat/checks.ts +16 -16
  337. package/src/extraction-prompt.ts +142 -0
  338. package/src/extraction.ts +37 -148
  339. package/src/meetings/memory-gen.test.ts +51 -0
  340. package/src/meetings/memory-gen.ts +36 -8
  341. package/src/meetings/summary-extractor.ts +4 -2
  342. package/src/orchestration/recall-internal.ts +5 -148
  343. package/src/orchestration/recall-profile-storage.ts +194 -0
  344. package/src/orchestration/recall-search-pipeline.ts +13 -182
  345. package/src/orchestration/recall-search-prefilter.ts +254 -0
  346. package/src/orchestration/session-context.ts +1 -1
  347. package/src/orchestrator.ts +1 -1
  348. package/src/sdk-compat.ts +2 -4
  349. package/src/source-agent-qualifier.ts +3 -0
  350. package/src/testing/subjects/recall-profile-storage.test.ts +362 -0
  351. package/src/testing/subjects/recall-search-prefilter.test.ts +365 -0
  352. package/src/types.ts +2 -2
  353. package/src/wearables/memory-gen.test.ts +82 -0
  354. package/src/wearables/memory-gen.ts +54 -5
  355. package/src/wearables/trust.ts +19 -2
  356. package/dist/chunk-2X2T2UVE.js.map +0 -1
  357. package/dist/chunk-DZPFMQZ7.js.map +0 -1
  358. package/dist/chunk-ER7W6H4T.js.map +0 -1
  359. package/dist/chunk-GODSPTOT.js.map +0 -1
  360. package/dist/chunk-GQL52GQ5.js.map +0 -1
  361. package/dist/chunk-R3KHKU7M.js.map +0 -1
  362. package/dist/chunk-UV72DEZD.js.map +0 -1
  363. package/dist/legacy-hook-compat.d.ts +0 -3
  364. package/dist/legacy-hook-compat.js +0 -36
  365. package/dist/legacy-hook-compat.js.map +0 -1
  366. package/src/legacy-hook-compat.test.ts +0 -20
  367. package/src/legacy-hook-compat.ts +0 -45
  368. /package/dist/{chunk-LEPOP46W.js.map → chunk-227UFSEQ.js.map} +0 -0
  369. /package/dist/{chunk-CX4ZUMC6.js.map → chunk-2DSUT7DZ.js.map} +0 -0
  370. /package/dist/{chunk-DAJPRXBR.js.map → chunk-47J4EDGR.js.map} +0 -0
  371. /package/dist/{chunk-QVJPH7SH.js.map → chunk-5LRDM4R7.js.map} +0 -0
  372. /package/dist/{chunk-XAGYS7X6.js.map → chunk-5R6S4DJZ.js.map} +0 -0
  373. /package/dist/{chunk-QR6G5KF4.js.map → chunk-5VQPZ4GV.js.map} +0 -0
  374. /package/dist/{chunk-E5XQIWAL.js.map → chunk-64BHFFKZ.js.map} +0 -0
  375. /package/dist/{chunk-GRUYA45P.js.map → chunk-6H744ZBH.js.map} +0 -0
  376. /package/dist/{chunk-6ISC4AVB.js.map → chunk-BDNL34CT.js.map} +0 -0
  377. /package/dist/{chunk-AC5OWJLV.js.map → chunk-E4FOAENZ.js.map} +0 -0
  378. /package/dist/{chunk-UW66OZTD.js.map → chunk-FULKGK7P.js.map} +0 -0
  379. /package/dist/{chunk-V2TNYF6Q.js.map → chunk-HJ3SVHUW.js.map} +0 -0
  380. /package/dist/{chunk-A4IJCD2Z.js.map → chunk-HXXTXLKA.js.map} +0 -0
  381. /package/dist/{chunk-FUCYDRE5.js.map → chunk-IDE5AR5W.js.map} +0 -0
  382. /package/dist/{chunk-2FSTB6BJ.js.map → chunk-ILBLZ5Y5.js.map} +0 -0
  383. /package/dist/{chunk-WZ3TOIDW.js.map → chunk-JFO5QZ7N.js.map} +0 -0
  384. /package/dist/{chunk-FR27HBBA.js.map → chunk-KA47C7BF.js.map} +0 -0
  385. /package/dist/{chunk-JZH4LWHB.js.map → chunk-KMWYZTIE.js.map} +0 -0
  386. /package/dist/{chunk-LPYDOLSM.js.map → chunk-L7G72WY4.js.map} +0 -0
  387. /package/dist/{chunk-AMAUBUKY.js.map → chunk-LI7OE7G6.js.map} +0 -0
  388. /package/dist/{chunk-MO4HSXHZ.js.map → chunk-M2INOSTA.js.map} +0 -0
  389. /package/dist/{chunk-HFPASSFV.js.map → chunk-P2OTGMTR.js.map} +0 -0
  390. /package/dist/{chunk-W2V7UESE.js.map → chunk-PFJXPOD4.js.map} +0 -0
  391. /package/dist/{chunk-NEF7LR5J.js.map → chunk-RVPTS4U5.js.map} +0 -0
  392. /package/dist/{chunk-W3IC7QOY.js.map → chunk-RVYVMQK4.js.map} +0 -0
  393. /package/dist/{chunk-GUAL4PQH.js.map → chunk-ST5IEK3H.js.map} +0 -0
  394. /package/dist/{chunk-O4KMGRXE.js.map → chunk-SXWHN7GC.js.map} +0 -0
  395. /package/dist/{chunk-RNHVVMFN.js.map → chunk-T6JRMVOV.js.map} +0 -0
  396. /package/dist/{chunk-5QJQHBLE.js.map → chunk-U6JGQ37L.js.map} +0 -0
  397. /package/dist/{chunk-HC3PBX23.js.map → chunk-V5FE3UAI.js.map} +0 -0
  398. /package/dist/{chunk-ERZ2R42X.js.map → chunk-W2ZSNIBP.js.map} +0 -0
  399. /package/dist/{chunk-3COYXTGM.js.map → chunk-WHWDBTCJ.js.map} +0 -0
  400. /package/dist/{chunk-FIK3CQNA.js.map → chunk-WOC6DXP5.js.map} +0 -0
  401. /package/dist/{chunk-4FBVAGV3.js.map → chunk-XBMJ35IP.js.map} +0 -0
  402. /package/dist/{chunk-GFCVUY6G.js.map → chunk-YWCOJOUI.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { resolveRemnicConfigRecord } from './config-record.js';
4
4
  export { ExternalWikiCatalog, ExternalWikiCatalogEntry, ExternalWikiCatalogLimits, ExternalWikiLayout, ExternalWikiPage, loadExternalWikiCatalog, parseExternalWikiCatalog, readExternalWikiPage, validateExternalWikiLayout } from './external-wiki.js';
5
5
  export { runExternalWikiCliCommand } from './external-wiki-cli.js';
6
6
  export { MigrationOptions, MigrationResult, RollbackResult, migrateFromEngram, rollbackFromEngramMigration } from './migrate/from-engram.js';
7
- export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-BJeq7Pw1.js';
7
+ export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-LPGegii3.js';
8
8
  export { normalizeProjectionPreview, normalizeProjectionTags } from './memory-projection-format.js';
9
9
  export { ModelCapabilities, ModelRegistry } from './model-registry.js';
10
10
  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';
@@ -14,8 +14,8 @@ export { TargetedFactRecallOptions, buildTargetedFactRecallSection, shouldRecall
14
14
  export { FocusedListRecallOptions, buildFocusedListRecallSection, shouldRecallFocusedListEvidence } from './focused-list-recall.js';
15
15
  export { ResponseGuidanceRecallOptions, buildResponseGuidanceRecallSection, shouldRecallResponseGuidance } from './response-guidance-recall.js';
16
16
  export { EventOrderRecallOptions, buildEventOrderRecallSection, shouldRecallEventOrderEvidence } from './event-order-recall.js';
17
- import { S as StorageManager, a as MeetingRecordStore } from './storage-DPGjB-8e.js';
18
- 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-DPGjB-8e.js';
17
+ import { S as StorageManager, a as MeetingRecordStore } from './storage-y340tYKb.js';
18
+ 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-y340tYKb.js';
19
19
  import { SealedMemoryEnvelope } from './write-envelope.js';
20
20
  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';
21
21
  export { HostEmbeddingInputType, HostEmbeddingProvider, getHostEmbeddingProvider, normalizeHostEmbeddingVector, registerHostEmbeddingProvider } from './host-embedding-provider.js';
@@ -24,13 +24,13 @@ export { CodexCliFallbackConfig, CodexCliFallbackMessage, CodexCliFallbackOption
24
24
  export { BufferSurpriseProbe, SmartBuffer, TriggerDecision } from './buffer.js';
25
25
  export { ComputeSurpriseOptions, DEFAULT_SURPRISE_K, RecentMemoryLike, computeSurprise } from './buffer-surprise.js';
26
26
  export { BufferSurpriseDistribution, BufferSurpriseReader, BufferSurpriseReportOptions, reportBufferSurpriseDistribution } from './buffer-surprise-report.js';
27
- import { C as CodingContext, bg as CodingModeConfig, b8 as FusionConversationInput, bh as FusedSpeaker, bi as FusedSegment, bj as FusedDisagreement, bk as FusionOptions, aX as WearableConversation, bl as FusionDayResult, P as PluginConfig, bm as CodingKnowledgeConfig, w as MemoryCategory, bn as WearableCleanupSettings, bo as WearableFusionConfig, aY as WearableSourceSettings, b0 as WearablesConfig, a$ as WearableSourceConnector, b4 as WearableCorrectionRule, bp as WearableDayTranscriptMeta, b3 as WearableDayTranscript, aF as ActivitySnapshot, bq as ActivityDayMeta, br as ActivityDayDigest, aI as ActivitySourceClient, bs as ActivitySourceCheck, bt as ActivitySnapshotPage, aG as ActivityConfig, K as ExtractionResult, y as MemoryStatus, aq as ImportanceScore, bu as MeetingsDetectionConfig, b7 as MeetingsDetectionInput, ba as DetectedMeeting, b6 as MeetingsConfig, aM as MeetingRecord, bv as MeetingAudioWindow, bw as MeetingAppSpan } from './types-yX_FwERf.js';
28
- export { bx as ActivityExtractionMode, aH as ActivitySourceConfig, u as AgentAccessAuthToken, g as BriefingActiveThread, by as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, bz as BriefingOpenCommitment, i as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bA as BriefingWindow, a9 as BufferSurpriseEvent, bB as BulkImportError, ab as BulkImportOptions, ad as BulkImportResult, ac as BulkImportSource, bC as BulkImportSourceAdapter, f as CalendarEvent, e as CalendarSource, bD as CodexCompatConfig, bf as ConsolidationObservation, bE as DEFAULT_RECALL_DISCLOSURE, bF as DisagreementKind, E as EntityFile, ao as EntityStructuredSection, bG as ExtractedFact, bH as FusedContribution, bI as FusedConversationProvenance, aL as FusedDayFile, aK as FusedDayMeta, aO as FusedMeeting, bJ as FusedSegmentProvenance, aJ as FusedWearableConversation, bK as FusionSegmentInput, G as GatewayConfig, bL as ImportSourceRole, aa as ImportTurn, bM as ImportTurnValidationIssue, b9 as MeetingActivitySnapshot, b5 as MeetingBuildInput, aN as MeetingDetectionSource, bN as MeetingScreenContextEvent, bO as MeetingSummaryMode, as as MemoryActionEligibilityContext, bP as MemoryActionEligibilitySource, ah as MemoryActionType, M as MemoryFile, l as MemoryFrontmatter, bQ as MemoryObservation, bR as MemoryScope, bS as RECALL_DISCLOSURE_LEVELS, n as RecallDisclosure, t as SecretRef, bT as SegmentPickReason, bU as WearableAuthCheck, bV as WearableFetchOptions, bW as WearableFetchPage, a_ as WearableMemoryMode, aZ as WearableNativeMemory, bX as WearableNativeMemoryPage, b2 as WearableSourceStatus, b1 as WearableSyncSummary, bY as WearableTranscriptSegment, bZ as isImportRole, b_ as isRecallDisclosure, b$ as parseIsoTimestamp, c0 as validateImportTurn } from './types-yX_FwERf.js';
27
+ import { C as CodingContext, bg as CodingModeConfig, b8 as FusionConversationInput, bh as FusedSpeaker, bi as FusedSegment, bj as FusedDisagreement, bk as FusionOptions, aX as WearableConversation, bl as FusionDayResult, P as PluginConfig, bm as CodingKnowledgeConfig, w as MemoryCategory, bn as WearableCleanupSettings, bo as WearableFusionConfig, aY as WearableSourceSettings, b0 as WearablesConfig, a$ as WearableSourceConnector, b4 as WearableCorrectionRule, bp as WearableDayTranscriptMeta, b3 as WearableDayTranscript, aF as ActivitySnapshot, bq as ActivityDayMeta, br as ActivityDayDigest, aI as ActivitySourceClient, bs as ActivitySourceCheck, bt as ActivitySnapshotPage, aG as ActivityConfig, K as ExtractionResult, y as MemoryStatus, aq as ImportanceScore, bu as MeetingsDetectionConfig, b7 as MeetingsDetectionInput, ba as DetectedMeeting, b6 as MeetingsConfig, aM as MeetingRecord, bv as MeetingAudioWindow, bw as MeetingAppSpan } from './types-D_Au9qJO.js';
28
+ export { bx as ActivityExtractionMode, aH as ActivitySourceConfig, u as AgentAccessAuthToken, g as BriefingActiveThread, by as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, bz as BriefingOpenCommitment, i as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bA as BriefingWindow, a9 as BufferSurpriseEvent, bB as BulkImportError, ab as BulkImportOptions, ad as BulkImportResult, ac as BulkImportSource, bC as BulkImportSourceAdapter, f as CalendarEvent, e as CalendarSource, bD as CodexCompatConfig, bf as ConsolidationObservation, bE as DEFAULT_RECALL_DISCLOSURE, bF as DisagreementKind, E as EntityFile, ao as EntityStructuredSection, bG as ExtractedFact, bH as FusedContribution, bI as FusedConversationProvenance, aL as FusedDayFile, aK as FusedDayMeta, aO as FusedMeeting, bJ as FusedSegmentProvenance, aJ as FusedWearableConversation, bK as FusionSegmentInput, G as GatewayConfig, bL as ImportSourceRole, aa as ImportTurn, bM as ImportTurnValidationIssue, b9 as MeetingActivitySnapshot, b5 as MeetingBuildInput, aN as MeetingDetectionSource, bN as MeetingScreenContextEvent, bO as MeetingSummaryMode, as as MemoryActionEligibilityContext, bP as MemoryActionEligibilitySource, ah as MemoryActionType, M as MemoryFile, l as MemoryFrontmatter, bQ as MemoryObservation, bR as MemoryScope, bS as RECALL_DISCLOSURE_LEVELS, n as RecallDisclosure, t as SecretRef, bT as SegmentPickReason, bU as WearableAuthCheck, bV as WearableFetchOptions, bW as WearableFetchPage, a_ as WearableMemoryMode, aZ as WearableNativeMemory, bX as WearableNativeMemoryPage, b2 as WearableSourceStatus, b1 as WearableSyncSummary, bY as WearableTranscriptSegment, bZ as isImportRole, b_ as isRecallDisclosure, b$ as parseIsoTimestamp, c0 as validateImportTurn } from './types-D_Au9qJO.js';
29
29
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
30
30
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
31
31
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
32
- import { f as EngramAccessService } from './access-service-CNN89xyn.js';
33
- export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, N as computeProcedureStats, O as formatProcedureStatsText } from './access-service-CNN89xyn.js';
32
+ import { f as EngramAccessService } from './access-service-loJadYd7.js';
33
+ export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, N as computeProcedureStats, O as formatProcedureStatsText } from './access-service-loJadYd7.js';
34
34
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
35
35
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
36
36
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -38,13 +38,13 @@ export { LcmMessagePartInput, LcmMessagePartKind, LcmMessagePartRow, MessagePart
38
38
  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';
39
39
  export { BuildRetrievedMemoryProvenanceOptions, RetrievedMemoryCorrectionState, RetrievedMemoryProvenance, RetrievedMemorySafety, buildRetrievedMemoryProvenance, normalizeRetrievedMemoryProvenance, summarizeRetrievedMemoryProvenance } from './memory-provenance.js';
40
40
  export { CITATION_UNKNOWN, CitationContext, DEFAULT_CITATION_FORMAT, ParsedCitation, attachCitation, deriveSessionId, formatCitation, hasCitation, parseAllCitations, parseCitation, stripCitation } from './source-attribution.js';
41
- export { Q as QmdClient } from './qmd-C0UDZidt.js';
41
+ export { Q as QmdClient } from './qmd-UdwoF71D.js';
42
42
  export { LanceDbBackend } from './search/lancedb-backend.js';
43
43
  export { OramaBackend } from './search/orama-backend.js';
44
44
  export { MeilisearchBackend } from './search/meilisearch-backend.js';
45
45
  export { buildEntityRecallSection } from './entity-retrieval.js';
46
46
  export { isNamespacePolicyCovered, resolvePrincipal } from './namespaces/principal.js';
47
- 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-bctMURhN.js';
47
+ 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-Iwbk9h5E.js';
48
48
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
49
49
  export { storagePathHash } from './storage-paths.js';
50
50
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
@@ -73,8 +73,8 @@ export { initLogger, log } from './logger.js';
73
73
  export { b as SemanticDedupDecision, a as SemanticDedupHit, S as SemanticDedupLookup, c as SemanticDedupOptions, d as decideSemanticDedup } from './semantic-TddhF0y7.js';
74
74
  export { drainPendingImpressionsForOfflineSync, drainPendingLifecycleForOfflineSync } from './offline-sync-impression-drain.js';
75
75
  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_MAX_MTIME_MS, OFFLINE_SYNC_SNAPSHOT_BASE_MAX_BODY_BYTES, OFFLINE_SYNC_SNAPSHOT_FORMAT, OFFLINE_SYNC_STATE_VERSION, OfflineSyncApplyChangesetResult, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplySnapshotResult, OfflineSyncChange, OfflineSyncChangeset, OfflineSyncConflict, OfflineSyncDeletionRevision, OfflineSyncFileContentChunk, OfflineSyncFileDeleteTarget, OfflineSyncFileDigest, OfflineSyncFileRecord, OfflineSyncFileState, OfflineSyncFileTarget, OfflineSyncFileWriteTarget, OfflineSyncRecordDeletionRevision, OfflineSyncSnapshot, OfflineSyncState, applyOfflineSyncChangeset, applyOfflineSyncFileContentChunk, applyOfflineSyncSnapshot, buildOfflineSyncChangeset, buildOfflineSyncChangesetFromSnapshot, buildOfflineSyncSnapshot, buildOfflineSyncSnapshotForPaths, buildOfflineSyncSnapshotFromBase, compileOfflineSyncExcludeGlobs, defaultOfflineSyncStatePath, fileStatesFromSnapshot, filterOfflineSyncDeletionRevisions, globToRegExp, isInternalRemnicStatePath, iterateOfflineSyncSnapshotFileRecords, normalizeOfflineSyncChangeset, normalizeOfflineSyncSnapshot, offlineSyncStateFromSnapshot, readOfflineSyncFileContentChunk, readOfflineSyncState, shouldPreferIncomingOfflineRuntimeFile, summarizeOfflineSyncChangeset, summarizeOfflineSyncPendingChanges, summarizeOfflineSyncPendingFiles, writeOfflineSyncState } from './offline-sync.js';
76
- import { D as DiscoveredExtension } from './semantic-consolidation-D4KAZO2G.js';
77
- export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-D4KAZO2G.js';
76
+ import { D as DiscoveredExtension } from './semantic-consolidation-CrySDbk3.js';
77
+ export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-CrySDbk3.js';
78
78
  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';
79
79
  import { L as LiveConnector, S as SyncIncrementalResult } from './framework-CNDn2164.js';
80
80
  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';
@@ -89,12 +89,12 @@ import { T as Taxonomy, R as ResolverDecision } from './types-DJhqDJUV.js';
89
89
  export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
90
90
  export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, EnrichmentPipelineConfig, EnrichmentProvider, EnrichmentProviderConfig, EnrichmentProviderRegistry, EnrichmentResult, EntityEnrichmentInput, WebSearchFn, WebSearchProvider, WebSearchProviderOptions, appendAuditEntry, defaultEnrichmentPipelineConfig, readAuditLog, runEnrichmentPipeline } from './enrichment/index.js';
91
91
  export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
92
- export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-CNjY4wk3.js';
93
- export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-BHBswmUa.js';
94
- 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-DWC4tq7p.js';
95
- 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-DWC4tq7p.js';
96
- import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-CoRikzIt.js';
97
- 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-CoRikzIt.js';
92
+ export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-1h2GpiHP.js';
93
+ export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-D_RcqXfZ.js';
94
+ 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-DJ0LDyuN.js';
95
+ 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-DJ0LDyuN.js';
96
+ import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-DQrL93Uu.js';
97
+ 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-DQrL93Uu.js';
98
98
  import { SearchExecutionOptions } from './search/port.js';
99
99
  export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
100
100
  export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
@@ -112,7 +112,7 @@ export { P as PEERS_DIR_NAME, a as appendInteractionLog, b as assertValidPeerId,
112
112
  import { ImportCapsuleResult } from './transfer/capsule-import.js';
113
113
  import { ExportManifestV2, CapsuleParent } from './transfer/types.js';
114
114
  export { CODING_GRAPH_ENGINE_VERSION, CodingGraphEngine, CodingGraphErrorCode, CodingGraphLanguage, CreateCodingGraphEngineOptions, FileIR, ParseFileInput, ParseResult, SymbolIR, TIER_1_LANGUAGES } from './coding/coding-graph-types.js';
115
- export { R as ResolvedScopeProfilePlan } from './scope-profiles-BJzp2F5A.js';
115
+ export { R as ResolvedScopeProfilePlan } from './scope-profiles-APjhSe-w.js';
116
116
  export { ContinuityImprovementLoop } from './types-continuity.js';
117
117
  export { EngramAccessInputError } from './access-errors.js';
118
118
  export { ExternalWikiRoot } from './external-wiki-config.js';
@@ -174,7 +174,7 @@ import './policy-runtime.js';
174
174
  import './profiling.js';
175
175
  import './schemas.js';
176
176
  import './extraction-error-classification.js';
177
- import './access-namespace-preflight-CWUDwB4M.js';
177
+ import './access-namespace-preflight--H6HwN85.js';
178
178
  import './recall-explain-renderer.js';
179
179
  import './access-citation.js';
180
180
  import './access-health-types.js';
@@ -886,15 +886,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
886
886
  locator: z.ZodOptional<z.ZodString>;
887
887
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
888
888
  }, "strict", z.ZodTypeAny, {
889
- id: string;
889
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
890
890
  label: string;
891
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
891
+ id: string;
892
892
  capture: "at_action" | "historical_lookup" | "fixture";
893
893
  locator?: string | undefined;
894
894
  }, {
895
- id: string;
895
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
896
896
  label: string;
897
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
897
+ id: string;
898
898
  capture: "at_action" | "historical_lookup" | "fixture";
899
899
  locator?: string | undefined;
900
900
  }>;
@@ -911,15 +911,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
911
911
  locator: z.ZodOptional<z.ZodString>;
912
912
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
913
913
  }, "strict", z.ZodTypeAny, {
914
- id: string;
914
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
915
915
  label: string;
916
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
916
+ id: string;
917
917
  capture: "at_action" | "historical_lookup" | "fixture";
918
918
  locator?: string | undefined;
919
919
  }, {
920
- id: string;
920
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
921
921
  label: string;
922
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
922
+ id: string;
923
923
  capture: "at_action" | "historical_lookup" | "fixture";
924
924
  locator?: string | undefined;
925
925
  }>, "many">>;
@@ -927,9 +927,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
927
927
  kind: "mission_started";
928
928
  title: string;
929
929
  evidence: {
930
- id: string;
930
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
931
931
  label: string;
932
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
932
+ id: string;
933
933
  capture: "at_action" | "historical_lookup" | "fixture";
934
934
  locator?: string | undefined;
935
935
  }[];
@@ -941,9 +941,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
941
941
  objective: string;
942
942
  runMode: "replay" | "fixture" | "live";
943
943
  evidence?: {
944
- id: string;
944
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
945
945
  label: string;
946
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
946
+ id: string;
947
947
  capture: "at_action" | "historical_lookup" | "fixture";
948
948
  locator?: string | undefined;
949
949
  }[] | undefined;
@@ -959,15 +959,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
959
959
  locator: z.ZodOptional<z.ZodString>;
960
960
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
961
961
  }, "strict", z.ZodTypeAny, {
962
- id: string;
962
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
963
963
  label: string;
964
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
964
+ id: string;
965
965
  capture: "at_action" | "historical_lookup" | "fixture";
966
966
  locator?: string | undefined;
967
967
  }, {
968
- id: string;
968
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
969
969
  label: string;
970
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
970
+ id: string;
971
971
  capture: "at_action" | "historical_lookup" | "fixture";
972
972
  locator?: string | undefined;
973
973
  }>, "many">>;
@@ -975,32 +975,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
975
975
  sessionId: z.ZodString;
976
976
  kind: z.ZodLiteral<"agent_status">;
977
977
  }, "strict", z.ZodTypeAny, {
978
- label: string;
979
- status: "failed" | "complete" | "blocked" | "working" | "idle";
980
978
  kind: "agent_status";
979
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
980
+ label: string;
981
981
  role: string;
982
982
  agentId: string;
983
983
  sessionId: string;
984
984
  evidence: {
985
- id: string;
985
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
986
986
  label: string;
987
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
987
+ id: string;
988
988
  capture: "at_action" | "historical_lookup" | "fixture";
989
989
  locator?: string | undefined;
990
990
  }[];
991
991
  detail?: string | undefined;
992
992
  }, {
993
- label: string;
994
- status: "failed" | "complete" | "blocked" | "working" | "idle";
995
993
  kind: "agent_status";
994
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
995
+ label: string;
996
996
  role: string;
997
997
  agentId: string;
998
998
  sessionId: string;
999
999
  detail?: string | undefined;
1000
1000
  evidence?: {
1001
- id: string;
1001
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1002
1002
  label: string;
1003
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1003
+ id: string;
1004
1004
  capture: "at_action" | "historical_lookup" | "fixture";
1005
1005
  locator?: string | undefined;
1006
1006
  }[] | undefined;
@@ -1014,15 +1014,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1014
1014
  locator: z.ZodOptional<z.ZodString>;
1015
1015
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1016
1016
  }, "strict", z.ZodTypeAny, {
1017
- id: string;
1017
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1018
1018
  label: string;
1019
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1019
+ id: string;
1020
1020
  capture: "at_action" | "historical_lookup" | "fixture";
1021
1021
  locator?: string | undefined;
1022
1022
  }, {
1023
- id: string;
1023
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1024
1024
  label: string;
1025
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1025
+ id: string;
1026
1026
  capture: "at_action" | "historical_lookup" | "fixture";
1027
1027
  locator?: string | undefined;
1028
1028
  }>, "many">>;
@@ -1030,28 +1030,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1030
1030
  sessionId: z.ZodString;
1031
1031
  kind: z.ZodLiteral<"agent_output">;
1032
1032
  }, "strict", z.ZodTypeAny, {
1033
- summary: string;
1034
1033
  kind: "agent_output";
1034
+ summary: string;
1035
1035
  agentId: string;
1036
1036
  sessionId: string;
1037
1037
  evidence: {
1038
- id: string;
1038
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1039
1039
  label: string;
1040
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1040
+ id: string;
1041
1041
  capture: "at_action" | "historical_lookup" | "fixture";
1042
1042
  locator?: string | undefined;
1043
1043
  }[];
1044
1044
  outputId: string;
1045
1045
  }, {
1046
- summary: string;
1047
1046
  kind: "agent_output";
1047
+ summary: string;
1048
1048
  agentId: string;
1049
1049
  sessionId: string;
1050
1050
  outputId: string;
1051
1051
  evidence?: {
1052
- id: string;
1052
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1053
1053
  label: string;
1054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1054
+ id: string;
1055
1055
  capture: "at_action" | "historical_lookup" | "fixture";
1056
1056
  locator?: string | undefined;
1057
1057
  }[] | undefined;
@@ -1067,15 +1067,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1067
1067
  locator: z.ZodOptional<z.ZodString>;
1068
1068
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1069
1069
  }, "strict", z.ZodTypeAny, {
1070
- id: string;
1070
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1071
1071
  label: string;
1072
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1072
+ id: string;
1073
1073
  capture: "at_action" | "historical_lookup" | "fixture";
1074
1074
  locator?: string | undefined;
1075
1075
  }, {
1076
- id: string;
1076
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1077
1077
  label: string;
1078
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1078
+ id: string;
1079
1079
  capture: "at_action" | "historical_lookup" | "fixture";
1080
1080
  locator?: string | undefined;
1081
1081
  }>, "many">>;
@@ -1088,9 +1088,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1088
1088
  statement: string;
1089
1089
  sessionId: string;
1090
1090
  evidence: {
1091
- id: string;
1091
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1092
1092
  label: string;
1093
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1093
+ id: string;
1094
1094
  capture: "at_action" | "historical_lookup" | "fixture";
1095
1095
  locator?: string | undefined;
1096
1096
  }[];
@@ -1106,9 +1106,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1106
1106
  decisionId: string;
1107
1107
  confidence?: number | undefined;
1108
1108
  evidence?: {
1109
- id: string;
1109
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1110
1110
  label: string;
1111
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1111
+ id: string;
1112
1112
  capture: "at_action" | "historical_lookup" | "fixture";
1113
1113
  locator?: string | undefined;
1114
1114
  }[] | undefined;
@@ -1125,25 +1125,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1125
1125
  locator: z.ZodOptional<z.ZodString>;
1126
1126
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1127
1127
  }, "strict", z.ZodTypeAny, {
1128
- id: string;
1128
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1129
1129
  label: string;
1130
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1130
+ id: string;
1131
1131
  capture: "at_action" | "historical_lookup" | "fixture";
1132
1132
  locator?: string | undefined;
1133
1133
  }, {
1134
- id: string;
1134
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1135
1135
  label: string;
1136
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1136
+ id: string;
1137
1137
  capture: "at_action" | "historical_lookup" | "fixture";
1138
1138
  locator?: string | undefined;
1139
1139
  }>, "many">>;
1140
1140
  }, "strict", z.ZodTypeAny, {
1141
- summary: string;
1142
1141
  kind: "conflict_detected";
1142
+ summary: string;
1143
1143
  evidence: {
1144
- id: string;
1144
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1145
1145
  label: string;
1146
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1146
+ id: string;
1147
1147
  capture: "at_action" | "historical_lookup" | "fixture";
1148
1148
  locator?: string | undefined;
1149
1149
  }[];
@@ -1151,15 +1151,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1151
1151
  decisionIds: string[];
1152
1152
  agentIds: string[];
1153
1153
  }, {
1154
- summary: string;
1155
1154
  kind: "conflict_detected";
1155
+ summary: string;
1156
1156
  conflictId: string;
1157
1157
  decisionIds: string[];
1158
1158
  agentIds: string[];
1159
1159
  evidence?: {
1160
- id: string;
1160
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1161
1161
  label: string;
1162
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1162
+ id: string;
1163
1163
  capture: "at_action" | "historical_lookup" | "fixture";
1164
1164
  locator?: string | undefined;
1165
1165
  }[] | undefined;
@@ -1179,27 +1179,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1179
1179
  locator: z.ZodOptional<z.ZodString>;
1180
1180
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1181
1181
  }, "strict", z.ZodTypeAny, {
1182
- id: string;
1182
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1183
1183
  label: string;
1184
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1184
+ id: string;
1185
1185
  capture: "at_action" | "historical_lookup" | "fixture";
1186
1186
  locator?: string | undefined;
1187
1187
  }, {
1188
- id: string;
1188
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1189
1189
  label: string;
1190
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1190
+ id: string;
1191
1191
  capture: "at_action" | "historical_lookup" | "fixture";
1192
1192
  locator?: string | undefined;
1193
1193
  }>, "many">>;
1194
1194
  }, "strict", z.ZodTypeAny, {
1195
+ kind: "test_result";
1195
1196
  summary: string;
1196
1197
  status: "error" | "failed" | "passed";
1197
- kind: "test_result";
1198
1198
  command: string;
1199
1199
  evidence: {
1200
- id: string;
1200
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1201
1201
  label: string;
1202
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1202
+ id: string;
1203
1203
  capture: "at_action" | "historical_lookup" | "fixture";
1204
1204
  locator?: string | undefined;
1205
1205
  }[];
@@ -1208,17 +1208,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1208
1208
  durationMs?: number | undefined;
1209
1209
  correctionId?: string | undefined;
1210
1210
  }, {
1211
+ kind: "test_result";
1211
1212
  summary: string;
1212
1213
  status: "error" | "failed" | "passed";
1213
- kind: "test_result";
1214
1214
  command: string;
1215
1215
  decisionId: string;
1216
1216
  testId: string;
1217
1217
  durationMs?: number | undefined;
1218
1218
  evidence?: {
1219
- id: string;
1219
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1220
1220
  label: string;
1221
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1221
+ id: string;
1222
1222
  capture: "at_action" | "historical_lookup" | "fixture";
1223
1223
  locator?: string | undefined;
1224
1224
  }[] | undefined;
@@ -1239,15 +1239,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1239
1239
  locator: z.ZodOptional<z.ZodString>;
1240
1240
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1241
1241
  }, "strict", z.ZodTypeAny, {
1242
- id: string;
1242
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1243
1243
  label: string;
1244
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1244
+ id: string;
1245
1245
  capture: "at_action" | "historical_lookup" | "fixture";
1246
1246
  locator?: string | undefined;
1247
1247
  }, {
1248
- id: string;
1248
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1249
1249
  label: string;
1250
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1250
+ id: string;
1251
1251
  capture: "at_action" | "historical_lookup" | "fixture";
1252
1252
  locator?: string | undefined;
1253
1253
  }>, "many">>;
@@ -1256,9 +1256,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1256
1256
  rationale: string;
1257
1257
  statement: string;
1258
1258
  evidence: {
1259
- id: string;
1259
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1260
1260
  label: string;
1261
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1261
+ id: string;
1262
1262
  capture: "at_action" | "historical_lookup" | "fixture";
1263
1263
  locator?: string | undefined;
1264
1264
  }[];
@@ -1277,9 +1277,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1277
1277
  supersedesDecisionIds: string[];
1278
1278
  proposedBy: string;
1279
1279
  evidence?: {
1280
- id: string;
1280
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1281
1281
  label: string;
1282
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1282
+ id: string;
1283
1283
  capture: "at_action" | "historical_lookup" | "fixture";
1284
1284
  locator?: string | undefined;
1285
1285
  }[] | undefined;
@@ -1291,13 +1291,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1291
1291
  id: z.ZodString;
1292
1292
  label: z.ZodString;
1293
1293
  }, "strict", z.ZodTypeAny, {
1294
- id: string;
1295
- label: string;
1296
1294
  kind: "agent" | "human";
1297
- }, {
1298
- id: string;
1299
1295
  label: string;
1296
+ id: string;
1297
+ }, {
1300
1298
  kind: "agent" | "human";
1299
+ label: string;
1300
+ id: string;
1301
1301
  }>;
1302
1302
  note: z.ZodOptional<z.ZodString>;
1303
1303
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1307,47 +1307,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1307
1307
  locator: z.ZodOptional<z.ZodString>;
1308
1308
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1309
1309
  }, "strict", z.ZodTypeAny, {
1310
- id: string;
1310
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1311
1311
  label: string;
1312
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1312
+ id: string;
1313
1313
  capture: "at_action" | "historical_lookup" | "fixture";
1314
1314
  locator?: string | undefined;
1315
1315
  }, {
1316
- id: string;
1316
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1317
1317
  label: string;
1318
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1318
+ id: string;
1319
1319
  capture: "at_action" | "historical_lookup" | "fixture";
1320
1320
  locator?: string | undefined;
1321
1321
  }>, "many">>;
1322
1322
  }, "strict", z.ZodTypeAny, {
1323
1323
  kind: "correction_approved";
1324
1324
  evidence: {
1325
- id: string;
1325
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1326
1326
  label: string;
1327
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1327
+ id: string;
1328
1328
  capture: "at_action" | "historical_lookup" | "fixture";
1329
1329
  locator?: string | undefined;
1330
1330
  }[];
1331
1331
  correctionId: string;
1332
1332
  approvedBy: {
1333
- id: string;
1334
- label: string;
1335
1333
  kind: "agent" | "human";
1334
+ label: string;
1335
+ id: string;
1336
1336
  };
1337
1337
  note?: string | undefined;
1338
1338
  }, {
1339
1339
  kind: "correction_approved";
1340
1340
  correctionId: string;
1341
1341
  approvedBy: {
1342
- id: string;
1343
- label: string;
1344
1342
  kind: "agent" | "human";
1343
+ label: string;
1344
+ id: string;
1345
1345
  };
1346
1346
  note?: string | undefined;
1347
1347
  evidence?: {
1348
- id: string;
1348
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1349
1349
  label: string;
1350
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1350
+ id: string;
1351
1351
  capture: "at_action" | "historical_lookup" | "fixture";
1352
1352
  locator?: string | undefined;
1353
1353
  }[] | undefined;
@@ -1363,24 +1363,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1363
1363
  locator: z.ZodOptional<z.ZodString>;
1364
1364
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1365
1365
  }, "strict", z.ZodTypeAny, {
1366
- id: string;
1366
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1367
1367
  label: string;
1368
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1368
+ id: string;
1369
1369
  capture: "at_action" | "historical_lookup" | "fixture";
1370
1370
  locator?: string | undefined;
1371
1371
  }, {
1372
- id: string;
1372
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1373
1373
  label: string;
1374
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1374
+ id: string;
1375
1375
  capture: "at_action" | "historical_lookup" | "fixture";
1376
1376
  locator?: string | undefined;
1377
1377
  }>, "many">>;
1378
1378
  }, "strict", z.ZodTypeAny, {
1379
1379
  kind: "decision_superseded";
1380
1380
  evidence: {
1381
- id: string;
1381
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1382
1382
  label: string;
1383
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1383
+ id: string;
1384
1384
  capture: "at_action" | "historical_lookup" | "fixture";
1385
1385
  locator?: string | undefined;
1386
1386
  }[];
@@ -1393,9 +1393,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1393
1393
  correctionId: string;
1394
1394
  replacementDecisionId: string;
1395
1395
  evidence?: {
1396
- id: string;
1396
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1397
1397
  label: string;
1398
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1398
+ id: string;
1399
1399
  capture: "at_action" | "historical_lookup" | "fixture";
1400
1400
  locator?: string | undefined;
1401
1401
  }[] | undefined;
@@ -1411,15 +1411,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1411
1411
  locator: z.ZodOptional<z.ZodString>;
1412
1412
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1413
1413
  }, "strict", z.ZodTypeAny, {
1414
- id: string;
1414
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1415
1415
  label: string;
1416
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1416
+ id: string;
1417
1417
  capture: "at_action" | "historical_lookup" | "fixture";
1418
1418
  locator?: string | undefined;
1419
1419
  }, {
1420
- id: string;
1420
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1421
1421
  label: string;
1422
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1422
+ id: string;
1423
1423
  capture: "at_action" | "historical_lookup" | "fixture";
1424
1424
  locator?: string | undefined;
1425
1425
  }>, "many">>;
@@ -1432,9 +1432,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1432
1432
  agentId: string;
1433
1433
  sessionId: string;
1434
1434
  evidence: {
1435
- id: string;
1435
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1436
1436
  label: string;
1437
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1437
+ id: string;
1438
1438
  capture: "at_action" | "historical_lookup" | "fixture";
1439
1439
  locator?: string | undefined;
1440
1440
  }[];
@@ -1450,9 +1450,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1450
1450
  recallReceiptId: string;
1451
1451
  capturedAtAction: boolean;
1452
1452
  evidence?: {
1453
- id: string;
1453
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1454
1454
  label: string;
1455
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1455
+ id: string;
1456
1456
  capture: "at_action" | "historical_lookup" | "fixture";
1457
1457
  locator?: string | undefined;
1458
1458
  }[] | undefined;
@@ -1468,15 +1468,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1468
1468
  locator: z.ZodOptional<z.ZodString>;
1469
1469
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1470
1470
  }, "strict", z.ZodTypeAny, {
1471
- id: string;
1471
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1472
1472
  label: string;
1473
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1473
+ id: string;
1474
1474
  capture: "at_action" | "historical_lookup" | "fixture";
1475
1475
  locator?: string | undefined;
1476
1476
  }, {
1477
- id: string;
1477
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1478
1478
  label: string;
1479
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1479
+ id: string;
1480
1480
  capture: "at_action" | "historical_lookup" | "fixture";
1481
1481
  locator?: string | undefined;
1482
1482
  }>, "many">>;
@@ -1488,9 +1488,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1488
1488
  agentId: string;
1489
1489
  sessionId: string;
1490
1490
  evidence: {
1491
- id: string;
1491
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1492
1492
  label: string;
1493
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1493
+ id: string;
1494
1494
  capture: "at_action" | "historical_lookup" | "fixture";
1495
1495
  locator?: string | undefined;
1496
1496
  }[];
@@ -1507,9 +1507,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1507
1507
  recallReceiptId: string;
1508
1508
  staleDecisionAbsent: boolean;
1509
1509
  evidence?: {
1510
- id: string;
1510
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1511
1511
  label: string;
1512
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1512
+ id: string;
1513
1513
  capture: "at_action" | "historical_lookup" | "fixture";
1514
1514
  locator?: string | undefined;
1515
1515
  }[] | undefined;
@@ -1524,37 +1524,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1524
1524
  locator: z.ZodOptional<z.ZodString>;
1525
1525
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1526
1526
  }, "strict", z.ZodTypeAny, {
1527
- id: string;
1527
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1528
1528
  label: string;
1529
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1529
+ id: string;
1530
1530
  capture: "at_action" | "historical_lookup" | "fixture";
1531
1531
  locator?: string | undefined;
1532
1532
  }, {
1533
- id: string;
1533
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1534
1534
  label: string;
1535
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1535
+ id: string;
1536
1536
  capture: "at_action" | "historical_lookup" | "fixture";
1537
1537
  locator?: string | undefined;
1538
1538
  }>, "many">>;
1539
1539
  }, "strict", z.ZodTypeAny, {
1540
- summary: string;
1541
1540
  kind: "mission_completed";
1541
+ summary: string;
1542
1542
  outcome: "failed" | "recovered" | "inconclusive";
1543
1543
  evidence: {
1544
- id: string;
1544
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1545
1545
  label: string;
1546
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1546
+ id: string;
1547
1547
  capture: "at_action" | "historical_lookup" | "fixture";
1548
1548
  locator?: string | undefined;
1549
1549
  }[];
1550
1550
  }, {
1551
- summary: string;
1552
1551
  kind: "mission_completed";
1552
+ summary: string;
1553
1553
  outcome: "failed" | "recovered" | "inconclusive";
1554
1554
  evidence?: {
1555
- id: string;
1555
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1556
1556
  label: string;
1557
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1557
+ id: string;
1558
1558
  capture: "at_action" | "historical_lookup" | "fixture";
1559
1559
  locator?: string | undefined;
1560
1560
  }[] | undefined;
@@ -1562,38 +1562,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1562
1562
  kind: "mission_started";
1563
1563
  title: string;
1564
1564
  evidence: {
1565
- id: string;
1565
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1566
1566
  label: string;
1567
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1567
+ id: string;
1568
1568
  capture: "at_action" | "historical_lookup" | "fixture";
1569
1569
  locator?: string | undefined;
1570
1570
  }[];
1571
1571
  objective: string;
1572
1572
  runMode: "replay" | "fixture" | "live";
1573
1573
  } | {
1574
- label: string;
1575
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1576
1574
  kind: "agent_status";
1575
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1576
+ label: string;
1577
1577
  role: string;
1578
1578
  agentId: string;
1579
1579
  sessionId: string;
1580
1580
  evidence: {
1581
- id: string;
1581
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1582
1582
  label: string;
1583
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1583
+ id: string;
1584
1584
  capture: "at_action" | "historical_lookup" | "fixture";
1585
1585
  locator?: string | undefined;
1586
1586
  }[];
1587
1587
  detail?: string | undefined;
1588
1588
  } | {
1589
- summary: string;
1590
1589
  kind: "agent_output";
1590
+ summary: string;
1591
1591
  agentId: string;
1592
1592
  sessionId: string;
1593
1593
  evidence: {
1594
- id: string;
1594
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1595
1595
  label: string;
1596
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1596
+ id: string;
1597
1597
  capture: "at_action" | "historical_lookup" | "fixture";
1598
1598
  locator?: string | undefined;
1599
1599
  }[];
@@ -1604,9 +1604,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1604
1604
  statement: string;
1605
1605
  sessionId: string;
1606
1606
  evidence: {
1607
- id: string;
1607
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1608
1608
  label: string;
1609
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1609
+ id: string;
1610
1610
  capture: "at_action" | "historical_lookup" | "fixture";
1611
1611
  locator?: string | undefined;
1612
1612
  }[];
@@ -1614,12 +1614,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1614
1614
  decisionId: string;
1615
1615
  confidence?: number | undefined;
1616
1616
  } | {
1617
- summary: string;
1618
1617
  kind: "conflict_detected";
1618
+ summary: string;
1619
1619
  evidence: {
1620
- id: string;
1620
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1621
1621
  label: string;
1622
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1622
+ id: string;
1623
1623
  capture: "at_action" | "historical_lookup" | "fixture";
1624
1624
  locator?: string | undefined;
1625
1625
  }[];
@@ -1627,14 +1627,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1627
1627
  decisionIds: string[];
1628
1628
  agentIds: string[];
1629
1629
  } | {
1630
+ kind: "test_result";
1630
1631
  summary: string;
1631
1632
  status: "error" | "failed" | "passed";
1632
- kind: "test_result";
1633
1633
  command: string;
1634
1634
  evidence: {
1635
- id: string;
1635
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1636
1636
  label: string;
1637
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1637
+ id: string;
1638
1638
  capture: "at_action" | "historical_lookup" | "fixture";
1639
1639
  locator?: string | undefined;
1640
1640
  }[];
@@ -1647,9 +1647,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1647
1647
  rationale: string;
1648
1648
  statement: string;
1649
1649
  evidence: {
1650
- id: string;
1650
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1651
1651
  label: string;
1652
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1652
+ id: string;
1653
1653
  capture: "at_action" | "historical_lookup" | "fixture";
1654
1654
  locator?: string | undefined;
1655
1655
  }[];
@@ -1661,25 +1661,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1661
1661
  } | {
1662
1662
  kind: "correction_approved";
1663
1663
  evidence: {
1664
- id: string;
1664
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1665
1665
  label: string;
1666
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1666
+ id: string;
1667
1667
  capture: "at_action" | "historical_lookup" | "fixture";
1668
1668
  locator?: string | undefined;
1669
1669
  }[];
1670
1670
  correctionId: string;
1671
1671
  approvedBy: {
1672
- id: string;
1673
- label: string;
1674
1672
  kind: "agent" | "human";
1673
+ label: string;
1674
+ id: string;
1675
1675
  };
1676
1676
  note?: string | undefined;
1677
1677
  } | {
1678
1678
  kind: "decision_superseded";
1679
1679
  evidence: {
1680
- id: string;
1680
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1681
1681
  label: string;
1682
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1682
+ id: string;
1683
1683
  capture: "at_action" | "historical_lookup" | "fixture";
1684
1684
  locator?: string | undefined;
1685
1685
  }[];
@@ -1692,9 +1692,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1692
1692
  agentId: string;
1693
1693
  sessionId: string;
1694
1694
  evidence: {
1695
- id: string;
1695
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1696
1696
  label: string;
1697
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1697
+ id: string;
1698
1698
  capture: "at_action" | "historical_lookup" | "fixture";
1699
1699
  locator?: string | undefined;
1700
1700
  }[];
@@ -1706,9 +1706,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1706
1706
  agentId: string;
1707
1707
  sessionId: string;
1708
1708
  evidence: {
1709
- id: string;
1709
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1710
1710
  label: string;
1711
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1711
+ id: string;
1712
1712
  capture: "at_action" | "historical_lookup" | "fixture";
1713
1713
  locator?: string | undefined;
1714
1714
  }[];
@@ -1717,13 +1717,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1717
1717
  recallReceiptId: string;
1718
1718
  staleDecisionAbsent: boolean;
1719
1719
  } | {
1720
- summary: string;
1721
1720
  kind: "mission_completed";
1721
+ summary: string;
1722
1722
  outcome: "failed" | "recovered" | "inconclusive";
1723
1723
  evidence: {
1724
- id: string;
1724
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1725
1725
  label: string;
1726
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1726
+ id: string;
1727
1727
  capture: "at_action" | "historical_lookup" | "fixture";
1728
1728
  locator?: string | undefined;
1729
1729
  }[];
@@ -1733,37 +1733,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1733
1733
  objective: string;
1734
1734
  runMode: "replay" | "fixture" | "live";
1735
1735
  evidence?: {
1736
- id: string;
1736
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1737
1737
  label: string;
1738
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1738
+ id: string;
1739
1739
  capture: "at_action" | "historical_lookup" | "fixture";
1740
1740
  locator?: string | undefined;
1741
1741
  }[] | undefined;
1742
1742
  } | {
1743
- label: string;
1744
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1745
1743
  kind: "agent_status";
1744
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1745
+ label: string;
1746
1746
  role: string;
1747
1747
  agentId: string;
1748
1748
  sessionId: string;
1749
1749
  detail?: string | undefined;
1750
1750
  evidence?: {
1751
- id: string;
1751
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1752
1752
  label: string;
1753
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1753
+ id: string;
1754
1754
  capture: "at_action" | "historical_lookup" | "fixture";
1755
1755
  locator?: string | undefined;
1756
1756
  }[] | undefined;
1757
1757
  } | {
1758
- summary: string;
1759
1758
  kind: "agent_output";
1759
+ summary: string;
1760
1760
  agentId: string;
1761
1761
  sessionId: string;
1762
1762
  outputId: string;
1763
1763
  evidence?: {
1764
- id: string;
1764
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1765
1765
  label: string;
1766
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1766
+ id: string;
1767
1767
  capture: "at_action" | "historical_lookup" | "fixture";
1768
1768
  locator?: string | undefined;
1769
1769
  }[] | undefined;
@@ -1776,37 +1776,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1776
1776
  decisionId: string;
1777
1777
  confidence?: number | undefined;
1778
1778
  evidence?: {
1779
- id: string;
1779
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1780
1780
  label: string;
1781
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1781
+ id: string;
1782
1782
  capture: "at_action" | "historical_lookup" | "fixture";
1783
1783
  locator?: string | undefined;
1784
1784
  }[] | undefined;
1785
1785
  } | {
1786
- summary: string;
1787
1786
  kind: "conflict_detected";
1787
+ summary: string;
1788
1788
  conflictId: string;
1789
1789
  decisionIds: string[];
1790
1790
  agentIds: string[];
1791
1791
  evidence?: {
1792
- id: string;
1792
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1793
1793
  label: string;
1794
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1794
+ id: string;
1795
1795
  capture: "at_action" | "historical_lookup" | "fixture";
1796
1796
  locator?: string | undefined;
1797
1797
  }[] | undefined;
1798
1798
  } | {
1799
+ kind: "test_result";
1799
1800
  summary: string;
1800
1801
  status: "error" | "failed" | "passed";
1801
- kind: "test_result";
1802
1802
  command: string;
1803
1803
  decisionId: string;
1804
1804
  testId: string;
1805
1805
  durationMs?: number | undefined;
1806
1806
  evidence?: {
1807
- id: string;
1807
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1808
1808
  label: string;
1809
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1809
+ id: string;
1810
1810
  capture: "at_action" | "historical_lookup" | "fixture";
1811
1811
  locator?: string | undefined;
1812
1812
  }[] | undefined;
@@ -1821,9 +1821,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1821
1821
  supersedesDecisionIds: string[];
1822
1822
  proposedBy: string;
1823
1823
  evidence?: {
1824
- id: string;
1824
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1825
1825
  label: string;
1826
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1826
+ id: string;
1827
1827
  capture: "at_action" | "historical_lookup" | "fixture";
1828
1828
  locator?: string | undefined;
1829
1829
  }[] | undefined;
@@ -1831,15 +1831,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1831
1831
  kind: "correction_approved";
1832
1832
  correctionId: string;
1833
1833
  approvedBy: {
1834
- id: string;
1835
- label: string;
1836
1834
  kind: "agent" | "human";
1835
+ label: string;
1836
+ id: string;
1837
1837
  };
1838
1838
  note?: string | undefined;
1839
1839
  evidence?: {
1840
- id: string;
1840
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1841
1841
  label: string;
1842
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1842
+ id: string;
1843
1843
  capture: "at_action" | "historical_lookup" | "fixture";
1844
1844
  locator?: string | undefined;
1845
1845
  }[] | undefined;
@@ -1849,9 +1849,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1849
1849
  correctionId: string;
1850
1850
  replacementDecisionId: string;
1851
1851
  evidence?: {
1852
- id: string;
1852
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1853
1853
  label: string;
1854
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1854
+ id: string;
1855
1855
  capture: "at_action" | "historical_lookup" | "fixture";
1856
1856
  locator?: string | undefined;
1857
1857
  }[] | undefined;
@@ -1864,9 +1864,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1864
1864
  recallReceiptId: string;
1865
1865
  capturedAtAction: boolean;
1866
1866
  evidence?: {
1867
- id: string;
1867
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1868
1868
  label: string;
1869
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1869
+ id: string;
1870
1870
  capture: "at_action" | "historical_lookup" | "fixture";
1871
1871
  locator?: string | undefined;
1872
1872
  }[] | undefined;
@@ -1879,20 +1879,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1879
1879
  recallReceiptId: string;
1880
1880
  staleDecisionAbsent: boolean;
1881
1881
  evidence?: {
1882
- id: string;
1882
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1883
1883
  label: string;
1884
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1884
+ id: string;
1885
1885
  capture: "at_action" | "historical_lookup" | "fixture";
1886
1886
  locator?: string | undefined;
1887
1887
  }[] | undefined;
1888
1888
  } | {
1889
- summary: string;
1890
1889
  kind: "mission_completed";
1890
+ summary: string;
1891
1891
  outcome: "failed" | "recovered" | "inconclusive";
1892
1892
  evidence?: {
1893
- id: string;
1893
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1894
1894
  label: string;
1895
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1895
+ id: string;
1896
1896
  capture: "at_action" | "historical_lookup" | "fixture";
1897
1897
  locator?: string | undefined;
1898
1898
  }[] | undefined;
@@ -1913,15 +1913,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1913
1913
  locator: z.ZodOptional<z.ZodString>;
1914
1914
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1915
1915
  }, "strict", z.ZodTypeAny, {
1916
- id: string;
1916
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1917
1917
  label: string;
1918
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1918
+ id: string;
1919
1919
  capture: "at_action" | "historical_lookup" | "fixture";
1920
1920
  locator?: string | undefined;
1921
1921
  }, {
1922
- id: string;
1922
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1923
1923
  label: string;
1924
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1924
+ id: string;
1925
1925
  capture: "at_action" | "historical_lookup" | "fixture";
1926
1926
  locator?: string | undefined;
1927
1927
  }>, "many">>;
@@ -1929,9 +1929,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1929
1929
  kind: "mission_started";
1930
1930
  title: string;
1931
1931
  evidence: {
1932
- id: string;
1932
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1933
1933
  label: string;
1934
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1934
+ id: string;
1935
1935
  capture: "at_action" | "historical_lookup" | "fixture";
1936
1936
  locator?: string | undefined;
1937
1937
  }[];
@@ -1943,9 +1943,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1943
1943
  objective: string;
1944
1944
  runMode: "replay" | "fixture" | "live";
1945
1945
  evidence?: {
1946
- id: string;
1946
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1947
1947
  label: string;
1948
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1948
+ id: string;
1949
1949
  capture: "at_action" | "historical_lookup" | "fixture";
1950
1950
  locator?: string | undefined;
1951
1951
  }[] | undefined;
@@ -1961,15 +1961,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1961
1961
  locator: z.ZodOptional<z.ZodString>;
1962
1962
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1963
1963
  }, "strict", z.ZodTypeAny, {
1964
- id: string;
1964
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1965
1965
  label: string;
1966
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1966
+ id: string;
1967
1967
  capture: "at_action" | "historical_lookup" | "fixture";
1968
1968
  locator?: string | undefined;
1969
1969
  }, {
1970
- id: string;
1970
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1971
1971
  label: string;
1972
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1972
+ id: string;
1973
1973
  capture: "at_action" | "historical_lookup" | "fixture";
1974
1974
  locator?: string | undefined;
1975
1975
  }>, "many">>;
@@ -1977,32 +1977,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1977
1977
  sessionId: z.ZodString;
1978
1978
  kind: z.ZodLiteral<"agent_status">;
1979
1979
  }, "strict", z.ZodTypeAny, {
1980
- label: string;
1981
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1982
1980
  kind: "agent_status";
1981
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1982
+ label: string;
1983
1983
  role: string;
1984
1984
  agentId: string;
1985
1985
  sessionId: string;
1986
1986
  evidence: {
1987
- id: string;
1987
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1988
1988
  label: string;
1989
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1989
+ id: string;
1990
1990
  capture: "at_action" | "historical_lookup" | "fixture";
1991
1991
  locator?: string | undefined;
1992
1992
  }[];
1993
1993
  detail?: string | undefined;
1994
1994
  }, {
1995
- label: string;
1996
- status: "failed" | "complete" | "blocked" | "working" | "idle";
1997
1995
  kind: "agent_status";
1996
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
1997
+ label: string;
1998
1998
  role: string;
1999
1999
  agentId: string;
2000
2000
  sessionId: string;
2001
2001
  detail?: string | undefined;
2002
2002
  evidence?: {
2003
- id: string;
2003
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2004
2004
  label: string;
2005
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2005
+ id: string;
2006
2006
  capture: "at_action" | "historical_lookup" | "fixture";
2007
2007
  locator?: string | undefined;
2008
2008
  }[] | undefined;
@@ -2016,15 +2016,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2016
2016
  locator: z.ZodOptional<z.ZodString>;
2017
2017
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2018
2018
  }, "strict", z.ZodTypeAny, {
2019
- id: string;
2019
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2020
2020
  label: string;
2021
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2021
+ id: string;
2022
2022
  capture: "at_action" | "historical_lookup" | "fixture";
2023
2023
  locator?: string | undefined;
2024
2024
  }, {
2025
- id: string;
2025
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2026
2026
  label: string;
2027
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2027
+ id: string;
2028
2028
  capture: "at_action" | "historical_lookup" | "fixture";
2029
2029
  locator?: string | undefined;
2030
2030
  }>, "many">>;
@@ -2032,28 +2032,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2032
2032
  sessionId: z.ZodString;
2033
2033
  kind: z.ZodLiteral<"agent_output">;
2034
2034
  }, "strict", z.ZodTypeAny, {
2035
- summary: string;
2036
2035
  kind: "agent_output";
2036
+ summary: string;
2037
2037
  agentId: string;
2038
2038
  sessionId: string;
2039
2039
  evidence: {
2040
- id: string;
2040
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2041
2041
  label: string;
2042
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2042
+ id: string;
2043
2043
  capture: "at_action" | "historical_lookup" | "fixture";
2044
2044
  locator?: string | undefined;
2045
2045
  }[];
2046
2046
  outputId: string;
2047
2047
  }, {
2048
- summary: string;
2049
2048
  kind: "agent_output";
2049
+ summary: string;
2050
2050
  agentId: string;
2051
2051
  sessionId: string;
2052
2052
  outputId: string;
2053
2053
  evidence?: {
2054
- id: string;
2054
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2055
2055
  label: string;
2056
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2056
+ id: string;
2057
2057
  capture: "at_action" | "historical_lookup" | "fixture";
2058
2058
  locator?: string | undefined;
2059
2059
  }[] | undefined;
@@ -2069,15 +2069,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2069
2069
  locator: z.ZodOptional<z.ZodString>;
2070
2070
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2071
2071
  }, "strict", z.ZodTypeAny, {
2072
- id: string;
2072
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2073
2073
  label: string;
2074
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2074
+ id: string;
2075
2075
  capture: "at_action" | "historical_lookup" | "fixture";
2076
2076
  locator?: string | undefined;
2077
2077
  }, {
2078
- id: string;
2078
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2079
2079
  label: string;
2080
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2080
+ id: string;
2081
2081
  capture: "at_action" | "historical_lookup" | "fixture";
2082
2082
  locator?: string | undefined;
2083
2083
  }>, "many">>;
@@ -2090,9 +2090,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2090
2090
  statement: string;
2091
2091
  sessionId: string;
2092
2092
  evidence: {
2093
- id: string;
2093
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2094
2094
  label: string;
2095
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2095
+ id: string;
2096
2096
  capture: "at_action" | "historical_lookup" | "fixture";
2097
2097
  locator?: string | undefined;
2098
2098
  }[];
@@ -2108,9 +2108,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2108
2108
  decisionId: string;
2109
2109
  confidence?: number | undefined;
2110
2110
  evidence?: {
2111
- id: string;
2111
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2112
2112
  label: string;
2113
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2113
+ id: string;
2114
2114
  capture: "at_action" | "historical_lookup" | "fixture";
2115
2115
  locator?: string | undefined;
2116
2116
  }[] | undefined;
@@ -2127,25 +2127,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2127
2127
  locator: z.ZodOptional<z.ZodString>;
2128
2128
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2129
2129
  }, "strict", z.ZodTypeAny, {
2130
- id: string;
2130
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2131
2131
  label: string;
2132
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2132
+ id: string;
2133
2133
  capture: "at_action" | "historical_lookup" | "fixture";
2134
2134
  locator?: string | undefined;
2135
2135
  }, {
2136
- id: string;
2136
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2137
2137
  label: string;
2138
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2138
+ id: string;
2139
2139
  capture: "at_action" | "historical_lookup" | "fixture";
2140
2140
  locator?: string | undefined;
2141
2141
  }>, "many">>;
2142
2142
  }, "strict", z.ZodTypeAny, {
2143
- summary: string;
2144
2143
  kind: "conflict_detected";
2144
+ summary: string;
2145
2145
  evidence: {
2146
- id: string;
2146
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2147
2147
  label: string;
2148
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2148
+ id: string;
2149
2149
  capture: "at_action" | "historical_lookup" | "fixture";
2150
2150
  locator?: string | undefined;
2151
2151
  }[];
@@ -2153,15 +2153,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2153
2153
  decisionIds: string[];
2154
2154
  agentIds: string[];
2155
2155
  }, {
2156
- summary: string;
2157
2156
  kind: "conflict_detected";
2157
+ summary: string;
2158
2158
  conflictId: string;
2159
2159
  decisionIds: string[];
2160
2160
  agentIds: string[];
2161
2161
  evidence?: {
2162
- id: string;
2162
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2163
2163
  label: string;
2164
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2164
+ id: string;
2165
2165
  capture: "at_action" | "historical_lookup" | "fixture";
2166
2166
  locator?: string | undefined;
2167
2167
  }[] | undefined;
@@ -2181,27 +2181,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2181
2181
  locator: z.ZodOptional<z.ZodString>;
2182
2182
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2183
2183
  }, "strict", z.ZodTypeAny, {
2184
- id: string;
2184
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2185
2185
  label: string;
2186
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2186
+ id: string;
2187
2187
  capture: "at_action" | "historical_lookup" | "fixture";
2188
2188
  locator?: string | undefined;
2189
2189
  }, {
2190
- id: string;
2190
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2191
2191
  label: string;
2192
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2192
+ id: string;
2193
2193
  capture: "at_action" | "historical_lookup" | "fixture";
2194
2194
  locator?: string | undefined;
2195
2195
  }>, "many">>;
2196
2196
  }, "strict", z.ZodTypeAny, {
2197
+ kind: "test_result";
2197
2198
  summary: string;
2198
2199
  status: "error" | "failed" | "passed";
2199
- kind: "test_result";
2200
2200
  command: string;
2201
2201
  evidence: {
2202
- id: string;
2202
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2203
2203
  label: string;
2204
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2204
+ id: string;
2205
2205
  capture: "at_action" | "historical_lookup" | "fixture";
2206
2206
  locator?: string | undefined;
2207
2207
  }[];
@@ -2210,17 +2210,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2210
2210
  durationMs?: number | undefined;
2211
2211
  correctionId?: string | undefined;
2212
2212
  }, {
2213
+ kind: "test_result";
2213
2214
  summary: string;
2214
2215
  status: "error" | "failed" | "passed";
2215
- kind: "test_result";
2216
2216
  command: string;
2217
2217
  decisionId: string;
2218
2218
  testId: string;
2219
2219
  durationMs?: number | undefined;
2220
2220
  evidence?: {
2221
- id: string;
2221
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2222
2222
  label: string;
2223
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2223
+ id: string;
2224
2224
  capture: "at_action" | "historical_lookup" | "fixture";
2225
2225
  locator?: string | undefined;
2226
2226
  }[] | undefined;
@@ -2241,15 +2241,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2241
2241
  locator: z.ZodOptional<z.ZodString>;
2242
2242
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2243
2243
  }, "strict", z.ZodTypeAny, {
2244
- id: string;
2244
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2245
2245
  label: string;
2246
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2246
+ id: string;
2247
2247
  capture: "at_action" | "historical_lookup" | "fixture";
2248
2248
  locator?: string | undefined;
2249
2249
  }, {
2250
- id: string;
2250
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2251
2251
  label: string;
2252
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2252
+ id: string;
2253
2253
  capture: "at_action" | "historical_lookup" | "fixture";
2254
2254
  locator?: string | undefined;
2255
2255
  }>, "many">>;
@@ -2258,9 +2258,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2258
2258
  rationale: string;
2259
2259
  statement: string;
2260
2260
  evidence: {
2261
- id: string;
2261
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2262
2262
  label: string;
2263
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2263
+ id: string;
2264
2264
  capture: "at_action" | "historical_lookup" | "fixture";
2265
2265
  locator?: string | undefined;
2266
2266
  }[];
@@ -2279,9 +2279,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2279
2279
  supersedesDecisionIds: string[];
2280
2280
  proposedBy: string;
2281
2281
  evidence?: {
2282
- id: string;
2282
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2283
2283
  label: string;
2284
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2284
+ id: string;
2285
2285
  capture: "at_action" | "historical_lookup" | "fixture";
2286
2286
  locator?: string | undefined;
2287
2287
  }[] | undefined;
@@ -2293,13 +2293,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2293
2293
  id: z.ZodString;
2294
2294
  label: z.ZodString;
2295
2295
  }, "strict", z.ZodTypeAny, {
2296
- id: string;
2297
- label: string;
2298
2296
  kind: "agent" | "human";
2299
- }, {
2300
- id: string;
2301
2297
  label: string;
2298
+ id: string;
2299
+ }, {
2302
2300
  kind: "agent" | "human";
2301
+ label: string;
2302
+ id: string;
2303
2303
  }>;
2304
2304
  note: z.ZodOptional<z.ZodString>;
2305
2305
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2309,47 +2309,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2309
2309
  locator: z.ZodOptional<z.ZodString>;
2310
2310
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2311
2311
  }, "strict", z.ZodTypeAny, {
2312
- id: string;
2312
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2313
2313
  label: string;
2314
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2314
+ id: string;
2315
2315
  capture: "at_action" | "historical_lookup" | "fixture";
2316
2316
  locator?: string | undefined;
2317
2317
  }, {
2318
- id: string;
2318
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2319
2319
  label: string;
2320
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2320
+ id: string;
2321
2321
  capture: "at_action" | "historical_lookup" | "fixture";
2322
2322
  locator?: string | undefined;
2323
2323
  }>, "many">>;
2324
2324
  }, "strict", z.ZodTypeAny, {
2325
2325
  kind: "correction_approved";
2326
2326
  evidence: {
2327
- id: string;
2327
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2328
2328
  label: string;
2329
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2329
+ id: string;
2330
2330
  capture: "at_action" | "historical_lookup" | "fixture";
2331
2331
  locator?: string | undefined;
2332
2332
  }[];
2333
2333
  correctionId: string;
2334
2334
  approvedBy: {
2335
- id: string;
2336
- label: string;
2337
2335
  kind: "agent" | "human";
2336
+ label: string;
2337
+ id: string;
2338
2338
  };
2339
2339
  note?: string | undefined;
2340
2340
  }, {
2341
2341
  kind: "correction_approved";
2342
2342
  correctionId: string;
2343
2343
  approvedBy: {
2344
- id: string;
2345
- label: string;
2346
2344
  kind: "agent" | "human";
2345
+ label: string;
2346
+ id: string;
2347
2347
  };
2348
2348
  note?: string | undefined;
2349
2349
  evidence?: {
2350
- id: string;
2350
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2351
2351
  label: string;
2352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2352
+ id: string;
2353
2353
  capture: "at_action" | "historical_lookup" | "fixture";
2354
2354
  locator?: string | undefined;
2355
2355
  }[] | undefined;
@@ -2365,24 +2365,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2365
2365
  locator: z.ZodOptional<z.ZodString>;
2366
2366
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2367
2367
  }, "strict", z.ZodTypeAny, {
2368
- id: string;
2368
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2369
2369
  label: string;
2370
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2370
+ id: string;
2371
2371
  capture: "at_action" | "historical_lookup" | "fixture";
2372
2372
  locator?: string | undefined;
2373
2373
  }, {
2374
- id: string;
2374
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2375
2375
  label: string;
2376
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2376
+ id: string;
2377
2377
  capture: "at_action" | "historical_lookup" | "fixture";
2378
2378
  locator?: string | undefined;
2379
2379
  }>, "many">>;
2380
2380
  }, "strict", z.ZodTypeAny, {
2381
2381
  kind: "decision_superseded";
2382
2382
  evidence: {
2383
- id: string;
2383
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2384
2384
  label: string;
2385
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2385
+ id: string;
2386
2386
  capture: "at_action" | "historical_lookup" | "fixture";
2387
2387
  locator?: string | undefined;
2388
2388
  }[];
@@ -2395,9 +2395,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2395
2395
  correctionId: string;
2396
2396
  replacementDecisionId: string;
2397
2397
  evidence?: {
2398
- id: string;
2398
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2399
2399
  label: string;
2400
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2400
+ id: string;
2401
2401
  capture: "at_action" | "historical_lookup" | "fixture";
2402
2402
  locator?: string | undefined;
2403
2403
  }[] | undefined;
@@ -2413,15 +2413,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2413
2413
  locator: z.ZodOptional<z.ZodString>;
2414
2414
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2415
2415
  }, "strict", z.ZodTypeAny, {
2416
- id: string;
2416
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2417
2417
  label: string;
2418
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2418
+ id: string;
2419
2419
  capture: "at_action" | "historical_lookup" | "fixture";
2420
2420
  locator?: string | undefined;
2421
2421
  }, {
2422
- id: string;
2422
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2423
2423
  label: string;
2424
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2424
+ id: string;
2425
2425
  capture: "at_action" | "historical_lookup" | "fixture";
2426
2426
  locator?: string | undefined;
2427
2427
  }>, "many">>;
@@ -2434,9 +2434,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2434
2434
  agentId: string;
2435
2435
  sessionId: string;
2436
2436
  evidence: {
2437
- id: string;
2437
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2438
2438
  label: string;
2439
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2439
+ id: string;
2440
2440
  capture: "at_action" | "historical_lookup" | "fixture";
2441
2441
  locator?: string | undefined;
2442
2442
  }[];
@@ -2452,9 +2452,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2452
2452
  recallReceiptId: string;
2453
2453
  capturedAtAction: boolean;
2454
2454
  evidence?: {
2455
- id: string;
2455
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2456
2456
  label: string;
2457
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2457
+ id: string;
2458
2458
  capture: "at_action" | "historical_lookup" | "fixture";
2459
2459
  locator?: string | undefined;
2460
2460
  }[] | undefined;
@@ -2470,15 +2470,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2470
2470
  locator: z.ZodOptional<z.ZodString>;
2471
2471
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2472
2472
  }, "strict", z.ZodTypeAny, {
2473
- id: string;
2473
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2474
2474
  label: string;
2475
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2475
+ id: string;
2476
2476
  capture: "at_action" | "historical_lookup" | "fixture";
2477
2477
  locator?: string | undefined;
2478
2478
  }, {
2479
- id: string;
2479
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2480
2480
  label: string;
2481
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2481
+ id: string;
2482
2482
  capture: "at_action" | "historical_lookup" | "fixture";
2483
2483
  locator?: string | undefined;
2484
2484
  }>, "many">>;
@@ -2490,9 +2490,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2490
2490
  agentId: string;
2491
2491
  sessionId: string;
2492
2492
  evidence: {
2493
- id: string;
2493
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2494
2494
  label: string;
2495
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2495
+ id: string;
2496
2496
  capture: "at_action" | "historical_lookup" | "fixture";
2497
2497
  locator?: string | undefined;
2498
2498
  }[];
@@ -2509,9 +2509,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2509
2509
  recallReceiptId: string;
2510
2510
  staleDecisionAbsent: boolean;
2511
2511
  evidence?: {
2512
- id: string;
2512
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2513
2513
  label: string;
2514
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2514
+ id: string;
2515
2515
  capture: "at_action" | "historical_lookup" | "fixture";
2516
2516
  locator?: string | undefined;
2517
2517
  }[] | undefined;
@@ -2526,37 +2526,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2526
2526
  locator: z.ZodOptional<z.ZodString>;
2527
2527
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2528
2528
  }, "strict", z.ZodTypeAny, {
2529
- id: string;
2529
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2530
2530
  label: string;
2531
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2531
+ id: string;
2532
2532
  capture: "at_action" | "historical_lookup" | "fixture";
2533
2533
  locator?: string | undefined;
2534
2534
  }, {
2535
- id: string;
2535
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2536
2536
  label: string;
2537
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2537
+ id: string;
2538
2538
  capture: "at_action" | "historical_lookup" | "fixture";
2539
2539
  locator?: string | undefined;
2540
2540
  }>, "many">>;
2541
2541
  }, "strict", z.ZodTypeAny, {
2542
- summary: string;
2543
2542
  kind: "mission_completed";
2543
+ summary: string;
2544
2544
  outcome: "failed" | "recovered" | "inconclusive";
2545
2545
  evidence: {
2546
- id: string;
2546
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2547
2547
  label: string;
2548
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2548
+ id: string;
2549
2549
  capture: "at_action" | "historical_lookup" | "fixture";
2550
2550
  locator?: string | undefined;
2551
2551
  }[];
2552
2552
  }, {
2553
- summary: string;
2554
2553
  kind: "mission_completed";
2554
+ summary: string;
2555
2555
  outcome: "failed" | "recovered" | "inconclusive";
2556
2556
  evidence?: {
2557
- id: string;
2557
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2558
2558
  label: string;
2559
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2559
+ id: string;
2560
2560
  capture: "at_action" | "historical_lookup" | "fixture";
2561
2561
  locator?: string | undefined;
2562
2562
  }[] | undefined;
@@ -2564,38 +2564,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2564
2564
  kind: "mission_started";
2565
2565
  title: string;
2566
2566
  evidence: {
2567
- id: string;
2567
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2568
2568
  label: string;
2569
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2569
+ id: string;
2570
2570
  capture: "at_action" | "historical_lookup" | "fixture";
2571
2571
  locator?: string | undefined;
2572
2572
  }[];
2573
2573
  objective: string;
2574
2574
  runMode: "replay" | "fixture" | "live";
2575
2575
  } | {
2576
- label: string;
2577
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2578
2576
  kind: "agent_status";
2577
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2578
+ label: string;
2579
2579
  role: string;
2580
2580
  agentId: string;
2581
2581
  sessionId: string;
2582
2582
  evidence: {
2583
- id: string;
2583
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2584
2584
  label: string;
2585
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2585
+ id: string;
2586
2586
  capture: "at_action" | "historical_lookup" | "fixture";
2587
2587
  locator?: string | undefined;
2588
2588
  }[];
2589
2589
  detail?: string | undefined;
2590
2590
  } | {
2591
- summary: string;
2592
2591
  kind: "agent_output";
2592
+ summary: string;
2593
2593
  agentId: string;
2594
2594
  sessionId: string;
2595
2595
  evidence: {
2596
- id: string;
2596
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2597
2597
  label: string;
2598
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2598
+ id: string;
2599
2599
  capture: "at_action" | "historical_lookup" | "fixture";
2600
2600
  locator?: string | undefined;
2601
2601
  }[];
@@ -2606,9 +2606,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2606
2606
  statement: string;
2607
2607
  sessionId: string;
2608
2608
  evidence: {
2609
- id: string;
2609
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2610
2610
  label: string;
2611
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2611
+ id: string;
2612
2612
  capture: "at_action" | "historical_lookup" | "fixture";
2613
2613
  locator?: string | undefined;
2614
2614
  }[];
@@ -2616,12 +2616,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2616
2616
  decisionId: string;
2617
2617
  confidence?: number | undefined;
2618
2618
  } | {
2619
- summary: string;
2620
2619
  kind: "conflict_detected";
2620
+ summary: string;
2621
2621
  evidence: {
2622
- id: string;
2622
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2623
2623
  label: string;
2624
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2624
+ id: string;
2625
2625
  capture: "at_action" | "historical_lookup" | "fixture";
2626
2626
  locator?: string | undefined;
2627
2627
  }[];
@@ -2629,14 +2629,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2629
2629
  decisionIds: string[];
2630
2630
  agentIds: string[];
2631
2631
  } | {
2632
+ kind: "test_result";
2632
2633
  summary: string;
2633
2634
  status: "error" | "failed" | "passed";
2634
- kind: "test_result";
2635
2635
  command: string;
2636
2636
  evidence: {
2637
- id: string;
2637
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2638
2638
  label: string;
2639
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2639
+ id: string;
2640
2640
  capture: "at_action" | "historical_lookup" | "fixture";
2641
2641
  locator?: string | undefined;
2642
2642
  }[];
@@ -2649,9 +2649,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2649
2649
  rationale: string;
2650
2650
  statement: string;
2651
2651
  evidence: {
2652
- id: string;
2652
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2653
2653
  label: string;
2654
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2654
+ id: string;
2655
2655
  capture: "at_action" | "historical_lookup" | "fixture";
2656
2656
  locator?: string | undefined;
2657
2657
  }[];
@@ -2663,25 +2663,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2663
2663
  } | {
2664
2664
  kind: "correction_approved";
2665
2665
  evidence: {
2666
- id: string;
2666
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2667
2667
  label: string;
2668
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2668
+ id: string;
2669
2669
  capture: "at_action" | "historical_lookup" | "fixture";
2670
2670
  locator?: string | undefined;
2671
2671
  }[];
2672
2672
  correctionId: string;
2673
2673
  approvedBy: {
2674
- id: string;
2675
- label: string;
2676
2674
  kind: "agent" | "human";
2675
+ label: string;
2676
+ id: string;
2677
2677
  };
2678
2678
  note?: string | undefined;
2679
2679
  } | {
2680
2680
  kind: "decision_superseded";
2681
2681
  evidence: {
2682
- id: string;
2682
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2683
2683
  label: string;
2684
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2684
+ id: string;
2685
2685
  capture: "at_action" | "historical_lookup" | "fixture";
2686
2686
  locator?: string | undefined;
2687
2687
  }[];
@@ -2694,9 +2694,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2694
2694
  agentId: string;
2695
2695
  sessionId: string;
2696
2696
  evidence: {
2697
- id: string;
2697
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2698
2698
  label: string;
2699
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2699
+ id: string;
2700
2700
  capture: "at_action" | "historical_lookup" | "fixture";
2701
2701
  locator?: string | undefined;
2702
2702
  }[];
@@ -2708,9 +2708,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2708
2708
  agentId: string;
2709
2709
  sessionId: string;
2710
2710
  evidence: {
2711
- id: string;
2711
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2712
2712
  label: string;
2713
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2713
+ id: string;
2714
2714
  capture: "at_action" | "historical_lookup" | "fixture";
2715
2715
  locator?: string | undefined;
2716
2716
  }[];
@@ -2719,13 +2719,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2719
2719
  recallReceiptId: string;
2720
2720
  staleDecisionAbsent: boolean;
2721
2721
  } | {
2722
- summary: string;
2723
2722
  kind: "mission_completed";
2723
+ summary: string;
2724
2724
  outcome: "failed" | "recovered" | "inconclusive";
2725
2725
  evidence: {
2726
- id: string;
2726
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2727
2727
  label: string;
2728
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2728
+ id: string;
2729
2729
  capture: "at_action" | "historical_lookup" | "fixture";
2730
2730
  locator?: string | undefined;
2731
2731
  }[];
@@ -2735,37 +2735,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2735
2735
  objective: string;
2736
2736
  runMode: "replay" | "fixture" | "live";
2737
2737
  evidence?: {
2738
- id: string;
2738
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2739
2739
  label: string;
2740
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2740
+ id: string;
2741
2741
  capture: "at_action" | "historical_lookup" | "fixture";
2742
2742
  locator?: string | undefined;
2743
2743
  }[] | undefined;
2744
2744
  } | {
2745
- label: string;
2746
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2747
2745
  kind: "agent_status";
2746
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2747
+ label: string;
2748
2748
  role: string;
2749
2749
  agentId: string;
2750
2750
  sessionId: string;
2751
2751
  detail?: string | undefined;
2752
2752
  evidence?: {
2753
- id: string;
2753
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2754
2754
  label: string;
2755
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2755
+ id: string;
2756
2756
  capture: "at_action" | "historical_lookup" | "fixture";
2757
2757
  locator?: string | undefined;
2758
2758
  }[] | undefined;
2759
2759
  } | {
2760
- summary: string;
2761
2760
  kind: "agent_output";
2761
+ summary: string;
2762
2762
  agentId: string;
2763
2763
  sessionId: string;
2764
2764
  outputId: string;
2765
2765
  evidence?: {
2766
- id: string;
2766
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2767
2767
  label: string;
2768
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2768
+ id: string;
2769
2769
  capture: "at_action" | "historical_lookup" | "fixture";
2770
2770
  locator?: string | undefined;
2771
2771
  }[] | undefined;
@@ -2778,37 +2778,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2778
2778
  decisionId: string;
2779
2779
  confidence?: number | undefined;
2780
2780
  evidence?: {
2781
- id: string;
2781
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2782
2782
  label: string;
2783
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2783
+ id: string;
2784
2784
  capture: "at_action" | "historical_lookup" | "fixture";
2785
2785
  locator?: string | undefined;
2786
2786
  }[] | undefined;
2787
2787
  } | {
2788
- summary: string;
2789
2788
  kind: "conflict_detected";
2789
+ summary: string;
2790
2790
  conflictId: string;
2791
2791
  decisionIds: string[];
2792
2792
  agentIds: string[];
2793
2793
  evidence?: {
2794
- id: string;
2794
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2795
2795
  label: string;
2796
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2796
+ id: string;
2797
2797
  capture: "at_action" | "historical_lookup" | "fixture";
2798
2798
  locator?: string | undefined;
2799
2799
  }[] | undefined;
2800
2800
  } | {
2801
+ kind: "test_result";
2801
2802
  summary: string;
2802
2803
  status: "error" | "failed" | "passed";
2803
- kind: "test_result";
2804
2804
  command: string;
2805
2805
  decisionId: string;
2806
2806
  testId: string;
2807
2807
  durationMs?: number | undefined;
2808
2808
  evidence?: {
2809
- id: string;
2809
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2810
2810
  label: string;
2811
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2811
+ id: string;
2812
2812
  capture: "at_action" | "historical_lookup" | "fixture";
2813
2813
  locator?: string | undefined;
2814
2814
  }[] | undefined;
@@ -2823,9 +2823,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2823
2823
  supersedesDecisionIds: string[];
2824
2824
  proposedBy: string;
2825
2825
  evidence?: {
2826
- id: string;
2826
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2827
2827
  label: string;
2828
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2828
+ id: string;
2829
2829
  capture: "at_action" | "historical_lookup" | "fixture";
2830
2830
  locator?: string | undefined;
2831
2831
  }[] | undefined;
@@ -2833,15 +2833,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2833
2833
  kind: "correction_approved";
2834
2834
  correctionId: string;
2835
2835
  approvedBy: {
2836
- id: string;
2837
- label: string;
2838
2836
  kind: "agent" | "human";
2837
+ label: string;
2838
+ id: string;
2839
2839
  };
2840
2840
  note?: string | undefined;
2841
2841
  evidence?: {
2842
- id: string;
2842
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2843
2843
  label: string;
2844
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2844
+ id: string;
2845
2845
  capture: "at_action" | "historical_lookup" | "fixture";
2846
2846
  locator?: string | undefined;
2847
2847
  }[] | undefined;
@@ -2851,9 +2851,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2851
2851
  correctionId: string;
2852
2852
  replacementDecisionId: string;
2853
2853
  evidence?: {
2854
- id: string;
2854
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2855
2855
  label: string;
2856
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2856
+ id: string;
2857
2857
  capture: "at_action" | "historical_lookup" | "fixture";
2858
2858
  locator?: string | undefined;
2859
2859
  }[] | undefined;
@@ -2866,9 +2866,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2866
2866
  recallReceiptId: string;
2867
2867
  capturedAtAction: boolean;
2868
2868
  evidence?: {
2869
- id: string;
2869
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2870
2870
  label: string;
2871
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2871
+ id: string;
2872
2872
  capture: "at_action" | "historical_lookup" | "fixture";
2873
2873
  locator?: string | undefined;
2874
2874
  }[] | undefined;
@@ -2881,20 +2881,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2881
2881
  recallReceiptId: string;
2882
2882
  staleDecisionAbsent: boolean;
2883
2883
  evidence?: {
2884
- id: string;
2884
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2885
2885
  label: string;
2886
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2886
+ id: string;
2887
2887
  capture: "at_action" | "historical_lookup" | "fixture";
2888
2888
  locator?: string | undefined;
2889
2889
  }[] | undefined;
2890
2890
  } | {
2891
- summary: string;
2892
2891
  kind: "mission_completed";
2892
+ summary: string;
2893
2893
  outcome: "failed" | "recovered" | "inconclusive";
2894
2894
  evidence?: {
2895
- id: string;
2895
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2896
2896
  label: string;
2897
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2897
+ id: string;
2898
2898
  capture: "at_action" | "historical_lookup" | "fixture";
2899
2899
  locator?: string | undefined;
2900
2900
  }[] | undefined;
@@ -2904,38 +2904,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2904
2904
  kind: "mission_started";
2905
2905
  title: string;
2906
2906
  evidence: {
2907
- id: string;
2907
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2908
2908
  label: string;
2909
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2909
+ id: string;
2910
2910
  capture: "at_action" | "historical_lookup" | "fixture";
2911
2911
  locator?: string | undefined;
2912
2912
  }[];
2913
2913
  objective: string;
2914
2914
  runMode: "replay" | "fixture" | "live";
2915
2915
  } | {
2916
- label: string;
2917
- status: "failed" | "complete" | "blocked" | "working" | "idle";
2918
2916
  kind: "agent_status";
2917
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
2918
+ label: string;
2919
2919
  role: string;
2920
2920
  agentId: string;
2921
2921
  sessionId: string;
2922
2922
  evidence: {
2923
- id: string;
2923
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2924
2924
  label: string;
2925
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2925
+ id: string;
2926
2926
  capture: "at_action" | "historical_lookup" | "fixture";
2927
2927
  locator?: string | undefined;
2928
2928
  }[];
2929
2929
  detail?: string | undefined;
2930
2930
  } | {
2931
- summary: string;
2932
2931
  kind: "agent_output";
2932
+ summary: string;
2933
2933
  agentId: string;
2934
2934
  sessionId: string;
2935
2935
  evidence: {
2936
- id: string;
2936
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2937
2937
  label: string;
2938
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2938
+ id: string;
2939
2939
  capture: "at_action" | "historical_lookup" | "fixture";
2940
2940
  locator?: string | undefined;
2941
2941
  }[];
@@ -2946,9 +2946,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2946
2946
  statement: string;
2947
2947
  sessionId: string;
2948
2948
  evidence: {
2949
- id: string;
2949
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2950
2950
  label: string;
2951
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2951
+ id: string;
2952
2952
  capture: "at_action" | "historical_lookup" | "fixture";
2953
2953
  locator?: string | undefined;
2954
2954
  }[];
@@ -2956,12 +2956,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2956
2956
  decisionId: string;
2957
2957
  confidence?: number | undefined;
2958
2958
  } | {
2959
- summary: string;
2960
2959
  kind: "conflict_detected";
2960
+ summary: string;
2961
2961
  evidence: {
2962
- id: string;
2962
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2963
2963
  label: string;
2964
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2964
+ id: string;
2965
2965
  capture: "at_action" | "historical_lookup" | "fixture";
2966
2966
  locator?: string | undefined;
2967
2967
  }[];
@@ -2969,14 +2969,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2969
2969
  decisionIds: string[];
2970
2970
  agentIds: string[];
2971
2971
  } | {
2972
+ kind: "test_result";
2972
2973
  summary: string;
2973
2974
  status: "error" | "failed" | "passed";
2974
- kind: "test_result";
2975
2975
  command: string;
2976
2976
  evidence: {
2977
- id: string;
2977
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2978
2978
  label: string;
2979
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2979
+ id: string;
2980
2980
  capture: "at_action" | "historical_lookup" | "fixture";
2981
2981
  locator?: string | undefined;
2982
2982
  }[];
@@ -2989,9 +2989,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2989
2989
  rationale: string;
2990
2990
  statement: string;
2991
2991
  evidence: {
2992
- id: string;
2992
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2993
2993
  label: string;
2994
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2994
+ id: string;
2995
2995
  capture: "at_action" | "historical_lookup" | "fixture";
2996
2996
  locator?: string | undefined;
2997
2997
  }[];
@@ -3003,25 +3003,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3003
3003
  } | {
3004
3004
  kind: "correction_approved";
3005
3005
  evidence: {
3006
- id: string;
3006
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3007
3007
  label: string;
3008
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3008
+ id: string;
3009
3009
  capture: "at_action" | "historical_lookup" | "fixture";
3010
3010
  locator?: string | undefined;
3011
3011
  }[];
3012
3012
  correctionId: string;
3013
3013
  approvedBy: {
3014
- id: string;
3015
- label: string;
3016
3014
  kind: "agent" | "human";
3015
+ label: string;
3016
+ id: string;
3017
3017
  };
3018
3018
  note?: string | undefined;
3019
3019
  } | {
3020
3020
  kind: "decision_superseded";
3021
3021
  evidence: {
3022
- id: string;
3022
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3023
3023
  label: string;
3024
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3024
+ id: string;
3025
3025
  capture: "at_action" | "historical_lookup" | "fixture";
3026
3026
  locator?: string | undefined;
3027
3027
  }[];
@@ -3034,9 +3034,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3034
3034
  agentId: string;
3035
3035
  sessionId: string;
3036
3036
  evidence: {
3037
- id: string;
3037
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3038
3038
  label: string;
3039
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3039
+ id: string;
3040
3040
  capture: "at_action" | "historical_lookup" | "fixture";
3041
3041
  locator?: string | undefined;
3042
3042
  }[];
@@ -3048,9 +3048,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3048
3048
  agentId: string;
3049
3049
  sessionId: string;
3050
3050
  evidence: {
3051
- id: string;
3051
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3052
3052
  label: string;
3053
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3053
+ id: string;
3054
3054
  capture: "at_action" | "historical_lookup" | "fixture";
3055
3055
  locator?: string | undefined;
3056
3056
  }[];
@@ -3059,13 +3059,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3059
3059
  recallReceiptId: string;
3060
3060
  staleDecisionAbsent: boolean;
3061
3061
  } | {
3062
- summary: string;
3063
3062
  kind: "mission_completed";
3063
+ summary: string;
3064
3064
  outcome: "failed" | "recovered" | "inconclusive";
3065
3065
  evidence: {
3066
- id: string;
3066
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3067
3067
  label: string;
3068
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3068
+ id: string;
3069
3069
  capture: "at_action" | "historical_lookup" | "fixture";
3070
3070
  locator?: string | undefined;
3071
3071
  }[];
@@ -3079,37 +3079,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3079
3079
  objective: string;
3080
3080
  runMode: "replay" | "fixture" | "live";
3081
3081
  evidence?: {
3082
- id: string;
3082
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3083
3083
  label: string;
3084
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3084
+ id: string;
3085
3085
  capture: "at_action" | "historical_lookup" | "fixture";
3086
3086
  locator?: string | undefined;
3087
3087
  }[] | undefined;
3088
3088
  } | {
3089
- label: string;
3090
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3091
3089
  kind: "agent_status";
3090
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3091
+ label: string;
3092
3092
  role: string;
3093
3093
  agentId: string;
3094
3094
  sessionId: string;
3095
3095
  detail?: string | undefined;
3096
3096
  evidence?: {
3097
- id: string;
3097
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3098
3098
  label: string;
3099
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3099
+ id: string;
3100
3100
  capture: "at_action" | "historical_lookup" | "fixture";
3101
3101
  locator?: string | undefined;
3102
3102
  }[] | undefined;
3103
3103
  } | {
3104
- summary: string;
3105
3104
  kind: "agent_output";
3105
+ summary: string;
3106
3106
  agentId: string;
3107
3107
  sessionId: string;
3108
3108
  outputId: string;
3109
3109
  evidence?: {
3110
- id: string;
3110
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3111
3111
  label: string;
3112
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3112
+ id: string;
3113
3113
  capture: "at_action" | "historical_lookup" | "fixture";
3114
3114
  locator?: string | undefined;
3115
3115
  }[] | undefined;
@@ -3122,37 +3122,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3122
3122
  decisionId: string;
3123
3123
  confidence?: number | undefined;
3124
3124
  evidence?: {
3125
- id: string;
3125
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3126
3126
  label: string;
3127
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3127
+ id: string;
3128
3128
  capture: "at_action" | "historical_lookup" | "fixture";
3129
3129
  locator?: string | undefined;
3130
3130
  }[] | undefined;
3131
3131
  } | {
3132
- summary: string;
3133
3132
  kind: "conflict_detected";
3133
+ summary: string;
3134
3134
  conflictId: string;
3135
3135
  decisionIds: string[];
3136
3136
  agentIds: string[];
3137
3137
  evidence?: {
3138
- id: string;
3138
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3139
3139
  label: string;
3140
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3140
+ id: string;
3141
3141
  capture: "at_action" | "historical_lookup" | "fixture";
3142
3142
  locator?: string | undefined;
3143
3143
  }[] | undefined;
3144
3144
  } | {
3145
+ kind: "test_result";
3145
3146
  summary: string;
3146
3147
  status: "error" | "failed" | "passed";
3147
- kind: "test_result";
3148
3148
  command: string;
3149
3149
  decisionId: string;
3150
3150
  testId: string;
3151
3151
  durationMs?: number | undefined;
3152
3152
  evidence?: {
3153
- id: string;
3153
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3154
3154
  label: string;
3155
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3155
+ id: string;
3156
3156
  capture: "at_action" | "historical_lookup" | "fixture";
3157
3157
  locator?: string | undefined;
3158
3158
  }[] | undefined;
@@ -3167,9 +3167,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3167
3167
  supersedesDecisionIds: string[];
3168
3168
  proposedBy: string;
3169
3169
  evidence?: {
3170
- id: string;
3170
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3171
3171
  label: string;
3172
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3172
+ id: string;
3173
3173
  capture: "at_action" | "historical_lookup" | "fixture";
3174
3174
  locator?: string | undefined;
3175
3175
  }[] | undefined;
@@ -3177,15 +3177,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3177
3177
  kind: "correction_approved";
3178
3178
  correctionId: string;
3179
3179
  approvedBy: {
3180
- id: string;
3181
- label: string;
3182
3180
  kind: "agent" | "human";
3181
+ label: string;
3182
+ id: string;
3183
3183
  };
3184
3184
  note?: string | undefined;
3185
3185
  evidence?: {
3186
- id: string;
3186
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3187
3187
  label: string;
3188
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3188
+ id: string;
3189
3189
  capture: "at_action" | "historical_lookup" | "fixture";
3190
3190
  locator?: string | undefined;
3191
3191
  }[] | undefined;
@@ -3195,9 +3195,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3195
3195
  correctionId: string;
3196
3196
  replacementDecisionId: string;
3197
3197
  evidence?: {
3198
- id: string;
3198
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3199
3199
  label: string;
3200
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3200
+ id: string;
3201
3201
  capture: "at_action" | "historical_lookup" | "fixture";
3202
3202
  locator?: string | undefined;
3203
3203
  }[] | undefined;
@@ -3210,9 +3210,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3210
3210
  recallReceiptId: string;
3211
3211
  capturedAtAction: boolean;
3212
3212
  evidence?: {
3213
- id: string;
3213
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3214
3214
  label: string;
3215
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3215
+ id: string;
3216
3216
  capture: "at_action" | "historical_lookup" | "fixture";
3217
3217
  locator?: string | undefined;
3218
3218
  }[] | undefined;
@@ -3225,20 +3225,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3225
3225
  recallReceiptId: string;
3226
3226
  staleDecisionAbsent: boolean;
3227
3227
  evidence?: {
3228
- id: string;
3228
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3229
3229
  label: string;
3230
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3230
+ id: string;
3231
3231
  capture: "at_action" | "historical_lookup" | "fixture";
3232
3232
  locator?: string | undefined;
3233
3233
  }[] | undefined;
3234
3234
  } | {
3235
- summary: string;
3236
3235
  kind: "mission_completed";
3236
+ summary: string;
3237
3237
  outcome: "failed" | "recovered" | "inconclusive";
3238
3238
  evidence?: {
3239
- id: string;
3239
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3240
3240
  label: string;
3241
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3241
+ id: string;
3242
3242
  capture: "at_action" | "historical_lookup" | "fixture";
3243
3243
  locator?: string | undefined;
3244
3244
  }[] | undefined;
@@ -3268,15 +3268,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3268
3268
  locator: z.ZodOptional<z.ZodString>;
3269
3269
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3270
3270
  }, "strict", z.ZodTypeAny, {
3271
- id: string;
3271
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3272
3272
  label: string;
3273
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3273
+ id: string;
3274
3274
  capture: "at_action" | "historical_lookup" | "fixture";
3275
3275
  locator?: string | undefined;
3276
3276
  }, {
3277
- id: string;
3277
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3278
3278
  label: string;
3279
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3279
+ id: string;
3280
3280
  capture: "at_action" | "historical_lookup" | "fixture";
3281
3281
  locator?: string | undefined;
3282
3282
  }>, "many">>;
@@ -3284,9 +3284,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3284
3284
  kind: "mission_started";
3285
3285
  title: string;
3286
3286
  evidence: {
3287
- id: string;
3287
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3288
3288
  label: string;
3289
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3289
+ id: string;
3290
3290
  capture: "at_action" | "historical_lookup" | "fixture";
3291
3291
  locator?: string | undefined;
3292
3292
  }[];
@@ -3298,9 +3298,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3298
3298
  objective: string;
3299
3299
  runMode: "replay" | "fixture" | "live";
3300
3300
  evidence?: {
3301
- id: string;
3301
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3302
3302
  label: string;
3303
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3303
+ id: string;
3304
3304
  capture: "at_action" | "historical_lookup" | "fixture";
3305
3305
  locator?: string | undefined;
3306
3306
  }[] | undefined;
@@ -3316,15 +3316,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3316
3316
  locator: z.ZodOptional<z.ZodString>;
3317
3317
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3318
3318
  }, "strict", z.ZodTypeAny, {
3319
- id: string;
3319
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3320
3320
  label: string;
3321
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3321
+ id: string;
3322
3322
  capture: "at_action" | "historical_lookup" | "fixture";
3323
3323
  locator?: string | undefined;
3324
3324
  }, {
3325
- id: string;
3325
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3326
3326
  label: string;
3327
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3327
+ id: string;
3328
3328
  capture: "at_action" | "historical_lookup" | "fixture";
3329
3329
  locator?: string | undefined;
3330
3330
  }>, "many">>;
@@ -3332,32 +3332,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3332
3332
  sessionId: z.ZodString;
3333
3333
  kind: z.ZodLiteral<"agent_status">;
3334
3334
  }, "strict", z.ZodTypeAny, {
3335
- label: string;
3336
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3337
3335
  kind: "agent_status";
3336
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3337
+ label: string;
3338
3338
  role: string;
3339
3339
  agentId: string;
3340
3340
  sessionId: string;
3341
3341
  evidence: {
3342
- id: string;
3342
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3343
3343
  label: string;
3344
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3344
+ id: string;
3345
3345
  capture: "at_action" | "historical_lookup" | "fixture";
3346
3346
  locator?: string | undefined;
3347
3347
  }[];
3348
3348
  detail?: string | undefined;
3349
3349
  }, {
3350
- label: string;
3351
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3352
3350
  kind: "agent_status";
3351
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3352
+ label: string;
3353
3353
  role: string;
3354
3354
  agentId: string;
3355
3355
  sessionId: string;
3356
3356
  detail?: string | undefined;
3357
3357
  evidence?: {
3358
- id: string;
3358
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3359
3359
  label: string;
3360
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3360
+ id: string;
3361
3361
  capture: "at_action" | "historical_lookup" | "fixture";
3362
3362
  locator?: string | undefined;
3363
3363
  }[] | undefined;
@@ -3371,15 +3371,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3371
3371
  locator: z.ZodOptional<z.ZodString>;
3372
3372
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3373
3373
  }, "strict", z.ZodTypeAny, {
3374
- id: string;
3374
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3375
3375
  label: string;
3376
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3376
+ id: string;
3377
3377
  capture: "at_action" | "historical_lookup" | "fixture";
3378
3378
  locator?: string | undefined;
3379
3379
  }, {
3380
- id: string;
3380
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3381
3381
  label: string;
3382
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3382
+ id: string;
3383
3383
  capture: "at_action" | "historical_lookup" | "fixture";
3384
3384
  locator?: string | undefined;
3385
3385
  }>, "many">>;
@@ -3387,28 +3387,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3387
3387
  sessionId: z.ZodString;
3388
3388
  kind: z.ZodLiteral<"agent_output">;
3389
3389
  }, "strict", z.ZodTypeAny, {
3390
- summary: string;
3391
3390
  kind: "agent_output";
3391
+ summary: string;
3392
3392
  agentId: string;
3393
3393
  sessionId: string;
3394
3394
  evidence: {
3395
- id: string;
3395
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3396
3396
  label: string;
3397
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3397
+ id: string;
3398
3398
  capture: "at_action" | "historical_lookup" | "fixture";
3399
3399
  locator?: string | undefined;
3400
3400
  }[];
3401
3401
  outputId: string;
3402
3402
  }, {
3403
- summary: string;
3404
3403
  kind: "agent_output";
3404
+ summary: string;
3405
3405
  agentId: string;
3406
3406
  sessionId: string;
3407
3407
  outputId: string;
3408
3408
  evidence?: {
3409
- id: string;
3409
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3410
3410
  label: string;
3411
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3411
+ id: string;
3412
3412
  capture: "at_action" | "historical_lookup" | "fixture";
3413
3413
  locator?: string | undefined;
3414
3414
  }[] | undefined;
@@ -3424,15 +3424,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3424
3424
  locator: z.ZodOptional<z.ZodString>;
3425
3425
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3426
3426
  }, "strict", z.ZodTypeAny, {
3427
- id: string;
3427
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3428
3428
  label: string;
3429
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3429
+ id: string;
3430
3430
  capture: "at_action" | "historical_lookup" | "fixture";
3431
3431
  locator?: string | undefined;
3432
3432
  }, {
3433
- id: string;
3433
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3434
3434
  label: string;
3435
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3435
+ id: string;
3436
3436
  capture: "at_action" | "historical_lookup" | "fixture";
3437
3437
  locator?: string | undefined;
3438
3438
  }>, "many">>;
@@ -3445,9 +3445,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3445
3445
  statement: string;
3446
3446
  sessionId: string;
3447
3447
  evidence: {
3448
- id: string;
3448
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3449
3449
  label: string;
3450
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3450
+ id: string;
3451
3451
  capture: "at_action" | "historical_lookup" | "fixture";
3452
3452
  locator?: string | undefined;
3453
3453
  }[];
@@ -3463,9 +3463,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3463
3463
  decisionId: string;
3464
3464
  confidence?: number | undefined;
3465
3465
  evidence?: {
3466
- id: string;
3466
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3467
3467
  label: string;
3468
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3468
+ id: string;
3469
3469
  capture: "at_action" | "historical_lookup" | "fixture";
3470
3470
  locator?: string | undefined;
3471
3471
  }[] | undefined;
@@ -3482,25 +3482,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3482
3482
  locator: z.ZodOptional<z.ZodString>;
3483
3483
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3484
3484
  }, "strict", z.ZodTypeAny, {
3485
- id: string;
3485
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3486
3486
  label: string;
3487
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3487
+ id: string;
3488
3488
  capture: "at_action" | "historical_lookup" | "fixture";
3489
3489
  locator?: string | undefined;
3490
3490
  }, {
3491
- id: string;
3491
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3492
3492
  label: string;
3493
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3493
+ id: string;
3494
3494
  capture: "at_action" | "historical_lookup" | "fixture";
3495
3495
  locator?: string | undefined;
3496
3496
  }>, "many">>;
3497
3497
  }, "strict", z.ZodTypeAny, {
3498
- summary: string;
3499
3498
  kind: "conflict_detected";
3499
+ summary: string;
3500
3500
  evidence: {
3501
- id: string;
3501
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3502
3502
  label: string;
3503
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3503
+ id: string;
3504
3504
  capture: "at_action" | "historical_lookup" | "fixture";
3505
3505
  locator?: string | undefined;
3506
3506
  }[];
@@ -3508,15 +3508,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3508
3508
  decisionIds: string[];
3509
3509
  agentIds: string[];
3510
3510
  }, {
3511
- summary: string;
3512
3511
  kind: "conflict_detected";
3512
+ summary: string;
3513
3513
  conflictId: string;
3514
3514
  decisionIds: string[];
3515
3515
  agentIds: string[];
3516
3516
  evidence?: {
3517
- id: string;
3517
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3518
3518
  label: string;
3519
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3519
+ id: string;
3520
3520
  capture: "at_action" | "historical_lookup" | "fixture";
3521
3521
  locator?: string | undefined;
3522
3522
  }[] | undefined;
@@ -3536,27 +3536,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3536
3536
  locator: z.ZodOptional<z.ZodString>;
3537
3537
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3538
3538
  }, "strict", z.ZodTypeAny, {
3539
- id: string;
3539
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3540
3540
  label: string;
3541
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3541
+ id: string;
3542
3542
  capture: "at_action" | "historical_lookup" | "fixture";
3543
3543
  locator?: string | undefined;
3544
3544
  }, {
3545
- id: string;
3545
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3546
3546
  label: string;
3547
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3547
+ id: string;
3548
3548
  capture: "at_action" | "historical_lookup" | "fixture";
3549
3549
  locator?: string | undefined;
3550
3550
  }>, "many">>;
3551
3551
  }, "strict", z.ZodTypeAny, {
3552
+ kind: "test_result";
3552
3553
  summary: string;
3553
3554
  status: "error" | "failed" | "passed";
3554
- kind: "test_result";
3555
3555
  command: string;
3556
3556
  evidence: {
3557
- id: string;
3557
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3558
3558
  label: string;
3559
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3559
+ id: string;
3560
3560
  capture: "at_action" | "historical_lookup" | "fixture";
3561
3561
  locator?: string | undefined;
3562
3562
  }[];
@@ -3565,17 +3565,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3565
3565
  durationMs?: number | undefined;
3566
3566
  correctionId?: string | undefined;
3567
3567
  }, {
3568
+ kind: "test_result";
3568
3569
  summary: string;
3569
3570
  status: "error" | "failed" | "passed";
3570
- kind: "test_result";
3571
3571
  command: string;
3572
3572
  decisionId: string;
3573
3573
  testId: string;
3574
3574
  durationMs?: number | undefined;
3575
3575
  evidence?: {
3576
- id: string;
3576
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3577
3577
  label: string;
3578
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3578
+ id: string;
3579
3579
  capture: "at_action" | "historical_lookup" | "fixture";
3580
3580
  locator?: string | undefined;
3581
3581
  }[] | undefined;
@@ -3596,15 +3596,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3596
3596
  locator: z.ZodOptional<z.ZodString>;
3597
3597
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3598
3598
  }, "strict", z.ZodTypeAny, {
3599
- id: string;
3599
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3600
3600
  label: string;
3601
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3601
+ id: string;
3602
3602
  capture: "at_action" | "historical_lookup" | "fixture";
3603
3603
  locator?: string | undefined;
3604
3604
  }, {
3605
- id: string;
3605
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3606
3606
  label: string;
3607
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3607
+ id: string;
3608
3608
  capture: "at_action" | "historical_lookup" | "fixture";
3609
3609
  locator?: string | undefined;
3610
3610
  }>, "many">>;
@@ -3613,9 +3613,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3613
3613
  rationale: string;
3614
3614
  statement: string;
3615
3615
  evidence: {
3616
- id: string;
3616
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3617
3617
  label: string;
3618
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3618
+ id: string;
3619
3619
  capture: "at_action" | "historical_lookup" | "fixture";
3620
3620
  locator?: string | undefined;
3621
3621
  }[];
@@ -3634,9 +3634,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3634
3634
  supersedesDecisionIds: string[];
3635
3635
  proposedBy: string;
3636
3636
  evidence?: {
3637
- id: string;
3637
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3638
3638
  label: string;
3639
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3639
+ id: string;
3640
3640
  capture: "at_action" | "historical_lookup" | "fixture";
3641
3641
  locator?: string | undefined;
3642
3642
  }[] | undefined;
@@ -3648,13 +3648,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3648
3648
  id: z.ZodString;
3649
3649
  label: z.ZodString;
3650
3650
  }, "strict", z.ZodTypeAny, {
3651
- id: string;
3652
- label: string;
3653
3651
  kind: "agent" | "human";
3654
- }, {
3655
- id: string;
3656
3652
  label: string;
3653
+ id: string;
3654
+ }, {
3657
3655
  kind: "agent" | "human";
3656
+ label: string;
3657
+ id: string;
3658
3658
  }>;
3659
3659
  note: z.ZodOptional<z.ZodString>;
3660
3660
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3664,47 +3664,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3664
3664
  locator: z.ZodOptional<z.ZodString>;
3665
3665
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3666
3666
  }, "strict", z.ZodTypeAny, {
3667
- id: string;
3667
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3668
3668
  label: string;
3669
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3669
+ id: string;
3670
3670
  capture: "at_action" | "historical_lookup" | "fixture";
3671
3671
  locator?: string | undefined;
3672
3672
  }, {
3673
- id: string;
3673
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3674
3674
  label: string;
3675
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3675
+ id: string;
3676
3676
  capture: "at_action" | "historical_lookup" | "fixture";
3677
3677
  locator?: string | undefined;
3678
3678
  }>, "many">>;
3679
3679
  }, "strict", z.ZodTypeAny, {
3680
3680
  kind: "correction_approved";
3681
3681
  evidence: {
3682
- id: string;
3682
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3683
3683
  label: string;
3684
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3684
+ id: string;
3685
3685
  capture: "at_action" | "historical_lookup" | "fixture";
3686
3686
  locator?: string | undefined;
3687
3687
  }[];
3688
3688
  correctionId: string;
3689
3689
  approvedBy: {
3690
- id: string;
3691
- label: string;
3692
3690
  kind: "agent" | "human";
3691
+ label: string;
3692
+ id: string;
3693
3693
  };
3694
3694
  note?: string | undefined;
3695
3695
  }, {
3696
3696
  kind: "correction_approved";
3697
3697
  correctionId: string;
3698
3698
  approvedBy: {
3699
- id: string;
3700
- label: string;
3701
3699
  kind: "agent" | "human";
3700
+ label: string;
3701
+ id: string;
3702
3702
  };
3703
3703
  note?: string | undefined;
3704
3704
  evidence?: {
3705
- id: string;
3705
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3706
3706
  label: string;
3707
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3707
+ id: string;
3708
3708
  capture: "at_action" | "historical_lookup" | "fixture";
3709
3709
  locator?: string | undefined;
3710
3710
  }[] | undefined;
@@ -3720,24 +3720,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3720
3720
  locator: z.ZodOptional<z.ZodString>;
3721
3721
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3722
3722
  }, "strict", z.ZodTypeAny, {
3723
- id: string;
3723
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3724
3724
  label: string;
3725
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3725
+ id: string;
3726
3726
  capture: "at_action" | "historical_lookup" | "fixture";
3727
3727
  locator?: string | undefined;
3728
3728
  }, {
3729
- id: string;
3729
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3730
3730
  label: string;
3731
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3731
+ id: string;
3732
3732
  capture: "at_action" | "historical_lookup" | "fixture";
3733
3733
  locator?: string | undefined;
3734
3734
  }>, "many">>;
3735
3735
  }, "strict", z.ZodTypeAny, {
3736
3736
  kind: "decision_superseded";
3737
3737
  evidence: {
3738
- id: string;
3738
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3739
3739
  label: string;
3740
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3740
+ id: string;
3741
3741
  capture: "at_action" | "historical_lookup" | "fixture";
3742
3742
  locator?: string | undefined;
3743
3743
  }[];
@@ -3750,9 +3750,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3750
3750
  correctionId: string;
3751
3751
  replacementDecisionId: string;
3752
3752
  evidence?: {
3753
- id: string;
3753
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3754
3754
  label: string;
3755
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3755
+ id: string;
3756
3756
  capture: "at_action" | "historical_lookup" | "fixture";
3757
3757
  locator?: string | undefined;
3758
3758
  }[] | undefined;
@@ -3768,15 +3768,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3768
3768
  locator: z.ZodOptional<z.ZodString>;
3769
3769
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3770
3770
  }, "strict", z.ZodTypeAny, {
3771
- id: string;
3771
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3772
3772
  label: string;
3773
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3773
+ id: string;
3774
3774
  capture: "at_action" | "historical_lookup" | "fixture";
3775
3775
  locator?: string | undefined;
3776
3776
  }, {
3777
- id: string;
3777
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3778
3778
  label: string;
3779
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3779
+ id: string;
3780
3780
  capture: "at_action" | "historical_lookup" | "fixture";
3781
3781
  locator?: string | undefined;
3782
3782
  }>, "many">>;
@@ -3789,9 +3789,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3789
3789
  agentId: string;
3790
3790
  sessionId: string;
3791
3791
  evidence: {
3792
- id: string;
3792
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3793
3793
  label: string;
3794
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3794
+ id: string;
3795
3795
  capture: "at_action" | "historical_lookup" | "fixture";
3796
3796
  locator?: string | undefined;
3797
3797
  }[];
@@ -3807,9 +3807,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3807
3807
  recallReceiptId: string;
3808
3808
  capturedAtAction: boolean;
3809
3809
  evidence?: {
3810
- id: string;
3810
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3811
3811
  label: string;
3812
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3812
+ id: string;
3813
3813
  capture: "at_action" | "historical_lookup" | "fixture";
3814
3814
  locator?: string | undefined;
3815
3815
  }[] | undefined;
@@ -3825,15 +3825,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3825
3825
  locator: z.ZodOptional<z.ZodString>;
3826
3826
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3827
3827
  }, "strict", z.ZodTypeAny, {
3828
- id: string;
3828
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3829
3829
  label: string;
3830
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3830
+ id: string;
3831
3831
  capture: "at_action" | "historical_lookup" | "fixture";
3832
3832
  locator?: string | undefined;
3833
3833
  }, {
3834
- id: string;
3834
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3835
3835
  label: string;
3836
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3836
+ id: string;
3837
3837
  capture: "at_action" | "historical_lookup" | "fixture";
3838
3838
  locator?: string | undefined;
3839
3839
  }>, "many">>;
@@ -3845,9 +3845,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3845
3845
  agentId: string;
3846
3846
  sessionId: string;
3847
3847
  evidence: {
3848
- id: string;
3848
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3849
3849
  label: string;
3850
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3850
+ id: string;
3851
3851
  capture: "at_action" | "historical_lookup" | "fixture";
3852
3852
  locator?: string | undefined;
3853
3853
  }[];
@@ -3864,9 +3864,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3864
3864
  recallReceiptId: string;
3865
3865
  staleDecisionAbsent: boolean;
3866
3866
  evidence?: {
3867
- id: string;
3867
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3868
3868
  label: string;
3869
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3869
+ id: string;
3870
3870
  capture: "at_action" | "historical_lookup" | "fixture";
3871
3871
  locator?: string | undefined;
3872
3872
  }[] | undefined;
@@ -3881,37 +3881,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3881
3881
  locator: z.ZodOptional<z.ZodString>;
3882
3882
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3883
3883
  }, "strict", z.ZodTypeAny, {
3884
- id: string;
3884
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3885
3885
  label: string;
3886
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3886
+ id: string;
3887
3887
  capture: "at_action" | "historical_lookup" | "fixture";
3888
3888
  locator?: string | undefined;
3889
3889
  }, {
3890
- id: string;
3890
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3891
3891
  label: string;
3892
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3892
+ id: string;
3893
3893
  capture: "at_action" | "historical_lookup" | "fixture";
3894
3894
  locator?: string | undefined;
3895
3895
  }>, "many">>;
3896
3896
  }, "strict", z.ZodTypeAny, {
3897
- summary: string;
3898
3897
  kind: "mission_completed";
3898
+ summary: string;
3899
3899
  outcome: "failed" | "recovered" | "inconclusive";
3900
3900
  evidence: {
3901
- id: string;
3901
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3902
3902
  label: string;
3903
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3903
+ id: string;
3904
3904
  capture: "at_action" | "historical_lookup" | "fixture";
3905
3905
  locator?: string | undefined;
3906
3906
  }[];
3907
3907
  }, {
3908
- summary: string;
3909
3908
  kind: "mission_completed";
3909
+ summary: string;
3910
3910
  outcome: "failed" | "recovered" | "inconclusive";
3911
3911
  evidence?: {
3912
- id: string;
3912
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3913
3913
  label: string;
3914
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3914
+ id: string;
3915
3915
  capture: "at_action" | "historical_lookup" | "fixture";
3916
3916
  locator?: string | undefined;
3917
3917
  }[] | undefined;
@@ -3919,38 +3919,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3919
3919
  kind: "mission_started";
3920
3920
  title: string;
3921
3921
  evidence: {
3922
- id: string;
3922
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3923
3923
  label: string;
3924
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3924
+ id: string;
3925
3925
  capture: "at_action" | "historical_lookup" | "fixture";
3926
3926
  locator?: string | undefined;
3927
3927
  }[];
3928
3928
  objective: string;
3929
3929
  runMode: "replay" | "fixture" | "live";
3930
3930
  } | {
3931
- label: string;
3932
- status: "failed" | "complete" | "blocked" | "working" | "idle";
3933
3931
  kind: "agent_status";
3932
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
3933
+ label: string;
3934
3934
  role: string;
3935
3935
  agentId: string;
3936
3936
  sessionId: string;
3937
3937
  evidence: {
3938
- id: string;
3938
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3939
3939
  label: string;
3940
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3940
+ id: string;
3941
3941
  capture: "at_action" | "historical_lookup" | "fixture";
3942
3942
  locator?: string | undefined;
3943
3943
  }[];
3944
3944
  detail?: string | undefined;
3945
3945
  } | {
3946
- summary: string;
3947
3946
  kind: "agent_output";
3947
+ summary: string;
3948
3948
  agentId: string;
3949
3949
  sessionId: string;
3950
3950
  evidence: {
3951
- id: string;
3951
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3952
3952
  label: string;
3953
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3953
+ id: string;
3954
3954
  capture: "at_action" | "historical_lookup" | "fixture";
3955
3955
  locator?: string | undefined;
3956
3956
  }[];
@@ -3961,9 +3961,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3961
3961
  statement: string;
3962
3962
  sessionId: string;
3963
3963
  evidence: {
3964
- id: string;
3964
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3965
3965
  label: string;
3966
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3966
+ id: string;
3967
3967
  capture: "at_action" | "historical_lookup" | "fixture";
3968
3968
  locator?: string | undefined;
3969
3969
  }[];
@@ -3971,12 +3971,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3971
3971
  decisionId: string;
3972
3972
  confidence?: number | undefined;
3973
3973
  } | {
3974
- summary: string;
3975
3974
  kind: "conflict_detected";
3975
+ summary: string;
3976
3976
  evidence: {
3977
- id: string;
3977
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3978
3978
  label: string;
3979
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3979
+ id: string;
3980
3980
  capture: "at_action" | "historical_lookup" | "fixture";
3981
3981
  locator?: string | undefined;
3982
3982
  }[];
@@ -3984,14 +3984,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3984
3984
  decisionIds: string[];
3985
3985
  agentIds: string[];
3986
3986
  } | {
3987
+ kind: "test_result";
3987
3988
  summary: string;
3988
3989
  status: "error" | "failed" | "passed";
3989
- kind: "test_result";
3990
3990
  command: string;
3991
3991
  evidence: {
3992
- id: string;
3992
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3993
3993
  label: string;
3994
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3994
+ id: string;
3995
3995
  capture: "at_action" | "historical_lookup" | "fixture";
3996
3996
  locator?: string | undefined;
3997
3997
  }[];
@@ -4004,9 +4004,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4004
4004
  rationale: string;
4005
4005
  statement: string;
4006
4006
  evidence: {
4007
- id: string;
4007
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4008
4008
  label: string;
4009
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4009
+ id: string;
4010
4010
  capture: "at_action" | "historical_lookup" | "fixture";
4011
4011
  locator?: string | undefined;
4012
4012
  }[];
@@ -4018,25 +4018,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4018
4018
  } | {
4019
4019
  kind: "correction_approved";
4020
4020
  evidence: {
4021
- id: string;
4021
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4022
4022
  label: string;
4023
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4023
+ id: string;
4024
4024
  capture: "at_action" | "historical_lookup" | "fixture";
4025
4025
  locator?: string | undefined;
4026
4026
  }[];
4027
4027
  correctionId: string;
4028
4028
  approvedBy: {
4029
- id: string;
4030
- label: string;
4031
4029
  kind: "agent" | "human";
4030
+ label: string;
4031
+ id: string;
4032
4032
  };
4033
4033
  note?: string | undefined;
4034
4034
  } | {
4035
4035
  kind: "decision_superseded";
4036
4036
  evidence: {
4037
- id: string;
4037
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4038
4038
  label: string;
4039
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4039
+ id: string;
4040
4040
  capture: "at_action" | "historical_lookup" | "fixture";
4041
4041
  locator?: string | undefined;
4042
4042
  }[];
@@ -4049,9 +4049,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4049
4049
  agentId: string;
4050
4050
  sessionId: string;
4051
4051
  evidence: {
4052
- id: string;
4052
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4053
4053
  label: string;
4054
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4054
+ id: string;
4055
4055
  capture: "at_action" | "historical_lookup" | "fixture";
4056
4056
  locator?: string | undefined;
4057
4057
  }[];
@@ -4063,9 +4063,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4063
4063
  agentId: string;
4064
4064
  sessionId: string;
4065
4065
  evidence: {
4066
- id: string;
4066
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4067
4067
  label: string;
4068
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4068
+ id: string;
4069
4069
  capture: "at_action" | "historical_lookup" | "fixture";
4070
4070
  locator?: string | undefined;
4071
4071
  }[];
@@ -4074,13 +4074,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4074
4074
  recallReceiptId: string;
4075
4075
  staleDecisionAbsent: boolean;
4076
4076
  } | {
4077
- summary: string;
4078
4077
  kind: "mission_completed";
4078
+ summary: string;
4079
4079
  outcome: "failed" | "recovered" | "inconclusive";
4080
4080
  evidence: {
4081
- id: string;
4081
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4082
4082
  label: string;
4083
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4083
+ id: string;
4084
4084
  capture: "at_action" | "historical_lookup" | "fixture";
4085
4085
  locator?: string | undefined;
4086
4086
  }[];
@@ -4090,37 +4090,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4090
4090
  objective: string;
4091
4091
  runMode: "replay" | "fixture" | "live";
4092
4092
  evidence?: {
4093
- id: string;
4093
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4094
4094
  label: string;
4095
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4095
+ id: string;
4096
4096
  capture: "at_action" | "historical_lookup" | "fixture";
4097
4097
  locator?: string | undefined;
4098
4098
  }[] | undefined;
4099
4099
  } | {
4100
- label: string;
4101
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4102
4100
  kind: "agent_status";
4101
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4102
+ label: string;
4103
4103
  role: string;
4104
4104
  agentId: string;
4105
4105
  sessionId: string;
4106
4106
  detail?: string | undefined;
4107
4107
  evidence?: {
4108
- id: string;
4108
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4109
4109
  label: string;
4110
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4110
+ id: string;
4111
4111
  capture: "at_action" | "historical_lookup" | "fixture";
4112
4112
  locator?: string | undefined;
4113
4113
  }[] | undefined;
4114
4114
  } | {
4115
- summary: string;
4116
4115
  kind: "agent_output";
4116
+ summary: string;
4117
4117
  agentId: string;
4118
4118
  sessionId: string;
4119
4119
  outputId: string;
4120
4120
  evidence?: {
4121
- id: string;
4121
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4122
4122
  label: string;
4123
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4123
+ id: string;
4124
4124
  capture: "at_action" | "historical_lookup" | "fixture";
4125
4125
  locator?: string | undefined;
4126
4126
  }[] | undefined;
@@ -4133,37 +4133,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4133
4133
  decisionId: string;
4134
4134
  confidence?: number | undefined;
4135
4135
  evidence?: {
4136
- id: string;
4136
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4137
4137
  label: string;
4138
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4138
+ id: string;
4139
4139
  capture: "at_action" | "historical_lookup" | "fixture";
4140
4140
  locator?: string | undefined;
4141
4141
  }[] | undefined;
4142
4142
  } | {
4143
- summary: string;
4144
4143
  kind: "conflict_detected";
4144
+ summary: string;
4145
4145
  conflictId: string;
4146
4146
  decisionIds: string[];
4147
4147
  agentIds: string[];
4148
4148
  evidence?: {
4149
- id: string;
4149
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4150
4150
  label: string;
4151
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4151
+ id: string;
4152
4152
  capture: "at_action" | "historical_lookup" | "fixture";
4153
4153
  locator?: string | undefined;
4154
4154
  }[] | undefined;
4155
4155
  } | {
4156
+ kind: "test_result";
4156
4157
  summary: string;
4157
4158
  status: "error" | "failed" | "passed";
4158
- kind: "test_result";
4159
4159
  command: string;
4160
4160
  decisionId: string;
4161
4161
  testId: string;
4162
4162
  durationMs?: number | undefined;
4163
4163
  evidence?: {
4164
- id: string;
4164
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4165
4165
  label: string;
4166
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4166
+ id: string;
4167
4167
  capture: "at_action" | "historical_lookup" | "fixture";
4168
4168
  locator?: string | undefined;
4169
4169
  }[] | undefined;
@@ -4178,9 +4178,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4178
4178
  supersedesDecisionIds: string[];
4179
4179
  proposedBy: string;
4180
4180
  evidence?: {
4181
- id: string;
4181
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4182
4182
  label: string;
4183
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4183
+ id: string;
4184
4184
  capture: "at_action" | "historical_lookup" | "fixture";
4185
4185
  locator?: string | undefined;
4186
4186
  }[] | undefined;
@@ -4188,15 +4188,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4188
4188
  kind: "correction_approved";
4189
4189
  correctionId: string;
4190
4190
  approvedBy: {
4191
- id: string;
4192
- label: string;
4193
4191
  kind: "agent" | "human";
4192
+ label: string;
4193
+ id: string;
4194
4194
  };
4195
4195
  note?: string | undefined;
4196
4196
  evidence?: {
4197
- id: string;
4197
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4198
4198
  label: string;
4199
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4199
+ id: string;
4200
4200
  capture: "at_action" | "historical_lookup" | "fixture";
4201
4201
  locator?: string | undefined;
4202
4202
  }[] | undefined;
@@ -4206,9 +4206,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4206
4206
  correctionId: string;
4207
4207
  replacementDecisionId: string;
4208
4208
  evidence?: {
4209
- id: string;
4209
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4210
4210
  label: string;
4211
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4211
+ id: string;
4212
4212
  capture: "at_action" | "historical_lookup" | "fixture";
4213
4213
  locator?: string | undefined;
4214
4214
  }[] | undefined;
@@ -4221,9 +4221,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4221
4221
  recallReceiptId: string;
4222
4222
  capturedAtAction: boolean;
4223
4223
  evidence?: {
4224
- id: string;
4224
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4225
4225
  label: string;
4226
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4226
+ id: string;
4227
4227
  capture: "at_action" | "historical_lookup" | "fixture";
4228
4228
  locator?: string | undefined;
4229
4229
  }[] | undefined;
@@ -4236,64 +4236,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4236
4236
  recallReceiptId: string;
4237
4237
  staleDecisionAbsent: boolean;
4238
4238
  evidence?: {
4239
- id: string;
4239
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4240
4240
  label: string;
4241
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4241
+ id: string;
4242
4242
  capture: "at_action" | "historical_lookup" | "fixture";
4243
4243
  locator?: string | undefined;
4244
4244
  }[] | undefined;
4245
4245
  } | {
4246
- summary: string;
4247
4246
  kind: "mission_completed";
4247
+ summary: string;
4248
4248
  outcome: "failed" | "recovered" | "inconclusive";
4249
4249
  evidence?: {
4250
- id: string;
4250
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4251
4251
  label: string;
4252
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4252
+ id: string;
4253
4253
  capture: "at_action" | "historical_lookup" | "fixture";
4254
4254
  locator?: string | undefined;
4255
4255
  }[] | undefined;
4256
4256
  }>;
4257
4257
  }, "strict", z.ZodTypeAny, {
4258
- namespace: string;
4259
- recordedAt: string;
4260
4258
  schemaVersion: "1";
4259
+ recordedAt: string;
4261
4260
  payload: {
4262
4261
  kind: "mission_started";
4263
4262
  title: string;
4264
4263
  evidence: {
4265
- id: string;
4264
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4266
4265
  label: string;
4267
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4266
+ id: string;
4268
4267
  capture: "at_action" | "historical_lookup" | "fixture";
4269
4268
  locator?: string | undefined;
4270
4269
  }[];
4271
4270
  objective: string;
4272
4271
  runMode: "replay" | "fixture" | "live";
4273
4272
  } | {
4274
- label: string;
4275
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4276
4273
  kind: "agent_status";
4274
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4275
+ label: string;
4277
4276
  role: string;
4278
4277
  agentId: string;
4279
4278
  sessionId: string;
4280
4279
  evidence: {
4281
- id: string;
4280
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4282
4281
  label: string;
4283
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4282
+ id: string;
4284
4283
  capture: "at_action" | "historical_lookup" | "fixture";
4285
4284
  locator?: string | undefined;
4286
4285
  }[];
4287
4286
  detail?: string | undefined;
4288
4287
  } | {
4289
- summary: string;
4290
4288
  kind: "agent_output";
4289
+ summary: string;
4291
4290
  agentId: string;
4292
4291
  sessionId: string;
4293
4292
  evidence: {
4294
- id: string;
4293
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4295
4294
  label: string;
4296
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4295
+ id: string;
4297
4296
  capture: "at_action" | "historical_lookup" | "fixture";
4298
4297
  locator?: string | undefined;
4299
4298
  }[];
@@ -4304,9 +4303,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4304
4303
  statement: string;
4305
4304
  sessionId: string;
4306
4305
  evidence: {
4307
- id: string;
4306
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4308
4307
  label: string;
4309
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4308
+ id: string;
4310
4309
  capture: "at_action" | "historical_lookup" | "fixture";
4311
4310
  locator?: string | undefined;
4312
4311
  }[];
@@ -4314,12 +4313,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4314
4313
  decisionId: string;
4315
4314
  confidence?: number | undefined;
4316
4315
  } | {
4317
- summary: string;
4318
4316
  kind: "conflict_detected";
4317
+ summary: string;
4319
4318
  evidence: {
4320
- id: string;
4319
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4321
4320
  label: string;
4322
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4321
+ id: string;
4323
4322
  capture: "at_action" | "historical_lookup" | "fixture";
4324
4323
  locator?: string | undefined;
4325
4324
  }[];
@@ -4327,14 +4326,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4327
4326
  decisionIds: string[];
4328
4327
  agentIds: string[];
4329
4328
  } | {
4329
+ kind: "test_result";
4330
4330
  summary: string;
4331
4331
  status: "error" | "failed" | "passed";
4332
- kind: "test_result";
4333
4332
  command: string;
4334
4333
  evidence: {
4335
- id: string;
4334
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4336
4335
  label: string;
4337
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4336
+ id: string;
4338
4337
  capture: "at_action" | "historical_lookup" | "fixture";
4339
4338
  locator?: string | undefined;
4340
4339
  }[];
@@ -4347,9 +4346,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4347
4346
  rationale: string;
4348
4347
  statement: string;
4349
4348
  evidence: {
4350
- id: string;
4349
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4351
4350
  label: string;
4352
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4351
+ id: string;
4353
4352
  capture: "at_action" | "historical_lookup" | "fixture";
4354
4353
  locator?: string | undefined;
4355
4354
  }[];
@@ -4361,25 +4360,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4361
4360
  } | {
4362
4361
  kind: "correction_approved";
4363
4362
  evidence: {
4364
- id: string;
4363
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4365
4364
  label: string;
4366
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4365
+ id: string;
4367
4366
  capture: "at_action" | "historical_lookup" | "fixture";
4368
4367
  locator?: string | undefined;
4369
4368
  }[];
4370
4369
  correctionId: string;
4371
4370
  approvedBy: {
4372
- id: string;
4373
- label: string;
4374
4371
  kind: "agent" | "human";
4372
+ label: string;
4373
+ id: string;
4375
4374
  };
4376
4375
  note?: string | undefined;
4377
4376
  } | {
4378
4377
  kind: "decision_superseded";
4379
4378
  evidence: {
4380
- id: string;
4379
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4381
4380
  label: string;
4382
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4381
+ id: string;
4383
4382
  capture: "at_action" | "historical_lookup" | "fixture";
4384
4383
  locator?: string | undefined;
4385
4384
  }[];
@@ -4392,9 +4391,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4392
4391
  agentId: string;
4393
4392
  sessionId: string;
4394
4393
  evidence: {
4395
- id: string;
4394
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4396
4395
  label: string;
4397
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4396
+ id: string;
4398
4397
  capture: "at_action" | "historical_lookup" | "fixture";
4399
4398
  locator?: string | undefined;
4400
4399
  }[];
@@ -4406,9 +4405,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4406
4405
  agentId: string;
4407
4406
  sessionId: string;
4408
4407
  evidence: {
4409
- id: string;
4408
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4410
4409
  label: string;
4411
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4410
+ id: string;
4412
4411
  capture: "at_action" | "historical_lookup" | "fixture";
4413
4412
  locator?: string | undefined;
4414
4413
  }[];
@@ -4417,63 +4416,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4417
4416
  recallReceiptId: string;
4418
4417
  staleDecisionAbsent: boolean;
4419
4418
  } | {
4420
- summary: string;
4421
4419
  kind: "mission_completed";
4420
+ summary: string;
4422
4421
  outcome: "failed" | "recovered" | "inconclusive";
4423
4422
  evidence: {
4424
- id: string;
4423
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4425
4424
  label: string;
4426
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4425
+ id: string;
4427
4426
  capture: "at_action" | "historical_lookup" | "fixture";
4428
4427
  locator?: string | undefined;
4429
4428
  }[];
4430
4429
  };
4430
+ namespace: string;
4431
4431
  eventId: string;
4432
4432
  occurredAt: string;
4433
4433
  missionId: string;
4434
4434
  authenticatedPrincipal?: string | undefined;
4435
4435
  idempotencyKey?: string | undefined;
4436
4436
  }, {
4437
- namespace: string;
4438
- recordedAt: string;
4439
4437
  schemaVersion: "1";
4438
+ recordedAt: string;
4440
4439
  payload: {
4441
4440
  kind: "mission_started";
4442
4441
  title: string;
4443
4442
  objective: string;
4444
4443
  runMode: "replay" | "fixture" | "live";
4445
4444
  evidence?: {
4446
- id: string;
4445
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4447
4446
  label: string;
4448
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4447
+ id: string;
4449
4448
  capture: "at_action" | "historical_lookup" | "fixture";
4450
4449
  locator?: string | undefined;
4451
4450
  }[] | undefined;
4452
4451
  } | {
4453
- label: string;
4454
- status: "failed" | "complete" | "blocked" | "working" | "idle";
4455
4452
  kind: "agent_status";
4453
+ status: "failed" | "complete" | "blocked" | "working" | "idle";
4454
+ label: string;
4456
4455
  role: string;
4457
4456
  agentId: string;
4458
4457
  sessionId: string;
4459
4458
  detail?: string | undefined;
4460
4459
  evidence?: {
4461
- id: string;
4460
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4462
4461
  label: string;
4463
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4462
+ id: string;
4464
4463
  capture: "at_action" | "historical_lookup" | "fixture";
4465
4464
  locator?: string | undefined;
4466
4465
  }[] | undefined;
4467
4466
  } | {
4468
- summary: string;
4469
4467
  kind: "agent_output";
4468
+ summary: string;
4470
4469
  agentId: string;
4471
4470
  sessionId: string;
4472
4471
  outputId: string;
4473
4472
  evidence?: {
4474
- id: string;
4473
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4475
4474
  label: string;
4476
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4475
+ id: string;
4477
4476
  capture: "at_action" | "historical_lookup" | "fixture";
4478
4477
  locator?: string | undefined;
4479
4478
  }[] | undefined;
@@ -4486,37 +4485,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4486
4485
  decisionId: string;
4487
4486
  confidence?: number | undefined;
4488
4487
  evidence?: {
4489
- id: string;
4488
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4490
4489
  label: string;
4491
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4490
+ id: string;
4492
4491
  capture: "at_action" | "historical_lookup" | "fixture";
4493
4492
  locator?: string | undefined;
4494
4493
  }[] | undefined;
4495
4494
  } | {
4496
- summary: string;
4497
4495
  kind: "conflict_detected";
4496
+ summary: string;
4498
4497
  conflictId: string;
4499
4498
  decisionIds: string[];
4500
4499
  agentIds: string[];
4501
4500
  evidence?: {
4502
- id: string;
4501
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4503
4502
  label: string;
4504
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4503
+ id: string;
4505
4504
  capture: "at_action" | "historical_lookup" | "fixture";
4506
4505
  locator?: string | undefined;
4507
4506
  }[] | undefined;
4508
4507
  } | {
4508
+ kind: "test_result";
4509
4509
  summary: string;
4510
4510
  status: "error" | "failed" | "passed";
4511
- kind: "test_result";
4512
4511
  command: string;
4513
4512
  decisionId: string;
4514
4513
  testId: string;
4515
4514
  durationMs?: number | undefined;
4516
4515
  evidence?: {
4517
- id: string;
4516
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4518
4517
  label: string;
4519
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4518
+ id: string;
4520
4519
  capture: "at_action" | "historical_lookup" | "fixture";
4521
4520
  locator?: string | undefined;
4522
4521
  }[] | undefined;
@@ -4531,9 +4530,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4531
4530
  supersedesDecisionIds: string[];
4532
4531
  proposedBy: string;
4533
4532
  evidence?: {
4534
- id: string;
4533
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4535
4534
  label: string;
4536
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4535
+ id: string;
4537
4536
  capture: "at_action" | "historical_lookup" | "fixture";
4538
4537
  locator?: string | undefined;
4539
4538
  }[] | undefined;
@@ -4541,15 +4540,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4541
4540
  kind: "correction_approved";
4542
4541
  correctionId: string;
4543
4542
  approvedBy: {
4544
- id: string;
4545
- label: string;
4546
4543
  kind: "agent" | "human";
4544
+ label: string;
4545
+ id: string;
4547
4546
  };
4548
4547
  note?: string | undefined;
4549
4548
  evidence?: {
4550
- id: string;
4549
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4551
4550
  label: string;
4552
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4551
+ id: string;
4553
4552
  capture: "at_action" | "historical_lookup" | "fixture";
4554
4553
  locator?: string | undefined;
4555
4554
  }[] | undefined;
@@ -4559,9 +4558,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4559
4558
  correctionId: string;
4560
4559
  replacementDecisionId: string;
4561
4560
  evidence?: {
4562
- id: string;
4561
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4563
4562
  label: string;
4564
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4563
+ id: string;
4565
4564
  capture: "at_action" | "historical_lookup" | "fixture";
4566
4565
  locator?: string | undefined;
4567
4566
  }[] | undefined;
@@ -4574,9 +4573,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4574
4573
  recallReceiptId: string;
4575
4574
  capturedAtAction: boolean;
4576
4575
  evidence?: {
4577
- id: string;
4576
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4578
4577
  label: string;
4579
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4578
+ id: string;
4580
4579
  capture: "at_action" | "historical_lookup" | "fixture";
4581
4580
  locator?: string | undefined;
4582
4581
  }[] | undefined;
@@ -4589,24 +4588,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4589
4588
  recallReceiptId: string;
4590
4589
  staleDecisionAbsent: boolean;
4591
4590
  evidence?: {
4592
- id: string;
4591
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4593
4592
  label: string;
4594
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4593
+ id: string;
4595
4594
  capture: "at_action" | "historical_lookup" | "fixture";
4596
4595
  locator?: string | undefined;
4597
4596
  }[] | undefined;
4598
4597
  } | {
4599
- summary: string;
4600
4598
  kind: "mission_completed";
4599
+ summary: string;
4601
4600
  outcome: "failed" | "recovered" | "inconclusive";
4602
4601
  evidence?: {
4603
- id: string;
4602
+ kind: "source" | "correction" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4604
4603
  label: string;
4605
- kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4604
+ id: string;
4606
4605
  capture: "at_action" | "historical_lookup" | "fixture";
4607
4606
  locator?: string | undefined;
4608
4607
  }[] | undefined;
4609
4608
  };
4609
+ namespace: string;
4610
4610
  eventId: string;
4611
4611
  occurredAt: string;
4612
4612
  missionId: string;
@@ -7227,7 +7227,10 @@ declare function composeMeetingEpisodeContent(record: MeetingRecord): string;
7227
7227
  /**
7228
7228
  * Write the deterministic episode memory for one meeting. Idempotent: skips
7229
7229
  * when an identical episode already exists. Returns true when a new episode was
7230
- * written. The episode is `active` (a recall anchor, not a trust-gated claim).
7230
+ * written. The episode is `active` (a recall anchor, not a trust-gated claim)
7231
+ * UNLESS its provider-derived title is itself a personal claim — that title
7232
+ * comes from the same ambient audio the summary layer already guards, so it
7233
+ * gets the same treatment rather than riding in on the anchor (#2294).
7231
7234
  */
7232
7235
  declare function writeMeetingEpisodeMemory(record: MeetingRecord, writer: MeetingMemoryWriter): Promise<boolean>;
7233
7236
  /** Write one deterministic episode per record, idempotently. */