@remnic/core 9.54.4 → 9.54.5

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 (526) hide show
  1. package/dist/access-admin-ops-surface.d.ts +12 -11
  2. package/dist/access-admin-ops-surface.js +46 -44
  3. package/dist/access-authorization-probe.d.ts +12 -11
  4. package/dist/access-authorization-probe.js +47 -45
  5. package/dist/access-boundary.d.ts +12 -11
  6. package/dist/access-boundary.js +46 -44
  7. package/dist/access-cli.js +92 -90
  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 +12 -11
  11. package/dist/access-extraction-force-flush.js +46 -44
  12. package/dist/access-health-types.d.ts +1 -1
  13. package/dist/access-http-lcm-compaction.d.ts +12 -11
  14. package/dist/access-http-lifecycle-flush.d.ts +12 -11
  15. package/dist/access-http-offline-stream.d.ts +12 -11
  16. package/dist/access-http-query.js +46 -44
  17. package/dist/access-http.d.ts +12 -11
  18. package/dist/access-http.js +56 -54
  19. package/dist/access-identity-continuity-surface.d.ts +9 -9
  20. package/dist/access-identity-continuity-surface.js +46 -44
  21. package/dist/access-lcm-surface.d.ts +12 -11
  22. package/dist/access-lcm-surface.js +46 -44
  23. package/dist/access-mcp.d.ts +12 -11
  24. package/dist/access-mcp.js +52 -50
  25. package/dist/access-memory-search-fanout.d.ts +22 -2
  26. package/dist/access-memory-search-fanout.js +1 -1
  27. package/dist/{access-namespace-preflight-C7n4tgWC.d.ts → access-namespace-preflight-BdHlGd_T.d.ts} +1 -1
  28. package/dist/access-namespace-preflight.d.ts +3 -3
  29. package/dist/access-namespace-preflight.js +46 -44
  30. package/dist/access-observe-write-surface.d.ts +12 -11
  31. package/dist/access-observe-write-surface.js +46 -44
  32. package/dist/access-offline-manifest.d.ts +10 -9
  33. package/dist/access-offline-manifest.js +12 -10
  34. package/dist/access-operations-batch.js +48 -46
  35. package/dist/access-operations.d.ts +15 -14
  36. package/dist/access-operations.js +51 -49
  37. package/dist/access-recall-concurrency.d.ts +12 -11
  38. package/dist/access-recall-concurrency.js +46 -44
  39. package/dist/access-recall-response.d.ts +12 -11
  40. package/dist/access-recall-response.js +46 -44
  41. package/dist/access-recall-surface.d.ts +12 -11
  42. package/dist/access-recall-surface.js +46 -44
  43. package/dist/access-schema.d.ts +90 -90
  44. package/dist/access-schema.js +3 -2
  45. package/dist/{access-service-CXvbxLK-.d.ts → access-service-DL7X9hrg.d.ts} +7 -7
  46. package/dist/access-service-helpers.d.ts +12 -11
  47. package/dist/access-service.d.ts +12 -11
  48. package/dist/access-service.js +46 -44
  49. package/dist/access-surface-catalog.d.ts +12 -11
  50. package/dist/access-wearables-meetings-surface.d.ts +3 -3
  51. package/dist/action-confidence.d.ts +1 -1
  52. package/dist/active-memory-bridge.d.ts +13 -1
  53. package/dist/active-memory-bridge.js +6 -1
  54. package/dist/active-recall.d.ts +1 -1
  55. package/dist/active-recall.js +3 -2
  56. package/dist/active-recall.js.map +1 -1
  57. package/dist/adapters/index.js +4 -4
  58. package/dist/adapters/registry.js +2 -2
  59. package/dist/ambient-provenance.d.ts +1 -1
  60. package/dist/artifact-search.d.ts +1 -1
  61. package/dist/behavior-learner.d.ts +1 -1
  62. package/dist/behavior-signals.d.ts +1 -1
  63. package/dist/bootstrap.d.ts +9 -9
  64. package/dist/briefing.d.ts +2 -2
  65. package/dist/briefing.js +30 -9
  66. package/dist/buffer-surprise-report.d.ts +1 -1
  67. package/dist/buffer-turn-helpers.d.ts +1 -1
  68. package/dist/buffer.d.ts +2 -2
  69. package/dist/buffer.js +3 -3
  70. package/dist/bulk-import/index.d.ts +3 -3
  71. package/dist/calibration.d.ts +1 -1
  72. package/dist/capabilities.d.ts +1 -1
  73. package/dist/{catalog-BOOxl-I2.d.ts → catalog-B90is4d8.d.ts} +1 -1
  74. package/dist/causal-behavior.d.ts +1 -1
  75. package/dist/causal-consolidation.d.ts +1 -1
  76. package/dist/causal-consolidation.js +31 -10
  77. package/dist/causal-consolidation.js.map +1 -1
  78. package/dist/causal-trajectory-graph.d.ts +1 -1
  79. package/dist/{chunk-6LAPLZOS.js → chunk-2DD6ZHOM.js} +8 -3
  80. package/dist/chunk-2DD6ZHOM.js.map +1 -0
  81. package/dist/{chunk-47P3RYZP.js → chunk-2INWPC6E.js} +2 -2
  82. package/dist/{chunk-3CSX3ETE.js → chunk-2LWQSV6A.js} +23 -11
  83. package/dist/chunk-2LWQSV6A.js.map +1 -0
  84. package/dist/{chunk-7BZOBA5J.js → chunk-2PNXOQ4P.js} +69 -11
  85. package/dist/chunk-2PNXOQ4P.js.map +1 -0
  86. package/dist/{chunk-WOPA3SGI.js → chunk-3OTSVCPK.js} +8 -8
  87. package/dist/{chunk-PX2LSHYM.js → chunk-3SXLD5T3.js} +3 -3
  88. package/dist/{chunk-T2JHZWH6.js → chunk-3WGI7F4V.js} +237 -93
  89. package/dist/chunk-3WGI7F4V.js.map +1 -0
  90. package/dist/{chunk-C4ZNGVK3.js → chunk-5JKUSBMX.js} +2 -2
  91. package/dist/{chunk-S75M5ZRK.js → chunk-6LEIWWAF.js} +16 -1
  92. package/dist/chunk-6LEIWWAF.js.map +1 -0
  93. package/dist/{chunk-MAXVH44E.js → chunk-6NNNURLK.js} +4 -4
  94. package/dist/{chunk-LJS7KUPV.js → chunk-6PZGKGAO.js} +2 -2
  95. package/dist/{chunk-YN6ASZUG.js → chunk-6QPI2ITJ.js} +5 -5
  96. package/dist/{chunk-CYF6WVE7.js → chunk-7HG7MGAP.js} +2688 -496
  97. package/dist/chunk-7HG7MGAP.js.map +1 -0
  98. package/dist/{chunk-CGVHPCP2.js → chunk-7Q7JWLQ4.js} +2 -2
  99. package/dist/{chunk-227UFSEQ.js → chunk-7RZJWZ46.js} +5 -5
  100. package/dist/{chunk-JBPKEARU.js → chunk-AU7Q3LSC.js} +4 -4
  101. package/dist/{chunk-PDDTI7IC.js → chunk-B4T3FQMT.js} +1 -1
  102. package/dist/{chunk-UU3G6GUP.js → chunk-BIF4SHMD.js} +1 -1
  103. package/dist/{chunk-UU3G6GUP.js.map → chunk-BIF4SHMD.js.map} +1 -1
  104. package/dist/{chunk-APPFNGX6.js → chunk-BSXGTDVJ.js} +2 -2
  105. package/dist/{chunk-4IIFL7GC.js → chunk-CLKBV3Z3.js} +10 -10
  106. package/dist/{chunk-ZYLC7NFO.js → chunk-CSY44OKU.js} +4 -4
  107. package/dist/{chunk-HLYR2TQL.js → chunk-CUTFSLSD.js} +2 -2
  108. package/dist/{chunk-RDJRFDJY.js → chunk-DBY26JJJ.js} +2 -2
  109. package/dist/{chunk-QWGE2PUH.js → chunk-DDA55IVB.js} +10 -10
  110. package/dist/{chunk-VMMQDEN5.js → chunk-DN2IDKI5.js} +2 -2
  111. package/dist/{chunk-2GFK22OZ.js → chunk-DOOWFDWN.js} +2 -2
  112. package/dist/{chunk-7FGL6CGA.js → chunk-DVYRD4HY.js} +2 -2
  113. package/dist/{chunk-YGLY6QFV.js → chunk-F2Y6I74C.js} +2 -2
  114. package/dist/{chunk-UU7TRFNE.js → chunk-FFEBSFVT.js} +2 -2
  115. package/dist/chunk-HNDIND7P.js +331 -0
  116. package/dist/chunk-HNDIND7P.js.map +1 -0
  117. package/dist/{chunk-NIS256NW.js → chunk-JKW663ZN.js} +2 -2
  118. package/dist/{chunk-G7A5HLUS.js → chunk-KJH6W2I7.js} +2 -2
  119. package/dist/{chunk-IXEBUYO4.js → chunk-KM55SMLG.js} +11 -2
  120. package/dist/{chunk-IXEBUYO4.js.map → chunk-KM55SMLG.js.map} +1 -1
  121. package/dist/{chunk-G2LUMAUF.js → chunk-L7RTUEDG.js} +12 -5
  122. package/dist/chunk-L7RTUEDG.js.map +1 -0
  123. package/dist/chunk-LC2BDILZ.js +57 -0
  124. package/dist/chunk-LC2BDILZ.js.map +1 -0
  125. package/dist/{chunk-JV5YUBIZ.js → chunk-LC3FD4BV.js} +52 -46
  126. package/dist/chunk-LC3FD4BV.js.map +1 -0
  127. package/dist/{chunk-HWRD23DW.js → chunk-LVKYLMSM.js} +3 -3
  128. package/dist/{chunk-RUMNY5DT.js → chunk-MRGJZ75M.js} +6 -2
  129. package/dist/chunk-MRGJZ75M.js.map +1 -0
  130. package/dist/{chunk-ZMYDYNI4.js → chunk-N7CXQ5TA.js} +4 -4
  131. package/dist/{chunk-3JLPGJ43.js → chunk-NGT35IGQ.js} +5 -5
  132. package/dist/{chunk-GUKBW4HL.js → chunk-NQMSEB5D.js} +6 -6
  133. package/dist/{chunk-WRJVB3C2.js → chunk-PO7NXBG2.js} +2 -2
  134. package/dist/{chunk-WM65LU67.js → chunk-QOQQMVR2.js} +2 -2
  135. package/dist/{chunk-QHFV6VNU.js → chunk-QPAQSG3F.js} +2 -2
  136. package/dist/{chunk-UTRO5UJU.js → chunk-QPW3PAIH.js} +5 -1
  137. package/dist/chunk-QPW3PAIH.js.map +1 -0
  138. package/dist/{chunk-6R4G7N4S.js → chunk-QQXWFDRD.js} +128 -74
  139. package/dist/chunk-QQXWFDRD.js.map +1 -0
  140. package/dist/{chunk-UES4BHA2.js → chunk-QTO6BMQZ.js} +2 -2
  141. package/dist/{chunk-THPPCISA.js → chunk-RBII7637.js} +5 -5
  142. package/dist/{chunk-QT2FRYI4.js → chunk-RG426DJO.js} +2 -2
  143. package/dist/{chunk-XUAMCLY4.js → chunk-TKFGFDPJ.js} +17 -13
  144. package/dist/chunk-TKFGFDPJ.js.map +1 -0
  145. package/dist/{chunk-VKXWK44Q.js → chunk-TY6MKIWP.js} +3 -3
  146. package/dist/{chunk-AZM4CCAC.js → chunk-UWJNKGBA.js} +5 -5
  147. package/dist/{chunk-JDZPNCMA.js → chunk-UYOXFFEY.js} +6 -3
  148. package/dist/chunk-UYOXFFEY.js.map +1 -0
  149. package/dist/{chunk-ZPJ4QSGP.js → chunk-VTU5IEKY.js} +2 -2
  150. package/dist/{chunk-RZ4XGKOJ.js → chunk-VYQ4URQB.js} +8 -8
  151. package/dist/{chunk-WDBX6VER.js → chunk-VZRFGJCH.js} +5 -5
  152. package/dist/{chunk-IBKR2TFR.js → chunk-WM5LD6AT.js} +2 -2
  153. package/dist/{chunk-K4QS7LXU.js → chunk-WZWZRZ2V.js} +2 -2
  154. package/dist/{chunk-G4T7L557.js → chunk-XKAR4RF6.js} +2 -2
  155. package/dist/{chunk-DZD576ZU.js → chunk-XSV2YDCJ.js} +2 -2
  156. package/dist/{chunk-G7Z6EENO.js → chunk-YDWPYDML.js} +4 -4
  157. package/dist/{chunk-6HPHEFXT.js → chunk-YKZLOPTC.js} +2 -2
  158. package/dist/{chunk-NH5IR2WM.js → chunk-YR65W7BV.js} +6 -2
  159. package/dist/chunk-YR65W7BV.js.map +1 -0
  160. package/dist/{chunk-GYPQL6XN.js → chunk-Z4N7SVVF.js} +35 -47
  161. package/dist/chunk-Z4N7SVVF.js.map +1 -0
  162. package/dist/{cli-DVUFIa5E.d.ts → cli-jfuZXixq.d.ts} +5 -5
  163. package/dist/cli.d.ts +14 -13
  164. package/dist/cli.js +74 -72
  165. package/dist/coding/pre-action-gate.d.ts +1 -1
  166. package/dist/compounding/engine.d.ts +2 -2
  167. package/dist/compounding/engine.js +30 -9
  168. package/dist/compounding/preference-consolidator.d.ts +1 -1
  169. package/dist/compression-optimizer.d.ts +1 -1
  170. package/dist/config.d.ts +1 -1
  171. package/dist/config.js +3 -2
  172. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  173. package/dist/connectors/codex-materialize-runner.js +30 -9
  174. package/dist/connectors/codex-materialize.d.ts +1 -1
  175. package/dist/connectors/index.d.ts +1 -1
  176. package/dist/connectors/index.js +29 -9
  177. package/dist/consolidation-provenance-check.d.ts +2 -2
  178. package/dist/consolidation-undo.d.ts +2 -2
  179. package/dist/contradiction/index.d.ts +2 -2
  180. package/dist/contradiction/index.js +3 -1
  181. package/dist/contradiction-scan-KCADHXPE.js +20 -0
  182. package/dist/converge-config.d.ts +1 -1
  183. package/dist/convergence-refresh.d.ts +2 -2
  184. package/dist/convergence-refresh.js +32 -11
  185. package/dist/conversation-index/backend.d.ts +1 -1
  186. package/dist/conversation-index/backend.js +2 -2
  187. package/dist/conversation-index/chunker.d.ts +1 -1
  188. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  189. package/dist/conversation-index/indexer.d.ts +1 -1
  190. package/dist/conversation-index/search.d.ts +1 -1
  191. package/dist/corpus-watermark.d.ts +1 -1
  192. package/dist/corpus-watermark.js +21 -20
  193. package/dist/day-summary.d.ts +1 -1
  194. package/dist/delinearize.d.ts +1 -1
  195. package/dist/dependency-propagation-config.d.ts +1 -1
  196. package/dist/{dependency-propagation-delivery-XzF76C9n.d.ts → dependency-propagation-delivery-CTDuAVJc.d.ts} +1 -1
  197. package/dist/direct-answer-wiring.d.ts +1 -1
  198. package/dist/direct-answer.d.ts +1 -1
  199. package/dist/embedding-fallback.d.ts +1 -1
  200. package/dist/enrichment/index.d.ts +1 -1
  201. package/dist/entity-retrieval.d.ts +2 -2
  202. package/dist/entity-retrieval.js +30 -9
  203. package/dist/entity-schema.d.ts +1 -1
  204. package/dist/explicit-capture.d.ts +9 -9
  205. package/dist/explicit-capture.js +6 -4
  206. package/dist/external-wiki-access.d.ts +12 -11
  207. package/dist/external-wiki-access.js +47 -45
  208. package/dist/external-wiki-collection-registration.d.ts +1 -1
  209. package/dist/external-wiki-collection.d.ts +1 -1
  210. package/dist/external-wiki-mcp-tools.d.ts +12 -11
  211. package/dist/extraction-error-classification.d.ts +1 -1
  212. package/dist/extraction-faithfulness.d.ts +1 -1
  213. package/dist/extraction-judge-telemetry.d.ts +1 -1
  214. package/dist/extraction-judge-training.d.ts +1 -1
  215. package/dist/extraction-judge.d.ts +1 -1
  216. package/dist/extraction-liveness.d.ts +1 -1
  217. package/dist/extraction-normalization.d.ts +1 -1
  218. package/dist/extraction-prompt.d.ts +1 -1
  219. package/dist/extraction-source-grounding-rules.d.ts +1 -1
  220. package/dist/extraction-source-grounding.d.ts +1 -1
  221. package/dist/extraction.d.ts +1 -1
  222. package/dist/extraction.js +29 -13
  223. package/dist/fallback-llm.d.ts +1 -1
  224. package/dist/{first-start-migration-626C5554.js → first-start-migration-LMMZFLKK.js} +13 -5
  225. package/dist/first-start-migration-LMMZFLKK.js.map +1 -0
  226. package/dist/graph-dashboard-diff.d.ts +1 -1
  227. package/dist/graph-dashboard-key.d.ts +1 -1
  228. package/dist/graph-dashboard-parser.d.ts +1 -1
  229. package/dist/graph-edge-reinforcement.d.ts +1 -1
  230. package/dist/graph-path-reconstruction.d.ts +1 -1
  231. package/dist/graph-path-scoring.d.ts +1 -1
  232. package/dist/graph-snapshot.d.ts +1 -1
  233. package/dist/graph.d.ts +1 -1
  234. package/dist/harmonic-retrieval.js +1 -1
  235. package/dist/importance.d.ts +1 -1
  236. package/dist/importers/index.d.ts +1 -1
  237. package/dist/in-flight-reads.d.ts +1 -1
  238. package/dist/index.d.ts +1439 -716
  239. package/dist/index.js +207 -121
  240. package/dist/intent.d.ts +1 -1
  241. package/dist/lcm/engine.d.ts +1 -1
  242. package/dist/lcm/engine.js +2 -2
  243. package/dist/lcm/index.d.ts +1 -1
  244. package/dist/lcm/index.js +5 -5
  245. package/dist/lcm/tools.d.ts +1 -1
  246. package/dist/lifecycle.d.ts +1 -1
  247. package/dist/live-connectors-runner.d.ts +1 -1
  248. package/dist/local-llm.d.ts +1 -1
  249. package/dist/local-model-endpoint.d.ts +1 -1
  250. package/dist/maintenance/memory-governance.d.ts +1 -1
  251. package/dist/maintenance/memory-governance.js +30 -9
  252. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
  253. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +30 -9
  254. package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
  255. package/dist/maintenance/rebuild-memory-projection.js +31 -10
  256. package/dist/{maintenance-BJzNIKBE.d.ts → maintenance-heMZSq7G.d.ts} +3 -3
  257. package/dist/mcp-memory-inspector-app.d.ts +12 -11
  258. package/dist/memory-action-policy.d.ts +1 -1
  259. package/dist/memory-cache.d.ts +1 -1
  260. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  261. package/dist/memory-projection-mutations.js +2 -2
  262. package/dist/memory-projection-store.d.ts +6 -2
  263. package/dist/memory-projection-store.js +1 -1
  264. package/dist/memory-provenance.d.ts +1 -1
  265. package/dist/memory-snapshot.d.ts +1 -1
  266. package/dist/memory-worth-outcomes.d.ts +2 -2
  267. package/dist/models-json.d.ts +1 -1
  268. package/dist/namespaces/migrate.d.ts +3 -3
  269. package/dist/namespaces/migrate.js +20 -19
  270. package/dist/namespaces/principal.d.ts +1 -1
  271. package/dist/namespaces/search.d.ts +1 -1
  272. package/dist/namespaces/search.js +6 -6
  273. package/dist/namespaces/storage.d.ts +3 -3
  274. package/dist/namespaces/storage.js +30 -9
  275. package/dist/native-knowledge.d.ts +1 -1
  276. package/dist/offline-sync-file-io.d.ts +20 -0
  277. package/dist/offline-sync-file-io.js +18 -0
  278. package/dist/offline-sync-file-io.js.map +1 -0
  279. package/dist/offline-sync-impression-drain.d.ts +1 -1
  280. package/dist/offline-sync-impression-drain.js +5 -5
  281. package/dist/offline-sync.d.ts +8 -6
  282. package/dist/offline-sync.js +2 -1
  283. package/dist/operator-doctor-corpus.d.ts +1 -1
  284. package/dist/operator-doctor-corpus.js +22 -21
  285. package/dist/operator-doctor-replica.d.ts +1 -1
  286. package/dist/operator-toolkit.d.ts +3 -3
  287. package/dist/operator-toolkit.js +34 -32
  288. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  289. package/dist/orchestration/maintenance.d.ts +4 -4
  290. package/dist/orchestration/maintenance.js +35 -15
  291. package/dist/{orchestrator-BiXgBJBQ.d.ts → orchestrator-BQQPsSjs.d.ts} +11 -8
  292. package/dist/orchestrator.d.ts +9 -9
  293. package/dist/orchestrator.js +93 -91
  294. package/dist/patterns-cli.d.ts +1 -1
  295. package/dist/{pipeline-sz_dcuLg.d.ts → pipeline-DFfmsnGk.d.ts} +1 -1
  296. package/dist/policy-runtime.d.ts +1 -1
  297. package/dist/proactive-contention.d.ts +1 -1
  298. package/dist/provenance.d.ts +1 -1
  299. package/dist/{purge-533FZLS4.js → purge-GB7PZHT2.js} +2 -2
  300. package/dist/{qmd-eAWObK4M.d.ts → qmd-BF5bcVRs.d.ts} +1 -1
  301. package/dist/qmd-preflight.d.ts +2 -2
  302. package/dist/qmd-recall-cache.d.ts +1 -1
  303. package/dist/qmd.d.ts +2 -2
  304. package/dist/recall-concurrency-config.d.ts +1 -1
  305. package/dist/recall-disclosure-escalation.d.ts +1 -1
  306. package/dist/recall-explain-renderer.d.ts +1 -1
  307. package/dist/recall-explain-renderer.js +3 -3
  308. package/dist/recall-memory-map.d.ts +1 -1
  309. package/dist/recall-planner-llm.d.ts +1 -1
  310. package/dist/recall-state.d.ts +1 -1
  311. package/dist/recall-tag-filter.d.ts +1 -1
  312. package/dist/recall-timings.d.ts +1 -1
  313. package/dist/recall-xray-cli.d.ts +1 -1
  314. package/dist/recall-xray-cli.js +4 -4
  315. package/dist/recall-xray-renderer.d.ts +1 -1
  316. package/dist/recall-xray-renderer.js +3 -3
  317. package/dist/recall-xray.d.ts +1 -1
  318. package/dist/recall-xray.js +2 -2
  319. package/dist/reconcile/cursor.d.ts +2 -1
  320. package/dist/reconcile/manifest.d.ts +2 -1
  321. package/dist/reconcile/manifest.js +6 -5
  322. package/dist/reconcile/plan.d.ts +2 -1
  323. package/dist/reconcile/plan.js +3 -2
  324. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  325. package/dist/replay/normalizers/claude.d.ts +1 -1
  326. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  327. package/dist/replay/normalizers/shared.d.ts +1 -1
  328. package/dist/replay/runner.d.ts +1 -1
  329. package/dist/replay/types.d.ts +1 -1
  330. package/dist/replica-divergence.d.ts +1 -1
  331. package/dist/replica-peers-config.d.ts +1 -1
  332. package/dist/resolve-auth-token.d.ts +1 -1
  333. package/dist/resume-bundles.js +4 -3
  334. package/dist/retrieval-agents.d.ts +2 -2
  335. package/dist/retrieval-tiers.d.ts +1 -1
  336. package/dist/routing/engine.d.ts +1 -1
  337. package/dist/routing/store.d.ts +1 -1
  338. package/dist/salvage-envelope.d.ts +1 -1
  339. package/dist/schemas.d.ts +138 -138
  340. package/dist/{scope-profiles-BBQsXuyj.d.ts → scope-profiles-CbUOsE_E.d.ts} +1 -1
  341. package/dist/search/embed-helper.d.ts +1 -1
  342. package/dist/search/factory.d.ts +1 -1
  343. package/dist/search/factory.js +4 -4
  344. package/dist/search/index.d.ts +1 -1
  345. package/dist/search/index.js +6 -6
  346. package/dist/search/lancedb-backend.d.ts +1 -1
  347. package/dist/search/meilisearch-backend.d.ts +1 -1
  348. package/dist/search/noop-backend.d.ts +1 -1
  349. package/dist/search/orama-backend.d.ts +1 -1
  350. package/dist/search/port.d.ts +1 -1
  351. package/dist/search/remote-backend.d.ts +1 -1
  352. package/dist/{semantic-consolidation-HD8RkzVA.d.ts → semantic-consolidation-DAB3xdKM.d.ts} +1 -1
  353. package/dist/semantic-consolidation.d.ts +2 -2
  354. package/dist/semantic-consolidation.js +31 -10
  355. package/dist/semantic-rule-promotion.js +30 -9
  356. package/dist/semantic-rule-verifier.d.ts +1 -1
  357. package/dist/semantic-rule-verifier.js +30 -9
  358. package/dist/{service-DIrtHHEg.d.ts → service-DGKg2O6r.d.ts} +2 -2
  359. package/dist/session-observer-bands.d.ts +1 -1
  360. package/dist/session-observer-state.d.ts +1 -1
  361. package/dist/shared-context/manager.d.ts +9 -9
  362. package/dist/signal.d.ts +1 -1
  363. package/dist/source-agent-qualifier.d.ts +1 -1
  364. package/dist/source-agent-qualifier.js +28 -12
  365. package/dist/{storage-DqCzXi56.d.ts → storage-CC1jKcWg.d.ts} +46 -13
  366. package/dist/storage.d.ts +2 -2
  367. package/dist/storage.js +30 -9
  368. package/dist/summarizer.d.ts +1 -1
  369. package/dist/summary-snapshot.d.ts +1 -1
  370. package/dist/temporal-supersession.d.ts +2 -2
  371. package/dist/temporal-timeline-recall.d.ts +1 -1
  372. package/dist/temporal-validity.d.ts +1 -1
  373. package/dist/threading.d.ts +1 -1
  374. package/dist/tier-migration.d.ts +2 -2
  375. package/dist/tier-routing.d.ts +2 -2
  376. package/dist/tier-routing.js +7 -1
  377. package/dist/{tier-stats-2JCZYEF7.js → tier-stats-JDN6HRNT.js} +8 -2
  378. package/dist/{tier-stats-2JCZYEF7.js.map → tier-stats-JDN6HRNT.js.map} +1 -1
  379. package/dist/topics.d.ts +1 -1
  380. package/dist/transcript.d.ts +1 -1
  381. package/dist/transfer/types.d.ts +66 -66
  382. package/dist/trust-score-stage.d.ts +1 -1
  383. package/dist/trust-score.d.ts +1 -1
  384. package/dist/{types-d_j4vC6N.d.ts → types-BnQza1y8.d.ts} +2 -1
  385. package/dist/types.d.ts +1 -1
  386. package/dist/types.js +1 -1
  387. package/dist/utility-runtime.d.ts +2 -2
  388. package/dist/verified-recall.js +30 -9
  389. package/dist/write-envelope.d.ts +1 -1
  390. package/package.json +2 -2
  391. package/src/access-http.test.ts +31 -0
  392. package/src/access-memory-search-fanout.ts +24 -1
  393. package/src/access-offline-manifest.ts +5 -0
  394. package/src/access-service-namespace.test.ts +14 -0
  395. package/src/access-service-observe-scope.test.ts +2 -0
  396. package/src/access-service-offline-file-content.test.ts +211 -0
  397. package/src/access-service.ts +20 -43
  398. package/src/active-memory-bridge.test.ts +151 -0
  399. package/src/active-memory-bridge.ts +87 -11
  400. package/src/briefing.test.ts +38 -0
  401. package/src/briefing.ts +3 -3
  402. package/src/cli.ts +6 -1
  403. package/src/connectors/codex-materialize-runner.ts +2 -0
  404. package/src/contradiction/contradiction-scan.ts +2 -0
  405. package/src/contradiction/contradiction.test.ts +42 -0
  406. package/src/correction/correction-access-wiring.ts +8 -2
  407. package/src/correction/correction-storage-integration.test.ts +7 -0
  408. package/src/explicit-capture.test.ts +24 -0
  409. package/src/explicit-capture.ts +2 -0
  410. package/src/index.ts +3 -0
  411. package/src/maintenance/first-start-migration.ts +2 -1
  412. package/src/maintenance/memory-governance.test.ts +25 -0
  413. package/src/maintenance/memory-governance.ts +4 -1
  414. package/src/maintenance/pattern-reinforcement.test.ts +20 -0
  415. package/src/maintenance/pattern-reinforcement.ts +2 -1
  416. package/src/maintenance/rebuild-memory-projection.ts +8 -8
  417. package/src/memory-projection-store.ts +25 -27
  418. package/src/offline-sync-file-io.ts +68 -0
  419. package/src/offline-sync.ts +43 -57
  420. package/src/orchestration/consolidation-run.ts +5 -4
  421. package/src/orchestration/contradiction-linking-coordinator.ts +7 -0
  422. package/src/orchestration/contradiction-localization.integration.test.ts +115 -0
  423. package/src/orchestration/lifecycle-policy-coordinator.ts +2 -1
  424. package/src/orchestration/qmd-result-resolver.test.ts +215 -14
  425. package/src/orchestration/qmd-result-resolver.ts +142 -82
  426. package/src/orchestration/recall-search-pipeline.test.ts +41 -0
  427. package/src/orchestration/recall-search-pipeline.ts +12 -0
  428. package/src/orchestration/semantic-consolidation-coordinator.ts +2 -1
  429. package/src/orchestration/tier-migration-coordinator.ts +23 -56
  430. package/src/orchestration/workspace-ops.test.ts +37 -0
  431. package/src/orchestration/workspace-ops.ts +5 -29
  432. package/src/orchestrator.ts +7 -8
  433. package/src/storage/supersession-audit.ts +7 -1
  434. package/src/storage/supersession-side-effects.ts +17 -5
  435. package/src/storage.ts +18 -19
  436. package/src/support-passport/card-projection.test.ts +129 -0
  437. package/src/support-passport/card-projection.ts +287 -0
  438. package/src/support-passport/card-service.test.ts +2462 -0
  439. package/src/support-passport/card-service.ts +1042 -0
  440. package/src/support-passport/contracts.test.ts +143 -0
  441. package/src/support-passport/contracts.ts +136 -0
  442. package/src/support-passport/errors.ts +24 -0
  443. package/src/support-passport/grant-contracts.ts +139 -0
  444. package/src/support-passport/grant-service-cache.test.ts +148 -0
  445. package/src/support-passport/grant-service-cancellation.test.ts +81 -0
  446. package/src/support-passport/grant-service.test.ts +2882 -0
  447. package/src/support-passport/grant-service.ts +364 -0
  448. package/src/support-passport/grant-store-commit-hook.test.ts +123 -0
  449. package/src/support-passport/grant-store-order.test.ts +60 -0
  450. package/src/support-passport/grant-store-path-safety.test.ts +30 -0
  451. package/src/support-passport/grant-store-recovery.test.ts +448 -0
  452. package/src/support-passport/grant-store.ts +902 -0
  453. package/src/support-passport/index.ts +7 -0
  454. package/src/support-passport/offline-sync-guard.ts +230 -0
  455. package/src/support-passport/owner-lock.ts +53 -0
  456. package/src/support-passport/private-file.ts +371 -0
  457. package/src/tier-routing.ts +28 -17
  458. package/src/training-export/converter.test.ts +24 -0
  459. package/src/training-export/converter.ts +2 -0
  460. package/src/types.ts +1 -1
  461. package/src/wearables/service.test.ts +13 -0
  462. package/src/wearables/service.ts +2 -0
  463. package/dist/chunk-3CSX3ETE.js.map +0 -1
  464. package/dist/chunk-6LAPLZOS.js.map +0 -1
  465. package/dist/chunk-6R4G7N4S.js.map +0 -1
  466. package/dist/chunk-7BZOBA5J.js.map +0 -1
  467. package/dist/chunk-CYF6WVE7.js.map +0 -1
  468. package/dist/chunk-G2LUMAUF.js.map +0 -1
  469. package/dist/chunk-GYPQL6XN.js.map +0 -1
  470. package/dist/chunk-JDZPNCMA.js.map +0 -1
  471. package/dist/chunk-JV5YUBIZ.js.map +0 -1
  472. package/dist/chunk-NH5IR2WM.js.map +0 -1
  473. package/dist/chunk-RUMNY5DT.js.map +0 -1
  474. package/dist/chunk-S75M5ZRK.js.map +0 -1
  475. package/dist/chunk-T2JHZWH6.js.map +0 -1
  476. package/dist/chunk-UTRO5UJU.js.map +0 -1
  477. package/dist/chunk-XUAMCLY4.js.map +0 -1
  478. package/dist/contradiction-scan-HYLIRMJ2.js +0 -14
  479. package/dist/first-start-migration-626C5554.js.map +0 -1
  480. /package/dist/{chunk-47P3RYZP.js.map → chunk-2INWPC6E.js.map} +0 -0
  481. /package/dist/{chunk-WOPA3SGI.js.map → chunk-3OTSVCPK.js.map} +0 -0
  482. /package/dist/{chunk-PX2LSHYM.js.map → chunk-3SXLD5T3.js.map} +0 -0
  483. /package/dist/{chunk-C4ZNGVK3.js.map → chunk-5JKUSBMX.js.map} +0 -0
  484. /package/dist/{chunk-MAXVH44E.js.map → chunk-6NNNURLK.js.map} +0 -0
  485. /package/dist/{chunk-LJS7KUPV.js.map → chunk-6PZGKGAO.js.map} +0 -0
  486. /package/dist/{chunk-YN6ASZUG.js.map → chunk-6QPI2ITJ.js.map} +0 -0
  487. /package/dist/{chunk-CGVHPCP2.js.map → chunk-7Q7JWLQ4.js.map} +0 -0
  488. /package/dist/{chunk-227UFSEQ.js.map → chunk-7RZJWZ46.js.map} +0 -0
  489. /package/dist/{chunk-JBPKEARU.js.map → chunk-AU7Q3LSC.js.map} +0 -0
  490. /package/dist/{chunk-PDDTI7IC.js.map → chunk-B4T3FQMT.js.map} +0 -0
  491. /package/dist/{chunk-APPFNGX6.js.map → chunk-BSXGTDVJ.js.map} +0 -0
  492. /package/dist/{chunk-4IIFL7GC.js.map → chunk-CLKBV3Z3.js.map} +0 -0
  493. /package/dist/{chunk-ZYLC7NFO.js.map → chunk-CSY44OKU.js.map} +0 -0
  494. /package/dist/{chunk-HLYR2TQL.js.map → chunk-CUTFSLSD.js.map} +0 -0
  495. /package/dist/{chunk-RDJRFDJY.js.map → chunk-DBY26JJJ.js.map} +0 -0
  496. /package/dist/{chunk-QWGE2PUH.js.map → chunk-DDA55IVB.js.map} +0 -0
  497. /package/dist/{chunk-VMMQDEN5.js.map → chunk-DN2IDKI5.js.map} +0 -0
  498. /package/dist/{chunk-2GFK22OZ.js.map → chunk-DOOWFDWN.js.map} +0 -0
  499. /package/dist/{chunk-7FGL6CGA.js.map → chunk-DVYRD4HY.js.map} +0 -0
  500. /package/dist/{chunk-YGLY6QFV.js.map → chunk-F2Y6I74C.js.map} +0 -0
  501. /package/dist/{chunk-UU7TRFNE.js.map → chunk-FFEBSFVT.js.map} +0 -0
  502. /package/dist/{chunk-NIS256NW.js.map → chunk-JKW663ZN.js.map} +0 -0
  503. /package/dist/{chunk-G7A5HLUS.js.map → chunk-KJH6W2I7.js.map} +0 -0
  504. /package/dist/{chunk-HWRD23DW.js.map → chunk-LVKYLMSM.js.map} +0 -0
  505. /package/dist/{chunk-ZMYDYNI4.js.map → chunk-N7CXQ5TA.js.map} +0 -0
  506. /package/dist/{chunk-3JLPGJ43.js.map → chunk-NGT35IGQ.js.map} +0 -0
  507. /package/dist/{chunk-GUKBW4HL.js.map → chunk-NQMSEB5D.js.map} +0 -0
  508. /package/dist/{chunk-WRJVB3C2.js.map → chunk-PO7NXBG2.js.map} +0 -0
  509. /package/dist/{chunk-WM65LU67.js.map → chunk-QOQQMVR2.js.map} +0 -0
  510. /package/dist/{chunk-QHFV6VNU.js.map → chunk-QPAQSG3F.js.map} +0 -0
  511. /package/dist/{chunk-UES4BHA2.js.map → chunk-QTO6BMQZ.js.map} +0 -0
  512. /package/dist/{chunk-THPPCISA.js.map → chunk-RBII7637.js.map} +0 -0
  513. /package/dist/{chunk-QT2FRYI4.js.map → chunk-RG426DJO.js.map} +0 -0
  514. /package/dist/{chunk-VKXWK44Q.js.map → chunk-TY6MKIWP.js.map} +0 -0
  515. /package/dist/{chunk-AZM4CCAC.js.map → chunk-UWJNKGBA.js.map} +0 -0
  516. /package/dist/{chunk-ZPJ4QSGP.js.map → chunk-VTU5IEKY.js.map} +0 -0
  517. /package/dist/{chunk-RZ4XGKOJ.js.map → chunk-VYQ4URQB.js.map} +0 -0
  518. /package/dist/{chunk-WDBX6VER.js.map → chunk-VZRFGJCH.js.map} +0 -0
  519. /package/dist/{chunk-IBKR2TFR.js.map → chunk-WM5LD6AT.js.map} +0 -0
  520. /package/dist/{chunk-K4QS7LXU.js.map → chunk-WZWZRZ2V.js.map} +0 -0
  521. /package/dist/{chunk-G4T7L557.js.map → chunk-XKAR4RF6.js.map} +0 -0
  522. /package/dist/{chunk-DZD576ZU.js.map → chunk-XSV2YDCJ.js.map} +0 -0
  523. /package/dist/{chunk-G7Z6EENO.js.map → chunk-YDWPYDML.js.map} +0 -0
  524. /package/dist/{chunk-6HPHEFXT.js.map → chunk-YKZLOPTC.js.map} +0 -0
  525. /package/dist/{contradiction-scan-HYLIRMJ2.js.map → contradiction-scan-KCADHXPE.js.map} +0 -0
  526. /package/dist/{purge-533FZLS4.js.map → purge-GB7PZHT2.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -4,8 +4,9 @@ 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-BiXgBJBQ.js';
7
+ export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-BQQPsSjs.js';
8
8
  export { normalizeProjectionPreview, normalizeProjectionTags } from './memory-projection-format.js';
9
+ export { searchWithGenericExclusion } from './access-memory-search-fanout.js';
9
10
  export { ModelCapabilities, ModelRegistry } from './model-registry.js';
10
11
  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';
11
12
  export { EvidencePackItem, EvidencePackOptions, EvidencePackSelectedItem, EvidencePackSelectionReceipt, buildEvidencePack } from './evidence-pack.js';
@@ -14,8 +15,8 @@ export { TargetedFactRecallOptions, buildTargetedFactRecallSection, shouldRecall
14
15
  export { FocusedListRecallOptions, buildFocusedListRecallSection, shouldRecallFocusedListEvidence } from './focused-list-recall.js';
15
16
  export { ResponseGuidanceRecallOptions, buildResponseGuidanceRecallSection, shouldRecallResponseGuidance } from './response-guidance-recall.js';
16
17
  export { EventOrderRecallOptions, buildEventOrderRecallSection, shouldRecallEventOrderEvidence } from './event-order-recall.js';
17
- import { S as StorageManager, a as MeetingRecordStore } from './storage-DqCzXi56.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-DqCzXi56.js';
18
+ import { S as StorageManager, a as MeetingRecordStore } from './storage-CC1jKcWg.js';
19
+ 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-CC1jKcWg.js';
19
20
  import { SealedMemoryEnvelope } from './write-envelope.js';
20
21
  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
22
  export { HostEmbeddingInputType, HostEmbeddingProvider, getHostEmbeddingProvider, normalizeHostEmbeddingVector, registerHostEmbeddingProvider } from './host-embedding-provider.js';
@@ -24,13 +25,13 @@ export { CodexCliFallbackConfig, CodexCliFallbackMessage, CodexCliFallbackOption
24
25
  export { BufferSurpriseProbe, SmartBuffer, TriggerDecision } from './buffer.js';
25
26
  export { ComputeSurpriseOptions, DEFAULT_SURPRISE_K, RecentMemoryLike, computeSurprise } from './buffer-surprise.js';
26
27
  export { BufferSurpriseDistribution, BufferSurpriseReader, BufferSurpriseReportOptions, reportBufferSurpriseDistribution } from './buffer-surprise-report.js';
27
- import { C as CodingContext, bi as CodingModeConfig, ba as FusionConversationInput, bj as FusedSpeaker, bk as FusedSegment, bl as FusedDisagreement, bm as FusionOptions, aZ as WearableConversation, bn as FusionDayResult, P as PluginConfig, bo as CodingKnowledgeConfig, w as MemoryCategory, bp as WearableCleanupSettings, bq as WearableFusionConfig, a_ as WearableSourceSettings, b2 as WearablesConfig, b1 as WearableSourceConnector, br as OffTheRecordMarkerSettings, b6 as WearableCorrectionRule, bs as WearableDayTranscriptMeta, b5 as WearableDayTranscript, aH as ActivitySnapshot, bt as ActivityDayMeta, bu as ActivityDayDigest, aK as ActivitySourceClient, bv as ActivitySourceCheck, bw as ActivitySnapshotPage, aI as ActivityConfig, a5 as ExtractionResult, y as MemoryStatus, aq as ImportanceScore, bx as MeetingsDetectionConfig, b9 as MeetingsDetectionInput, bc as DetectedMeeting, b8 as MeetingsConfig, aO as MeetingRecord, by as MeetingAudioWindow, bz as MeetingAppSpan } from './types-d_j4vC6N.js';
28
- export { bA as ActivityExtractionMode, aJ as ActivitySourceConfig, u as AgentAccessAuthToken, g as BriefingActiveThread, bB as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, bC as BriefingOpenCommitment, i as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bD as BriefingWindow, a7 as BufferSurpriseEvent, bE as BulkImportError, a9 as BulkImportOptions, ab as BulkImportResult, aa as BulkImportSource, bF as BulkImportSourceAdapter, f as CalendarEvent, e as CalendarSource, bG as CodexCompatConfig, bh as ConsolidationObservation, bH as DEFAULT_RECALL_DISCLOSURE, bI as DisagreementKind, E as EntityFile, an as EntityStructuredSection, ao as ExtractedFact, bJ as FusedContribution, bK as FusedConversationProvenance, aN as FusedDayFile, aM as FusedDayMeta, aQ as FusedMeeting, bL as FusedSegmentProvenance, aL as FusedWearableConversation, bM as FusionSegmentInput, G as GatewayConfig, bN as ImportSourceRole, a8 as ImportTurn, bO as ImportTurnValidationIssue, bb as MeetingActivitySnapshot, b7 as MeetingBuildInput, aP as MeetingDetectionSource, bP as MeetingScreenContextEvent, bQ as MeetingSummaryMode, as as MemoryActionEligibilityContext, bR as MemoryActionEligibilitySource, af as MemoryActionType, M as MemoryFile, l as MemoryFrontmatter, bS as MemoryObservation, bT as MemoryScope, bU as RECALL_DISCLOSURE_LEVELS, n as RecallDisclosure, t as SecretRef, bV as SegmentPickReason, bW as WearableAuthCheck, bX as WearableFetchOptions, bY as WearableFetchPage, b0 as WearableMemoryMode, a$ as WearableNativeMemory, bZ as WearableNativeMemoryPage, b4 as WearableSourceStatus, b3 as WearableSyncSummary, b_ as WearableTranscriptSegment, b$ as isImportRole, c0 as isRecallDisclosure, c1 as parseIsoTimestamp, c2 as validateImportTurn } from './types-d_j4vC6N.js';
28
+ import { C as CodingContext, bi as CodingModeConfig, a$ as FusionConversationInput, bj as FusedSpeaker, bk as FusedSegment, bl as FusedDisagreement, bm as FusionOptions, aL as WearableConversation, bn as FusionDayResult, P as PluginConfig, M as MemoryFile, bo as CodingKnowledgeConfig, w as MemoryCategory, bp as WearableCleanupSettings, bq as WearableFusionConfig, aM as WearableSourceSettings, aQ as WearablesConfig, aP as WearableSourceConnector, br as OffTheRecordMarkerSettings, aV as WearableCorrectionRule, bs as WearableDayTranscriptMeta, aT as WearableDayTranscript, aH as ActivitySnapshot, bt as ActivityDayMeta, bu as ActivityDayDigest, aK as ActivitySourceClient, bv as ActivitySourceCheck, bw as ActivitySnapshotPage, aI as ActivityConfig, a5 as ExtractionResult, y as MemoryStatus, aq as ImportanceScore, bx as MeetingsDetectionConfig, a_ as MeetingsDetectionInput, b1 as DetectedMeeting, aX as MeetingsConfig, aZ as MeetingRecord, by as MeetingAudioWindow, bz as MeetingAppSpan } from './types-BnQza1y8.js';
29
+ export { bA as ActivityExtractionMode, aJ as ActivitySourceConfig, u as AgentAccessAuthToken, g as BriefingActiveThread, bB as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, bC as BriefingOpenCommitment, i as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bD as BriefingWindow, a7 as BufferSurpriseEvent, bE as BulkImportError, a9 as BulkImportOptions, ab as BulkImportResult, aa as BulkImportSource, bF as BulkImportSourceAdapter, f as CalendarEvent, e as CalendarSource, bG as CodexCompatConfig, bh as ConsolidationObservation, bH as DEFAULT_RECALL_DISCLOSURE, bI as DisagreementKind, E as EntityFile, an as EntityStructuredSection, ao as ExtractedFact, bJ as FusedContribution, bK as FusedConversationProvenance, b3 as FusedDayFile, b2 as FusedDayMeta, aY as FusedMeeting, bL as FusedSegmentProvenance, aU as FusedWearableConversation, bM as FusionSegmentInput, G as GatewayConfig, bN as ImportSourceRole, a8 as ImportTurn, bO as ImportTurnValidationIssue, b0 as MeetingActivitySnapshot, aW as MeetingBuildInput, b4 as MeetingDetectionSource, bP as MeetingScreenContextEvent, bQ as MeetingSummaryMode, as as MemoryActionEligibilityContext, bR as MemoryActionEligibilitySource, af as MemoryActionType, l as MemoryFrontmatter, bS as MemoryObservation, bT as MemoryScope, bU as RECALL_DISCLOSURE_LEVELS, n as RecallDisclosure, t as SecretRef, bV as SegmentPickReason, bW as WearableAuthCheck, bX as WearableFetchOptions, bY as WearableFetchPage, aO as WearableMemoryMode, aN as WearableNativeMemory, bZ as WearableNativeMemoryPage, aS as WearableSourceStatus, aR as WearableSyncSummary, b_ as WearableTranscriptSegment, b$ as isImportRole, c0 as isRecallDisclosure, c1 as parseIsoTimestamp, c2 as validateImportTurn } from './types-BnQza1y8.js';
29
30
  import { JudgeCandidate, JudgeVerdict } from './extraction-judge.js';
30
31
  export { JudgeBatchResult, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
31
32
  export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
32
- import { f as EngramAccessService } from './access-service-CXvbxLK-.js';
33
- export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, N as computeProcedureStats, O as formatProcedureStatsText } from './access-service-CXvbxLK-.js';
33
+ import { f as EngramAccessService } from './access-service-DL7X9hrg.js';
34
+ export { P as ProcedureStatsConfigSnapshot, J as ProcedureStatsRecent, K as ProcedureStatsReport, L as ProcedureStatusCounts, N as computeProcedureStats, O as formatProcedureStatsText } from './access-service-DL7X9hrg.js';
34
35
  export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
35
36
  export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
36
37
  export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
@@ -38,19 +39,23 @@ export { LcmMessagePartInput, LcmMessagePartKind, LcmMessagePartRow, MessagePart
38
39
  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
40
  export { BuildRetrievedMemoryProvenanceOptions, RetrievedMemoryCorrectionState, RetrievedMemoryProvenance, RetrievedMemorySafety, buildRetrievedMemoryProvenance, normalizeRetrievedMemoryProvenance, summarizeRetrievedMemoryProvenance } from './memory-provenance.js';
40
41
  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-eAWObK4M.js';
42
+ export { Q as QmdClient } from './qmd-BF5bcVRs.js';
42
43
  export { LanceDbBackend } from './search/lancedb-backend.js';
43
44
  export { OramaBackend } from './search/orama-backend.js';
44
45
  export { MeilisearchBackend } from './search/meilisearch-backend.js';
45
46
  export { buildEntityRecallSection } from './entity-retrieval.js';
46
47
  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-BOOxl-I2.js';
48
+ 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-B90is4d8.js';
48
49
  export { SESSION_CHANNEL_TYPE, SessionIdentity, SessionStoragePaths, legacyParserReadbackDir, parseSessionIdentity, sessionStoragePaths } from './session-identity.js';
49
50
  export { storagePathHash } from './storage-paths.js';
50
51
  export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
51
52
  export { EngramAccessHttpServer, RemnicAdminConfigPatch, RemnicAdminControls, RemnicAdminDashboardStatus, RemnicAdminFeatureStatus, RemnicAdminHarnessStatus, RemnicAdminModelOption } from './access-http.js';
52
53
  export { EngramMcpServer } from './access-mcp.js';
54
+ import { OfflineSyncExcludeFile } from './offline-sync-file-io.js';
55
+ export { OfflineSyncFileTarget } from './offline-sync-file-io.js';
53
56
  import { z } from 'zod';
57
+ import { FileHandle } from 'node:fs/promises';
58
+ import { withHeldFileLock } from './utils/serialize-mutations.js';
54
59
  import { BoundOperation } from './access-boundary.js';
55
60
  export { OPERATION_NAMES, OperationName } from './access-boundary.js';
56
61
  export { ResolveSecretRefFn, clearAuthTokenSecretCache, isAgentAccessSecretRef, resolveAgentAccessAuthToken } from './resolve-auth-token.js';
@@ -74,9 +79,9 @@ export { CitationBlock, CitationEntry, CitationMetadata, buildCitationGuidance,
74
79
  export { initLogger, log } from './logger.js';
75
80
  export { b as SemanticDedupDecision, a as SemanticDedupHit, S as SemanticDedupLookup, c as SemanticDedupOptions, d as decideSemanticDedup } from './semantic-TddhF0y7.js';
76
81
  export { drainPendingImpressionsForOfflineSync, drainPendingLifecycleForOfflineSync } from './offline-sync-impression-drain.js';
77
- 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';
78
- import { D as DiscoveredExtension } from './semantic-consolidation-HD8RkzVA.js';
79
- export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-HD8RkzVA.js';
82
+ 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, 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';
83
+ import { D as DiscoveredExtension } from './semantic-consolidation-DAB3xdKM.js';
84
+ export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-DAB3xdKM.js';
80
85
  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';
81
86
  import { L as LiveConnector, S as SyncIncrementalResult } from './framework-CNDn2164.js';
82
87
  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';
@@ -91,12 +96,12 @@ import { T as Taxonomy, R as ResolverDecision } from './types-DJhqDJUV.js';
91
96
  export { a as TaxonomyCategory } from './types-DJhqDJUV.js';
92
97
  export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, EnrichmentPipelineConfig, EnrichmentProvider, EnrichmentProviderConfig, EnrichmentProviderRegistry, EnrichmentResult, EntityEnrichmentInput, WebSearchFn, WebSearchProvider, WebSearchProviderOptions, appendAuditEntry, defaultEnrichmentPipelineConfig, readAuditLog, runEnrichmentPipeline } from './enrichment/index.js';
93
98
  export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
94
- export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-sz_dcuLg.js';
95
- export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-DVUFIa5E.js';
96
- 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-DIrtHHEg.js';
97
- 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-DIrtHHEg.js';
98
- import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-BJzNIKBE.js';
99
- 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-BJzNIKBE.js';
99
+ export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-DFfmsnGk.js';
100
+ export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-jfuZXixq.js';
101
+ 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-DGKg2O6r.js';
102
+ 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-DGKg2O6r.js';
103
+ import { A as ActivityStore, a as ActivitySyncRunSummary } from './maintenance-heMZSq7G.js';
104
+ 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-heMZSq7G.js';
100
105
  import { SearchExecutionOptions } from './search/port.js';
101
106
  export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
102
107
  export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
@@ -114,7 +119,7 @@ export { P as PEERS_DIR_NAME, a as appendInteractionLog, b as assertValidPeerId,
114
119
  import { ImportCapsuleResult } from './transfer/capsule-import.js';
115
120
  import { ExportManifestV2, CapsuleParent } from './transfer/types.js';
116
121
  export { CODING_GRAPH_ENGINE_VERSION, CodingGraphEngine, CodingGraphErrorCode, CodingGraphLanguage, CreateCodingGraphEngineOptions, FileIR, ParseFileInput, ParseResult, SymbolIR, TIER_1_LANGUAGES } from './coding/coding-graph-types.js';
117
- export { R as ResolvedScopeProfilePlan } from './scope-profiles-BBQsXuyj.js';
122
+ export { R as ResolvedScopeProfilePlan } from './scope-profiles-CbUOsE_E.js';
118
123
  export { commitPreparedFileAtomically, copyExistingFileToBackup, writeFileAtomically } from './maintenance/atomic-file.js';
119
124
  export { ContinuityImprovementLoop } from './types-continuity.js';
120
125
  export { EngramAccessInputError } from './access-errors.js';
@@ -126,7 +131,6 @@ import './operator-doctor-types.js';
126
131
  import './contradiction-config.js';
127
132
  import './graph-path-scoring-config.js';
128
133
  import './recall-state.js';
129
- import './utils/serialize-mutations.js';
130
134
  import './extraction-faithfulness.js';
131
135
  import './local-llm.js';
132
136
  import './resolve-provider-secret.js';
@@ -162,7 +166,7 @@ import './conversation-index/chunker.js';
162
166
  import './conversation-index/backend.js';
163
167
  import './faiss-adapter-BHecI1fF.js';
164
168
  import './runtime/child-process.js';
165
- import './dependency-propagation-delivery-XzF76C9n.js';
169
+ import './dependency-propagation-delivery-CTDuAVJc.js';
166
170
  import './namespaces/storage.js';
167
171
  import './threading.js';
168
172
  import './graph-444E-DrF.js';
@@ -181,7 +185,7 @@ import './policy-runtime.js';
181
185
  import './profiling.js';
182
186
  import './schemas.js';
183
187
  import './extraction-error-classification.js';
184
- import './access-namespace-preflight-C7n4tgWC.js';
188
+ import './access-namespace-preflight-BdHlGd_T.js';
185
189
  import './recall-explain-renderer.js';
186
190
  import './access-citation.js';
187
191
  import './access-health-types.js';
@@ -893,15 +897,15 @@ declare const RelayEvidenceRefSchema: z.ZodObject<{
893
897
  locator: z.ZodOptional<z.ZodString>;
894
898
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
895
899
  }, "strict", z.ZodTypeAny, {
896
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
897
- label: string;
898
900
  id: string;
901
+ label: string;
902
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
899
903
  capture: "at_action" | "historical_lookup" | "fixture";
900
904
  locator?: string | undefined;
901
905
  }, {
902
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
903
- label: string;
904
906
  id: string;
907
+ label: string;
908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
905
909
  capture: "at_action" | "historical_lookup" | "fixture";
906
910
  locator?: string | undefined;
907
911
  }>;
@@ -918,15 +922,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
918
922
  locator: z.ZodOptional<z.ZodString>;
919
923
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
920
924
  }, "strict", z.ZodTypeAny, {
921
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
922
- label: string;
923
925
  id: string;
926
+ label: string;
927
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
924
928
  capture: "at_action" | "historical_lookup" | "fixture";
925
929
  locator?: string | undefined;
926
930
  }, {
927
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
928
- label: string;
929
931
  id: string;
932
+ label: string;
933
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
930
934
  capture: "at_action" | "historical_lookup" | "fixture";
931
935
  locator?: string | undefined;
932
936
  }>, "many">>;
@@ -934,9 +938,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
934
938
  kind: "mission_started";
935
939
  title: string;
936
940
  evidence: {
937
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
938
- label: string;
939
941
  id: string;
942
+ label: string;
943
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
940
944
  capture: "at_action" | "historical_lookup" | "fixture";
941
945
  locator?: string | undefined;
942
946
  }[];
@@ -948,9 +952,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
948
952
  objective: string;
949
953
  runMode: "replay" | "fixture" | "live";
950
954
  evidence?: {
951
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
952
- label: string;
953
955
  id: string;
956
+ label: string;
957
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
954
958
  capture: "at_action" | "historical_lookup" | "fixture";
955
959
  locator?: string | undefined;
956
960
  }[] | undefined;
@@ -966,15 +970,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
966
970
  locator: z.ZodOptional<z.ZodString>;
967
971
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
968
972
  }, "strict", z.ZodTypeAny, {
969
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
970
- label: string;
971
973
  id: string;
974
+ label: string;
975
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
972
976
  capture: "at_action" | "historical_lookup" | "fixture";
973
977
  locator?: string | undefined;
974
978
  }, {
975
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
976
- label: string;
977
979
  id: string;
980
+ label: string;
981
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
978
982
  capture: "at_action" | "historical_lookup" | "fixture";
979
983
  locator?: string | undefined;
980
984
  }>, "many">>;
@@ -982,32 +986,32 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
982
986
  sessionId: z.ZodString;
983
987
  kind: z.ZodLiteral<"agent_status">;
984
988
  }, "strict", z.ZodTypeAny, {
985
- kind: "agent_status";
986
- status: "failed" | "blocked" | "working" | "complete" | "idle";
987
989
  label: string;
990
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
991
+ kind: "agent_status";
988
992
  role: string;
989
993
  agentId: string;
990
994
  sessionId: string;
991
995
  evidence: {
992
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
993
- label: string;
994
996
  id: string;
997
+ label: string;
998
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
995
999
  capture: "at_action" | "historical_lookup" | "fixture";
996
1000
  locator?: string | undefined;
997
1001
  }[];
998
1002
  detail?: string | undefined;
999
1003
  }, {
1000
- kind: "agent_status";
1001
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1002
1004
  label: string;
1005
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1006
+ kind: "agent_status";
1003
1007
  role: string;
1004
1008
  agentId: string;
1005
1009
  sessionId: string;
1006
1010
  detail?: string | undefined;
1007
1011
  evidence?: {
1008
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1009
- label: string;
1010
1012
  id: string;
1013
+ label: string;
1014
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1011
1015
  capture: "at_action" | "historical_lookup" | "fixture";
1012
1016
  locator?: string | undefined;
1013
1017
  }[] | undefined;
@@ -1021,15 +1025,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1021
1025
  locator: z.ZodOptional<z.ZodString>;
1022
1026
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1023
1027
  }, "strict", z.ZodTypeAny, {
1024
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1025
- label: string;
1026
1028
  id: string;
1029
+ label: string;
1030
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1027
1031
  capture: "at_action" | "historical_lookup" | "fixture";
1028
1032
  locator?: string | undefined;
1029
1033
  }, {
1030
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1031
- label: string;
1032
1034
  id: string;
1035
+ label: string;
1036
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1033
1037
  capture: "at_action" | "historical_lookup" | "fixture";
1034
1038
  locator?: string | undefined;
1035
1039
  }>, "many">>;
@@ -1037,28 +1041,28 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1037
1041
  sessionId: z.ZodString;
1038
1042
  kind: z.ZodLiteral<"agent_output">;
1039
1043
  }, "strict", z.ZodTypeAny, {
1040
- kind: "agent_output";
1041
1044
  summary: string;
1045
+ kind: "agent_output";
1042
1046
  agentId: string;
1043
1047
  sessionId: string;
1044
1048
  evidence: {
1045
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1046
- label: string;
1047
1049
  id: string;
1050
+ label: string;
1051
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1048
1052
  capture: "at_action" | "historical_lookup" | "fixture";
1049
1053
  locator?: string | undefined;
1050
1054
  }[];
1051
1055
  outputId: string;
1052
1056
  }, {
1053
- kind: "agent_output";
1054
1057
  summary: string;
1058
+ kind: "agent_output";
1055
1059
  agentId: string;
1056
1060
  sessionId: string;
1057
1061
  outputId: string;
1058
1062
  evidence?: {
1059
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1060
- label: string;
1061
1063
  id: string;
1064
+ label: string;
1065
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1062
1066
  capture: "at_action" | "historical_lookup" | "fixture";
1063
1067
  locator?: string | undefined;
1064
1068
  }[] | undefined;
@@ -1074,15 +1078,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1074
1078
  locator: z.ZodOptional<z.ZodString>;
1075
1079
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1076
1080
  }, "strict", z.ZodTypeAny, {
1077
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1078
- label: string;
1079
1081
  id: string;
1082
+ label: string;
1083
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1080
1084
  capture: "at_action" | "historical_lookup" | "fixture";
1081
1085
  locator?: string | undefined;
1082
1086
  }, {
1083
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1084
- label: string;
1085
1087
  id: string;
1088
+ label: string;
1089
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1086
1090
  capture: "at_action" | "historical_lookup" | "fixture";
1087
1091
  locator?: string | undefined;
1088
1092
  }>, "many">>;
@@ -1095,9 +1099,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1095
1099
  statement: string;
1096
1100
  sessionId: string;
1097
1101
  evidence: {
1098
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1099
- label: string;
1100
1102
  id: string;
1103
+ label: string;
1104
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1101
1105
  capture: "at_action" | "historical_lookup" | "fixture";
1102
1106
  locator?: string | undefined;
1103
1107
  }[];
@@ -1113,9 +1117,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1113
1117
  decisionId: string;
1114
1118
  confidence?: number | undefined;
1115
1119
  evidence?: {
1116
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1117
- label: string;
1118
1120
  id: string;
1121
+ label: string;
1122
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1119
1123
  capture: "at_action" | "historical_lookup" | "fixture";
1120
1124
  locator?: string | undefined;
1121
1125
  }[] | undefined;
@@ -1132,25 +1136,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1132
1136
  locator: z.ZodOptional<z.ZodString>;
1133
1137
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1134
1138
  }, "strict", z.ZodTypeAny, {
1135
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1136
- label: string;
1137
1139
  id: string;
1140
+ label: string;
1141
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1138
1142
  capture: "at_action" | "historical_lookup" | "fixture";
1139
1143
  locator?: string | undefined;
1140
1144
  }, {
1141
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1142
- label: string;
1143
1145
  id: string;
1146
+ label: string;
1147
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1144
1148
  capture: "at_action" | "historical_lookup" | "fixture";
1145
1149
  locator?: string | undefined;
1146
1150
  }>, "many">>;
1147
1151
  }, "strict", z.ZodTypeAny, {
1148
- kind: "conflict_detected";
1149
1152
  summary: string;
1153
+ kind: "conflict_detected";
1150
1154
  evidence: {
1151
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1152
- label: string;
1153
1155
  id: string;
1156
+ label: string;
1157
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1154
1158
  capture: "at_action" | "historical_lookup" | "fixture";
1155
1159
  locator?: string | undefined;
1156
1160
  }[];
@@ -1158,15 +1162,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1158
1162
  decisionIds: string[];
1159
1163
  agentIds: string[];
1160
1164
  }, {
1161
- kind: "conflict_detected";
1162
1165
  summary: string;
1166
+ kind: "conflict_detected";
1163
1167
  conflictId: string;
1164
1168
  decisionIds: string[];
1165
1169
  agentIds: string[];
1166
1170
  evidence?: {
1167
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1168
- label: string;
1169
1171
  id: string;
1172
+ label: string;
1173
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1170
1174
  capture: "at_action" | "historical_lookup" | "fixture";
1171
1175
  locator?: string | undefined;
1172
1176
  }[] | undefined;
@@ -1186,27 +1190,27 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1186
1190
  locator: z.ZodOptional<z.ZodString>;
1187
1191
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1188
1192
  }, "strict", z.ZodTypeAny, {
1189
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1190
- label: string;
1191
1193
  id: string;
1194
+ label: string;
1195
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1192
1196
  capture: "at_action" | "historical_lookup" | "fixture";
1193
1197
  locator?: string | undefined;
1194
1198
  }, {
1195
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1196
- label: string;
1197
1199
  id: string;
1200
+ label: string;
1201
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1198
1202
  capture: "at_action" | "historical_lookup" | "fixture";
1199
1203
  locator?: string | undefined;
1200
1204
  }>, "many">>;
1201
1205
  }, "strict", z.ZodTypeAny, {
1202
- kind: "test_result";
1203
1206
  summary: string;
1204
1207
  status: "error" | "failed" | "passed";
1208
+ kind: "test_result";
1205
1209
  command: string;
1206
1210
  evidence: {
1207
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1208
- label: string;
1209
1211
  id: string;
1212
+ label: string;
1213
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1210
1214
  capture: "at_action" | "historical_lookup" | "fixture";
1211
1215
  locator?: string | undefined;
1212
1216
  }[];
@@ -1215,17 +1219,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1215
1219
  durationMs?: number | undefined;
1216
1220
  correctionId?: string | undefined;
1217
1221
  }, {
1218
- kind: "test_result";
1219
1222
  summary: string;
1220
1223
  status: "error" | "failed" | "passed";
1224
+ kind: "test_result";
1221
1225
  command: string;
1222
1226
  decisionId: string;
1223
1227
  testId: string;
1224
1228
  durationMs?: number | undefined;
1225
1229
  evidence?: {
1226
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1227
- label: string;
1228
1230
  id: string;
1231
+ label: string;
1232
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1229
1233
  capture: "at_action" | "historical_lookup" | "fixture";
1230
1234
  locator?: string | undefined;
1231
1235
  }[] | undefined;
@@ -1246,26 +1250,26 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1246
1250
  locator: z.ZodOptional<z.ZodString>;
1247
1251
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1248
1252
  }, "strict", z.ZodTypeAny, {
1249
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1250
- label: string;
1251
1253
  id: string;
1254
+ label: string;
1255
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1252
1256
  capture: "at_action" | "historical_lookup" | "fixture";
1253
1257
  locator?: string | undefined;
1254
1258
  }, {
1255
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1256
- label: string;
1257
1259
  id: string;
1260
+ label: string;
1261
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1258
1262
  capture: "at_action" | "historical_lookup" | "fixture";
1259
1263
  locator?: string | undefined;
1260
1264
  }>, "many">>;
1261
1265
  }, "strict", z.ZodTypeAny, {
1262
1266
  kind: "correction_proposed";
1263
- rationale: string;
1264
1267
  statement: string;
1268
+ rationale: string;
1265
1269
  evidence: {
1266
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1267
- label: string;
1268
1270
  id: string;
1271
+ label: string;
1272
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1269
1273
  capture: "at_action" | "historical_lookup" | "fixture";
1270
1274
  locator?: string | undefined;
1271
1275
  }[];
@@ -1276,17 +1280,17 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1276
1280
  proposedBy: string;
1277
1281
  }, {
1278
1282
  kind: "correction_proposed";
1279
- rationale: string;
1280
1283
  statement: string;
1284
+ rationale: string;
1281
1285
  conflictId: string;
1282
1286
  correctionId: string;
1283
1287
  proposedDecisionId: string;
1284
1288
  supersedesDecisionIds: string[];
1285
1289
  proposedBy: string;
1286
1290
  evidence?: {
1287
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1288
- label: string;
1289
1291
  id: string;
1292
+ label: string;
1293
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1290
1294
  capture: "at_action" | "historical_lookup" | "fixture";
1291
1295
  locator?: string | undefined;
1292
1296
  }[] | undefined;
@@ -1298,13 +1302,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1298
1302
  id: z.ZodString;
1299
1303
  label: z.ZodString;
1300
1304
  }, "strict", z.ZodTypeAny, {
1301
- kind: "agent" | "human";
1302
- label: string;
1303
1305
  id: string;
1304
- }, {
1305
- kind: "agent" | "human";
1306
1306
  label: string;
1307
+ kind: "agent" | "human";
1308
+ }, {
1307
1309
  id: string;
1310
+ label: string;
1311
+ kind: "agent" | "human";
1308
1312
  }>;
1309
1313
  note: z.ZodOptional<z.ZodString>;
1310
1314
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1314,47 +1318,47 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1314
1318
  locator: z.ZodOptional<z.ZodString>;
1315
1319
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1316
1320
  }, "strict", z.ZodTypeAny, {
1317
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1318
- label: string;
1319
1321
  id: string;
1322
+ label: string;
1323
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1320
1324
  capture: "at_action" | "historical_lookup" | "fixture";
1321
1325
  locator?: string | undefined;
1322
1326
  }, {
1323
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1324
- label: string;
1325
1327
  id: string;
1328
+ label: string;
1329
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1326
1330
  capture: "at_action" | "historical_lookup" | "fixture";
1327
1331
  locator?: string | undefined;
1328
1332
  }>, "many">>;
1329
1333
  }, "strict", z.ZodTypeAny, {
1330
1334
  kind: "correction_approved";
1331
1335
  evidence: {
1332
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1333
- label: string;
1334
1336
  id: string;
1337
+ label: string;
1338
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1335
1339
  capture: "at_action" | "historical_lookup" | "fixture";
1336
1340
  locator?: string | undefined;
1337
1341
  }[];
1338
1342
  correctionId: string;
1339
1343
  approvedBy: {
1340
- kind: "agent" | "human";
1341
- label: string;
1342
1344
  id: string;
1345
+ label: string;
1346
+ kind: "agent" | "human";
1343
1347
  };
1344
1348
  note?: string | undefined;
1345
1349
  }, {
1346
1350
  kind: "correction_approved";
1347
1351
  correctionId: string;
1348
1352
  approvedBy: {
1349
- kind: "agent" | "human";
1350
- label: string;
1351
1353
  id: string;
1354
+ label: string;
1355
+ kind: "agent" | "human";
1352
1356
  };
1353
1357
  note?: string | undefined;
1354
1358
  evidence?: {
1355
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1356
- label: string;
1357
1359
  id: string;
1360
+ label: string;
1361
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1358
1362
  capture: "at_action" | "historical_lookup" | "fixture";
1359
1363
  locator?: string | undefined;
1360
1364
  }[] | undefined;
@@ -1370,24 +1374,24 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1370
1374
  locator: z.ZodOptional<z.ZodString>;
1371
1375
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1372
1376
  }, "strict", z.ZodTypeAny, {
1373
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1374
- label: string;
1375
1377
  id: string;
1378
+ label: string;
1379
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1376
1380
  capture: "at_action" | "historical_lookup" | "fixture";
1377
1381
  locator?: string | undefined;
1378
1382
  }, {
1379
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1380
- label: string;
1381
1383
  id: string;
1384
+ label: string;
1385
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1382
1386
  capture: "at_action" | "historical_lookup" | "fixture";
1383
1387
  locator?: string | undefined;
1384
1388
  }>, "many">>;
1385
1389
  }, "strict", z.ZodTypeAny, {
1386
1390
  kind: "decision_superseded";
1387
1391
  evidence: {
1388
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1389
- label: string;
1390
1392
  id: string;
1393
+ label: string;
1394
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1391
1395
  capture: "at_action" | "historical_lookup" | "fixture";
1392
1396
  locator?: string | undefined;
1393
1397
  }[];
@@ -1400,9 +1404,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1400
1404
  correctionId: string;
1401
1405
  replacementDecisionId: string;
1402
1406
  evidence?: {
1403
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1404
- label: string;
1405
1407
  id: string;
1408
+ label: string;
1409
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1406
1410
  capture: "at_action" | "historical_lookup" | "fixture";
1407
1411
  locator?: string | undefined;
1408
1412
  }[] | undefined;
@@ -1418,15 +1422,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1418
1422
  locator: z.ZodOptional<z.ZodString>;
1419
1423
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1420
1424
  }, "strict", z.ZodTypeAny, {
1421
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1422
- label: string;
1423
1425
  id: string;
1426
+ label: string;
1427
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1424
1428
  capture: "at_action" | "historical_lookup" | "fixture";
1425
1429
  locator?: string | undefined;
1426
1430
  }, {
1427
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1428
- label: string;
1429
1431
  id: string;
1432
+ label: string;
1433
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1430
1434
  capture: "at_action" | "historical_lookup" | "fixture";
1431
1435
  locator?: string | undefined;
1432
1436
  }>, "many">>;
@@ -1439,9 +1443,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1439
1443
  agentId: string;
1440
1444
  sessionId: string;
1441
1445
  evidence: {
1442
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1443
- label: string;
1444
1446
  id: string;
1447
+ label: string;
1448
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1445
1449
  capture: "at_action" | "historical_lookup" | "fixture";
1446
1450
  locator?: string | undefined;
1447
1451
  }[];
@@ -1457,9 +1461,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1457
1461
  recallReceiptId: string;
1458
1462
  capturedAtAction: boolean;
1459
1463
  evidence?: {
1460
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1461
- label: string;
1462
1464
  id: string;
1465
+ label: string;
1466
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1463
1467
  capture: "at_action" | "historical_lookup" | "fixture";
1464
1468
  locator?: string | undefined;
1465
1469
  }[] | undefined;
@@ -1475,15 +1479,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1475
1479
  locator: z.ZodOptional<z.ZodString>;
1476
1480
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1477
1481
  }, "strict", z.ZodTypeAny, {
1478
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1479
- label: string;
1480
1482
  id: string;
1483
+ label: string;
1484
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1481
1485
  capture: "at_action" | "historical_lookup" | "fixture";
1482
1486
  locator?: string | undefined;
1483
1487
  }, {
1484
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1485
- label: string;
1486
1488
  id: string;
1489
+ label: string;
1490
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1487
1491
  capture: "at_action" | "historical_lookup" | "fixture";
1488
1492
  locator?: string | undefined;
1489
1493
  }>, "many">>;
@@ -1495,9 +1499,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1495
1499
  agentId: string;
1496
1500
  sessionId: string;
1497
1501
  evidence: {
1498
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1499
- label: string;
1500
1502
  id: string;
1503
+ label: string;
1504
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1501
1505
  capture: "at_action" | "historical_lookup" | "fixture";
1502
1506
  locator?: string | undefined;
1503
1507
  }[];
@@ -1514,9 +1518,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1514
1518
  recallReceiptId: string;
1515
1519
  staleDecisionAbsent: boolean;
1516
1520
  evidence?: {
1517
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1518
- label: string;
1519
1521
  id: string;
1522
+ label: string;
1523
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1520
1524
  capture: "at_action" | "historical_lookup" | "fixture";
1521
1525
  locator?: string | undefined;
1522
1526
  }[] | undefined;
@@ -1531,37 +1535,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1531
1535
  locator: z.ZodOptional<z.ZodString>;
1532
1536
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1533
1537
  }, "strict", z.ZodTypeAny, {
1534
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1535
- label: string;
1536
1538
  id: string;
1539
+ label: string;
1540
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1537
1541
  capture: "at_action" | "historical_lookup" | "fixture";
1538
1542
  locator?: string | undefined;
1539
1543
  }, {
1540
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1541
- label: string;
1542
1544
  id: string;
1545
+ label: string;
1546
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1543
1547
  capture: "at_action" | "historical_lookup" | "fixture";
1544
1548
  locator?: string | undefined;
1545
1549
  }>, "many">>;
1546
1550
  }, "strict", z.ZodTypeAny, {
1547
- kind: "mission_completed";
1548
1551
  summary: string;
1552
+ kind: "mission_completed";
1549
1553
  outcome: "failed" | "recovered" | "inconclusive";
1550
1554
  evidence: {
1551
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1552
- label: string;
1553
1555
  id: string;
1556
+ label: string;
1557
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1554
1558
  capture: "at_action" | "historical_lookup" | "fixture";
1555
1559
  locator?: string | undefined;
1556
1560
  }[];
1557
1561
  }, {
1558
- kind: "mission_completed";
1559
1562
  summary: string;
1563
+ kind: "mission_completed";
1560
1564
  outcome: "failed" | "recovered" | "inconclusive";
1561
1565
  evidence?: {
1562
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1563
- label: string;
1564
1566
  id: string;
1567
+ label: string;
1568
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1565
1569
  capture: "at_action" | "historical_lookup" | "fixture";
1566
1570
  locator?: string | undefined;
1567
1571
  }[] | undefined;
@@ -1569,38 +1573,38 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1569
1573
  kind: "mission_started";
1570
1574
  title: string;
1571
1575
  evidence: {
1572
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1573
- label: string;
1574
1576
  id: string;
1577
+ label: string;
1578
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1575
1579
  capture: "at_action" | "historical_lookup" | "fixture";
1576
1580
  locator?: string | undefined;
1577
1581
  }[];
1578
1582
  objective: string;
1579
1583
  runMode: "replay" | "fixture" | "live";
1580
1584
  } | {
1581
- kind: "agent_status";
1582
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1583
1585
  label: string;
1586
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1587
+ kind: "agent_status";
1584
1588
  role: string;
1585
1589
  agentId: string;
1586
1590
  sessionId: string;
1587
1591
  evidence: {
1588
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1589
- label: string;
1590
1592
  id: string;
1593
+ label: string;
1594
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1591
1595
  capture: "at_action" | "historical_lookup" | "fixture";
1592
1596
  locator?: string | undefined;
1593
1597
  }[];
1594
1598
  detail?: string | undefined;
1595
1599
  } | {
1596
- kind: "agent_output";
1597
1600
  summary: string;
1601
+ kind: "agent_output";
1598
1602
  agentId: string;
1599
1603
  sessionId: string;
1600
1604
  evidence: {
1601
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1602
- label: string;
1603
1605
  id: string;
1606
+ label: string;
1607
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1604
1608
  capture: "at_action" | "historical_lookup" | "fixture";
1605
1609
  locator?: string | undefined;
1606
1610
  }[];
@@ -1611,9 +1615,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1611
1615
  statement: string;
1612
1616
  sessionId: string;
1613
1617
  evidence: {
1614
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1615
- label: string;
1616
1618
  id: string;
1619
+ label: string;
1620
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1617
1621
  capture: "at_action" | "historical_lookup" | "fixture";
1618
1622
  locator?: string | undefined;
1619
1623
  }[];
@@ -1621,12 +1625,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1621
1625
  decisionId: string;
1622
1626
  confidence?: number | undefined;
1623
1627
  } | {
1624
- kind: "conflict_detected";
1625
1628
  summary: string;
1629
+ kind: "conflict_detected";
1626
1630
  evidence: {
1627
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1628
- label: string;
1629
1631
  id: string;
1632
+ label: string;
1633
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1630
1634
  capture: "at_action" | "historical_lookup" | "fixture";
1631
1635
  locator?: string | undefined;
1632
1636
  }[];
@@ -1634,14 +1638,14 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1634
1638
  decisionIds: string[];
1635
1639
  agentIds: string[];
1636
1640
  } | {
1637
- kind: "test_result";
1638
1641
  summary: string;
1639
1642
  status: "error" | "failed" | "passed";
1643
+ kind: "test_result";
1640
1644
  command: string;
1641
1645
  evidence: {
1642
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1643
- label: string;
1644
1646
  id: string;
1647
+ label: string;
1648
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1645
1649
  capture: "at_action" | "historical_lookup" | "fixture";
1646
1650
  locator?: string | undefined;
1647
1651
  }[];
@@ -1651,12 +1655,12 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1651
1655
  correctionId?: string | undefined;
1652
1656
  } | {
1653
1657
  kind: "correction_proposed";
1654
- rationale: string;
1655
1658
  statement: string;
1659
+ rationale: string;
1656
1660
  evidence: {
1657
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1658
- label: string;
1659
1661
  id: string;
1662
+ label: string;
1663
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1660
1664
  capture: "at_action" | "historical_lookup" | "fixture";
1661
1665
  locator?: string | undefined;
1662
1666
  }[];
@@ -1668,25 +1672,25 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1668
1672
  } | {
1669
1673
  kind: "correction_approved";
1670
1674
  evidence: {
1671
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1672
- label: string;
1673
1675
  id: string;
1676
+ label: string;
1677
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1674
1678
  capture: "at_action" | "historical_lookup" | "fixture";
1675
1679
  locator?: string | undefined;
1676
1680
  }[];
1677
1681
  correctionId: string;
1678
1682
  approvedBy: {
1679
- kind: "agent" | "human";
1680
- label: string;
1681
1683
  id: string;
1684
+ label: string;
1685
+ kind: "agent" | "human";
1682
1686
  };
1683
1687
  note?: string | undefined;
1684
1688
  } | {
1685
1689
  kind: "decision_superseded";
1686
1690
  evidence: {
1687
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1688
- label: string;
1689
1691
  id: string;
1692
+ label: string;
1693
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1690
1694
  capture: "at_action" | "historical_lookup" | "fixture";
1691
1695
  locator?: string | undefined;
1692
1696
  }[];
@@ -1699,9 +1703,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1699
1703
  agentId: string;
1700
1704
  sessionId: string;
1701
1705
  evidence: {
1702
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1703
- label: string;
1704
1706
  id: string;
1707
+ label: string;
1708
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1705
1709
  capture: "at_action" | "historical_lookup" | "fixture";
1706
1710
  locator?: string | undefined;
1707
1711
  }[];
@@ -1713,9 +1717,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1713
1717
  agentId: string;
1714
1718
  sessionId: string;
1715
1719
  evidence: {
1716
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1717
- label: string;
1718
1720
  id: string;
1721
+ label: string;
1722
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1719
1723
  capture: "at_action" | "historical_lookup" | "fixture";
1720
1724
  locator?: string | undefined;
1721
1725
  }[];
@@ -1724,13 +1728,13 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1724
1728
  recallReceiptId: string;
1725
1729
  staleDecisionAbsent: boolean;
1726
1730
  } | {
1727
- kind: "mission_completed";
1728
1731
  summary: string;
1732
+ kind: "mission_completed";
1729
1733
  outcome: "failed" | "recovered" | "inconclusive";
1730
1734
  evidence: {
1731
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1732
- label: string;
1733
1735
  id: string;
1736
+ label: string;
1737
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1734
1738
  capture: "at_action" | "historical_lookup" | "fixture";
1735
1739
  locator?: string | undefined;
1736
1740
  }[];
@@ -1740,37 +1744,37 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1740
1744
  objective: string;
1741
1745
  runMode: "replay" | "fixture" | "live";
1742
1746
  evidence?: {
1743
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1744
- label: string;
1745
1747
  id: string;
1748
+ label: string;
1749
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1746
1750
  capture: "at_action" | "historical_lookup" | "fixture";
1747
1751
  locator?: string | undefined;
1748
1752
  }[] | undefined;
1749
1753
  } | {
1750
- kind: "agent_status";
1751
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1752
1754
  label: string;
1755
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1756
+ kind: "agent_status";
1753
1757
  role: string;
1754
1758
  agentId: string;
1755
1759
  sessionId: string;
1756
1760
  detail?: string | undefined;
1757
1761
  evidence?: {
1758
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1759
- label: string;
1760
1762
  id: string;
1763
+ label: string;
1764
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1761
1765
  capture: "at_action" | "historical_lookup" | "fixture";
1762
1766
  locator?: string | undefined;
1763
1767
  }[] | undefined;
1764
1768
  } | {
1765
- kind: "agent_output";
1766
1769
  summary: string;
1770
+ kind: "agent_output";
1767
1771
  agentId: string;
1768
1772
  sessionId: string;
1769
1773
  outputId: string;
1770
1774
  evidence?: {
1771
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1772
- label: string;
1773
1775
  id: string;
1776
+ label: string;
1777
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1774
1778
  capture: "at_action" | "historical_lookup" | "fixture";
1775
1779
  locator?: string | undefined;
1776
1780
  }[] | undefined;
@@ -1783,54 +1787,54 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1783
1787
  decisionId: string;
1784
1788
  confidence?: number | undefined;
1785
1789
  evidence?: {
1786
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1787
- label: string;
1788
1790
  id: string;
1791
+ label: string;
1792
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1789
1793
  capture: "at_action" | "historical_lookup" | "fixture";
1790
1794
  locator?: string | undefined;
1791
1795
  }[] | undefined;
1792
1796
  } | {
1793
- kind: "conflict_detected";
1794
1797
  summary: string;
1798
+ kind: "conflict_detected";
1795
1799
  conflictId: string;
1796
1800
  decisionIds: string[];
1797
1801
  agentIds: string[];
1798
1802
  evidence?: {
1799
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1800
- label: string;
1801
1803
  id: string;
1804
+ label: string;
1805
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1802
1806
  capture: "at_action" | "historical_lookup" | "fixture";
1803
1807
  locator?: string | undefined;
1804
1808
  }[] | undefined;
1805
1809
  } | {
1806
- kind: "test_result";
1807
1810
  summary: string;
1808
1811
  status: "error" | "failed" | "passed";
1812
+ kind: "test_result";
1809
1813
  command: string;
1810
1814
  decisionId: string;
1811
1815
  testId: string;
1812
1816
  durationMs?: number | undefined;
1813
1817
  evidence?: {
1814
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1815
- label: string;
1816
1818
  id: string;
1819
+ label: string;
1820
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1817
1821
  capture: "at_action" | "historical_lookup" | "fixture";
1818
1822
  locator?: string | undefined;
1819
1823
  }[] | undefined;
1820
1824
  correctionId?: string | undefined;
1821
1825
  } | {
1822
1826
  kind: "correction_proposed";
1823
- rationale: string;
1824
1827
  statement: string;
1828
+ rationale: string;
1825
1829
  conflictId: string;
1826
1830
  correctionId: string;
1827
1831
  proposedDecisionId: string;
1828
1832
  supersedesDecisionIds: string[];
1829
1833
  proposedBy: string;
1830
1834
  evidence?: {
1831
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1832
- label: string;
1833
1835
  id: string;
1836
+ label: string;
1837
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1834
1838
  capture: "at_action" | "historical_lookup" | "fixture";
1835
1839
  locator?: string | undefined;
1836
1840
  }[] | undefined;
@@ -1838,15 +1842,15 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1838
1842
  kind: "correction_approved";
1839
1843
  correctionId: string;
1840
1844
  approvedBy: {
1841
- kind: "agent" | "human";
1842
- label: string;
1843
1845
  id: string;
1846
+ label: string;
1847
+ kind: "agent" | "human";
1844
1848
  };
1845
1849
  note?: string | undefined;
1846
1850
  evidence?: {
1847
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1848
- label: string;
1849
1851
  id: string;
1852
+ label: string;
1853
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1850
1854
  capture: "at_action" | "historical_lookup" | "fixture";
1851
1855
  locator?: string | undefined;
1852
1856
  }[] | undefined;
@@ -1856,9 +1860,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1856
1860
  correctionId: string;
1857
1861
  replacementDecisionId: string;
1858
1862
  evidence?: {
1859
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1860
- label: string;
1861
1863
  id: string;
1864
+ label: string;
1865
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1862
1866
  capture: "at_action" | "historical_lookup" | "fixture";
1863
1867
  locator?: string | undefined;
1864
1868
  }[] | undefined;
@@ -1871,9 +1875,9 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1871
1875
  recallReceiptId: string;
1872
1876
  capturedAtAction: boolean;
1873
1877
  evidence?: {
1874
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1875
- label: string;
1876
1878
  id: string;
1879
+ label: string;
1880
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1877
1881
  capture: "at_action" | "historical_lookup" | "fixture";
1878
1882
  locator?: string | undefined;
1879
1883
  }[] | undefined;
@@ -1886,20 +1890,20 @@ declare const RelayMissionPayloadSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"k
1886
1890
  recallReceiptId: string;
1887
1891
  staleDecisionAbsent: boolean;
1888
1892
  evidence?: {
1889
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1890
- label: string;
1891
1893
  id: string;
1894
+ label: string;
1895
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1892
1896
  capture: "at_action" | "historical_lookup" | "fixture";
1893
1897
  locator?: string | undefined;
1894
1898
  }[] | undefined;
1895
1899
  } | {
1896
- kind: "mission_completed";
1897
1900
  summary: string;
1901
+ kind: "mission_completed";
1898
1902
  outcome: "failed" | "recovered" | "inconclusive";
1899
1903
  evidence?: {
1900
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1901
- label: string;
1902
1904
  id: string;
1905
+ label: string;
1906
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1903
1907
  capture: "at_action" | "historical_lookup" | "fixture";
1904
1908
  locator?: string | undefined;
1905
1909
  }[] | undefined;
@@ -1920,15 +1924,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1920
1924
  locator: z.ZodOptional<z.ZodString>;
1921
1925
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1922
1926
  }, "strict", z.ZodTypeAny, {
1923
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1924
- label: string;
1925
1927
  id: string;
1928
+ label: string;
1929
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1926
1930
  capture: "at_action" | "historical_lookup" | "fixture";
1927
1931
  locator?: string | undefined;
1928
1932
  }, {
1929
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1930
- label: string;
1931
1933
  id: string;
1934
+ label: string;
1935
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1932
1936
  capture: "at_action" | "historical_lookup" | "fixture";
1933
1937
  locator?: string | undefined;
1934
1938
  }>, "many">>;
@@ -1936,9 +1940,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1936
1940
  kind: "mission_started";
1937
1941
  title: string;
1938
1942
  evidence: {
1939
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1940
- label: string;
1941
1943
  id: string;
1944
+ label: string;
1945
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1942
1946
  capture: "at_action" | "historical_lookup" | "fixture";
1943
1947
  locator?: string | undefined;
1944
1948
  }[];
@@ -1950,9 +1954,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1950
1954
  objective: string;
1951
1955
  runMode: "replay" | "fixture" | "live";
1952
1956
  evidence?: {
1953
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1954
- label: string;
1955
1957
  id: string;
1958
+ label: string;
1959
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1956
1960
  capture: "at_action" | "historical_lookup" | "fixture";
1957
1961
  locator?: string | undefined;
1958
1962
  }[] | undefined;
@@ -1968,15 +1972,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1968
1972
  locator: z.ZodOptional<z.ZodString>;
1969
1973
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
1970
1974
  }, "strict", z.ZodTypeAny, {
1971
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1972
- label: string;
1973
1975
  id: string;
1976
+ label: string;
1977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1974
1978
  capture: "at_action" | "historical_lookup" | "fixture";
1975
1979
  locator?: string | undefined;
1976
1980
  }, {
1977
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1978
- label: string;
1979
1981
  id: string;
1982
+ label: string;
1983
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1980
1984
  capture: "at_action" | "historical_lookup" | "fixture";
1981
1985
  locator?: string | undefined;
1982
1986
  }>, "many">>;
@@ -1984,32 +1988,32 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
1984
1988
  sessionId: z.ZodString;
1985
1989
  kind: z.ZodLiteral<"agent_status">;
1986
1990
  }, "strict", z.ZodTypeAny, {
1987
- kind: "agent_status";
1988
- status: "failed" | "blocked" | "working" | "complete" | "idle";
1989
1991
  label: string;
1992
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
1993
+ kind: "agent_status";
1990
1994
  role: string;
1991
1995
  agentId: string;
1992
1996
  sessionId: string;
1993
1997
  evidence: {
1994
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
1995
- label: string;
1996
1998
  id: string;
1999
+ label: string;
2000
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
1997
2001
  capture: "at_action" | "historical_lookup" | "fixture";
1998
2002
  locator?: string | undefined;
1999
2003
  }[];
2000
2004
  detail?: string | undefined;
2001
2005
  }, {
2002
- kind: "agent_status";
2003
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2004
2006
  label: string;
2007
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2008
+ kind: "agent_status";
2005
2009
  role: string;
2006
2010
  agentId: string;
2007
2011
  sessionId: string;
2008
2012
  detail?: string | undefined;
2009
2013
  evidence?: {
2010
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2011
- label: string;
2012
2014
  id: string;
2015
+ label: string;
2016
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2013
2017
  capture: "at_action" | "historical_lookup" | "fixture";
2014
2018
  locator?: string | undefined;
2015
2019
  }[] | undefined;
@@ -2023,15 +2027,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2023
2027
  locator: z.ZodOptional<z.ZodString>;
2024
2028
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2025
2029
  }, "strict", z.ZodTypeAny, {
2026
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2027
- label: string;
2028
2030
  id: string;
2031
+ label: string;
2032
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2029
2033
  capture: "at_action" | "historical_lookup" | "fixture";
2030
2034
  locator?: string | undefined;
2031
2035
  }, {
2032
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2033
- label: string;
2034
2036
  id: string;
2037
+ label: string;
2038
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2035
2039
  capture: "at_action" | "historical_lookup" | "fixture";
2036
2040
  locator?: string | undefined;
2037
2041
  }>, "many">>;
@@ -2039,28 +2043,28 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2039
2043
  sessionId: z.ZodString;
2040
2044
  kind: z.ZodLiteral<"agent_output">;
2041
2045
  }, "strict", z.ZodTypeAny, {
2042
- kind: "agent_output";
2043
2046
  summary: string;
2047
+ kind: "agent_output";
2044
2048
  agentId: string;
2045
2049
  sessionId: string;
2046
2050
  evidence: {
2047
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2048
- label: string;
2049
2051
  id: string;
2052
+ label: string;
2053
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2050
2054
  capture: "at_action" | "historical_lookup" | "fixture";
2051
2055
  locator?: string | undefined;
2052
2056
  }[];
2053
2057
  outputId: string;
2054
2058
  }, {
2055
- kind: "agent_output";
2056
2059
  summary: string;
2060
+ kind: "agent_output";
2057
2061
  agentId: string;
2058
2062
  sessionId: string;
2059
2063
  outputId: string;
2060
2064
  evidence?: {
2061
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2062
- label: string;
2063
2065
  id: string;
2066
+ label: string;
2067
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2064
2068
  capture: "at_action" | "historical_lookup" | "fixture";
2065
2069
  locator?: string | undefined;
2066
2070
  }[] | undefined;
@@ -2076,15 +2080,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2076
2080
  locator: z.ZodOptional<z.ZodString>;
2077
2081
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2078
2082
  }, "strict", z.ZodTypeAny, {
2079
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2080
- label: string;
2081
2083
  id: string;
2084
+ label: string;
2085
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2082
2086
  capture: "at_action" | "historical_lookup" | "fixture";
2083
2087
  locator?: string | undefined;
2084
2088
  }, {
2085
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2086
- label: string;
2087
2089
  id: string;
2090
+ label: string;
2091
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2088
2092
  capture: "at_action" | "historical_lookup" | "fixture";
2089
2093
  locator?: string | undefined;
2090
2094
  }>, "many">>;
@@ -2097,9 +2101,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2097
2101
  statement: string;
2098
2102
  sessionId: string;
2099
2103
  evidence: {
2100
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2101
- label: string;
2102
2104
  id: string;
2105
+ label: string;
2106
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2103
2107
  capture: "at_action" | "historical_lookup" | "fixture";
2104
2108
  locator?: string | undefined;
2105
2109
  }[];
@@ -2115,9 +2119,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2115
2119
  decisionId: string;
2116
2120
  confidence?: number | undefined;
2117
2121
  evidence?: {
2118
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2119
- label: string;
2120
2122
  id: string;
2123
+ label: string;
2124
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2121
2125
  capture: "at_action" | "historical_lookup" | "fixture";
2122
2126
  locator?: string | undefined;
2123
2127
  }[] | undefined;
@@ -2134,25 +2138,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2134
2138
  locator: z.ZodOptional<z.ZodString>;
2135
2139
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2136
2140
  }, "strict", z.ZodTypeAny, {
2137
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2138
- label: string;
2139
2141
  id: string;
2142
+ label: string;
2143
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2140
2144
  capture: "at_action" | "historical_lookup" | "fixture";
2141
2145
  locator?: string | undefined;
2142
2146
  }, {
2143
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2144
- label: string;
2145
2147
  id: string;
2148
+ label: string;
2149
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2146
2150
  capture: "at_action" | "historical_lookup" | "fixture";
2147
2151
  locator?: string | undefined;
2148
2152
  }>, "many">>;
2149
2153
  }, "strict", z.ZodTypeAny, {
2150
- kind: "conflict_detected";
2151
2154
  summary: string;
2155
+ kind: "conflict_detected";
2152
2156
  evidence: {
2153
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2154
- label: string;
2155
2157
  id: string;
2158
+ label: string;
2159
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2156
2160
  capture: "at_action" | "historical_lookup" | "fixture";
2157
2161
  locator?: string | undefined;
2158
2162
  }[];
@@ -2160,15 +2164,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2160
2164
  decisionIds: string[];
2161
2165
  agentIds: string[];
2162
2166
  }, {
2163
- kind: "conflict_detected";
2164
2167
  summary: string;
2168
+ kind: "conflict_detected";
2165
2169
  conflictId: string;
2166
2170
  decisionIds: string[];
2167
2171
  agentIds: string[];
2168
2172
  evidence?: {
2169
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2170
- label: string;
2171
2173
  id: string;
2174
+ label: string;
2175
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2172
2176
  capture: "at_action" | "historical_lookup" | "fixture";
2173
2177
  locator?: string | undefined;
2174
2178
  }[] | undefined;
@@ -2188,27 +2192,27 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2188
2192
  locator: z.ZodOptional<z.ZodString>;
2189
2193
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2190
2194
  }, "strict", z.ZodTypeAny, {
2191
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2192
- label: string;
2193
2195
  id: string;
2196
+ label: string;
2197
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2194
2198
  capture: "at_action" | "historical_lookup" | "fixture";
2195
2199
  locator?: string | undefined;
2196
2200
  }, {
2197
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2198
- label: string;
2199
2201
  id: string;
2202
+ label: string;
2203
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2200
2204
  capture: "at_action" | "historical_lookup" | "fixture";
2201
2205
  locator?: string | undefined;
2202
2206
  }>, "many">>;
2203
2207
  }, "strict", z.ZodTypeAny, {
2204
- kind: "test_result";
2205
2208
  summary: string;
2206
2209
  status: "error" | "failed" | "passed";
2210
+ kind: "test_result";
2207
2211
  command: string;
2208
2212
  evidence: {
2209
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2210
- label: string;
2211
2213
  id: string;
2214
+ label: string;
2215
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2212
2216
  capture: "at_action" | "historical_lookup" | "fixture";
2213
2217
  locator?: string | undefined;
2214
2218
  }[];
@@ -2217,17 +2221,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2217
2221
  durationMs?: number | undefined;
2218
2222
  correctionId?: string | undefined;
2219
2223
  }, {
2220
- kind: "test_result";
2221
2224
  summary: string;
2222
2225
  status: "error" | "failed" | "passed";
2226
+ kind: "test_result";
2223
2227
  command: string;
2224
2228
  decisionId: string;
2225
2229
  testId: string;
2226
2230
  durationMs?: number | undefined;
2227
2231
  evidence?: {
2228
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2229
- label: string;
2230
2232
  id: string;
2233
+ label: string;
2234
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2231
2235
  capture: "at_action" | "historical_lookup" | "fixture";
2232
2236
  locator?: string | undefined;
2233
2237
  }[] | undefined;
@@ -2248,26 +2252,26 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2248
2252
  locator: z.ZodOptional<z.ZodString>;
2249
2253
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2250
2254
  }, "strict", z.ZodTypeAny, {
2251
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2252
- label: string;
2253
2255
  id: string;
2256
+ label: string;
2257
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2254
2258
  capture: "at_action" | "historical_lookup" | "fixture";
2255
2259
  locator?: string | undefined;
2256
2260
  }, {
2257
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2258
- label: string;
2259
2261
  id: string;
2262
+ label: string;
2263
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2260
2264
  capture: "at_action" | "historical_lookup" | "fixture";
2261
2265
  locator?: string | undefined;
2262
2266
  }>, "many">>;
2263
2267
  }, "strict", z.ZodTypeAny, {
2264
2268
  kind: "correction_proposed";
2265
- rationale: string;
2266
2269
  statement: string;
2270
+ rationale: string;
2267
2271
  evidence: {
2268
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2269
- label: string;
2270
2272
  id: string;
2273
+ label: string;
2274
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2271
2275
  capture: "at_action" | "historical_lookup" | "fixture";
2272
2276
  locator?: string | undefined;
2273
2277
  }[];
@@ -2278,17 +2282,17 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2278
2282
  proposedBy: string;
2279
2283
  }, {
2280
2284
  kind: "correction_proposed";
2281
- rationale: string;
2282
2285
  statement: string;
2286
+ rationale: string;
2283
2287
  conflictId: string;
2284
2288
  correctionId: string;
2285
2289
  proposedDecisionId: string;
2286
2290
  supersedesDecisionIds: string[];
2287
2291
  proposedBy: string;
2288
2292
  evidence?: {
2289
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2290
- label: string;
2291
2293
  id: string;
2294
+ label: string;
2295
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2292
2296
  capture: "at_action" | "historical_lookup" | "fixture";
2293
2297
  locator?: string | undefined;
2294
2298
  }[] | undefined;
@@ -2300,13 +2304,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2300
2304
  id: z.ZodString;
2301
2305
  label: z.ZodString;
2302
2306
  }, "strict", z.ZodTypeAny, {
2303
- kind: "agent" | "human";
2304
- label: string;
2305
2307
  id: string;
2306
- }, {
2307
- kind: "agent" | "human";
2308
2308
  label: string;
2309
+ kind: "agent" | "human";
2310
+ }, {
2309
2311
  id: string;
2312
+ label: string;
2313
+ kind: "agent" | "human";
2310
2314
  }>;
2311
2315
  note: z.ZodOptional<z.ZodString>;
2312
2316
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -2316,47 +2320,47 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2316
2320
  locator: z.ZodOptional<z.ZodString>;
2317
2321
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2318
2322
  }, "strict", z.ZodTypeAny, {
2319
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2320
- label: string;
2321
2323
  id: string;
2324
+ label: string;
2325
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2322
2326
  capture: "at_action" | "historical_lookup" | "fixture";
2323
2327
  locator?: string | undefined;
2324
2328
  }, {
2325
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2326
- label: string;
2327
2329
  id: string;
2330
+ label: string;
2331
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2328
2332
  capture: "at_action" | "historical_lookup" | "fixture";
2329
2333
  locator?: string | undefined;
2330
2334
  }>, "many">>;
2331
2335
  }, "strict", z.ZodTypeAny, {
2332
2336
  kind: "correction_approved";
2333
2337
  evidence: {
2334
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2335
- label: string;
2336
2338
  id: string;
2339
+ label: string;
2340
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2337
2341
  capture: "at_action" | "historical_lookup" | "fixture";
2338
2342
  locator?: string | undefined;
2339
2343
  }[];
2340
2344
  correctionId: string;
2341
2345
  approvedBy: {
2342
- kind: "agent" | "human";
2343
- label: string;
2344
2346
  id: string;
2347
+ label: string;
2348
+ kind: "agent" | "human";
2345
2349
  };
2346
2350
  note?: string | undefined;
2347
2351
  }, {
2348
2352
  kind: "correction_approved";
2349
2353
  correctionId: string;
2350
2354
  approvedBy: {
2351
- kind: "agent" | "human";
2352
- label: string;
2353
2355
  id: string;
2356
+ label: string;
2357
+ kind: "agent" | "human";
2354
2358
  };
2355
2359
  note?: string | undefined;
2356
2360
  evidence?: {
2357
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2358
- label: string;
2359
2361
  id: string;
2362
+ label: string;
2363
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2360
2364
  capture: "at_action" | "historical_lookup" | "fixture";
2361
2365
  locator?: string | undefined;
2362
2366
  }[] | undefined;
@@ -2372,24 +2376,24 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2372
2376
  locator: z.ZodOptional<z.ZodString>;
2373
2377
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2374
2378
  }, "strict", z.ZodTypeAny, {
2375
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2376
- label: string;
2377
2379
  id: string;
2380
+ label: string;
2381
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2378
2382
  capture: "at_action" | "historical_lookup" | "fixture";
2379
2383
  locator?: string | undefined;
2380
2384
  }, {
2381
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2382
- label: string;
2383
2385
  id: string;
2386
+ label: string;
2387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2384
2388
  capture: "at_action" | "historical_lookup" | "fixture";
2385
2389
  locator?: string | undefined;
2386
2390
  }>, "many">>;
2387
2391
  }, "strict", z.ZodTypeAny, {
2388
2392
  kind: "decision_superseded";
2389
2393
  evidence: {
2390
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2391
- label: string;
2392
2394
  id: string;
2395
+ label: string;
2396
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2393
2397
  capture: "at_action" | "historical_lookup" | "fixture";
2394
2398
  locator?: string | undefined;
2395
2399
  }[];
@@ -2402,9 +2406,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2402
2406
  correctionId: string;
2403
2407
  replacementDecisionId: string;
2404
2408
  evidence?: {
2405
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2406
- label: string;
2407
2409
  id: string;
2410
+ label: string;
2411
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2408
2412
  capture: "at_action" | "historical_lookup" | "fixture";
2409
2413
  locator?: string | undefined;
2410
2414
  }[] | undefined;
@@ -2420,15 +2424,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2420
2424
  locator: z.ZodOptional<z.ZodString>;
2421
2425
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2422
2426
  }, "strict", z.ZodTypeAny, {
2423
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2424
- label: string;
2425
2427
  id: string;
2428
+ label: string;
2429
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2426
2430
  capture: "at_action" | "historical_lookup" | "fixture";
2427
2431
  locator?: string | undefined;
2428
2432
  }, {
2429
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2430
- label: string;
2431
2433
  id: string;
2434
+ label: string;
2435
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2432
2436
  capture: "at_action" | "historical_lookup" | "fixture";
2433
2437
  locator?: string | undefined;
2434
2438
  }>, "many">>;
@@ -2441,9 +2445,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2441
2445
  agentId: string;
2442
2446
  sessionId: string;
2443
2447
  evidence: {
2444
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2445
- label: string;
2446
2448
  id: string;
2449
+ label: string;
2450
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2447
2451
  capture: "at_action" | "historical_lookup" | "fixture";
2448
2452
  locator?: string | undefined;
2449
2453
  }[];
@@ -2459,9 +2463,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2459
2463
  recallReceiptId: string;
2460
2464
  capturedAtAction: boolean;
2461
2465
  evidence?: {
2462
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2463
- label: string;
2464
2466
  id: string;
2467
+ label: string;
2468
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2465
2469
  capture: "at_action" | "historical_lookup" | "fixture";
2466
2470
  locator?: string | undefined;
2467
2471
  }[] | undefined;
@@ -2477,15 +2481,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2477
2481
  locator: z.ZodOptional<z.ZodString>;
2478
2482
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2479
2483
  }, "strict", z.ZodTypeAny, {
2480
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2481
- label: string;
2482
2484
  id: string;
2485
+ label: string;
2486
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2483
2487
  capture: "at_action" | "historical_lookup" | "fixture";
2484
2488
  locator?: string | undefined;
2485
2489
  }, {
2486
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2487
- label: string;
2488
2490
  id: string;
2491
+ label: string;
2492
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2489
2493
  capture: "at_action" | "historical_lookup" | "fixture";
2490
2494
  locator?: string | undefined;
2491
2495
  }>, "many">>;
@@ -2497,9 +2501,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2497
2501
  agentId: string;
2498
2502
  sessionId: string;
2499
2503
  evidence: {
2500
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2501
- label: string;
2502
2504
  id: string;
2505
+ label: string;
2506
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2503
2507
  capture: "at_action" | "historical_lookup" | "fixture";
2504
2508
  locator?: string | undefined;
2505
2509
  }[];
@@ -2516,9 +2520,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2516
2520
  recallReceiptId: string;
2517
2521
  staleDecisionAbsent: boolean;
2518
2522
  evidence?: {
2519
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2520
- label: string;
2521
2523
  id: string;
2524
+ label: string;
2525
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2522
2526
  capture: "at_action" | "historical_lookup" | "fixture";
2523
2527
  locator?: string | undefined;
2524
2528
  }[] | undefined;
@@ -2533,37 +2537,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2533
2537
  locator: z.ZodOptional<z.ZodString>;
2534
2538
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
2535
2539
  }, "strict", z.ZodTypeAny, {
2536
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2537
- label: string;
2538
2540
  id: string;
2541
+ label: string;
2542
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2539
2543
  capture: "at_action" | "historical_lookup" | "fixture";
2540
2544
  locator?: string | undefined;
2541
2545
  }, {
2542
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2543
- label: string;
2544
2546
  id: string;
2547
+ label: string;
2548
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2545
2549
  capture: "at_action" | "historical_lookup" | "fixture";
2546
2550
  locator?: string | undefined;
2547
2551
  }>, "many">>;
2548
2552
  }, "strict", z.ZodTypeAny, {
2549
- kind: "mission_completed";
2550
2553
  summary: string;
2554
+ kind: "mission_completed";
2551
2555
  outcome: "failed" | "recovered" | "inconclusive";
2552
2556
  evidence: {
2553
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2554
- label: string;
2555
2557
  id: string;
2558
+ label: string;
2559
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2556
2560
  capture: "at_action" | "historical_lookup" | "fixture";
2557
2561
  locator?: string | undefined;
2558
2562
  }[];
2559
2563
  }, {
2560
- kind: "mission_completed";
2561
2564
  summary: string;
2565
+ kind: "mission_completed";
2562
2566
  outcome: "failed" | "recovered" | "inconclusive";
2563
2567
  evidence?: {
2564
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2565
- label: string;
2566
2568
  id: string;
2569
+ label: string;
2570
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2567
2571
  capture: "at_action" | "historical_lookup" | "fixture";
2568
2572
  locator?: string | undefined;
2569
2573
  }[] | undefined;
@@ -2571,38 +2575,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2571
2575
  kind: "mission_started";
2572
2576
  title: string;
2573
2577
  evidence: {
2574
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2575
- label: string;
2576
2578
  id: string;
2579
+ label: string;
2580
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2577
2581
  capture: "at_action" | "historical_lookup" | "fixture";
2578
2582
  locator?: string | undefined;
2579
2583
  }[];
2580
2584
  objective: string;
2581
2585
  runMode: "replay" | "fixture" | "live";
2582
2586
  } | {
2583
- kind: "agent_status";
2584
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2585
2587
  label: string;
2588
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2589
+ kind: "agent_status";
2586
2590
  role: string;
2587
2591
  agentId: string;
2588
2592
  sessionId: string;
2589
2593
  evidence: {
2590
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2591
- label: string;
2592
2594
  id: string;
2595
+ label: string;
2596
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2593
2597
  capture: "at_action" | "historical_lookup" | "fixture";
2594
2598
  locator?: string | undefined;
2595
2599
  }[];
2596
2600
  detail?: string | undefined;
2597
2601
  } | {
2598
- kind: "agent_output";
2599
2602
  summary: string;
2603
+ kind: "agent_output";
2600
2604
  agentId: string;
2601
2605
  sessionId: string;
2602
2606
  evidence: {
2603
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2604
- label: string;
2605
2607
  id: string;
2608
+ label: string;
2609
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2606
2610
  capture: "at_action" | "historical_lookup" | "fixture";
2607
2611
  locator?: string | undefined;
2608
2612
  }[];
@@ -2613,9 +2617,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2613
2617
  statement: string;
2614
2618
  sessionId: string;
2615
2619
  evidence: {
2616
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2617
- label: string;
2618
2620
  id: string;
2621
+ label: string;
2622
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2619
2623
  capture: "at_action" | "historical_lookup" | "fixture";
2620
2624
  locator?: string | undefined;
2621
2625
  }[];
@@ -2623,12 +2627,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2623
2627
  decisionId: string;
2624
2628
  confidence?: number | undefined;
2625
2629
  } | {
2626
- kind: "conflict_detected";
2627
2630
  summary: string;
2631
+ kind: "conflict_detected";
2628
2632
  evidence: {
2629
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2630
- label: string;
2631
2633
  id: string;
2634
+ label: string;
2635
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2632
2636
  capture: "at_action" | "historical_lookup" | "fixture";
2633
2637
  locator?: string | undefined;
2634
2638
  }[];
@@ -2636,14 +2640,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2636
2640
  decisionIds: string[];
2637
2641
  agentIds: string[];
2638
2642
  } | {
2639
- kind: "test_result";
2640
2643
  summary: string;
2641
2644
  status: "error" | "failed" | "passed";
2645
+ kind: "test_result";
2642
2646
  command: string;
2643
2647
  evidence: {
2644
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2645
- label: string;
2646
2648
  id: string;
2649
+ label: string;
2650
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2647
2651
  capture: "at_action" | "historical_lookup" | "fixture";
2648
2652
  locator?: string | undefined;
2649
2653
  }[];
@@ -2653,12 +2657,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2653
2657
  correctionId?: string | undefined;
2654
2658
  } | {
2655
2659
  kind: "correction_proposed";
2656
- rationale: string;
2657
2660
  statement: string;
2661
+ rationale: string;
2658
2662
  evidence: {
2659
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2660
- label: string;
2661
2663
  id: string;
2664
+ label: string;
2665
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2662
2666
  capture: "at_action" | "historical_lookup" | "fixture";
2663
2667
  locator?: string | undefined;
2664
2668
  }[];
@@ -2670,25 +2674,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2670
2674
  } | {
2671
2675
  kind: "correction_approved";
2672
2676
  evidence: {
2673
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2674
- label: string;
2675
2677
  id: string;
2678
+ label: string;
2679
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2676
2680
  capture: "at_action" | "historical_lookup" | "fixture";
2677
2681
  locator?: string | undefined;
2678
2682
  }[];
2679
2683
  correctionId: string;
2680
2684
  approvedBy: {
2681
- kind: "agent" | "human";
2682
- label: string;
2683
2685
  id: string;
2686
+ label: string;
2687
+ kind: "agent" | "human";
2684
2688
  };
2685
2689
  note?: string | undefined;
2686
2690
  } | {
2687
2691
  kind: "decision_superseded";
2688
2692
  evidence: {
2689
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2690
- label: string;
2691
2693
  id: string;
2694
+ label: string;
2695
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2692
2696
  capture: "at_action" | "historical_lookup" | "fixture";
2693
2697
  locator?: string | undefined;
2694
2698
  }[];
@@ -2701,9 +2705,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2701
2705
  agentId: string;
2702
2706
  sessionId: string;
2703
2707
  evidence: {
2704
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2705
- label: string;
2706
2708
  id: string;
2709
+ label: string;
2710
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2707
2711
  capture: "at_action" | "historical_lookup" | "fixture";
2708
2712
  locator?: string | undefined;
2709
2713
  }[];
@@ -2715,9 +2719,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2715
2719
  agentId: string;
2716
2720
  sessionId: string;
2717
2721
  evidence: {
2718
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2719
- label: string;
2720
2722
  id: string;
2723
+ label: string;
2724
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2721
2725
  capture: "at_action" | "historical_lookup" | "fixture";
2722
2726
  locator?: string | undefined;
2723
2727
  }[];
@@ -2726,13 +2730,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2726
2730
  recallReceiptId: string;
2727
2731
  staleDecisionAbsent: boolean;
2728
2732
  } | {
2729
- kind: "mission_completed";
2730
2733
  summary: string;
2734
+ kind: "mission_completed";
2731
2735
  outcome: "failed" | "recovered" | "inconclusive";
2732
2736
  evidence: {
2733
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2734
- label: string;
2735
2737
  id: string;
2738
+ label: string;
2739
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2736
2740
  capture: "at_action" | "historical_lookup" | "fixture";
2737
2741
  locator?: string | undefined;
2738
2742
  }[];
@@ -2742,37 +2746,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2742
2746
  objective: string;
2743
2747
  runMode: "replay" | "fixture" | "live";
2744
2748
  evidence?: {
2745
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2746
- label: string;
2747
2749
  id: string;
2750
+ label: string;
2751
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2748
2752
  capture: "at_action" | "historical_lookup" | "fixture";
2749
2753
  locator?: string | undefined;
2750
2754
  }[] | undefined;
2751
2755
  } | {
2752
- kind: "agent_status";
2753
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2754
2756
  label: string;
2757
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2758
+ kind: "agent_status";
2755
2759
  role: string;
2756
2760
  agentId: string;
2757
2761
  sessionId: string;
2758
2762
  detail?: string | undefined;
2759
2763
  evidence?: {
2760
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2761
- label: string;
2762
2764
  id: string;
2765
+ label: string;
2766
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2763
2767
  capture: "at_action" | "historical_lookup" | "fixture";
2764
2768
  locator?: string | undefined;
2765
2769
  }[] | undefined;
2766
2770
  } | {
2767
- kind: "agent_output";
2768
2771
  summary: string;
2772
+ kind: "agent_output";
2769
2773
  agentId: string;
2770
2774
  sessionId: string;
2771
2775
  outputId: string;
2772
2776
  evidence?: {
2773
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2774
- label: string;
2775
2777
  id: string;
2778
+ label: string;
2779
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2776
2780
  capture: "at_action" | "historical_lookup" | "fixture";
2777
2781
  locator?: string | undefined;
2778
2782
  }[] | undefined;
@@ -2785,54 +2789,54 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2785
2789
  decisionId: string;
2786
2790
  confidence?: number | undefined;
2787
2791
  evidence?: {
2788
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2789
- label: string;
2790
2792
  id: string;
2793
+ label: string;
2794
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2791
2795
  capture: "at_action" | "historical_lookup" | "fixture";
2792
2796
  locator?: string | undefined;
2793
2797
  }[] | undefined;
2794
2798
  } | {
2795
- kind: "conflict_detected";
2796
2799
  summary: string;
2800
+ kind: "conflict_detected";
2797
2801
  conflictId: string;
2798
2802
  decisionIds: string[];
2799
2803
  agentIds: string[];
2800
2804
  evidence?: {
2801
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2802
- label: string;
2803
2805
  id: string;
2806
+ label: string;
2807
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2804
2808
  capture: "at_action" | "historical_lookup" | "fixture";
2805
2809
  locator?: string | undefined;
2806
2810
  }[] | undefined;
2807
2811
  } | {
2808
- kind: "test_result";
2809
2812
  summary: string;
2810
2813
  status: "error" | "failed" | "passed";
2814
+ kind: "test_result";
2811
2815
  command: string;
2812
2816
  decisionId: string;
2813
2817
  testId: string;
2814
2818
  durationMs?: number | undefined;
2815
2819
  evidence?: {
2816
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2817
- label: string;
2818
2820
  id: string;
2821
+ label: string;
2822
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2819
2823
  capture: "at_action" | "historical_lookup" | "fixture";
2820
2824
  locator?: string | undefined;
2821
2825
  }[] | undefined;
2822
2826
  correctionId?: string | undefined;
2823
2827
  } | {
2824
2828
  kind: "correction_proposed";
2825
- rationale: string;
2826
2829
  statement: string;
2830
+ rationale: string;
2827
2831
  conflictId: string;
2828
2832
  correctionId: string;
2829
2833
  proposedDecisionId: string;
2830
2834
  supersedesDecisionIds: string[];
2831
2835
  proposedBy: string;
2832
2836
  evidence?: {
2833
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2834
- label: string;
2835
2837
  id: string;
2838
+ label: string;
2839
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2836
2840
  capture: "at_action" | "historical_lookup" | "fixture";
2837
2841
  locator?: string | undefined;
2838
2842
  }[] | undefined;
@@ -2840,15 +2844,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2840
2844
  kind: "correction_approved";
2841
2845
  correctionId: string;
2842
2846
  approvedBy: {
2843
- kind: "agent" | "human";
2844
- label: string;
2845
2847
  id: string;
2848
+ label: string;
2849
+ kind: "agent" | "human";
2846
2850
  };
2847
2851
  note?: string | undefined;
2848
2852
  evidence?: {
2849
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2850
- label: string;
2851
2853
  id: string;
2854
+ label: string;
2855
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2852
2856
  capture: "at_action" | "historical_lookup" | "fixture";
2853
2857
  locator?: string | undefined;
2854
2858
  }[] | undefined;
@@ -2858,9 +2862,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2858
2862
  correctionId: string;
2859
2863
  replacementDecisionId: string;
2860
2864
  evidence?: {
2861
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2862
- label: string;
2863
2865
  id: string;
2866
+ label: string;
2867
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2864
2868
  capture: "at_action" | "historical_lookup" | "fixture";
2865
2869
  locator?: string | undefined;
2866
2870
  }[] | undefined;
@@ -2873,9 +2877,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2873
2877
  recallReceiptId: string;
2874
2878
  capturedAtAction: boolean;
2875
2879
  evidence?: {
2876
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2877
- label: string;
2878
2880
  id: string;
2881
+ label: string;
2882
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2879
2883
  capture: "at_action" | "historical_lookup" | "fixture";
2880
2884
  locator?: string | undefined;
2881
2885
  }[] | undefined;
@@ -2888,20 +2892,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2888
2892
  recallReceiptId: string;
2889
2893
  staleDecisionAbsent: boolean;
2890
2894
  evidence?: {
2891
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2892
- label: string;
2893
2895
  id: string;
2896
+ label: string;
2897
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2894
2898
  capture: "at_action" | "historical_lookup" | "fixture";
2895
2899
  locator?: string | undefined;
2896
2900
  }[] | undefined;
2897
2901
  } | {
2898
- kind: "mission_completed";
2899
2902
  summary: string;
2903
+ kind: "mission_completed";
2900
2904
  outcome: "failed" | "recovered" | "inconclusive";
2901
2905
  evidence?: {
2902
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2903
- label: string;
2904
2906
  id: string;
2907
+ label: string;
2908
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2905
2909
  capture: "at_action" | "historical_lookup" | "fixture";
2906
2910
  locator?: string | undefined;
2907
2911
  }[] | undefined;
@@ -2911,38 +2915,38 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2911
2915
  kind: "mission_started";
2912
2916
  title: string;
2913
2917
  evidence: {
2914
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2915
- label: string;
2916
2918
  id: string;
2919
+ label: string;
2920
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2917
2921
  capture: "at_action" | "historical_lookup" | "fixture";
2918
2922
  locator?: string | undefined;
2919
2923
  }[];
2920
2924
  objective: string;
2921
2925
  runMode: "replay" | "fixture" | "live";
2922
2926
  } | {
2923
- kind: "agent_status";
2924
- status: "failed" | "blocked" | "working" | "complete" | "idle";
2925
2927
  label: string;
2928
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
2929
+ kind: "agent_status";
2926
2930
  role: string;
2927
2931
  agentId: string;
2928
2932
  sessionId: string;
2929
2933
  evidence: {
2930
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2931
- label: string;
2932
2934
  id: string;
2935
+ label: string;
2936
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2933
2937
  capture: "at_action" | "historical_lookup" | "fixture";
2934
2938
  locator?: string | undefined;
2935
2939
  }[];
2936
2940
  detail?: string | undefined;
2937
2941
  } | {
2938
- kind: "agent_output";
2939
2942
  summary: string;
2943
+ kind: "agent_output";
2940
2944
  agentId: string;
2941
2945
  sessionId: string;
2942
2946
  evidence: {
2943
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2944
- label: string;
2945
2947
  id: string;
2948
+ label: string;
2949
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2946
2950
  capture: "at_action" | "historical_lookup" | "fixture";
2947
2951
  locator?: string | undefined;
2948
2952
  }[];
@@ -2953,9 +2957,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2953
2957
  statement: string;
2954
2958
  sessionId: string;
2955
2959
  evidence: {
2956
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2957
- label: string;
2958
2960
  id: string;
2961
+ label: string;
2962
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2959
2963
  capture: "at_action" | "historical_lookup" | "fixture";
2960
2964
  locator?: string | undefined;
2961
2965
  }[];
@@ -2963,12 +2967,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2963
2967
  decisionId: string;
2964
2968
  confidence?: number | undefined;
2965
2969
  } | {
2966
- kind: "conflict_detected";
2967
2970
  summary: string;
2971
+ kind: "conflict_detected";
2968
2972
  evidence: {
2969
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2970
- label: string;
2971
2973
  id: string;
2974
+ label: string;
2975
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2972
2976
  capture: "at_action" | "historical_lookup" | "fixture";
2973
2977
  locator?: string | undefined;
2974
2978
  }[];
@@ -2976,14 +2980,14 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2976
2980
  decisionIds: string[];
2977
2981
  agentIds: string[];
2978
2982
  } | {
2979
- kind: "test_result";
2980
2983
  summary: string;
2981
2984
  status: "error" | "failed" | "passed";
2985
+ kind: "test_result";
2982
2986
  command: string;
2983
2987
  evidence: {
2984
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
2985
- label: string;
2986
2988
  id: string;
2989
+ label: string;
2990
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
2987
2991
  capture: "at_action" | "historical_lookup" | "fixture";
2988
2992
  locator?: string | undefined;
2989
2993
  }[];
@@ -2993,12 +2997,12 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
2993
2997
  correctionId?: string | undefined;
2994
2998
  } | {
2995
2999
  kind: "correction_proposed";
2996
- rationale: string;
2997
3000
  statement: string;
3001
+ rationale: string;
2998
3002
  evidence: {
2999
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3000
- label: string;
3001
3003
  id: string;
3004
+ label: string;
3005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3002
3006
  capture: "at_action" | "historical_lookup" | "fixture";
3003
3007
  locator?: string | undefined;
3004
3008
  }[];
@@ -3010,25 +3014,25 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3010
3014
  } | {
3011
3015
  kind: "correction_approved";
3012
3016
  evidence: {
3013
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3014
- label: string;
3015
3017
  id: string;
3018
+ label: string;
3019
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3016
3020
  capture: "at_action" | "historical_lookup" | "fixture";
3017
3021
  locator?: string | undefined;
3018
3022
  }[];
3019
3023
  correctionId: string;
3020
3024
  approvedBy: {
3021
- kind: "agent" | "human";
3022
- label: string;
3023
3025
  id: string;
3026
+ label: string;
3027
+ kind: "agent" | "human";
3024
3028
  };
3025
3029
  note?: string | undefined;
3026
3030
  } | {
3027
3031
  kind: "decision_superseded";
3028
3032
  evidence: {
3029
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3030
- label: string;
3031
3033
  id: string;
3034
+ label: string;
3035
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3032
3036
  capture: "at_action" | "historical_lookup" | "fixture";
3033
3037
  locator?: string | undefined;
3034
3038
  }[];
@@ -3041,9 +3045,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3041
3045
  agentId: string;
3042
3046
  sessionId: string;
3043
3047
  evidence: {
3044
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3045
- label: string;
3046
3048
  id: string;
3049
+ label: string;
3050
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3047
3051
  capture: "at_action" | "historical_lookup" | "fixture";
3048
3052
  locator?: string | undefined;
3049
3053
  }[];
@@ -3055,9 +3059,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3055
3059
  agentId: string;
3056
3060
  sessionId: string;
3057
3061
  evidence: {
3058
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3059
- label: string;
3060
3062
  id: string;
3063
+ label: string;
3064
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3061
3065
  capture: "at_action" | "historical_lookup" | "fixture";
3062
3066
  locator?: string | undefined;
3063
3067
  }[];
@@ -3066,13 +3070,13 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3066
3070
  recallReceiptId: string;
3067
3071
  staleDecisionAbsent: boolean;
3068
3072
  } | {
3069
- kind: "mission_completed";
3070
3073
  summary: string;
3074
+ kind: "mission_completed";
3071
3075
  outcome: "failed" | "recovered" | "inconclusive";
3072
3076
  evidence: {
3073
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3074
- label: string;
3075
3077
  id: string;
3078
+ label: string;
3079
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3076
3080
  capture: "at_action" | "historical_lookup" | "fixture";
3077
3081
  locator?: string | undefined;
3078
3082
  }[];
@@ -3086,37 +3090,37 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3086
3090
  objective: string;
3087
3091
  runMode: "replay" | "fixture" | "live";
3088
3092
  evidence?: {
3089
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3090
- label: string;
3091
3093
  id: string;
3094
+ label: string;
3095
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3092
3096
  capture: "at_action" | "historical_lookup" | "fixture";
3093
3097
  locator?: string | undefined;
3094
3098
  }[] | undefined;
3095
3099
  } | {
3096
- kind: "agent_status";
3097
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3098
3100
  label: string;
3101
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3102
+ kind: "agent_status";
3099
3103
  role: string;
3100
3104
  agentId: string;
3101
3105
  sessionId: string;
3102
3106
  detail?: string | undefined;
3103
3107
  evidence?: {
3104
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3105
- label: string;
3106
3108
  id: string;
3109
+ label: string;
3110
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3107
3111
  capture: "at_action" | "historical_lookup" | "fixture";
3108
3112
  locator?: string | undefined;
3109
3113
  }[] | undefined;
3110
3114
  } | {
3111
- kind: "agent_output";
3112
3115
  summary: string;
3116
+ kind: "agent_output";
3113
3117
  agentId: string;
3114
3118
  sessionId: string;
3115
3119
  outputId: string;
3116
3120
  evidence?: {
3117
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3118
- label: string;
3119
3121
  id: string;
3122
+ label: string;
3123
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3120
3124
  capture: "at_action" | "historical_lookup" | "fixture";
3121
3125
  locator?: string | undefined;
3122
3126
  }[] | undefined;
@@ -3129,54 +3133,54 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3129
3133
  decisionId: string;
3130
3134
  confidence?: number | undefined;
3131
3135
  evidence?: {
3132
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3133
- label: string;
3134
3136
  id: string;
3137
+ label: string;
3138
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3135
3139
  capture: "at_action" | "historical_lookup" | "fixture";
3136
3140
  locator?: string | undefined;
3137
3141
  }[] | undefined;
3138
3142
  } | {
3139
- kind: "conflict_detected";
3140
3143
  summary: string;
3144
+ kind: "conflict_detected";
3141
3145
  conflictId: string;
3142
3146
  decisionIds: string[];
3143
3147
  agentIds: string[];
3144
3148
  evidence?: {
3145
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3146
- label: string;
3147
3149
  id: string;
3150
+ label: string;
3151
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3148
3152
  capture: "at_action" | "historical_lookup" | "fixture";
3149
3153
  locator?: string | undefined;
3150
3154
  }[] | undefined;
3151
3155
  } | {
3152
- kind: "test_result";
3153
3156
  summary: string;
3154
3157
  status: "error" | "failed" | "passed";
3158
+ kind: "test_result";
3155
3159
  command: string;
3156
3160
  decisionId: string;
3157
3161
  testId: string;
3158
3162
  durationMs?: number | undefined;
3159
3163
  evidence?: {
3160
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3161
- label: string;
3162
3164
  id: string;
3165
+ label: string;
3166
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3163
3167
  capture: "at_action" | "historical_lookup" | "fixture";
3164
3168
  locator?: string | undefined;
3165
3169
  }[] | undefined;
3166
3170
  correctionId?: string | undefined;
3167
3171
  } | {
3168
3172
  kind: "correction_proposed";
3169
- rationale: string;
3170
3173
  statement: string;
3174
+ rationale: string;
3171
3175
  conflictId: string;
3172
3176
  correctionId: string;
3173
3177
  proposedDecisionId: string;
3174
3178
  supersedesDecisionIds: string[];
3175
3179
  proposedBy: string;
3176
3180
  evidence?: {
3177
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3178
- label: string;
3179
3181
  id: string;
3182
+ label: string;
3183
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3180
3184
  capture: "at_action" | "historical_lookup" | "fixture";
3181
3185
  locator?: string | undefined;
3182
3186
  }[] | undefined;
@@ -3184,15 +3188,15 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3184
3188
  kind: "correction_approved";
3185
3189
  correctionId: string;
3186
3190
  approvedBy: {
3187
- kind: "agent" | "human";
3188
- label: string;
3189
3191
  id: string;
3192
+ label: string;
3193
+ kind: "agent" | "human";
3190
3194
  };
3191
3195
  note?: string | undefined;
3192
3196
  evidence?: {
3193
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3194
- label: string;
3195
3197
  id: string;
3198
+ label: string;
3199
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3196
3200
  capture: "at_action" | "historical_lookup" | "fixture";
3197
3201
  locator?: string | undefined;
3198
3202
  }[] | undefined;
@@ -3202,9 +3206,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3202
3206
  correctionId: string;
3203
3207
  replacementDecisionId: string;
3204
3208
  evidence?: {
3205
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3206
- label: string;
3207
3209
  id: string;
3210
+ label: string;
3211
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3208
3212
  capture: "at_action" | "historical_lookup" | "fixture";
3209
3213
  locator?: string | undefined;
3210
3214
  }[] | undefined;
@@ -3217,9 +3221,9 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3217
3221
  recallReceiptId: string;
3218
3222
  capturedAtAction: boolean;
3219
3223
  evidence?: {
3220
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3221
- label: string;
3222
3224
  id: string;
3225
+ label: string;
3226
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3223
3227
  capture: "at_action" | "historical_lookup" | "fixture";
3224
3228
  locator?: string | undefined;
3225
3229
  }[] | undefined;
@@ -3232,20 +3236,20 @@ declare const RelayMissionEventInputSchema: z.ZodObject<{
3232
3236
  recallReceiptId: string;
3233
3237
  staleDecisionAbsent: boolean;
3234
3238
  evidence?: {
3235
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3236
- label: string;
3237
3239
  id: string;
3240
+ label: string;
3241
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3238
3242
  capture: "at_action" | "historical_lookup" | "fixture";
3239
3243
  locator?: string | undefined;
3240
3244
  }[] | undefined;
3241
3245
  } | {
3242
- kind: "mission_completed";
3243
3246
  summary: string;
3247
+ kind: "mission_completed";
3244
3248
  outcome: "failed" | "recovered" | "inconclusive";
3245
3249
  evidence?: {
3246
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3247
- label: string;
3248
3250
  id: string;
3251
+ label: string;
3252
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3249
3253
  capture: "at_action" | "historical_lookup" | "fixture";
3250
3254
  locator?: string | undefined;
3251
3255
  }[] | undefined;
@@ -3275,15 +3279,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3275
3279
  locator: z.ZodOptional<z.ZodString>;
3276
3280
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3277
3281
  }, "strict", z.ZodTypeAny, {
3278
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3279
- label: string;
3280
3282
  id: string;
3283
+ label: string;
3284
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3281
3285
  capture: "at_action" | "historical_lookup" | "fixture";
3282
3286
  locator?: string | undefined;
3283
3287
  }, {
3284
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3285
- label: string;
3286
3288
  id: string;
3289
+ label: string;
3290
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3287
3291
  capture: "at_action" | "historical_lookup" | "fixture";
3288
3292
  locator?: string | undefined;
3289
3293
  }>, "many">>;
@@ -3291,9 +3295,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3291
3295
  kind: "mission_started";
3292
3296
  title: string;
3293
3297
  evidence: {
3294
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3295
- label: string;
3296
3298
  id: string;
3299
+ label: string;
3300
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3297
3301
  capture: "at_action" | "historical_lookup" | "fixture";
3298
3302
  locator?: string | undefined;
3299
3303
  }[];
@@ -3305,9 +3309,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3305
3309
  objective: string;
3306
3310
  runMode: "replay" | "fixture" | "live";
3307
3311
  evidence?: {
3308
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3309
- label: string;
3310
3312
  id: string;
3313
+ label: string;
3314
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3311
3315
  capture: "at_action" | "historical_lookup" | "fixture";
3312
3316
  locator?: string | undefined;
3313
3317
  }[] | undefined;
@@ -3323,15 +3327,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3323
3327
  locator: z.ZodOptional<z.ZodString>;
3324
3328
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3325
3329
  }, "strict", z.ZodTypeAny, {
3326
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3327
- label: string;
3328
3330
  id: string;
3331
+ label: string;
3332
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3329
3333
  capture: "at_action" | "historical_lookup" | "fixture";
3330
3334
  locator?: string | undefined;
3331
3335
  }, {
3332
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3333
- label: string;
3334
3336
  id: string;
3337
+ label: string;
3338
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3335
3339
  capture: "at_action" | "historical_lookup" | "fixture";
3336
3340
  locator?: string | undefined;
3337
3341
  }>, "many">>;
@@ -3339,32 +3343,32 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3339
3343
  sessionId: z.ZodString;
3340
3344
  kind: z.ZodLiteral<"agent_status">;
3341
3345
  }, "strict", z.ZodTypeAny, {
3342
- kind: "agent_status";
3343
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3344
3346
  label: string;
3347
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3348
+ kind: "agent_status";
3345
3349
  role: string;
3346
3350
  agentId: string;
3347
3351
  sessionId: string;
3348
3352
  evidence: {
3349
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3350
- label: string;
3351
3353
  id: string;
3354
+ label: string;
3355
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3352
3356
  capture: "at_action" | "historical_lookup" | "fixture";
3353
3357
  locator?: string | undefined;
3354
3358
  }[];
3355
3359
  detail?: string | undefined;
3356
3360
  }, {
3357
- kind: "agent_status";
3358
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3359
3361
  label: string;
3362
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3363
+ kind: "agent_status";
3360
3364
  role: string;
3361
3365
  agentId: string;
3362
3366
  sessionId: string;
3363
3367
  detail?: string | undefined;
3364
3368
  evidence?: {
3365
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3366
- label: string;
3367
3369
  id: string;
3370
+ label: string;
3371
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3368
3372
  capture: "at_action" | "historical_lookup" | "fixture";
3369
3373
  locator?: string | undefined;
3370
3374
  }[] | undefined;
@@ -3378,15 +3382,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3378
3382
  locator: z.ZodOptional<z.ZodString>;
3379
3383
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3380
3384
  }, "strict", z.ZodTypeAny, {
3381
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3382
- label: string;
3383
3385
  id: string;
3386
+ label: string;
3387
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3384
3388
  capture: "at_action" | "historical_lookup" | "fixture";
3385
3389
  locator?: string | undefined;
3386
3390
  }, {
3387
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3388
- label: string;
3389
3391
  id: string;
3392
+ label: string;
3393
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3390
3394
  capture: "at_action" | "historical_lookup" | "fixture";
3391
3395
  locator?: string | undefined;
3392
3396
  }>, "many">>;
@@ -3394,28 +3398,28 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3394
3398
  sessionId: z.ZodString;
3395
3399
  kind: z.ZodLiteral<"agent_output">;
3396
3400
  }, "strict", z.ZodTypeAny, {
3397
- kind: "agent_output";
3398
3401
  summary: string;
3402
+ kind: "agent_output";
3399
3403
  agentId: string;
3400
3404
  sessionId: string;
3401
3405
  evidence: {
3402
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3403
- label: string;
3404
3406
  id: string;
3407
+ label: string;
3408
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3405
3409
  capture: "at_action" | "historical_lookup" | "fixture";
3406
3410
  locator?: string | undefined;
3407
3411
  }[];
3408
3412
  outputId: string;
3409
3413
  }, {
3410
- kind: "agent_output";
3411
3414
  summary: string;
3415
+ kind: "agent_output";
3412
3416
  agentId: string;
3413
3417
  sessionId: string;
3414
3418
  outputId: string;
3415
3419
  evidence?: {
3416
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3417
- label: string;
3418
3420
  id: string;
3421
+ label: string;
3422
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3419
3423
  capture: "at_action" | "historical_lookup" | "fixture";
3420
3424
  locator?: string | undefined;
3421
3425
  }[] | undefined;
@@ -3431,15 +3435,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3431
3435
  locator: z.ZodOptional<z.ZodString>;
3432
3436
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3433
3437
  }, "strict", z.ZodTypeAny, {
3434
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3435
- label: string;
3436
3438
  id: string;
3439
+ label: string;
3440
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3437
3441
  capture: "at_action" | "historical_lookup" | "fixture";
3438
3442
  locator?: string | undefined;
3439
3443
  }, {
3440
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3441
- label: string;
3442
3444
  id: string;
3445
+ label: string;
3446
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3443
3447
  capture: "at_action" | "historical_lookup" | "fixture";
3444
3448
  locator?: string | undefined;
3445
3449
  }>, "many">>;
@@ -3452,9 +3456,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3452
3456
  statement: string;
3453
3457
  sessionId: string;
3454
3458
  evidence: {
3455
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3456
- label: string;
3457
3459
  id: string;
3460
+ label: string;
3461
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3458
3462
  capture: "at_action" | "historical_lookup" | "fixture";
3459
3463
  locator?: string | undefined;
3460
3464
  }[];
@@ -3470,9 +3474,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3470
3474
  decisionId: string;
3471
3475
  confidence?: number | undefined;
3472
3476
  evidence?: {
3473
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3474
- label: string;
3475
3477
  id: string;
3478
+ label: string;
3479
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3476
3480
  capture: "at_action" | "historical_lookup" | "fixture";
3477
3481
  locator?: string | undefined;
3478
3482
  }[] | undefined;
@@ -3489,25 +3493,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3489
3493
  locator: z.ZodOptional<z.ZodString>;
3490
3494
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3491
3495
  }, "strict", z.ZodTypeAny, {
3492
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3493
- label: string;
3494
3496
  id: string;
3497
+ label: string;
3498
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3495
3499
  capture: "at_action" | "historical_lookup" | "fixture";
3496
3500
  locator?: string | undefined;
3497
3501
  }, {
3498
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3499
- label: string;
3500
3502
  id: string;
3503
+ label: string;
3504
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3501
3505
  capture: "at_action" | "historical_lookup" | "fixture";
3502
3506
  locator?: string | undefined;
3503
3507
  }>, "many">>;
3504
3508
  }, "strict", z.ZodTypeAny, {
3505
- kind: "conflict_detected";
3506
3509
  summary: string;
3510
+ kind: "conflict_detected";
3507
3511
  evidence: {
3508
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3509
- label: string;
3510
3512
  id: string;
3513
+ label: string;
3514
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3511
3515
  capture: "at_action" | "historical_lookup" | "fixture";
3512
3516
  locator?: string | undefined;
3513
3517
  }[];
@@ -3515,15 +3519,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3515
3519
  decisionIds: string[];
3516
3520
  agentIds: string[];
3517
3521
  }, {
3518
- kind: "conflict_detected";
3519
3522
  summary: string;
3523
+ kind: "conflict_detected";
3520
3524
  conflictId: string;
3521
3525
  decisionIds: string[];
3522
3526
  agentIds: string[];
3523
3527
  evidence?: {
3524
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3525
- label: string;
3526
3528
  id: string;
3529
+ label: string;
3530
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3527
3531
  capture: "at_action" | "historical_lookup" | "fixture";
3528
3532
  locator?: string | undefined;
3529
3533
  }[] | undefined;
@@ -3543,27 +3547,27 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3543
3547
  locator: z.ZodOptional<z.ZodString>;
3544
3548
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3545
3549
  }, "strict", z.ZodTypeAny, {
3546
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3547
- label: string;
3548
3550
  id: string;
3551
+ label: string;
3552
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3549
3553
  capture: "at_action" | "historical_lookup" | "fixture";
3550
3554
  locator?: string | undefined;
3551
3555
  }, {
3552
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3553
- label: string;
3554
3556
  id: string;
3557
+ label: string;
3558
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3555
3559
  capture: "at_action" | "historical_lookup" | "fixture";
3556
3560
  locator?: string | undefined;
3557
3561
  }>, "many">>;
3558
3562
  }, "strict", z.ZodTypeAny, {
3559
- kind: "test_result";
3560
3563
  summary: string;
3561
3564
  status: "error" | "failed" | "passed";
3565
+ kind: "test_result";
3562
3566
  command: string;
3563
3567
  evidence: {
3564
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3565
- label: string;
3566
3568
  id: string;
3569
+ label: string;
3570
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3567
3571
  capture: "at_action" | "historical_lookup" | "fixture";
3568
3572
  locator?: string | undefined;
3569
3573
  }[];
@@ -3572,17 +3576,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3572
3576
  durationMs?: number | undefined;
3573
3577
  correctionId?: string | undefined;
3574
3578
  }, {
3575
- kind: "test_result";
3576
3579
  summary: string;
3577
3580
  status: "error" | "failed" | "passed";
3581
+ kind: "test_result";
3578
3582
  command: string;
3579
3583
  decisionId: string;
3580
3584
  testId: string;
3581
3585
  durationMs?: number | undefined;
3582
3586
  evidence?: {
3583
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3584
- label: string;
3585
3587
  id: string;
3588
+ label: string;
3589
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3586
3590
  capture: "at_action" | "historical_lookup" | "fixture";
3587
3591
  locator?: string | undefined;
3588
3592
  }[] | undefined;
@@ -3603,26 +3607,26 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3603
3607
  locator: z.ZodOptional<z.ZodString>;
3604
3608
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3605
3609
  }, "strict", z.ZodTypeAny, {
3606
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3607
- label: string;
3608
3610
  id: string;
3611
+ label: string;
3612
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3609
3613
  capture: "at_action" | "historical_lookup" | "fixture";
3610
3614
  locator?: string | undefined;
3611
3615
  }, {
3612
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3613
- label: string;
3614
3616
  id: string;
3617
+ label: string;
3618
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3615
3619
  capture: "at_action" | "historical_lookup" | "fixture";
3616
3620
  locator?: string | undefined;
3617
3621
  }>, "many">>;
3618
3622
  }, "strict", z.ZodTypeAny, {
3619
3623
  kind: "correction_proposed";
3620
- rationale: string;
3621
3624
  statement: string;
3625
+ rationale: string;
3622
3626
  evidence: {
3623
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3624
- label: string;
3625
3627
  id: string;
3628
+ label: string;
3629
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3626
3630
  capture: "at_action" | "historical_lookup" | "fixture";
3627
3631
  locator?: string | undefined;
3628
3632
  }[];
@@ -3633,17 +3637,17 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3633
3637
  proposedBy: string;
3634
3638
  }, {
3635
3639
  kind: "correction_proposed";
3636
- rationale: string;
3637
3640
  statement: string;
3641
+ rationale: string;
3638
3642
  conflictId: string;
3639
3643
  correctionId: string;
3640
3644
  proposedDecisionId: string;
3641
3645
  supersedesDecisionIds: string[];
3642
3646
  proposedBy: string;
3643
3647
  evidence?: {
3644
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3645
- label: string;
3646
3648
  id: string;
3649
+ label: string;
3650
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3647
3651
  capture: "at_action" | "historical_lookup" | "fixture";
3648
3652
  locator?: string | undefined;
3649
3653
  }[] | undefined;
@@ -3655,13 +3659,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3655
3659
  id: z.ZodString;
3656
3660
  label: z.ZodString;
3657
3661
  }, "strict", z.ZodTypeAny, {
3658
- kind: "agent" | "human";
3659
- label: string;
3660
3662
  id: string;
3661
- }, {
3662
- kind: "agent" | "human";
3663
3663
  label: string;
3664
+ kind: "agent" | "human";
3665
+ }, {
3664
3666
  id: string;
3667
+ label: string;
3668
+ kind: "agent" | "human";
3665
3669
  }>;
3666
3670
  note: z.ZodOptional<z.ZodString>;
3667
3671
  evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -3671,47 +3675,47 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3671
3675
  locator: z.ZodOptional<z.ZodString>;
3672
3676
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3673
3677
  }, "strict", z.ZodTypeAny, {
3674
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3675
- label: string;
3676
3678
  id: string;
3679
+ label: string;
3680
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3677
3681
  capture: "at_action" | "historical_lookup" | "fixture";
3678
3682
  locator?: string | undefined;
3679
3683
  }, {
3680
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3681
- label: string;
3682
3684
  id: string;
3685
+ label: string;
3686
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3683
3687
  capture: "at_action" | "historical_lookup" | "fixture";
3684
3688
  locator?: string | undefined;
3685
3689
  }>, "many">>;
3686
3690
  }, "strict", z.ZodTypeAny, {
3687
3691
  kind: "correction_approved";
3688
3692
  evidence: {
3689
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3690
- label: string;
3691
3693
  id: string;
3694
+ label: string;
3695
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3692
3696
  capture: "at_action" | "historical_lookup" | "fixture";
3693
3697
  locator?: string | undefined;
3694
3698
  }[];
3695
3699
  correctionId: string;
3696
3700
  approvedBy: {
3697
- kind: "agent" | "human";
3698
- label: string;
3699
3701
  id: string;
3702
+ label: string;
3703
+ kind: "agent" | "human";
3700
3704
  };
3701
3705
  note?: string | undefined;
3702
3706
  }, {
3703
3707
  kind: "correction_approved";
3704
3708
  correctionId: string;
3705
3709
  approvedBy: {
3706
- kind: "agent" | "human";
3707
- label: string;
3708
3710
  id: string;
3711
+ label: string;
3712
+ kind: "agent" | "human";
3709
3713
  };
3710
3714
  note?: string | undefined;
3711
3715
  evidence?: {
3712
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3713
- label: string;
3714
3716
  id: string;
3717
+ label: string;
3718
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3715
3719
  capture: "at_action" | "historical_lookup" | "fixture";
3716
3720
  locator?: string | undefined;
3717
3721
  }[] | undefined;
@@ -3727,24 +3731,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3727
3731
  locator: z.ZodOptional<z.ZodString>;
3728
3732
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3729
3733
  }, "strict", z.ZodTypeAny, {
3730
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3731
- label: string;
3732
3734
  id: string;
3735
+ label: string;
3736
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3733
3737
  capture: "at_action" | "historical_lookup" | "fixture";
3734
3738
  locator?: string | undefined;
3735
3739
  }, {
3736
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3737
- label: string;
3738
3740
  id: string;
3741
+ label: string;
3742
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3739
3743
  capture: "at_action" | "historical_lookup" | "fixture";
3740
3744
  locator?: string | undefined;
3741
3745
  }>, "many">>;
3742
3746
  }, "strict", z.ZodTypeAny, {
3743
3747
  kind: "decision_superseded";
3744
3748
  evidence: {
3745
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3746
- label: string;
3747
3749
  id: string;
3750
+ label: string;
3751
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3748
3752
  capture: "at_action" | "historical_lookup" | "fixture";
3749
3753
  locator?: string | undefined;
3750
3754
  }[];
@@ -3757,9 +3761,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3757
3761
  correctionId: string;
3758
3762
  replacementDecisionId: string;
3759
3763
  evidence?: {
3760
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3761
- label: string;
3762
3764
  id: string;
3765
+ label: string;
3766
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3763
3767
  capture: "at_action" | "historical_lookup" | "fixture";
3764
3768
  locator?: string | undefined;
3765
3769
  }[] | undefined;
@@ -3775,15 +3779,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3775
3779
  locator: z.ZodOptional<z.ZodString>;
3776
3780
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3777
3781
  }, "strict", z.ZodTypeAny, {
3778
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3779
- label: string;
3780
3782
  id: string;
3783
+ label: string;
3784
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3781
3785
  capture: "at_action" | "historical_lookup" | "fixture";
3782
3786
  locator?: string | undefined;
3783
3787
  }, {
3784
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3785
- label: string;
3786
3788
  id: string;
3789
+ label: string;
3790
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3787
3791
  capture: "at_action" | "historical_lookup" | "fixture";
3788
3792
  locator?: string | undefined;
3789
3793
  }>, "many">>;
@@ -3796,9 +3800,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3796
3800
  agentId: string;
3797
3801
  sessionId: string;
3798
3802
  evidence: {
3799
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3800
- label: string;
3801
3803
  id: string;
3804
+ label: string;
3805
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3802
3806
  capture: "at_action" | "historical_lookup" | "fixture";
3803
3807
  locator?: string | undefined;
3804
3808
  }[];
@@ -3814,9 +3818,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3814
3818
  recallReceiptId: string;
3815
3819
  capturedAtAction: boolean;
3816
3820
  evidence?: {
3817
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3818
- label: string;
3819
3821
  id: string;
3822
+ label: string;
3823
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3820
3824
  capture: "at_action" | "historical_lookup" | "fixture";
3821
3825
  locator?: string | undefined;
3822
3826
  }[] | undefined;
@@ -3832,15 +3836,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3832
3836
  locator: z.ZodOptional<z.ZodString>;
3833
3837
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3834
3838
  }, "strict", z.ZodTypeAny, {
3835
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3836
- label: string;
3837
3839
  id: string;
3840
+ label: string;
3841
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3838
3842
  capture: "at_action" | "historical_lookup" | "fixture";
3839
3843
  locator?: string | undefined;
3840
3844
  }, {
3841
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3842
- label: string;
3843
3845
  id: string;
3846
+ label: string;
3847
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3844
3848
  capture: "at_action" | "historical_lookup" | "fixture";
3845
3849
  locator?: string | undefined;
3846
3850
  }>, "many">>;
@@ -3852,9 +3856,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3852
3856
  agentId: string;
3853
3857
  sessionId: string;
3854
3858
  evidence: {
3855
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3856
- label: string;
3857
3859
  id: string;
3860
+ label: string;
3861
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3858
3862
  capture: "at_action" | "historical_lookup" | "fixture";
3859
3863
  locator?: string | undefined;
3860
3864
  }[];
@@ -3871,9 +3875,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3871
3875
  recallReceiptId: string;
3872
3876
  staleDecisionAbsent: boolean;
3873
3877
  evidence?: {
3874
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3875
- label: string;
3876
3878
  id: string;
3879
+ label: string;
3880
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3877
3881
  capture: "at_action" | "historical_lookup" | "fixture";
3878
3882
  locator?: string | undefined;
3879
3883
  }[] | undefined;
@@ -3888,37 +3892,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3888
3892
  locator: z.ZodOptional<z.ZodString>;
3889
3893
  capture: z.ZodEnum<["at_action", "historical_lookup", "fixture"]>;
3890
3894
  }, "strict", z.ZodTypeAny, {
3891
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3892
- label: string;
3893
3895
  id: string;
3896
+ label: string;
3897
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3894
3898
  capture: "at_action" | "historical_lookup" | "fixture";
3895
3899
  locator?: string | undefined;
3896
3900
  }, {
3897
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3898
- label: string;
3899
3901
  id: string;
3902
+ label: string;
3903
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3900
3904
  capture: "at_action" | "historical_lookup" | "fixture";
3901
3905
  locator?: string | undefined;
3902
3906
  }>, "many">>;
3903
3907
  }, "strict", z.ZodTypeAny, {
3904
- kind: "mission_completed";
3905
3908
  summary: string;
3909
+ kind: "mission_completed";
3906
3910
  outcome: "failed" | "recovered" | "inconclusive";
3907
3911
  evidence: {
3908
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3909
- label: string;
3910
3912
  id: string;
3913
+ label: string;
3914
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3911
3915
  capture: "at_action" | "historical_lookup" | "fixture";
3912
3916
  locator?: string | undefined;
3913
3917
  }[];
3914
3918
  }, {
3915
- kind: "mission_completed";
3916
3919
  summary: string;
3920
+ kind: "mission_completed";
3917
3921
  outcome: "failed" | "recovered" | "inconclusive";
3918
3922
  evidence?: {
3919
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3920
- label: string;
3921
3923
  id: string;
3924
+ label: string;
3925
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3922
3926
  capture: "at_action" | "historical_lookup" | "fixture";
3923
3927
  locator?: string | undefined;
3924
3928
  }[] | undefined;
@@ -3926,38 +3930,38 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3926
3930
  kind: "mission_started";
3927
3931
  title: string;
3928
3932
  evidence: {
3929
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3930
- label: string;
3931
3933
  id: string;
3934
+ label: string;
3935
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3932
3936
  capture: "at_action" | "historical_lookup" | "fixture";
3933
3937
  locator?: string | undefined;
3934
3938
  }[];
3935
3939
  objective: string;
3936
3940
  runMode: "replay" | "fixture" | "live";
3937
3941
  } | {
3938
- kind: "agent_status";
3939
- status: "failed" | "blocked" | "working" | "complete" | "idle";
3940
3942
  label: string;
3943
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
3944
+ kind: "agent_status";
3941
3945
  role: string;
3942
3946
  agentId: string;
3943
3947
  sessionId: string;
3944
3948
  evidence: {
3945
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3946
- label: string;
3947
3949
  id: string;
3950
+ label: string;
3951
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3948
3952
  capture: "at_action" | "historical_lookup" | "fixture";
3949
3953
  locator?: string | undefined;
3950
3954
  }[];
3951
3955
  detail?: string | undefined;
3952
3956
  } | {
3953
- kind: "agent_output";
3954
3957
  summary: string;
3958
+ kind: "agent_output";
3955
3959
  agentId: string;
3956
3960
  sessionId: string;
3957
3961
  evidence: {
3958
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3959
- label: string;
3960
3962
  id: string;
3963
+ label: string;
3964
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3961
3965
  capture: "at_action" | "historical_lookup" | "fixture";
3962
3966
  locator?: string | undefined;
3963
3967
  }[];
@@ -3968,9 +3972,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3968
3972
  statement: string;
3969
3973
  sessionId: string;
3970
3974
  evidence: {
3971
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3972
- label: string;
3973
3975
  id: string;
3976
+ label: string;
3977
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3974
3978
  capture: "at_action" | "historical_lookup" | "fixture";
3975
3979
  locator?: string | undefined;
3976
3980
  }[];
@@ -3978,12 +3982,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3978
3982
  decisionId: string;
3979
3983
  confidence?: number | undefined;
3980
3984
  } | {
3981
- kind: "conflict_detected";
3982
3985
  summary: string;
3986
+ kind: "conflict_detected";
3983
3987
  evidence: {
3984
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
3985
- label: string;
3986
3988
  id: string;
3989
+ label: string;
3990
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
3987
3991
  capture: "at_action" | "historical_lookup" | "fixture";
3988
3992
  locator?: string | undefined;
3989
3993
  }[];
@@ -3991,14 +3995,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
3991
3995
  decisionIds: string[];
3992
3996
  agentIds: string[];
3993
3997
  } | {
3994
- kind: "test_result";
3995
3998
  summary: string;
3996
3999
  status: "error" | "failed" | "passed";
4000
+ kind: "test_result";
3997
4001
  command: string;
3998
4002
  evidence: {
3999
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4000
- label: string;
4001
4003
  id: string;
4004
+ label: string;
4005
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4002
4006
  capture: "at_action" | "historical_lookup" | "fixture";
4003
4007
  locator?: string | undefined;
4004
4008
  }[];
@@ -4008,12 +4012,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4008
4012
  correctionId?: string | undefined;
4009
4013
  } | {
4010
4014
  kind: "correction_proposed";
4011
- rationale: string;
4012
4015
  statement: string;
4016
+ rationale: string;
4013
4017
  evidence: {
4014
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4015
- label: string;
4016
4018
  id: string;
4019
+ label: string;
4020
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4017
4021
  capture: "at_action" | "historical_lookup" | "fixture";
4018
4022
  locator?: string | undefined;
4019
4023
  }[];
@@ -4025,25 +4029,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4025
4029
  } | {
4026
4030
  kind: "correction_approved";
4027
4031
  evidence: {
4028
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4029
- label: string;
4030
4032
  id: string;
4033
+ label: string;
4034
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4031
4035
  capture: "at_action" | "historical_lookup" | "fixture";
4032
4036
  locator?: string | undefined;
4033
4037
  }[];
4034
4038
  correctionId: string;
4035
4039
  approvedBy: {
4036
- kind: "agent" | "human";
4037
- label: string;
4038
4040
  id: string;
4041
+ label: string;
4042
+ kind: "agent" | "human";
4039
4043
  };
4040
4044
  note?: string | undefined;
4041
4045
  } | {
4042
4046
  kind: "decision_superseded";
4043
4047
  evidence: {
4044
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4045
- label: string;
4046
4048
  id: string;
4049
+ label: string;
4050
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4047
4051
  capture: "at_action" | "historical_lookup" | "fixture";
4048
4052
  locator?: string | undefined;
4049
4053
  }[];
@@ -4056,9 +4060,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4056
4060
  agentId: string;
4057
4061
  sessionId: string;
4058
4062
  evidence: {
4059
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4060
- label: string;
4061
4063
  id: string;
4064
+ label: string;
4065
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4062
4066
  capture: "at_action" | "historical_lookup" | "fixture";
4063
4067
  locator?: string | undefined;
4064
4068
  }[];
@@ -4070,9 +4074,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4070
4074
  agentId: string;
4071
4075
  sessionId: string;
4072
4076
  evidence: {
4073
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4074
- label: string;
4075
4077
  id: string;
4078
+ label: string;
4079
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4076
4080
  capture: "at_action" | "historical_lookup" | "fixture";
4077
4081
  locator?: string | undefined;
4078
4082
  }[];
@@ -4081,13 +4085,13 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4081
4085
  recallReceiptId: string;
4082
4086
  staleDecisionAbsent: boolean;
4083
4087
  } | {
4084
- kind: "mission_completed";
4085
4088
  summary: string;
4089
+ kind: "mission_completed";
4086
4090
  outcome: "failed" | "recovered" | "inconclusive";
4087
4091
  evidence: {
4088
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4089
- label: string;
4090
4092
  id: string;
4093
+ label: string;
4094
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4091
4095
  capture: "at_action" | "historical_lookup" | "fixture";
4092
4096
  locator?: string | undefined;
4093
4097
  }[];
@@ -4097,37 +4101,37 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4097
4101
  objective: string;
4098
4102
  runMode: "replay" | "fixture" | "live";
4099
4103
  evidence?: {
4100
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4101
- label: string;
4102
4104
  id: string;
4105
+ label: string;
4106
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4103
4107
  capture: "at_action" | "historical_lookup" | "fixture";
4104
4108
  locator?: string | undefined;
4105
4109
  }[] | undefined;
4106
4110
  } | {
4107
- kind: "agent_status";
4108
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4109
4111
  label: string;
4112
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4113
+ kind: "agent_status";
4110
4114
  role: string;
4111
4115
  agentId: string;
4112
4116
  sessionId: string;
4113
4117
  detail?: string | undefined;
4114
4118
  evidence?: {
4115
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4116
- label: string;
4117
4119
  id: string;
4120
+ label: string;
4121
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4118
4122
  capture: "at_action" | "historical_lookup" | "fixture";
4119
4123
  locator?: string | undefined;
4120
4124
  }[] | undefined;
4121
4125
  } | {
4122
- kind: "agent_output";
4123
4126
  summary: string;
4127
+ kind: "agent_output";
4124
4128
  agentId: string;
4125
4129
  sessionId: string;
4126
4130
  outputId: string;
4127
4131
  evidence?: {
4128
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4129
- label: string;
4130
4132
  id: string;
4133
+ label: string;
4134
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4131
4135
  capture: "at_action" | "historical_lookup" | "fixture";
4132
4136
  locator?: string | undefined;
4133
4137
  }[] | undefined;
@@ -4140,54 +4144,54 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4140
4144
  decisionId: string;
4141
4145
  confidence?: number | undefined;
4142
4146
  evidence?: {
4143
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4144
- label: string;
4145
4147
  id: string;
4148
+ label: string;
4149
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4146
4150
  capture: "at_action" | "historical_lookup" | "fixture";
4147
4151
  locator?: string | undefined;
4148
4152
  }[] | undefined;
4149
4153
  } | {
4150
- kind: "conflict_detected";
4151
4154
  summary: string;
4155
+ kind: "conflict_detected";
4152
4156
  conflictId: string;
4153
4157
  decisionIds: string[];
4154
4158
  agentIds: string[];
4155
4159
  evidence?: {
4156
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4157
- label: string;
4158
4160
  id: string;
4161
+ label: string;
4162
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4159
4163
  capture: "at_action" | "historical_lookup" | "fixture";
4160
4164
  locator?: string | undefined;
4161
4165
  }[] | undefined;
4162
4166
  } | {
4163
- kind: "test_result";
4164
4167
  summary: string;
4165
4168
  status: "error" | "failed" | "passed";
4169
+ kind: "test_result";
4166
4170
  command: string;
4167
4171
  decisionId: string;
4168
4172
  testId: string;
4169
4173
  durationMs?: number | undefined;
4170
4174
  evidence?: {
4171
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4172
- label: string;
4173
4175
  id: string;
4176
+ label: string;
4177
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4174
4178
  capture: "at_action" | "historical_lookup" | "fixture";
4175
4179
  locator?: string | undefined;
4176
4180
  }[] | undefined;
4177
4181
  correctionId?: string | undefined;
4178
4182
  } | {
4179
4183
  kind: "correction_proposed";
4180
- rationale: string;
4181
4184
  statement: string;
4185
+ rationale: string;
4182
4186
  conflictId: string;
4183
4187
  correctionId: string;
4184
4188
  proposedDecisionId: string;
4185
4189
  supersedesDecisionIds: string[];
4186
4190
  proposedBy: string;
4187
4191
  evidence?: {
4188
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4189
- label: string;
4190
4192
  id: string;
4193
+ label: string;
4194
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4191
4195
  capture: "at_action" | "historical_lookup" | "fixture";
4192
4196
  locator?: string | undefined;
4193
4197
  }[] | undefined;
@@ -4195,15 +4199,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4195
4199
  kind: "correction_approved";
4196
4200
  correctionId: string;
4197
4201
  approvedBy: {
4198
- kind: "agent" | "human";
4199
- label: string;
4200
4202
  id: string;
4203
+ label: string;
4204
+ kind: "agent" | "human";
4201
4205
  };
4202
4206
  note?: string | undefined;
4203
4207
  evidence?: {
4204
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4205
- label: string;
4206
4208
  id: string;
4209
+ label: string;
4210
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4207
4211
  capture: "at_action" | "historical_lookup" | "fixture";
4208
4212
  locator?: string | undefined;
4209
4213
  }[] | undefined;
@@ -4213,9 +4217,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4213
4217
  correctionId: string;
4214
4218
  replacementDecisionId: string;
4215
4219
  evidence?: {
4216
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4217
- label: string;
4218
4220
  id: string;
4221
+ label: string;
4222
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4219
4223
  capture: "at_action" | "historical_lookup" | "fixture";
4220
4224
  locator?: string | undefined;
4221
4225
  }[] | undefined;
@@ -4228,9 +4232,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4228
4232
  recallReceiptId: string;
4229
4233
  capturedAtAction: boolean;
4230
4234
  evidence?: {
4231
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4232
- label: string;
4233
4235
  id: string;
4236
+ label: string;
4237
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4234
4238
  capture: "at_action" | "historical_lookup" | "fixture";
4235
4239
  locator?: string | undefined;
4236
4240
  }[] | undefined;
@@ -4243,63 +4247,64 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4243
4247
  recallReceiptId: string;
4244
4248
  staleDecisionAbsent: boolean;
4245
4249
  evidence?: {
4246
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4247
- label: string;
4248
4250
  id: string;
4251
+ label: string;
4252
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4249
4253
  capture: "at_action" | "historical_lookup" | "fixture";
4250
4254
  locator?: string | undefined;
4251
4255
  }[] | undefined;
4252
4256
  } | {
4253
- kind: "mission_completed";
4254
4257
  summary: string;
4258
+ kind: "mission_completed";
4255
4259
  outcome: "failed" | "recovered" | "inconclusive";
4256
4260
  evidence?: {
4257
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4258
- label: string;
4259
4261
  id: string;
4262
+ label: string;
4263
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4260
4264
  capture: "at_action" | "historical_lookup" | "fixture";
4261
4265
  locator?: string | undefined;
4262
4266
  }[] | undefined;
4263
4267
  }>;
4264
4268
  }, "strict", z.ZodTypeAny, {
4265
- schemaVersion: "1";
4269
+ namespace: string;
4266
4270
  recordedAt: string;
4271
+ schemaVersion: "1";
4267
4272
  payload: {
4268
4273
  kind: "mission_started";
4269
4274
  title: string;
4270
4275
  evidence: {
4271
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4272
- label: string;
4273
4276
  id: string;
4277
+ label: string;
4278
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4274
4279
  capture: "at_action" | "historical_lookup" | "fixture";
4275
4280
  locator?: string | undefined;
4276
4281
  }[];
4277
4282
  objective: string;
4278
4283
  runMode: "replay" | "fixture" | "live";
4279
4284
  } | {
4280
- kind: "agent_status";
4281
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4282
4285
  label: string;
4283
- role: string;
4286
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4287
+ kind: "agent_status";
4288
+ role: string;
4284
4289
  agentId: string;
4285
4290
  sessionId: string;
4286
4291
  evidence: {
4287
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4288
- label: string;
4289
4292
  id: string;
4293
+ label: string;
4294
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4290
4295
  capture: "at_action" | "historical_lookup" | "fixture";
4291
4296
  locator?: string | undefined;
4292
4297
  }[];
4293
4298
  detail?: string | undefined;
4294
4299
  } | {
4295
- kind: "agent_output";
4296
4300
  summary: string;
4301
+ kind: "agent_output";
4297
4302
  agentId: string;
4298
4303
  sessionId: string;
4299
4304
  evidence: {
4300
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4301
- label: string;
4302
4305
  id: string;
4306
+ label: string;
4307
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4303
4308
  capture: "at_action" | "historical_lookup" | "fixture";
4304
4309
  locator?: string | undefined;
4305
4310
  }[];
@@ -4310,9 +4315,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4310
4315
  statement: string;
4311
4316
  sessionId: string;
4312
4317
  evidence: {
4313
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4314
- label: string;
4315
4318
  id: string;
4319
+ label: string;
4320
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4316
4321
  capture: "at_action" | "historical_lookup" | "fixture";
4317
4322
  locator?: string | undefined;
4318
4323
  }[];
@@ -4320,12 +4325,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4320
4325
  decisionId: string;
4321
4326
  confidence?: number | undefined;
4322
4327
  } | {
4323
- kind: "conflict_detected";
4324
4328
  summary: string;
4329
+ kind: "conflict_detected";
4325
4330
  evidence: {
4326
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4327
- label: string;
4328
4331
  id: string;
4332
+ label: string;
4333
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4329
4334
  capture: "at_action" | "historical_lookup" | "fixture";
4330
4335
  locator?: string | undefined;
4331
4336
  }[];
@@ -4333,14 +4338,14 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4333
4338
  decisionIds: string[];
4334
4339
  agentIds: string[];
4335
4340
  } | {
4336
- kind: "test_result";
4337
4341
  summary: string;
4338
4342
  status: "error" | "failed" | "passed";
4343
+ kind: "test_result";
4339
4344
  command: string;
4340
4345
  evidence: {
4341
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4342
- label: string;
4343
4346
  id: string;
4347
+ label: string;
4348
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4344
4349
  capture: "at_action" | "historical_lookup" | "fixture";
4345
4350
  locator?: string | undefined;
4346
4351
  }[];
@@ -4350,12 +4355,12 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4350
4355
  correctionId?: string | undefined;
4351
4356
  } | {
4352
4357
  kind: "correction_proposed";
4353
- rationale: string;
4354
4358
  statement: string;
4359
+ rationale: string;
4355
4360
  evidence: {
4356
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4357
- label: string;
4358
4361
  id: string;
4362
+ label: string;
4363
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4359
4364
  capture: "at_action" | "historical_lookup" | "fixture";
4360
4365
  locator?: string | undefined;
4361
4366
  }[];
@@ -4367,25 +4372,25 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4367
4372
  } | {
4368
4373
  kind: "correction_approved";
4369
4374
  evidence: {
4370
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4371
- label: string;
4372
4375
  id: string;
4376
+ label: string;
4377
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4373
4378
  capture: "at_action" | "historical_lookup" | "fixture";
4374
4379
  locator?: string | undefined;
4375
4380
  }[];
4376
4381
  correctionId: string;
4377
4382
  approvedBy: {
4378
- kind: "agent" | "human";
4379
- label: string;
4380
4383
  id: string;
4384
+ label: string;
4385
+ kind: "agent" | "human";
4381
4386
  };
4382
4387
  note?: string | undefined;
4383
4388
  } | {
4384
4389
  kind: "decision_superseded";
4385
4390
  evidence: {
4386
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4387
- label: string;
4388
4391
  id: string;
4392
+ label: string;
4393
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4389
4394
  capture: "at_action" | "historical_lookup" | "fixture";
4390
4395
  locator?: string | undefined;
4391
4396
  }[];
@@ -4398,9 +4403,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4398
4403
  agentId: string;
4399
4404
  sessionId: string;
4400
4405
  evidence: {
4401
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4402
- label: string;
4403
4406
  id: string;
4407
+ label: string;
4408
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4404
4409
  capture: "at_action" | "historical_lookup" | "fixture";
4405
4410
  locator?: string | undefined;
4406
4411
  }[];
@@ -4412,9 +4417,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4412
4417
  agentId: string;
4413
4418
  sessionId: string;
4414
4419
  evidence: {
4415
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4416
- label: string;
4417
4420
  id: string;
4421
+ label: string;
4422
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4418
4423
  capture: "at_action" | "historical_lookup" | "fixture";
4419
4424
  locator?: string | undefined;
4420
4425
  }[];
@@ -4423,63 +4428,63 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4423
4428
  recallReceiptId: string;
4424
4429
  staleDecisionAbsent: boolean;
4425
4430
  } | {
4426
- kind: "mission_completed";
4427
4431
  summary: string;
4432
+ kind: "mission_completed";
4428
4433
  outcome: "failed" | "recovered" | "inconclusive";
4429
4434
  evidence: {
4430
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4431
- label: string;
4432
4435
  id: string;
4436
+ label: string;
4437
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4433
4438
  capture: "at_action" | "historical_lookup" | "fixture";
4434
4439
  locator?: string | undefined;
4435
4440
  }[];
4436
4441
  };
4437
- namespace: string;
4438
4442
  eventId: string;
4439
4443
  occurredAt: string;
4440
4444
  missionId: string;
4441
4445
  authenticatedPrincipal?: string | undefined;
4442
4446
  idempotencyKey?: string | undefined;
4443
4447
  }, {
4444
- schemaVersion: "1";
4448
+ namespace: string;
4445
4449
  recordedAt: string;
4450
+ schemaVersion: "1";
4446
4451
  payload: {
4447
4452
  kind: "mission_started";
4448
4453
  title: string;
4449
4454
  objective: string;
4450
4455
  runMode: "replay" | "fixture" | "live";
4451
4456
  evidence?: {
4452
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4453
- label: string;
4454
4457
  id: string;
4458
+ label: string;
4459
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4455
4460
  capture: "at_action" | "historical_lookup" | "fixture";
4456
4461
  locator?: string | undefined;
4457
4462
  }[] | undefined;
4458
4463
  } | {
4459
- kind: "agent_status";
4460
- status: "failed" | "blocked" | "working" | "complete" | "idle";
4461
4464
  label: string;
4465
+ status: "failed" | "blocked" | "working" | "complete" | "idle";
4466
+ kind: "agent_status";
4462
4467
  role: string;
4463
4468
  agentId: string;
4464
4469
  sessionId: string;
4465
4470
  detail?: string | undefined;
4466
4471
  evidence?: {
4467
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4468
- label: string;
4469
4472
  id: string;
4473
+ label: string;
4474
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4470
4475
  capture: "at_action" | "historical_lookup" | "fixture";
4471
4476
  locator?: string | undefined;
4472
4477
  }[] | undefined;
4473
4478
  } | {
4474
- kind: "agent_output";
4475
4479
  summary: string;
4480
+ kind: "agent_output";
4476
4481
  agentId: string;
4477
4482
  sessionId: string;
4478
4483
  outputId: string;
4479
4484
  evidence?: {
4480
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4481
- label: string;
4482
4485
  id: string;
4486
+ label: string;
4487
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4483
4488
  capture: "at_action" | "historical_lookup" | "fixture";
4484
4489
  locator?: string | undefined;
4485
4490
  }[] | undefined;
@@ -4492,54 +4497,54 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4492
4497
  decisionId: string;
4493
4498
  confidence?: number | undefined;
4494
4499
  evidence?: {
4495
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4496
- label: string;
4497
4500
  id: string;
4501
+ label: string;
4502
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4498
4503
  capture: "at_action" | "historical_lookup" | "fixture";
4499
4504
  locator?: string | undefined;
4500
4505
  }[] | undefined;
4501
4506
  } | {
4502
- kind: "conflict_detected";
4503
4507
  summary: string;
4508
+ kind: "conflict_detected";
4504
4509
  conflictId: string;
4505
4510
  decisionIds: string[];
4506
4511
  agentIds: string[];
4507
4512
  evidence?: {
4508
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4509
- label: string;
4510
4513
  id: string;
4514
+ label: string;
4515
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4511
4516
  capture: "at_action" | "historical_lookup" | "fixture";
4512
4517
  locator?: string | undefined;
4513
4518
  }[] | undefined;
4514
4519
  } | {
4515
- kind: "test_result";
4516
4520
  summary: string;
4517
4521
  status: "error" | "failed" | "passed";
4522
+ kind: "test_result";
4518
4523
  command: string;
4519
4524
  decisionId: string;
4520
4525
  testId: string;
4521
4526
  durationMs?: number | undefined;
4522
4527
  evidence?: {
4523
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4524
- label: string;
4525
4528
  id: string;
4529
+ label: string;
4530
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4526
4531
  capture: "at_action" | "historical_lookup" | "fixture";
4527
4532
  locator?: string | undefined;
4528
4533
  }[] | undefined;
4529
4534
  correctionId?: string | undefined;
4530
4535
  } | {
4531
4536
  kind: "correction_proposed";
4532
- rationale: string;
4533
4537
  statement: string;
4538
+ rationale: string;
4534
4539
  conflictId: string;
4535
4540
  correctionId: string;
4536
4541
  proposedDecisionId: string;
4537
4542
  supersedesDecisionIds: string[];
4538
4543
  proposedBy: string;
4539
4544
  evidence?: {
4540
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4541
- label: string;
4542
4545
  id: string;
4546
+ label: string;
4547
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4543
4548
  capture: "at_action" | "historical_lookup" | "fixture";
4544
4549
  locator?: string | undefined;
4545
4550
  }[] | undefined;
@@ -4547,15 +4552,15 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4547
4552
  kind: "correction_approved";
4548
4553
  correctionId: string;
4549
4554
  approvedBy: {
4550
- kind: "agent" | "human";
4551
- label: string;
4552
4555
  id: string;
4556
+ label: string;
4557
+ kind: "agent" | "human";
4553
4558
  };
4554
4559
  note?: string | undefined;
4555
4560
  evidence?: {
4556
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4557
- label: string;
4558
4561
  id: string;
4562
+ label: string;
4563
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4559
4564
  capture: "at_action" | "historical_lookup" | "fixture";
4560
4565
  locator?: string | undefined;
4561
4566
  }[] | undefined;
@@ -4565,9 +4570,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4565
4570
  correctionId: string;
4566
4571
  replacementDecisionId: string;
4567
4572
  evidence?: {
4568
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4569
- label: string;
4570
4573
  id: string;
4574
+ label: string;
4575
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4571
4576
  capture: "at_action" | "historical_lookup" | "fixture";
4572
4577
  locator?: string | undefined;
4573
4578
  }[] | undefined;
@@ -4580,9 +4585,9 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4580
4585
  recallReceiptId: string;
4581
4586
  capturedAtAction: boolean;
4582
4587
  evidence?: {
4583
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4584
- label: string;
4585
4588
  id: string;
4589
+ label: string;
4590
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4586
4591
  capture: "at_action" | "historical_lookup" | "fixture";
4587
4592
  locator?: string | undefined;
4588
4593
  }[] | undefined;
@@ -4595,25 +4600,24 @@ declare const RelayMissionEventSchema: z.ZodObject<{
4595
4600
  recallReceiptId: string;
4596
4601
  staleDecisionAbsent: boolean;
4597
4602
  evidence?: {
4598
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4599
- label: string;
4600
4603
  id: string;
4604
+ label: string;
4605
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4601
4606
  capture: "at_action" | "historical_lookup" | "fixture";
4602
4607
  locator?: string | undefined;
4603
4608
  }[] | undefined;
4604
4609
  } | {
4605
- kind: "mission_completed";
4606
4610
  summary: string;
4611
+ kind: "mission_completed";
4607
4612
  outcome: "failed" | "recovered" | "inconclusive";
4608
4613
  evidence?: {
4609
- kind: "source" | "correction" | "commit" | "memory" | "recall_audit" | "test" | "agent_output" | "approval";
4610
- label: string;
4611
4614
  id: string;
4615
+ label: string;
4616
+ kind: "correction" | "source" | "memory" | "commit" | "recall_audit" | "test" | "agent_output" | "approval";
4612
4617
  capture: "at_action" | "historical_lookup" | "fixture";
4613
4618
  locator?: string | undefined;
4614
4619
  }[] | undefined;
4615
4620
  };
4616
- namespace: string;
4617
4621
  eventId: string;
4618
4622
  occurredAt: string;
4619
4623
  missionId: string;
@@ -4854,6 +4858,725 @@ declare function readRelayMission(service: EngramAccessService, input: RelayMiss
4854
4858
  declare const relayMissionAppendOperation: BoundOperation<RelayMissionAppendAccessInput, RelayMissionAppendAccessOutput>;
4855
4859
  declare const relayMissionReadOperation: BoundOperation<RelayMissionReadAccessInput, RelayMissionReadAccessOutput>;
4856
4860
 
4861
+ declare const SUPPORT_PASSPORT_CARD_CATEGORIES: readonly ["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"];
4862
+ declare const SUPPORT_PASSPORT_CARD_STATUSES: readonly ["pending_review", "active", "rejected", "superseded", "archived"];
4863
+ declare const SupportPassportCardCategorySchema: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
4864
+ declare const SupportPassportCardStatusSchema: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
4865
+ declare const SupportPassportCardTitleSchema: z.ZodEffects<z.ZodString, string, string>;
4866
+ declare const SupportPassportNamespaceSchema: z.ZodEffects<z.ZodString, string, string>;
4867
+ declare const SupportPassportMemoryIdSchema: z.ZodString;
4868
+ declare const SupportPassportCardSchema: z.ZodObject<{
4869
+ cardId: z.ZodString;
4870
+ title: z.ZodEffects<z.ZodString, string, string>;
4871
+ statement: z.ZodString;
4872
+ category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
4873
+ status: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
4874
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
4875
+ reviewBy: z.ZodEffects<z.ZodString, string, string>;
4876
+ revision: z.ZodString;
4877
+ }, "strict", z.ZodTypeAny, {
4878
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4879
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
4880
+ title: string;
4881
+ updatedAt: string;
4882
+ cardId: string;
4883
+ statement: string;
4884
+ reviewBy: string;
4885
+ revision: string;
4886
+ }, {
4887
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4888
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
4889
+ title: string;
4890
+ updatedAt: string;
4891
+ cardId: string;
4892
+ statement: string;
4893
+ reviewBy: string;
4894
+ revision: string;
4895
+ }>;
4896
+ declare const SupportPassportCardListSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
4897
+ cardId: z.ZodString;
4898
+ title: z.ZodEffects<z.ZodString, string, string>;
4899
+ statement: z.ZodString;
4900
+ category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
4901
+ status: z.ZodEnum<["pending_review", "active", "rejected", "superseded", "archived"]>;
4902
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
4903
+ reviewBy: z.ZodEffects<z.ZodString, string, string>;
4904
+ revision: z.ZodString;
4905
+ }, "strict", z.ZodTypeAny, {
4906
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4907
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
4908
+ title: string;
4909
+ updatedAt: string;
4910
+ cardId: string;
4911
+ statement: string;
4912
+ reviewBy: string;
4913
+ revision: string;
4914
+ }, {
4915
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4916
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
4917
+ title: string;
4918
+ updatedAt: string;
4919
+ cardId: string;
4920
+ statement: string;
4921
+ reviewBy: string;
4922
+ revision: string;
4923
+ }>, "many">, {
4924
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4925
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
4926
+ title: string;
4927
+ updatedAt: string;
4928
+ cardId: string;
4929
+ statement: string;
4930
+ reviewBy: string;
4931
+ revision: string;
4932
+ }[], {
4933
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4934
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
4935
+ title: string;
4936
+ updatedAt: string;
4937
+ cardId: string;
4938
+ statement: string;
4939
+ reviewBy: string;
4940
+ revision: string;
4941
+ }[]>;
4942
+ declare const SupportPassportListCardsInputSchema: z.ZodObject<{
4943
+ principal: z.ZodString;
4944
+ }, "strict", z.ZodTypeAny, {
4945
+ principal: string;
4946
+ }, {
4947
+ principal: string;
4948
+ }>;
4949
+ declare const SupportPassportManualDraftInputSchema: z.ZodObject<{
4950
+ principal: z.ZodString;
4951
+ title: z.ZodEffects<z.ZodString, string, string>;
4952
+ statement: z.ZodString;
4953
+ category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
4954
+ reviewBy: z.ZodEffects<z.ZodString, string, string>;
4955
+ }, "strict", z.ZodTypeAny, {
4956
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4957
+ title: string;
4958
+ statement: string;
4959
+ reviewBy: string;
4960
+ principal: string;
4961
+ }, {
4962
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4963
+ title: string;
4964
+ statement: string;
4965
+ reviewBy: string;
4966
+ principal: string;
4967
+ }>;
4968
+ declare const SupportPassportCardMutationInputSchema: z.ZodObject<{
4969
+ principal: z.ZodString;
4970
+ cardId: z.ZodString;
4971
+ expectedRevision: z.ZodString;
4972
+ }, "strict", z.ZodTypeAny, {
4973
+ cardId: string;
4974
+ principal: string;
4975
+ expectedRevision: string;
4976
+ }, {
4977
+ cardId: string;
4978
+ principal: string;
4979
+ expectedRevision: string;
4980
+ }>;
4981
+ declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
4982
+ principal: z.ZodString;
4983
+ cardId: z.ZodString;
4984
+ expectedRevision: z.ZodString;
4985
+ } & {
4986
+ title: z.ZodEffects<z.ZodString, string, string>;
4987
+ statement: z.ZodString;
4988
+ category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
4989
+ reviewBy: z.ZodEffects<z.ZodString, string, string>;
4990
+ }, "strict", z.ZodTypeAny, {
4991
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
4992
+ title: string;
4993
+ cardId: string;
4994
+ statement: string;
4995
+ reviewBy: string;
4996
+ principal: string;
4997
+ expectedRevision: string;
4998
+ }, {
4999
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
5000
+ title: string;
5001
+ cardId: string;
5002
+ statement: string;
5003
+ reviewBy: string;
5004
+ principal: string;
5005
+ expectedRevision: string;
5006
+ }>;
5007
+ type SupportPassportCard = z.infer<typeof SupportPassportCardSchema>;
5008
+ type SupportPassportCardCategory = z.infer<typeof SupportPassportCardCategorySchema>;
5009
+ type SupportPassportCardStatus = z.infer<typeof SupportPassportCardStatusSchema>;
5010
+ type SupportPassportManualDraftInput = z.input<typeof SupportPassportManualDraftInputSchema>;
5011
+ type SupportPassportCardMutationInput = z.input<typeof SupportPassportCardMutationInputSchema>;
5012
+ type SupportPassportReplaceCardInput = z.input<typeof SupportPassportReplaceCardInputSchema>;
5013
+ type RevisionFields = Omit<SupportPassportCard, "revision">;
5014
+ declare function computeSupportPassportCardRevision(fields: RevisionFields): string;
5015
+
5016
+ declare const SUPPORT_PASSPORT_CARD_TAG = "support-passport-card";
5017
+ declare const SUPPORT_PASSPORT_AUDIT_TAG = "support-passport-audit";
5018
+ declare function isSupportPassportPrivateMemory(memory: {
5019
+ frontmatter: {
5020
+ tags?: readonly string[];
5021
+ structuredAttributes?: Readonly<Record<string, string>>;
5022
+ };
5023
+ }): boolean;
5024
+ declare function excludeSupportPassportPrivateMemories<T extends Pick<MemoryFile, "frontmatter">>(memories: readonly T[]): T[];
5025
+ declare function createSupportPassportPrivateFileExclusion(storage: {
5026
+ readMemoryByPath(filePath: string): Promise<MemoryFile | null>;
5027
+ }): OfflineSyncExcludeFile;
5028
+ declare const SUPPORT_PASSPORT_ATTRIBUTE_KEYS: Readonly<{
5029
+ namespace: "support-passport-namespace";
5030
+ namespaceEncoding: "support-passport-namespace-encoding";
5031
+ owner: "support-passport-owner";
5032
+ title: "support-passport-title";
5033
+ category: "support-passport-category";
5034
+ order: "support-passport-order";
5035
+ reviewBy: "support-passport-review-by";
5036
+ sourceMemoryIds: "support-passport-source-ids";
5037
+ replacesDraftId: "support-passport-replaces-draft-id";
5038
+ replacedRevision: "support-passport-replaced-revision";
5039
+ draftReplacementPrepared: "support-passport-draft-replacement-prepared";
5040
+ replacementComplete: "support-passport-replacement-complete";
5041
+ }>;
5042
+ declare function encodeSupportPassportNamespaceAttributes(namespace: string): Record<string, string>;
5043
+ declare function decodeSupportPassportNamespaceAttributes(attributes: Readonly<Record<string, string>>): string | null;
5044
+ interface StoredSupportPassportCard {
5045
+ card: SupportPassportCard;
5046
+ memory: MemoryFile;
5047
+ order: number;
5048
+ sourceMemoryIds: string[];
5049
+ namespace: string;
5050
+ owner: string;
5051
+ replacesDraftId?: string;
5052
+ replacedRevision?: string;
5053
+ draftReplacementPrepared: boolean;
5054
+ }
5055
+ declare function computeSupportPassportOwnerKey(principal: string): string;
5056
+ declare function hasLiveSupportPassportCard(memory: Pick<MemoryFile, "frontmatter" | "content">): boolean;
5057
+ declare function projectSupportPassportCard(memory: MemoryFile): StoredSupportPassportCard | null;
5058
+
5059
+ interface SupportPassportOwnerScope {
5060
+ principal: string;
5061
+ namespace: string;
5062
+ storage: StorageManager;
5063
+ }
5064
+ interface SupportPassportCardServiceDependencies {
5065
+ resolveOwner(principal: string): Promise<SupportPassportOwnerScope>;
5066
+ now?: () => Date;
5067
+ }
5068
+ declare class SupportPassportCardService {
5069
+ private readonly resolveOwner;
5070
+ private readonly now;
5071
+ constructor(dependencies: SupportPassportCardServiceDependencies);
5072
+ listCards(input: {
5073
+ principal: string;
5074
+ }): Promise<SupportPassportCard[]>;
5075
+ createManualDraft(input: SupportPassportManualDraftInput): Promise<SupportPassportCard>;
5076
+ replaceCard(input: SupportPassportReplaceCardInput): Promise<SupportPassportCard>;
5077
+ approveCard(input: SupportPassportCardMutationInput): Promise<SupportPassportCard>;
5078
+ rejectCard(input: SupportPassportCardMutationInput): Promise<SupportPassportCard>;
5079
+ withdrawCard(input: SupportPassportCardMutationInput): Promise<SupportPassportCard>;
5080
+ private createDraft;
5081
+ private changeStatus;
5082
+ private revisionFor;
5083
+ private resolveOwnerScope;
5084
+ private rejectCreatedDraft;
5085
+ private requireCard;
5086
+ private projectRequiredCard;
5087
+ private projectOwnedCard;
5088
+ private ownsMemory;
5089
+ private readProjectedCards;
5090
+ private requireRevision;
5091
+ private requireStatus;
5092
+ private readStoredCards;
5093
+ private ownerVisibleCards;
5094
+ private preparePriorForReplacement;
5095
+ private rejectPendingReplacementForPredecessor;
5096
+ private validatePriorForReplacement;
5097
+ private recoverReplacementTransition;
5098
+ private completeReplacementAfterActivation;
5099
+ private finishCommittedApproval;
5100
+ private rollbackConflictedApproval;
5101
+ private completePriorRetirement;
5102
+ private recoverReplacedDraft;
5103
+ private finishPreparedDraftReplacement;
5104
+ private rejectOrphanedReplacement;
5105
+ private restorePriorAfterApprovalFailure;
5106
+ private markReplacementComplete;
5107
+ private requireOwnerLock;
5108
+ }
5109
+
5110
+ type SupportPassportErrorCode = "card_data_invalid" | "card_not_found" | "grant_expired" | "grant_gone" | "grant_not_found" | "grant_stale" | "invalid_card_status" | "invalid_input" | "revision_conflict" | "state_conflict" | "storage_conflict";
5111
+ declare class SupportPassportError extends Error {
5112
+ readonly code: SupportPassportErrorCode;
5113
+ readonly status: number;
5114
+ constructor(code: SupportPassportErrorCode, message: string, status: number);
5115
+ }
5116
+
5117
+ declare const SupportPassportGrantCardRefSchema: z.ZodObject<{
5118
+ cardId: z.ZodString;
5119
+ revision: z.ZodString;
5120
+ }, "strict", z.ZodTypeAny, {
5121
+ cardId: string;
5122
+ revision: string;
5123
+ }, {
5124
+ cardId: string;
5125
+ revision: string;
5126
+ }>;
5127
+ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
5128
+ schemaVersion: z.ZodLiteral<1>;
5129
+ stateVersion: z.ZodNumber;
5130
+ grantId: z.ZodEffects<z.ZodString, string, string>;
5131
+ namespace: z.ZodEffects<z.ZodString, string, string>;
5132
+ principalHash: z.ZodString;
5133
+ ownerLockKey: z.ZodString;
5134
+ secretHash: z.ZodString;
5135
+ cards: z.ZodArray<z.ZodObject<{
5136
+ cardId: z.ZodString;
5137
+ revision: z.ZodString;
5138
+ }, "strict", z.ZodTypeAny, {
5139
+ cardId: string;
5140
+ revision: string;
5141
+ }, {
5142
+ cardId: string;
5143
+ revision: string;
5144
+ }>, "many">;
5145
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
5146
+ expiresAt: z.ZodEffects<z.ZodString, string, string>;
5147
+ revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5148
+ }, "strict", z.ZodTypeAny, {
5149
+ namespace: string;
5150
+ createdAt: string;
5151
+ expiresAt: string;
5152
+ schemaVersion: 1;
5153
+ stateVersion: number;
5154
+ grantId: string;
5155
+ principalHash: string;
5156
+ ownerLockKey: string;
5157
+ secretHash: string;
5158
+ cards: {
5159
+ cardId: string;
5160
+ revision: string;
5161
+ }[];
5162
+ revokedAt?: string | undefined;
5163
+ }, {
5164
+ namespace: string;
5165
+ createdAt: string;
5166
+ expiresAt: string;
5167
+ schemaVersion: 1;
5168
+ stateVersion: number;
5169
+ grantId: string;
5170
+ principalHash: string;
5171
+ ownerLockKey: string;
5172
+ secretHash: string;
5173
+ cards: {
5174
+ cardId: string;
5175
+ revision: string;
5176
+ }[];
5177
+ revokedAt?: string | undefined;
5178
+ }>, {
5179
+ namespace: string;
5180
+ createdAt: string;
5181
+ expiresAt: string;
5182
+ schemaVersion: 1;
5183
+ stateVersion: number;
5184
+ grantId: string;
5185
+ principalHash: string;
5186
+ ownerLockKey: string;
5187
+ secretHash: string;
5188
+ cards: {
5189
+ cardId: string;
5190
+ revision: string;
5191
+ }[];
5192
+ revokedAt?: string | undefined;
5193
+ }, {
5194
+ namespace: string;
5195
+ createdAt: string;
5196
+ expiresAt: string;
5197
+ schemaVersion: 1;
5198
+ stateVersion: number;
5199
+ grantId: string;
5200
+ principalHash: string;
5201
+ ownerLockKey: string;
5202
+ secretHash: string;
5203
+ cards: {
5204
+ cardId: string;
5205
+ revision: string;
5206
+ }[];
5207
+ revokedAt?: string | undefined;
5208
+ }>;
5209
+ declare const SupportPassportCreateGrantInputSchema: z.ZodEffects<z.ZodObject<{
5210
+ principal: z.ZodString;
5211
+ cards: z.ZodArray<z.ZodObject<{
5212
+ cardId: z.ZodString;
5213
+ revision: z.ZodString;
5214
+ }, "strict", z.ZodTypeAny, {
5215
+ cardId: string;
5216
+ revision: string;
5217
+ }, {
5218
+ cardId: string;
5219
+ revision: string;
5220
+ }>, "many">;
5221
+ expiresAt: z.ZodEffects<z.ZodString, string, string>;
5222
+ }, "strict", z.ZodTypeAny, {
5223
+ expiresAt: string;
5224
+ principal: string;
5225
+ cards: {
5226
+ cardId: string;
5227
+ revision: string;
5228
+ }[];
5229
+ }, {
5230
+ expiresAt: string;
5231
+ principal: string;
5232
+ cards: {
5233
+ cardId: string;
5234
+ revision: string;
5235
+ }[];
5236
+ }>, {
5237
+ expiresAt: string;
5238
+ principal: string;
5239
+ cards: {
5240
+ cardId: string;
5241
+ revision: string;
5242
+ }[];
5243
+ }, {
5244
+ expiresAt: string;
5245
+ principal: string;
5246
+ cards: {
5247
+ cardId: string;
5248
+ revision: string;
5249
+ }[];
5250
+ }>;
5251
+ declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
5252
+ grantId: z.ZodEffects<z.ZodString, string, string>;
5253
+ stateVersion: z.ZodNumber;
5254
+ cards: z.ZodArray<z.ZodObject<{
5255
+ cardId: z.ZodString;
5256
+ revision: z.ZodString;
5257
+ }, "strict", z.ZodTypeAny, {
5258
+ cardId: string;
5259
+ revision: string;
5260
+ }, {
5261
+ cardId: string;
5262
+ revision: string;
5263
+ }>, "many">;
5264
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
5265
+ expiresAt: z.ZodEffects<z.ZodString, string, string>;
5266
+ revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5267
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
5268
+ }, "strict", z.ZodTypeAny, {
5269
+ createdAt: string;
5270
+ expiresAt: string;
5271
+ status: "active" | "expired" | "revoked";
5272
+ stateVersion: number;
5273
+ grantId: string;
5274
+ cards: {
5275
+ cardId: string;
5276
+ revision: string;
5277
+ }[];
5278
+ revokedAt?: string | undefined;
5279
+ }, {
5280
+ createdAt: string;
5281
+ expiresAt: string;
5282
+ status: "active" | "expired" | "revoked";
5283
+ stateVersion: number;
5284
+ grantId: string;
5285
+ cards: {
5286
+ cardId: string;
5287
+ revision: string;
5288
+ }[];
5289
+ revokedAt?: string | undefined;
5290
+ }>;
5291
+ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
5292
+ grant: z.ZodObject<{
5293
+ grantId: z.ZodEffects<z.ZodString, string, string>;
5294
+ stateVersion: z.ZodNumber;
5295
+ cards: z.ZodArray<z.ZodObject<{
5296
+ cardId: z.ZodString;
5297
+ revision: z.ZodString;
5298
+ }, "strict", z.ZodTypeAny, {
5299
+ cardId: string;
5300
+ revision: string;
5301
+ }, {
5302
+ cardId: string;
5303
+ revision: string;
5304
+ }>, "many">;
5305
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
5306
+ expiresAt: z.ZodEffects<z.ZodString, string, string>;
5307
+ revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5308
+ status: z.ZodEnum<["active", "expired", "revoked"]>;
5309
+ }, "strict", z.ZodTypeAny, {
5310
+ createdAt: string;
5311
+ expiresAt: string;
5312
+ status: "active" | "expired" | "revoked";
5313
+ stateVersion: number;
5314
+ grantId: string;
5315
+ cards: {
5316
+ cardId: string;
5317
+ revision: string;
5318
+ }[];
5319
+ revokedAt?: string | undefined;
5320
+ }, {
5321
+ createdAt: string;
5322
+ expiresAt: string;
5323
+ status: "active" | "expired" | "revoked";
5324
+ stateVersion: number;
5325
+ grantId: string;
5326
+ cards: {
5327
+ cardId: string;
5328
+ revision: string;
5329
+ }[];
5330
+ revokedAt?: string | undefined;
5331
+ }>;
5332
+ secret: z.ZodString;
5333
+ }, "strict", z.ZodTypeAny, {
5334
+ secret: string;
5335
+ grant: {
5336
+ createdAt: string;
5337
+ expiresAt: string;
5338
+ status: "active" | "expired" | "revoked";
5339
+ stateVersion: number;
5340
+ grantId: string;
5341
+ cards: {
5342
+ cardId: string;
5343
+ revision: string;
5344
+ }[];
5345
+ revokedAt?: string | undefined;
5346
+ };
5347
+ }, {
5348
+ secret: string;
5349
+ grant: {
5350
+ createdAt: string;
5351
+ expiresAt: string;
5352
+ status: "active" | "expired" | "revoked";
5353
+ stateVersion: number;
5354
+ grantId: string;
5355
+ cards: {
5356
+ cardId: string;
5357
+ revision: string;
5358
+ }[];
5359
+ revokedAt?: string | undefined;
5360
+ };
5361
+ }>;
5362
+ declare const SupportPassportPublicCardSchema: z.ZodObject<{
5363
+ cardId: z.ZodString;
5364
+ title: z.ZodString;
5365
+ statement: z.ZodString;
5366
+ category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
5367
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
5368
+ }, "strict", z.ZodTypeAny, {
5369
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
5370
+ title: string;
5371
+ updatedAt: string;
5372
+ cardId: string;
5373
+ statement: string;
5374
+ }, {
5375
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
5376
+ title: string;
5377
+ updatedAt: string;
5378
+ cardId: string;
5379
+ statement: string;
5380
+ }>;
5381
+ declare const SupportPassportPublicGuideSchema: z.ZodObject<{
5382
+ schemaVersion: z.ZodLiteral<1>;
5383
+ grantId: z.ZodEffects<z.ZodString, string, string>;
5384
+ expiresAt: z.ZodEffects<z.ZodString, string, string>;
5385
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
5386
+ cards: z.ZodArray<z.ZodObject<{
5387
+ cardId: z.ZodString;
5388
+ title: z.ZodString;
5389
+ statement: z.ZodString;
5390
+ category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
5391
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
5392
+ }, "strict", z.ZodTypeAny, {
5393
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
5394
+ title: string;
5395
+ updatedAt: string;
5396
+ cardId: string;
5397
+ statement: string;
5398
+ }, {
5399
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
5400
+ title: string;
5401
+ updatedAt: string;
5402
+ cardId: string;
5403
+ statement: string;
5404
+ }>, "many">;
5405
+ }, "strict", z.ZodTypeAny, {
5406
+ expiresAt: string;
5407
+ schemaVersion: 1;
5408
+ updatedAt: string;
5409
+ grantId: string;
5410
+ cards: {
5411
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
5412
+ title: string;
5413
+ updatedAt: string;
5414
+ cardId: string;
5415
+ statement: string;
5416
+ }[];
5417
+ }, {
5418
+ expiresAt: string;
5419
+ schemaVersion: 1;
5420
+ updatedAt: string;
5421
+ grantId: string;
5422
+ cards: {
5423
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
5424
+ title: string;
5425
+ updatedAt: string;
5426
+ cardId: string;
5427
+ statement: string;
5428
+ }[];
5429
+ }>;
5430
+ declare const SupportPassportRevokeGrantInputSchema: z.ZodObject<{
5431
+ principal: z.ZodString;
5432
+ grantId: z.ZodEffects<z.ZodString, string, string>;
5433
+ expectedStateVersion: z.ZodOptional<z.ZodNumber>;
5434
+ }, "strict", z.ZodTypeAny, {
5435
+ principal: string;
5436
+ grantId: string;
5437
+ expectedStateVersion?: number | undefined;
5438
+ }, {
5439
+ principal: string;
5440
+ grantId: string;
5441
+ expectedStateVersion?: number | undefined;
5442
+ }>;
5443
+ declare const SupportPassportListGrantsInputSchema: z.ZodObject<{
5444
+ principal: z.ZodString;
5445
+ }, "strict", z.ZodTypeAny, {
5446
+ principal: string;
5447
+ }, {
5448
+ principal: string;
5449
+ }>;
5450
+ type SupportPassportGrantCardRef = z.infer<typeof SupportPassportGrantCardRefSchema>;
5451
+ type SupportPassportGrantState = z.infer<typeof SupportPassportGrantStateSchema>;
5452
+ type SupportPassportCreateGrantInput = z.input<typeof SupportPassportCreateGrantInputSchema>;
5453
+ type SupportPassportOwnerGrant = z.infer<typeof SupportPassportOwnerGrantSchema>;
5454
+ type SupportPassportCreatedGrant = z.infer<typeof SupportPassportCreatedGrantSchema>;
5455
+ type SupportPassportPublicGuide = z.infer<typeof SupportPassportPublicGuideSchema>;
5456
+ type SupportPassportRevokeGrantInput = z.input<typeof SupportPassportRevokeGrantInputSchema>;
5457
+
5458
+ interface SupportPassportGrantStoreOptions {
5459
+ memoryDir: string;
5460
+ now?: () => Date;
5461
+ makeSecret?: () => Buffer;
5462
+ makeGrantId?: () => string;
5463
+ withHeldFileLock?: typeof withHeldFileLock;
5464
+ syncDirectory?: typeof syncDirectoryForDurability;
5465
+ }
5466
+ interface CreateStoredGrantInput {
5467
+ namespace: string;
5468
+ principal: string;
5469
+ cards: SupportPassportGrantCardRef[];
5470
+ expiresAt: string;
5471
+ requestedAt?: Date;
5472
+ }
5473
+ interface SupportPassportGrantMutationHooks {
5474
+ beforeCommit?: () => Promise<void>;
5475
+ onCommitted?: () => void | Promise<void>;
5476
+ }
5477
+ type SupportPassportGrantCreateHooks = SupportPassportGrantMutationHooks | (() => Promise<void>);
5478
+ type SupportPassportGrantRevokeHooks = SupportPassportGrantMutationHooks | (() => Promise<void>);
5479
+ declare function notifySupportPassportCommitted(callback: (() => void | Promise<void>) | undefined): void;
5480
+ declare function syncDirectoryForDurability(directory: string, openDirectory?: (directory: string) => Promise<Pick<FileHandle, "sync" | "close">>): Promise<void>;
5481
+ declare class SupportPassportGrantStore {
5482
+ private memoryDir;
5483
+ private grantsDir;
5484
+ private ownerIndexesDir;
5485
+ private memoryRootReady?;
5486
+ private safeDirectoriesReady?;
5487
+ private readonly now;
5488
+ private readonly makeSecret;
5489
+ private readonly makeGrantId;
5490
+ private readonly runWithHeldFileLock;
5491
+ private readonly syncDirectory;
5492
+ constructor(options: SupportPassportGrantStoreOptions);
5493
+ create(input: CreateStoredGrantInput, hooks?: SupportPassportGrantCreateHooks): Promise<{
5494
+ state: SupportPassportGrantState;
5495
+ secret: string;
5496
+ }>;
5497
+ authenticate(grantId: string, secret: string): Promise<SupportPassportGrantState>;
5498
+ withAuthenticatedGrant<T>(grantId: string, secret: string, task: (state: SupportPassportGrantState) => Promise<T>, beforeReturn?: (state: SupportPassportGrantState) => Promise<void>): Promise<T>;
5499
+ listForOwner(namespace: string, principal: string): Promise<SupportPassportGrantState[]>;
5500
+ revoke(input: {
5501
+ grantId: string;
5502
+ namespace: string;
5503
+ principal: string;
5504
+ expectedStateVersion?: number;
5505
+ }, hooks?: SupportPassportGrantRevokeHooks): Promise<SupportPassportGrantState>;
5506
+ private filePath;
5507
+ private ownerIndexPath;
5508
+ private ownerHash;
5509
+ private addToOwnerIndex;
5510
+ private removeGrantStates;
5511
+ private ownerMembershipDirectory;
5512
+ private ensureOwnerMembershipDirectory;
5513
+ private writeOwnerMembership;
5514
+ private removeOwnerMembership;
5515
+ private removeStoredGrant;
5516
+ private writeOwnerIndexWhileLocked;
5517
+ private reconcileCreateAfterOwnerIndexLockLoss;
5518
+ private reconcileCommittedGrant;
5519
+ private retainedOwnerStates;
5520
+ private listedOwnerStates;
5521
+ private requireAvailableOwnerGrantSlot;
5522
+ private readOwnerMembershipStates;
5523
+ private readOwnerIndexByHash;
5524
+ private writeOwnerIndex;
5525
+ private readState;
5526
+ private writeState;
5527
+ private ensureSafeDirectories;
5528
+ private ensureMemoryRoot;
5529
+ private withMutationLock;
5530
+ private withGrantLock;
5531
+ private withOwnerIndexLock;
5532
+ private withExclusiveLock;
5533
+ private requireMutationLock;
5534
+ private requireOwnerIndexLock;
5535
+ private requireActiveState;
5536
+ }
5537
+
5538
+ interface SupportPassportGrantServiceDependencies {
5539
+ grantStore: SupportPassportGrantStore;
5540
+ resolveOwner(principal: string): Promise<{
5541
+ principal: string;
5542
+ namespace: string;
5543
+ storage: StorageManager;
5544
+ }>;
5545
+ resolveNamespace(namespace: string): Promise<StorageManager>;
5546
+ now?: () => Date;
5547
+ }
5548
+ declare class SupportPassportGrantService {
5549
+ private readonly grantStore;
5550
+ private readonly resolveOwner;
5551
+ private readonly resolveNamespace;
5552
+ private readonly now;
5553
+ constructor(dependencies: SupportPassportGrantServiceDependencies);
5554
+ createGrant(input: SupportPassportCreateGrantInput, options?: {
5555
+ signal?: AbortSignal;
5556
+ onCommitted?: () => void | Promise<void>;
5557
+ }): Promise<SupportPassportCreatedGrant>;
5558
+ listGrants(input: {
5559
+ principal: string;
5560
+ }): Promise<SupportPassportOwnerGrant[]>;
5561
+ revokeGrant(input: SupportPassportRevokeGrantInput, options?: {
5562
+ signal?: AbortSignal;
5563
+ onCommitted?: () => void | Promise<void>;
5564
+ }): Promise<SupportPassportOwnerGrant>;
5565
+ readGrant(input: {
5566
+ grantId: string;
5567
+ secret: string;
5568
+ }): Promise<SupportPassportPublicGuide>;
5569
+ private readGrantAttempt;
5570
+ private readGrantCards;
5571
+ private readStoredCardSnapshot;
5572
+ private projectOwnedCards;
5573
+ private cardSnapshotVersion;
5574
+ private revokeCommittedGrant;
5575
+ private publicCard;
5576
+ private resolveOwnerScope;
5577
+ private ownerGrant;
5578
+ }
5579
+
4857
5580
  declare const RELAY_DEMO_MISSION_ID = "checkout-token-recovery";
4858
5581
  declare const RELAY_DEMO_NAMESPACE = "relay-build-week";
4859
5582
  /**
@@ -7928,4 +8651,4 @@ declare function forkCapsule(opts: ForkCapsuleOptions): Promise<ForkCapsuleResul
7928
8651
  */
7929
8652
  declare function readForkLineage(targetRoot: string, forkId: string): Promise<ForkLineage | null>;
7930
8653
 
7931
- export { ACTIVITY_DIGEST_FORMAT_VERSION, ACTIVITY_DIR_NAME, ACTIVITY_SYNC_DEFAULT_INTERVAL_MS, ActivityConfig, ActivityDayDigest, ActivityDayMeta, ActivityHttpSourceClient, type ActivityHttpSourceClientOptions, type ActivityIndexRefresher, type ActivityMemoryGenerationDeps, type ActivityMemoryGenerationResult, type ActivityMemoryWriter, ActivitySnapshot, ActivitySnapshotPage, ActivitySourceCheck, ActivitySourceClient, ActivityStore, type ActivitySyncOptions, type ActivitySyncRegistration, type ActivitySyncResult, ActivitySyncRunSummary, ActivitySyncScheduler, type ActivitySyncSchedulerOptions, ActivityWearablesMeetingsDaySource, type ArchitectureHintsResult, type AuditEntry, BUILT_IN_OFF_THE_RECORD_END, BUILT_IN_OFF_THE_RECORD_START, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, type CleanupResult, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type CollectLocalSessionSummariesOptions, type CompiledCorrectionRule, type CompiledOffTheRecordMarkers, type CompiledRedactionRule, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_MEETINGS_CONFIG, DEFAULT_MEETINGS_DETECTION_CONFIG, DEFAULT_MEETING_APP_PATTERNS, DEFAULT_PROXIMITY_GAP_MS, DEFAULT_REDACTION_RULES, DEFAULT_SCAN_PATTERNS, DEFAULT_SOURCE_TRUST, DEFAULT_TAXONOMY, DEFAULT_WINDOW_TOLERANCE_MS, type DedupOptions, type DedupResult, DetectedMeeting, DiscoveredExtension, type DocFile, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, EngramAccessService, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, type FuseClusterResult, FusedDisagreement, FusedSegment, FusedSpeaker, FusionConversationInput, FusionDayResult, FusionOptions, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, type IngestionPlan, JudgeCandidate, JudgeVerdict, KNOWN_WEARABLE_SOURCE_IDS, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, type LocalSessionAdapterInput, type LocalSessionAdapterOptions, type LocalSessionParseWarning, type LocalSessionParsedFile, type LocalSessionRole, type LocalSessionSourceAdapter, type LocalSessionSummaryCliOptions, type LocalSessionSummaryReport, type LocalSessionTurn, MEETING_SOURCE_PREFIX, MeetingAppSpan, MeetingAudioWindow, MeetingDayData, MeetingEpisodeGenResult, type MeetingFactCandidate, MeetingMemoryGenerator, type MeetingMemoryStorageIo, MeetingMemoryWriter, MeetingRecord, MeetingRecordStore, type MeetingSummaryDeps, type MeetingSummaryExtractor, type MeetingSummaryJudge, type MeetingSummaryResult, type MeetingsActivityReader, MeetingsBuildScheduler, type MeetingsBuildSchedulerOptions, MeetingsBuilder, type MeetingsCliDeps, type MeetingsCliIo, MeetingsConfig, MeetingsDaySource, MeetingsDetectionConfig, MeetingsDetectionInput, MeetingsInputError, type MeetingsWearableReader, MemoryCategory, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OffTheRecordMarkerInput, OffTheRecordMarkerSettings, type OnboardOptions, type OnboardResult, PUBLISHERS, type PackReviewContextStructuralInput, type PipelineResult, PluginConfig, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, RELAY_DEMO_MISSION_ID, RELAY_DEMO_NAMESPACE, RELAY_MISSION_DEFAULT_EVENT_LIMIT, RELAY_MISSION_MAX_EVENTS, RELAY_MISSION_MAX_EVENT_LIMIT, RELAY_MISSION_MAX_FILE_BYTES, RELAY_MISSION_MAX_LINE_BYTES, RELAY_MISSION_SCHEMA_VERSION, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, type RedactionConfig, type RedactionReport, type RedactionRuleConfig, type RelayAgentOutputSnapshot, type RelayAgentSnapshot, type RelayConflictSnapshot, type RelayCorrectionSnapshot, type RelayDecisionSnapshot, type RelayEvidenceRef, RelayEvidenceRefSchema, type RelayMissionAppendAccessInput, type RelayMissionAppendAccessOutput, type RelayMissionAppendResult, type RelayMissionEvent, type RelayMissionEventInput, RelayMissionEventInputSchema, RelayMissionEventSchema, type RelayMissionPayload, RelayMissionPayloadSchema, type RelayMissionReadAccessInput, type RelayMissionReadAccessOutput, type RelayMissionReadOptions, RelayMissionReadOptionsSchema, type RelayMissionSnapshot, type RelayMissionStatus, RelayMissionStore, RelayMissionStoreError, type RelayMissionStoreErrorCode, type RelayMissionStoreOptions, type RelayPropagationSnapshot, type RelayRecallSnapshot, type RelayTestSnapshot, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type ScriptHint, SealedMemoryEnvelope, type SessionSummaryDraft, type SessionSummaryExcerpt, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, SpeakerRegistry, type StatementProvenance, StorageManager, type StructuralContextDegradation, type StructuralContextErrorCode, type StructuralContextProvider, type StructuralProviderStatus, type StructuralSpawnFn, type StructuralSymbol, type SubprocessProviderOptions, type SymbolsForDiffErr, type SymbolsForDiffOk, type SymbolsForDiffResult, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, TRANSCRIPT_FORMAT_VERSION, Taxonomy, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TranscriptSegmentMatch, type TreeNode, WEARABLES_DIR_NAME, WearableCleanupSettings, type WearableConnectorFactory, type WearableConnectorFactoryOptions, type WearableConnectorRegistration, WearableConversation, WearableCorrectionRule, type WearableDayBody, WearableDayTranscript, WearableDayTranscriptMeta, type WearableDayTranscriptStore, WearableFusionConfig, WearableSourceConnector, WearableSourceSettings, type WearableSourceSyncState, type WearableSyncStateFile, type WearablesCliIo, WearablesConfig, WearablesInputError, WearablesService, activityCursorKey, activityDayWindow, activityDigestPath, appendRelayMissionEvent, applyCorrections, applyOffTheRecord, assertValidTimezone, bodyIsEscaped, branchNamespaceName, buildAudioWindows, buildPhraseMatcher, buildProcedureMarkdownBody, buildProcedureRecallSection, builtInConnectorPackageSpecifier, cleanConversation, clearStructuralContextProvidersForTest, clearTrainingExportAdapters, clearWearableConnectors, clusterConversations, collapseImmediateRepeats, collectLocalSessionSummaries, compareRelayEvents, compileCorrectionRule, compileCorrectionRules, compileOffTheRecordMarkers, compileRedactionPatterns, compileRedactionRules, composeActivityDigestBody, composeActivityDigestMeta, composeDayTranscriptBody, composeDayTranscriptMeta, composeMeetingEpisodeContent, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createMeetingMemoryGenerator, createMeetingMemoryWriter, createNotionConnector, createRelayMissionFixture, createSpace, createSubprocessStructuralProvider, curate, decodeTranscriptBody, defaultActivityConfig, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableFusionConfig, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, deriveAppSpans, describeCodingScope, describeErrorForOperator, describeStructuralProviderStatus, detectMeetings, detectScriptHints, emptyManifest, emptySyncState, ensureBuiltInWearableConnectors, escapeSegmentText, findContradictions, findDuplicates, forkCapsule, fuseCluster, fuseDay, fusionInputsFromConversations, generateActivityMemories, generateContextTree, generateMeetingEpisodes, generateMeetingSummaryFacts, generateResolverDocument, getActiveSpace, getAuditLog, getLocalSessionSourceAdapter, getManifestPath, getSpacesDir, getStructuralContextProvider, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, getWearableConnector, hashActivityBody, hashTranscriptBody, hostIdForConnector, isEligibleActivityFact, isLowQualitySegment, isReviewPrompt, isValidActivityDate, isValidTranscriptDate, listLocalSessionSourceAdapters, listReviewItems, listSpaces, listTrainingExportAdapters, listWearableConnectors, loadCorrectionsFile, loadManifest, loadSyncState, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, meetingDayTag, meetingId, meetingSourceLabel, mergeSpaces, normalizeOriginUrl, onboard, packReviewContext, packReviewContextStructural, parseActivityConfig, parseActivityDigest, parseDayTranscript, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseMeetingsConfig, parseProcedureStepsFromBody, parseTouchedFiles, parseTranscriptSegmentLine, parseWearablesConfig, performReview, probeStructuralProviderForDoctor, projectNamespaceName, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, rankReviewCandidates, readForkLineage, readManifest, readRelayMission, reconstructFusionInputs, redactSessionSummaryText, redactText, reduceRelayMission, refreshActivityIndex, registerLocalSessionSourceAdapter, registerPublisher, registerStructuralContextProvider, registerTrainingExportAdapter, registerWearableConnector, relayMissionAppendOperation, relayMissionReadOperation, relayMissionReceiptDigest, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runMeetingsCliCommand, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, serializeActivityDigest, serializeDayTranscript, shareSpace, stableHash, storageWearableDayReader, stripFillerTokens, structuralProviderActive, switchSpace, syncActivitySource, syncChanges, syncStateFilePath, timezoneOffsetIso, toStructuralContextDegradation, unescapeSegmentText, unescapeSpeakerLabel, updateSourceSyncState, validateActivityBaseUrl, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, watchForChanges, withRawEntityPageMutation, writeManifest, writeMeetingEpisodeMemory };
8654
+ export { ACTIVITY_DIGEST_FORMAT_VERSION, ACTIVITY_DIR_NAME, ACTIVITY_SYNC_DEFAULT_INTERVAL_MS, ActivityConfig, ActivityDayDigest, ActivityDayMeta, ActivityHttpSourceClient, type ActivityHttpSourceClientOptions, type ActivityIndexRefresher, type ActivityMemoryGenerationDeps, type ActivityMemoryGenerationResult, type ActivityMemoryWriter, ActivitySnapshot, ActivitySnapshotPage, ActivitySourceCheck, ActivitySourceClient, ActivityStore, type ActivitySyncOptions, type ActivitySyncRegistration, type ActivitySyncResult, ActivitySyncRunSummary, ActivitySyncScheduler, type ActivitySyncSchedulerOptions, ActivityWearablesMeetingsDaySource, type ArchitectureHintsResult, type AuditEntry, BUILT_IN_OFF_THE_RECORD_END, BUILT_IN_OFF_THE_RECORD_START, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, type CleanupResult, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type CollectLocalSessionSummariesOptions, type CompiledCorrectionRule, type CompiledOffTheRecordMarkers, type CompiledRedactionRule, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type CreateStoredGrantInput, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_MEETINGS_CONFIG, DEFAULT_MEETINGS_DETECTION_CONFIG, DEFAULT_MEETING_APP_PATTERNS, DEFAULT_PROXIMITY_GAP_MS, DEFAULT_REDACTION_RULES, DEFAULT_SCAN_PATTERNS, DEFAULT_SOURCE_TRUST, DEFAULT_TAXONOMY, DEFAULT_WINDOW_TOLERANCE_MS, type DedupOptions, type DedupResult, DetectedMeeting, DiscoveredExtension, type DocFile, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, EngramAccessService, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, type FuseClusterResult, FusedDisagreement, FusedSegment, FusedSpeaker, FusionConversationInput, FusionDayResult, FusionOptions, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, type IngestionPlan, JudgeCandidate, JudgeVerdict, KNOWN_WEARABLE_SOURCE_IDS, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, type LocalSessionAdapterInput, type LocalSessionAdapterOptions, type LocalSessionParseWarning, type LocalSessionParsedFile, type LocalSessionRole, type LocalSessionSourceAdapter, type LocalSessionSummaryCliOptions, type LocalSessionSummaryReport, type LocalSessionTurn, MEETING_SOURCE_PREFIX, MeetingAppSpan, MeetingAudioWindow, MeetingDayData, MeetingEpisodeGenResult, type MeetingFactCandidate, MeetingMemoryGenerator, type MeetingMemoryStorageIo, MeetingMemoryWriter, MeetingRecord, MeetingRecordStore, type MeetingSummaryDeps, type MeetingSummaryExtractor, type MeetingSummaryJudge, type MeetingSummaryResult, type MeetingsActivityReader, MeetingsBuildScheduler, type MeetingsBuildSchedulerOptions, MeetingsBuilder, type MeetingsCliDeps, type MeetingsCliIo, MeetingsConfig, MeetingsDaySource, MeetingsDetectionConfig, MeetingsDetectionInput, MeetingsInputError, type MeetingsWearableReader, MemoryCategory, type MemoryEntry, type MemoryExtensionPublisher, MemoryFile, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OffTheRecordMarkerInput, OffTheRecordMarkerSettings, OfflineSyncExcludeFile, type OnboardOptions, type OnboardResult, PUBLISHERS, type PackReviewContextStructuralInput, type PipelineResult, PluginConfig, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, RELAY_DEMO_MISSION_ID, RELAY_DEMO_NAMESPACE, RELAY_MISSION_DEFAULT_EVENT_LIMIT, RELAY_MISSION_MAX_EVENTS, RELAY_MISSION_MAX_EVENT_LIMIT, RELAY_MISSION_MAX_FILE_BYTES, RELAY_MISSION_MAX_LINE_BYTES, RELAY_MISSION_SCHEMA_VERSION, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, type RedactionConfig, type RedactionReport, type RedactionRuleConfig, type RelayAgentOutputSnapshot, type RelayAgentSnapshot, type RelayConflictSnapshot, type RelayCorrectionSnapshot, type RelayDecisionSnapshot, type RelayEvidenceRef, RelayEvidenceRefSchema, type RelayMissionAppendAccessInput, type RelayMissionAppendAccessOutput, type RelayMissionAppendResult, type RelayMissionEvent, type RelayMissionEventInput, RelayMissionEventInputSchema, RelayMissionEventSchema, type RelayMissionPayload, RelayMissionPayloadSchema, type RelayMissionReadAccessInput, type RelayMissionReadAccessOutput, type RelayMissionReadOptions, RelayMissionReadOptionsSchema, type RelayMissionSnapshot, type RelayMissionStatus, RelayMissionStore, RelayMissionStoreError, type RelayMissionStoreErrorCode, type RelayMissionStoreOptions, type RelayPropagationSnapshot, type RelayRecallSnapshot, type RelayTestSnapshot, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, SUPPORT_PASSPORT_ATTRIBUTE_KEYS, SUPPORT_PASSPORT_AUDIT_TAG, SUPPORT_PASSPORT_CARD_CATEGORIES, SUPPORT_PASSPORT_CARD_STATUSES, SUPPORT_PASSPORT_CARD_TAG, type ScriptHint, SealedMemoryEnvelope, type SessionSummaryDraft, type SessionSummaryExcerpt, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, SpeakerRegistry, type StatementProvenance, StorageManager, type StoredSupportPassportCard, type StructuralContextDegradation, type StructuralContextErrorCode, type StructuralContextProvider, type StructuralProviderStatus, type StructuralSpawnFn, type StructuralSymbol, type SubprocessProviderOptions, type SupportPassportCard, type SupportPassportCardCategory, SupportPassportCardCategorySchema, SupportPassportCardListSchema, type SupportPassportCardMutationInput, SupportPassportCardMutationInputSchema, SupportPassportCardSchema, SupportPassportCardService, type SupportPassportCardServiceDependencies, type SupportPassportCardStatus, SupportPassportCardStatusSchema, SupportPassportCardTitleSchema, type SupportPassportCreateGrantInput, SupportPassportCreateGrantInputSchema, type SupportPassportCreatedGrant, SupportPassportCreatedGrantSchema, SupportPassportError, type SupportPassportErrorCode, type SupportPassportGrantCardRef, SupportPassportGrantCardRefSchema, type SupportPassportGrantMutationHooks, SupportPassportGrantService, type SupportPassportGrantServiceDependencies, type SupportPassportGrantState, SupportPassportGrantStateSchema, SupportPassportGrantStore, type SupportPassportGrantStoreOptions, SupportPassportListCardsInputSchema, SupportPassportListGrantsInputSchema, type SupportPassportManualDraftInput, SupportPassportManualDraftInputSchema, SupportPassportMemoryIdSchema, SupportPassportNamespaceSchema, type SupportPassportOwnerGrant, SupportPassportOwnerGrantSchema, type SupportPassportOwnerScope, SupportPassportPublicCardSchema, type SupportPassportPublicGuide, SupportPassportPublicGuideSchema, type SupportPassportReplaceCardInput, SupportPassportReplaceCardInputSchema, type SupportPassportRevokeGrantInput, SupportPassportRevokeGrantInputSchema, type SymbolsForDiffErr, type SymbolsForDiffOk, type SymbolsForDiffResult, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, TRANSCRIPT_FORMAT_VERSION, Taxonomy, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TranscriptSegmentMatch, type TreeNode, WEARABLES_DIR_NAME, WearableCleanupSettings, type WearableConnectorFactory, type WearableConnectorFactoryOptions, type WearableConnectorRegistration, WearableConversation, WearableCorrectionRule, type WearableDayBody, WearableDayTranscript, WearableDayTranscriptMeta, type WearableDayTranscriptStore, WearableFusionConfig, WearableSourceConnector, WearableSourceSettings, type WearableSourceSyncState, type WearableSyncStateFile, type WearablesCliIo, WearablesConfig, WearablesInputError, WearablesService, activityCursorKey, activityDayWindow, activityDigestPath, appendRelayMissionEvent, applyCorrections, applyOffTheRecord, assertValidTimezone, bodyIsEscaped, branchNamespaceName, buildAudioWindows, buildPhraseMatcher, buildProcedureMarkdownBody, buildProcedureRecallSection, builtInConnectorPackageSpecifier, cleanConversation, clearStructuralContextProvidersForTest, clearTrainingExportAdapters, clearWearableConnectors, clusterConversations, collapseImmediateRepeats, collectLocalSessionSummaries, compareRelayEvents, compileCorrectionRule, compileCorrectionRules, compileOffTheRecordMarkers, compileRedactionPatterns, compileRedactionRules, composeActivityDigestBody, composeActivityDigestMeta, composeDayTranscriptBody, composeDayTranscriptMeta, composeMeetingEpisodeContent, computeSupportPassportCardRevision, computeSupportPassportOwnerKey, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createMeetingMemoryGenerator, createMeetingMemoryWriter, createNotionConnector, createRelayMissionFixture, createSpace, createSubprocessStructuralProvider, createSupportPassportPrivateFileExclusion, curate, decodeSupportPassportNamespaceAttributes, decodeTranscriptBody, defaultActivityConfig, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableFusionConfig, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, deriveAppSpans, describeCodingScope, describeErrorForOperator, describeStructuralProviderStatus, detectMeetings, detectScriptHints, emptyManifest, emptySyncState, encodeSupportPassportNamespaceAttributes, ensureBuiltInWearableConnectors, escapeSegmentText, excludeSupportPassportPrivateMemories, findContradictions, findDuplicates, forkCapsule, fuseCluster, fuseDay, fusionInputsFromConversations, generateActivityMemories, generateContextTree, generateMeetingEpisodes, generateMeetingSummaryFacts, generateResolverDocument, getActiveSpace, getAuditLog, getLocalSessionSourceAdapter, getManifestPath, getSpacesDir, getStructuralContextProvider, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, getWearableConnector, hasLiveSupportPassportCard, hashActivityBody, hashTranscriptBody, hostIdForConnector, isEligibleActivityFact, isLowQualitySegment, isReviewPrompt, isSupportPassportPrivateMemory, isValidActivityDate, isValidTranscriptDate, listLocalSessionSourceAdapters, listReviewItems, listSpaces, listTrainingExportAdapters, listWearableConnectors, loadCorrectionsFile, loadManifest, loadSyncState, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, meetingDayTag, meetingId, meetingSourceLabel, mergeSpaces, normalizeOriginUrl, notifySupportPassportCommitted, onboard, packReviewContext, packReviewContextStructural, parseActivityConfig, parseActivityDigest, parseDayTranscript, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseMeetingsConfig, parseProcedureStepsFromBody, parseTouchedFiles, parseTranscriptSegmentLine, parseWearablesConfig, performReview, probeStructuralProviderForDoctor, projectNamespaceName, projectSupportPassportCard, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, rankReviewCandidates, readForkLineage, readManifest, readRelayMission, reconstructFusionInputs, redactSessionSummaryText, redactText, reduceRelayMission, refreshActivityIndex, registerLocalSessionSourceAdapter, registerPublisher, registerStructuralContextProvider, registerTrainingExportAdapter, registerWearableConnector, relayMissionAppendOperation, relayMissionReadOperation, relayMissionReceiptDigest, renderExtensionsBlock, renderExtensionsFooter, renderStructuralProviderStatusLine, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, runBinaryLifecyclePipeline, runLocalSessionSummaryCliCommand, runMeetingsCliCommand, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, serializeActivityDigest, serializeDayTranscript, shareSpace, stableHash, storageWearableDayReader, stripFillerTokens, structuralProviderActive, switchSpace, syncActivitySource, syncChanges, syncDirectoryForDurability, syncStateFilePath, timezoneOffsetIso, toStructuralContextDegradation, unescapeSegmentText, unescapeSpeakerLabel, updateSourceSyncState, validateActivityBaseUrl, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, watchForChanges, withRawEntityPageMutation, writeManifest, writeMeetingEpisodeMemory };